/* ═══════════════════════════════════════════════════════════════
   LUCKY TICKET CARNIVAL — youxi--1--1 index stylesheet
   A retro funfair / arcade-ticket theme. Warm paper, letterpress
   serifs, punch-hole tickets, striped awnings, prize rosettes.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --paper: #FFF6E9;
  --paper-deep: #F9E8CF;
  --card: #FFFDF7;
  --ink: #33241A;
  --ink-soft: #7A6A58;
  --red: #E23D2E;
  --red-deep: #B92B1E;
  --mustard: #F2A93B;
  --mustard-deep: #D98E1B;
  --teal: #1E7F74;
  --teal-deep: #146058;
  --blush: #FFE3C2;
  --pink: #F6C6C0;
  --board: #B97B3F;
  --board-deep: #96602E;
  --serif: Georgia, 'Times New Roman', 'Songti SC', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', sans-serif;
  --mono: 'Courier New', Courier, monospace;
  --sec-gap: 34px;
  --shadow-pop: 0 3px 0 rgba(51, 36, 26, .18);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  background-image:
    radial-gradient(rgba(226, 61, 46, .045) 1.2px, transparent 1.2px),
    radial-gradient(rgba(30, 127, 116, .045) 1.2px, transparent 1.2px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 13px 13px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

[v-cloak] { display: none; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }

/* hard guard: no card may ever spill sideways */
.booth-row, .stack-row, .liner-card, .stall, .punch-card,
.tarot, .merry, .fish, .ball, .prize, .admit { min-width: 0; max-width: 100%; }

/* ── shared poster-heading: letterpress plaque ─────────────────── */
.plaque {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
}
.plaque-bar {
  width: 26px; height: 4px;
  background: repeating-linear-gradient(90deg, var(--red) 0 6px, var(--mustard) 6px 12px);
  border-radius: 2px;
  flex: none;
}
.plaque-title {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink);
  text-shadow: 1.5px 1.5px 0 var(--blush);
}
.plaque-side {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--ink-soft);
  border: 1.5px dashed rgba(122, 106, 88, .5);
  border-radius: 20px;
  padding: 2px 10px;
  white-space: nowrap;
}
.plaque-spacer { flex: 1; }

/* ═══ 1) BIG TOP HEADER — scalloped tent valance ═════════════════ */
.bigtop {
  position: relative;
  z-index: 50;
  background: var(--red);
  background-image: repeating-linear-gradient(105deg,
    rgba(255, 255, 255, .07) 0 22px, transparent 22px 44px);
  color: #FFF9EF;
  padding: 10px 0 0;
}
.bigtop::after {
  content: '';
  display: block;
  height: 12px;
  margin-top: 10px;
  background:
    radial-gradient(circle at 12px -2px, var(--red) 14px, transparent 15px) repeat-x;
  background-size: 24px 14px;
  filter: drop-shadow(0 2px 0 rgba(51, 36, 26, .15));
}
.bigtop-in {
  display: flex;
  align-items: center;
  gap: 10px;
}
.bigtop-badge {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--mustard);
  border: 3px solid #FFF9EF;
  box-shadow: inset 0 -4px 0 rgba(51, 36, 26, .18);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.bigtop-name {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-shadow: 1.5px 1.5px 0 rgba(51, 36, 26, .35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bigtop-search {
  margin-left: auto;
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2.5px solid #FFF9EF;
  background: var(--teal);
  color: #FFF9EF;
  display: grid;
  place-items: center;
  transition: transform .15s;
}
.bigtop-search:active { transform: scale(.9); }

/* search — a punched ticket strip that drops from the tent */
.ticket-search {
  position: relative;
  z-index: 49;
  padding: 10px 9px 12px;
}
.ticket-search-in {
  position: relative;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 40px;
  box-shadow: var(--shadow-pop);
  display: flex;
  align-items: center;
  padding: 4px 6px 4px 16px;
  gap: 8px;
}
.ticket-search-in::before,
.ticket-search-in::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  transform: translateY(-50%);
}
.ticket-search-in::before { left: -9px; }
.ticket-search-in::after { right: -9px; }
.ts-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  padding: 8px 0;
}
.ts-input::placeholder { color: var(--ink-soft); opacity: .75; }
.ts-go {
  flex: none;
  background: var(--red);
  color: #FFF9EF;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 30px;
  padding: 8px 18px;
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  transition: transform .12s;
}
.ts-go:active { transform: translateY(2px); box-shadow: none; }

