:root {
  --bg: #061119;
  --panel: #0d1b26;
  --panel-2: #122638;
  --line: rgba(255,255,255,.12);
  --text: #f6fbff;
  --muted: #9cb1bf;
  --mint: #32e6b2;
  --orange: #ff704d;
  --violet: #8c72ff;
  --yellow: #f8dd61;
  --max: 1220px;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--text); background:
    radial-gradient(circle at 80% -10%, rgba(50,230,178,.14), transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6;
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  transform: translateY(-160%); padding: .7rem 1rem; background: var(--mint);
  color: #061119; border-radius: 10px; font-weight: 900;
}
.skip:focus { transform: none; }
.disclosure {
  padding: .55rem 1rem; background: #0a151f; border-bottom: 1px solid var(--line);
  color: #b7c9d4; text-align: center; font-size: .78rem;
}
.disclosure strong { color: var(--mint); }
.site-header {
  position: sticky; top: 0; z-index: 30; background: rgba(6,17,25,.88);
  backdrop-filter: blur(18px); border-bottom: 1px solid var(--line);
}
.nav { min-height: 76px; display: flex; align-items: center; gap: 1.3rem; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; margin-right: auto; }
.brand-orbit {
  width: 46px; aspect-ratio: 1; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--mint), #83ffe0); color: #061119;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), 0 10px 24px rgba(50,230,178,.18);
  font-weight: 1000; font-size: .8rem; letter-spacing: -.05em;
}
.brand strong { display: block; font-size: .97rem; letter-spacing: .02em; }
.brand small { display: block; margin-top: .2rem; color: var(--muted); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 1.1rem; }
.nav-links a { color: #d6e2e9; text-decoration: none; font-size: .87rem; font-weight: 750; }
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { color: var(--mint); }
.menu-toggle {
  display: none; min-height: 44px; padding: .55rem .75rem; color: white;
  border: 1px solid var(--line); background: var(--panel); border-radius: 12px;
}
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: .72rem 1.05rem; border: 0; border-radius: 13px; text-decoration: none;
  background: linear-gradient(135deg, var(--orange), #ff9c4d); color: #160806;
  font-weight: 950; box-shadow: 0 10px 30px rgba(255,112,77,.2); cursor: pointer;
}
.cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.cta.secondary { color: white; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.cta.compact { min-height: 42px; padding: .58rem .9rem; font-size: .84rem; }

.hero { padding: 3.4rem 0 2.5rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(460px, 1.12fr); gap: 2rem; align-items: stretch; }
.hero-copy {
  min-height: 500px; display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 5vw, 4.5rem); overflow: hidden; position: relative;
  border: 1px solid var(--line); border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(140,114,255,.22), transparent 55%),
    var(--panel);
}
.hero-copy::after {
  content: ""; position: absolute; width: 330px; aspect-ratio: 1; border: 65px solid rgba(50,230,178,.07);
  border-radius: 50%; right: -150px; bottom: -170px;
}
.kicker { color: var(--mint); font-size: .76rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; line-height: 1.08; }
h1 { margin-top: 1rem; font-size: clamp(3.1rem, 6vw, 6.5rem); letter-spacing: -.07em; max-width: 10ch; }
h1 span { color: var(--mint); }
.hero-copy p { max-width: 590px; color: #bfd0db; font-size: 1.08rem; margin: 1.35rem 0 1.8rem; }
.action-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.mini-trust { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.7rem; }
.mini-trust span {
  padding: .4rem .65rem; color: #bdd0da; background: rgba(255,255,255,.055);
  border: 1px solid var(--line); border-radius: 999px; font-size: .74rem;
}

.game-shell {
  min-height: 500px; padding: 1rem; border-radius: 30px; border: 1px solid rgba(50,230,178,.35);
  background: linear-gradient(150deg, #173449, #0c1b28 68%); box-shadow: 0 34px 90px rgba(0,0,0,.28);
}
.game-toolbar { display: flex; justify-content: space-between; align-items: center; padding: .5rem .45rem 1rem; }
.game-toolbar strong { font-size: .86rem; }
.play-tag { color: #061119; background: var(--mint); padding: .28rem .55rem; border-radius: 999px; font-size: .66rem; font-weight: 950; }
.game-board {
  min-height: 415px; border-radius: 22px; padding: 1.4rem; display: grid;
  background:
    radial-gradient(circle at 50% 35%, rgba(50,230,178,.13), transparent 16rem),
    #08151f;
  border: 1px solid var(--line);
}
.score-row { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .78rem; }
.score-row strong { color: white; }
.hand { min-height: 160px; display: flex; gap: .75rem; align-items: center; justify-content: center; margin: 1rem 0; }
.playing-card {
  width: 92px; height: 132px; display: flex; flex-direction: column; justify-content: space-between;
  padding: .65rem; background: #fff; color: #0a1118; border-radius: 12px; border: 1px solid #dbe5ed;
  box-shadow: 0 13px 22px rgba(0,0,0,.28); font-weight: 950; font-size: 1.3rem;
}
.playing-card.red { color: #e34444; }
.playing-card small { align-self: flex-end; font-size: 2rem; }
.playing-card.back { background: repeating-linear-gradient(45deg,#765af2,#765af2 8px,#8f76ff 8px,#8f76ff 16px); color: transparent; border: 6px solid white; }
.game-status { min-height: 28px; text-align: center; font-weight: 850; color: var(--mint); }
.game-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.game-button {
  min-height: 44px; padding: .6rem 1rem; border-radius: 11px; border: 1px solid var(--line);
  background: var(--panel-2); color: white; font-weight: 850; cursor: pointer;
}
.game-button.primary { background: var(--mint); color: #061119; border-color: var(--mint); }
.game-button:disabled { opacity: .45; cursor: not-allowed; }
.game-note { margin: .8rem 0 0; text-align: center; color: #6f8898; font-size: .7rem; }

.ticker { overflow: hidden; border-block: 1px solid var(--line); background: #08141d; }
.ticker-track { width: max-content; display: flex; animation: ticker 28s linear infinite; }
.ticker span { padding: .8rem 2rem; color: #afc1cc; font-size: .8rem; }
.ticker b { color: var(--mint); }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: 6rem 0; }
.section-head { display: grid; grid-template-columns: 1fr .6fr; gap: 3rem; align-items: end; margin-bottom: 2.2rem; }
.section h2 { max-width: 13ch; font-size: clamp(2.5rem, 5vw, 4.6rem); letter-spacing: -.055em; }
.section-head p { color: var(--muted); margin: 0; }
.label { display: block; margin-bottom: .7rem; color: var(--mint); font-size: .72rem; letter-spacing: .13em; font-weight: 950; text-transform: uppercase; }
.alt { background: #08141e; border-block: 1px solid var(--line); }

.tool-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); gap: 1rem; }
.calculator {
  padding: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
.calculator h3 { font-size: 1.5rem; }
.calculator > p { color: var(--muted); margin: .45rem 0 1.3rem; }
.field-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.field label { display: block; color: #b8cad5; margin-bottom: .4rem; font-size: .75rem; font-weight: 800; }
.field input, .field select {
  width: 100%; min-height: 48px; border: 1px solid #345063; border-radius: 11px;
  background: #07131d; color: white; padding: .65rem .75rem;
}
.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-top: 1rem; }
.result-card { padding: 1rem; border-radius: 14px; background: #07131d; border: 1px solid var(--line); }
.result-card span { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.result-card strong { display: block; margin-top: .3rem; color: var(--mint); font-size: 1.45rem; }
.tool-copy {
  padding: 1.5rem; color: #0b1720; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--yellow), #ffc877);
}
.tool-copy h3 { font-size: 2rem; max-width: 10ch; }
.tool-copy p { color: #493c18; }
.tool-copy ul { padding-left: 1.15rem; }

.lobby-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; }
.lobby-card {
  min-height: 260px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; overflow: hidden;
  background: var(--panel); transition: transform .2s ease, border-color .2s ease;
}
.lobby-card:hover { transform: translateY(-4px); border-color: var(--mint); }
.lobby-card:nth-child(2) { background: linear-gradient(145deg, #3a286b, #151f31); }
.lobby-card:nth-child(3) { background: linear-gradient(145deg, #713022, #151f31); }
.lobby-card:nth-child(4) { background: linear-gradient(145deg, #0c4a45, #151f31); }
.card-icon { font-size: 2.2rem; }
.lobby-card small { color: var(--mint); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.lobby-card h3 { margin-top: .45rem; font-size: 1.45rem; }
.lobby-card p { color: #a9bdc9; margin: .75rem 0 0; font-size: .88rem; }
.card-link { color: var(--mint); font-weight: 850; font-size: .84rem; }

.promo-panel {
  display: grid; grid-template-columns: 1fr .75fr; overflow: hidden;
  border-radius: 28px; background: var(--violet); border: 1px solid rgba(255,255,255,.2);
}
.promo-copy { padding: clamp(2rem, 5vw, 4.5rem); }
.promo-copy h2 { max-width: 11ch; }
.promo-copy p { color: #e1dcff; max-width: 620px; }
.promo-steps { padding: 2rem; display: grid; gap: .75rem; align-content: center; background: rgba(0,0,0,.2); }
.step { display: grid; grid-template-columns: 42px 1fr; gap: .8rem; padding: .9rem; border-radius: 14px; background: rgba(5,9,24,.28); }
.step b { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--mint); color: #061119; }
.step strong { display: block; }
.step span { color: #d2cef1; font-size: .82rem; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.info-card { padding: 1.35rem; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.info-card h3 { margin-top: .8rem; font-size: 1.3rem; }
.info-card p { color: var(--muted); margin-bottom: 0; }
.info-card .pill { display: inline-flex; padding: .3rem .55rem; border-radius: 999px; background: rgba(50,230,178,.12); color: var(--mint); font-size: .68rem; font-weight: 900; }
.facts-table { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; min-width: 680px; border-collapse: collapse; }
th, td { padding: 1rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; background: #0a1823; }
td { color: #d6e4eb; }
tr:last-child td { border-bottom: 0; }

.faq { max-width: 930px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 3rem 1.2rem 0; position: relative; font-weight: 850; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .2rem; color: var(--mint); font-size: 1.5rem; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 0 0 1.2rem; }
.responsible-box { margin-top: 2rem; padding: 1.4rem; border-radius: 16px; background: rgba(248,221,97,.08); border: 1px solid rgba(248,221,97,.35); color: #d8d2ad; }
.responsible-box strong { color: var(--yellow); }

.page-hero { padding: 5rem 0 3rem; }
.crumbs { color: var(--muted); font-size: .8rem; margin-bottom: 1.2rem; }
.crumbs a { color: var(--mint); }
.page-hero h1 { max-width: 13ch; }
.page-hero p { max-width: 740px; color: var(--muted); font-size: 1.08rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 2rem; align-items: start; }
.content-main { min-width: 0; }
.content-main h2 { margin: 3rem 0 1rem; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.045em; }
.content-main h2:first-child { margin-top: 0; }
.content-main h3 { margin: 2rem 0 .75rem; font-size: 1.4rem; }
.content-main p, .content-main li { color: #b3c4cf; }
.content-main a:not(.cta) { color: var(--mint); }
.side-card { position: sticky; top: 100px; padding: 1.25rem; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.side-card h3 { font-size: 1.3rem; }
.side-card p { color: var(--muted); font-size: .86rem; }
.side-card .cta { width: 100%; }
.side-links { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.side-links a { color: #c8d7df; font-size: .82rem; }

.footer-cta { padding: 2rem 0; background: var(--mint); color: #061119; }
.footer-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-cta h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); letter-spacing: -.04em; }
.footer-cta .cta { background: #061119; color: white; box-shadow: none; }
.site-footer { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.35fr repeat(3, 1fr); gap: 2rem; }
.footer-grid h3 { margin-bottom: .8rem; font-size: .9rem; color: white; }
.footer-grid p { color: var(--muted); font-size: .85rem; }
.footer-links { display: grid; gap: .45rem; }
.footer-links a { color: #aebfca; text-decoration: none; font-size: .83rem; }
.footer-links a:hover { color: var(--mint); }
.legal { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: #718895; font-size: .75rem; }

@media (max-width: 1000px) {
  .nav-links {
    display: none; position: absolute; inset: 76px 0 auto; padding: 1rem 20px 1.3rem;
    background: #07131d; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .menu-toggle { display: inline-flex; }
  .nav > .cta { display: none; }
  .hero-grid, .tool-grid, .promo-panel, .content-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: 440px; }
  .side-card { position: static; }
  .lobby-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 1rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 650px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .brand small { display: none; }
  .hero { padding-top: 1.4rem; }
  .hero-copy { min-height: auto; padding: 2rem 1.3rem; border-radius: 22px; }
  h1 { font-size: clamp(3rem, 15vw, 4.7rem); }
  .game-shell { min-height: auto; border-radius: 22px; }
  .game-board { min-height: 400px; }
  .playing-card { width: 72px; height: 108px; font-size: 1rem; }
  .playing-card small { font-size: 1.45rem; }
  .field-grid, .calc-results, .lobby-grid, .info-grid, .footer-grid { grid-template-columns: 1fr; }
  .promo-steps { padding: 1.2rem; }
  .section { padding: 4.5rem 0; }
  .footer-cta .wrap { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  * { transition: none !important; }
}
