:root {
  --bg: #121526;
  --bg-elevated: #1b203a;
  --bg-card: #222848;
  --bg-soft: #2a3157;
  --border: #3a4475;
  --text: #f8f5ee;
  --muted: #c2c8df;
  --gold: #ffd166;
  --amber: #ff9f43;
  --crimson: #e63946;
  --teal: #2ec4b6;
  --mint: #7ae582;
  --shadow: 0 12px 32px rgba(5, 7, 18, 0.45);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: radial-gradient(circle at top center, #1e2445 0%, var(--bg) 55%, #0c0e1a 100%);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.5;
}

h1, h2, h3, h4, p {
  margin: 0 0 10px;
}

button {
  font: inherit;
  cursor: pointer;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

[hidden] {
  display: none !important;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px 42px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
}

/* Sticky Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 19, 36, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--crimson), var(--amber));
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.35);
}

.brand strong {
  display: block;
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.brand small {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.hud {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hud-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 5px 11px;
  display: flex;
  flex-direction: column;
  min-width: 88px;
  text-align: left;
  color: var(--text);
}

.hud-btn {
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.hud-btn:hover:enabled {
  border-color: var(--gold);
  transform: translateY(-1px);
}

.hud-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hud-pill strong {
  font-size: 0.96rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.hud-sub {
  font-size: 0.72rem;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.hud-time.urgent {
  border-color: var(--crimson);
  background: rgba(230, 57, 70, 0.16);
}

/* Buttons */
.btn {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 700;
  transition: filter 0.14s ease, transform 0.1s ease;
}

.btn:hover:enabled,
a.btn:hover {
  filter: brightness(1.12);
}

a.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}

.btn:active:enabled {
  transform: translateY(1px);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 13px 24px;
  font-size: 1.05rem;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #1e180c;
  border-color: var(--gold);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal), #1f9d92);
  color: #091d1b;
  border-color: var(--teal);
}

.btn-crimson {
  background: linear-gradient(135deg, var(--crimson), #c42836);
  color: #ffffff;
  border-color: #ff6b78;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
}

.btn-icon {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 1.3rem;
  line-height: 1;
  display: grid;
  place-items: center;
}

/* Intro Screen */
.intro-overlay {
  padding: 20px 0;
}

.intro-card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    var(--crimson) 0 26px,
    var(--gold) 26px 52px,
    var(--teal) 52px 78px
  );
}

.intro-card h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin-top: 8px;
}

.intro-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 68ch;
  margin-bottom: 22px;
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.intro-box {
  background: rgba(15, 19, 36, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.intro-box h3 {
  font-size: 1rem;
  color: var(--gold);
}

.intro-box p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.intro-note {
  margin: 14px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Panorama Skyline */
.skyline-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #141b33;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.skyline-wrap canvas {
  width: 100%;
  height: auto;
  display: block;
}

.skyline-overlay {
  position: absolute;
  inset: 0;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 13, 26, 0.58) 0%, rgba(10, 13, 26, 0) 55%);
}

.skyline-overlay h1 {
  font-size: clamp(1.3rem, 3.2vw, 2.2rem);
  margin: 2px 0 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.progress-wrap {
  min-width: 190px;
  background: rgba(16, 19, 36, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 8px 12px;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.progress-wrap progress {
  width: 100%;
  height: 8px;
  display: block;
  accent-color: var(--gold);
}

/* Event Banner & Toast */
.event-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, #4b2048, #692341 60%, #83342c);
  border: 2px solid var(--gold);
  box-shadow: var(--shadow);
  animation: slideIn 0.25s ease-out;
}

.event-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.event-badge {
  background: var(--gold);
  color: #211608;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.event-content p {
  margin: 2px 0 0;
  font-size: 0.92rem;
  color: #ffecee;
}

.event-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-toast {
  background: rgba(46, 196, 182, 0.18);
  border: 1px solid var(--teal);
  color: #dffcf9;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 14px;
  font-weight: 600;
}

/* Section Head & Attractions Grid */
.section-head {
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 1.35rem;
  margin-bottom: 4px;
}

.section-head p {
  color: var(--muted);
  font-size: 0.94rem;
}

.attractions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.booth-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(8, 10, 22, 0.35);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.booth-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}

/* Markisenstreifen */
.booth-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 9px;
  background: repeating-linear-gradient(
    90deg,
    var(--crimson) 0 18px,
    #fff6e5 18px 36px
  );
}

.booth-card.theme-teal::before {
  background: repeating-linear-gradient(
    90deg,
    var(--teal) 0 18px,
    #fff6e5 18px 36px
  );
}

.booth-card.theme-gold::before {
  background: repeating-linear-gradient(
    90deg,
    var(--amber) 0 18px,
    #35271a 18px 36px
  );
}

