/* Chess OG theme: light grey, black ink, tight bold sans, pill buttons with a round arrow.
   Loaded last. The older files carry the layout; this one sets the look. */
html[data-style="classic"][data-mode="light"] {
  --bg: #ececec; --bg2: #dedede; --card: #f7f7f7; --card2: #efefef; --line: #d6d6d6; --line2: #e3e3e3;
  --ink: #0b0b0c; --ink2: #3a3a3c; --muted: #6a6a6e; --accent: #0b0b0c; --accent-ink: #fff; --accent-soft: #e0e0e0; --gold: #0b0b0c;
  --sq-l: #ededed; --sq-d: #a3a3a5; --frame: #0b0b0c; --shadow: none; --glow: transparent; --band: #d7d7d7; --gap: #e4e4e4;
}
html[data-style="classic"][data-mode="dark"] {
  --bg: #0e0e0f; --bg2: #161617; --card: #171718; --card2: #1f1f21; --line: #2f2f32; --line2: #262628;
  --ink: #f3f3f3; --ink2: #cbcbce; --muted: #96969b; --accent: #f3f3f3; --accent-ink: #0b0b0c; --accent-soft: #2a2a2c; --gold: #f3f3f3;
  --sq-l: #b9b9bb; --sq-d: #6b6b6f; --frame: #000; --shadow: none; --glow: transparent; --band: #1b1b1d; --gap: #232325;
}
html[data-style="classic"] { --fh: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif; --r: 20px; --rs: 12px; --gold-rim: linear-gradient(var(--accent), var(--accent)); --gold-ink: var(--accent-ink); --gold-bg: linear-gradient(var(--accent), var(--accent)); }
html[data-style="classic"] body { background: var(--bg); }
h1, h2, h3, h4, .ph h1, .display, .card-h { letter-spacing: -.022em; }
.card-h { font: 700 16px var(--fh); color: var(--ink); }
.eyebrow, .hw-k, .soon-k, .ob-kick { font: 500 12px var(--fb) !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--ink2) !important; }

/* buttons */
.btn { border-radius: 999px; }
.btn.pri, .mc-btn, .hm-join .btn, .cr-go .btn, .navl a.nav-play, [data-style] .btn.pri, .btn.pri.lg {
  border: 1px solid var(--accent) !important; background: var(--accent) !important; color: var(--accent-ink) !important; box-shadow: none !important; text-shadow: none !important;
  font-family: var(--fb) !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; }
