/* ============================================================
   Cannington Snooker Lounge — Design System
   Single accent: green. One radius system. No em-dashes.
   Display: Space Grotesk · Body: Outfit
   ============================================================ */

:root {
  /* Brand — green is the ONLY accent */
  --green: #008000;          /* exact logo green */
  --green-deep: #006400;
  --green-soft: #0a7320;     /* dark logo-green, legible on light */
  --green-bright: #009a00;   /* button hover */
  --felt: #0a4d1f;           /* dark green table felt (tiles) */

  /* Neutrals — light theme */
  --ink: #ffffff;            /* inputs / lightest surfaces */
  --bg: #f4f7f1;             /* page background, faint green */
  --surface: #ffffff;        /* cards */
  --surface-2: #eef2e9;      /* alt / hover */
  --line: #e1e7db;           /* hairline borders */
  --line-2: #cdd8c6;         /* stronger borders */

  --cream: #0c140e;          /* headings / strongest text */
  --text: #243026;           /* body text */
  --muted: #5d6a58;          /* secondary text */
  --muted-2: #707c6c;        /* tertiary text */

  /* One radius system */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 22px 50px -26px rgba(20, 45, 25, 0.28);

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Outfit", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: 0.1px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle felt grain background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(0, 128, 0, 0.14), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(0, 100, 0, 0.14), transparent 55%);
  pointer-events: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 16px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--cream);
}

::selection { background: var(--green); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 7vw, 84px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-soft);
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--green);
  display: inline-block;
}

.h-display { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.h-section { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.lead { color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.18rem); max-width: 56ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  border: 1.5px solid transparent;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-bright); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-2); color: var(--cream); }
.btn--ghost:hover { border-color: var(--green); color: var(--green-soft); transform: translateY(-2px); }
.btn--block { width: 100%; justify-content: center; }
.btn--sm { padding: 10px 18px; font-size: 13.5px; }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.nav.is-scrolled { background: rgba(244, 247, 241, 0.92); border-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
/* navbar: logo only, no wordmark, slightly larger */
.nav .brand__name { display: none; }
.nav .brand img { width: 68px; height: 68px; border-radius: 13px; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; color: var(--cream); line-height: 1.05; }
.brand__name span { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.28em; color: var(--green-soft); text-transform: uppercase; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 15px; color: var(--muted); font-weight: 500; transition: color 0.2s var(--ease); position: relative; }
.nav__links a:hover, .nav__links a.active { color: var(--cream); }
.nav__links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px; background: var(--green);
}
.nav__actions { display: flex; align-items: center; gap: 14px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); font-weight: 600; font-size: 14px; transition: border-color 0.2s var(--ease); }
.cart-btn:hover { border-color: var(--green); }
.cart-count { min-width: 20px; height: 20px; padding-inline: 6px; border-radius: var(--r-pill); background: var(--green); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.nav__toggle { display: none; width: 44px; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line-2); }
.nav__toggle span { display: block; width: 18px; height: 2px; background: var(--cream); margin: 3px auto; transition: 0.25s var(--ease); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 8vw, 90px); padding-bottom: clamp(60px, 9vw, 120px); overflow: hidden; }

