/* games-web/chess.css — VaultChess: premium futuristic UI.
   Deep-black glassmorphism, neon-blue + gold + emerald accents, soft shadows,
   micro-animations. Dark by default; .light optional. Vanilla CSS (no framework). */
:root { --bg-3: #0f1730;
  --glass: rgba(255, 255, 255, .045); --glass-2: rgba(255, 255, 255, .07);
  --blue: #3b82f6; --blue-2: #60a5fa; --violet: #8b5cf6; --emerald: #34d399; --rose: #fb7185;
  --sq-light: #ece6d3; --sq-dark: #6f6253; /* classic cream + warm brown board */
  --hl: rgba(214, 175, 99, .50);            /* warm last-move / select highlight */
  --shadow: 0 14px 44px rgba(0, 0, 0, .55); --shadow-sm: 0 6px 18px rgba(0, 0, 0, .4);
  --r: 18px; --r-sm: 12px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100dvh; color: var(--text); font-family: "Sora", "Nunito Sans", system-ui, sans-serif;
  background:
    radial-gradient(70% 45% at 50% -8%, rgba(60, 66, 86, .35), transparent 62%),
    var(--bg); /* app ground, board-first */
  background-attachment: fixed; }
.chess-app { max-width: 1080px; margin: 0 auto; padding: 14px 14px 96px; }
.muted { color: var(--muted); } .small { font-size: 12px; }
code { background: var(--glass); padding: 1px 6px; border-radius: 6px; color: var(--blue-2); font-size: 12px; }
.center-msg { text-align: center; padding-top: 22vh; }