/* ═══ 2) BUNTING — triangular flag category string ═══════════════ */
.bunting {
  margin: 22px 0 6px;
  padding-bottom: 6px;
  background:
    linear-gradient(var(--ink-soft), var(--ink-soft)) 0 4px / 100% 2px no-repeat;
}
.bunting-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 8px 2px 4px;
  scrollbar-width: none;
}
.bunting-row::-webkit-scrollbar { display: none; }
.flag {
  flex: none;
  width: auto;
  min-width: 68px;
  padding: 6px 9px 17px;
  text-align: center;
  font-family: var(--serif);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
  color: #FFF9EF;
  /* rectangle body + pointed tail: text lives in the wide zone,
     so letters can never be clipped by a narrowing triangle */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 13px), 50% 100%, 0 calc(100% - 13px));
  transform-origin: top center;
  transition: transform .15s;
  position: relative;
}
.flag:active { transform: scaleY(.94); }
.flag.f-red { background: var(--red); }
.flag.f-teal { background: var(--teal); }
.flag.f-mustard { background: var(--mustard); color: var(--ink); }
.flag.f-ink { background: var(--ink); }
.flag.f-pink { background: var(--pink); color: var(--ink); }
.flag.is-on { box-shadow: inset 0 0 0 3px #FFF9EF; }
.flag.is-on::after {
  content: '★';
  position: absolute;
  left: 50%; bottom: 1px;
  transform: translateX(-50%);
  font-size: 9px;
  color: #FFF9EF;
  line-height: 1;
}
.flag.f-mustard.is-on::after { color: var(--ink); }

/* ═══ 3) HEADLINER — big carousel tickets ════════════════════════ */
.headliner-sec { margin-top: var(--sec-gap); }
.liner-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 16px 18px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.liner-track::-webkit-scrollbar { display: none; }
.liner-card {
  flex: none;
  width: calc(100% - 8px);
  scroll-snap-align: center;
  display: flex;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: 0 5px 0 rgba(51, 36, 26, .22);
  overflow: hidden;
  position: relative;
}
.liner-art {
  width: 44%;
  flex: none;
  position: relative;
  background: var(--paper-deep);
}
.liner-art img { width: 100%; height: 100%; object-fit: cover; }
.liner-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg,
    rgba(255, 246, 233, .16) 0 8px, transparent 8px 16px);
  pointer-events: none;
}
.liner-stub {
  flex: 1;
  min-width: 0;
  padding: 14px 14px 12px 18px;
  display: flex;
  flex-direction: column;
  border-left: 2.5px dashed rgba(51, 36, 26, .35);
  position: relative;
}
.liner-stub::before,
.liner-stub::after {
  content: '';
  position: absolute;
  left: -11px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  z-index: 2;
}
.liner-stub::before { top: -13px; }
.liner-stub::after { bottom: -13px; }
.liner-tag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--mustard);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 7px;
}
.liner-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.liner-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.liner-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.liner-no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.liner-play {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--red);
  color: #FFF9EF;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 7px 14px;
  box-shadow: 0 2.5px 0 var(--ink);
  transition: transform .12s;
}
.liner-card:active .liner-play { transform: translateY(2px); box-shadow: none; }
.liner-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: -4px;
}
.liner-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
}
.liner-dot.on { background: var(--red); }

