/* ==========================================================
   ChugZone — styles3.css
   Clean club UI with purposeful motion & subtle neon cues
   ========================================================== */

/* ---------- Tokens ---------- */
:root{
  /* base */
  --bg:        #0b0f16;
  --surface-1: #0f1420;  /* panels */
  --surface-2: #111a28;  /* hover/raised */
  --line:      rgba(255,255,255,.10);
  --line-2:    rgba(255,255,255,.16);
  --text:      #e6edf7;
  --muted:     #a7b2c5;

  /* brand (teal-first w/ amber accent) */
  --brand:     #10c3a7;
  --brand-2:   #2fd8ff;  /* cool pop */
  --amber:     #ffcc6e;

  /* component */
  --radius:    14px;
  --radius-2:  18px;

  /* shadows */
  --elev-1: 0 6px 24px rgba(0,0,0,.25);
  --elev-2: 0 10px 36px rgba(0,0,0,.35);

  /* motion */
  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-in:  cubic-bezier(.32,0,.67,0);
  --t-fast:   120ms;
  --t-med:    200ms;

  /* text sizing */
  --fs-0: clamp(.92rem, .9rem + .2vw, 1rem);
  --fs-1: clamp(1.05rem, 1rem + .3vw, 1.15rem);
  --fs-2: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
  --fs-3: clamp(2.2rem, 2rem + 1.6vw, 3.6rem);
}

/* ---------- Base / Reset ---------- */
* { box-sizing: border-box }
html, body { height: 100% }
html { -webkit-text-size-adjust: 100% }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.6 system-ui, "Segoe UI", Roboto, Inter, ui-sans-serif, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Subtle vignette instead of AI-y radial glows */
body::before{
  content:"";
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(1000px 600px at 120% -10%, rgba(47,216,255,.08), transparent 65%),
    radial-gradient(900px 500px at -20% -20%, rgba(16,195,167,.07), transparent 60%);
  opacity: .9;
}

/* Focus ring */
:where(a,button,[role="button"],.cz-btn):focus-visible{
  outline: 2px solid color-mix(in srgb, var(--brand) 70%, white);
  outline-offset: 2px;
}

/* Scrollbar (Chromium/Edge) */
:root::-webkit-scrollbar{ width: 12px; height: 12px }
:root::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 3px solid transparent; border-radius: 999px;
  background-clip: content-box;
}

/* ---------- Layout helpers ---------- */
.max{ max-width: 1220px; margin-inline: auto; padding-inline: 16px }
.row{ display:flex; align-items:center; gap: 12px }
.grid{ display:grid; gap: 16px }
.hide{ display:none !important }
.hint{ color: var(--muted); font-size: .92rem; opacity: .95 }

/* ---------- Logo & Hero ---------- */
.cz-hero{ position: relative; padding: clamp(28px, 3vw + 10px, 64px) 0 24px; z-index: 1 }
.cz-hero-inner{
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(16px, 2.4vw, 28px); align-items: center;
}
@media (max-width: 900px){ .cz-hero-inner{ grid-template-columns: 1fr } }

.cz-logo-sign{
  display:inline-flex; align-items:center; gap:.5ch;
  padding: .28rem .58rem; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface-1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
  text-decoration: none; color: var(--text);
}
.cz-logo-neon{ font-weight: 900; letter-spacing: .06em }
.cz-logo-neon span{ color: var(--brand-2) }

.cz-title{ font-size: var(--fs-3); line-height: 1.05; font-weight: 900; margin: .5rem 0 .75rem }
.cz-sub{ max-width: 48ch; color: var(--muted); font-size: var(--fs-1) }

/* ---------- Buttons (pressable, not glossy) ---------- */
.cz-cta{ display:flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 16px }
.cz-btn{
  --h: 48px;
  display:inline-flex; align-items:center; justify-content:center; gap:.6ch;
  height: var(--h); padding-inline: 16px; border-radius: 12px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: .02em;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset;
}
.cz-btn:hover{ transform: translateY(-1px); box-shadow: var(--elev-1) }
.cz-btn:active{ transform: translateY(0); box-shadow: none }

.cz-btn--primary{
  border-color: color-mix(in srgb, var(--brand) 60%, white 0%);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 92%, #0b0f16 8%), color-mix(in srgb, var(--brand) 70%, #0b0f16 30%));
  color: #001213;
  text-shadow: 0 1px 0 rgba(255,255,255,.25);
  box-shadow: 0 8px 22px rgba(16,195,167,.25), 0 1px 0 rgba(255,255,255,.08) inset;
}
.cz-btn--primary:hover{ box-shadow: 0 12px 28px rgba(16,195,167,.35) }

.cz-btn--ghost{
  background: transparent;
  border-style: dashed;
  color: var(--text);
}
.cz-btn--ghost:hover{
  border-style: solid;
  background: var(--surface-1);
}