/* full-screen clean video banner hero */
.hero--video { padding: 0; position: relative; height: calc(100vh - 76px); height: calc(100svh - 76px); min-height: 460px; overflow: hidden; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; background: #04130a; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(3, 16, 8, 0.12) 0%, transparent 22%);
}
/* relocated welcome band */
.welcome { text-align: center; }
.welcome .lead { margin-inline: auto; }
.welcome .hero__cta { justify-content: center; }
.welcome .hero__stats { display: flex; gap: 40px; margin-top: 40px; flex-wrap: wrap; justify-content: center; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__title { margin: 22px 0 20px; }
.hero__title .pop { color: var(--green-soft); position: relative; }
.hero__stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.stat__num { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; color: var(--cream); }
.stat__label { font-size: 13px; color: var(--muted-2); letter-spacing: 0.04em; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.hero__visual { position: relative; }
.hero__visual img { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.hero__badge {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-md);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow);
}
.hero__badge .ball8 { width: 46px; height: 46px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #2a2a2a, #000 70%); display: grid; place-items: center; color: var(--cream); font-family: var(--font-display); font-weight: 700; border: 2px solid #1a1a1a; }
.hero__badge .ball8 b { background: #fff; color: #000; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.hero__badge small { color: var(--muted); font-size: 12px; }
.hero__badge strong { display: block; color: var(--cream); font-family: var(--font-display); font-size: 15px; }

/* marquee strip */
.strip { border-block: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.strip__track { display: flex; gap: 56px; padding-block: 16px; white-space: nowrap; animation: marquee 28s linear infinite; }
.strip__track span { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 56px; }
.strip__track span::after { content: "●"; color: var(--green); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Section header ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(36px, 5vw, 60px); flex-wrap: wrap; }
.sec-head__text { max-width: 60ch; }
.sec-head h2 { margin: 16px 0 14px; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 30px; transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.feat:hover { border-color: var(--line-2); transform: translateY(-4px); background: var(--surface-2); }
.feat__icon { width: 50px; height: 50px; border-radius: var(--r-sm); background: rgba(0,128,0,0.12); color: var(--green-soft); display: grid; place-items: center; margin-bottom: 20px; }
.feat__icon svg { width: 24px; height: 24px; }
.feat h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feat p { color: var(--muted); font-size: 15.5px; }
.feat--wide { grid-column: span 6; }
.feat--third { grid-column: span 4; }
.feat--half { grid-column: span 6; }

/* ---------- Tables showcase ---------- */
.tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tcard { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.tcard__img { aspect-ratio: 4/3; overflow: hidden; }
.tcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tcard:hover .tcard__img img { transform: scale(1.06); }
.tcard__body { padding: 22px 22px 26px; }
.tcard__body h3 { font-size: 1.25rem; margin-bottom: 6px; }
.tcard__meta { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; }
.price { font-family: var(--font-display); font-weight: 700; color: var(--cream); font-size: 1.4rem; }
.price small { color: var(--muted-2); font-weight: 500; font-size: 13px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-soft); background: rgba(0,128,0,0.12); padding: 6px 12px; border-radius: var(--r-pill); }

/* ---------- Offer band (the booking combo offer) ---------- */
.offer { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); background: linear-gradient(120deg, #e9f4ea, #d9eede 75%); }
.offer__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding: clamp(32px, 5vw, 56px); }
.offer__inner img { border-radius: var(--r-md); aspect-ratio: 16/11; object-fit: cover; border: 1px solid rgba(255,255,255,0.08); }
.offer h2 { font-size: clamp(1.8rem, 3.4vw, 3rem); }
.offer ul { list-style: none; margin: 22px 0 28px; display: grid; gap: 12px; }
.offer li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); }
.offer li svg { color: var(--green-soft); flex: none; margin-top: 3px; }
.offer__price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.offer__price .now { font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: var(--cream); }
.offer__price .was { color: var(--muted-2); text-decoration: line-through; font-size: 1.2rem; }
.offer__price .save { background: var(--green); color: #fff; font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: var(--r-pill); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); position: relative; }
.step__n { counter-increment: step; font-family: var(--font-display); font-weight: 700; color: var(--green-soft); font-size: 14px; letter-spacing: 0.1em; }
.step__n::before { content: "0" counter(step); }
.step h3 { font-size: 1.15rem; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; border-radius: var(--r-lg); border: 1px solid var(--line-2); background: var(--surface); padding: clamp(48px, 7vw, 88px) var(--gutter); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(0,128,0,0.14), transparent 70%); pointer-events: none; }
.cta-band h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto 30px; }
.cta-band .hero__cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface-2); padding-block: clamp(56px, 7vw, 80px) 40px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { font-family: var(--font-display); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 18px; }
.footer__links { display: grid; gap: 12px; }
.footer__links a { color: var(--muted); font-size: 15px; transition: color 0.2s var(--ease); }
.footer__links a:hover { color: var(--green-soft); }
.footer__brand p { color: var(--muted); font-size: 15px; max-width: 34ch; margin-top: 16px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.footer__bottom p { color: var(--muted-2); font-size: 13.5px; }

/* ---------- Forms / panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; background: var(--ink); border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm); color: var(--cream); transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,128,0,0.18); }
.textarea { resize: vertical; min-height: 96px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* choice chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 11px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); color: var(--muted); font-weight: 600; font-size: 14px; transition: 0.2s var(--ease); }
.chip:hover { border-color: var(--line-2); color: var(--cream); }
.chip.is-active { border-color: var(--green); background: rgba(0,128,0,0.12); color: var(--green-soft); }
.chip:disabled, .chip.is-off { opacity: 0.3; cursor: not-allowed; }
.chip:disabled:hover, .chip.is-off:hover { border-color: var(--line-2); color: var(--muted); }

/* slot picker */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 10px; }
.slot {
  padding: 12px 8px; text-align: center; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2); color: var(--muted);
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px;
  transition: 0.18s var(--ease); white-space: nowrap;
}
.slot:hover:not(:disabled) { border-color: var(--green); color: var(--cream); transform: translateY(-1px); }
.slot.is-active { border-color: var(--green); background: rgba(0,128,0,0.14); color: var(--green-soft); }
.slot:disabled { opacity: 0.28; cursor: not-allowed; }
.slot-hint { font-size: 13px; color: var(--muted); margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.slot-hint svg { color: var(--green-soft); flex: none; }
.slot-empty { color: var(--muted-2); font-size: 14px; padding: 8px 0; }

/* ---------- Admin console ---------- */
.admin-top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.admin-top__in { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.admin-badge { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green-soft); background: rgba(0, 128, 0, 0.13); padding: 5px 11px; border-radius: var(--r-pill); }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }

.acards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 30px; }
.acard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.acard .k { font-size: 12px; color: var(--muted-2); letter-spacing: 0.04em; text-transform: uppercase; }
.acard .v { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--cream); margin-top: 10px; }
.acard .v small { font-size: 0.95rem; color: var(--muted); font-weight: 500; }
.acard--accent { border-color: var(--green-deep); background: linear-gradient(150deg, rgba(0,128,0,0.10), var(--surface) 70%); }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .input, .toolbar .select { width: auto; }
.toolbar__search { flex: 1; min-width: 200px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
table.atable { width: 100%; border-collapse: collapse; min-width: 940px; }
.atable th { text-align: left; font-family: var(--font-display); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.atable td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text); vertical-align: middle; }
.atable tr:last-child td { border-bottom: none; }
.atable tbody tr:hover td { background: var(--surface-2); }
.atable .ref { font-family: var(--font-display); font-weight: 600; color: var(--green-soft); white-space: nowrap; }
.atable .strong { color: var(--cream); font-weight: 600; }
.atable .sub { display: block; font-size: 12.5px; color: var(--muted-2); margin-top: 2px; max-width: 220px; }
.atable .num { font-family: var(--font-display); font-weight: 600; color: var(--cream); }

.status-select { padding: 7px 12px; border-radius: var(--r-pill); border: 1.5px solid var(--line-2); background: var(--ink); color: var(--cream); font-size: 13px; font-weight: 600; cursor: pointer; }
.status-select[data-s="confirmed"] { border-color: var(--green); color: var(--green-soft); }
.status-select[data-s="seated"] { border-color: #d99c1f; color: #8a6310; }
.status-select[data-s="no-show"] { border-color: var(--line-2); color: var(--muted); }
.status-select[data-s="cancelled"] { border-color: #d27a77; color: #c0392b; }

.admin-empty { text-align: center; color: var(--muted); padding: 70px 20px; }
.admin-login { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: var(--bg); padding: 24px; }
.admin-login__card { width: min(420px, 92vw); text-align: center; }
.admin-login__card .brand { justify-content: center; margin-bottom: 22px; }

@media (max-width: 1000px) { .acards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .acards { grid-template-columns: 1fr; } .toolbar__search { min-width: 0; flex-basis: 100%; } }

/* toggle switch */
.addon { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); transition: 0.25s var(--ease); }
.addon.is-on { border-style: solid; border-color: var(--green); background: rgba(0,128,0,0.07); }
.switch { width: 52px; height: 30px; border-radius: var(--r-pill); background: var(--line-2); position: relative; flex: none; transition: background 0.25s var(--ease); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: 0.25s var(--ease); }
.switch.is-on { background: var(--green); }
.switch.is-on::after { transform: translateX(22px); }

/* summary sticky */
.summary { position: sticky; top: 100px; }
.summary__line { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.summary__line span:last-child { color: var(--cream); font-weight: 600; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 18px; border-top: 1.5px solid var(--line-2); }
.summary__total b { font-family: var(--font-display); font-size: 1.9rem; color: var(--cream); }

/* ---------- Page hero (interior) ---------- */
.phero { padding-block: clamp(56px, 8vw, 96px) clamp(32px, 4vw, 48px); }
.phero h1 { margin: 18px 0 16px; }

/* ---------- Tournaments ---------- */
.tourn-grid { display: grid; gap: 18px; }
.tourn {
  display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 26px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.tourn:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tourn__date { text-align: center; padding-right: 24px; border-right: 1px solid var(--line); min-width: 76px; }
.tourn__date .d { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--green-soft); line-height: 1; }
.tourn__date .m { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-top: 4px; }
.tourn__info h3 { font-size: 1.3rem; margin-bottom: 6px; }
.tourn__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tourn__meta { font-size: 14px; color: var(--muted); }
.tourn__side { text-align: right; display: grid; gap: 10px; justify-items: end; }
.pill { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 5px 11px; border-radius: var(--r-pill); }
.pill--green { color: var(--green-soft); background: rgba(0,128,0,0.13); }
.pill--amber { color: #8a6310; background: rgba(224,179,77,0.20); }
.pill--full { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-2); }
.tourn__admin { display: flex; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); transition: 0.2s var(--ease); }
.icon-btn:hover { color: var(--cream); border-color: var(--green); }
.icon-btn--danger:hover { color: #ff6b6b; border-color: #ff6b6b; }

/* organizer banner */
.org-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 22px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); margin-bottom: 28px; flex-wrap: wrap; }
.org-bar__l { display: flex; align-items: center; gap: 12px; font-size: 14.5px; color: var(--muted); }

