/* RINDEE CAFÉ — Warm Roastery Paper & Caramel Mini-Game Demo
   Palette: Warm Oat Paper (#f7efe2), Milk Foam (#fffaf1), Espresso Roast (#3d2316),
            Salted Caramel (#c47431), Terracotta Accent (#c84b26), Honey Gold (#e8a838), Matcha Sage (#4b7355)
   100% local (zero CDN), subtle local SVG paper grain, hand-drawn rounded tactile feel,
   mobile-first (390x844) + desktop (1440px), full prefers-reduced-motion support. */

:root {
  --bg: #f7efe2;
  --surface: #fffaf1;
  --surface-alt: #eedec7;
  --ink: #2c1a11;
  --muted: #6c4f3d;
  --espresso: #3d2316;
  --espresso-deep: #24140c;
  --caramel: #c47431;
  --caramel-deep: #9c5820;
  --caramel-soft: #f6e0c2;
  --accent: #c84b26;
  --accent-hover: #a63a1a;
  --accent-rim: #8a2c12;
  --gold: #e8a838;
  --sage: #4b7355;
  --sage-soft: #e6efe3;
  --danger: #bf2f2a;
  --border-soft: #d7bfa1;
  --border-warm: #c7a680;
  --shadow-card: 0 4px 0 #dec8ab, 0 12px 26px rgba(44, 26, 17, 0.08);
  --shadow-soft: 0 3px 0 #dfc8ab;
  --font-disp: "Sukhumvit Set", "Leelawadee UI", "Thonburi", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --font-body: "Leelawadee UI", "Sukhumvit Set", "Thonburi", "Noto Sans Thai", system-ui, -apple-system, sans-serif;
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 14% 8%, rgba(232, 168, 56, 0.14), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(196, 116, 49, 0.11), transparent 38%);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.56;
  overflow-x: hidden;
  position: relative;
}

/* Subtle tactile local paper-grain overlay (zero external CDN) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("assets/paper-grain.svg");
  background-repeat: repeat;
  background-size: 220px 220px;
  opacity: 0.24;
  pointer-events: none;
  z-index: 40;
}

/* Language toggle */
body[data-lang="th"] [data-l="en"] {
  display: none;
}

body[data-lang="en"] [data-l="th"] {
  display: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--espresso);
  color: #fffaf1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 18px;
}

/* Top Bar — Warm Cafe Counter Header */
.topbar {
  background: var(--surface);
  border-bottom: 2px solid var(--border-soft);
  position: sticky;
  top: 0;
  z-index: 30;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.brand-icon {
  flex: none;
  display: block;
  border-radius: 12px;
  box-shadow: 0 2px 0 #c7a680;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.brand-name {
  font-family: var(--font-disp);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--espresso);
}

.brand-tag {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.topbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-soft);
  background: var(--bg);
  color: var(--espresso);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 0 #dec8ab;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}

.ctrl-btn:hover {
  border-color: var(--caramel);
  background: var(--surface);
}

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

.ctrl-btn:focus-visible,
.btn:focus-visible,
.tab-btn:focus-visible,
.move-btn:focus-visible,
.copy-btn:focus-visible,
.site-credit:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.ctrl-btn[aria-pressed="true"] {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fff7ea;
  box-shadow: 0 2px 0 #24140c;
}

.ctrl-btn[aria-pressed="false"] .sound-wave {
  display: none;
}

.ctrl-btn[aria-pressed="true"] .sound-mute {
  display: none;
}

.ctrl-lang {
  min-width: 44px;
  padding: 0 11px;
}

/* Buttons — Handcrafted Tactile Coaster Pills + Trick T64 Jelly overshoot */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font-family: var(--font-disp);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-primary {
  background: var(--accent);
  color: #fffaf1;
  border-color: var(--accent-rim);
  box-shadow: 0 4px 0 var(--accent-rim);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--accent-rim);
}

.btn-primary:disabled {
  background: var(--surface-alt);
  border-color: var(--border-soft);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-secondary {
  background: var(--espresso);
  color: #fff7ea;
  border-color: var(--espresso-deep);
  box-shadow: 0 4px 0 var(--espresso-deep);
}

.btn-secondary:hover {
  background: #4d2d1d;
  transform: translateY(-1px);
}

.btn-secondary:active:not(:disabled) {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--espresso-deep);
}

.btn-outline {
  background: var(--surface);
  color: var(--espresso);
  border-color: var(--border-warm);
  box-shadow: 0 3px 0 #dec8ab;
}

