.grokweather-body .cz-status { background: linear-gradient(135deg, rgba(30,110,80,.55), rgba(4,16,28,.6)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; font-family: Inter, system-ui, sans-serif; font-weight: 500; color: #e8eeff; transition: background .3s; }
.grokweather-body .gs-k.ac { background: linear-gradient(180deg, #ffd166, #b07a1a); color: #0c0618; }
.grokweather-body .cz-app.game-wrap { max-height: 100dvh; overflow: hidden; box-sizing: border-box; }
.grokweather-body .cz-main { min-height: 0; overflow: hidden; }
.grokweather-body .cz-left.panel, .grokweather-body .cz-right.panel { max-height: 100%; overflow: auto; }
.grokweather-body #cv { background: transparent; border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08), 0 0 40px rgba(74,224,216,.12); }
.gt-nav { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:4px 0 4px; }
.gt-acts { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:3px; margin:0 0 4px; }
.gt-b { font:600 .72rem Inter,system-ui,sans-serif; letter-spacing:.01em; padding:6px 2px; border-radius:10px; border:1px solid rgba(255,255,255,.14); background:linear-gradient(180deg,rgba(52,60,92,.75),rgba(20,24,40,.8)); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); box-shadow:0 2px 8px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.08); color:#e8eeff; transition:background .15s, transform .08s, box-shadow .15s; cursor:pointer; touch-action:none; user-select:none; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.gt-b b { color:#ffd166; font-weight:800; }
.gt-b:hover { box-shadow:0 2px 12px rgba(255,209,102,.18), inset 0 1px 0 rgba(255,255,255,.12); }
.gt-b:active, .gt-b.on { background:linear-gradient(180deg,#7affc0,#2aa878); color:#140f04; transform:translateY(1px); }
.gt-b.dim { opacity:.4; }
.gt-hint { margin:0 0 6px; font:500 .72rem Inter,system-ui,sans-serif; color:#b8c4e4; min-height:2.2em; line-height:1.25; }
@media (max-height: 700px) { .gt-b { padding:4px 2px; font-size:.66rem; } .gt-hint { font-size:.64rem; margin:0 0 3px; } }
@media (max-height: 640px) { .gt-hint { display:none; } }
@media (max-height: 700px) { .grokweather-body .cz-status { max-height: 3.9em; overflow: hidden; } }

/* modern glass look for the page around the board */
.grokweather-body { font-family: Inter, system-ui, sans-serif; }
.grokweather-body .cz-left.panel, .grokweather-body .cz-right.panel { background: linear-gradient(180deg, rgba(14,40,54,.55), rgba(4,12,20,.6)); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; }
.grokweather-body .gt-nav .gt-b, .grokweather-body .gs-k { border-radius: 12px; }
.grokweather-body .cz-hud, .grokweather-body .hud { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.grokweather-body .gs-k { background: linear-gradient(180deg, rgba(58,68,104,.85), rgba(22,26,44,.9)) !important; border: 1px solid rgba(255,255,255,.14) !important; box-shadow: 0 4px 14px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.10) !important; color: #eef2fb !important; font-family: Inter, system-ui, sans-serif !important; transition: transform .08s, background .15s; }
.grokweather-body .gs-k.ac { background: linear-gradient(180deg, #ffd166, #c08a2a) !important; color: #140f04 !important; }
.grokweather-body .gs-k:active, .grokweather-body .gs-k.on { transform: translateY(1px) scale(.98); background: linear-gradient(180deg, #ffd166, #c08a2a) !important; color: #140f04 !important; }

/* three.js layer sits exactly under the transparent HUD canvas */
.grokweather-body .gs-wrap { position: relative; }
.grokweather-body #gl { position: absolute; z-index: 0; border-radius: 16px; display: block; background: #07060a; pointer-events: none; }
.grokweather-body #cv { position: relative; z-index: 1; }
.grokweather-body .gs-over { z-index: 2; }
.grokweather-body { background: radial-gradient(ellipse at 30% 0%, #13284a 0%, #0a1426 55%, #03060c 100%) fixed; }
.grokweather-body #gl { background: #02101a; }
.grokweather-body #cv { cursor: crosshair; }

/* never let the three columns overflow the window: centre safely and keep panel content inside its panel */
.grokweather-body .cz-main { justify-content: safe center; max-width: 100%; }
.grokweather-body .cz-left.panel, .grokweather-body .cz-right.panel { overflow-x: hidden; min-width: 0; }
.grokweather-body .cz-left.panel > *, .grokweather-body .cz-right.panel > * { min-width: 0; max-width: 100%; }

/* narrower windows: high scores go under the board and stretch across */
.grokweather-body .cz-main.mid { grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "left center" "left right"; }
.grokweather-body .cz-main.mid .cz-right.panel { min-height: 0; overflow-y: auto; }
.grokweather-body .cz-main.mid { width: 100%; justify-content: stretch; }
.grokweather-body .cz-main.mid #center { justify-self: center; }

/* ---- Grok Weather Simulator ---- */
.grokweather-body .gs-wrap { position: relative; }
.gw-sec { font: 700 .68rem Inter, system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #8fb4e8; margin: 8px 0 4px; }
.gw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.gw-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gw-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gw-b { font: 600 .7rem Inter, system-ui, sans-serif; padding: 6px 2px; border-radius: 9px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(180deg, rgba(40,60,100,.75), rgba(16,22,40,.85)); color: #e8eeff; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gw-b:hover { border-color: rgba(138,224,255,.5); }
.gw-b.on { background: linear-gradient(180deg, #8ae0ff, #2a7ab0); color: #04101c; border-color: #bfefff; }
.gw-b:disabled { opacity: .35; cursor: default; }
.gw-scn { display: grid; gap: 4px; margin: 4px 0; }
.gw-scn button { text-align: left; font: 600 .74rem Inter, system-ui, sans-serif; padding: 6px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(20,32,60,.7); color: #e8eeff; cursor: pointer; }
.gw-scn button small { display: block; font-weight: 400; color: #a8b8d8; font-size: .66rem; line-height: 1.25; margin-top: 2px; }
.gw-scn button.on { border-color: #8ae0ff; background: rgba(40,90,140,.75); }
.gw-scn button .best { float: right; color: #ffd166; font-weight: 700; }
#gwTip { position: absolute; z-index: 3; pointer-events: none; max-width: 300px; padding: 8px 10px; border-radius: 10px; background: rgba(4,10,22,.9); border: 1px solid rgba(138,224,255,.35); color: #e8f2ff; font: 500 .74rem/1.35 Inter, system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0,0,0,.5); display: none; }
#gwTip b { color: #8ae0ff; } #gwTip i { color: #ffd166; font-style: normal; }
#gwQ { position: absolute; z-index: 4; left: 50%; bottom: 10px; transform: translateX(-50%); width: min(92%, 640px); padding: 12px 14px; border-radius: 14px; background: linear-gradient(180deg, rgba(10,24,48,.94), rgba(4,10,24,.96)); border: 1px solid rgba(255,209,102,.55); color: #eef4ff; font: 500 .82rem/1.4 Inter, system-ui, sans-serif; box-shadow: 0 12px 40px rgba(0,0,0,.6); display: none; }
#gwQ h3 { margin: 0 0 6px; font: 800 .74rem Inter, sans-serif; letter-spacing: .08em; color: #ffd166; text-transform: uppercase; }
#gwQ p { margin: 0 0 8px; }
#gwQ .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 5px; }
#gwQ .opts button { font: 600 .76rem Inter, sans-serif; padding: 8px 8px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(40,64,110,.8); color: #fff; cursor: pointer; text-align: left; }
#gwQ .opts button:hover { background: rgba(70,110,170,.9); }
#gwQ .why { font-size: .72rem; color: #b8c8e8; margin-top: 6px; }
#gwQ.res { border-color: rgba(126,224,138,.6); }
.gw-probe { font: 500 .72rem/1.35 Inter, system-ui, sans-serif; color: #d8e4ff; background: rgba(6,14,30,.6); border: 1px solid rgba(138,224,255,.2); border-radius: 10px; padding: 6px 8px; margin-top: 4px; min-height: 3em; }
.gw-probe b { color: #8ae0ff; }
.gw-feed { font: 500 .7rem/1.35 Inter, system-ui, sans-serif; color: #c8d6f0; max-height: 9.5em; overflow: auto; margin: 4px 0 0; padding: 0; list-style: none; }
.gw-feed li { padding: 3px 0; border-top: 1px solid rgba(255,255,255,.06); }
.gw-feed li b { color: #ffd166; }
.gw-teaser { margin-top: 10px; padding: 8px 10px; border-radius: 12px; border: 1px dashed rgba(255,209,102,.6); color: #ffd166; font: 700 .8rem Inter, sans-serif; }
.gw-teaser small { display: block; font-weight: 500; color: #e8dcc0; margin-top: 2px; }
.gw-modal { position: absolute; z-index: 5; inset: 6% 8%; overflow: auto; padding: 14px 16px; border-radius: 14px; background: rgba(4,10,24,.96); border: 1px solid rgba(138,224,255,.4); color: #e8f0ff; font: 500 .8rem/1.45 Inter, sans-serif; }
.gw-modal h3 { margin: 0 0 8px; color: #8ae0ff; } .gw-modal h4 { margin: 10px 0 2px; color: #ffd166; } .gw-modal h4.lock { color: #6a7898; }
.gw-modal button.x { float: right; }
.grokweather-body .cz-left.panel { padding-bottom: 8px; }
.grokweather-body .cz-scoreboard, .grokweather-body .cz-right .muted { color: #c8d6f0; }
.grokweather-body .cz-app.game-wrap { max-width: 2000px; }
/* Grok Weather Simulator: mode tabs and Control tools */
.gw-modes .gw-b { font-weight: 800; }
#modeNote { margin: 4px 0 6px; }
.gw-brief { font-size: .72rem; line-height: 1.35; color: #d8e4ff; background: rgba(40,64,110,.35); border-radius: 8px; padding: 6px 8px; margin-bottom: 6px; max-height: 9.5em; overflow: auto; }
.gw-brief i { color: #a8b8d8; }
.gw-ctlstat { font-size: .72rem; margin-bottom: 6px; }
.gw-ctlstat .bud { position: relative; display: flex; justify-content: space-between; padding: 3px 6px; border-radius: 6px; background: rgba(255,255,255,.07); overflow: hidden; margin-bottom: 4px; }
.gw-ctlstat .bud i { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(255,209,102,.25); z-index: 0; }
.gw-ctlstat .bud span, .gw-ctlstat .bud b { position: relative; z-index: 1; }
.gw-ctlstat .goal { padding: 2px 0; } .gw-ctlstat .goal.ok { color: #7ee08a; } .gw-ctlstat .goal.bad { color: #ff8a8a; }
.gw-ctlstat small { color: #a8b8d8; } .gw-ctlstat .gdays { color: #d8e4ff; } .gw-ctlstat .dmg { color: #a8b8d8; } .gw-ctlstat .dmg.bad { color: #ffb84a; }
.gw-tools .gw-b { text-align: left; font-size: .7rem; position: relative; }
.gw-tools .gw-b.dis { opacity: .45; }
.gw-tools .cd { font-style: normal; color: #ffd166; font-size: .62rem; }
.gw-lv { margin-top: 4px; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); }
.gw-lv .gw-b { font-size: .64rem; padding-left: 2px; padding-right: 2px; }
.gw-lv .gw-b.warn { border-color: rgba(255,138,90,.7); }
.gw-ctlinfo { font-size: .68rem; line-height: 1.35; margin-top: 4px; color: #d8e4ff; }
.gw-ctlinfo .warn, .gw-feed .warn { color: #ffb84a; }

/* forecast board docked to the side (never over the globe); bottom drawer on narrow views */
#gwQ { left: auto; right: 8px; top: 8px; bottom: auto; transform: none; width: min(330px, 38%); max-height: calc(100% - 16px); overflow-y: auto; padding: 10px 12px; background: linear-gradient(180deg, rgba(10,24,48,.80), rgba(4,10,24,.84)); backdrop-filter: blur(3px); box-sizing: border-box; font-size: .78rem; }
#gwQ .opts { grid-template-columns: 1fr; }
#gwQ .opts button { padding: 6px 8px; }
.gw-narrow #gwQ { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: 38%; }
.gw-narrow #gwQ .opts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
#gwQt { position: absolute; z-index: 5; top: 8px; right: calc(min(330px, 38%) + 12px); display: none; padding: 3px 8px; border-radius: 8px; border: 1px solid rgba(255,209,102,.55); background: rgba(4,10,24,.85); color: #ffd166; font: 700 .7rem Inter, sans-serif; cursor: pointer; }
#gwQt.closed { right: 8px; }
.gw-narrow #gwQt { top: auto; right: 8px; bottom: calc(38% + 12px); }
.gw-narrow #gwQt.closed { bottom: 8px; }

/* Site neon chrome and one-screen shell (body.wx-page). Playfield size stays with the game JS. */
html:has(body.wx-page), body.wx-page {
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  color-scheme: dark;
}
body.wx-page {
  min-height: 0;
  touch-action: manipulation;
  background-image: none;
  background: transparent;
  color: var(--fx-text, #e6fff0);
}
body.wx-page, body.wx-page * { box-sizing: border-box; }
body.wx-page .cz-app.game-wrap {
  width: 100%;
  max-width: 1500px;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  padding: max(6px, env(safe-area-inset-top)) 12px max(8px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}
body.wx-page main.cz-main,
body.wx-page main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-content: safe center;
}
#app > .wx-boards-check {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  border: 0; padding: 0; margin: -1px;
}
#app > .wx-boards-mask { display: none; }
body.wx-page .cz-top { flex-shrink: 0; min-width: 0; }
body.wx-page .cz-back {
  margin: 0; flex-shrink: 0; color: var(--fx-neon, #3dff8a); font-size: 0.92rem;
}
body.wx-page .cz-title {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw + 0.4rem, 1.75rem);
  line-height: 1.1;
  color: var(--fx-text, #e6fff0);
  filter: drop-shadow(0 0 12px rgba(25, 193, 85, 0.4));
}
body.wx-page .cz-title span { color: var(--fx-neon, #3dff8a); }
body.wx-page .gg-links a,
body.wx-page .wx-boards-btn,
body.wx-page .wx-boards-close,
body.wx-page .cz-choices-btn {
  font-weight: 600;
  color: var(--fx-text, #e6fff0);
  text-decoration: none;
  padding: 4px 12px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--fx-edge, rgba(61, 255, 138, 0.24));
  border-radius: 999px;
  background: rgba(25, 193, 85, 0.08);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
body.wx-page .gg-links a:hover,
body.wx-page .gg-links a:focus-visible,
body.wx-page .wx-boards-btn:hover,
body.wx-page .wx-boards-close:hover,
body.wx-page .cz-choices-btn:hover,
body.wx-page .cz-choices-btn:focus-visible {
  background: rgba(25, 193, 85, 0.16);
  border-color: var(--fx-neon, #3dff8a);
  outline: none;
}
body.wx-page .cz-links { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
body.wx-page .wx-boards-btn { display: none; }
body.wx-page .wx-boards-close { display: none; font-size: 0.9rem; margin-left: auto; }
body.wx-page .wx-side-head { display: none; }
body.wx-page .cz-modes {
  display: flex; border: 1px solid var(--fx-edge, rgba(61, 255, 138, 0.24)); border-radius: 999px; overflow: hidden;
}
body.wx-page .cz-mode {
  background: transparent; color: var(--fx-dim, #a6d8bb); border: 0; padding: 4px 11px; font: inherit; cursor: pointer;
}
body.wx-page .cz-mode.on {
  background: linear-gradient(180deg, #3dff8a, #19c155); color: #03140b;
}
body.wx-page .cz-choices {
  background: linear-gradient(160deg, rgba(10, 46, 28, 0.98), rgba(3, 15, 9, 0.98) 55%);
  border: 1px solid var(--fx-edge, rgba(61, 255, 138, 0.24));
  color: var(--fx-text, #e6fff0);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 30px rgba(25, 193, 85, 0.25);
  z-index: 80;
}
body.wx-page .cz-ch-head, body.wx-page .cz-ch-item, body.wx-page .cz-x { color: var(--fx-text, #e6fff0); }
body.wx-page .cz-ch-label { color: var(--fx-neon, #3dff8a); }
body.wx-page .cz-ch-item:hover, body.wx-page .cz-ch-item:focus-visible {
  background: rgba(25, 193, 85, 0.16);
  border-color: var(--fx-neon, #3dff8a);
}
body.wx-page .cz-theme {
  background: rgba(3, 15, 9, 0.72);
  color: var(--fx-text, #e6fff0);
  border: 1px solid var(--fx-edge, rgba(61, 255, 138, 0.24));
}
body.wx-page .cz-theme.on { border-color: var(--fx-neon, #3dff8a); box-shadow: 0 0 0 2px rgba(25, 193, 85, 0.35); }
body.wx-page .cz-left.panel,
body.wx-page .cz-right.panel {
  background: linear-gradient(160deg, rgba(10, 46, 28, 0.92), rgba(3, 15, 9, 0.92) 55%);
  border: 1px solid var(--fx-edge, rgba(61, 255, 138, 0.24));
  color: var(--fx-text, #e6fff0);
}
body.wx-page .cz-status {
  color: #7dffb0;
  background: rgba(3, 15, 9, 0.55);
  border: 1px solid var(--fx-edge, rgba(61, 255, 138, 0.24));
  border-radius: 10px;
  padding: 8px 10px;
}
body.wx-page .muted, body.wx-page .cz-small, body.wx-page .cz-lbl { color: var(--fx-dim, #a6d8bb); }
body.wx-page .cz-lbl { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fx-neon, #3dff8a); }
body.wx-page label.field { color: var(--fx-neon, #3dff8a); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
body.wx-page input[type=text],
body.wx-page select {
  margin-top: 3px; padding: 6px 10px; color: var(--fx-text, #e6fff0);
  background: rgba(3, 15, 9, 0.72); border: 1px solid rgba(61, 255, 138, 0.3); border-radius: 12px;
}
body.wx-page input::placeholder { color: #7fae96; }
body.wx-page input:focus, body.wx-page select:focus {
  outline: 2px solid var(--fx-neon, #3dff8a); outline-offset: 1px; border-color: var(--fx-neon, #3dff8a);
}
body.wx-page .btn {
  font: inherit; font-weight: 600; cursor: pointer; border: 0; padding: 8px 16px; border-radius: 999px;
  background: linear-gradient(180deg, #3dff8a, #19c155); color: #03140b; box-shadow: 0 0 18px rgba(25, 193, 85, 0.45);
}
body.wx-page .btn.ghost {
  background: rgba(25, 193, 85, 0.08); color: var(--fx-text, #e6fff0); box-shadow: none;
  border: 1px solid var(--fx-edge, rgba(61, 255, 138, 0.24));
}
body.wx-page .cz-seg button,
body.wx-page .cz-levels button,
body.wx-page .cz-lv {
  background: rgba(3, 15, 9, 0.72);
  color: var(--fx-text, #e6fff0);
  border: 1px solid var(--fx-edge, rgba(61, 255, 138, 0.24));
}
body.wx-page .cz-seg button.on,
body.wx-page .cz-levels button.on,
body.wx-page .cz-lv.on {
  background: rgba(25, 193, 85, 0.2);
  border-color: var(--fx-neon, #3dff8a);
  color: #7dffb0;
  box-shadow: none;
}
body.wx-page .cz-mini {
  font: inherit; font-weight: 600; cursor: pointer;
  background: rgba(25, 193, 85, 0.08); color: var(--fx-text, #e6fff0);
  border: 1px solid var(--fx-edge, rgba(61, 255, 138, 0.24));
  border-radius: 999px; padding: 2px 10px;
}
body.wx-page .cz-bar,
body.wx-page .gs-hud {
  background: rgba(3, 15, 9, 0.72);
  border: 1px solid var(--fx-edge, rgba(61, 255, 138, 0.24));
  color: var(--fx-text, #e6fff0);
}
body.wx-page .cz-caps { color: var(--fx-dim, #a6d8bb); }
body.wx-page .cz-bar .cz-name, body.wx-page .gs-hud b { color: #fff; }
body.wx-page .tab {
  background: rgba(3, 15, 9, 0.55); color: var(--fx-dim, #a6d8bb);
  border-color: var(--fx-edge, rgba(61, 255, 138, 0.24)); padding: 4px 10px;
}
body.wx-page .tab.on {
  background: rgba(25, 193, 85, 0.16); color: #7dffb0; border-color: var(--fx-neon, #3dff8a);
}
body.wx-page .msg { color: #7dffb0; }
body.wx-page .gs-wrap, body.wx-page .cz-boardwrap {
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(61, 255, 138, 0.24);
  max-width: 100%;
}
body.wx-page .gs-me { color: var(--fx-text, #e6fff0); }
body.wx-page .ld-fuel {
  background: rgba(3, 15, 9, 0.72);
  border: 1px solid rgba(61, 255, 138, 0.24);
}
body.wx-page .ld-ok { color: #7dffb0 !important; }
body.wx-page .ld-bad { color: #ff9a6a !important; }

@media (min-width: 800px) {
  body.wx-page .ggc-fab { right: 20px; }
}
@media (max-width: 799px), (orientation: portrait) and (max-width: 899px) {
  body.wx-page .wx-boards-btn { display: inline-flex; }
  body.wx-page .wx-side-head { display: flex; justify-content: flex-end; margin-bottom: 6px; }
  body.wx-page .cz-main.narrow {
    grid-template-columns: 1fr;
    grid-template-areas: "center" "left";
    grid-template-rows: auto minmax(0, 1fr);
  }
  body.wx-page .cz-right {
    display: none;
    position: fixed;
    inset: max(10px, env(safe-area-inset-top)) 12px max(10px, env(safe-area-inset-bottom));
    z-index: 90;
    max-width: 420px;
    margin: 0 auto;
    overflow: hidden;
  }
  body.wx-page .cz-right.panel {
    background: linear-gradient(160deg, rgba(10, 46, 28, 0.98), rgba(3, 15, 9, 0.98) 55%);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7), 0 0 30px rgba(25, 193, 85, 0.25);
  }
  #wx-show-boards:checked ~ .wx-boards-mask {
    display: block; position: fixed; inset: 0; z-index: 85; background: rgba(0, 0, 0, 0.62); cursor: pointer;
  }
  body.wx-page .wx-boards-close { display: inline-flex; }
  #wx-show-boards:checked ~ .cz-main .cz-right,
  #wx-show-boards:checked ~ #main .cz-right { display: flex; }
  #wx-show-boards:checked ~ .cz-top .wx-boards-btn {
    border-color: var(--fx-neon, #3dff8a); background: rgba(25, 193, 85, 0.2);
  }
}
@media (max-width: 640px) {
  body.wx-page .back-full { display: none; }
  body.wx-page .cz-top { flex-wrap: wrap; gap: 4px 8px; }
  body.wx-page .cz-title { font-size: 1.12rem; flex: 1 1 auto; min-width: 0; }
  body.wx-page .cz-links { display: flex !important; width: 100%; justify-content: center; flex-wrap: nowrap; gap: 6px; margin-left: 0; }
  body.wx-page .gg-links a, body.wx-page .wx-boards-btn, body.wx-page .cz-choices-btn {
    min-height: 30px; padding: 3px 10px; font-size: 0.88rem;
  }
  body.wx-page .cz-app.game-wrap { width: 100%; padding-left: 6px; padding-right: 6px; gap: 6px; }
  body.wx-page .cz-left .cz-small { display: none; }
  body.wx-page .cz-main.narrow .cz-status { font-size: 0.8rem; padding: 5px 8px; }
  body.wx-page #bestNote { display: none; }
  body.wx-page .cz-main.narrow .cz-start,
  body.wx-page .cz-main.narrow #start {
    position: sticky;
    top: 0;
    z-index: 3;
    margin-top: 0;
    width: calc(100% - 7rem);
    max-width: calc(100% - 7rem);
    box-sizing: border-box;
    box-shadow: 0 12px 18px rgba(3, 15, 9, 0.92);
  }
  body.wx-page .cz-left.panel {
    overflow: auto;
    padding-bottom: 2.75rem;
    scrollbar-width: thin;
  }
  body.wx-page .cz-center { padding-bottom: 0; }
  body.wx-page .cz-main.narrow #pad,
  body.wx-page .cz-main.narrow .gs-pad,
  body.wx-page .cz-main.narrow .gt-nav,
  body.wx-page .cz-main.narrow .gt-acts {
    --pk: 42px;
    margin-top: 6px;
    margin-bottom: 0.25rem;
    margin-right: 6.75rem;
    margin-left: 0;
    padding-bottom: 0;
    flex: 0 0 auto;
    align-self: flex-start;
    order: 1;
  }
}
@media (max-height: 520px) {
  body.wx-page .cz-app.game-wrap { padding-top: 4px; padding-bottom: 4px; gap: 4px; }
  body.wx-page .cz-title { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.wx-page .btn:active { transform: none; }
}