/* ---------- Shop / menu ---------- */
.shop-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.product:hover { border-color: var(--line-2); transform: translateY(-3px); }
.product__img { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.product__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.product:hover .product__img img { transform: scale(1.05); }
.product__cat { position: absolute; top: 12px; left: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: rgba(8,11,9,0.7); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: var(--r-pill); }
.product__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product__body h3 { font-size: 1.15rem; }
.product__body p { color: var(--muted); font-size: 14px; flex: 1; }
.product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }

/* cart drawer */
.scrim { position: fixed; inset: 0; background: rgba(4,6,5,0.6); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: 0.3s var(--ease); z-index: 90; }
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); background: var(--surface); border-left: 1px solid var(--line-2); z-index: 95; transform: translateX(100%); transition: transform 0.4s var(--ease); display: flex; flex-direction: column; }
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.3rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.drawer__foot { padding: 22px 24px; border-top: 1px solid var(--line); }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; }
.cart-item h4 { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--cream); }
.cart-item .ci-price { color: var(--muted); font-size: 13.5px; }
.qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line-2); border-radius: var(--r-pill); overflow: hidden; }
.qty button { width: 30px; height: 30px; color: var(--muted); font-size: 16px; transition: 0.15s; }
.qty button:hover { color: var(--green-soft); background: var(--surface-2); }
.qty span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; color: var(--cream); }
.cart-empty { text-align: center; color: var(--muted); padding: 60px 20px; }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--surface-2); border: 1px solid var(--green); color: var(--cream); padding: 13px 22px; border-radius: var(--r-pill); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: 0.3s var(--ease); z-index: 120; display: flex; align-items: center; gap: 10px; }
.toast.is-show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.toast svg { color: var(--green-soft); }