.btn-outline:hover {
  border-color: var(--espresso);
  background: var(--caramel-soft);
}

@keyframes jellyPop {
  0% { transform: scale(1, 1); }
  35% { transform: scale(1.06, 0.93); }
  65% { transform: scale(0.97, 1.03); }
  100% { transform: scale(1, 1); }
}

.jelly:active:not(:disabled) {
  animation: jellyPop 0.32s ease;
}

/* Trick T65: Ripple press from tap point */
.ripple-press {
  position: relative;
  overflow: hidden;
}

.ripple-ring {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 245, 228, 0.36);
  transform: scale(0);
  pointer-events: none;
  animation: rippleExpand 0.48s ease-out forwards;
}

@keyframes rippleExpand {
  to {
    transform: scale(2.4);
    opacity: 0;
  }
}

/* HERO */
.hero {
  padding: 24px 0 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  font-size: 13px;
  font-weight: 700;
  color: var(--caramel-deep);
  box-shadow: 0 2px 0 #e3cfb4;
}

.kicker-bean {
  width: 9px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  transform: rotate(-18deg);
  flex: none;
}

.hero-title {
  margin: 0 0 14px;
  font-family: var(--font-disp);
  font-size: clamp(32px, 8.8vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--espresso);
}

.title-hand {
  display: inline-block;
  color: var(--accent);
  position: relative;
}

.title-hand::after {
  content: "";
  display: block;
  width: 100%;
  height: 7px;
  margin-top: 2px;
  border-radius: 99px;
  background: rgba(232, 168, 56, 0.48);
  transform: rotate(-0.8deg);
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--muted);
  max-width: 47ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 18px;
}

.hero-actions .btn {
  flex: 1 1 auto;
}

.hero-modes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--espresso);
}

.hero-modes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mode-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.dot-terracotta { background: var(--accent); }
.dot-caramel { background: var(--caramel); }
.dot-sage { background: var(--sage); }

/* Hero Illustrated Cafe Postcard Frame */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-scene-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 2px solid var(--border-warm);
  border-radius: 30px;
  padding: 10px;
  box-shadow: 0 6px 0 #d9c0a0, 0 18px 34px rgba(44, 26, 17, 0.13);
}

.hero-cafe-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
}

.stamp-seal {
  position: absolute;
  top: -14px;
  right: -8px;
  width: 96px;
  height: 96px;
  z-index: 4;
  filter: drop-shadow(0 4px 6px rgba(44, 26, 17, 0.22));
  animation: slowSpin 28s linear infinite;
}

@keyframes slowSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Trick T11: Animated curling cafe steam */
.line-draw {
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: drawSteam 3.1s ease-in-out infinite;
}

.line-draw-2 {
  animation-delay: 0.75s;
}

.line-draw-3 {
  animation-delay: 1.45s;
}

@keyframes drawSteam {
  0% {
    stroke-dashoffset: 120;
    opacity: 0;
    transform: translateY(5px);
  }
  35% {
    opacity: 0.92;
  }
  75% {
    stroke-dashoffset: 0;
    opacity: 0.78;
    transform: translateY(-6px);
  }
  100% {
    stroke-dashoffset: -40;
    opacity: 0;
    transform: translateY(-12px);
  }
}

.lamp-cone {
  animation: lampGlow 3.6s ease-in-out infinite alternate;
}

.lamp-b .lamp-cone {
  animation-delay: 0.9s;
}

.lamp-c .lamp-cone {
  animation-delay: 1.7s;
}

@keyframes lampGlow {
  0% { opacity: 0.78; }
  100% { opacity: 1; }
}

.float-bean {
  animation: beanFloat 2.8s ease-in-out infinite alternate;
}

.bean-b { animation-delay: 0.5s; }
.bean-c { animation-delay: 1.1s; }

@keyframes beanFloat {
  0% { opacity: 0.9; }
  100% { opacity: 1; }
}

/* SCROLL MOTION MOMENT: Beans Pour Along the Scroll */
.pour-bridge {
  padding: 6px 0 18px;
  overflow: hidden;
}

.pour-bridge-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pour-svg {
  width: 100%;
  max-width: 820px;
  height: auto;
  display: block;
  overflow: visible;
}

.pour-caption {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--caramel-deep);
  text-align: center;
  letter-spacing: 0.01em;
}

/* ARCADE SECTION */
.arcade-section,
.service-section,
.game-panel,
.result-card {
  scroll-margin-top: 78px;
}

