@font-face {
  font-family: TiroHall;
  src: url("tiro.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FE, U+200C-200D;
}
@font-face {
  font-family: TiroHall;
  src: url("tirolat.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}
@font-face {
  font-family: SiliguriHall;
  src: url("siliguri.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FE, U+200C-200D;
}
@font-face {
  font-family: SiliguriHall;
  src: url("siligurilat.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}
@font-face {
  font-family: SiliguriHall;
  src: url("siligurimid.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FE, U+200C-200D;
}
@font-face {
  font-family: SiliguriHall;
  src: url("siligurimidlat.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}
@font-face {
  font-family: SiliguriHall;
  src: url("siliguribold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FE, U+200C-200D;
}
@font-face {
  font-family: SiliguriHall;
  src: url("siliguriboldlat.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF;
}

:root {
  --night: #0C1610;
  --lucky: #1B8A3E;
  --leaf: #8FCB3A;
  --gold: #F2C14E;
  --ink: #0C1610;
  --cream: #E7F4D4;
  --mute: #8AAA78;
  --safe-t: env(safe-area-inset-top);
  --safe-b: env(safe-area-inset-bottom);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none;
}

html, body {
  min-height: 100%;
  background: var(--night);
  color: var(--cream);
  font-family: SiliguriHall, "Noto Sans Bengali", sans-serif;
  overflow: hidden;
}

html, body, input, textarea, button {
  -webkit-text-decoration-skip: none;
  text-decoration-skip-ink: none;
}

::spelling-error { text-decoration: none; }
::grammar-error { text-decoration: none; }
::selection { background: var(--leaf); color: var(--ink); }

button, a, u, em, strong, h1, h2, h3, p, span, li, small, b, dt, dd {
  text-decoration: none;
}

img { display: block; max-width: 100%; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: TiroHall, "Noto Serif Bengali", serif;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.kicker, .view-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gold);
}

.glow-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow-field.grove {
  background:
    radial-gradient(ellipse at 50% 12%, rgba(143, 203, 58, 0.38), transparent 42%),
    linear-gradient(180deg, rgba(12, 22, 16, 0.18), rgba(12, 22, 16, 0.62)),
    url("banyan.webp") center / cover no-repeat;
}

.glow-field.haze {
  background:
    radial-gradient(circle at 70% 24%, rgba(242, 193, 78, 0.28), transparent 36%),
    linear-gradient(180deg, rgba(12, 22, 16, 0.38), rgba(12, 22, 16, 0.9)),
    url("haze.webp") center / cover no-repeat,
    url("banyan.webp") center / cover no-repeat;
}

.glow-field.dim { opacity: 0.72; }

.glint-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(242, 193, 78, 0.34) 0 2px, transparent 3px),
    radial-gradient(circle at 78% 18%, rgba(242, 193, 78, 0.4) 0 2px, transparent 4px),
    radial-gradient(circle at 62% 70%, rgba(143, 203, 58, 0.28) 0 2px, transparent 3px),
    radial-gradient(circle at 30% 80%, rgba(242, 193, 78, 0.22) 0 1px, transparent 3px);
  animation: glint 4.8s ease-in-out infinite;
}

.glint-layer.soft { opacity: 0.55; }

@keyframes glint {
  0%, 100% { opacity: 0.45; filter: hue-rotate(0deg); }
  50% { opacity: 1; }
}

.veil {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start center;
  align-content: start;
  overflow: auto;
  z-index: 8;
  background: var(--night);
  padding: calc(18px + var(--safe-t)) 16px calc(22px + var(--safe-b));
}

#splash.veil {
  place-items: center;
  align-content: center;
  overflow: hidden;
}

#rite.veil {
  display: flex;
  flex-direction: column;
  align-items: center;
  place-items: unset;
  align-content: unset;
}

#splash.veil.is-on { z-index: 20; }

.splash-core,
.rite-sheet {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(92vw, 40rem);
  gap: 10px;
}

.splash-leaf {
  width: min(52vw, 196px);
  filter: drop-shadow(0 12px 28px rgba(143, 203, 58, 0.38));
  animation: sway 3.6s ease-in-out infinite;
}

.splash-coin {
  position: absolute;
  width: 46px;
  top: 8px;
  right: 18%;
  filter: drop-shadow(0 0 12px rgba(242, 193, 78, 0.7));
  animation: coinspin 2.8s linear infinite;
}

@keyframes sway {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(7deg); }
}

@keyframes coinspin {
  0% { transform: rotateY(0) translateY(0); }
  50% { transform: rotateY(180deg) translateY(-8px); }
  100% { transform: rotateY(360deg) translateY(0); }
}

h1 {
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  color: var(--gold);
}

.splash-line, .lead, .view-lead {
  color: var(--mute);
  line-height: 1.55;
}

.splash-bar {
  width: min(46vw, 180px);
  height: 6px;
  border-radius: 99px;
  background: rgba(27, 138, 62, 0.28);
  overflow: hidden;
  margin-top: 8px;
}

.splash-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--lucky), var(--leaf), var(--gold));
  animation: splashfill 1.5s linear forwards;
}

@keyframes splashfill {
  to { width: 100%; }
}

.rite-pips {
  list-style: none;
  display: flex;
  gap: 8px;
  position: relative;
  z-index: 2;
  margin: 0 auto 12px;
}

.rite-pips li {
  width: 28px;
  height: 10px;
  border-radius: 99px 40px 99px 40px;
  background: rgba(143, 203, 58, 0.18);
  transform: rotate(-18deg);
}

.rite-pips li.on {
  background: var(--leaf);
  box-shadow: 0 0 12px rgba(143, 203, 58, 0.45);
}

.rite-sheet h2 {
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  color: var(--cream);
}

.grow-stage {
  width: min(72vw, 220px);
  padding: 4px 0 0;
}

#growTree {
  width: 100%;
  height: auto;
  max-height: 36vh;
  overflow: visible;
  filter: drop-shadow(0 10px 20px rgba(27, 138, 62, 0.35));
}

#riteGo {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: auto;
}

