/* ==========================================================
   ix3bet — landing page
   Theme: black / red / gold
   ========================================================== */
:root {
  --bg: #0a0507;
  --bg-2: #13080b;
  --panel: #1a0c10;
  --panel-2: #220f14;
  --line: rgba(245, 196, 81, .18);
  --red: #e0162b;
  --red-dark: #8f0012;
  --gold: #f5c451;
  --gold-light: #fff1bf;
  --gold-dark: #a8700f;
  --text: #f4ece0;
  --muted: #b9a99a;
  --radius: 16px;
  --grad-gold: linear-gradient(180deg, #fff1bf 0%, #f5c451 45%, #d99a1e 60%, #a8700f 100%);
  --grad-red: linear-gradient(180deg, #ff4b4b 0%, #c4001a 60%, #8f0012 100%);
  --shadow: 0 18px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: "Kanit", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 1000; }
.skip:focus { left: 8px; }

.gold {
  background: var(--grad-gold);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 20px; border-radius: 999px;
  font-weight: 500; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: 14px 28px; font-size: 1.05rem; }
.btn--gold {
  background: var(--grad-gold); color: #2a1500; font-weight: 700;
  box-shadow: 0 6px 20px rgba(245, 196, 81, .35), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn--gold:hover { box-shadow: 0 10px 28px rgba(245, 196, 81, .55); }
.btn--ghost { border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.btn--ghost:hover { border-color: var(--gold); }
.btn--outline { border: 1.5px solid var(--gold); color: var(--gold-light); }
.btn--outline:hover { background: rgba(245,196,81,.1); }

/* ---------- Top bar ---------- */
.topbar { background: var(--grad-red); font-size: .85rem; overflow: hidden; }
.topbar__inner { padding: 6px 0; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee span { display: inline-block; padding-left: 100%; animation: marquee 28s linear infinite; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 5, 7, .82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 78px; }
.brand img { height: 56px; width: auto; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: var(--gold-light); background: rgba(245,196,81,.08); }
.header__actions { display: flex; gap: 10px; align-items: center; }
.burger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--gold); transition: .3s; }
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 70% at 78% 40%, rgba(224, 22, 43, .38), transparent 70%),
    radial-gradient(40% 50% at 10% 10%, rgba(245, 196, 81, .12), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.015) 0 2px, transparent 2px 14px),
    var(--bg);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.chip {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(245,196,81,.08);
  color: var(--gold-light); font-size: .9rem; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.12; font-weight: 900; margin-bottom: 18px; }
.hero p { color: var(--muted); max-width: 540px; font-size: 1.05rem; margin-bottom: 28px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 2rem; font-weight: 700; color: var(--gold); line-height: 1.1; }
.hero__stats span { color: var(--muted); font-size: .9rem; }

.hero__art { position: relative; aspect-ratio: 1; max-width: 520px; justify-self: center; width: 100%; }
.wheel {
  position: absolute; inset: 8%;
  border-radius: 50%;
  padding: 10px;
  background: var(--grad-gold);
  box-shadow: 0 0 80px rgba(224, 22, 43, .5), var(--shadow);
}
.wheel svg { width: 100%; height: 100%; animation: spin 40s linear infinite; border-radius: 50%; }
.wheel__pin {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border-left: 14px solid transparent; border-right: 14px solid transparent;
  border-top: 26px solid var(--gold-light); filter: drop-shadow(0 3px 4px rgba(0,0,0,.5));
}
@keyframes spin { to { transform: rotate(360deg); } }

.card {
  position: absolute; width: 96px; height: 136px; border-radius: 12px;
  background: #fffaf0; color: #111; box-shadow: var(--shadow);
  display: flex; flex-direction: column; justify-content: space-between; padding: 8px 10px;
  font-weight: 900; border: 2px solid var(--gold);
}
.card span { font-size: 1.6rem; line-height: 1; }
.card i { font-style: normal; font-size: 3rem; align-self: center; margin-bottom: 18px; }
.card--a { left: -2%; bottom: 8%; transform: rotate(-14deg); animation: float 6s ease-in-out infinite; }
.card--k { left: 12%; bottom: 2%; transform: rotate(6deg); color: var(--red); animation: float 6s ease-in-out infinite -2s; }
.card--k span { color: var(--red); }

.chip3d {
  position: absolute; width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: .95rem;
  border: 6px dashed #fff; box-shadow: 0 0 0 4px currentColor, var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.chip3d--1 { right: 2%; top: 4%; background: var(--red); color: var(--red); }
.chip3d--1, .chip3d--2 { -webkit-text-fill-color: #fff; }
.chip3d--2 { right: -2%; bottom: 18%; background: #111; color: #111; animation-delay: -2.5s; border-color: var(--gold); }
.ball { position: absolute; left: 4%; top: 6%; font-size: 3.4rem; animation: float 7s ease-in-out infinite -1s; filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); }
@keyframes float { 50% { translate: 0 -14px; } }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section__head { text-align: center; margin-bottom: 40px; }
.section__head h2, .classic h2, .devices h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.2; font-weight: 700; margin-bottom: 10px; }
.section__head p { color: var(--muted); }
.eyebrow { display: inline-block; letter-spacing: .3em; font-size: .78rem; color: var(--red); font-weight: 700; margin-bottom: 8px; }

/* ---------- Categories ---------- */
.categories { padding-top: 0; margin-top: -40px; position: relative; }
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat {
  position: relative; overflow: hidden; padding: 26px 22px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.cat::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(224,22,43,.35), transparent 70%);
}
.cat:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 14px 36px rgba(224,22,43,.25); }
.cat__icon { font-size: 2.4rem; margin-bottom: 10px; }
.cat h3 { font-size: 1.3rem; color: var(--gold-light); }
.cat p { color: var(--muted); font-size: .92rem; }

