/* ==========================================================================
   Burn Games — Cornholio Edition · shared design system
   Aesthetic: grungy late-night Tel-Aviv diner / laminated mission-menu.
   RTL-native (dir="rtl"), responsive, reduced-motion safe.
   ========================================================================== */

/* ---- Fonts (Hebrew) ------------------------------------------------------ */
/* Suez One = heavy slab display ("menu master" headers).
   Heebo = clean body. Amatic SC = chalk-scrawl accents/stamps. */
@import url('https://fonts.googleapis.com/css2?family=Suez+One&family=Heebo:wght@300;400;500;700;900&family=Amatic+SC:wght@700&display=swap');

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Diner-at-night base */
  --ink:        #0d0b0a;   /* near-black grease */
  --ink-2:      #17130f;   /* panel */
  --char:       #211a14;   /* charcoal card */
  --smoke:      #2e2620;   /* borders / dividers */

  /* Fire palette */
  --ember:      #ff5722;   /* primary flame */
  --ember-hot:  #ff8a3d;   /* highlight flame */
  --amber:      #ffb300;   /* menu gold */
  --char-red:   #b3200f;   /* deep coal red */

  /* Neon diner sign */
  --neon:       #ff2e88;   /* hot pink neon */
  --neon-cyan:  #24e0d0;   /* secondary neon */

  /* Paper / chalk */
  --paper:      #f4ead2;   /* laminated menu card */
  --paper-2:    #e9dabd;   /* aged edge */
  --chalk:      #f2efe6;
  --chalk-dim:  #cbb89a;

  /* Ink on paper */
  --paper-ink:  #241a10;
  --paper-fade: #6b5a3e;

  /* Stamps */
  --stamp-ok:   #2f8f4e;   /* מאושר green */
  --stamp-no:   #c62828;   /* נפסל red */

  /* Type */
  --f-display: 'Suez One', 'Georgia', serif;
  --f-body:    'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-chalk:   'Amatic SC', 'Heebo', cursive;

  /* Rhythm */
  --wrap: 1080px;
  --gap: clamp(1rem, 3vw, 2rem);
  --radius: 6px;
  --shadow: 0 12px 34px rgba(0,0,0,.55);
  --shadow-card: 0 8px 22px rgba(0,0,0,.4);
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  color: var(--chalk);
  background: var(--ink);
  line-height: 1.65;
  font-weight: 400;
  /* grease-stain vignette + subtle grain */
  background-image:
    radial-gradient(120% 80% at 85% -10%, rgba(255,87,34,.10), transparent 55%),
    radial-gradient(90% 60% at 10% 110%, rgba(255,46,136,.08), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  background-attachment: fixed, fixed, scroll;
}
img { max-width: 100%; display: block; }
a { color: var(--ember-hot); text-decoration: none; }
a:hover { color: var(--amber); }

/* ---- Layout -------------------------------------------------------------- */
.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.section { padding-block: clamp(3rem, 8vw, 6rem); }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* ---- Type scale ---------------------------------------------------------- */
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 8vw, 5rem); }
h2 { font-size: clamp(1.9rem, 5vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3.4vw, 1.9rem); }
p  { margin: 0 0 1rem; }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.35rem); color: var(--chalk-dim); }
.fine { font-size: .82rem; color: var(--paper-fade); }
.chalk { font-family: var(--f-chalk); font-size: 1.5em; color: var(--chalk-dim); letter-spacing: .02em; }

.flame-text {
  background: linear-gradient(180deg, var(--amber), var(--ember) 55%, var(--char-red));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 0 rgba(0,0,0,.25);
}

/* ---- Chalkboard header band --------------------------------------------- */
.chalkboard {
  background: #12211a;
  background-image:
    radial-gradient(140% 120% at 50% 0%, rgba(255,255,255,.05), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23c)' opacity='.06'/%3E%3C/svg%3E");
  border-block: 3px solid #06110c;
  box-shadow: inset 0 0 60px rgba(0,0,0,.6);
}