#growTree .seed {
  fill: var(--gold);
  transform-box: fill-box;
  transform-origin: center;
  animation: pulse 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 10px #F2C14E);
}

@keyframes pulse {
  50% { transform: scale(1.35); }
}

#growTree .trunk,
#growTree .root,
#growTree .canopy,
#growTree .drip {
  fill: none;
  stroke: var(--lucky);
  stroke-width: 3.2;
  stroke-linecap: round;
  opacity: 0;
}

#growTree .canopy {
  fill: rgba(27, 138, 62, 0.55);
  stroke: var(--leaf);
}

#growTree.stage-one .trunk,
#growTree.stage-one .root { opacity: 1; }
#growTree.stage-two .trunk,
#growTree.stage-two .root,
#growTree.stage-two .drip { opacity: 1; }
#growTree.stage-two .canopy { opacity: 0.55; }
#growTree.stage-three .trunk,
#growTree.stage-three .root,
#growTree.stage-three .drip,
#growTree.stage-three .canopy { opacity: 1; }

#growTree.stage-one .trunk,
#growTree.stage-two .drip,
#growTree.stage-two .root {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: draw 1.1s ease forwards;
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.fortune-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  margin-top: 4px;
}

.fortune-row span {
  display: none;
  padding: 6px 10px;
  font-size: 0.68rem;
  color: var(--ink);
  background: var(--leaf);
  clip-path: ellipse(48% 46% at 50% 54%);
  transform: rotate(-8deg);
}

#growTree.stage-three + .fortune-row span {
  display: inline-block;
  animation: dropin 0.8s ease both;
}

#growTree.stage-three + .fortune-row span:nth-child(2) { animation-delay: 0.35s; transform: rotate(4deg); }
#growTree.stage-three + .fortune-row span:nth-child(3) { animation-delay: 0.7s; transform: rotate(-3deg); }

@keyframes dropin {
  from { opacity: 0; transform: translateY(-16px) scale(0.6); }
  to { opacity: 1; }
}

.hang-bough {
  position: relative;
  width: min(92vw, 360px);
  height: 92px;
  margin: 8px auto 4px;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(242, 193, 78, 0.16), transparent 40%),
    linear-gradient(90deg, transparent, #3a2614 6%, #5a3a1c 50%, #3a2614 94%, transparent);
  border-radius: 40px;
}

.hang-bough::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18px;
  height: 10px;
  border-radius: 99px;
  background: linear-gradient(90deg, #2a1a0c, #6b4420, #2a1a0c);
  box-shadow: 0 8px 0 -4px rgba(12, 22, 16, 0.45);
}

.notch {
  position: absolute;
  top: 28px;
  width: 72px;
  height: 58px;
  border-radius: 0 0 40px 40px;
  border: 1.5px dashed rgba(143, 203, 58, 0.45);
  border-top: 0;
}

.notch:first-child { left: 16%; }
.notch:last-child { right: 16%; }

