/* unpolished on purpose. no design references allowed. puke green, lowercase, comic neue. */
@font-face { font-family: "Comic Neue"; font-weight: 400; src: url("/assets/fonts/comic-neue-400.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Comic Neue"; font-weight: 700; src: url("/assets/fonts/comic-neue-700.woff2") format("woff2"); font-display: swap; }

body { margin: 0; background: #6b6b00; color: #ffff99; font-family: "Comic Neue", "Comic Sans MS", cursive; font-size: 16px; overflow: hidden; }
h1 { font-size: 24px; background: #ff00ff; color: #00ff00; margin: 0 0 8px 0; padding: 2px 6px; }
h2 { font-size: 18px; color: #00ffff; margin: 8px 0 4px 0; }
.small { font-size: 13px; color: #cccc66; font-weight: 400; }
.err { color: #ff6666; }
.wip { background: #ffcc00; color: #222; border: 2px dashed #ff0000; padding: 4px; margin: 0 0 6px 0; } /* still being worked on (lobby.js) */
.wip:empty { display: none; }
#loading { position: fixed; inset: 0; z-index: 50; background: #6b6b00; padding: 24px; text-align: center; } /* while the game loads (main.js): a picture and a tip */
#loading img { max-width: 80vw; max-height: 55vh; display: block; margin: 12px auto; }
#loading img:not([src]) { display: none; }
#loadtip { font-size: 20px; color: #ffff99; }
.sethint { display: block; font-size: 12px; color: #cccc66; margin: 0 0 2px 1em; } /* what a host setting does (settingsui.js) */
.screen { position: absolute; inset: 0; overflow: auto; padding: 8px; display: none; background: #6b6b00; }
.box { border: 3px ridge #ff9900; padding: 6px; margin: 6px 0; background: #4a4a00; }
details { border: 2px groove #00cccc; margin: 4px 0; padding: 3px; background: #3a3a00; }
summary { color: #ff9999; cursor: pointer; }
input, select, button, textarea { font-family: inherit; font-size: 16px; }
button { margin: 2px; }
label.row, div.row { display: block; margin: 2px 0; }
fieldset.list { display: block; border: 0; margin: 2px 0 0 1.5em; padding: 0; } /* the campaign's playlist: on the line under its label */
.setnote { color: #888; font-style: italic; } /* "overridden by ..." next to a host setting */
td, th { padding: 1px 8px; text-align: left; }
table.rooms { border-collapse: collapse; margin: 4px 0; background: #3a3a00; border: 2px groove #00cccc; } /* the public rooms table */
table.rooms th { color: #00ffff; border-bottom: 2px groove #00cccc; padding: 3px 8px; }
table.rooms td { border-top: 1px solid #5a5a00; padding: 3px 8px; vertical-align: middle; }
table.rooms tbody tr:nth-child(even) { background: #444400; }
table.rooms td:nth-child(4) { max-width: 16em; color: #cccc66; } /* who's in: it wraps */
#home .who { white-space: nowrap; } #home .who .face { width: 16px; height: 16px; image-rendering: pixelated; vertical-align: middle; margin-right: 3px; } /* each one's little face (GDD 13) */
.chatlog { min-height: 3em; max-height: 9em; overflow: auto; background: #2d2d00; padding: 2px 4px; margin-bottom: 4px; white-space: pre-wrap; }
.charrow { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
/* your look's picker (GDD 12, the grid): the categories on the left, the picked one's tiles on the right */
.lookpick { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; }
.lookcats { display: flex; flex-direction: column; gap: 3px; }
.lookcats button.on { background: #ffe600; color: #000; }
.lookright { flex: 1; min-width: 0; }
.lookhead { margin-bottom: 4px; } .lookcolor { margin-right: 12px; white-space: nowrap; } /* each color named for its part (GDD 12) */
.lookgrid { display: grid; grid-template-columns: repeat(auto-fill, 72px); gap: 4px; max-height: 260px; overflow-y: auto; }
.looktile { position: relative; width: 72px; height: 88px; box-sizing: border-box; border: 3px solid transparent; background: #9c9c8c; color: #000; cursor: pointer; text-align: center; font-size: 11px; } /* (light: dark hair and bags show on it) */
.looktile.on { border-color: #ffe600; }
.looktile img, .looktile .blank { width: 64px; height: 64px; display: block; margin: 0 auto; image-rendering: pixelated; object-fit: contain; }
.looktile span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.looktile.locked { cursor: default; }
.looktile.locked img, .looktile.locked .lookanim { filter: brightness(0.3); }
.looktile .lookanim { width: 64px; height: 64px; margin: 0 auto; image-rendering: pixelated; background-size: calc(64px * var(--frames)) 64px; animation: lookanim calc(var(--frames) * 0.125s) steps(var(--frames)) infinite; } /* a trick's looping preview (icons.js trickIcon: its pictures side by side, 8 a second) */
@keyframes lookanim { from { background-position: 0 0; } to { background-position: calc(-64px * var(--frames)) 0; } }
.looktile.locked b { position: absolute; left: 0; right: 0; top: 24px; color: #ffe600; font-size: 14px; text-shadow: 0 0 3px #000, 0 0 3px #000; } /* the level it unlocks at, in its middle */
.halves { display: flex; gap: 6px; flex-wrap: wrap; align-items: stretch; } .halves > .box, .halves > .halfcol { flex: 1 1 340px; min-width: 0; } /* two boxes a half each, one under the other when there's no room (GDD 13, 2026-10-29) */
#loadnote:empty, #roomlist:empty { display: none; } /* ("ready." is gone once it's loaded: 2026-10-29) */
/* the vote at the top of the home screen (GDD 15) */
.votebox { border: 4px ridge #00ffff; background: #003a3a; padding: 8px 10px; }
.votebox h2 { font-size: 22px; color: #00ffff; margin: 0 0 2px 0; }
.votebox .closes { color: #99ffff; font-size: 14px; margin-bottom: 6px; }
.votecards { display: flex; gap: 8px; flex-wrap: wrap; }
.votecard { flex: 1 1 200px; border: 3px outset #339999; background: #004a4a; padding: 6px 8px; color: #ccffff; }
.votebox.open .votecard { cursor: pointer; }
.votecard b { color: #ffff66; font-size: 18px; display: block; margin-bottom: 2px; }
.votecard.picked { border: 3px inset #00ff00; background: #005a2a; }
.votecard.picked b::before { content: "> "; color: #00ff00; }
.votecard .count { color: #00ff00; font-weight: 700; margin-top: 4px; }
.votebox textarea { width: 95%; font-size: 14px; margin-top: 6px; }
.votebtn { font-size: 20px; font-weight: 700; padding: 4px 16px; background: #00ffff; color: #000; border: 4px outset #66ffff; margin-top: 4px; }
.voted { color: #00ff00; margin-top: 6px; }
/* the save section on the home screen (GDD 13): louder than every other box */
.saucebox { border: 4px ridge #ff3300; background: #3a0a00; padding: 8px 10px; margin: 6px 0; text-align: center; }
.saucebox[hidden] { display: none; }
.saucebox h2 { font-size: 22px; color: #ff6633; margin: 0 0 6px 0; }
.savebox { border: 4px ridge #ff00ff; background: #3a003a; padding: 8px 10px; }
.savebox h2 { font-size: 22px; color: #ff66ff; margin: 0 0 4px 0; }
.savewarn b { color: #ff9900; }
.savestate { padding: 3px 6px; margin: 6px 0; background: #220022; border-left: 6px solid #ff3333; color: #ff9999; }
.savestate.ok { border-left-color: #00ff00; color: #99ff99; }
.bigsave { font-size: 22px; font-weight: 700; padding: 6px 16px; background: #00ff00; color: #000; border: 4px outset #66ff66; cursor: pointer; }
.copied { color: #00ff00; margin-left: 8px; }
.codeline { font-family: monospace; font-size: 13px; color: #cc99cc; word-break: break-all; margin: 4px 0; user-select: all; } /* one click selects all of it */
.savebox details { background: #2a002a; border-color: #ff66ff; }
.savebox textarea { width: 95%; font-size: 13px; }
.savepreview { margin: 6px 0; padding: 4px 6px; background: #220022; }
.savepreview .lower { color: #ff6666; }
.danger { background: #ff3333; color: #fff; font-weight: 700; border: 3px outset #ff6666; }
#homepreview { display: flex; gap: 6px; } #homepreview canvas { background: #8d9b7a; image-rendering: pixelated; border: 2px solid #ff9900; } /* you, your yart, your bag: a window each (GDD 12) */

#c { position: absolute; inset: 0; top: var(--banner, 0px); width: 100vw; height: calc(100vh - var(--banner, 0px)); image-rendering: pixelated; background: #000; display: none; }
#hud { position: absolute; inset: 0; top: var(--banner, 0px); pointer-events: none; display: none; } /* (under the red banner, when it shows) */
#hud > div, #hud > table { position: absolute; background: rgba(0,0,0,0.55); padding: 2px 6px; color: #ffff99; }
#hud > #borders, #hud > #redflash { background: none; padding: 0; inset: 0; }
#borders { box-shadow: inset 0 0 90px 28px #ffe600; opacity: 0; }
#redflash { background: radial-gradient(ellipse at center, rgba(255,0,0,0) 35%, rgba(255,0,0,0.8) 100%) !important; opacity: 0; display: none; }
#redflash.on { display: block; animation: flash 0.5s steps(2, jump-none) infinite; }
@keyframes flash { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }
.bar { background: #222; width: 100%; }
#meterwrap { left: 8px; bottom: 8px; width: 220px; }
#meterbar { height: 14px; width: 0%; background: #00ff00; position: relative; z-index: 1; }
#meterwrap .bar { position: relative; }
#meterover { position: absolute; left: 0; top: 0; height: 100%; width: 0%; background: #ff0000; z-index: 2; pointer-events: none; }
#meterleanpct { position: absolute; right: 3px; top: 0; height: 100%; line-height: 14px; font-size: 12px; color: #fff; z-index: 3; pointer-events: none; } /* your lean %, opposite the faded % (GDD 19, 313) */
#suspwrap { left: 8px; bottom: 56px; width: 140px; display: none; font-size: 13px; }
#suspbar { height: 8px; width: 0%; background: #ffe600; }
#hud > #hunger { left: 8px; bottom: 56px; background: none; padding: 0 2px; font-size: 14px; display: none; } /* hunger (GDD 19): "plain text (no black background, normal color) right above faded / sus meter". over the sus bar while that shows (hud.js) */
#hover { left: 50%; top: calc(50% + 16px); transform: translateX(-50%); text-align: center; white-space: pre; font-size: 15px; display: none; }
#hud > #slots { left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 4px; background: none; padding: 0; }
#slots div { position: relative; width: 48px; height: 48px; background: rgba(0,0,0,0.55); border: 3px solid transparent; } /* no grey outline, only the yellow on the one you hold (209, 2026-10-29) */
#slots div.sel { border: 3px solid #ffe600; }
#hud > #smears { position: absolute; z-index: 30; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; pointer-events: none; }
#hud > #leantint { inset: 0; padding: 0; background: #8a20c8; opacity: 0; pointer-events: none; }
#hud > #tunnel { inset: 0; padding: 0; background: radial-gradient(ellipse at center, transparent calc(62% - 40% * var(--tunnel, 0)), #000 calc(100% - 30% * var(--tunnel, 0))); opacity: 0; pointer-events: none; }
#hud > #hurt { inset: 0; padding: 0; background: rgba(160,0,0,0.55); opacity: 0; transition: opacity 1.1s ease-out; pointer-events: none; }
#hud > #hurt.on { opacity: var(--hurt, 1); transition: none; }
#hud > #tricks { left: 50%; bottom: 82px; transform: translateX(-50%); display: flex; gap: 4px; background: none; padding: 0; white-space: nowrap; } /* your trick rotation, right over the hotbar (GDD 15) */
#tricks span { background: rgba(0,0,0,0.55); color: #ddd; border: 2px solid transparent; padding: 1px 6px; font-size: 13px; }
#tricks span.sel { border-color: #ffe600; color: #ffe600; }
#hud.tricks #iteminfo { bottom: 108px; } /* (the item's name over the rotation) */
#hud > #thirddash { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); width: 192px; height: 96px; image-rendering: pixelated; } /* the dash's screen while you drive in third person (drive.js dash) */
#slots span { position: absolute; left: 2px; top: 0; font-size: 12px; color: #ffff99; }
#slots img { width: 48px; height: 48px; image-rendering: pixelated; }
#iteminfo { left: 50%; bottom: 84px; transform: translateX(-50%); text-align: center; white-space: pre; display: none; }
#timer { left: 50%; top: 6px; transform: translateX(-50%); font-size: 22px; }
/* the charge meter (hud.js): where it sits says what it's for. basketball's shot right of the crosshair (let go in the green), a throw left of it, a kick under it */
#chargemeter { z-index: 5; position: absolute; left: calc(50% + 40px); top: calc(50% - 60px); width: 12px; height: 120px; background: rgba(0,0,0,0.5); display: none; } /* no outline (209: "yes for charge meter", 2026-10-31) */
#chargemeter.throw { left: calc(50% - 56px); }
#chargemeter.kick { left: calc(50% - 62px); top: calc(50% + 70px); width: 120px; height: 12px; }
#chargegreen { position: absolute; left: 0; right: 0; background: #20d040; }
#chargefill { position: absolute; left: 0; right: 0; bottom: 0; background: #ffcc00; opacity: 0.85; }
#chargemeter.kick #chargefill { left: 0; right: auto; top: 0; bottom: 0; } /* (edge to edge: "black gaps on the sides of the throw bar") */
#soundbox input[type=range] { display: block; } /* each slider under its name */
#countdown { left: 50%; top: 32%; transform: translate(-50%, -50%); font-size: 110px; color: #ffe600; text-shadow: 4px 4px 0 #000; display: none; } /* the gym: 3, 2, 1 before a match */
#countdown.callout { font-size: 60px; white-space: nowrap; } /* a goal, a basket, a match won */
#countdown.callout .sub { font-size: 28px; text-align: center; } /* who scored, under the big word (GDD levels/gym.md 251) */
#scorebug { left: 50%; top: 36px; transform: translateX(-50%); font-size: 16px; text-align: center; display: none; } /* the gym: the game, its time, the score */
#hud > #chips { left: 50%; bottom: 128px; transform: translateX(-50%); display: flex; gap: 6px; background: none; padding: 0; white-space: nowrap; }
#chips span { background: #3a1a6a; color: #ffff66; border: 2px solid #ff66cc; padding: 1px 8px; font-size: 14px; }
#hud > #ballarrow { left: 50%; top: 50%; width: 30px; height: 26px; padding: 0; background: #ff2fd0; clip-path: polygon(0 0, 100% 50%, 0 100%); display: none; } /* soccer: the ball's off that way (a triangle pointing right, turned by hud.js) */
#lb { right: 6px; top: 6px; font-size: 13px; border-collapse: collapse; }
#lb td, #lb th { padding: 0 6px; font-weight: 400; }
#toast { left: 50%; top: 80px; transform: translateX(-50%); font-size: 19px; color: #00ffff; display: none; white-space: pre-line; text-align: center; }
#chat { left: 8px; bottom: 112px; max-width: 40vw; font-size: 14px; white-space: pre-wrap; } /* right above the faded meter and the sus bar, newest at the bottom */
#hint { left: 50%; bottom: 6px; transform: translateX(-50%); font-size: 13px; color: #aaaa66; }
#tip { left: 50%; bottom: 90px; transform: translateX(-50%); font-size: 15px; color: #ffffff; display: none; }
#watching { left: 50%; bottom: 40px; transform: translateX(-50%); font-size: 16px; display: none; }
#hud.spectating #slots, #hud.spectating #iteminfo, #hud.spectating #meterwrap, #hud.spectating #hover, #hud.spectating #hunger, #hud.teacher #hunger { display: none !important; }
#ping { left: 6px; top: 6px; font-size: 12px; color: #cccc66; }
#lvlbar { right: 6px; bottom: 6px; width: 170px; font-size: 14px; }
#lvlface { width: 20px; height: 20px; image-rendering: pixelated; vertical-align: middle; }
#lvlbar .bar, #hotbox .bar { height: 6px; background: #333; margin-top: 2px; }
#hud > #hotbox { right: 6px; top: 50%; transform: translateY(-50%); width: 170px; font-size: 14px; display: none; } /* middle right, between the leaderboard and your level (212) */
#hotboxfill { height: 100%; width: 0%; background: #a8a8a0; } /* the haze's grey */
#lvlfill { height: 100%; width: 0%; background: #ff9900; }
#hud.spectating #lvlbar, #hud.spectating #hotbox { display: none !important; }
#hud.teacher #meterwrap, #hud.teacher #suspwrap { display: none !important; } /* (his slots show the yarts he took) */

#hud > #xpfeed { left: calc(50% + 40px); top: 50%; transform: translateY(-50%); background: none; padding: 0; font-size: 15px; color: #66ff33; }
#xpfeed div.loss { color: #ff3333; }
#xpfeed div { background: rgba(0,0,0,0.55); padding: 1px 6px; margin: 2px 0; transition: opacity 0.6s; }
#hud.minihide #cross, #hud.minihide #xpfeed, #hud.minihide #hover { visibility: hidden; } /* "hide the crosshair, xp and e prompts during minigames" (your graphics) */
#cross { left: 50%; top: 50%; width: 4px; height: 4px; padding: 0 !important; background: #fff !important; transform: translate(-50%,-50%); mix-blend-mode: difference; } /* white over dark, black over something white (a test paper) */
#qte { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); width: 420px; max-width: 90vw; background: #000; border: 3px solid #ffffff; padding: 6px; display: none; text-align: center; color: #fff; }
#qbar { position: relative; height: 26px; background: #444; margin-top: 4px; }
#qtarget { position: absolute; top: 0; bottom: 0; background: #00ff00; opacity: 0.8; }
#qmark { position: absolute; top: -3px; bottom: -3px; width: 4px; background: #ff0000; }
#qdial { display: block; margin: 4px auto 0; } /* the smoke rings' skill check */
#qte[data-game="react"] #qmark, #qte[data-game="steady"] #qmark { width: 18px; margin-left: -9px; top: 3px; bottom: 3px; background: #e8e8e8; } /* ghosting's puff, the french inhale's smoke */
#qte[data-game="steady"] #qbar { width: 160px; height: 30px; margin: 69px auto; transform: rotate(-90deg); } /* the french inhale's bar stands up: your mouth at the bottom, your nose at the top (234) */
#qte[data-game="steady"] #qtarget { opacity: 1; }
#hud.spectating #tricks, #hud.teacher #tricks { display: none !important; } /* your trick rotation: yours to exhale, not a spectator's or the teacher's (dunce, 2026-11-02) */
#mini { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #000; border: 3px solid #fff; padding: 6px; display: none; text-align: center; color: #fff; z-index: 15; }
#mini.clear, #qte.clear { background: transparent; } /* see-through minigames (your graphics) */
#minititle { font-size: 22px; font-weight: 700; }
#miniclock, #minifail, #qclock, #qfail { position: absolute; top: 4px; font-size: 14px; } /* every minigame's corners, the same text (GDD 13): time left top right, a fail countdown top left (dom.js setClock) */
#miniclock, #qclock { right: 8px; }
#minifail, #qfail { left: 8px; }
.failing { animation: failing 0.25s steps(1) infinite; }
@keyframes failing { 0% { color: #ff4444; } 50% { color: #fff; } }
#minicanvas { display: block; margin-top: 4px; }
#minihint, #qhint { font-size: 12px; margin-top: 3px; color: #ccc; } /* (the exhale games' too: "hints ... the same way they are in dont eat shit / dont tweak / dont green out in little text at the bottom", 2026-11-03) */
#fatal { position: fixed; left: 0; right: 0; top: 0; z-index: 100; background: #cc0000; color: #ffffff; padding: 6px; white-space: pre-wrap; display: none; font-size: 14px; }
#escmenu { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #4a4a00; border: 3px ridge #ff9900; padding: 8px; display: none; z-index: 20; }
#escmenu button { display: block; margin: 4px 0; }
#bugbox { display: none; }
#chatin { position: absolute; left: 8px; bottom: 82px; width: 320px; display: none; }

/* the asset viewer */
body.viewer { overflow: auto; }
#vwrap { display: flex; gap: 8px; padding: 8px; flex-wrap: wrap; }
#vcanvas { width: 560px; height: 560px; max-width: 95vw; image-rendering: pixelated; background: #8d9b7a; border: 2px solid #ff9900; }
#vpanel { min-width: 260px; max-width: 420px; }
#vreport div { margin: 1px 0; }
.good { color: #66ff66; }
.bad { color: #ff6666; }
/* the main menu (171): play first and biggest, the room buttons, you (README_stuff/mockups/main-menu.html) */
.playbox { border: 5px ridge #00ff00; background: #1f4a00; padding: 10px 12px; }
.bigplay { font-size: 34px; font-weight: 700; padding: 10px 34px; background: #00ff00; color: #000; border: 6px outset #99ff66; cursor: pointer; }
.playrow { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.playpicks { display: flex; flex-direction: column; gap: 4px; }
.playpicks select { font-size: 18px; }
.waiting { margin-top: 8px; padding: 4px 8px; background: #002a00; border-left: 6px solid #00ff00; color: #99ff99; }
.closest { margin-top: 8px; padding: 6px 8px; background: #2a2a00; border: 3px dashed #ffcc00; color: #ffff99; }
.closest .card { margin: 4px 0; padding: 4px 6px; background: #4a4a00; border: 2px outset #ffcc00; }
.closest b { color: #ffcc00; }
.midbtn { font-size: 18px; font-weight: 700; padding: 4px 12px; background: #ffcc00; color: #000; border: 4px outset #ffe066; }
#online { font-size: 15px; margin-top: 6px; } /* quick play's "14 online: 9 in a round, 5 looking" (235) */
.roombox > div { margin: 4px 0; } /* make a room, the room code, public rooms: a line each (GDD 13, 2026-11-01) */
.youbox { border: 3px ridge #00ffff; background: #003a3a; }
/* the room's players view (GDD 18, 191 to 194): one 3d view of everyone, a card under each */
#players { border: 3px ridge #00ffff; background: #003a3a; padding: 6px; margin: 6px 0; }
#players h2 { margin: 0 0 4px 0; }
#playerview { display: block; width: 100%; border: 2px inset #888; background: #8d9b7a; image-rendering: pixelated; }
#plist { display: grid; gap: 4px; margin-top: 4px; }
#plist .card { text-align: center; background: #002a2a; border: 2px solid #000; padding: 3px 2px; font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
#plist .card b { color: #ffff66; font-size: 16px; }
#plist .card .mark { color: #ff99ff; font-size: 12px; }
#plist .card button { font-size: 12px; margin-top: 2px; }

/* a phone's controls in a round (GDD 18 "mobile controls", from the approved mockup: the game's colors, see-through, one plain outline each). ui/touch.js */
#hud > #touch, #hud > #turnphone { display: none; background: none; padding: 0; inset: 0; }
body.touch #hud > #touch { display: block; }
body.touch #hint { display: none !important; } /* the keyboard's hint line: no keys on a phone */
body.touch #meterwrap { left: 8px; bottom: auto; top: 62px; width: 150px; } /* faded and sus: up under menu and chat, out of the left thumb's way */
body.touch #suspwrap { left: 8px; bottom: auto; top: 96px; width: 150px; }
body.touch #hud > #hunger { left: 8px; bottom: auto !important; top: 128px; } /* (a phone: under them) */
body.touch #hud > #slots { pointer-events: auto; z-index: 18; } /* tap a slot to hold it */
body.touch #chatin { z-index: 19; }
#touch, #touch * { touch-action: none; user-select: none; -webkit-user-select: none; font-family: "Comic Neue", "Comic Sans MS", cursive; }
#tmove, #tlook { position: absolute; top: 60px; bottom: 0; pointer-events: auto; z-index: 16; }
#tmove { left: 0; width: 50%; }
#tlook { left: 50%; right: 0; }
#tlook span { position: absolute; top: 22%; bottom: 30%; left: 0; right: 48%; border-radius: 12px; color: rgba(255, 255, 153, 0.9); font-size: 13px; display: flex; align-items: center; justify-content: center; text-align: center; text-shadow: 0 0 3px #000; }
#tpad { position: absolute; left: 22px; bottom: 52px; width: 124px; height: 124px; box-sizing: border-box; border-radius: 50%; background: rgba(74, 74, 0, 0.45); }
#tknob { position: absolute; left: 34px; top: 34px; width: 50px; height: 50px; box-sizing: border-box; border-radius: 50%; background: rgba(255, 255, 153, 0.75); }
#tpadlabel { position: absolute; left: 26px; bottom: 182px; font-size: 12px; color: #ffff99; text-shadow: 0 0 3px #000, 0 0 3px #000; }
#touch .tbtn { position: absolute; z-index: 17; pointer-events: auto; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; font-weight: 700; color: #000; border-radius: 50%; line-height: 1; box-sizing: border-box; } /* no outlines in the hud (215, GDD 13) */
#touch .tbtn small { font-size: 10px; font-weight: 400; margin-top: 2px; }
#touch .tbtn.on { filter: brightness(1.35); }
#tpull { right: 20px; bottom: 50px; width: 92px; height: 92px; background: rgba(0, 255, 0, 0.8); font-size: 22px; }
#tuse { right: 122px; bottom: 44px; width: 64px; height: 64px; background: rgba(255, 204, 0, 0.85); font-size: 26px; }
#touch .tside { width: 46px; height: 46px; background: rgba(0, 204, 204, 0.75); font-size: 15px; }
#tfan { right: 124px; bottom: 116px; }
#tduck { right: 66px; bottom: 150px; }
#tzoom { right: 14px; bottom: 150px; }
#tview { right: 176px; bottom: 116px; }
#touch [hidden] { display: none !important; } /* (view: at the wheel only, touch.js) */
#touch .tcorner { position: absolute; z-index: 17; pointer-events: auto; top: 28px; padding: 3px 10px; font-size: 14px; font-weight: 700; color: #000; background: rgba(255, 153, 255, 0.85); border-radius: 6px; }
#tmenu { left: 8px; }
#tchat { left: 74px; }
/* held upright: turn it sideways (188) */
#hud > #turnphone { position: fixed; z-index: 40; pointer-events: auto; background: #6b6b00; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #ffff99; text-align: center; padding: 20px; }
#turnphone .phone { width: 70px; height: 120px; border: 5px ridge #ff9900; border-radius: 12px; background: #4a4a00; transform: rotate(-90deg); }
#turnphone b { font-size: 22px; color: #00ff00; }
@media (orientation: portrait) { body.touch #hud > #turnphone { display: flex; } }

/* driver's ed: his trust and where he's looking (GDD 18): top left, above everything else ("put it above everything else", 2026-10-27) */
#hud > #trust { left: 8px; top: 28px; width: 270px; white-space: nowrap; padding: 3px 8px 5px; text-align: center; font-size: 13px; display: none; }
#trust .who { display: flex; align-items: center; justify-content: center; gap: 6px; }
#trust .face { width: 20px; height: 20px; image-rendering: pixelated; } /* his face, drawn like yours in the level bar (dom.js drawFace) */
#trust .word { font-weight: 700; }
#trust .bar { position: relative; height: 10px; margin-top: 3px; background: #222; } /* (no outlines in the hud: GDD 13) */
#trust .fill { position: absolute; left: 0; top: 0; bottom: 0; }
#trust .look { margin-top: 4px; }
#trust .look b { color: #00ffff; }
#hud > #trustfeed { right: calc(50% + 40px); top: 50%; transform: translateY(-50%); background: none; padding: 0; font-size: 15px; text-align: right; } /* what moved his trust (GDD 18 "the trust feed"): the xp feed's mirror */
#trustfeed div { background: rgba(0,0,0,0.55); padding: 1px 6px; margin: 2px 0; color: #66ff33; transition: opacity 0.6s; }
#trustfeed div.loss { color: #ff3333; }
body.touch #hud > #trust { top: 124px; } /* (a phone: under menu and chat and the bars moved up there) */
