/* Grok Kaiju Rampage - one-screen neon layout (shared with Grok Coaster and Grok Mini Golf). No page scroll: panels scroll inside themselves. */
html, body.gm-body { height: 100%; overflow: hidden; margin: 0; }
body.gm-body { height: 100vh; height: 100dvh; font-family: Inter, system-ui, sans-serif; --gm-neon: #3dff8a; --gm-hot: #ff5ab4; --gm-cyan: #4ae0ff; --gm-glass: rgba(8, 30, 22, .66); --gm-edge: rgba(61, 255, 138, .26); }
.gm-app { box-sizing: border-box; height: 100%; max-width: 1680px; margin: 0 auto; padding: 8px 12px 10px; display: flex; flex-direction: column; gap: 8px; }
.gm-top { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; flex: 0 0 auto; position: relative; z-index: 40; }
.gm-back { font-weight: 600; text-decoration: none; white-space: nowrap; color: #e6fff0; }
.gm-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); }
.gm-links { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.gm-links a, .gm-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(--gm-edge); background: rgba(6, 26, 18, .6); cursor: pointer; }
.gm-scores-btn { display: none; }
.gm-choices-wrap { position: relative; }
.gm-choices-btn { font: 600 .92rem Inter, system-ui, sans-serif; cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--gm-neon); background: rgba(10, 40, 26, .8); color: #e6fff0; }
.gm-choices-btn[aria-expanded=true] { background: #134d30; }
.gm-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(--gm-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; }
.gm-choices[hidden] { display: none; }
.gm-ch-head { display: flex; justify-content: space-between; align-items: center; padding: 0 4px 6px; font-family: Chango, Georgia, serif; }
.gm-x { font-size: 1.3rem; line-height: 1; border: 0; background: transparent; cursor: pointer; color: #e6fff0; }
.gm-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; }
.gm-ch-item:hover, .gm-ch-item:focus-visible { background: rgba(61,255,138,.12); border-color: var(--gm-edge); outline: none; }
.gm-ch-label { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: #8ff7b8; margin: 6px 2px 2px; }
.gm-seg { display: flex; gap: 3px; flex-wrap: wrap; }
.gm-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; }
.gm-seg button.on { background: linear-gradient(180deg, #3dff8a, #17a456); color: #04140b; border-color: transparent; }
.gm-small { font-size: .78rem; line-height: 1.35; }
.gm-muted { color: #9fcfb2; }
.gm-body main.gm-main { max-width: none; width: 100%; margin: 0; padding: 0; box-sizing: border-box; }
.gm-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; }
.gm-panel { min-height: 0; overflow: auto; padding: 10px 12px; border-radius: 16px; background: var(--gm-glass); border: 1px solid var(--gm-edge); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-sizing: border-box; }
.gm-left { grid-area: left; display: flex; flex-direction: column; gap: 8px; }
.gm-right { grid-area: right; }
.gm-center { grid-area: center; min-height: 0; min-width: 0; display: flex; }
.gm-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; }
.gm-row { display: flex; gap: 6px; }
.gm-row input { flex: 1; min-width: 0; font: inherit; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--gm-edge); background: rgba(0,0,0,.35); color: #fff; }
.gm-me { font-size: .88rem; }
.gm-mini { font: 600 .72rem Inter, sans-serif; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--gm-edge); background: transparent; color: #bdf5d2; cursor: pointer; }
.gm-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); }
.gm-btn:hover, .gm-btn:focus-visible { filter: brightness(1.1); outline: 2px solid #eafff2; outline-offset: 1px; }
.gm-btn.ghost { background: rgba(255,255,255,.06); color: #e6fff0; border: 1px solid var(--gm-edge); box-shadow: none; }
.gm-btn.hot { background: linear-gradient(180deg, #ff8ac8, #e0338c); color: #1a0010; }
.gm-btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.gm-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

.gm-career { font-size: .84rem; line-height: 1.45; padding: 6px 8px; border-radius: 10px; background: rgba(0,0,0,.25); }
.gm-career b { color: #ffd166; }
.gm-paints { display: flex; flex-wrap: wrap; gap: 5px; }
.gm-paints button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); cursor: pointer; padding: 0; position: relative; }
.gm-paints button.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gm-neon); }
.gm-paints button[disabled] { opacity: .3; cursor: not-allowed; }
.gm-paints button[disabled]::after { content: "\1F512"; position: absolute; inset: 0; font-size: 11px; display: grid; place-items: center; }
.gm-keys { color: #b9e8cb; padding-top: 4px; border-top: 1px solid rgba(255,255,255,.08); }
.gm-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.gm-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; }
.gm-tab.on { background: rgba(61,255,138,.18); border-color: var(--gm-neon); }
.gm-board table.board { font-size: .84rem; }
.gm-board table.board td, .gm-board table.board th { padding: 4px 5px; border-bottom: 1px solid rgba(255,255,255,.08); }
.gm-board table.board th { color: #8ff7b8; }
/* stage */
.gm-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; }
.gm-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); }
.gm-load[hidden] { display: none; }
.gm-hud { position: absolute; inset: 0; pointer-events: none; color: #fff; font-weight: 700; text-shadow: 0 2px 4px rgba(0,0,0,.7); }
.gm-hud[hidden] { display: none; }
.gm-hud-tl { position: absolute; left: 12px; top: 10px; display: flex; flex-direction: column; gap: 1px; font-size: .86rem; }
.gm-hud-tl b { font-family: Chango, Georgia, serif; font-weight: 400; font-size: 1rem; color: #bfffd8; }
.gm-time { font: 800 1.45rem/1.1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.gm-hud-tr { position: absolute; right: 12px; top: 10px; text-align: right; display: flex; flex-direction: column; font-size: .84rem; }
.gm-pos { font: 400 2rem/1 Chango, Georgia, serif; color: #ffd166; }
.gm-hud-bl { position: absolute; left: 12px; bottom: 30px; display: flex; align-items: flex-end; gap: 14px; }
.gm-temp span { font-size: .68rem; letter-spacing: .14em; }
.gm-tbar { width: 170px; height: 14px; border-radius: 7px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,255,255,.3); overflow: hidden; }
.gm-tbar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3dff8a, #ffd166 60%, #ff3b3b); transition: width .08s linear; }
.gm-tbar i.hot { animation: gm-blink .25s steps(2) infinite; }
@keyframes gm-blink { 50% { opacity: .35; } }
.gm-speed { font-size: .8rem; } .gm-speed b { font: 800 1.6rem/1 Inter, sans-serif; font-variant-numeric: tabular-nums; }
.gm-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); }
.gm-prog i { position: absolute; top: -4px; width: 10px; height: 14px; margin-left: -5px; border-radius: 4px; border: 1px solid rgba(0,0,0,.6); }
.gm-prog .gm-prog-fin { right: -2px; width: 4px; margin: 0; background: repeating-linear-gradient(0deg, #fff 0 3px, #111 3px 6px); }
.gm-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; }
.gm-call.on { opacity: 1; }
.gm-call small { display: block; font: 700 .95rem Inter, sans-serif; margin-top: 6px; }
/* touch */
.gm-touch { position: absolute; inset: auto 0 26px 0; display: flex; justify-content: space-between; padding: 0 10px; pointer-events: none; }
.gm-touch[hidden] { display: none; }
.gm-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); }
.gm-touch button.on { background: rgba(61,255,138,.5); }
.gm-tl { display: grid; grid-template-columns: 58px 58px; gap: 6px; }
.gm-tr { display: flex; gap: 10px; align-items: flex-end; }
.gm-tr .gs { width: 84px; height: 84px; background: rgba(25,184,94,.45); }
.gm-tr .tb { width: 70px; height: 70px; font-size: .78rem; background: rgba(224,51,140,.45); }
/* menu overlay */
.gm-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; }
.gm-menu[hidden] { display: none; }
.gm-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(--gm-edge); box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.gm-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); }
.gm-card h3 { margin: 10px 0 6px; font: 700 .8rem Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #8ff7b8; }
.gm-card p { margin: 4px 0 10px; font-size: .92rem; line-height: 1.4; color: #d7f4e2; }
.gm-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; }
.gm-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gm-circs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 8px; }
.gm-circs button { font: 700 .84rem Inter, sans-serif; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gm-edge); background: transparent; color: #e6fff0; cursor: pointer; }
.gm-circs button.on { background: rgba(61,255,138,.22); border-color: var(--gm-neon); }
.gm-tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.gm-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; }
.gm-trk:hover, .gm-trk:focus-visible { border-color: var(--gm-neon); background: rgba(61,255,138,.1); outline: none; }
.gm-trk b { display: block; font-size: .95rem; margin-bottom: 3px; }
.gm-trk small { display: block; color: #a9d9bd; font-weight: 500; }
.gm-trk[disabled] { opacity: .4; cursor: not-allowed; }
.gm-med { font-size: 1rem; }
.gm-res { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 8px 0; }
.gm-res div { padding: 8px; border-radius: 12px; background: rgba(255,255,255,.05); text-align: center; font-size: .78rem; color: #a9d9bd; }
.gm-res b { display: block; font: 800 1.3rem Inter, sans-serif; color: #fff; }
.gm-how { columns: 2 260px; font-size: .88rem; line-height: 1.45; color: #d7f4e2; }
.gm-how p { break-inside: avoid; margin: 0 0 8px; }
/* designer */
.gm-ed { width: min(980px, 100%); }
.gm-pal { display: flex; flex-wrap: wrap; gap: 4px; }
.gm-pal button, .gm-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; }
.gm-pal button:hover, .gm-edtools button:hover { border-color: var(--gm-neon); }
.gm-edtools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin: 6px 0; }
.gm-edtools button.on { background: rgba(61,255,138,.3); }
.gm-chips { display: flex; flex-wrap: wrap; gap: 3px; max-height: 92px; overflow: auto; padding: 4px; border-radius: 10px; background: rgba(0,0,0,.3); }
.gm-chips span { font: 700 .72rem ui-monospace, Consolas, monospace; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.08); cursor: pointer; }
.gm-chips span.sel { background: #3dff8a; color: #04140b; }
#edProf { width: 100%; height: 110px; display: block; border-radius: 10px; background: #0a1420; margin: 6px 0; }
.gm-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(--gm-edge); border-radius: 8px; padding: 6px; resize: vertical; }
.gm-ed input[type=text] { font: inherit; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--gm-edge); background: rgba(0,0,0,.35); color: #fff; }
.gm-fpsline { color: #9fcfb2; margin: 6px 2px 0; }
/* narrower screens: scores go under the board */
@media (max-width: 1180px) {
  .gm-main { grid-template-columns: minmax(190px, 230px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(120px, 28%); grid-template-areas: "left center" "right right"; }
  .gm-right { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 34%); grid-template-rows: auto minmax(0, 1fr); gap: 0 14px; } .gm-right .gm-tabs { grid-column: 1; } .gm-right .gm-board { grid-column: 1; overflow: auto; min-height: 0; } .gm-right > p { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: start; }
}
@media (max-width: 760px) {
  .gm-main { grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) minmax(130px, 34%); grid-template-areas: "center center" "left right"; gap: 6px; }
  .gm-app { padding: 6px; gap: 6px; }
  .gm-hide-s { display: none; }
  .gm-links a { display: none; }
  .gm-panel { padding: 8px; }
  .gm-keys, .gm-card-wrap { display: none; } .gm-right { display: block; } .gm-right > p { display: none; } .gm-bar { gap: 2px; } .gm-bar button { padding: 4px 6px; min-width: 30px; } .gm-pow { width: 56px; }
  .gm-tbar { width: 110px; }
}
@media (max-height: 560px) and (min-width: 761px) { .gm-keys { display: none; } .gm-title { font-size: 1.1rem; } }
@media (prefers-reduced-motion: reduce) { .gm-tbar i.hot { animation: none; } }

/* --- golf additions --- */
.gm-strokes { font: 800 1.5rem/1.1 Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.gm-hud-tr b { font: 400 1.1rem Chango, Georgia, serif; color: #ffd166; }
.gm-bar { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); width: max-content; display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-radius: 16px; background: rgba(6, 18, 24, .62); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); pointer-events: auto; max-width: calc(100% - 16px); flex-wrap: wrap; justify-content: center; }
.gm-bar button { font: 700 .82rem Inter, system-ui, sans-serif; color: #eafff4; min-width: 34px; padding: 6px 9px; border-radius: 10px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.07); cursor: pointer; text-shadow: none; }
.gm-bar button:hover, .gm-bar button:focus-visible { border-color: var(--gm-neon); outline: none; background: rgba(61,255,138,.14); }
.gm-bar button.on { background: rgba(61,255,138,.3); border-color: var(--gm-neon); }
.gm-bar .gm-putt { background: linear-gradient(180deg, #5dffa0, #19b85e); color: #04140b; border: 0; padding: 6px 14px; }
.gm-bar .gm-putt[disabled] { opacity: .45; }
.gm-pow { position: relative; width: 90px; height: 16px; border-radius: 8px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.25); overflow: hidden; }
.gm-pow i { position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, #3dff8a, #ffd166 60%, #ff4a4a); }
.gm-pow span { position: relative; display: block; text-align: center; font: 700 .68rem/16px Inter, sans-serif; color: #fff; text-shadow: 0 1px 2px #000; }
.gm-hud .gm-call { top: 26%; }
.gm-hud .gm-call.big { font-size: clamp(1.8rem, 5.5vw, 3.6rem); color: #ffe27a; text-shadow: 0 0 26px rgba(255,210,80,.9), 0 3px 6px #000; }
.gm-card-wrap { min-height: 0; display: flex; flex-direction: column; flex: 1 1 auto; }
.gm-scorecard { overflow: auto; min-height: 0; }
.gm-scorecard table { width: 100%; border-collapse: collapse; font-size: .8rem; font-variant-numeric: tabular-nums; }
.gm-scorecard td, .gm-scorecard th { padding: 2px 4px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.08); }
.gm-scorecard th { color: #8ff7b8; font-weight: 700; }
.gm-scorecard td:first-child, .gm-scorecard th:first-child { text-align: left; }
.gm-scorecard tr.cur { background: rgba(61,255,138,.14); }
.gm-u { color: #6dffb0; font-weight: 800; } .gm-o { color: #ff9a9a; } .gm-e { color: #fff; }
.gm-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.gm-course { text-align: left; font: 600 .84rem Inter, sans-serif; padding: 10px; border-radius: 14px; border: 1px solid rgba(255,255,255,.16); color: #fff; cursor: pointer; min-height: 96px; position: relative; overflow: hidden; }
.gm-course b { display: block; font: 400 1.02rem Chango, Georgia, serif; margin-bottom: 4px; text-shadow: 0 2px 4px rgba(0,0,0,.5); }
.gm-course small { display: block; color: rgba(255,255,255,.88); font-weight: 500; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.gm-course:hover, .gm-course:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.gm-holes { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 4px; margin-bottom: 8px; }
.gm-holes button { font: 700 .78rem Inter, sans-serif; padding: 6px 2px; border-radius: 9px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #e6fff0; cursor: pointer; line-height: 1.15; }
.gm-holes button small { display: block; font-weight: 500; font-size: .66rem; color: #a9d9bd; }
.gm-holes button:hover, .gm-holes button:focus-visible { border-color: var(--gm-neon); outline: none; }
.gm-holes button.done { background: rgba(61,255,138,.14); }
.gm-sc { width: 100%; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums; margin: 6px 0; }
.gm-sc td, .gm-sc th { padding: 3px 4px; text-align: center; border: 1px solid rgba(255,255,255,.1); }
.gm-sc th { color: #8ff7b8; }
/* builder */
.gm-ed { width: min(1060px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 10px; }
.gm-ed-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#edCv { width: 100%; height: auto; max-height: calc(100dvh - 220px); aspect-ratio: auto; display: block; border-radius: 12px; background: #081018; cursor: crosshair; touch-action: none; }
.gm-pal { display: flex; flex-wrap: wrap; gap: 3px; }
.gm-pal button, .gm-edtools button { font: 600 .72rem Inter, sans-serif; padding: 4px 6px; border-radius: 7px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #e6fff0; cursor: pointer; }
.gm-pal button.on { background: rgba(61,255,138,.35); border-color: var(--gm-neon); color: #fff; }
.gm-edtools { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.gm-ed label { font-size: .74rem; color: #a9d9bd; }
.gm-ed select, .gm-ed input[type=text], .gm-ed input[type=number] { font: inherit; font-size: .8rem; padding: 3px 6px; border-radius: 7px; border: 1px solid var(--gm-edge); background: rgba(0,0,0,.35); color: #fff; }
.gm-ed textarea { width: 100%; box-sizing: border-box; font: .72rem ui-monospace, Consolas, monospace; background: rgba(0,0,0,.4); color: #dfffea; border: 1px solid var(--gm-edge); border-radius: 8px; padding: 6px; resize: vertical; height: 54px; }
.gm-edmsg { font-size: .78rem; min-height: 1.2em; color: #ffe27a; }
.gm-saved { max-height: 90px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.gm-saved div { display: flex; gap: 4px; align-items: center; font-size: .76rem; }
.gm-saved div span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .gm-ed { grid-template-columns: 1fr; } }

/* --- coaster additions --- */
#code { width: 100%; box-sizing: border-box; font: .72rem ui-monospace, Consolas, monospace; background: rgba(0,0,0,.4); color: #dfffea; border: 1px solid var(--gm-edge); border-radius: 8px; padding: 5px; resize: vertical; height: 44px; }
.gm-stage.nohud .gm-hud { display: none; }
.gm-course .gc-med { position: absolute; right: 8px; top: 6px; font-size: 1.2rem; }

/* ---------- Grok Kaiju Rampage ---------- */
body.gk-body { --gm-hot: #ff7a3a; }
.gk-flash { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(255,40,40,0) 40%, rgba(255,30,30,.85)); opacity: 0; }
.gk-score { font: 800 1.35rem/1.1 Inter, sans-serif; color: #ffe27a; font-variant-numeric: tabular-nums; }
.gk-bars { position: absolute; right: 12px; top: 10px; width: min(230px, 36%); display: flex; flex-direction: column; gap: 5px; }
.gk-bar { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 6px; font-size: .72rem; letter-spacing: .04em; }
.gk-bar i { position: relative; display: block; height: 11px; border-radius: 6px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.22); overflow: hidden; }
.gk-bar u { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; border-radius: 6px; transition: width .12s linear; }
.gk-bar.hp u { background: linear-gradient(90deg, #ff4a5a, #ff9a5a); } .gk-bar.hp.low i { box-shadow: 0 0 12px #ff3040; animation: gkpulse .6s infinite alternate; }
.gk-bar.en u { background: linear-gradient(90deg, #3ad8ff, #a8f4ff); } .gk-bar.en.low u { filter: saturate(.3) brightness(.8); }
.gk-bar.th u { background: linear-gradient(90deg, #ffd166, #ff7a3a 60%, #ff2a4a); }
.gk-bar.th em { grid-column: 2; font-style: normal; font-size: .68rem; color: #ffd8a8; text-align: right; margin-top: -3px; }
@keyframes gkpulse { to { box-shadow: 0 0 2px #ff3040; } }
.gk-boss { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); width: min(440px, 46%); text-align: center; }
.gk-boss[hidden] { display: none; }
.gk-boss b { font: 400 .95rem Chango, Georgia, serif; color: #ffb0c8; }
.gk-boss i { display: block; position: relative; height: 12px; margin-top: 3px; border-radius: 7px; background: rgba(0,0,0,.55); border: 1px solid rgba(255,160,200,.5); overflow: hidden; }
.gk-boss u { position: absolute; inset: 0 auto 0 0; width: 100%; background: linear-gradient(90deg, #a020ff, #ff3a6a); transition: width .15s; }
.gk-actions button small { font-weight: 600; font-size: .66rem; opacity: .7; margin-left: 2px; }
.gk-actions .gk-beam.on, .gk-actions button.on { background: rgba(74,224,255,.35); border-color: #4ae0ff; }
.gk-letter { position: absolute; inset: 0; pointer-events: auto; cursor: pointer; }
.gk-letter[hidden] { display: none; }
.gk-lb { position: absolute; left: 0; right: 0; height: 11%; background: #000; } .gk-lb.top { top: 0; } .gk-lb.bot { bottom: 0; }
.gk-title { position: absolute; left: 6%; bottom: 16%; display: flex; flex-direction: column; color: #fff; text-shadow: 0 3px 10px #000; animation: gkin .8s ease-out; }
.gk-title small { font: 700 .8rem Inter, sans-serif; letter-spacing: .3em; text-transform: uppercase; color: #ff6a8a; }
.gk-title b { font: 400 clamp(2rem, 6vw, 4.2rem)/1 Chango, Georgia, serif; color: #fff; text-shadow: 0 0 30px rgba(255,60,120,.8), 0 4px 8px #000; }
.gk-title span { font: 700 1.05rem Inter, sans-serif; color: #ffd8e6; }
.gk-title em { margin-top: 10px; font: 600 .72rem Inter, sans-serif; color: rgba(255,255,255,.6); font-style: normal; }
@keyframes gkin { from { opacity: 0; transform: translateX(-40px); } }
.gk-box { margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.08); }
.gk-box[hidden] { display: none; }
.gk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: .9rem; }
.gk-head span, .gk-stars, .gk-bigstars { color: #ffd166; letter-spacing: .05em; } .gk-head i, .gk-stars i, .gk-bigstars i, .gk-st i { font-style: normal; opacity: .45; }
.gk-goals { margin: 6px 0; padding-left: 18px; font-size: .8rem; line-height: 1.35; color: #d7f4e2; }
.gk-goals li.done { color: #7dffb0; text-decoration: line-through; text-decoration-color: rgba(125,255,176,.6); }
.gk-goals li.done::marker { content: '\2714  '; }
.gk-goals li.gk-sg { color: #ffe9a8; font-size: .74rem; list-style: none; margin-left: -14px; }
.gk-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; }
.gk-stats div { display: flex; flex-direction: column; } .gk-stats span { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: #8ff7b8; } .gk-stats b { font-variant-numeric: tabular-nums; font-size: .95rem; }
.gk-stats.big { grid-template-columns: repeat(3, 1fr); margin: 10px 0; gap: 8px; } .gk-stats.big b { font-size: 1.2rem; color: #fff; }
.gk-career { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; text-align: center; }
.gk-career div { display: flex; flex-direction: column; } .gk-career span { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: #ffb88a; } .gk-career b { font-size: .92rem; font-variant-numeric: tabular-nums; }
.gk-dna { display: inline-block; font: 700 .78rem Inter, sans-serif; padding: 2px 8px; border-radius: 999px; background: rgba(255,122,58,.22); border: 1px solid rgba(255,160,100,.5); color: #ffd8b8; vertical-align: middle; }
.gm-menu.gk-menu-title { background: linear-gradient(90deg, rgba(3,6,12,.82), rgba(3,6,12,.25) 60%, rgba(3,6,12,0)); justify-content: flex-start; }
.gm-menu.gk-menu-side { background: linear-gradient(90deg, rgba(3,6,12,.86), rgba(3,6,12,.4) 70%, rgba(3,6,12,.1)); justify-content: flex-start; }
.gk-logo { font: 400 clamp(1.6rem, 4vw, 3rem)/1 Chango, Georgia, serif; color: #fff; text-shadow: 0 0 24px rgba(255,122,58,.7), 0 4px 0 #6a1a00; letter-spacing: .02em; margin-bottom: 10px; }
.gk-logo b { font-weight: 400; color: #ffb03a; font-size: 1.25em; }
.gm-card.gk-titlecard { width: min(470px, 100%); background: rgba(6,14,20,.82); }
.gk-big .gm-btn { font-size: 1.02rem; padding: 11px 16px; }
.gk-col { flex-direction: column; } .gk-col .gm-btn { width: 100%; }
.gm-card.gk-wide { width: min(860px, 100%); }
.gm-card.gk-side { width: min(560px, 100%); }
.gk-stages { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 8px 0; }
.gk-st { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 74px; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); color: #fff; text-align: left; cursor: pointer; text-shadow: 0 1px 3px rgba(0,0,0,.8); font: 600 .8rem Inter, sans-serif; }
.gk-st b { font: 400 .98rem/1.1 Chango, Georgia, serif; } .gk-st small { font-size: .68rem; opacity: .85; text-transform: uppercase; letter-spacing: .08em; } .gk-st em { font-style: normal; font-size: .7rem; opacity: .85; }
.gk-st:hover:not([disabled]), .gk-st:focus-visible { outline: 2px solid #fff; transform: translateY(-1px); }
.gk-st.locked { filter: grayscale(.85) brightness(.55); cursor: not-allowed; }
.gk-st.boss { box-shadow: inset 0 0 0 2px rgba(255,80,120,.8), 0 0 16px rgba(255,60,120,.35); }
.gk-reg-village { background: linear-gradient(160deg, #4aa8ff, #6ccf6a 55%, #f4d79a); }
.gk-reg-harbor { background: linear-gradient(160deg, #3f8cf0, #2a9ab8 50%, #f4c88a); }
.gk-reg-farm { background: linear-gradient(160deg, #6ab8ff, #9ac84a 50%, #d8a83a); }
.gk-reg-port { background: linear-gradient(160deg, #6a7fa8, #b8784a 55%, #ffcf9a); }
.gk-reg-city { background: linear-gradient(160deg, #3a7ee8, #7a8aa0 55%, #c8d8e8); }
.gk-reg-base { background: linear-gradient(160deg, #2f6fd0, #5a7a4a 55%, #2a9ab8); }
.gk-reg-dam { background: linear-gradient(160deg, #3a80dc, #5a8a5a 50%, #c8d4e0); }
.gk-reg-storm { background: linear-gradient(160deg, #1a2238, #4a5a7a 55%, #9a8aff); }
.gk-reg-neon { background: linear-gradient(160deg, #04021a, #4a1a9a 55%, #ff3fb4); }
.gk-reg-capital { background: linear-gradient(160deg, #2a3f80, #f08a5c 55%, #ffd28a); }
.gm-card.gk-stagecard, .gm-card.gk-res { position: relative; background-blend-mode: multiply; background-color: rgba(6,14,20,.78); }
.gm-card.gk-stagecard::before, .gm-card.gk-res::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(4,10,16,.72); z-index: 0; }
.gm-card.gk-stagecard > *, .gm-card.gk-res > * { position: relative; z-index: 1; }
.gm-card small { color: #ffd8b8; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .72rem; }
.gk-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: .88rem; color: #e6fff0; }
.gk-cols ol, .gk-cols ul { margin: 4px 0 8px; padding-left: 18px; line-height: 1.4; }
.gk-starl { padding-left: 4px !important; list-style: none; } .gk-starl li { color: #ffe9a8; } .gk-res .gk-starl li { color: #9aa; } .gk-res .gk-starl li.done { color: #ffe27a; }
.gk-res .gk-starl { margin: 6px 0; font-size: .9rem; }
.gk-bigstars { font-size: 2.3rem; line-height: 1; margin: 4px 0; text-shadow: 0 0 18px rgba(255,210,80,.7); }
.gk-bodies { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 8px 0; }
.gk-bodyc { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; text-align: left; padding: 8px 10px; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #e6fff0; cursor: pointer; font: 500 .8rem Inter, sans-serif; }
.gk-bodyc b { font: 400 1.05rem Chango, Georgia, serif; } .gk-bodyc small { align-self: center; color: #ffb88a; } .gk-bodyc span, .gk-bodyc em { grid-column: 1 / -1; } .gk-bodyc em { font-style: normal; color: #8ff7b8; font-size: .72rem; margin-top: 2px; }
.gk-bodyc.on { border-color: #ff9a5a; background: rgba(255,122,58,.18); box-shadow: 0 0 0 1px #ff9a5a; }
.gk-swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 6px 0; }
.gk-sw { height: 46px; border-radius: 10px; border: 2px solid rgba(255,255,255,.2); cursor: pointer; display: flex; align-items: flex-end; justify-content: center; padding: 2px; }
.gk-sw span { font: 700 .66rem Inter, sans-serif; color: #fff; text-shadow: 0 1px 3px #000; }
.gk-sw.on { border-color: #fff; box-shadow: 0 0 12px rgba(255,255,255,.6); }
.gk-muts.gm-card { width: min(780px, 100%); }
.gk-tree { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gk-branch h3 { margin-top: 0; }
.gk-mut { padding: 8px; margin-bottom: 8px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); }
.gk-mut.has { border-color: rgba(255,154,90,.7); background: rgba(255,122,58,.1); } .gk-mut.locked { opacity: .55; }
.gk-mh { display: flex; align-items: center; gap: 6px; } .gk-mh b { flex: 1; font-size: .88rem; } .gk-mh i { font-style: normal; color: #ff9a5a; letter-spacing: 1px; }
.gk-mut p { font-size: .74rem !important; margin: 4px 0 6px !important; line-height: 1.3 !important; }
.gk-mut .gm-btn { width: 100%; font-size: .76rem; padding: 6px 8px; }
.gk-how .gk-cols { font-size: .84rem; }
@media (max-width: 1180px) { .gk-bars { width: min(200px, 40%); } }
@media (max-width: 760px) { .gk-tree, .gk-cols { grid-template-columns: 1fr; } .gk-stats.big { grid-template-columns: repeat(2, 1fr); } .gk-actions button small { display: none; } .gk-bars { width: 46%; } .gk-boss { top: 76px; width: 70%; } .gk-swatches { grid-template-columns: repeat(3, 1fr); } }
@media (max-height: 640px) { .gk-actions button small { display: none; } .gk-career, #stageBox .gk-stats { font-size: .8rem; } }