.btn.pri.lg { font-size: 15px !important; } .btn.pri svg, .mc-btn svg, .btn.pri.lg svg, .cr-go .btn svg { color: inherit; }
.btn.pri:hover, .mc-btn:hover { filter: none; opacity: .86; }
.cx-send, .hh-go, .bn-plus { background: var(--accent) !important; color: var(--accent-ink) !important; border-color: var(--bg) !important; box-shadow: none !important; } .cx-send svg { color: inherit; }
.island, .island.note, .island.live, .island.wait, .island.ready, .island.note.win, .island.over.won, .island.note.lose, .island.over.lost { background: #0b0b0c !important; border: 1px solid #333 !important; color: #f3f3f3 !important; box-shadow: none !important; }
.island .isl-ic { background: #fff !important; color: #0b0b0c !important; } .isl-up, .island b { color: #fff !important; }

/* board */
.board-frame { border: 0; padding: 10px; background: var(--frame) !important; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .5) !important; }
[data-pieces="classic"] .pc.cl.w { color: #fff; -webkit-text-stroke: calc(100cqw / 8 * .03) #111; }
[data-pieces="classic"] .pc.cl.b { color: #0b0b0c; -webkit-text-stroke: calc(100cqw / 8 * .012) #000; }
.sq.l em { color: #77777a; } .sq.d em { color: #f4f4f4; }

/* header */
.top.card { display: grid; grid-template-columns: 1fr auto 1fr; border: 0; background: none; box-shadow: none; padding: 8px 4px; }
.top .top-r { display: contents; }
.top .navl { order: -1; margin: 0; padding: 0; border: 0; justify-self: start; gap: 18px; }
.top .navl a { padding: 0 !important; font-size: 14px; font-weight: 500; color: var(--ink) !important; background: none !important; }
.top .navl a > svg, .top .navl a.nav-play { display: none; }
.top .navl a:hover span, .top .navl a.on span { text-decoration: underline; text-underline-offset: 5px; }
.top .brand { justify-self: center; gap: 9px; } .top .brand b { font: 700 25px/1 var(--fh); letter-spacing: -.035em; } .top .brand small { display: none !important; }
.logo-img { width: 32px !important; height: 32px !important; transform: none !important; filter: none !important; }
.og-act { justify-self: end; display: flex; align-items: center; gap: 8px; }
.top .icon-btn { border: 0; border-radius: 50%; background: none; } .top .icon-btn:hover { background: var(--bg2); }
.top-in { color: var(--ink); font-size: 14px; font-weight: 500; padding: 8px 6px; white-space: nowrap; }
.og-cta { display: inline-flex; align-items: center; gap: 14px; height: 44px; padding: 0 5px 0 20px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.og-cta i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-ink); color: var(--accent); transition: transform .2s; } .og-cta:hover i { transform: translateX(2px); } .og-cta svg { width: 15px; height: 15px; }

/* landing hero */
.og-hero { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-height: max(560px, min(100svh - 20px, 900px)); padding: clamp(92px, 12.5vh, 124px) 4% 3.2%; border-radius: 28px; background: var(--gap); color: var(--ink); }
.og-cols { position: absolute; inset: 0 4%; z-index: -2; display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(8px, 1.8vw, 26px); } .og-cols i { background: var(--band); }
.og-pic { position: absolute; z-index: -1; left: 51%; top: 54%; width: min(58%, 100vh); height: auto; transform: translate(-50%, -50%); }
[data-mode="dark"] .og-pic { filter: brightness(1.15) drop-shadow(0 0 1px rgba(255, 255, 255, .45)); }
.og-t1, .og-t2 { font: 700 clamp(52px, 9.6vw, 148px)/.98 var(--fh); letter-spacing: -.04em; word-spacing: .04em; margin: 0; white-space: nowrap; font-kerning: normal; font-variant-ligatures: none; }
.og-t1 { margin-left: -.05em; } .og-t2 { margin-left: auto; text-align: right; }
.og-mid { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; letter-spacing: .1em; text-transform: uppercase; }
.og-play { display: inline-flex; align-items: center; gap: 15px; letter-spacing: inherit; text-transform: inherit; font-weight: 600; padding: 0; }
.og-play i { display: grid; place-items: center; width: 56px; height: 56px; border: 1px solid currentColor; border-radius: 50%; transition: background .2s, color .2s; } .og-play svg { width: 17px; height: 17px; } .og-play:hover i { background: var(--ink); color: var(--bg); }
.og-mid p { margin-top: 30px; font-size: 12.5px; } .og-mid ul { list-style: none; padding: 0; text-align: right; line-height: 2; }
.og-bot { display: flex; align-items: flex-end; gap: 20px; }
.og-stamp { position: relative; flex: none; display: grid; place-items: center; width: 148px; height: 148px; margin-left: 1.5%; border-radius: 50%; background: #77777a; color: #fff; text-decoration: none !important; }
.og-stamp svg { position: absolute; inset: 0; animation: ogspin 40s linear infinite; } .og-stamp text { fill: #fff; font: 600 14px var(--fb); letter-spacing: .04em; }
.og-stamp span { text-align: center; transform: rotate(-9deg); } .og-stamp b { display: block; font: 700 36px/1 var(--fh); letter-spacing: -.04em; } .og-stamp small { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; }
@keyframes ogspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .og-stamp svg { animation: none; } }
body.on-land .page { max-width: none; padding: 10px 10px 90px; }
body.on-land .top { position: absolute; z-index: 5; left: calc(10px + 3.8%); right: calc(10px + 3.8%); top: 22px; margin: 0; }
body.on-land .page .hero, body.on-land .page .hw, body.on-land .page .foot { max-width: 1180px; margin-left: auto; margin-right: auto; } body.on-land .page .hero { margin-top: 22px; }
.hero2 .display { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; }
.hero-stats b, .payout { letter-spacing: -.04em; }

@media (max-width: 1100px) and (min-width: 761px) { .top .soon-tag, .top [data-sound] { display: none !important; } .top .navl { gap: 12px; } }
/* in a match the island takes the middle, so the logo moves left and the nav hides */
@media (min-width: 761px) { body.isl-wide .top.card { grid-template-columns: auto 1fr; } body.isl-wide .top .navl { display: none; } body.isl-wide .top .brand { justify-self: start; } }
@media (max-width: 760px) {
  .top.card { display: flex; } .top .navl { display: none !important; } .top .brand { margin-right: auto; } .top .brand b { font-size: 20px !important; } .logo-img { width: 28px !important; height: 28px !important; }
  .og-act { margin-left: auto; gap: 4px; } .og-cta { display: none; } .top-in { padding: 9px 16px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); }
  body.on-land .page { padding: 8px 8px 110px !important; } body.on-land .top { left: 14px; right: 14px; top: 12px; background: none !important; border: 0 !important; width: auto; }
  .og-hero { min-height: min(760px, 100svh - 110px); padding: 84px 18px 20px; border-radius: 22px; }
  .og-cols { inset: 0 18px; grid-template-columns: repeat(6, 1fr); } .og-cols i:nth-child(n+7) { display: none; }
  .og-t1, .og-t2 { font-size: min(13vw, 76px); } .og-pic { width: 112%; top: 43%; left: 48%; }
  .og-mid { margin-top: auto; align-items: flex-end; font-size: 10.5px; letter-spacing: .07em; margin-bottom: 18px; } .og-mid p { margin-top: 12px; font-size: 10px; } .og-play { gap: 10px; } .og-play i { width: 46px; height: 46px; }
  .og-stamp { position: absolute; right: 16px; top: 152px; width: 92px; height: 92px; margin: 0; } .og-stamp b { font-size: 22px; } .og-stamp small { font-size: 8.5px; } .og-t2 { margin: 0; text-align: left; }
}
.auth-logo { width: 84px !important; transform: none !important; filter: none !important; margin: 4px auto 16px !important; } .in-logo { filter: none !important; width: min(150px, 36vw) !important; border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .22); } .in-logo.sm { width: min(110px, 30vw) !important; }
[data-mode="dark"] .logo-img, [data-mode="dark"] .auth-logo { border-radius: 50%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); }
html[data-style="classic"][data-mode="dark"] a { color: var(--ink); } html[data-style="classic"][data-mode="dark"] a.og-cta, html[data-style="classic"][data-mode="dark"] a.top-in { color: var(--ink); } html[data-style="classic"][data-mode="dark"] a.og-cta { color: var(--accent-ink); } html[data-style="classic"] a.og-stamp { color: #fff; }
@media (max-width: 760px) { html[data-style="classic"][data-mode="dark"] a.top-in { color: var(--accent-ink); } }
html[data-style="classic"][data-mode="dark"] .seg button.on { background: var(--accent); color: var(--accent-ink); }
@media (min-width: 761px) { body.on-land .cx-fab { display: none; } }
.cx-fab { background: var(--accent) !important; color: var(--accent-ink) !important; border-radius: 99px !important; }
@keyframes logoIn { 0% { opacity: 0; transform: scale(.6); } 100% { opacity: 1; transform: none; } }
.bn.on, .bn.on .bn-ic, .bn.on span { color: var(--ink) !important; opacity: 1; }

.og-ca { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 8px 14px; border: 1px solid currentColor; border-radius: 99px; background: none; color: inherit; font: 600 12.5px var(--font, inherit); letter-spacing: .06em; text-transform: none; cursor: pointer; }
.og-ca b { letter-spacing: .12em; } .og-ca svg { width: 14px; height: 14px; } .og-ca:hover { background: var(--ink); color: var(--bg); }
.og-ca-note { display: block; margin-top: 8px; font-size: 10.5px; letter-spacing: .1em; opacity: .7; }
@media (max-width: 760px) { .og-ca { margin-top: 12px; padding: 6px 11px; font-size: 10.5px; gap: 7px; } .og-ca-note { font-size: 9px; margin-top: 5px; } }
a.og-ca { text-decoration: none; }
.og-ca-row { display: flex; flex-wrap: wrap; gap: 8px; } .og-ca-row .og-ca { margin-top: 18px; }
@media (max-width: 760px) { .og-ca-row { gap: 6px; } .og-ca-row .og-ca { margin-top: 12px; } }
@media (max-width: 760px) { .og-mid > div:first-child { flex: none; } .og-ca-row { flex-wrap: nowrap; } .og-ca-row .og-ca { padding: 5px 9px; gap: 5px; letter-spacing: .03em; } .og-ca-row .og-ca svg { width: 12px; height: 12px; } .og-mid ul { white-space: nowrap; font-size: 9.5px; } .og-ca-note { max-width: 190px; } }
@media (max-width: 760px) { .og-mid { flex-direction: column; align-items: stretch; gap: 14px; } .og-mid ul { align-self: flex-end; font-size: 10px; } .og-ca-note { max-width: none; } }
