:root {
  color-scheme: dark;
}
body {
  background: #071e19;
  color: #fff2d3;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ffdf88;
  outline-offset: 3px;
}
button {
  cursor: pointer;
}
.garland-shell {
  min-height: 100vh;
  max-width: 760px;
  margin: auto;
  padding: 30px 20px 130px;
  position: relative;
  font-family: var(--garland-body), sans-serif;
}
.garland-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 15%, #315536 0, transparent 30%),
    radial-gradient(circle at 90% 32%, #354f2a 0, transparent 25%),
    radial-gradient(circle at 50% 65%, #163d2f 0, transparent 52%), #071e19;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 700;
  color: #ead7ad;
  margin-bottom: 20px;
}
.brand::before {
  content: "";
  width: 27px;
  height: 25px;
  background: currentColor;
  mask: url("/static/miniapps/garland/winter-puppy.webp") 49% top / 38px auto no-repeat;
}
h1,
h2,
h3 {
  font-family: var(--garland-display), Georgia, serif;
  line-height: 1.08;
}
h1 {
  font-size: clamp(2.5rem, 1.5rem + 5vw, 4rem);
  max-width: 650px;
}
h2 {
  font-size: clamp(1.8rem, 1.3rem + 2vw, 2.5rem);
}
.intro {
  max-width: 550px;
  color: #f1dfba;
  font-size: 18px;
  margin-top: 16px;
}
.garland-list {
  position: relative;
  margin-top: 24px;
}
.lantern-row {
  display: grid;
  grid-template-columns: minmax(100px, 40%) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 240px;
  padding: 24px 0;
}
.lantern {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: 230px;
  border: 0;
  background: transparent;
  color: inherit;
}
.tag {
  position: relative;
  color: #422113;
  background: #f8dfb4;
  padding: 18px;
  border-radius: 8px 25px 12px 20px;
  box-shadow: 0 5px 14px #0005;
  transform: rotate(-2deg);
  overflow-wrap: anywhere;
}
.tag::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 13px;
  width: 9px;
  height: 9px;
  background: #806136;
  border-radius: 50%;
}
.tag h3 {
  font-size: clamp(1.25rem, 1rem + 1.5vw, 1.8rem);
  margin: 0 0 8px;
}
.tag p {
  font-size: 16px;
  line-height: 1.35;
}
.tag button {
  margin-top: 12px;
  color: #512a16;
  background: transparent;
  border: 0;
  border-bottom: 2px solid #895b36;
  font-weight: 700;
  padding: 6px 0;
}
.actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.action {
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid #f7e0b8;
  background: #f9e4bd;
  color: #40200f;
  font-weight: 700;
  text-align: center;
}
.action.secondary {
  background: transparent;
  color: #fff2d3;
}
.action:disabled {
  opacity: 0.6;
  cursor: wait;
}
.sticky-actions {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  padding: 10px;
  border-radius: 20px;
  background: #09221dee;
  box-shadow: 0 0 30px #071e19;
}
.loading,
.notice {
  margin: 24px 0;
  color: #f7e6c5;
}
.panel {
  background: #f8e7c7;
  color: #382317;
  padding: 24px;
  border-radius: 22px;
  margin: 24px 0;
  box-shadow: 0 8px 30px #0004;
}
.panel h2 {
  margin-bottom: 12px;
}
.panel p {
  margin: 10px 0;
}
.panel .action.secondary {
  color: #442414;
  border-color: #795c3e;
}
.panel .action {
  background: #562f1c;
  color: #fff5dc;
  border-color: #562f1c;
}
.panel .action.secondary {
  background: transparent;
}
.field {
  display: grid;
  gap: 6px;
  margin: 18px 0;
}
.field label,
legend {
  font-weight: 700;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  background: #fffdf6;
  color: #2b1a10;
  border: 1px solid #947a60;
  border-radius: 10px;
  padding: 10px 12px;
}
.field textarea {
  min-height: 100px;
  resize: vertical;
}
fieldset {
  border: 0;
  margin: 20px 0;
}
.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
  min-height: 36px;
}
.choice input {
  width: 20px;
  height: 20px;
  accent-color: #603719;
}
.preview {
  display: block;
  max-width: 180px;
  max-height: 180px;
  margin: 12px auto;
  object-fit: contain;
}
.error {
  color: #8e201c;
  font-weight: 700;
}
.empty {
  text-align: center;
  padding: 60px 10px;
}
@media (max-width: 380px) {
  .garland-shell {
    padding-inline: 14px;
  }
  .lantern-row {
    min-height: 200px;
  }
  .tag {
    padding: 16px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
  }
}
.garland-shell::before {
  background:
    linear-gradient(#061c17aa, #061c17bb),
    url("/static/miniapps/garland/forest.webp") center top / cover fixed,
    #071e19;
}
.panel p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* The embedded shell uses the document as the only scroll container. */
html,
body {
  height: auto;
  min-height: 100%;
  overflow-x: clip;
}
html {
  overflow-anchor: none;
}
.garland-shell {
  isolation: isolate;
  padding-bottom: 30px;
}
.garland-shell::before {
  background:
    linear-gradient(#061c172f, #061c1780),
    url("/static/miniapps/garland/forest.webp") center top / cover,
    #071e19;
}
.garland-shell h1 {
  font-size: clamp(2.05rem, 1.4rem + 3.5vw, 4rem);
}
.lantern-row {
  position: relative;
  min-height: 230px;
}
.lantern-row::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M29 0 V4 C29 47 71 51 71 100' fill='none' stroke='%23673722' stroke-width='1.7'/%3E%3Cpath d='M29 0 V4 C29 47 71 51 71 100' fill='none' stroke='%23cb955e' stroke-width='.6'/%3E%3C/svg%3E")
    center / 100% 100% no-repeat;
}
.lantern-row[data-side="right"]::before {
  transform: scaleX(-1);
}
.lantern-row[data-side="left"] {
  grid-template-columns: minmax(100px, 40%) minmax(0, 1fr);
}
.lantern-row[data-side="right"] {
  grid-template-columns: minmax(0, 1fr) minmax(100px, 40%);
}
.lantern-row[data-side="left"] .lantern {
  order: 0;
}
.lantern-row[data-side="right"] .lantern {
  order: 2;
}
.lantern {
  align-self: start;
  margin-top: 18px;
  width: 100%;
  justify-self: center;
}
.sticky-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sticky-actions > :not(.secondary) {
  width: 100%;
}
.sticky-actions > .secondary {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 8px;
  border-color: transparent;
}
.tag button,
.choice {
  min-height: 44px;
}
.results ul {
  padding-inline-start: 1em;
}
@media (max-width: 380px) {
  .lantern-row {
    min-height: 195px;
  }
}
details.results {
  padding: 10px 16px;
  margin: 15px 0;
}
.results summary {
  cursor: pointer;
  min-height: 32px;
  display: list-item;
  align-content: center;
  font-weight: 700;
}
.results[open] ul {
  margin-top: 8px;
}
@media (max-width: 600px) {
  .garland-shell::before {
    background-position: left top;
  }
  .sticky-actions {
    bottom: max(5px, env(safe-area-inset-bottom));
  }
}
.lit-preview {
  width: min(100%, 9.5rem);
  margin: 0 auto 12px;
  cursor: default;
  opacity: 1;
}
.garland-shell h1,
.garland-shell h2,
.garland-shell h3 {
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
  overflow: hidden;
  text-overflow: ellipsis;
}
.garland-shell h1 {
  font-size: clamp(1.75rem, 1rem + 5vw, 4rem);
}
.lantern-detail { position: relative; }
.lantern-detail .lantern-report {
  display: flex;
  width: fit-content;
  margin-inline-start: auto;
  margin-block-end: 4px;
  min-block-size: 44px;
  gap: 6px;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #6a4930;
  font-size: 0.875rem;
  box-shadow: none;
}
.lantern-detail .lantern-report svg {
  inline-size: 1rem;
  block-size: 1rem;
}
.lantern-detail .lantern-report:hover,
.lantern-detail .lantern-report:focus-visible {
  background: #ddc298;
  color: #422718;
}
.lantern-report-dialog {
  width: min(calc(100% - 32px), 420px);
  margin: auto;
  color: #3f281b;
}
.lantern-report-dialog::backdrop { background: rgb(5 21 16 / 72%); }
@media (max-height: 480px) {
  .sticky-actions {
    gap: 4px;
    padding: 5px;
  }
  .sticky-actions .action {
    min-height: 44px;
    padding-block: 6px;
  }
}

/* The label hangs from the same upper part of each lantern, whatever its shape. */
.feed-header {
  position: relative;
}
.feed-header .intro {
  padding-right: min(26%, 105px);
}
.header-mascot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 90px;
  height: 100px;
  object-fit: contain;
  object-position: bottom;
}
.lantern-row {
  min-height: 250px;
  padding: 12px 0;
  gap: 0;
  align-items: start;
}
.lantern-row[data-side="left"] {
  grid-template-columns: minmax(0, 58%) minmax(0, 42%);
}
.lantern-row[data-side="right"] {
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
}
.lantern {
  max-width: 330px;
  margin-top: 0;
}
.lantern .lamp-sprite {
  width: 100%;
  height: 100%;
}
.tag {
  z-index: 1;
  align-self: start;
  margin-top: 32px;
  padding: 16px 14px 12px 24px;
  transform: rotate(-2deg);
  transform-origin: 14px 17px;
}
.lantern-row[data-side="left"] .tag {
  margin-left: -24px;
}
.lantern-row[data-side="right"] .tag {
  margin-right: -24px;
  padding: 16px 24px 12px 14px;
  transform: rotate(2deg);
  transform-origin: calc(100% - 14px) 17px;
}
.tag::before {
  top: 14px;
  left: 10px;
  width: 9px;
  height: 9px;
  background: #56330f;
  border: 2px solid #bf9149;
  box-sizing: border-box;
}
.lantern-row[data-side="right"] .tag::before {
  left: auto;
  right: 10px;
}
.tag h3 {
  font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
  line-height: 1.15;
}
.tag button {
  text-align: left;
}
.action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.action svg {
  flex: none;
  width: 1.2em;
  height: 1.2em;
}
@media (max-width: 380px) {
  .feed-header .intro {
    padding-right: 69px;
  }
  .header-mascot {
    width: 66px;
    height: 78px;
  }
  .lantern-row {
    min-height: 200px;
  }
  .tag {
    padding: 14px 10px 10px 22px;
  }
  .lantern-row[data-side="right"] .tag {
    padding: 14px 22px 10px 10px;
  }
}

.tag button svg,
.results summary svg {
  width: 1em;
  height: 1em;
  vertical-align: -0.12em;
  margin-inline: 0.35em;
}

.lantern-row::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 2;
  left: 29%;
  top: 16px;
  width: max(24px, calc(29% - 10px));
  height: 47px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 45' preserveAspectRatio='none'%3E%3Cpath d='M1 4C24 0 34 26 74 29S131 32 159 43' fill='none' stroke='%23692624' stroke-width='3.7'/%3E%3Cpath d='M1 3C24 0 34 25 74 28S131 31 159 42' fill='none' stroke='%23e8755b' stroke-width='1.5'/%3E%3C/svg%3E")
    center / 100% 100%;
}
.lantern-row[data-side="right"]::after {
  left: auto;
  right: 29%;
  transform: scaleX(-1);
}
.lantern-row[data-kit="sprite"]::after {
  top: clamp(34px, 8vw, 56px);
  height: max(11px, calc(63px - clamp(34px, 8vw, 56px)));
}
