/* Grok Coaster - one-screen neon layout (shared with 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-course.pirate { background: linear-gradient(160deg, #1fb5c9, #3aa356 70%, #e2c08a); }
.gm-course.sky { background: linear-gradient(160deg, #4d9cff, #9fd2ff 60%, #74e08f); }
.gm-course.volcano { background: linear-gradient(160deg, #5a1a16, #b8401a 60%, #ff8a2a); }
.gm-course.neon { background: linear-gradient(160deg, #12063a, #4a1a9a 60%, #ff3fb4); }
.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 --- */
.gc-body { --gm-neon: #3dff8a; --gm-hot: #ff5ab4; }
.gc-box { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 12px; background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.08); }
.gc-box[hidden] { display: none; }
.gc-park-head { display: flex; justify-content: space-between; align-items: center; font-family: Chango, Georgia, serif; font-size: .95rem; }
.gc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.gc-stats div { padding: 4px 6px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: .72rem; color: #a9d9bd; display: flex; flex-direction: column; }
.gc-stats b { font: 800 .95rem Inter, sans-serif; color: #fff; font-variant-numeric: tabular-nums; }
.gc-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gc-row b { min-width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.gc-goals { margin: 0; padding-left: 18px; font-size: .78rem; line-height: 1.35; }
.gc-goals li { margin: 2px 0; color: #d7f4e2; }
.gc-goals li.done { color: #7dffb0; } .gc-goals li.done::marker { content: "\2714  "; }
.gc-goals small { color: #9fcfb2; }
.gc-pal { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; }
.gc-pal button, .gc-tools button, .gc-tools select { font: 600 .74rem Inter, sans-serif; padding: 5px 6px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); color: #e6fff0; cursor: pointer; text-align: left; line-height: 1.15; }
.gc-pal button small { display: block; font-weight: 500; font-size: .64rem; color: #9fcfb2; }
.gc-pal button:hover, .gc-tools button:hover, .gc-pal button:focus-visible, .gc-tools button:focus-visible { border-color: var(--gm-neon); background: rgba(61,255,138,.12); outline: none; }
.gc-pal button.on { background: rgba(61,255,138,.3); border-color: var(--gm-neon); }
.gc-pal .gc-grp { grid-column: 1 / -1; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: #8ff7b8; margin-top: 3px; }
.gc-tools { display: flex; flex-wrap: wrap; gap: 3px; align-items: center; }
.gc-tools input { flex: 1; min-width: 60px; font: .74rem Inter, sans-serif; padding: 5px 6px; border-radius: 8px; border: 1px solid var(--gm-edge); background: rgba(0,0,0,.35); color: #fff; }
.gc-tools .gc-close { background: linear-gradient(180deg, #ffe27a, #e0a82a); color: #201400; border: 0; font-weight: 800; }
#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; }
.gc-msg { margin: 0; font-size: .78rem; min-height: 1.1em; color: #ffe27a; line-height: 1.3; }
.gc-msg.ok { color: #7dffb0; } .gc-msg.bad { color: #ff9a9a; }
.gc-slots { display: flex; flex-direction: column; gap: 2px; max-height: 96px; overflow: auto; }
.gc-slots div { display: flex; gap: 3px; align-items: center; font-size: .74rem; }
.gc-slots div span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gc-ratings { position: absolute; right: 12px; top: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(6,18,24,.6); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: .76rem; min-width: 170px; text-shadow: none; }
.gc-ratings[hidden] { display: none; }
.gc-ratings .r { display: grid; grid-template-columns: 70px 1fr 34px; align-items: center; gap: 6px; margin: 2px 0; }
.gc-ratings .r i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); overflow: hidden; }
.gc-ratings .r i u { display: block; height: 100%; background: linear-gradient(90deg, #3dff8a, #ffd166); }
.gc-ratings .r.int i u { background: linear-gradient(90deg, #ffd166, #ff6a3a); } .gc-ratings .r.nau i u { background: linear-gradient(90deg, #8affc8, #b07aff); }
.gc-ratings .r b { text-align: right; font-variant-numeric: tabular-nums; }
.gc-ratings .x { color: #bfe8d0; font-weight: 600; margin-top: 4px; line-height: 1.35; }
.gc-speedo { position: absolute; left: 14px; bottom: 64px; padding: 8px 12px; border-radius: 14px; background: rgba(6,18,24,.55); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gc-speedo[hidden] { display: none; }
.gc-speedo b { font: 800 2.4rem/1 Inter, sans-serif; font-variant-numeric: tabular-nums; color: #fff; }
.gc-speedo > span { margin-left: 4px; font-size: .8rem; color: #bfe8d0; }
.gc-g { display: flex; gap: 10px; font-size: .74rem; color: #bfe8d0; margin-top: 2px; } .gc-g i { font-style: normal; color: #ffe27a; font-variant-numeric: tabular-nums; }
.gc-bar { bottom: 10px; }
.gm-stage.nohud .gm-hud { display: none; }
.gc-hudhint { position: absolute; right: 10px; bottom: 8px; font: 600 .7rem Inter, sans-serif; color: rgba(255,255,255,.5); pointer-events: none; transition: opacity 1.5s; }
.gc-hudhint.fade { opacity: 0; }
.gc-hudhint[hidden] { display: none; }
.gm-course.meadow { background: linear-gradient(160deg, #4aa8ff, #5cc254 60%, #ffd166); }
.gm-course.boardwalk { background: linear-gradient(160deg, #30407e, #ff8a5c 55%, #1aa6b8); }
.gm-course.alpine { background: linear-gradient(160deg, #3a86de, #9fcfff 45%, #4c8a3c); }
.gm-course.neon { background: linear-gradient(160deg, #12063a, #4a1a9a 60%, #ff3fb4); }
.gm-course.sandbox { background: linear-gradient(160deg, #2a2a40, #5a5a7a 60%, #ffd166); }
.gm-course .gc-med { position: absolute; right: 8px; top: 6px; font-size: 1.2rem; }
.gc-goalcard { margin: 6px 0; padding-left: 18px; font-size: .86rem; color: #d7f4e2; }
@media (max-width: 760px) { .gc-speedo { bottom: 74px; } .gc-speedo b { font-size: 1.7rem; } .gc-ratings { min-width: 130px; font-size: .68rem; } .gc-bar button { padding: 4px 6px; } }
.gc-editing #parkBox .gc-row, .gc-editing #parkBox .gm-ch-label, .gc-editing #speedSeg, .gc-editing #goals, .gc-editing #keysHelp { display: none; }