.logo { font-weight: 800; font-size: 22px; letter-spacing: .3px;
  background: linear-gradient(100deg, #fff, var(--blue-2) 45%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo::before { content: "♚ "; -webkit-text-fill-color: var(--gold); }
.logo.big { font-size: 38px; }

/* ---------- buttons ---------- */
.btn { font-family: inherit; font-weight: 700; font-size: 14px; color: var(--text);
  background: var(--glass-2); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 12px 16px; cursor: pointer; transition: transform .12s, border-color .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--line-2); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled, .btn[disabled] {
  cursor: default; transform: none; box-shadow: none;
  color: var(--muted); background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line); opacity: .85;
}
.btn.gold { color: #1a1206; border: 0; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 8px 24px rgba(245, 196, 81, .28); }
.btn.blue { color: #04132e; border: 0; background: linear-gradient(135deg, var(--blue-2), var(--blue)); box-shadow: 0 8px 26px rgba(59, 130, 246, .35); }
.btn.danger { color: #fff; background: linear-gradient(135deg, #fb7185, #e11d48); border: 0; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.big { font-size: 16px; padding: 15px 18px; width: 100%; }
.iconbtn { font-weight: 700; font-size: 13px; color: var(--text); background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-pill, 999px); padding: 8px 13px; cursor: pointer; transition: border-color .2s, transform .1s; }
.iconbtn:hover { border-color: var(--blue); }

/* glass card primitive */
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); box-shadow: var(--shadow); }

/* ---------- splash ---------- */
.splash { position: fixed; inset: 0; z-index: 200; pointer-events: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(60% 50% at 50% 40%, rgba(59,130,246,.2), transparent 70%), var(--bg); animation: fadeout .5s ease 1.0s forwards; }
.splash .king { font-size: 88px; filter: drop-shadow(0 8px 30px rgba(96, 165, 250, .55)); animation: kingpop .9s cubic-bezier(.2,1.3,.5,1), float 3s ease-in-out 1s infinite; }
.splash .brand { font-weight: 800; font-size: 26px; letter-spacing: 3px; background: linear-gradient(100deg, #fff, var(--blue-2), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; animation: fadeUp .5s ease .25s forwards; }
.splash .bar { width: 160px; height: 4px; border-radius: 4px; background: var(--glass-2); overflow: hidden; }
.splash .bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--violet)); animation: load 1s ease-in-out infinite; }
@keyframes kingpop { 0% { transform: scale(.3) rotate(-25deg); opacity: 0; } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes load { 0% { transform: translateX(-120%); } 100% { transform: translateX(320%); } }
@keyframes fadeout { to { opacity: 0; visibility: hidden; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
.fade-up { animation: fadeUp .4s ease both; }

/* ---------- welcome / onboarding ---------- */
.welcome { max-width: 440px; margin: 7vh auto 0; text-align: center; padding: 26px; }
.welcome .sub { color: var(--muted); margin: 6px 0 16px; }
.fld { display: block; text-align: left; margin: 14px 0; font-weight: 700; font-size: 12px; color: var(--blue-2); letter-spacing: .4px; text-transform: uppercase; }
.fld input, .fld select { width: 100%; margin-top: 7px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px; color: var(--text); font-family: inherit; font-size: 15px; }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
.avgrid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 8px; }
.av { font-size: 24px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 0; cursor: pointer; transition: transform .1s, border-color .2s; }
.av:hover { transform: translateY(-2px); } .av.on { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(96,165,250,.45); }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; margin-bottom: 14px; }
.uchip { display: flex; align-items: center; gap: 11px; }
.uchip .ava { position: relative; font-size: 30px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--r-2, 12px); background: var(--glass-2); border: 1px solid var(--line); }
.uchip .ava .on-dot { position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: var(--emerald); border: 2px solid var(--bg); box-shadow: 0 0 8px var(--emerald); }
.uchip .uname { font-weight: 800; font-size: 16px; }
.uchip .urow { display: flex; align-items: center; gap: 7px; margin-top: 2px; }
.rankbadge { font-size: 11px; font-weight: 800; color: #1a1206; background: linear-gradient(135deg, var(--gold-2), var(--gold)); border-radius: var(--r-pill, 999px); padding: 2px 9px; }
.rating { font-size: 12px; color: var(--blue-2); font-weight: 700; }
.flag { color: var(--muted); font-size: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 26px 22px; margin-bottom: 14px; border-radius: var(--r-4, 22px); }
.hero .heroboard { position: absolute; inset: 0; opacity: .14; background-size: 13% 13%;
  background-image: linear-gradient(45deg, var(--blue) 25%, transparent 25%, transparent 75%, var(--blue) 75%), linear-gradient(45deg, var(--blue) 25%, transparent 25%, transparent 75%, var(--blue) 75%);
  background-position: 0 0, calc(6.5% ) calc(6.5%); animation: float 9s ease-in-out infinite; pointer-events: none; }
.hero h1 { position: relative; margin: 0; font-size: 30px; line-height: 1.1; }
.hero h1 span { background: linear-gradient(100deg, var(--blue-2), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .season { position: relative; display: inline-flex; gap: 8px; align-items: center; margin: 10px 0 16px; font-size: 12px; color: var(--gold-2); background: rgba(245,196,81,.1); border: 1px solid rgba(245,196,81,.3); border-radius: var(--r-pill, 999px); padding: 5px 12px; }
.hero .countdown { font-variant-numeric: tabular-nums; color: var(--text); font-weight: 700; }
.hero .playnow { position: relative; }

/* ---------- quick actions ---------- */
.qa { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.qa .q { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 6px; cursor: pointer; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); transition: transform .12s, border-color .2s; }
.qa .q:hover { transform: translateY(-3px); border-color: var(--blue); }
.qa .q .qi { font-size: 24px; } .qa .q .ql { font-size: 11px; color: var(--muted); font-weight: 700; }

.section { padding: 16px; margin-bottom: 14px; }
.section h3 { margin: 0 0 12px; font-size: 15px; color: var(--text); }
.section h3 .hint { float: right; font-size: 11px; color: var(--muted); font-weight: 600; }

/* ---------- play screen game cards ---------- */
.gcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gcard { position: relative; overflow: hidden; cursor: pointer; padding: 16px 12px; border-radius: var(--r); text-align: center;
  background: linear-gradient(160deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); transition: transform .12s, border-color .2s, box-shadow .2s; }
.gcard:hover { transform: translateY(-4px); border-color: var(--blue); box-shadow: 0 10px 30px rgba(59,130,246,.25); }
.gcard .gi { font-size: 26px; } .gcard .gt { font-weight: 800; margin-top: 6px; font-size: 14px; } .gcard .gs { font-size: 11px; color: var(--muted); }
.gcard.ai .gt { color: var(--emerald); } .gcard.tc .gt { color: var(--blue-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }

/* ---------- matchmaking search ---------- */
.search { text-align: center; padding: 40px 20px; }
.radar { width: 130px; height: 130px; margin: 0 auto 18px; border-radius: 50%; position: relative; background: radial-gradient(circle, rgba(59,130,246,.12), transparent 70%); border: 1px solid var(--line); }
.radar::before, .radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; animation: ping 2s ease-out infinite; }
.radar::after { animation-delay: 1s; }
.radar .sweep { position: absolute; inset: 8px; border-radius: 50%; background: conic-gradient(from 0deg, transparent, rgba(96,165,250,.5)); animation: spin 1.6s linear infinite; -webkit-mask: radial-gradient(transparent 52%, #000 53%); mask: radial-gradient(transparent 52%, #000 53%); }
.radar .king2 { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }

/* ---------- in-game floating layout ---------- */
.gamewrap { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 880px) { .gamewrap { grid-template-columns: 230px 1fr 250px; align-items: start; } }
.panel { padding: 14px; }
.pplayer { display: flex; align-items: center; gap: 10px; }
.pplayer .ava { font-size: 26px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-2, 12px); background: var(--glass-2); border: 1px solid var(--line); }
.pplayer .pn { font-weight: 800; font-size: 14px; } .pplayer .pr { font-size: 11px; color: var(--muted); }
.center-col { display: flex; flex-direction: column; gap: 8px; }
.gtop { display: flex; align-items: center; justify-content: space-between; }
.evalwrap { display: flex; gap: 10px; align-items: stretch; }
.evalbar { width: 12px; border-radius: var(--r-1, 8px); overflow: hidden; background: #0a0a0a; border: 1px solid var(--line); position: relative; flex: 0 0 auto; }
.evalbar .white { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(180deg, #f4f7ff, #c7d0e0); transition: height .4s ease; }
.evalnum { font-size: 10px; color: var(--muted); text-align: center; margin-top: 2px; font-variant-numeric: tabular-nums; }

.caprow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.captured { min-height: 22px; display: flex; flex-wrap: wrap; gap: 1px; font-size: 17px; color: #cdd6ea; }
.clk { font-family: "Sora", ui-monospace, monospace; font-weight: 800; font-size: 22px; color: var(--text); background: var(--glass-2); border: 1px solid var(--line); border-radius: var(--r-2, 12px); padding: 5px 14px; min-width: 92px; text-align: center; transition: background .2s; }
.clk.active { color: #04132e; background: linear-gradient(135deg, var(--blue-2), var(--blue)); border: 0; box-shadow: 0 0 18px rgba(59,130,246,.5); }
.clk.low { color: #fff; background: linear-gradient(135deg, #fb7185, #e11d48); border: 0; }

/* grid-template-ROWS is not optional here. With columns only, the 8 rows are implicit
   `auto` tracks that size to their content — so a rank holding pieces was ~2x the height
   of an empty rank (65.5px columns vs 41.5/89.5px rows at 1280px), and because the tall
   ranks are wherever the pieces currently are, every move resized the tiles. */
.board { position: relative; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); width: 100%; aspect-ratio: 1/1;
  border-radius: 6px; overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .14); outline: 1px solid rgba(0, 0, 0, .5); }
.sq { position: relative; display: flex; align-items: center; justify-content: center; }
.sq.light { background: var(--sq-light); } .sq.dark { background: var(--sq-dark); }
.sq.last { box-shadow: inset 0 0 0 60px var(--hl); }              /* warm filled highlight */
.sq.sel { box-shadow: inset 0 0 0 60px rgba(214, 175, 99, .68); }
.sq.check { box-shadow: inset 0 0 0 60px rgba(225, 90, 90, .55); animation: checkpulse 1s ease infinite; }
@keyframes checkpulse { 50% { box-shadow: inset 0 0 0 60px rgba(225, 90, 90, .3); } }
.piece { font-size: 9vw; line-height: 1; cursor: pointer; user-select: none; transition: transform .08s;
  -webkit-text-stroke: 1.1px #2b2620; paint-order: stroke fill; text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.piece:active { transform: scale(1.12); }
@media (min-width: 560px) { .piece { font-size: 48px; } }
/* Scale the glyph off the BOARD, not the viewport. In the 3-column desktop layout the
   board is much narrower than the window (386px board inside a 900px window), so the
   viewport-based sizes above put a 48px piece in a 48px square at one width and a 48px
   piece in an 88.5px square at another. 1cqw = 1% of the board, a square is 12.5% of it,
   so 9cqw is ~72% of a square at every layout. Engines without container queries drop
   this declaration and keep the two rules above. */
.board { container-type: inline-size; }
.piece { font-size: 9cqw; }
.piece.w { color: #f4f0e6; -webkit-text-stroke: 1.2px #2b2620; }  /* ivory fill, dark outline */
.piece.b { color: #1d1a16; -webkit-text-stroke: 1.2px #000; }
.dot { width: 30%; height: 30%; border-radius: 50%; background: rgba(40, 35, 28, .32); cursor: pointer; }
.dot.cap { width: 78%; height: 78%; background: transparent; border: 4px solid rgba(40, 35, 28, .3); border-radius: 50%; }

/* board coordinates (chess.com style) */
.coord { position: absolute; font-size: 10px; font-weight: 700; font-family: "Sora", sans-serif; pointer-events: none; opacity: .7; }
.coord.file { bottom: 2px; right: 4px; }
.coord.rank { top: 2px; left: 4px; }
.sq.light .coord { color: var(--sq-dark); }
.sq.dark .coord { color: var(--sq-light); }

/* drag-over highlight */
.sq.drag-over { box-shadow: inset 0 0 0 4px rgba(59, 130, 246, .6); }

/* premove queued squares (chess.com red tint) */
.sq.pre { box-shadow: inset 0 0 0 60px rgba(235, 97, 80, .45); }

/* right-click square highlight */
.sq.mark { box-shadow: inset 0 0 0 60px rgba(235, 97, 80, .55); }

/* right-click arrow overlay */
.arrowlayer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 6; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .4)); }

/* last-move piece slide */
.piece.sliding { transition: transform .2s cubic-bezier(.2, .8, .2, 1) !important; }
@media (prefers-reduced-motion: reduce) { .piece.sliding { transition: none !important; } }

/* settings rows */
.set-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.set-row:last-of-type { border-bottom: none; }
.set-row .btn { padding: 8px 14px; font-size: 13px; width: auto; min-width: 70px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.board-swatch { width: 36px; height: 36px; border-radius: var(--r-1, 8px); border: 2px solid var(--line); cursor: pointer; transition: transform .12s, border-color .2s; }
.board-swatch:hover { transform: scale(1.1); }
.board-swatch.on { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(59, 130, 246, .4); }

/* opening name badge */
.opening-badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--blue-2); background: rgba(59, 130, 246, .1); border: 1px solid rgba(59, 130, 246, .3); border-radius: var(--r-pill, 999px); padding: 3px 10px; margin-top: 4px; }

.actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.actions .btn { padding: 12px 6px; font-size: 13px; }
.movelist { max-height: 220px; overflow-y: auto; font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--muted); line-height: 1.7; }
.banner { text-align: center; font-weight: 800; padding: 12px; border-radius: var(--r); background: var(--glass-2); border: 1px solid var(--line); }
.banner.win { color: var(--gold-2); border-color: rgba(245,196,81,.4); box-shadow: 0 0 24px rgba(245,196,81,.18); }

/* lobby list */
.players { list-style: none; padding: 0; margin: 10px 0; }
.players li { display: flex; align-items: center; gap: 8px; padding: 11px 13px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 6px; }
.tag { font-size: 11px; padding: 1px 8px; border-radius: var(--r-pill, 999px); background: var(--glass-2); color: var(--muted); }
.tag.you { color: #04132e; background: linear-gradient(135deg, var(--blue-2), var(--blue)); }

/* ---------- bottom nav ---------- */
.nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 90; display: flex; gap: 4px; padding: 7px;
  border-radius: var(--r-pill, 999px); background: rgba(12, 16, 30, .72); border: 1px solid var(--line-2); backdrop-filter: blur(20px); box-shadow: var(--shadow); }
.nav .ni { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 15px; border-radius: var(--r-pill, 999px); cursor: pointer; color: var(--muted); font-size: 10px; font-weight: 700; transition: color .2s, background .2s; }
.nav .ni .nii { font-size: 19px; }
.nav .ni.on { color: #fff; background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 6px 18px rgba(59,130,246,.4); }
@media (max-width: 380px) { .nav .ni { padding: 8px 11px; } .nav .ni .nl { display: none; } }

/* ---------- modal / picker / toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(3, 6, 14, .72); display: flex; align-items: center; justify-content: center; z-index: 120; padding: 16px; backdrop-filter: blur(6px); animation: fadeUp .25s ease; }
.sheet { width: 100%; max-width: 420px; padding: 20px; }
.sheet h3 { margin: 0 0 10px; }
.sheet .btn { width: 100%; }
.lbrow { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.grate { font-weight: 800; font-size: 11px; color: #04132e; background: linear-gradient(135deg, var(--blue-2), var(--blue)); border-radius: var(--r-pill, 999px); padding: 2px 9px; }
.rates { display: flex; gap: 6px; flex-wrap: wrap; }

/* rewards vault */
.vault { text-align: center; }
.vaultico { font-size: 60px; filter: drop-shadow(0 8px 26px rgba(245,196,81,.5)); animation: float 3.5s ease-in-out infinite; }
.streakpill { display: inline-block; margin: 8px 0; font-size: 12px; color: var(--gold-2); background: rgba(245,196,81,.1); border: 1px solid rgba(245,196,81,.3); border-radius: var(--r-pill, 999px); padding: 4px 12px; }
.achgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; text-align: left; }
.ach { display: flex; align-items: center; gap: 9px; font-size: 12px; padding: 9px; border-radius: var(--r-sm); background: var(--glass); border: 1px solid var(--line); opacity: .45; }
.ach.on { opacity: 1; border-color: rgba(245,196,81,.45); }
.ach .aico { font-size: 18px; filter: grayscale(1); } .ach.on .aico { filter: none; }

.picker { position: fixed; inset: 0; background: rgba(3,6,14,.7); display: flex; align-items: center; justify-content: center; z-index: 130; backdrop-filter: blur(6px); }
.picker .opts { display: flex; gap: 10px; padding: 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line-2); }
.picker .opt { font-size: 42px; cursor: pointer; color: #fff; transition: transform .1s; } .picker .opt:hover { transform: scale(1.15); }

.toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%) translateY(20px); background: rgba(12,16,30,.92); color: var(--text); padding: 11px 18px; border-radius: var(--r-pill, 999px); border: 1px solid var(--line-2); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 140; backdrop-filter: blur(12px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.confetti i { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; animation: fall 3s linear forwards; }
@keyframes fall { to { transform: translateY(108vh) rotate(560deg); } }

.placeholder { text-align: center; padding: 40px 20px; }
.placeholder .pico { font-size: 52px; opacity: .8; }

/* ---------- light mode ---------- */
body.light { --bg: #eef2fb; --bg-2: #e3e9f6; --text: #0f1730; --muted: #586079;
  --glass: rgba(255,255,255,.6); --glass-2: rgba(255,255,255,.8); --line: rgba(15,23,48,.1); --line-2: rgba(15,23,48,.2);
  --sq-light: #e7ecf7; --sq-dark: #7e8db0; }
body.light { background: radial-gradient(80% 50% at 15% -5%, rgba(59,130,246,.15), transparent 60%), radial-gradient(70% 45% at 95% 0%, color-mix(in srgb, var(--brand) 12%, transparent), transparent 55%), var(--bg); }
body.light .piece.b { color: #1b2230; } body.light .piece.w { color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.5); }
body.light .nav { background: rgba(255,255,255,.8); }
