/* Grok Excite - one-screen neon layout. No page scroll: panels scroll inside themselves. */
html, body.gx-body { height: 100%; overflow: hidden; margin: 0; }
body.gx-body { height: 100vh; height: 100dvh; font-family: Inter, system-ui, sans-serif; --gx-neon: #3dff8a; --gx-hot: #ff5ab4; --gx-cyan: #4ae0ff; --gx-glass: rgba(8, 30, 22, .66); --gx-edge: rgba(61, 255, 138, .26); }
.gx-app { box-sizing: border-box; height: 100%; max-width: 1680px; margin: 0 auto; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.gx-top { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; flex: 0 0 auto; position: relative; z-index: 40; }
.gx-back { font-weight: 600; text-decoration: none; white-space: nowrap; color: #e6fff0; }
.gx-title { margin: 0; font-family: Chango, Georgia, serif; font-weight: 400; font-size: clamp(1.2rem, 2.4vw, 1.8rem); line-height: 1.1; white-space: nowrap; color: #f2fff6; text-shadow: 0 0 18px rgba(61,255,138,.45); }
.gx-links { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.gx-links a, .gx-scores-btn { font: 600 .9rem Inter, system-ui, sans-serif; color: #dfffea; text-decoration: none; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--gx-edge); background: rgba(6, 26, 18, .6); cursor: pointer; }
.gx-scores-btn { display: none; }
.gx-choices-wrap { position: relative; }
.gx-choices-btn { font: 600 .92rem Inter, system-ui, sans-serif; cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gx-neon); background: rgba(10, 40, 26, .8); color: #e6fff0; }
.gx-choices-btn[aria-expanded=true] { background: #134d30; }
.gx-choices { position: absolute; top: calc(100% + 8px); left: 0; width: 270px; padding: 10px; border-radius: 16px; background: rgba(6, 22, 16, .97); border: 1px solid var(--gx-edge); box-shadow: 0 18px 50px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 4px; max-height: calc(100dvh - 80px); overflow: auto; }
.gx-choices[hidden] { display: none; }
.gx-ch-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 6px; font-family: Chango, Georgia, serif; }
.gx-x { font-size: 1.3rem; line-height: 1; border: 0; background: transparent; cursor: pointer; color: #e6fff0; }
.gx-ch-item { font: 600 .9rem Inter, system-ui, sans-serif; text-align: left; padding: 7px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; color: #e6fff0; }
.gx-ch-item:hover, .gx-ch-item:focus-visible { background: rgba(61,255,138,.12); border-color: var(--gx-edge); outline: none; }
.gx-ch-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #8ff7b8; margin: 6px 2px 2px; }
.gx-seg { display: flex; gap: 3px; flex-wrap: wrap; }
.gx-seg button { flex: 1 1 0; font: 600 .8rem Inter, system-ui, sans-serif; padding: 5px 4px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #d9f5e4; cursor: pointer; }
.gx-seg button.on { background: linear-gradient(180deg, #3dff8a, #17a456); color: #04140b; border-color: transparent; }
.gx-small { font-size: .78rem; line-height: 1.35; }
.gx-muted { color: #9fcfb2; }
.gx-body main.gx-main { max-width: none; width: 100%; margin: 0; padding: 0; box-sizing: border-box; }
.gx-main { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(220px, 290px); grid-template-areas: "left center right"; gap: 10px; }
.gx-panel { min-height: 0; overflow: auto; padding: 10px 12px; border-radius: 16px; background: var(--gx-glass); border: 1px solid var(--gx-edge); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-sizing: border-box; }
.gx-left { grid-area: left; display: flex; flex-direction: column; gap: 8px; }
.gx-right { grid-area: right; }
.gx-center { grid-area: center; min-height: 0; min-width: 0; display: flex; }
.gx-status { padding: 8px 10px; border-radius: 12px; background: linear-gradient(135deg, rgba(30,120,80,.5), rgba(4,16,28,.6)); border: 1px solid rgba(255,255,255,.1); font-size: .86rem; line-height: 1.3; }
.gx-row { display: flex; gap: 6px; }
.gx-row input { flex: 1; min-width: 0; font: inherit; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--gx-edge); background: rgba(0,0,0,.35); color: #fff; }
.gx-me { font-size: .88rem; }
.gx-mini { font: 600 .72rem Inter, sans-serif; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--gx-edge); background: transparent; color: #bdf5d2; cursor: pointer; }
.gx-btn { font: 700 .92rem Inter, system-ui, sans-serif; padding: 8px 12px; border-radius: 12px; border: 0; cursor: pointer; color: #04140b; background: linear-gradient(180deg, #5dffa0, #19b85e); box-shadow: 0 4px 14px rgba(61,255,138,.25); }
.gx-btn:hover, .gx-btn:focus-visible { filter: brightness(1.1); outline: 2px solid #eafff2; outline-offset: 1px; }
.gx-btn.ghost { background: rgba(255,255,255,.06); color: #e6fff0; border: 1px solid var(--gx-edge); box-shadow: none; }
.gx-btn.hot { background: linear-gradient(180deg, #ff8ac8, #e0338c); color: #1a0010; }
.gx-btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.gx-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.gx-modes #bDesign { grid-column: 1 / -1; }
.gx-career { font-size: .84rem; line-height: 1.45; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.25); }
.gx-career b { color: #ffd166; }
.gx-paints { display: flex; flex-wrap: wrap; gap: 5px; }
.gx-paints button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); cursor: pointer; padding: 0; position: relative; }
.gx-paints button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gx-neon); }
.gx-paints button[disabled] { opacity: .3; cursor: not-allowed; }
.gx-paints button[disabled]::after { content: "\1F512"; position: absolute; inset: 0; font-size: 11px; display: grid; place-items: center; }
.gx-keys { color: #b9e8cb; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.08); }
.gx-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.gx-tab { flex: 1; font: 600 .76rem Inter, sans-serif; padding: 5px 4px; border-radius: 8px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #d9f5e4; cursor: pointer; }
.gx-tab.on { background: rgba(61,255,138,.18); border-color: var(--gx-neon); }
.gx-board table.board { font-size: .84rem; }
.gx-board table.board td, .gx-board table.board th { padding: 4px 5px; border-bottom: 1px solid rgba(255,255,255,.08); }
.gx-board table.board th { color: #8ff7b8; }
/* stage */
.gx-stage { position: relative; flex: 1; min-height: 0; border-radius: 16px; overflow: hidden; background: #05060f; box-shadow: 0 18px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08), 0 0 40px rgba(61,255,138,.12); user-select: none; -webkit-user-select: none; touch-action: none; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gx-load { position: absolute; inset: 0; display: grid; place-items: center; font: 400 1.3rem Chango, Georgia, serif; color: #bfffd8; background: radial-gradient(circle at 50% 40%, #13301f, #05060f); }
.gx-load[hidden] { display: none; }
.gx-hud { position: absolute; inset: 0; pointer-events: none; color: #fff; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,.7); }
.gx-hud[hidden] { display: none; }
.gx-hud-tl { position: absolute; left: 12px; top: 10px; display: flex; flex-direction: column; gap: 1px; font-size: .86rem; }
.gx-hud-tl b { font-family: Chango, Georgia, serif; font-weight: 400; font-size: 1rem; color: #bfffd8; }
.gx-time { font: 800 1.45rem/1.1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.gx-hud-tr { position: absolute; right: 12px; top: 10px; text-align: right; display: flex; flex-direction: column; font-size: .84rem; }
.gx-pos { font: 400 2rem/1 Chango, Georgia, serif; color: #ffd166; }
.gx-hud-bl { position: absolute; left: 12px; bottom: 30px; display: flex; align-items: flex-end; gap: 14px; }
.gx-temp span { font-size: .68rem; letter-spacing: .14em; }
.gx-tbar { width: 170px; height: 14px; border-radius: 7px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.3); overflow: hidden; }
.gx-tbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3dff8a, #ffd166 60%, #ff3b3b); transition: width .08s linear; }
.gx-tbar i.hot { animation: gx-blink .25s steps(2) infinite; }
@keyframes gx-blink { 50% { opacity: .35; } }
.gx-speed { font-size: .8rem; } .gx-speed b { font: 800 1.6rem/1 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.gx-prog { position: absolute; left: 12px; right: 12px; bottom: 10px; height: 8px; border-radius: 4px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.2); }
.gx-prog i { position: absolute; top: -4px; width: 10px; height: 14px; margin-left: -5px; border-radius: 4px; border: 1px solid rgba(0,0,0,.6); }
.gx-prog .gx-prog-fin { right: -2px; width: 4px; margin: 0; background: repeating-linear-gradient(0deg, #fff 0 3px, #111 3px 6px); }
.gx-call { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font: 400 clamp(1.4rem, 4vw, 2.8rem) Chango, Georgia, serif; color: #fff; text-shadow: 0 0 20px rgba(61,255,138,.8), 0 3px 6px #000; opacity: 0; transition: opacity .2s; }
.gx-call.on { opacity: 1; }
.gx-call small { display: block; font: 700 .95rem Inter, sans-serif; margin-top: 6px; }
/* touch */
.gx-touch { position: absolute; inset: auto 0 26px 0; display: flex; justify-content: space-between; padding: 0 10px; pointer-events: none; }
.gx-touch[hidden] { display: none; }
.gx-touch button { pointer-events: auto; touch-action: none; font: 800 1rem Inter, sans-serif; color: #fff; border-radius: 50%; width: 58px; height: 58px; border: 2px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); }
.gx-touch button.on { background: rgba(61,255,138,.5); }
.gx-tl { display: grid; grid-template-columns: 58px 58px; gap: 6px; }
.gx-tr { display: flex; gap: 10px; align-items: flex-end; }
.gx-tr .gs { width: 84px; height: 84px; background: rgba(25,184,94,.45); }
.gx-tr .tb { width: 70px; height: 70px; font-size: .78rem; background: rgba(224,51,140,.45); }
/* menu overlay */
.gx-menu { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 14px; box-sizing: border-box; background: radial-gradient(ellipse at 50% 30%, rgba(5,10,20,.35), rgba(3,6,12,.82)); overflow: auto; }
.gx-menu[hidden] { display: none; }
.gx-card { width: min(760px, 100%); max-height: 100%; overflow: auto; box-sizing: border-box; padding: 16px 18px; border-radius: 18px; background: rgba(6, 20, 16, .88); border: 1px solid var(--gx-edge); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.gx-card h2 { margin: 0 0 6px; font: 400 clamp(1.3rem, 3.2vw, 2.2rem) Chango, Georgia, serif; color: #f2fff6; text-shadow: 0 0 22px rgba(61,255,138,.5); }
.gx-card h3 { margin: 10px 0 6px; font: 700 .8rem Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8ff7b8; }
.gx-card p { margin: 4px 0 10px; font-size: .92rem; line-height: 1.4; color: #d7f4e2; }
.gx-logo { font: 400 clamp(2rem, 7vw, 4.4rem)/1 Chango, Georgia, serif; background: linear-gradient(180deg, #fff 10%, #7dffb0 55%, #18a85a); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(61,255,138,.45)); margin: 0 0 4px; }
.gx-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gx-circs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.gx-circs button { font: 700 .84rem Inter, sans-serif; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gx-edge); background: transparent; color: #e6fff0; cursor: pointer; }
.gx-circs button.on { background: rgba(61,255,138,.22); border-color: var(--gx-neon); }
.gx-tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.gx-trk { text-align: left; font: 600 .84rem Inter, sans-serif; padding: 9px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); color: #e6fff0; cursor: pointer; min-height: 70px; }
.gx-trk:hover, .gx-trk:focus-visible { border-color: var(--gx-neon); background: rgba(61,255,138,.1); outline: none; }
.gx-trk b { display: block; font-size: .95rem; margin-bottom: 3px; }
.gx-trk small { display: block; color: #a9d9bd; font-weight: 500; }
.gx-trk[disabled] { opacity: .4; cursor: not-allowed; }
.gx-med { font-size: 1rem; }
.gx-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 8px 0; }
.gx-res div { padding: 8px; border-radius: 12px; background: rgba(255,255,255,.05); text-align: center; font-size: .78rem; color: #a9d9bd; }
.gx-res b { display: block; font: 800 1.3rem Inter, sans-serif; color: #fff; }
.gx-how { columns: 2 260px; font-size: .88rem; line-height: 1.45; color: #d7f4e2; }
.gx-how p { break-inside: avoid; margin: 0 0 8px; }
/* designer */
.gx-ed { width: min(980px, 100%); }
.gx-pal { display: flex; flex-wrap: wrap; gap: 4px; }
.gx-pal button, .gx-edtools button { font: 600 .76rem Inter, sans-serif; padding: 5px 8px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #e6fff0; cursor: pointer; }
.gx-pal button:hover, .gx-edtools button:hover { border-color: var(--gx-neon); }
.gx-edtools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 6px 0; }
.gx-edtools button.on { background: rgba(61,255,138,.3); }
.gx-chips { display: flex; flex-wrap: wrap; gap: 3px; max-height: 92px; overflow: auto; padding: 4px; border-radius: 10px; background: rgba(0,0,0,.3); }
.gx-chips span { font: 700 .72rem ui-monospace, Consolas, monospace; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.08); cursor: pointer; }
.gx-chips span.sel { background: #3dff8a; color: #04140b; }
#edProf { width: 100%; height: 110px; display: block; border-radius: 10px; background: #0a1420; margin: 6px 0; }
.gx-ed textarea { width: 100%; box-sizing: border-box; font: .76rem ui-monospace, Consolas, monospace; background: rgba(0,0,0,.4); color: #dfffea; border: 1px solid var(--gx-edge); border-radius: 8px; padding: 6px; resize: vertical; }
.gx-ed input[type=text] { font: inherit; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--gx-edge); background: rgba(0,0,0,.35); color: #fff; }
.gx-fpsline { color: #9fcfb2; margin: 6px 2px 0; }
/* narrower screens: scores go under the board */
@media (max-width: 1180px) {
  .gx-main { grid-template-columns: minmax(190px, 230px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(120px, 30%); grid-template-areas: "left center" "left right"; }
}
@media (max-width: 760px) {
  .gx-main { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(130px, 34%); grid-template-areas: "center center" "left right"; gap: 6px; }
  .gx-app { padding: 6px; gap: 6px; }
  .gx-hide-s { display: none; }
  .gx-links a { display: none; }
  .gx-panel { padding: 8px; }
  .gx-keys, .gx-paints, .gx-left .gx-ch-label { display: none; }
  .gx-tbar { width: 110px; }
}
@media (max-height: 560px) and (min-width: 761px) { .gx-keys { display: none; } .gx-title { font-size: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .gx-tbar i.hot { animation: none; } }