.arcade-section {
  background: var(--surface-alt);
  border-top: 2px solid var(--border-soft);
  border-bottom: 2px solid var(--border-soft);
  padding: 36px 0 48px;
  position: relative;
}

.arcade-header {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 22px;
}

.section-title {
  margin: 0 0 6px;
  font-family: var(--font-disp);
  font-size: clamp(24px, 6.2vw, 36px);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--espresso);
}

.section-sub {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.game-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--surface);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.tab-btn {
  min-height: 46px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-disp);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.tab-btn.is-active {
  background: var(--espresso);
  color: #fff7ea;
}

.arcade-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.game-panel {
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: 26px;
  padding: 15px;
  box-shadow: var(--shadow-card);
}

.is-hidden {
  display: none !important;
}

/* Game 1 HUD */
.hud-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.hud-item {
  background: var(--bg);
  border: 1.5px solid var(--border-soft);
  border-radius: 16px;
  padding: 8px 10px;
  text-align: center;
}

.hud-combo-box.is-hot {
  background: #fff0cc;
  border-color: var(--gold);
}

.hud-time-box.is-urgent {
  background: #fde5df;
  border-color: var(--accent);
}

.hud-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* Trick T36: Odometer tabular digits */
.hud-value.odometer {
  display: block;
  font-family: var(--font-disp);
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  color: var(--espresso);
}

.hud-combo-box.is-hot .hud-value {
  color: var(--accent);
}

.hud-time-box.is-urgent .hud-value {
  color: var(--danger);
}

.time-track {
  width: 100%;
  height: 10px;
  border-radius: 99px;
  background: var(--surface-alt);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  margin-bottom: 12px;
}

.time-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--caramel), var(--gold));
  border-radius: 99px;
  transform-origin: left center;
  transition: background-color 0.2s ease;
}

.time-fill.is-urgent {
  background: var(--accent);
}

.stage-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  border-radius: 20px;
  border: 3px solid var(--espresso);
  overflow: hidden;
  background: #362014;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: inset 0 0 24px rgba(24, 12, 6, 0.35);
}

#catch-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 360 / 410;
  touch-action: none;
}

.stage-overlay {
  position: absolute;
  inset: 0;
  background: rgba(36, 20, 12, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.overlay-card {
  width: 100%;
  max-width: 312px;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--border-warm);
  border-radius: 22px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(24, 12, 6, 0.32);
}

.overlay-title {
  margin: 0 0 12px;
  font-family: var(--font-disp);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--espresso);
}

.legend-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.leg-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  flex: none;
  border: 1.5px solid var(--espresso);
}

.leg-bean { background: #7b3c17; }
.leg-gold { background: var(--gold); }
.leg-stone { background: #8a95a3; border-radius: 4px; border-color: var(--danger); }

.overlay-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

.overlay-card .btn {
  width: 100%;
}

.touch-controls {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  margin-top: 12px;
  max-width: 420px;
  margin-inline: auto;
}

.move-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 2px solid var(--border-soft);
  background: var(--bg);
  color: var(--espresso);
  font-family: var(--font-disp);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 0 #dec8ab;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}

.move-btn:active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fff7ea;
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--espresso-deep);
}

.move-reset {
  font-size: 13px;
  color: var(--muted);
}

/* Game 2: Spin Wheel */
.wheel-head {
  text-align: center;
  margin-bottom: 10px;
}

.wheel-title {
  margin: 0 0 4px;
  font-family: var(--font-disp);
  font-size: 21px;
  font-weight: 800;
  color: var(--espresso);
}

.wheel-status {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.wheel-status.is-used {
  color: var(--sage);
}

.wheel-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 6px 0 14px;
}

#wheel-canvas {
  display: block;
  width: 100%;
  max-width: 326px;
  height: auto;
  aspect-ratio: 1 / 1;
}

.wheel-actions {
  display: flex;
  justify-content: center;
}

.wheel-actions .btn {
  width: 100%;
  max-width: 316px;
}

/* Result / Coupon Ticket Card — Cafe Stamp Ticket */
.result-card {
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.ticket-top {
  background: var(--espresso);
  color: #fff7ea;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.result-card.is-won .ticket-top {
  background: var(--sage);
}

.ticket-brand {
  font-family: var(--font-disp);
  font-size: 14px;
  font-weight: 800;
}

.ticket-badge {
  background: rgba(255, 247, 234, 0.22);
  color: #fffaf1;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ticket-notch-row {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  background: var(--surface);
}

.notch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 2px solid var(--border-soft);
  position: absolute;
  top: 0;
}