.notch.is-hot { border-color: var(--gold); background: rgba(242, 193, 78, 0.08); }

.notch .drag-leaf {
  position: absolute;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
}

.hang-tray {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.drag-leaf {
  width: 78px;
  height: 96px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(232, 243, 212, 0.12), transparent 30%),
    var(--leaf);
  clip-path: ellipse(49% 48% at 50% 52%);
  box-shadow: inset 0 0 0 1px rgba(12, 22, 16, 0.12);
  touch-action: none;
}

.drag-leaf img { width: 34px; height: 34px; object-fit: contain; }
.drag-leaf b { font-size: 0.7rem; }
.drag-leaf.is-gone { opacity: 0.2; pointer-events: none; }
.drag-leaf.is-ghost {
  position: fixed;
  z-index: 30;
  pointer-events: none;
  margin: 0;
}

.catch-hud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  font-size: 0.82rem;
  color: var(--mute);
}

.catch-hud b { color: var(--gold); }

.tint-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(12, 22, 16, 0.45);
  border: 1px solid rgba(143, 203, 58, 0.28);
  font-size: 0.82rem;
}

.tint-badge::before {
  content: "";
  width: 16px;
  height: 22px;
  clip-path: ellipse(48% 46% at 50% 54%);
  background: var(--chip, var(--leaf));
}

.catch-field {
  position: relative;
  width: min(92vw, 420px);
  height: 220px;
  overflow: hidden;
  border-radius: 24px 24px 40% 40% / 18px 18px 28px 28px;
  background:
    linear-gradient(180deg, rgba(27, 138, 62, 0.12), rgba(12, 22, 16, 0.2)),
    rgba(12, 22, 16, 0.35);
  box-shadow: inset 0 0 0 1px rgba(143, 203, 58, 0.18);
}

.catch-field.tall { height: min(42vh, 320px); }

.fall-leaf {
  position: absolute;
  top: -16%;
  width: 54px;
  height: 68px;
  padding: 0;
  animation: fall var(--fall, 3.2s) linear forwards;
  filter: drop-shadow(0 6px 8px rgba(12, 22, 16, 0.4));
}

.fall-leaf img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fall-leaf.tint-sage img { filter: hue-rotate(0deg) saturate(1.15); }
.fall-leaf.tint-gold img { filter: hue-rotate(38deg) saturate(1.4) brightness(1.2); }
.fall-leaf.tint-grove img { filter: hue-rotate(-8deg) saturate(1.3) brightness(0.72); }

@keyframes fall {
  to { transform: translateY(280px) rotate(140deg); }
}

.catch-field.tall .fall-leaf { animation-name: falltall; }
@keyframes falltall {
  to { transform: translateY(360px) rotate(150deg); }
}

.choices {
  display: grid;
  gap: 8px;
  width: min(92vw, 360px);
}

.choices button {
  padding: 12px 14px;
  color: var(--cream);
  background: rgba(12, 22, 16, 0.45);
  border: 1px solid rgba(143, 203, 58, 0.28);
  border-radius: 18px 40px 18px 40px;
  text-align: left;
}

.choices button:hover,
.choices button.is-on {
  background: var(--leaf);
  color: var(--ink);
  border-color: var(--leaf);
}

.choices button.is-bad {
  border-color: #c45b3a;
  animation: shake 0.35s ease;
}

@keyframes shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.sap-vial {
  position: relative;
  width: min(72vw, 240px);
  height: 18px;
  margin: 12px auto 0;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(12, 22, 16, 0.55);
  box-shadow: inset 0 0 0 1px rgba(143, 203, 58, 0.3);
}

.sap-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #0f4f24, var(--lucky), var(--leaf));
  box-shadow: 0 0 16px rgba(143, 203, 58, 0.45);
}

.sap-vial.is-run .sap-fill {
  animation: sap 0.6s linear forwards;
}

@keyframes sap {
  to { width: 100%; }
}

.sap-vial i {
  position: absolute;
  top: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(232, 243, 212, 0.45);
  animation: bubble 2.4s linear infinite;
}

.sap-vial i:nth-child(2) { left: 18%; animation-delay: 0.4s; }
.sap-vial i:nth-child(3) { left: 48%; animation-delay: 1.1s; }
.sap-vial i:nth-child(4) { left: 72%; animation-delay: 1.8s; }