/* confirmation card */
.confirm { text-align: center; }
.confirm__check { width: 76px; height: 76px; border-radius: 50%; background: rgba(0,128,0,0.14); color: var(--green-soft); display: grid; place-items: center; margin: 0 auto 22px; }

/* ---------- Nav dropdown (Games) ---------- */
.nav__drop { position: relative; }
.nav__drop-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav__drop-btn:hover, .nav__drop-btn.active { color: var(--cream); }
.nav__drop-btn svg { transition: transform 0.25s var(--ease); }
.nav__drop.is-open .nav__drop-btn svg { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 216px; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: 8px; display: flex; flex-direction: column;
  opacity: 0; visibility: hidden; transition: 0.25s var(--ease); box-shadow: var(--shadow); z-index: 90;
}
.nav__menu::before { content: ""; position: absolute; top: -16px; left: 0; right: 0; height: 16px; }
.nav__drop.is-open .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav__menu a { padding: 11px 14px; border-radius: var(--r-sm); font-size: 14.5px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.nav__menu a:hover, .nav__menu a.active { background: var(--surface-2); color: var(--green-soft); }
.nav__menu a.active::after { display: none; }
@media (min-width: 761px) {
  .nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
  .nav__drop:hover .nav__drop-btn svg { transform: rotate(180deg); }
}

/* ---------- Table grids (pool / snooker) ---------- */
.table-legend { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.legend-item b { color: var(--cream); font-family: var(--font-display); }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--av { background: var(--green); } .dot--play { background: #e0b34d; } .dot--res { background: var(--muted-2); }

.ttables { display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); gap: 18px; }
.ttable { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); transition: border-color 0.25s var(--ease), transform 0.25s var(--ease); }
.ttable:hover { border-color: var(--line-2); transform: translateY(-4px); }
.ttable__visual { position: relative; aspect-ratio: 4/3; }
.ttable__visual .tile { position: absolute; inset: 0; }
.ttable__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 6vw, 60px); color: rgba(255, 255, 255, 0.85); z-index: 1; }
.ttable__num { position: absolute; top: 12px; left: 12px; font-family: var(--font-display); font-weight: 600; font-size: 12.5px; color: #fff; background: rgba(8, 11, 9, 0.6); backdrop-filter: blur(6px); padding: 5px 11px; border-radius: var(--r-pill); z-index: 2; }
.ttable__status { position: absolute; top: 12px; right: 12px; z-index: 2; }
.ttable__body { padding: 16px 18px 18px; }
.ttable__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ttable__hint { font-size: 12.5px; color: var(--muted); margin-bottom: 4px; }

/* ---------- Gallery ---------- */
.gallery { columns: 3; column-gap: 18px; }
.gitem { break-inside: avoid; margin-bottom: 18px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); position: relative; cursor: pointer; }
.gitem .tile { aspect-ratio: var(--ar, 4 / 3); }
.gitem .tile__glyph { transition: transform 0.5s var(--ease); }
.gitem:hover .tile__glyph { transform: scale(1.1); }
.gitem__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 16px 16px; background: linear-gradient(to top, rgba(4, 6, 5, 0.88), transparent); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: #fff; }
.gitem__cap span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: rgba(255, 255, 255, 0.72); margin-top: 2px; }
@media (max-width: 900px) { .gallery { columns: 2; } }
@media (max-width: 560px) { .gallery { columns: 1; } }

