/* Look follows the printed menu: dark chalkboard, white mug logo, yellow ribbon, red section titles */
:root {
  --bg: #0d0e12;
  --board: #16181d;
  --board-2: #1d2026;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f5f3ee;
  --muted: #9b9ea6;
  --red: #ee3b43;
  --yellow: #f6c21c;
  --wa: #25d366;
  --display: "Bebas Neue", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --hand: "Caveat Brush", cursive;
  --chalk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg) var(--chalk); color: var(--text); font: 400 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.view[hidden] { display: none; }
.muted { color: var(--muted); }

/* ---------- Welcome ---------- */
.home { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 28px 16px 34px; overflow: hidden; }
.logo-wrap { position: relative; width: min(250px, 64vw); aspect-ratio: 1; display: grid; place-items: center; }
.rays { position: absolute; inset: -18%; width: 136%; height: 136%; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.logo { position: relative; width: 100%; }
/* Slogan under the logo: plain text, since the logo already carries the yellow ribbon */
.ribbon { margin: 10px 0 0; color: var(--text); font: 400 22px/1.1 var(--display); letter-spacing: 0.08em; text-transform: uppercase; }
.welcome { font: 400 38px/1 var(--hand); margin: 30px 0 18px; }
.home-actions { width: 100%; max-width: 420px; display: grid; gap: 12px; }
.motto { margin: 28px 0 0; font: 400 24px/1.05 var(--display); letter-spacing: 0.03em; text-transform: uppercase; color: var(--muted); }
.motto b { font-weight: 400; color: var(--yellow); }

/* Big tap targets */
.big-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border-radius: 18px; border: 0; text-align: left; cursor: pointer; }
.big-btn svg { width: 30px; height: 30px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.big-btn b { display: block; font: 400 28px/1 var(--display); letter-spacing: 0.03em; }
.big-btn small { display: block; font-size: 13px; font-weight: 600; opacity: 0.75; margin-top: 3px; }
.menu-btn { background: var(--yellow); color: #111; box-shadow: 0 6px 0 #b8860b; }
.promo { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 14px; border: 1px dashed rgba(246, 194, 28, 0.6); background: rgba(246, 194, 28, 0.08); color: var(--text); }
.promo[hidden] { display: none; }
.promo-tag { flex: none; padding: 3px 8px; border-radius: 6px; background: var(--yellow); color: #111; font: 400 15px/1 var(--display); letter-spacing: 0.06em; }
.promo b { flex: 1; min-width: 0; font-weight: 800; text-align: left; }
.promo-go { color: var(--yellow); font-size: 22px; line-height: 1; }
.match-btn { color: #111; background: repeating-linear-gradient(90deg, #fff 0 18px, #e8e8e8 18px 36px); box-shadow: 0 6px 0 #9a9a9a; }
.party-btn { background: var(--red); color: #fff; box-shadow: 0 6px 0 #9e1f26; }
/* Short phones: keep all three buttons on the first screen */
@media (max-height: 720px) {
  .home { padding-top: 16px; }
  .logo-wrap { width: min(180px, 48vw); }
  .welcome { font-size: 32px; margin: 18px 0 12px; }
  .home .big-btn { padding: 12px 16px; }
  .home .big-btn b { font-size: 25px; }
}
.big-btn:active { transform: translateY(3px); box-shadow: none; }

/* ---------- Sub-page top bar ---------- */
.bar { position: sticky; top: 0; z-index: 11; display: grid; grid-template-columns: 40px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 12px 6px 4px; background: rgba(13, 14, 18, 0.97); border-bottom: 1px solid var(--line); }
.bar h1 { margin: 0; font: 400 28px/1 var(--display); letter-spacing: 0.04em; }
.back { width: 44px; height: 44px; display: grid; place-items: center; }
.back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bar h1 a { display: inline-block; padding: 6px 0 4px; }
.bar-link { font-size: 13px; font-weight: 700; color: var(--yellow); padding: 8px 4px; }
/* Language switch: shows the language you'd switch to */
.lang { min-width: 40px; padding: 7px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--board); color: var(--text); font: 800 12px/1 var(--body); letter-spacing: 0.06em; cursor: pointer; }
.lang-home { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 12px; z-index: 2; }

/* ---------- Menu ---------- */
.tabs { position: sticky; top: 57px; z-index: 10; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px; background: rgba(13, 14, 18, 0.97); border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--board); color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--yellow); color: #111; border-color: var(--yellow); }
.panel[hidden] { display: none; }
.panel-note { color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.sec { margin-top: 24px; }
.sec h2 { font: 800 14px/1.2 var(--body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--red); margin: 0 0 6px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows .name { font-weight: 700; text-transform: uppercase; font-size: 14.5px; letter-spacing: 0.01em; }
.rows .kcal { color: var(--muted); font-size: 11px; white-space: nowrap; }
.rows .dots { flex: 1; }
.price { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { color: var(--yellow); margin-left: 2px; }

/* Signature cards */
.quiz-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-top: 18px; padding: 12px 16px; border-radius: 14px; border: 1px dashed rgba(246, 194, 28, 0.6); background: rgba(246, 194, 28, 0.06); color: var(--yellow); font-weight: 700; cursor: pointer; text-align: left; }
.sig { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.sig.hl { animation: hl 2.4s ease-out; border-radius: 14px; }
@keyframes hl { 0%, 40% { background: rgba(246, 194, 28, 0.16); box-shadow: 0 0 0 8px rgba(246, 194, 28, 0.16); } }
.sig-img { padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.sig-img img { display: block; width: 104px; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 85%; border-radius: 12px; border: 1px solid var(--line); }
.sig-img::after { content: "⤢"; position: absolute; right: 6px; bottom: 6px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, 0.65); display: grid; place-items: center; font-size: 12px; }
.sig-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.sig-side { display: grid; justify-items: end; gap: 2px; flex: none; }
.sig-side .kcal { color: var(--muted); font-size: 11px; white-space: nowrap; }
/* Sold out today: stays on the menu, dimmed */
.out-tag { flex: none; align-self: center; font-size: 10.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; background: var(--red); padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.sig .out-tag { display: inline-block; margin-top: 8px; }
.rows li.out .name, .rows li.out .price, .sig.out h3, .sig.out .price, .sig.out p, .sig.out .chips { opacity: 0.45; }
.rows li.out .name { text-decoration: line-through; }
.sig.out .sig-img img { filter: grayscale(1); opacity: 0.6; }
.sig h3 { margin: 0; font: 400 31px/1 var(--hand); }
.sig p { margin: 6px 0 8px; color: #c9c6be; font-size: 14px; line-height: 1.45; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--board-2); color: var(--muted); }
.chips span b { color: var(--text); }

/* ---------- Matches ---------- */
.next { margin-top: 18px; padding: 22px 18px; border-radius: 18px; color: #111; text-align: center; background: repeating-linear-gradient(90deg, #fff 0 20px, #e8e8e8 20px 40px); }
.next .tag { display: inline-block; font: 400 14px/1 var(--display); letter-spacing: 0.08em; background: #111; color: #fff; padding: 6px 10px 4px; border-radius: 6px; }
.next .teams { font: 400 40px/0.95 var(--display); letter-spacing: 0.02em; margin: 12px 0 6px; }
.next .when { font-weight: 800; }
.next .comp { font-size: 13px; color: #555; margin-top: 2px; }
.next.empty .teams { font-size: 28px; }
.block { margin-top: 28px; }
.block h2 { font: 800 14px/1.2 var(--body); letter-spacing: 0.07em; text-transform: uppercase; color: var(--red); margin: 0 0 6px; }
.fixtures { list-style: none; margin: 0; padding: 0; }
.fixtures li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.fixtures b { font: 400 22px/1 var(--display); letter-spacing: 0.02em; }
.fixtures > li > span { color: var(--muted); font-size: 13px; }
.fixtures em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-weight: 800; font-size: 13px; color: var(--yellow); text-align: right; }
.reserve { padding: 18px; border-radius: 18px; background: var(--board); border: 1px solid var(--line); margin-bottom: 28px; }
.reserve form { display: grid; gap: 12px; margin: 14px 0 12px; }
.reserve label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
/* iOS draws date inputs and selects its own way (wider, taller); reset them so every field is the same box */
.reserve input, .reserve select { display: block; width: 100%; min-width: 0; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background-color: var(--bg); font-size: 16px; line-height: normal; -webkit-appearance: none; appearance: none; }
.reserve input[type="date"] { padding-top: 13px; padding-bottom: 13px; }
.reserve input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.reserve input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; }
.reserve select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239b9ea6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.two > * { min-width: 0; }
.two { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; }
.big-btn.wa { background: var(--wa); color: #06210f; }
.big-btn.call { background: var(--board-2); border: 1px solid var(--line); }
.big-btn.wa b, .big-btn.call b { font-size: 24px; }
.pending { margin: 10px 0 0; font-size: 13px; color: var(--yellow); }

/* ---------- Karaoke & party ---------- */
.party-hero { margin-top: 18px; padding: 24px 18px 22px; border-radius: 18px; text-align: center; background: var(--red); color: #fff; }
.party-hero .tag { display: inline-block; font: 400 14px/1 var(--display); letter-spacing: 0.08em; background: #111; color: #fff; padding: 6px 10px 4px; border-radius: 6px; }
.party-hero h2 { font: 400 32px/1.1 var(--hand); margin: 14px 0 8px; }
.party-hero p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #ffe5e6; }

/* Instagram link */
.ig { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--board); font-weight: 700; font-size: 14px; }
.ig[hidden] { display: none; }
.ig-pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; }
.ig svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.ig-row { text-align: center; margin: -16px 0 40px; }
.ig-row .ig { margin: 0; font-weight: 500; }
.ig-row .ig b { color: var(--yellow); }

/* Footer */
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 30px 16px 40px; margin-top: 30px; border-top: 1px solid var(--line); }
.foot p { margin: 4px 0; }
.stale { max-width: 608px; margin: 14px auto 0; padding: 10px 12px; border-radius: 10px; background: rgba(246, 194, 28, 0.12); color: var(--yellow); font-size: 13px; font-weight: 700; text-align: center; }
@media (max-width: 640px) { .stale { margin: 14px 16px 0; } }
.stale[hidden] { display: none; }

/* ---------- Dialogs ---------- */
.x { position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 18px; cursor: pointer; z-index: 1; }
.viewer { padding: 0; border: 0; background: transparent; max-width: min(460px, 94vw); max-height: 94dvh; overflow: visible; }
.viewer::backdrop { background: rgba(0, 0, 0, 0.92); }
.viewer img { display: block; max-width: 100%; max-height: 90dvh; border-radius: 14px; }
.quiz { width: min(440px, calc(100vw - 24px)); padding: 24px 20px 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--board) var(--chalk); color: var(--text); }
.quiz::backdrop { background: rgba(0, 0, 0, 0.8); }
.quiz .x { background: none; }
.quiz h2 { font: 400 38px/1 var(--hand); margin: 0; }
.quiz-step { margin: 0 0 6px; color: var(--yellow); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.quiz .q { font-size: 19px; font-weight: 700; margin: 16px 0 12px; }
.opts { display: grid; gap: 10px; }
.opts button { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--board-2); font-weight: 600; font-size: 16px; text-align: left; cursor: pointer; }
.opts button em { font-style: normal; font-size: 22px; }
.result { text-align: center; }
.result img { width: 150px; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 85%; border-radius: 14px; margin: 16px auto 10px; display: block; }
.result h3 { font: 400 42px/1 var(--hand); margin: 0; color: var(--yellow); }
.result p { color: var(--muted); margin: 8px 0 16px; }
.result .row { display: flex; gap: 10px; justify-content: center; }
.result .row button { padding: 12px 18px; border-radius: 999px; font-weight: 800; cursor: pointer; border: 1px solid var(--line); background: var(--board-2); }
.result .row button.primary { background: var(--yellow); color: #111; border-color: var(--yellow); }

@media (prefers-reduced-motion: reduce) { .rays, .sig.hl { animation: none; } }
