.quake-page { background:#15120e; color:#e8d5b3; overflow:hidden; }
.quake-page > .site-header,.quake-page > .site-footer,.quake-page > #debugBadge { display:none; }
.quake-page .site-main { margin:0; padding:0; max-width:none; }
.quake-page *, .quake-page *::before,.quake-page *::after { box-sizing:border-box; }
.quake-page [hidden] { display:none!important; }
.quake-page button,.quake-page a { -webkit-tap-highlight-color:transparent; }
.quake-page button { cursor:pointer; }
.quake-page button:focus-visible,.quake-page a:focus-visible { outline:2px solid #e8ba7e; outline-offset:4px; }
.q-game { position:fixed; inset:0; isolation:isolate; background:#211b16; }
#gameCanvas { position:absolute; inset:0; width:100%; height:100%; display:block; image-rendering:pixelated; touch-action:none; outline:none; cursor:crosshair; }
.q-vignette { position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse at 50% 45%,transparent 36%,#0c090533 80%,#0c090580 100%); }
.q-grain { position:absolute; inset:0; pointer-events:none; opacity:.09; background:repeating-linear-gradient(0deg,transparent,transparent 2px,#000 3px,transparent 4px); }
.q-accessible { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.q-tools { position:absolute; left:22px; bottom:20px; display:flex; gap:12px; opacity:.5; transition:opacity .15s; }
.q-tools:hover,.q-tools:focus-within { opacity:1; }
.q-tools button,.q-tools a,.q-pause { font:24px/1 monospace; color:#d5ba94; background:#1e191280; border:1px solid #8d73533d; width:36px; height:36px; display:grid; place-items:center; text-decoration:none; padding:0; }
.q-tools button[aria-pressed="true"] { color:#ffbd67; border-color:#ab794a; }
#lightingButton svg { width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:square; }
#lightingButton .q-moon,#lightingButton[aria-pressed="true"] .q-sun { display:none; }
#lightingButton[aria-pressed="true"] .q-moon { display:block; }
#lightingButton[aria-pressed="true"] { color:#b5d5ff;border-color:#6e91bc; }
.q-tools.q-weapons { top:64px;bottom:auto;gap:8px; }
.q-weapons svg { width:23px;height:23px;fill:currentColor; }
.q-weapons button:disabled { opacity:.25;cursor:default; }
#railButton[aria-pressed="true"] { color:#65dfff;border-color:#428b9b; }
.q-tools button.is-complete { color:#ffbd67; border-color:#d5a163; box-shadow:0 0 18px #c8844e44; }
.q-pause { position:absolute; top:20px; right:22px; width:30px; height:30px; opacity:.5; font-size:17px; }
.q-rtx { position:absolute; right:22px; bottom:20px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:#78b900; color:#fff; width:69px; height:60px; font-family:Arial,sans-serif; line-height:1; clip-path:polygon(9% 0,100% 0,91% 100%,0 100%); pointer-events:none; }
.q-rtx span { font-size:18px; letter-spacing:1px; }.q-rtx strong { font:bold 25px/1 Arial,sans-serif; }
.q-crosshair { position:absolute; top:50%; left:50%; width:14px; height:14px; transform:translate(-50%,-50%); pointer-events:none; filter:drop-shadow(0 1px 1px #000); opacity:.8; }
.q-crosshair i { position:absolute; background:#e7d8b9; }
.q-crosshair i:nth-child(1) { width:1px; height:4px; left:6px; top:0; }.q-crosshair i:nth-child(2) { width:1px; height:4px; left:6px; bottom:0; }.q-crosshair i:nth-child(3) { height:1px; width:4px; top:6px; left:0; }.q-crosshair i:nth-child(4) { height:1px; width:4px; top:6px; right:0; }
.q-crosshair.on-target i { background:#ffad5f; }
.q-crosshair.on-switch i { background:#91ef61; }
.q-reset-progress { position:absolute;left:50%;top:calc(50% + 20px);width:40px;height:4px;transform:translateX(-50%);background:#1e1912cc;outline:1px solid #8d735366;pointer-events:none; }
.q-reset-progress i { display:block;width:100%;height:100%;background:#ffbd67;transform:scaleX(var(--progress,0));transform-origin:left; }
.q-hitmarker { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); font:32px/1 monospace; color:#cb3527; pointer-events:none; }
.q-touch { position:absolute; inset:0; pointer-events:none; touch-action:none; }
.q-move-pad { position:absolute; left:25px; bottom:110px; width:110px; height:110px; border:1px solid #c2a37e55; border-radius:50%; background:#211a1166; pointer-events:auto; touch-action:none; }
.q-move-pad span { position:absolute; left:34px; top:34px; width:40px; height:40px; border:1px solid #d9ad75aa; border-radius:50%; background:#b2865555; }
.q-touch button { position:absolute; pointer-events:auto; touch-action:none; border-radius:50%; border:1px solid #cf9f6a88; color:#edcc9f; background:#3c281cb3; }
.q-fire { right:25px; bottom:110px; width:80px; height:80px; font-size:38px; }.q-jump { right:116px; bottom:105px; width:48px; height:48px; font-size:24px; }
.q-offline { position:absolute; left:20px; top:20px; padding:15px; background:#211b16; color:#e8d5b3; }
@media (max-width:600px) { .q-rtx { width:52px; height:49px; right:18px; bottom:18px; }.q-rtx span { font-size:14px; }.q-rtx strong { font-size:21px; }.q-tools { left:18px; bottom:18px; gap:8px; }.q-tools button,.q-tools a { width:32px; height:32px; font-size:22px; } }
@media (prefers-reduced-motion:reduce) { .q-tools { transition:none; } }
/* Compact shell with larger bitmap lettering and square, beveled controls. */
@font-face { font-family:RadioPixel;src:url('/assets/quake/radio-pixel.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap; }
.q-tools { top:18px;bottom:auto; }
.q-dead .q-crosshair,.q-dead .q-hitmarker,.q-dead .q-touch { visibility:hidden; }
.winamp { position:absolute;left:18px;bottom:18px;width:286px;max-width:calc(100% - 28px);color:#c9cf9f;font:16px/1 RadioPixel,monospace;background:#343945;border:2px solid;border-color:#9299a6 #080b11 #080b11 #9299a6;box-shadow:0 3px 12px #000a;user-select:none;z-index:6; }
.winamp button { border-radius:0;cursor:pointer;font-family:RadioPixel,monospace;font-weight:400; }
.wa-title { display:flex;align-items:center;gap:6px;height:18px;padding:0 3px;background:linear-gradient(#161d34,#252a3b);cursor:grab;touch-action:none; }
.wa-title:active { cursor:grabbing; }
.wa-title button { background:none;border:0;color:#c4c4ba;font-size:16px;line-height:1;padding:0;white-space:nowrap; }
.wa-title #radioDrag { cursor:grab;touch-action:none; }
.wa-title button span { display:none; }
.wa-title .wa-grip { flex:1;min-width:8px;height:8px;background:repeating-linear-gradient(0deg,#9c9a73,#9c9a73 2px,#272b35 2px,#272b35 4px); }
.wa-title #radioMinimize,.wa-title #radioClose { flex:0 0 14px;height:14px;font-size:16px;background:#949da3;color:#10131b;border:1px solid;border-color:#d3d5ce #111724 #111724 #d3d5ce; }
.wa-body { padding:7px 7px 6px; }
.wa-display { display:flex;gap:8px;height:48px; }
.wa-meter { flex:0 0 104px;background:#08110c;border:2px solid;border-color:#10131b #666e77 #666e77 #10131b;padding:3px; }
.wa-meter time { display:block;color:#59d66d;font:24px/24px RadioPixel,monospace;text-align:right;letter-spacing:0; }
.wa-meter canvas { width:90px;height:14px;display:block;margin-top:0;image-rendering:pixelated; }
.wa-info { flex:1;min-width:0; }
#radioTrack { color:#58d66b;background:#08110c;height:18px;border:1px solid;border-color:#111621 #747b81 #747b81 #111621;padding:0 2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:16px;line-height:16px; }
.wa-format { display:flex;justify-content:space-between;font-size:8px;line-height:8px;margin-top:5px;color:#b6bba2; }
.wa-format span:first-child { color:#54d76d; }
.wa-volume-label { display:flex;align-items:center;gap:5px;color:#8e959d;font-size:8px;line-height:8px;margin-top:5px; }
/* Native range semantics, entirely custom pixel tracks and metal thumbs. */
.winamp input[type=range] { -webkit-appearance:none;appearance:none;display:block;min-width:0;width:100%;height:8px;padding:0;margin:0;border:1px solid;border-color:#10131b #77818a #77818a #10131b;border-radius:0;background:#111821;cursor:pointer;touch-action:none; }
.winamp #radioVolume { background:repeating-linear-gradient(90deg,transparent 0 2px,#141d22 2px 4px),linear-gradient(90deg,#467540,#c0c855); }
.winamp input[type=range]::-webkit-slider-runnable-track { height:6px;background:transparent;border:0;border-radius:0; }
.winamp input[type=range]::-moz-range-track { height:6px;background:transparent;border:0;border-radius:0; }
.winamp input[type=range]::-webkit-slider-thumb { -webkit-appearance:none;appearance:none;width:14px;height:12px;margin-top:-3px;border:2px solid;border-color:#e1e3d3 #252b32 #252b32 #e1e3d3;border-radius:0;background:repeating-linear-gradient(90deg,#a6afa6 0 4px,#68746f 4px 6px);box-shadow:1px 1px #070c12; }
.winamp input[type=range]::-moz-range-thumb { width:10px;height:8px;border:2px solid;border-color:#e1e3d3 #252b32 #252b32 #e1e3d3;border-radius:0;background:repeating-linear-gradient(90deg,#a6afa6 0 4px,#68746f 4px 6px);box-shadow:1px 1px #070c12; }
.winamp input[type=range]:focus-visible { outline:2px solid #77d477;outline-offset:4px; }
.winamp input.wa-seek[type=range] { height:8px;margin:8px 0 7px;background:linear-gradient(90deg,#566650 0 var(--progress,0%),#111821 var(--progress,0%) 100%); }
.wa-bottom { display:flex;justify-content:space-between;align-items:center;gap:7px; }
.wa-transport { display:flex;gap:2px; }
.wa-transport button { display:grid;place-items:center;width:24px;height:18px;padding:0;color:#17212c;background:linear-gradient(#bec6c9 0 50%,#8996a1 50%);border:1px solid;border-color:#dde2e3 #131a25 #131a25 #dde2e3; }
.wa-transport svg { width:12px;height:12px;fill:currentColor;shape-rendering:crispEdges; }
.wa-transport button:active { background:#5f6e7e;border-color:#17212c #ccd2d7 #ccd2d7 #17212c; }
.wa-options { display:flex;gap:3px; }
.wa-options button { height:16px;font-size:8px;line-height:1;color:#bbc1c2;background:#282f3c;border:1px solid;border-color:#747c89 #151a22 #151a22 #747c89;padding:2px 4px; }
.wa-options button[aria-pressed="true"],.wa-options button[aria-expanded="true"] { color:#6fe577; }
.wa-playlist { position:absolute;bottom:calc(100% + 4px);left:-2px;right:-2px;background:#101914;border:2px solid;border-color:#818b96 #121824 #121824 #818b96;padding:5px;max-height:min(300px,40vh);overflow:auto; }
.winamp.playlist-below .wa-playlist { bottom:auto;top:calc(100% + 4px); }
.wa-playlist button { display:block;width:100%;text-align:left;background:none;border:0;padding:8px 4px;color:#5bbd67;font:16px/1.25 RadioPixel,monospace;text-transform:uppercase; }
.wa-playlist button[aria-current="true"] { background:#253e2c;color:#d1e1b2; }.wa-playlist button:hover { background:#233227; }
@media(max-width:600px) { .winamp { width:260px;left:14px;bottom:14px; }.wa-meter { flex-basis:89px; }.wa-meter time { font-size:16px;line-height:20px; }.wa-meter canvas { width:78px;height:18px; }.q-move-pad,.q-fire { bottom:165px; }.q-jump { bottom:160px; }.q-rtx { bottom:24px; }.q-tools { top:15px; } }
@media(max-height:500px) { .q-move-pad { bottom:130px;width:90px;height:90px; }.q-move-pad span { top:24px;left:24px; }.q-fire { bottom:90px; }.q-jump { bottom:85px; } }

@media(max-width:360px) { .q-rtx { top:66px;bottom:auto; } }

/* Toolbar in the radio player's idiom: square bevelled keys, 12-pixel icons, bitmap lettering. */
.q-tools { gap:6px;opacity:.8; }
.q-tools button,.q-tools a,.q-pause { border-radius:0;width:38px;height:38px;padding:0;color:#c9cf9f;background:#343945;border:2px solid;border-color:#9299a6 #080b11 #080b11 #9299a6;font:16px/1 RadioPixel,monospace;image-rendering:pixelated; }
.q-tools button:active,.q-tools button[aria-pressed="true"],.q-pause:active { border-color:#080b11 #9299a6 #9299a6 #080b11;background:#1b1f2a;color:#ffbd67; }
.q-tools svg,.q-pause svg,#lightingButton svg,.q-weapons svg { width:24px;height:24px;fill:currentColor;stroke:none; }
.q-tools [hidden] { display:none; }
.q-tools.q-weapons { top:66px;gap:6px; }
.q-weapons button { position:relative; }
.q-weapons button::after { content:attr(data-key);position:absolute;top:100%;left:-2px;right:-2px;margin-top:5px;font:16px/1 RadioPixel,monospace;color:#c9cf9f;text-align:center;text-shadow:1px 1px 0 #080b11; }
.q-pause { width:32px;height:32px;opacity:.8; }.q-pause svg { width:18px;height:18px; }
.q-letters { position:absolute;top:18px;right:66px;display:flex;gap:5px;font:32px/1 RadioPixel,monospace;pointer-events:none;user-select:none; }
.q-letters span { width:30px;height:36px;display:grid;place-items:center;color:#ffffff1f;background:#0b0d1266;border:2px solid;border-color:#080b11 #9299a655 #9299a655 #080b11; }
.q-letters span.is-found { color:#ffd257;background:#3a2a08cc;border-color:#ffe9a0 #7a5410 #7a5410 #ffe9a0;text-shadow:0 0 8px #ffb72e,1px 1px 0 #6b4300; }
.q-letters.is-complete span { animation:q-gold 1.1s steps(4) infinite alternate; }
@keyframes q-gold { to { color:#fff6d0;text-shadow:0 0 14px #ffcf5a,1px 1px 0 #6b4300; } }
.q-dead .q-letters { visibility:hidden; }
@media (prefers-reduced-motion:reduce) { .q-letters.is-complete span { animation:none; } }
@media (max-width:600px) { .q-letters { right:56px;font-size:24px; }.q-letters span { width:24px;height:30px; } }
/* A long press on a phone must act on the game, not select its labels, open the copy/look-up
   callout, or raise the magnifier. Nothing inside the game is meant to be copied. */
.q-game,.q-game * { -webkit-user-select:none; user-select:none; -webkit-touch-callout:none; }
.q-touch,.q-touch * { -webkit-tap-highlight-color:transparent; touch-action:none; }