.lightbox { position: fixed; inset: 0; z-index: 130; background: rgba(4, 6, 5, 0.9); backdrop-filter: blur(8px); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: 0.3s var(--ease); padding: 24px; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__card { width: min(560px, 92vw); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-2); transform: scale(0.96); transition: 0.3s var(--ease); }
.lightbox.is-open .lightbox__card { transform: scale(1); }
.lightbox__card .tile { aspect-ratio: 4 / 3; }
.lightbox__card .tile__glyph { font-size: 110px; }
.lightbox__cap { padding: 20px 24px; background: var(--surface); font-family: var(--font-display); font-weight: 600; color: var(--cream); font-size: 1.2rem; }
.lightbox__cap span { display: block; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--muted); margin-top: 4px; }
.lightbox__close { position: absolute; top: 20px; right: 20px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); color: #fff; display: grid; place-items: center; background: rgba(8, 11, 9, 0.6); transition: 0.2s var(--ease); }
.lightbox__close:hover { border-color: var(--green-bright); color: #fff; }

/* mobile: dropdown becomes a nested column inside the open hamburger menu */
@media (max-width: 760px) {
  .nav.is-open .nav__drop { width: 100%; }
  .nav.is-open .nav__drop-btn { width: 100%; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: none; background: transparent; padding: 4px 0 10px 14px; min-width: 0; }
  .nav.is-open .nav__menu::before { display: none; }
  .nav.is-open .nav__menu a { padding: 12px 0; }
}

/* ---------- Branded visual tiles (no external images, always render) ---------- */
.tile {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(150deg, var(--felt), #052211 75%);
  overflow: hidden; isolation: isolate;
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.4px);
  background-size: 14px 14px;
}
.tile__glyph { font-size: clamp(48px, 8vw, 84px); line-height: 1; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.5)); }
.tile--warm { background: linear-gradient(150deg, #2a1606, #3d2208 70%); }
.tile--dark { background: linear-gradient(150deg, #14181a, #0a0d0e 70%); }
.tile--amber { background: linear-gradient(150deg, #3a2a07, #2a1d05 70%); }
.tile--brand { background: linear-gradient(150deg, var(--felt), #041d0f 75%); }
.tile__cushion { position: absolute; inset: 14px; border: 7px solid #20351f; border-radius: 14px; box-shadow: inset 0 0 0 3px #5a3a1a, inset 0 14px 40px rgba(0,0,0,0.5); pointer-events: none; }
.tile__pocket { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: #050a05; box-shadow: inset 0 2px 4px rgba(0,0,0,0.8); }
.tile__pocket.tl { top: 8px; left: 8px; } .tile__pocket.tr { top: 8px; right: 8px; }
.tile__pocket.bl { bottom: 8px; left: 8px; } .tile__pocket.br { bottom: 8px; right: 8px; }

/* hero SVG table frame */
.hero__visual .frame { border-radius: var(--r-lg); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(160deg, var(--felt), #04190d); }

/* ---------- Reveal animation (degrades w/o JS & reduced-motion) ---------- */
.reveal { opacity: 0; transform: translateY(28px); }
.is-revealed .reveal, .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; }
  .offer__inner { grid-template-columns: 1fr; }
  .offer__inner img { order: -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tables, .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .feat--wide, .feat--third, .feat--half { grid-column: span 6; }
  .summary { position: static; }
}
@media (max-width: 760px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links { display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 12px var(--gutter) 20px; }
  .nav.is-open .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__links a.active::after { display: none; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .tables, .shop-grid, .steps { grid-template-columns: 1fr; }
  .features .feat { grid-column: span 12 !important; }
  .tourn { grid-template-columns: 1fr; text-align: left; }
  .tourn__date { display: inline-flex; gap: 8px; align-items: baseline; border-right: none; border-bottom: 1px solid var(--line); padding: 0 0 12px; width: 100%; }
  .tourn__side { text-align: left; justify-items: start; }
  .footer__top { grid-template-columns: 1fr; }
  .hero__stats { gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .strip__track { animation: none; }
}