/* ═══ 4) LUCKY WALL — numbered ball machine ══════════════════════ */
.lucky-sec { margin-top: var(--sec-gap); }
.ball-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  background: var(--teal);
  background-image: repeating-linear-gradient(90deg,
    rgba(255, 246, 233, .06) 0 26px, transparent 26px 52px);
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  padding: 16px 12px 14px;
}
.ball {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.ball-orb {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background:
    radial-gradient(circle at 32% 28%, #FFFDF7 0 18%, transparent 40%),
    var(--mustard);
  box-shadow: 0 3px 0 rgba(51, 36, 26, .3);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform .15s;
}
.ball:hover .ball-orb { transform: translateY(-3px) rotate(-4deg); }
.ball-orb img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(51, 36, 26, .3);
}
.ball-no {
  position: absolute;
  top: -7px; right: -7px;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  background: var(--red);
  color: #FFF9EF;
  border: 2px solid var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0 4px;
}
.ball-nm {
  font-size: 11px;
  font-weight: 600;
  color: #FFF9EF;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 5) PUNCH CARD — daily plays loyalty card ═══════════════════ */
.punch-sec { margin-top: var(--sec-gap); }
.punch-card {
  background: var(--blush);
  background-image: repeating-linear-gradient(45deg,
    rgba(226, 61, 46, .05) 0 10px, transparent 10px 20px);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-pop);
  padding: 16px 14px 14px;
}
.punch-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 2px dashed rgba(51, 36, 26, .35);
  padding-bottom: 10px;
  margin-bottom: 12px;
}
.punch-hd b {
  font-family: var(--serif);
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.punch-hd span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.punch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.punch-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.punch-hole {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--card);
  border: 2.5px dashed var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .15s, border-color .15s;
}
.punch-slot:hover .punch-hole {
  transform: scale(1.07);
  border-style: solid;
  border-color: var(--red);
}
.punch-hole img {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.punch-slot-nm {
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 6) PRIZE SHELF — wooden shelves with rosettes ══════════════ */
.shelf-sec { margin-top: var(--sec-gap); }
.shelf-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 0 4px;
}
.prize {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding-bottom: 6px;
}
.prize-img {
  width: 58px; height: 58px;
  border-radius: 12px;
  border: 2.5px solid var(--ink);
  background: var(--card);
  box-shadow: 0 3px 0 rgba(51, 36, 26, .22);
  overflow: hidden;
  position: relative;
  transition: transform .15s;
}
.prize:hover .prize-img { transform: translateY(-3px); }
.prize-img img { width: 100%; height: 100%; object-fit: cover; }
.prize-rose {
  position: absolute;
  top: -8px; left: -8px;
  width: 22px; height: 22px;
  background: var(--red);
  border: 2px solid var(--ink);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #FFF9EF;
  font-size: 10px;
  box-shadow: 0 1.5px 0 rgba(51, 36, 26, .3);
}
.prize-nm {
  font-size: 11px;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prize-stars {
  font-size: 9px;
  color: var(--mustard-deep);
  letter-spacing: 1px;
}
.prize-stars .off { color: rgba(122, 106, 88, .35); }
.shelf-board {
  height: 12px;
  margin: 2px 0 16px;
  background: linear-gradient(var(--board) 0 60%, var(--board-deep) 60% 100%);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 3px 0 rgba(51, 36, 26, .2);
}

/* ═══ 7) THE MIDWAY — horizontal strip of category stalls ════════ */
.midway-sec { margin-top: var(--sec-gap); }
.midway-note {
  font-size: 12px;
  color: var(--ink-soft);
  margin: -6px 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.midway-note svg { flex: none; opacity: .6; }
.midway-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 14px 16px 20px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.midway-track::-webkit-scrollbar { display: none; }
.stall {
  flex: none;
  width: 236px;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stall-awning {
  height: 34px;
  position: relative;
  border-bottom: 2.5px solid var(--ink);
}
.stall-awning::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 16px;
  background: radial-gradient(circle at 8px -4px, transparent 9px, inherit 10px);
}
.aw-red { background: repeating-linear-gradient(90deg, var(--red) 0 24px, #FFF9EF 24px 48px); }
.aw-teal { background: repeating-linear-gradient(90deg, var(--teal) 0 24px, #FFF9EF 24px 48px); }
.aw-mustard { background: repeating-linear-gradient(90deg, var(--mustard) 0 24px, #FFF9EF 24px 48px); }
.aw-ink { background: repeating-linear-gradient(90deg, var(--ink) 0 24px, #FFF9EF 24px 48px); }
.aw-pink { background: repeating-linear-gradient(90deg, var(--pink) 0 24px, #FFF9EF 24px 48px); }
.stall-name {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 10px 8px;
}
.stall-count {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--ink-soft);
  text-transform: none;
  margin-top: 1px;
}
.stall-counter {
  background: var(--paper-deep);
  border-top: 2px dashed rgba(51, 36, 26, .3);
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 8px;
}
.stall-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stall-game img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--ink);
  background: var(--card);
}
.stall-game p {
  font-size: 10.5px;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stall-more {
  margin: 0 10px 10px;
  text-align: center;
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal-deep);
  border: 2px dashed var(--teal);
  border-radius: 10px;
  padding: 7px;
}

/* ═══ 8) TICKET BOOTH — full catalog as ticket rows ══════════════ */
.booth-sec { margin-top: var(--sec-gap); }
.booth-list { display: flex; flex-direction: column; gap: 10px; }
.booth-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  padding: 8px 12px 8px 8px;
  position: relative;
}
.booth-no {
  position: absolute;
  top: -8px; left: 52px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 1px 7px;
  z-index: 2;
}
.booth-thumb {
  width: 62px; height: 62px;
  flex: none;
  border-radius: 10px;
  border: 2px solid var(--ink);
  overflow: hidden;
  background: var(--paper-deep);
}
.booth-thumb img { width: 100%; height: 100%; object-fit: cover; }
.booth-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.booth-nm {
  display: block;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.booth-desc {
  display: block;
  font-size: 11.5px;
  color: var(--ink-soft);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px 0 5px;
}
.booth-chip {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #FFF9EF;
  border-radius: 4px;
  padding: 1.5px 7px;
}
.chip-red { background: var(--red); }
.chip-teal { background: var(--teal); }
.chip-mustard { background: var(--mustard); color: var(--ink); }
.chip-ink { background: var(--ink); }
.chip-pink { background: var(--pink); color: var(--ink); }
.booth-rip {
  flex: none;
  width: 34px;
  height: 100%;
  min-height: 62px;
  border-left: 2px dashed rgba(51, 36, 26, .35);
  display: grid;
  place-items: center;
  font-size: 15px;
  color: var(--red);
  font-weight: 700;
}
.ripmore-wrap { display: flex; justify-content: center; margin-top: 16px; }
.ripmore {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: var(--mustard);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 30px;
  padding: 11px 30px;
  box-shadow: 0 4px 0 var(--ink);
  transition: transform .12s;
}
.ripmore:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

/* ═══ 9b) GOLDFISH POND — a teal pool of bowls to scoop ══════════ */
.pond-sec { margin-top: var(--sec-gap); }
.pond {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px 8px;
  background:
    radial-gradient(rgba(255, 246, 233, .09) 1.5px, transparent 1.5px),
    linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  background-size: 22px 22px, 100% 100%;
  border: 2.5px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-pop);
  padding: 16px 12px 18px;
  overflow: hidden;
}
.fish {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  z-index: 1;
}
.fish-bowl {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 253, 247, .9) 0 14%, transparent 38%),
    var(--blush);
  box-shadow: 0 3px 0 rgba(51, 36, 26, .35);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .15s;
}
.fish:hover .fish-bowl { transform: translateY(-3px) scale(1.05); }
.fish-bowl img {
  width: 38px; height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.fish-ripple {
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px dashed rgba(30, 127, 116, .5);
  pointer-events: none;
}
.fish-nm {
  font-size: 11px;
  font-weight: 600;
  color: #FFF9EF;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pond-weeds {
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 18px;
  background: radial-gradient(circle at 8px 0, var(--teal-deep) 7px, transparent 8px) repeat-x;
  background-size: 18px 14px;
  pointer-events: none;
}

/* ═══ 9c) FORTUNE TELLER — dark tent with tarot cards ════════════ */
.fortune-sec { margin-top: var(--sec-gap); }
.fortune-tent {
  position: relative;
  background:
    radial-gradient(rgba(242, 169, 59, .16) 1px, transparent 1.4px),
    radial-gradient(rgba(246, 198, 192, .1) 1px, transparent 1.4px),
    var(--ink);
  background-size: 30px 30px, 44px 44px, 100% 100%;
  background-position: 0 0, 15px 22px, 0 0;
  border: 2.5px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow-pop);
  padding: 16px 0 16px;
  overflow: hidden;
}
.tarot-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 16px 6px;
  margin: 0 -16px;
  scrollbar-width: none;
}
.tarot-track::-webkit-scrollbar { display: none; }
.tarot {
  flex: none;
  width: 108px;
  background: var(--card);
  border: 2.5px solid var(--mustard-deep);
  border-radius: 12px 12px 6px 6px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .35);
  padding: 22px 8px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  position: relative;
  transition: transform .15s;
}
.tarot:hover { transform: translateY(-4px); }
.tarot-tag {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--mustard);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 1.5px 7px;
  white-space: nowrap;
}
.tarot-frame {
  width: 62px; height: 62px;
  border-radius: 50%;
  border: 2px solid var(--mustard-deep);
  background: var(--blush);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.tarot-frame img {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
}
.tarot-nm {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.tarot-fate {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--ink-soft);
  text-align: center;
  border-top: 1.5px dashed rgba(122, 106, 88, .4);
  padding-top: 4px;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 9d) MERRY-GO-ROUND — carousel seat row ═════════════════════ */
.carousel-sec { margin-top: var(--sec-gap); }
.carousel-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 10px 16px 18px;
  margin: 0 -16px;
  background:
    linear-gradient(rgba(122, 106, 88, .35), rgba(122, 106, 88, .35)) 0 12px / 100% 2px no-repeat;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.merry {
  flex: none;
  width: 78px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.merry-top {
  width: 58px; height: 26px;
  border: 2.5px solid var(--ink);
  border-bottom: none;
  border-radius: 58px 58px 0 0;
  position: relative;
}
.merry-top::after {
  content: '';
  position: absolute;
  left: 50%; top: -9px;
  transform: translateX(-50%);
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--mustard);
  border: 2px solid var(--ink);
}
.mt-0 { background: repeating-linear-gradient(90deg, var(--red) 0 12px, #FFF9EF 12px 24px); }
.mt-1 { background: repeating-linear-gradient(90deg, var(--teal) 0 12px, #FFF9EF 12px 24px); }
.mt-2 { background: repeating-linear-gradient(90deg, var(--mustard) 0 12px, #FFF9EF 12px 24px); }
.merry-pole {
  width: 5px;
  height: 14px;
  background: linear-gradient(90deg, var(--mustard-deep), var(--mustard), var(--mustard-deep));
  border: 1.5px solid var(--ink);
  border-top: none;
  border-bottom: none;
}
.merry-seat {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--card);
  box-shadow: 0 3px 0 rgba(51, 36, 26, .25);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform .15s;
}
.merry:hover .merry-seat { transform: translateY(-3px); }
.merry-seat img {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.merry-nm {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══ 9) TURNSTILE — filter / search results view ════════════════ */
.turnstile {
  margin-top: 20px;
  background: var(--teal);
  background-image: repeating-linear-gradient(105deg,
    rgba(255, 246, 233, .07) 0 22px, transparent 22px 44px);
  border: 2.5px solid var(--ink);
  border-radius: 18px 18px 0 0;
  box-shadow: var(--shadow-pop);
  color: #FFF9EF;
  padding: 14px 14px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.turnstile::after {
  content: '';
  position: absolute;
}
.ts-back {
  flex: none;
  background: #FFF9EF;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 10px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 6px 12px;
  box-shadow: 0 2px 0 rgba(51, 36, 26, .4);
}
.ts-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ts-count {
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--mustard);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 20px;
  padding: 2px 10px;
}
.stack-sec { padding-top: 14px; }
.stack-list { display: flex; flex-direction: column; gap: 12px; }
.stack-row {
  display: flex;
  align-items: stretch;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  position: relative;
}
.stack-img {
  width: 96px;
  flex: none;
  background: var(--paper-deep);
  border-right: 2.5px dashed rgba(51, 36, 26, .35);
}
.stack-img img { width: 100%; height: 100%; object-fit: cover; }
.stack-body {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.stack-nm {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stack-desc {
  font-size: 11.5px;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.stack-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.stack-no {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--ink-soft);
}
.empty-tent {
  text-align: center;
  padding: 44px 20px;
}
.empty-tent p {
  font-family: var(--serif);
  font-size: 42px;
  margin-bottom: 10px;
}
.empty-tent span { color: var(--ink-soft); }

/* ═══ 10) COUPON FOOTER — tear-off footer voucher ════════════════ */
.coupon-foot {
  margin-top: 46px;
  background: var(--red);
  background-image: repeating-linear-gradient(105deg,
    rgba(255, 255, 255, .07) 0 22px, transparent 22px 44px);
  color: #FFF9EF;
  padding: 26px 0 30px;
  position: relative;
}
.coupon-foot::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 14px;
  background: radial-gradient(circle at 10px 0, transparent 10px, var(--red) 11px);
  background-size: 24px 14px;
  background-repeat: repeat-x;
}
.coupon-in {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.coupon-brand {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(51, 36, 26, .35);
}
.coupon-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.coupon-links a {
  border: 1.5px dashed rgba(255, 249, 239, .8);
  border-radius: 20px;
  padding: 5px 16px;
}
.coupon-links a:active { background: rgba(255, 249, 239, .18); }
.coupon-bar {
  width: 150px; height: 26px;
  background: repeating-linear-gradient(90deg,
    #FFF9EF 0 3px, transparent 3px 6px, #FFF9EF 6px 8px, transparent 8px 12px);
  opacity: .85;
  border-radius: 2px;
}
.coupon-fine {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  opacity: .7;
}

/* ── loading marquee ────────────────────────────────────────────── */
.loading-full {
  position: fixed;
  inset: 0;
  background: var(--paper);
  display: grid;
  place-items: center;
  z-index: 90;
}
.loading-circus {
  text-align: center;
}
.loading-ring {
  width: 58px; height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 5px dashed var(--red);
  animation: spin 1.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-txt {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── back-to-top: balloon button ────────────────────────────────── */
.totop-btn {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 60;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--mustard);
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  display: grid;
  place-items: center;
}
.totop-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }

/* ── focus visibility ───────────────────────────────────────────── */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── motion & responsive ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loading-ring { animation: none; }
  * { transition: none !important; }
}

@media (min-width: 480px) {
  .liner-card { width: 84%; }
  .ball-wall { grid-template-columns: repeat(6, 1fr); }
  .punch-grid { grid-template-columns: repeat(4, 1fr); }
  .shelf-row { grid-template-columns: repeat(4, 1fr); }
  .pond { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 379px) {
  .ball-wall { grid-template-columns: repeat(3, 1fr); }
  .punch-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .punch-hole { width: 46px; height: 46px; }
  .punch-hole img { width: 38px; height: 38px; }
  .shelf-row { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .prize-img { width: 52px; height: 52px; }
  .plaque-title { font-size: 18px; }
  .pond { grid-template-columns: repeat(3, 1fr); }
  .fish-bowl { width: 48px; height: 48px; }
  .fish-bowl img { width: 34px; height: 34px; }
}