.notch-l { left: -13px; }
.notch-r { right: -13px; }

.notch-line {
  width: 100%;
  margin-inline: 18px;
  border-top: 2px dashed var(--border-warm);
}

.ticket-body {
  padding: 6px 18px 20px;
}

.coupon-meta {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.coupon-prize {
  margin: 0 0 6px;
  font-family: var(--font-disp);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--espresso);
}

.result-card.is-won .coupon-prize {
  color: var(--accent);
}

.coupon-stats {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.code-box {
  background: var(--bg);
  border: 2px dashed var(--border-warm);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.code-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 4px;
}

.code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.coupon-code {
  font-family: var(--font-disp);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--espresso);
  font-variant-numeric: tabular-nums;
}

.copy-btn {
  min-height: 44px;
  padding: 0 17px;
  border-radius: var(--radius-pill);
  border: 0;
  background: var(--espresso);
  color: #fff7ea;
  font-family: var(--font-disp);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.copy-btn:disabled {
  background: var(--surface-alt);
  color: var(--muted);
  cursor: not-allowed;
}

.claim-callout {
  background: var(--sage-soft);
  border: 1.5px solid #c3d7bc;
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 16px;
}

.claim-callout strong {
  display: block;
  font-family: var(--font-disp);
  font-size: 16px;
  font-weight: 800;
  color: var(--espresso);
  margin-bottom: 3px;
}

.claim-callout p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.ticket-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

/* SERVICE SECTION + Trick T28 Bento Grid */
.service-section {
  padding: 48px 0 56px;
  background: var(--bg);
}

.service-head {
  max-width: 640px;
  margin-bottom: 24px;
}

.service-intro {
  margin: 0;
  font-size: 16px;
  color: var(--muted);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.bento-tile {
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: 24px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}

.bento-accent {
  background: var(--espresso);
  border-color: var(--espresso-deep);
  color: #fff7ea;
  box-shadow: 0 4px 0 var(--espresso-deep);
}

.bento-accent .tile-title {
  color: #ffe7bf;
}

.bento-accent .tile-body {
  color: #ebd7bc;
}

.bento-cta {
  background: var(--caramel-soft);
  border-color: var(--border-warm);
}

.tile-title {
  margin: 0;
  font-family: var(--font-disp);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--espresso);
}

.tile-body {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.service-cta-btn {
  margin-top: 8px;
  align-self: flex-start;
}

/* FOOTER */
.site-footer {
  background: var(--espresso-deep);
  color: #ebd7bc;
  padding: 34px 0 40px;
  border-top: 3px solid var(--caramel);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-disp);
  font-size: 18px;
  color: #fff7ea;
  margin-bottom: 4px;
}

.footer-note {
  margin: 0;
  font-size: 14px;
  color: #d6bfa2;
}

.footer-credit-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.site-credit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: var(--espresso);
  border: 1.5px solid #6e452a;
  color: #fff7ea;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}

.site-credit:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.wd-legal-note {
  margin: 0;
  font-size: 12px;
  color: #b79c7e;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 16px);
  background: var(--espresso);
  color: #fff7ea;
  border: 1.5px solid var(--caramel);
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  z-index: 90;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Desktop Breakpoint */
@media (min-width: 820px) {
  .container {
    padding-inline: 28px;
  }

  .hero {
    padding: 40px 0 18px;
  }

  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 38px;
  }

  .hero-actions .btn {
    flex: 0 0 auto;
  }

  .hero-scene-frame {
    max-width: 470px;
  }

  .pour-bridge {
    padding: 8px 0 22px;
  }

  .arcade-section {
    padding: 50px 0 64px;
  }

  .arcade-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .game-tabs {
    width: 390px;
    flex: none;
  }

  .arcade-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 24px;
  }

  .ticket-actions {
    grid-template-columns: 1fr 1fr;
  }

  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
  }

  .bento-wide {
    grid-column: span 7;
  }

  .bento-accent {
    grid-column: span 5;
  }

  .bento-tile:nth-child(3) {
    grid-column: span 5;
  }

  .bento-cta {
    grid-column: span 7;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .footer-credit-wrap {
    align-items: flex-end;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .stamp-seal,
  .line-draw,
  .lamp-cone,
  .float-bean,
  .jelly:active,
  .ripple-ring {
    animation: none !important;
  }

  .line-draw {
    stroke-dashoffset: 0;
    opacity: 0.72;
  }

  .btn,
  .ctrl-btn,
  .tab-btn,
  .toast,
  .time-fill {
    transition: none !important;
  }
}