@keyframes bubble {
  0% { transform: translateY(8px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(-10px); opacity: 0; }
}

.cta, .ghost {
  margin-top: 12px;
  padding: 12px 22px;
  min-width: 160px;
}

.cta {
  color: var(--ink);
  background: var(--leaf);
  clip-path: ellipse(48% 46% at 50% 54%);
  font-weight: 700;
  min-height: 52px;
}

.cta:disabled {
  opacity: 0.35;
  cursor: default;
}

.ghost {
  color: var(--gold);
  background: transparent;
  border: 1px solid rgba(242, 193, 78, 0.35);
  border-radius: 999px;
}

.note {
  font-size: 0.82rem;
  color: var(--mute);
}

#hall {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.rail {
  position: relative;
  z-index: 3;
  padding: calc(8px + var(--safe-t)) 12px 4px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 8px;
}

.bough-line {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(36px + var(--safe-t));
  width: 100%;
  height: 56px;
  pointer-events: none;
}

.bough-line .limb {
  fill: none;
  stroke: #6b4420;
  stroke-width: 7;
  stroke-linecap: round;
  filter: drop-shadow(0 3px 0 #2a1a0c);
}

.bough-line .hair {
  fill: none;
  stroke: #4a7a28;
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.85;
}

.rail-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.rail-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.rail-brand small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.rail-brand strong {
  font-family: TiroHall, serif;
  font-size: 1rem;
  color: var(--gold);
}

.pin-twig {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding-right: 2px;
}

.pin-twig button {
  width: 34px;
  height: 42px;
  clip-path: ellipse(48% 46% at 50% 54%);
  background: var(--leaf);
  overflow: hidden;
}

.pin-twig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.leaf-nav {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 0 0;
  grid-column: 1 / -1;
}

.pill-hang {
  position: relative;
  flex: 1;
  display: block;
  padding-top: 16px;
}

.pill-hang > i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 16px;
  background: linear-gradient(#6b4420, #8FCB3A);
  transform: translateX(-50%);
}

.leaf-pill {
  position: relative;
  width: 100%;
  height: 62px;
  display: grid;
  place-items: center;
  color: var(--cream);
  background: rgba(27, 138, 62, 0.28);
  clip-path: ellipse(48% 47% at 50% 54%);
  box-shadow: inset 0 0 0 2px rgba(143, 203, 58, 0.85);
  transform-origin: 50% 0;
}

.leaf-pill span {
  font-weight: 700;
  font-size: 0.92rem;
}

.leaf-pill.is-on {
  background: #8FCB3A;
  color: #0C1610;
  box-shadow: 0 8px 18px rgba(143, 203, 58, 0.28);
  transform: rotate(-3deg);
}

.grove {
  position: relative;
  z-index: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 14px 8px;
}

.view {
  width: min(100%, 52rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding-bottom: 12px;
}

.view h2 {
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.hang-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
  padding: 10px 4px 20px;
}

.hang-wrap {
  position: relative;
  padding-top: 18px;
}

.hang-wrap > i {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 20px;
  background: linear-gradient(#6b4420, #3d6b1c);
  transform: translateX(-50%);
}

.hang-card {
  position: relative;
  width: 100%;
  min-height: 148px;
  padding: 28px 10px 16px;
  display: grid;
  place-items: center;
  gap: 6px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 28%),
    linear-gradient(160deg, #9ad44a, var(--leaf) 46%, #6aa82a);
  clip-path: ellipse(49% 48% at 50% 52%);
  box-shadow: 0 14px 20px rgba(12, 22, 16, 0.28);
  animation: hang 4.6s ease-in-out infinite;
}

.hang-card::after {
  content: "";
  position: absolute;
  top: 22%;
  bottom: 16%;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(12, 22, 16, 0.08), rgba(27, 138, 62, 0.45), rgba(12, 22, 16, 0.08));
  transform: translateX(-50%);
  pointer-events: none;
}

.hang-card img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.hang-card b {
  position: relative;
  z-index: 1;
  font-size: 0.92rem;
}

.hang-card:nth-child(2n) { animation-delay: -1.2s; transform: rotate(4deg); }
.hang-card:nth-child(3n) { animation-delay: -2.1s; }
.hang-card.is-pin {
  box-shadow: 0 0 0 2px var(--gold), 0 14px 20px rgba(12, 22, 16, 0.28);
}

@keyframes hang {
  0%, 100% { transform: rotate(-5deg); }
  50% { transform: rotate(5deg); }
}

.quiz-card, .quiz-end {
  width: min(92vw, 400px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.quiz-card h3, .quiz-end strong {
  font-family: TiroHall, serif;
  font-size: 1.2rem;
  line-height: 1.45;
}

.quiz-end img { width: 72px; }
.quiz-end strong { font-size: 2.4rem; color: var(--gold); }

.coin-hold {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 12px auto;
  display: grid;
  place-items: center;
  touch-action: none;
}

.coin-hold img {
  width: 118px;
  filter: drop-shadow(0 0 16px rgba(242, 193, 78, 0.55));
}

.hold-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--leaf) calc(var(--p, 0) * 1%), rgba(143, 203, 58, 0.12) 0);
  mask: radial-gradient(circle, transparent 58%, #000 60%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 60%);
}

.hold-read {
  font-family: TiroHall, serif;
  color: var(--gold);
  font-size: 1.1rem;
}

.stamp-strip {
  position: relative;
  z-index: 3;
  height: calc(34px + var(--safe-b));
  padding: 4px 16px var(--safe-b);
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(180deg, transparent, rgba(12, 22, 16, 0.7)),
    repeating-linear-gradient(90deg, rgba(242, 193, 78, 0.08) 0 8px, transparent 8px 16px);
  box-shadow: 0 -1px 0 rgba(242, 193, 78, 0.22);
}

.stamp-strip ol {
  list-style: none;
  display: flex;
  gap: 10px;
  width: min(92vw, 360px);
  justify-content: space-between;
}

.stamp-strip li {
  width: 18px;
  height: 22px;
  clip-path: ellipse(48% 46% at 50% 54%);
  background: rgba(143, 203, 58, 0.16);
  box-shadow: inset 0 0 0 1px rgba(143, 203, 58, 0.2);
}

.stamp-strip li.on {
  background: var(--gold);
  box-shadow: 0 0 8px rgba(242, 193, 78, 0.45);
}

.sheet {
  place-items: center;
  align-content: center;
  z-index: 12;
}

.sheet-wrap {
  position: relative;
  padding-top: 22px;
}

.leaf-sheet {
  position: relative;
  width: min(86vw, 300px);
  min-height: min(72vh, 380px);
  padding: 40px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(165deg, #b6e265, var(--leaf) 48%, #5f9a24);
  clip-path: ellipse(49.5% 49% at 50% 51%);
}

.leaf-sheet.slim { min-height: 340px; }

.leaf-sheet .stem {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 3px;
  height: 28px;
  background: #6b4420;
  transform: translateX(-50%);
}

.leaf-sheet .vein {
  position: absolute;
  top: 18%;
  bottom: 14%;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, rgba(12, 22, 16, 0.05), rgba(27, 138, 62, 0.4), rgba(12, 22, 16, 0.05));
  transform: translateX(-50%);
}

.leaf-sheet img { width: 56px; height: 56px; object-fit: contain; z-index: 1; }
.leaf-sheet h3 { z-index: 1; font-size: 1.4rem; }
.leaf-sheet ol {
  z-index: 1;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  line-height: 1.4;
}

.sheet-acts {
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.leaf-sheet .close { z-index: 1; border-color: rgba(12, 22, 16, 0.2); color: var(--ink); }

.score-dl {
  z-index: 1;
  width: 80%;
  display: grid;
  gap: 8px;
}

.score-dl div {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.score-dl dd { color: #3d2a08; font-weight: 700; }

@media (min-width: 720px) {
  .hang-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .leaf-nav { max-width: 520px; margin: 0 auto; }
  .catch-field { height: 260px; }
  .rail-brand strong { font-size: 1.15rem; }
}

@media (min-width: 1100px) {
  .grove { padding-top: 8px; }
  .hang-card { min-height: 168px; }
}

@media (max-width: 380px) {
  .leaf-pill { height: 64px; }
  .leaf-pill span { font-size: 0.8rem; }
  .hang-card { min-height: 132px; }
}

@media (max-height: 540px) {
  .veil { padding: calc(8px + var(--safe-t)) 12px calc(10px + var(--safe-b)); }
  .rite-sheet { gap: 4px; }
  .rite-sheet h2, .view h2 { font-size: 1.2rem; }
  .lead, .view-lead, .view-kicker { display: none; }
  .rail { padding: calc(4px + var(--safe-t)) 10px 0; gap: 0; }
  .rail-brand small { display: none; }
  .leaf-pill { height: 54px; }
  .pin-twig { min-height: 28px; }
  .hang-grid { gap: 10px 8px; padding-top: 4px; }
  .hang-card { min-height: 108px; padding: 20px 8px 12px; }
  .catch-field { height: 160px; }
  .catch-field.tall { height: min(28vh, 200px); }
  .bough-line { top: calc(22px + var(--safe-t)); }
}