.booth-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.booth-icon {
  font-size: 2rem;
  line-height: 1;
}

.booth-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.badge {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge-stamp {
  background: rgba(122, 229, 130, 0.18);
  border-color: var(--mint);
  color: var(--mint);
}

.badge-live {
  background: rgba(255, 209, 102, 0.16);
  border-color: var(--gold);
  color: var(--gold);
}

.badge-hot {
  background: rgba(230, 57, 70, 0.22);
  border-color: #ff7582;
  color: #ffd5da;
}

.badge-royal {
  background: rgba(255, 209, 102, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}

.booth-card h3 {
  font-size: 1.12rem;
  margin: 4px 0;
}

.booth-desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.booth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price-tag {
  font-weight: 800;
  color: var(--gold);
  font-size: 0.92rem;
}

/* Modal */
dialog {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0;
  width: min(560px, 94vw);
  max-height: 90vh;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

dialog::backdrop {
  background: rgba(7, 9, 19, 0.78);
  backdrop-filter: blur(3px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.modal-head h2 {
  margin: 2px 0 0;
  font-size: 1.35rem;
}

.modal-body {
  padding: 18px 20px 22px;
  overflow-y: auto;
  max-height: calc(90vh - 82px);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.notice-box {
  background: rgba(15, 19, 36, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 0.93rem;
}

.notice-box.warn {
  border-color: var(--amber);
  background: rgba(255, 159, 67, 0.12);
}

.notice-box.good {
  border-color: var(--mint);
  background: rgba(122, 229, 130, 0.12);
}

/* Glücksrad */
.wheel-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.wheel-step {
  background: rgba(15, 19, 36, 0.72);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.wheel-step.active {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(46, 196, 182, 0.16));
  color: var(--gold);
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.22);
}

.wheel-collection {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 6px;
}

#wheelTeddy {
  width: 82px;
  flex-shrink: 0;
}

#wheelTeddy svg {
  display: block;
  width: 100%;
}

.wheel-goal-copy strong {
  display: block;
  color: var(--gold);
  font-size: 1rem;
}

.wheel-goal-copy small {
  color: var(--muted);
  font-size: 0.86rem;
}

.wheel-stage {
  position: relative;
  width: 222px;
  height: 222px;
  margin: 14px auto;
  display: grid;
  place-items: center;
}

.wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 22px solid #ffffff;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.wheel-disc {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 7px solid var(--gold);
  position: relative;
  box-shadow: 0 0 0 4px #121526, 0 10px 24px rgba(0, 0, 0, 0.45);
  transition: transform 1.05s cubic-bezier(0.18, 0.85, 0.22, 1);
}

.wheel-disc.tier-2 {
  border-color: var(--amber);
  box-shadow: 0 0 0 4px #121526, 0 0 22px rgba(255, 159, 67, 0.35);
}

.wheel-disc.tier-3 {
  border-color: #ffe28a;
  box-shadow: 0 0 0 4px #121526, 0 0 30px rgba(255, 209, 102, 0.55);
}

.wheel-hub {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 3px solid var(--gold);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.82rem;
  color: var(--gold);
  z-index: 2;
}

.wheel-legend {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.wheel-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 19, 36, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--text);
}

.wheel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wheel-buyins {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.promo-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(120deg, rgba(255, 209, 102, 0.18), rgba(230, 57, 70, 0.16));
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: 9px 12px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  color: #fff4d6;
}

.promo-strip strong {
  color: var(--gold);
}

.prize-shelf {
  margin: 1rem 0;
  padding: 1rem;
  border-radius: 14px;
  background: var(--bg-elevated);
}
.prize-shelf h2, .prize-shelf h3 { margin: 0 0 .6rem; }
.prize-shelf p { margin: .7rem 0 .35rem; }
.prize-shelf progress { width: 100%; }
.teddy-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(115px, 100%), 1fr));
  gap: .5rem;
}
.teddy-slot {
  text-align: center;
  margin: 0;
  padding: .4rem;
  background: #171d31;
  border-bottom: 4px solid #735438;
  border-radius: 8px;
}
.teddy-slot svg { width: 100%; height: 66px; filter: grayscale(1); opacity: .4; }
.teddy-slot.collected svg { opacity: 1; filter: none; }
.teddy-slot.royal-target {
  border-color: rgba(255, 209, 102, 0.45);
  box-shadow: inset 0 0 14px rgba(255, 209, 102, 0.14);
}
.teddy-slot.royal-target figcaption {
  color: var(--gold);
}
.teddy-slot small { display: block; }
.prize-box { margin-top: 1rem; }
.unboxing-stage {
  position: relative;
  width: 164px;
  height: 144px;
  margin: 0 auto;
}
.gift-base, .gift-lid {
  position: absolute;
  left: 50%;
  translate: -50% 0;
  background: linear-gradient(90deg, #227873 40%, #ffd166 40% 59%, #249089 59%);
  border: 2px solid #163e46;
  border-radius: 6px;
}
.gift-base { width: 94px; height: 52px; bottom: 12px; animation: gift-empty .4s .55s both; }
.gift-lid { width: 104px; height: 18px; bottom: 59px; animation: gift-open .75s both; }
.unboxed-art { position: absolute; inset: 4px 2px auto; height: 120px; animation: gift-appear .55s .46s both; }
.unboxed-art svg { width: 100%; height: 100%; }
.unboxed-caption { animation: gift-appear .35s .7s both; }
@keyframes gift-open {
  25% { transform: rotate(-5deg); }
  42% { transform: rotate(4deg); }
  100% { transform: translate(-24px,-58px) rotate(-23deg); opacity: 0; }
}
@keyframes gift-empty { to { opacity: 0; transform: translateY(8px); } }
@keyframes gift-appear { from { opacity: 0; transform: translateY(18px); } }
.teddy-arrival { outline: 2px solid var(--gold); }
.teddy-arrival svg { position: relative; z-index: 4; }
#shelfBackBtn { margin-top: .75rem; }
@media (prefers-reduced-motion: reduce) {
  .box-reveal * { animation-delay: 0s !important; }
}

.wheel-legend {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.cooldown-bar {
  margin: 12px 0;
}

.cooldown-bar progress {
  width: 100%;
  height: 10px;
  accent-color: var(--teal);
}

/* Minispiel-Canvas */
.minigame-canvas {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 10px auto;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #14192e;
  touch-action: manipulation;
}

.ride-hud {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ride-hud strong {
  color: var(--gold);
}

/* Listen & Pakete */
.choice-list {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.choice-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
}

.choice-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.12), var(--bg-card));
}