/* ---------- Classic / casino ---------- */
.classic { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.classic__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.classic__text p { color: var(--muted); margin-bottom: 18px; }
.ticks li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "◆"; position: absolute; left: 4px; color: var(--gold); }
.numbers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--gold); }
.n--r { background: var(--red); }
.n--b { background: #111; }
.n--g { background: #0f8a3c; }

.table { padding: 14px; border-radius: 28px; background: var(--grad-gold); box-shadow: var(--shadow); }
.table__felt {
  border-radius: 18px; padding: 28px 22px;
  background: radial-gradient(ellipse at top, #8a0a19, #3d0209 80%);
  border: 2px solid rgba(0,0,0,.4);
}
.table__label { text-align: center; letter-spacing: .5em; font-weight: 900; color: var(--gold); margin-bottom: 18px; font-size: 1.3rem; }
.table__row { display: grid; grid-template-columns: 1fr .8fr 1fr; gap: 10px; margin-bottom: 20px; }
.spot { border: 2px solid rgba(245,196,81,.6); border-radius: 12px; padding: 16px 8px; text-align: center; display: flex; flex-direction: column; }
.spot b { font-size: 1rem; }
.spot small { color: var(--gold-light); opacity: .8; }
.spot--player { background: rgba(30, 80, 200, .35); }
.spot--tie { background: rgba(15, 138, 60, .35); }
.spot--banker { background: rgba(224, 22, 43, .45); }
.roads {
  display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 1fr; gap: 3px;
  background: #fffaf0; padding: 6px; border-radius: 8px;
}
.roads i { aspect-ratio: 1; border-radius: 50%; border: 3px solid; }
.roads i.p { border-color: #1e50c8; }
.roads i.b { border-color: var(--red); }
.roads i.t { border-color: #0f8a3c; }
.roads i.e { border: 0; }

/* ---------- Sports ---------- */
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.tab, .filter {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); transition: .2s;
}
.tab:hover, .filter:hover { color: var(--text); border-color: var(--gold); }
.tab.is-active, .filter.is-active { background: var(--grad-red); color: #fff; border-color: transparent; }
.matches { display: grid; gap: 12px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Games ---------- */
.games { background: var(--bg-2); }
.game-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.game {
  position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 14px;
  border: 1px solid var(--line); isolation: isolate; cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}
.game::before { content: attr(data-icon); position: absolute; inset: 0; display: grid; place-items: center; font-size: 4rem; z-index: -1; padding-bottom: 30%; transition: transform .3s; }
.game::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85)); }
.game:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(0,0,0,.5); }
.game:hover::before { transform: scale(1.15) rotate(-6deg); }
.game h3 { font-size: 1rem; line-height: 1.2; }
.game small { color: var(--gold); font-size: .78rem; }
.game .tag { position: absolute; top: 10px; left: 10px; font-size: .7rem; padding: 2px 8px; border-radius: 999px; background: var(--red); font-weight: 700; }
.game .play {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55);
  opacity: 0; transition: .25s; font-weight: 700; color: var(--gold-light);
}
.game:hover .play { opacity: 1; }

/* ---------- Providers ---------- */
.filters { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.prov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.prov {
  display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  transition: transform .25s, border-color .25s; animation: fadeUp .35s both;
}
.prov:hover { transform: translateY(-4px); border-color: var(--gold); }
.prov__logo {
  flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 900; font-size: .95rem; color: #fff; letter-spacing: -.5px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.prov h3 { font-size: 1rem; line-height: 1.2; }
.prov small { color: var(--muted); font-size: .8rem; }
.note { text-align: center; color: var(--muted); font-size: .8rem; margin-top: 22px; opacity: .7; }

/* ---------- About ---------- */
.about { background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  padding: 28px 22px; border-radius: var(--radius); text-align: center;
  background: var(--panel); border: 1px solid var(--line); transition: .25s;
}
.feature:hover { border-color: var(--gold); transform: translateY(-4px); }
.feature__icon {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem;
  background: var(--grad-red); box-shadow: 0 0 0 4px rgba(245,196,81,.35);
}
.feature h3 { color: var(--gold-light); margin-bottom: 6px; font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: .92rem; }

/* ---------- Devices ---------- */
.devices { background: radial-gradient(50% 80% at 80% 50%, rgba(224,22,43,.25), transparent 70%), var(--bg-2); }
.devices__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.devices p { color: var(--muted); margin-bottom: 24px; max-width: 520px; }
.phone {
  justify-self: center; width: 250px; aspect-ratio: 9/18; border-radius: 36px; padding: 10px;
  background: var(--grad-gold); box-shadow: var(--shadow), 0 0 60px rgba(224,22,43,.4);
  transform: rotate(6deg);
}
.phone__screen {
  height: 100%; border-radius: 28px; background: linear-gradient(180deg, #1c0a0e, #070304);
  padding: 30px 16px; display: flex; flex-direction: column; gap: 18px; align-items: center;
}
.phone__screen img { width: 85%; }
.phone__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.phone__tiles span { aspect-ratio: 1; display: grid; place-items: center; font-size: 1.6rem; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.phone__btn { margin-top: auto; width: 100%; text-align: center; padding: 10px; border-radius: 999px; background: var(--grad-gold); color: #2a1500; font-weight: 700; }

/* ---------- FAQ ---------- */
.accordion { display: grid; gap: 12px; }
.accordion details { border-radius: 14px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.accordion details[open] { border-color: var(--gold); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative; font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-red); font-size: 1.2rem; line-height: 1;
}
.accordion details[open] summary::after { content: "−"; }
.accordion details p { padding: 0 22px 20px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { background: #050203; border-top: 2px solid; border-image: var(--grad-gold) 1; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 56px 0 36px; }
.footer__brand img { height: 60px; width: auto; margin-bottom: 14px; }
.footer__brand p { color: var(--muted); max-width: 420px; font-size: .92rem; margin-bottom: 14px; }
.badges { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; }
.age { width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--red); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; }
.footer h4 { color: var(--gold); margin-bottom: 12px; }
.footer li { margin-bottom: 8px; }
.footer li a { color: var(--muted); transition: color .2s; }
.footer li a:hover { color: var(--gold-light); }
.footer__bottom { border-top: 1px solid var(--line); padding: 16px 0; font-size: .82rem; color: var(--muted); }
.footer__bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.totop { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-gold); color: #2a1500; flex: none; }

/* ---------- Floating button & modal ---------- */
.float-line {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 62px; height: 62px; border-radius: 50%;
  background: #06c755; color: #fff; font-weight: 900; font-size: .85rem;
  box-shadow: 0 8px 22px rgba(6,199,85,.45); animation: float 3s ease-in-out infinite;
}
.modal {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, .72); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .25s;
}
.modal[hidden] { display: none; }
.modal.show { opacity: 1; }
.modal__box {
  position: relative; width: min(400px, 100%); text-align: center; padding: 36px 28px 28px;
  border-radius: 22px; background: linear-gradient(170deg, var(--panel-2), #0b0406);
  border: 1px solid var(--gold); box-shadow: var(--shadow), 0 0 60px rgba(224,22,43,.35);
  transform: scale(.92); transition: transform .25s;
}
.modal.show .modal__box { transform: none; }
.modal__box img { width: 200px; margin: 0 auto 14px; }
.modal__box h3 { font-size: 2rem; font-weight: 700; margin-bottom: 6px; }
.modal__box p { color: var(--muted); margin-bottom: 22px; }
.modal__close { position: absolute; top: 10px; right: 14px; font-size: 1.6rem; color: var(--muted); line-height: 1; }
.modal__close:hover { color: var(--gold); }

/* sports coming soon */
.soon-panel {
  text-align: center; padding: 46px 20px; border-radius: var(--radius);
  background: radial-gradient(60% 100% at 50% 0%, rgba(224,22,43,.22), transparent 70%), var(--panel);
  border: 1px dashed rgba(245,196,81,.45); animation: fadeUp .4s both;
}
.soon-panel__icon { font-size: 3rem; margin-bottom: 6px; }
.soon-panel h3 { color: var(--text); font-weight: 500; }
.soon-panel__title { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; margin: 2px 0 16px; }
.soon-panel__leagues { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.soon-panel__leagues li { padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.prov { cursor: pointer; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .game-grid { grid-template-columns: repeat(4, 1fr); }
  .prov-grid { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .nav {
    position: fixed; inset: 78px 0 auto 0; flex-direction: column; gap: 0; padding: 10px 20px 20px;
    background: rgba(10,5,7,.97); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .35s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a { padding: 14px; border-radius: 10px; }
  .burger { display: block; }
  .hero__inner, .classic__inner, .devices__inner { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 40px; }
  .hero__art { max-width: 420px; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .categories { margin-top: 0; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .brand img { height: 44px; }
  .header__inner { gap: 10px; }
  .header__actions .btn--gold { padding: 8px 14px; font-size: .9rem; }
  .section { padding: 60px 0; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .prov-grid { grid-template-columns: 1fr 1fr; }
  .prov { flex-direction: column; text-align: center; gap: 8px; }
  .features { grid-template-columns: 1fr; }
  .card { width: 72px; height: 102px; }
  .card i { font-size: 2.2rem; }
  .chip3d { width: 56px; height: 56px; font-size: .8rem; }
  .table__row { grid-template-columns: 1fr; }
  .footer__bottom .container { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Auth (login / register) ---------- */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.guest-only, .user-only { display: flex; gap: 10px; align-items: center; }
.user-chip { padding: 8px 14px; border-radius: 999px; background: rgba(245,196,81,.1); border: 1px solid var(--line); color: var(--gold-light); font-size: .92rem; white-space: nowrap; }
.modal .auth { width: min(480px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; padding: 30px 26px 24px; text-align: left; }
.auth__logo { width: 180px !important; margin: 0 auto 16px !important; }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: #0b0406; border: 1px solid var(--line); margin-bottom: 20px; }
.auth__tab { padding: 9px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: .2s; }
.auth__tab.is-active { background: var(--grad-red); color: #fff; }
.auth__form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .9rem; color: var(--muted); }
.field small { opacity: .7; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input, .field select {
  width: 100%; padding: 11px 14px; border-radius: 12px; font: inherit; color: var(--text);
  background: #0b0406; border: 1px solid rgba(245,196,81,.25); outline: none; transition: border-color .2s, box-shadow .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.field select option { background: #1a0c10; }
.field input:focus, .field select:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245,196,81,.15); }
.field .is-invalid, .check input.is-invalid { border-color: #ff4b5c; box-shadow: 0 0 0 3px rgba(255,75,92,.18); outline-color: #ff4b5c; }
.pw { position: relative; }
.pw input { padding-right: 44px; }
.pw__toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; opacity: .7; }
.pw__toggle:hover { opacity: 1; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--red); width: 16px; height: 16px; flex: none; }
.auth__msg { min-height: 0; font-size: .9rem; border-radius: 10px; }
.auth__msg.is-error, .auth__msg.is-success { padding: 10px 14px; }
.auth__msg.is-error { background: rgba(255,75,92,.12); border: 1px solid rgba(255,75,92,.4); color: #ff9aa5; }
.auth__msg.is-success { background: rgba(6,199,85,.12); border: 1px solid rgba(6,199,85,.4); color: #7ff0ae; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .65; cursor: wait; transform: none; }
.auth__switch { text-align: center; font-size: .9rem; color: var(--muted); }
.auth__switch a { color: var(--gold); text-decoration: underline; }
@media (max-width: 920px) {
  .header__actions .guest-only .btn--ghost { display: none; }
  .user-chip { display: none; }
}
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