/* ---- Nav ----------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .7rem clamp(1rem, 4vw, 2rem);
  background: rgba(13,11,10,.86);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--smoke);
}
.nav__brand { font-family: var(--f-display); font-size: 1.15rem; color: var(--chalk); display: flex; align-items: center; gap: .5rem; }
.nav__brand .dot { color: var(--ember); }
.nav__links { display: flex; gap: .25rem 1.1rem; flex-wrap: wrap; margin-inline-start: auto; }
.nav__links a { color: var(--chalk-dim); font-weight: 500; font-size: .95rem; }
.nav__links a:hover, .nav__links a[aria-current] { color: var(--ember-hot); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--f-body); font-weight: 700; font-size: 1.02rem;
  padding: .85rem 1.6rem; border-radius: var(--radius);
  border: 2px solid transparent; cursor: pointer; text-align: center;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--fire {
  color: #1a0d04;
  background: linear-gradient(180deg, var(--ember-hot), var(--ember));
  box-shadow: 0 8px 0 var(--char-red), 0 14px 26px rgba(255,87,34,.35);
}
.btn--fire:hover { color: #1a0d04; box-shadow: 0 6px 0 var(--char-red), 0 12px 22px rgba(255,87,34,.45); transform: translateY(2px); }
.btn--neon {
  color: var(--neon); background: transparent; border-color: var(--neon);
  box-shadow: 0 0 12px rgba(255,46,136,.35), inset 0 0 12px rgba(255,46,136,.15);
  text-shadow: 0 0 8px rgba(255,46,136,.5);
}
.btn--neon:hover { color: #fff; background: rgba(255,46,136,.12); }
.btn--ghost { color: var(--chalk-dim); border-color: var(--smoke); }
.btn--ghost:hover { color: var(--chalk); border-color: var(--chalk-dim); }
.btn--block { width: 100%; }

/* WhatsApp (charcoal per house style) */
.btn--wa { color: var(--chalk); background: #1f1a15; border-color: var(--smoke); }
.btn--wa:hover { color: #fff; border-color: var(--stamp-ok); }

/* ---- Countdown ----------------------------------------------------------- */
.countdown { display: flex; gap: clamp(.5rem, 2vw, 1.1rem); justify-content: center; flex-wrap: wrap; }
.count-cell {
  min-width: 74px; padding: .8rem 1rem; text-align: center;
  background: var(--char); border: 1px solid var(--smoke); border-radius: var(--radius);
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255,255,255,.04);
}
.count-cell b {
  display: block; font-family: var(--f-display); font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--amber); line-height: 1; font-variant-numeric: tabular-nums;
}
.count-cell span { font-size: .78rem; color: var(--chalk-dim); letter-spacing: .04em; }

/* ---- Menu / course dividers --------------------------------------------- */
.course-rule {
  display: flex; align-items: center; gap: 1rem; margin: 2.2rem 0 1.4rem;
  font-family: var(--f-display); color: var(--amber);
}
.course-rule::before, .course-rule::after {
  content: ""; height: 2px; flex: 1;
  background: repeating-linear-gradient(90deg, var(--smoke) 0 10px, transparent 10px 16px);
}
.course-rule .pts {
  font-family: var(--f-body); font-weight: 700; font-size: .8rem; color: #1a0d04;
  background: var(--amber); padding: .15rem .6rem; border-radius: 999px;
}

/* ---- Cards: receipt / ticket -------------------------------------------- */
.card {
  background: var(--char); border: 1px solid var(--smoke); border-radius: var(--radius);
  padding: 1.4rem 1.5rem; box-shadow: var(--shadow-card);
}
.paper-card {
  position: relative; color: var(--paper-ink);
  background: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.06)),
    radial-gradient(60% 40% at 20% 0%, rgba(179,32,15,.06), transparent 60%);
  border: 1px solid var(--paper-2); border-radius: var(--radius);
  padding: 1.5rem 1.6rem; box-shadow: var(--shadow-card);
}
.paper-card h3 { color: var(--char-red); }
/* perforated receipt edge */
.ticket {
  position: relative; background: var(--paper); color: var(--paper-ink);
  padding: 1.4rem 1.5rem;
  -webkit-mask:
    radial-gradient(9px at 9px 50%, transparent 98%, #000) 0 / 100% 20px repeat-y;
}

/* ---- Rubber stamps ------------------------------------------------------- */
.stamp {
  display: inline-block; font-family: var(--f-display); font-weight: 700;
  padding: .25rem .8rem; border: 3px solid currentColor; border-radius: 4px;
  transform: rotate(-8deg); opacity: .9; letter-spacing: .04em;
  text-transform: none; mix-blend-mode: multiply;
}
.stamp--ok { color: var(--stamp-ok); }
.stamp--no { color: var(--stamp-no); }
.stamp--kit { color: var(--neon); transform: rotate(6deg); }

/* ---- Grid ---------------------------------------------------------------- */
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---- Badges / meta ------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  padding: .25rem .7rem; border-radius: 999px;
  border: 1px solid var(--smoke); color: var(--chalk-dim); background: rgba(0,0,0,.25);
}
.badge--18 { color: var(--neon); border-color: var(--neon); }
.badge--live { color: var(--neon-cyan); border-color: var(--neon-cyan); }
.badge--live .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--neon-cyan);
  box-shadow: 0 0 8px var(--neon-cyan); animation: pulse 1.6s ease-in-out infinite;
}

/* ---- Disclaimer strip (dark mock-legal) --------------------------------- */
.disclaimer {
  border: 1px dashed var(--smoke); border-radius: var(--radius);
  padding: 1rem 1.2rem; color: var(--paper-fade); font-size: .85rem;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0 10px, transparent 10px 20px);
}

/* ---- Forms --------------------------------------------------------------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--chalk); }
.field input, .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; color: var(--chalk);
  background: var(--ink-2); border: 1px solid var(--smoke); border-radius: var(--radius);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--ember); outline-offset: 1px; border-color: var(--ember);
}
.check { display: flex; gap: .6rem; align-items: flex-start; }
.check input { width: auto; margin-top: .35rem; }

/* ---- Footer -------------------------------------------------------------- */
.footer { border-top: 2px solid var(--smoke); color: var(--paper-fade); font-size: .88rem; }

/* ---- Animations (reduced-motion safe) ------------------------------------ */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes flicker { 0%,100% { opacity: 1; } 45% { opacity: .82; } 50% { opacity: .55; } 55% { opacity: .9; } }
.neon-flicker { animation: flicker 4s infinite steps(1); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Utilities ----------------------------------------------------------- */
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .8rem; }
.cluster--center { justify-content: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
