/* Grok Checkers: one screen, no page scroll. The board size (--bs) is set by game.js from the window size. */
html, body.cz-body { height: 100%; overflow: hidden; }
body.cz-body.ck-body { background-image: radial-gradient(1px 1px at 12% 20%, rgba(255,255,255,.9), transparent), radial-gradient(1px 1px at 70% 14%, rgba(255,255,255,.7), transparent), radial-gradient(1.5px 1.5px at 42% 74%, rgba(255,255,255,.8), transparent), radial-gradient(1px 1px at 88% 60%, rgba(255,255,255,.7), transparent), radial-gradient(900px 500px at 50% -10%, rgba(25,193,85,.20), transparent 60%), linear-gradient(180deg, #07140d, #0d2a1b 60%, #0a1f14); }
.ck-body .cz-title, .ck-body .cz-back { color: #e9fff0; } .ck-body .cz-title span { color: #ffd76a; }
body.cz-body { min-height: 0; height: 100vh; height: 100dvh;
  background: radial-gradient(1200px 600px at 50% -10%, rgba(25,193,85,.18), transparent 60%), var(--field); }
.cz-app.game-wrap { width: 100%; max-width: 1500px; height: 100%; margin: 0 auto; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.cz-top { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; flex: 0 0 auto; position: relative; z-index: 30; }
.cz-back { font-weight: 600; text-decoration: none; color: var(--brand-deep); white-space: nowrap; }
.cz-title { margin: 0; font-family: Chango, Georgia, serif; font-weight: 400; font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.1; white-space: nowrap; }
.cz-title span { color: var(--brand); }
.cz-modes { display: inline-flex; padding: 3px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(20,73,54,.08); }
.cz-mode { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--ink); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.cz-mode.on { background: var(--brand); color: #fff; box-shadow: 0 3px 0 var(--brand-deep); }
.cz-links { margin-left: auto; }
.cz-links .ggs-btn { min-height: 34px; }
.gg-links.ggs-made { display: none; }
/* Choices: a drop-down that stays open until closed */
.cz-choices-wrap { position: relative; }
.cz-choices-btn { font: inherit; font-weight: 600; cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--brand); background: #fff; color: var(--brand-deep); }
.cz-choices-btn[aria-expanded=true] { background: rgba(25,193,85,.16); }
.cz-choices { position: absolute; top: calc(100% + 8px); left: 0; width: 250px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(7,42,27,.25); display: flex; flex-direction: column; gap: 4px; max-height: calc(100dvh - 80px); overflow: auto; }
.cz-choices[hidden] { display: none; }
.cz-ch-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 6px; font-family: Chango, Georgia, serif; }
.cz-x { font: inherit; font-size: 1.3rem; line-height: 1; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.cz-ch-item { font: inherit; font-weight: 600; text-align: left; padding: 7px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink); }
.cz-ch-item:hover, .cz-ch-item:focus-visible { background: rgba(25,193,85,.12); border-color: rgba(25,193,85,.4); outline: none; }
.cz-ch-item:disabled { opacity: .45; cursor: default; background: transparent; }
.cz-ch-label { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--brand-deep); margin: 6px 4px 2px; }
.cz-themes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cz-theme { font: inherit; font-size: .85rem; font-weight: 600; display: flex; align-items: center; gap: 2px; padding: 5px 7px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.cz-theme i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.cz-theme i:last-of-type { margin-right: 5px; }
.cz-theme.on { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(25,193,85,.35); }
.cz-theme[data-theme=starport] i:first-child { background: #e9f7e4; } .cz-theme[data-theme=starport] i:nth-child(2) { background: #3c9a63; }
.cz-theme[data-theme=nebula] i:first-child { background: #e3e8ff; } .cz-theme[data-theme=nebula] i:nth-child(2) { background: #6470c4; }
.cz-theme[data-theme=walnut] i:first-child { background: #f2dcb6; } .cz-theme[data-theme=walnut] i:nth-child(2) { background: #a9744c; }
.cz-theme[data-theme=mars] i:first-child { background: #f7e1d2; } .cz-theme[data-theme=mars] i:nth-child(2) { background: #c0583a; }
/* layout */
.cz-main { flex: 1 1 auto; min-height: 0; display: grid; gap: 12px; justify-content: center;
  grid-template-columns: minmax(180px, 270px) var(--bs, 480px) minmax(210px, 340px); grid-template-areas: "left center right"; }
.cz-main.narrow { grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "center center" "left right"; gap: 8px; }
.cz-left { grid-area: left; } .cz-center { grid-area: center; } .cz-right { grid-area: right; }
.cz-left.panel, .cz-right.panel { min-height: 0; overflow: auto; padding: 12px; border-radius: 16px; overscroll-behavior: contain; scrollbar-width: thin; }
.cz-right.panel { display: flex; flex-direction: column; }
.cz-center { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 0; justify-self: center; }
/* player bars */
.cz-bar { width: var(--bs, 480px); height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border-radius: 12px;
  background: rgba(255,255,255,.75); border: 1px solid var(--line); font-weight: 600; overflow: hidden; }
.cz-bar.turn { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(25,193,85,.25); }
.cz-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #222; flex: 0 0 auto; }
.cz-dot.w { background: #fff; } .cz-dot.b { background: #1d1f22; }
.cz-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cz-caps { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; font-size: 1.05rem; letter-spacing: -2px; color: #333; }
.cz-caps em { font-style: normal; font-size: .8rem; letter-spacing: 0; margin-left: 6px; color: var(--brand-deep); }
.cz-clock { font-variant-numeric: tabular-nums; font-family: ui-monospace, Menlo, Consolas, monospace; padding: 2px 8px; border-radius: 8px; background: #0b2418; color: #7dffa8; }
.cz-clock.low { background: #5a1410; color: #ffd2cc; }
.cz-clock.run { box-shadow: 0 0 0 2px #3dff8a; }
/* board */
.cz-boardwrap { position: relative; width: var(--bs, 480px); height: var(--bs, 480px); flex: 0 0 auto; border-radius: 10px;
  box-shadow: 0 14px 40px rgba(7,42,27,.30), 0 0 0 6px var(--frame, #0e3a24); }
.cz-board { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(8, 1fr); border-radius: 8px; overflow: hidden; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.cz-sq { position: relative; display: flex; align-items: center; justify-content: center; cursor: pointer; background: var(--light); }
.cz-sq.dk { background: var(--dark); }
.cz-sq.last::before { content: ''; position: absolute; inset: 0; background: var(--last, rgba(255, 214, 64, .45)); }
.cz-sq.sel::before { content: ''; position: absolute; inset: 0; background: rgba(25, 193, 85, .55); }
.cz-sq.chk::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle, rgba(255,40,40,.95) 0%, rgba(255,40,40,.55) 40%, transparent 75%); }
.cz-sq.tgt::after { content: ''; position: absolute; width: 30%; height: 30%; border-radius: 50%; background: rgba(8, 60, 30, .38); pointer-events: none; z-index: 3; }
.cz-sq.tgt.cap::after { width: 88%; height: 88%; background: transparent; border: calc(var(--bs, 480px) / 110) solid rgba(8, 60, 30, .45); box-sizing: border-box; }
.cz-sq:focus-visible { outline: 3px solid #ffde59; outline-offset: -3px; z-index: 4; }
/* checkers pieces: original CSS discs */
.ck-pc { position: relative; z-index: 2; width: 78%; height: 78%; border-radius: 50%; pointer-events: none; transition: transform .12s, box-shadow .12s;
  display: flex; align-items: center; justify-content: center; font-size: calc(var(--bs, 480px) / 8 * .42); line-height: 1; }
.ck-pc::before { content: ''; position: absolute; inset: 14%; border-radius: 50%; border: calc(var(--bs, 480px) / 260) solid; opacity: .55; }
.ck-pc.b { background: radial-gradient(circle at 35% 30%, #5b6170 0%, #262a33 45%, #0d0f14 100%); color: #ffd76a;
  box-shadow: 0 calc(var(--bs, 480px) / 120) 0 #050608, 0 calc(var(--bs, 480px) / 70) calc(var(--bs, 480px) / 60) rgba(0,0,0,.45), inset 0 0 0 calc(var(--bs, 480px) / 220) #8a93a8; }
.ck-pc.b::before { border-color: #9aa4ba; }
.ck-pc.w { background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f3ead7 45%, #cdbb96 100%); color: #b5172f;
  box-shadow: 0 calc(var(--bs, 480px) / 120) 0 #8f7c58, 0 calc(var(--bs, 480px) / 70) calc(var(--bs, 480px) / 60) rgba(0,0,0,.35), inset 0 0 0 calc(var(--bs, 480px) / 220) #fff; }
.ck-pc.w::before { border-color: #a88f62; }
.ck-pc.k::after { content: '\265B\FE0E'; position: relative; font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "DejaVu Sans", serif; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.ck-pc.ghost { opacity: .28; }
.ck-pc.taken { opacity: .45; filter: grayscale(.6); transform: scale(.85); }
.cz-sq.sel .ck-pc { transform: scale(1.08) translateY(-4%); box-shadow: 0 0 0 calc(var(--bs, 480px) / 130) #3dff8a, 0 calc(var(--bs, 480px) / 40) calc(var(--bs, 480px) / 40) rgba(0,0,0,.45); }
.cz-sq.can .ck-pc { box-shadow: 0 0 0 calc(var(--bs, 480px) / 180) rgba(255, 222, 89, .9), 0 0 calc(var(--bs, 480px) / 40) rgba(255, 222, 89, .7); }
.cz-sq.hop::before { content: ''; position: absolute; inset: 0; background: rgba(25, 193, 85, .32); }
.ck-num { position: absolute; z-index: 1; left: 5%; top: 2%; font-size: calc(var(--bs, 480px) / 52); font-weight: 600; opacity: .75; pointer-events: none; font-family: Gluten, sans-serif; color: var(--light); }
body.no-coords .ck-num { display: none; }
.ck-dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; vertical-align: -1px; border: 1px solid #555; }
.ck-dot.b { background: #1d2028; } .ck-dot.w { background: #f3ead7; }
.cz-dot.w { background: #f3ead7; } .cz-dot.b { background: #1d2028; }
.cz-caps i { display: inline-block; width: .78em; height: .78em; border-radius: 50%; margin-right: -3px; border: 1px solid #555; vertical-align: -1px; }
.cz-caps i.w { background: #f3ead7; } .cz-caps i.b { background: #262a33; }
.cz-caps { letter-spacing: 0; }
.cz-co { position: absolute; z-index: 1; font-size: calc(var(--bs, 480px) / 48); font-weight: 600; opacity: .8; pointer-events: none; font-family: Gluten, sans-serif; }
.cz-co.f { right: 4%; bottom: 1%; } .cz-co.r { left: 4%; top: 1%; }
.cz-sq .cz-co { color: var(--dark); } .cz-sq.dk .cz-co { color: var(--light); }
body.no-coords .cz-co { display: none; }
.theme-starport { --light: #e9f7e4; --dark: #3c9a63; --frame: #0e3a24; }
.theme-nebula { --light: #e3e8ff; --dark: #6470c4; --frame: #1d2257; --last: rgba(120, 220, 255, .45); }
.theme-walnut { --light: #f2dcb6; --dark: #a9744c; --frame: #4a2c17; }
.theme-mars { --light: #f7e1d2; --dark: #c0583a; --frame: #4d1a0e; --last: rgba(255, 240, 120, .5); }
/* thinking */
.cz-thinking { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); z-index: 9; padding: 4px 12px; border-radius: 999px; background: rgba(4,20,12,.78); color: #b9ffd2; font-size: .9rem; font-weight: 600; white-space: nowrap; }
.cz-thinking[hidden] { display: none; }
.cz-thinking span { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: #3dff8a; animation: czb 1s infinite ease-in-out; }
.cz-thinking span:nth-child(2) { animation-delay: .15s; } .cz-thinking span:nth-child(3) { animation-delay: .3s; margin-right: 6px; }
@keyframes czb { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: scale(1.15); } }
/* left panel */
.cz-status { font-family: Chango, Georgia, serif; font-size: 1.05rem; line-height: 1.25; padding: 10px 12px; border-radius: 12px; background: linear-gradient(135deg, rgba(25,193,85,.16), rgba(25,193,85,.04)); border: 1px solid rgba(25,193,85,.35); }
.cz-status.over { background: linear-gradient(135deg, #0e3a24, #19c155); color: #fff; }
.cz-left .msg { margin: 6px 2px; font-size: .92rem; min-height: 0; }
.cz-left label.field { margin: 8px 0 0; font-size: .72rem; }
.cz-left input[type=text], .cz-right input[type=text], .cz-right select { padding: 6px 10px; border-radius: 10px; }
.cz-lbl { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--brand-deep); margin: 10px 0 4px; }
.cz-levels { display: flex; flex-direction: column; gap: 4px; }
.cz-lv { font: inherit; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); font-weight: 600; }
.cz-lv small { font-weight: 400; color: rgba(20,73,54,.65); font-size: .78rem; }
.cz-lv.on { border-color: var(--brand); background: rgba(25,193,85,.14); }
.cz-seg { display: flex; gap: 4px; }
.cz-seg button { flex: 1; font: inherit; font-size: .88rem; font-weight: 600; padding: 5px 4px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); white-space: nowrap; }
.cz-seg button.on { border-color: var(--brand); background: rgba(25,193,85,.14); }
.cz-start, .cz-full { width: 100%; margin-top: 10px; }
.cz-row2 { display: flex; gap: 6px; margin-top: 8px; } .cz-row2 > * { flex: 1; padding: 8px 10px; }
.cz-drawbox { margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: #fff7d6; border: 1px solid #e8cf6a; font-weight: 600; }
.cz-drawbox[hidden], .cz-onctl[hidden], .cz-setup[hidden] { display: none; }
/* right panel */
.cz-tabs { margin-bottom: 8px; flex: 0 0 auto; }
.cz-badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: #e0452b; color: #fff; font-size: .72rem; line-height: 18px; text-align: center; }
.cz-badge[hidden] { display: none; }
.cz-pane { flex: 1 1 auto; min-height: 0; overflow: auto; scrollbar-width: thin; }
.cz-pane[hidden] { display: none; }
.cz-moves { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 2.4em 1fr 1fr; font-variant-numeric: tabular-nums; }
.cz-moves li { display: contents; }
.cz-moves .n { color: rgba(20,73,54,.55); padding: 3px 4px; }
.cz-moves .m { padding: 3px 6px; border-radius: 6px; font-weight: 600; }
.cz-moves li:nth-child(odd) > * { background: rgba(25,193,85,.06); }
.cz-moves .m.cur { background: rgba(25,193,85,.3) !important; }
.cz-empty { color: rgba(20,73,54,.6); font-size: .95rem; }
.cz-small { font-size: .8rem; }
.cz-scoreboard table.board { font-size: .9rem; } .cz-scoreboard table.board td, .cz-scoreboard table.board th { padding: 4px 6px; }
/* lobby */
.cz-lob h4 { margin: 12px 0 6px; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-deep); }
.cz-lob h4:first-child { margin-top: 0; }
.cz-me { padding: 8px 10px; border-radius: 12px; background: #0b2418; color: #d8ffe6; font-weight: 600; }
.cz-me b { color: #7dffa8; }
.cz-li { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.cz-li .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cz-li .tag { font-size: .72rem; padding: 0 6px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.cz-mini { font: inherit; font-size: .82rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--brand); background: #fff; color: var(--brand-deep); cursor: pointer; white-space: nowrap; }
.cz-mini.go { background: var(--brand); color: #fff; }
.cz-mini.no { border-color: #c9a; color: #8a2b2b; }
.cz-form { display: grid; gap: 6px; }
.cz-form .cz-seg button { font-size: .82rem; }
.cz-lob .btn { padding: 7px 14px; }
.cz-on { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #19c155; box-shadow: 0 0 6px #19c155; }
/* the popup chat floats above the page; keep it from adding scroll */
#gg-chat.ggc-popup { position: fixed; z-index: 40; }
/* narrow screens */
.cz-main.narrow .cz-left.panel, .cz-main.narrow .cz-right.panel { padding: 8px; }
.cz-main.narrow .cz-status { font-size: .9rem; padding: 6px 8px; }
@media (max-width: 640px) {
  .cz-title { font-size: 1.1rem; } .cz-links { display: none; } .cz-mode { padding: 5px 10px; font-size: .9rem; } .cz-choices-btn { padding: 5px 10px; font-size: .9rem; }
  .cz-app.game-wrap { padding: 6px 6px 6px; gap: 6px; } .cz-bar { height: 28px; font-size: .88rem; }
}
.cz-bar { flex: 0 0 auto; }