.choice-card small {
  display: block;
  color: var(--muted);
}

.pack-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--gold);
  color: #1f1709;
  margin-bottom: 3px;
}

/* Lose */
.ticket-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.ticket-chip {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px dashed var(--gold);
  background: rgba(255, 209, 102, 0.1);
  font-weight: 700;
  font-size: 0.9rem;
  animation: popIn 0.2s ease-out;
}

.ticket-chip.win {
  border-style: solid;
  border-color: var(--mint);
  background: rgba(122, 229, 130, 0.16);
}

.raffle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.raffle-ticket {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 112px;
  padding: 12px 10px;
  border-radius: 12px;
  border: 2px dashed var(--gold);
  background: linear-gradient(145deg, #3c2648, #242b52);
  color: var(--text);
  text-align: center;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.raffle-ticket:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #ffffff;
}

.raffle-ticket .ticket-num {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.raffle-ticket .ticket-cta {
  font-size: 0.85rem;
  color: var(--muted);
}

.raffle-ticket.opened {
  border-style: solid;
  cursor: default;
  animation: popIn 0.22s ease-out;
}

.raffle-ticket.opened.win {
  border-color: var(--mint);
  background: linear-gradient(145deg, rgba(46, 196, 182, 0.22), rgba(29, 44, 62, 0.95));
}

.raffle-ticket.opened.loss {
  border-color: var(--border);
  background: rgba(18, 21, 38, 0.78);
  opacity: 0.92;
}

.raffle-ticket .ticket-mini-svg svg {
  width: 64px;
  height: 48px;
  display: block;
}

.showcase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 20px 16px;
  border-radius: 14px;
  border: 2px solid var(--gold);
  background: radial-gradient(circle at top, rgba(255, 209, 102, 0.16), var(--bg-card) 72%);
  animation: popIn 0.24s ease-out;
}

.showcase-card.good {
  border-color: var(--mint);
  background: radial-gradient(circle at top, rgba(122, 229, 130, 0.18), var(--bg-card) 72%);
}

.showcase-card.muted {
  border-color: var(--border);
  background: var(--bg-card);
}

.showcase-card.royal {
  border-color: #ffe28a;
  background: radial-gradient(circle at top, rgba(255, 209, 102, 0.28), #291c48 72%);
  box-shadow: 0 0 28px rgba(255, 209, 102, 0.25);
}

.stamp-progress-box {
  background: rgba(15, 19, 36, 0.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.stamp-progress-box progress {
  width: 100%;
  height: 10px;
  accent-color: var(--gold);
  margin: 4px 0 10px;
}

.stamp-medal-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.stamp-medal {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  border: 1px solid var(--border);
  background: rgba(18, 21, 38, 0.75);
}

.stamp-medal.done {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.24), rgba(122, 229, 130, 0.2));
  box-shadow: 0 0 10px rgba(255, 209, 102, 0.22);
}

.stamp-medal.open {
  opacity: 0.42;
  filter: grayscale(0.8);
}

.celebration-card {
  position: relative;
  overflow: hidden;
}

.celebration-card > *:not(.confetti-layer) {
  position: relative;
  z-index: 2;
}

.ticket-art-wrap {
  position: relative;
  display: inline-block;
}

.ticket-count-pill {
  position: absolute;
  top: -8px;
  right: -12px;
  background: linear-gradient(135deg, var(--crimson), var(--amber));
  color: #ffffff;
  border: 2px solid #ffe28a;
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.royal-jackpot-pill {
  background: linear-gradient(135deg, var(--gold), var(--amber));
  color: #1e180c;
  border-color: #fff3c4;
  font-size: 0.78rem;
}

.celebration-teddies {
  width: 100%;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .celebration-teddies {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  }
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  left: calc(6% + var(--i) * 8%);
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: 0.85;
  animation: confettiFall calc(2.4s + (var(--i) * 0.14s)) linear infinite;
  animation-delay: calc(var(--i) * -0.22s);
}

.confetti-piece.c-0 { background: var(--gold); }
.confetti-piece.c-1 { background: var(--crimson); }
.confetti-piece.c-2 { background: var(--teal); }
.confetti-piece.c-3 { background: var(--mint); }

@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 0;
  }
  15% {
    opacity: 0.9;
  }
  100% {
    transform: translateY(340px) rotate(320deg);
    opacity: 0;
  }
}

.showcase-art {
  width: 170px;
  height: 128px;
  border-radius: 14px;
  background: rgba(12, 15, 30, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.showcase-art svg {
  width: 156px;
  height: 116px;
  display: block;
}

.showcase-card h3 {
  margin: 4px 0 0;
  font-size: 1.22rem;
  color: var(--gold);
}

.showcase-card p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
}

/* Queue */
.queue-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
}

.queue-box progress {
  width: 100%;
  height: 12px;
  accent-color: var(--amber);
  margin: 10px 0;
}

/* Fireworks & Summary */
.fireworks-banner {
  margin: 22px 0;
}

.fireworks-card {
  background: linear-gradient(145deg, #271b4b, #1d2240);
  border: 2px solid var(--gold);
  border-radius: 16px;
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow);
}

.summary-view {
  display: grid;
  gap: 18px;
}

.summary-hero {
  background: linear-gradient(145deg, var(--bg-card), #2d2044);
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.summary-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.kpi-card small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.kpi-card strong {
  display: block;
  font-size: 1.55rem;
  color: var(--gold);
  margin: 4px 0;
}

.kpi-card span {
  font-size: 0.85rem;
  color: var(--muted);
}

.summary-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.summary-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.bar-row {
  margin: 10px 0;
}

.bar-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.bar-track {
  height: 10px;
  background: var(--bg);
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  border-radius: 999px;
}

.bar-fill.spend {
  background: linear-gradient(90deg, var(--amber), var(--crimson));
}

.reveal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.reveal-card {
  background: rgba(15, 19, 36, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.reveal-card h4 {
  color: var(--gold);
  margin-bottom: 6px;
}

.reveal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal-card.reveal-highlight {
  grid-column: 1 / -1;
  border: 1.5px solid var(--gold);
  background: linear-gradient(155deg, rgba(30, 38, 72, 0.92), rgba(22, 46, 68, 0.88));
}

.reveal-cta-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid var(--teal);
  background: linear-gradient(135deg, rgba(46, 196, 182, 0.24), rgba(255, 209, 102, 0.22));
  box-shadow: 0 0 20px rgba(46, 196, 182, 0.22);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reveal-card .reveal-cta-text {
  flex: 1 1 320px;
  color: #fffaf0;
  font-size: 0.95rem;
}

.reveal-cta-btn {
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(255, 209, 102, 0.3);
}

.reflection-list {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--text);
}

.reflection-list li {
  margin-bottom: 8px;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 20px 28px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 920px) {
  .attractions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .summary-cols,
  .reveal-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container,
  .topbar-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
  .attractions-grid {
    grid-template-columns: 1fr;
  }
  .skyline-overlay {
    padding: 10px 12px;
    flex-direction: column;
  }
  .progress-wrap {
    width: 100%;
  }
  .intro-card {
    padding: 22px 16px;
  }
  .summary-kpis {
    grid-template-columns: 1fr;
  }
  .hud-pill {
    min-width: 74px;
    padding: 4px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .confetti-layer {
    display: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