/* ---------- Rail (featured tiles) ---------- */
.rail-wrap{
  position: relative; border-radius: var(--radius-2);
  background: var(--surface-1);
  border: 1px solid var(--line);
  padding: 12px; overflow: hidden; box-shadow: var(--elev-1);
}
.rail{
  display: flex; gap: 12px; overflow: auto; scroll-snap-type: x mandatory; padding-bottom: 6px;
}
.rail::-webkit-scrollbar{ height: 10px }
.rail::-webkit-scrollbar-thumb{
  background: var(--surface-2); border-radius: 999px; border: 3px solid transparent; background-clip: content-box;
}
.rail-arrow{
  position:absolute; top:50%; translate:0 -50%;
  width: 40px; height: 40px; border-radius: 999px;
  border:1px solid var(--line); background: rgba(11,15,22,.85); color: var(--text);
  display:grid; place-items:center; cursor:pointer; transition: background var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out);
}
.rail-arrow:hover{ background: rgba(17,26,40,.95); transform: translateY(-1px) }
.rail-arrow.left{ left: 10px } .rail-arrow.right{ right: 10px }

/* ---------- Tiles & Cards (shared look) ---------- */
.tile, .card{
  position: relative; isolation: isolate;
  min-width: 250px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px; text-decoration: none; color: inherit;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
  will-change: transform;
}
.tile:hover, .card:hover{
  transform: translateY(-2px);
  border-color: var(--line-2);
  box-shadow: var(--elev-1);
}
.tile.locked, .card.locked{ opacity: .75; filter: saturate(.85) }

.tile .icon, .card-icon{ font-size: 1.9rem }
.tile .title, .card-title{ font-weight: 900; font-size: 1.12rem; margin-top: .35rem }
.tile .sub, .card-sub{ color: var(--muted); font-size: var(--fs-0) }

.pill{
  display:inline-flex; align-items:center; gap:.4rem;
  border:1px solid var(--line);
  padding: .22rem .55rem; border-radius: 999px;
  font-size: .82rem; color: #d6e8ff; background: rgba(255,255,255,.02);
}
.pill--live{ border-color: transparent; background: linear-gradient(90deg, var(--brand), var(--brand-2)); color: #001018; font-weight: 900 }
.pill--lock{ background: rgba(255,255,255,.04); color: #cfd7e6 }

/* ---------- Steps ---------- */
.cz-steps{ padding: 22px 0 }
.steps{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px }
@media (max-width: 800px){ .steps{ grid-template-columns: 1fr } }
.step{
  background: var(--surface-1); border:1px solid var(--line); border-radius: var(--radius);
  padding: 12px; display:grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center;
}
.step-num{
  width:44px; height:44px; border-radius: 50%;
  display:grid; place-items:center; color:#1b1300; font-weight:900;
  background: linear-gradient(180deg, var(--amber), #f2a94b);
  box-shadow: 0 8px 22px rgba(242,169,75,.25);
}
.step-title{ font-weight: 900 }
.step-sub{ color: var(--muted); margin-top: 2px }

/* ---------- Games grid ---------- */
.cz-games{ padding: 12px 0 28px }
.grid-head{ display:flex; justify-content:space-between; align-items: end; margin-bottom: 8px }
.grid-head h2{ font-size: 1.5rem; margin: 0 }

.cards{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px }
@media (max-width: 980px){ .cards{ grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 640px){ .cards{ grid-template-columns: 1fr } }
.card-chips{ display:flex; flex-wrap:wrap; gap:.4rem; margin-top:.55rem }

/* ---------- Community ---------- */
.cz-community{ padding: 12px 0 34px }
.people{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px }
@media (max-width: 980px){ .people{ grid-template-columns: repeat(3, 1fr) } }
@media (max-width: 720px){ .people{ grid-template-columns: repeat(2, 1fr) } }

.person{
  display:flex; gap: 12px; background: var(--surface-1);
  border:1px solid var(--line); border-radius: var(--radius); padding: 10px;
}
.person .avatar{
  width: 52px; height: 52px; border-radius: 12px; border:1px solid rgba(255,255,255,.12); object-fit: cover;
}
.person .name{ font-weight: 900 }
.person .bio{ color: var(--muted); font-size: .94rem }
.person .link{ color: var(--brand-2); text-decoration: none; font-weight: 700 }
.pill--host{
  border-color: transparent;
  background: linear-gradient(90deg, var(--amber), #ffb45a);
  color: #2a1b00; font-weight: 900;
}

/* ---------- Footer ---------- */
.cz-footer{
  padding: 14px 0; border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
}
.cz-footer .row{ justify-content: space-between; color: var(--muted) }

/* ---------- Accessibility & Motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important }
}

/* ---------- Minor class aliases used by your HTML ---------- */
.cz-legal{ margin-left: 4px; color: var(--muted); font-size: .92rem }

/* ---------- Optional: tilt smoothing targets ---------- */
.tile, .card{ transform: translateZ(0); backface-visibility: hidden }

/* ---------- Fine-tuned headings ---------- */
h1,h2,h3{ line-height: 1.1; letter-spacing: .01em }
