:root { --red: #a80f0f; --gold: #f2c14e; --ink: #f4f1ea; --hud: "Oswald", "Arial Narrow", sans-serif; --deck: "Inter Tight", "Helvetica Neue", Arial, sans-serif; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #050607; color: var(--ink); overflow: hidden; -webkit-tap-highlight-color: transparent; }
body { font: 15px/1.4 var(--deck); }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
#app { position: fixed; inset: 0; }
#stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
body.playing #stage { cursor: none; }
body.playing.freeaim #stage { cursor: crosshair; }
#gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#hurt { position: absolute; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, rgba(120,0,0,0) 45%, rgba(150,0,0,.45) 80%, rgba(90,0,0,.85) 100%); }
#dmg { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
#dmg i { position: absolute; left: -90px; top: -90px; width: 180px; height: 180px; border-radius: 50%; border: 5px solid transparent; border-top-color: rgba(220,20,20,.9); filter: blur(1px); animation: dmgfade 1.1s ease-out forwards; }
@keyframes dmgfade { 0% { opacity: 1; } 100% { opacity: 0; } }

/* HUD: the mode's own places */
#hud { position: fixed; inset: 0; z-index: 3; pointer-events: none; font-family: var(--hud); text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 12px rgba(0,0,0,.6); }
#round { position: absolute; left: 22px; bottom: 14px; width: 210px; height: 100px; }
#perks { position: absolute; left: 26px; bottom: 146px; display: flex; gap: 7px; }
#perks i { width: 36px; height: 36px; border-radius: 6px; display: grid; place-items: center; font: 700 12px var(--hud); color: #111; box-shadow: 0 0 0 2px rgba(0,0,0,.6), 0 0 12px rgba(255,255,255,.25); font-style: normal; }
#hp { position: absolute; left: 28px; bottom: 124px; width: 180px; height: 7px; background: rgba(0,0,0,.55); box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
#hp i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: linear-gradient(90deg, #d8d2c4, #fff); transition: width .2s; }
#hp.low i { background: #e2382b; }
#hp.heal i { background: linear-gradient(90deg, #e9e3d0, #fff6dc); box-shadow: 0 0 10px rgba(255,240,200,.8); }
#hp b { position: absolute; left: 0; top: -19px; font: 500 12px var(--hud); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.75); opacity: 0; transition: opacity .3s; }
#hp.heal b { opacity: 1; }
#money { position: absolute; right: 30px; bottom: 112px; text-align: right; }
#cash { display: inline-block; font: 600 32px var(--hud); letter-spacing: .02em; padding: 2px 14px 2px 26px; background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.55) 30%); color: #fff; }
#plus { position: absolute; right: 100%; top: 0; width: 140px; height: 40px; }
#plus b { position: absolute; right: 6px; top: 6px; font: 600 22px var(--hud); color: var(--gold); white-space: nowrap; animation: plus 1s ease-out forwards; }
#plus b.neg { color: #e44; }
#plus b.rv { color: #fff3c9; }
@keyframes plus { 0% { opacity: 1; transform: translate(0,0); } 100% { opacity: 0; transform: translate(-70px, -26px); } }
#ammo { position: absolute; right: 30px; bottom: 30px; display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; column-gap: 8px; }
#ammo b { grid-column: 1 / -1; text-align: right; font: 500 15px var(--hud); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
#ammo b.rev { color: #ffd66b; }
#mag { font: 600 46px/1 var(--hud); }
#res { font: 500 22px var(--hud); opacity: .8; }
#res::before { content: "/ "; opacity: .6; }
#mag.low { color: #ff4a3a; }
#nades { grid-column: 1 / -1; justify-self: end; display: flex; gap: 4px; margin-top: 4px; }
#nades u { width: 9px; height: 13px; border-radius: 4px 4px 3px 3px; background: #6f7a5a; box-shadow: 0 0 0 1px rgba(0,0,0,.6); display: block; }
#prompt { position: absolute; left: 50%; top: 60%; transform: translateX(-50%); font: 500 19px var(--hud); letter-spacing: .02em; white-space: nowrap; opacity: 0; transition: opacity .12s; text-align: center; }
#prompt.on { opacity: 1; }
#prompt kbd { display: inline-block; font: 600 15px var(--hud); padding: 0 7px; margin: 0 3px; border: 1px solid rgba(255,255,255,.7); border-radius: 3px; background: rgba(0,0,0,.35); }
#prompt .cost { color: var(--gold); }
#prompt .no { color: #ff7060; }
#prompt .bar { display: block; height: 3px; margin: 7px auto 0; width: 160px; background: rgba(255,255,255,.2); }
#prompt .bar i { display: block; height: 100%; width: 0; background: #fff; }
#cap { position: absolute; left: 50%; bottom: 150px; transform: translateX(-50%); width: min(820px, 76vw); text-align: center; font: 400 20px/1.32 var(--deck); opacity: 0; transition: opacity .25s; text-shadow: 0 1px 3px #000, 0 0 14px rgba(0,0,0,.9); }
#cap.on { opacity: 1; }
#cap.faint { opacity: .55; }
#cap b { font-weight: 700; margin-right: .4em; letter-spacing: .03em; }
#cap b.MIKE { color: #8fd0ff; } #cap b.JUNIOR { color: #9be7c4; } #cap b.DANA { color: #b9f0a5; } #cap b.GUS { color: #f6d27a; } #cap b.RENEE { color: #f4a6c8; } #cap b.DALE { color: #ff9a6b; } #cap b.BARB { color: #d9b8ff; }
#xhair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transition: opacity .12s; }
#xhair.off { opacity: 0; }
#xhair i { position: absolute; background: #fff; box-shadow: 0 0 2px #000; opacity: .85; }
#xhair i:nth-child(1), #xhair i:nth-child(2) { width: 10px; height: 2px; top: -1px; }
#xhair i:nth-child(3), #xhair i:nth-child(4) { width: 2px; height: 10px; left: -1px; }
#xhair .hm { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; opacity: 0; }
#xhair .hm::before, #xhair .hm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26px; height: 2px; background: #fff; transform: translate(-50%,-50%) rotate(45deg); box-shadow: 0 0 2px #000; }
#xhair .hm::after { transform: translate(-50%,-50%) rotate(-45deg); }
#xhair .hm.on { animation: hm .24s ease-out; }
#xhair .hm.kill::before, #xhair .hm.kill::after { background: #ff4433; }
@keyframes hm { 0% { opacity: 1; transform: scale(1.25); } 100% { opacity: 0; transform: scale(.9); } }
#review { position: absolute; left: 50%; top: 68%; transform: translateX(-50%); text-align: center; opacity: 0; transition: opacity .25s; white-space: nowrap; }
#review.on { opacity: 1; }
#review .rv-k { display: block; font: 500 12px var(--hud); letter-spacing: .3em; text-transform: uppercase; color: rgba(255,255,255,.65); }
#review .rv-t { display: block; font: 600 17px var(--deck); color: #fff; }
#powers { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; gap: 16px; }
#powers div { font: 600 12px var(--hud); text-align: center; color: #b6ff9a; letter-spacing: .06em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 2px; }
#powers i { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--hud); font-style: normal; color: #0b1a06; background: radial-gradient(circle at 40% 35%, #d9ffc6, #5fe13a 60%, #2a8a14); box-shadow: 0 0 14px rgba(110,255,80,.7); }
#powers div.blink { animation: blink .4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
#banner { position: absolute; left: 50%; top: 27%; transform: translateX(-50%); font: 600 30px var(--hud); letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s; text-shadow: 0 0 18px rgba(255,200,120,.45), 0 2px 3px #000; white-space: nowrap; text-align: center; }
#banner.on { opacity: 1; }
#banner.green { color: #c9ffb0; text-shadow: 0 0 18px rgba(120,255,90,.6), 0 2px 3px #000; }
#banner small { display: block; font: 400 15px var(--deck); letter-spacing: .02em; text-transform: none; opacity: .8; margin-top: 4px; }
#tip { position: absolute; left: 50%; top: 14%; transform: translateX(-50%); font: 400 16px var(--deck); color: rgba(255,255,255,.9); background: rgba(0,0,0,.5); padding: 7px 14px; border-radius: 3px; opacity: 0; transition: opacity .4s; white-space: nowrap; }
#tip.on { opacity: 1; }
#tip kbd { font: 600 13px var(--hud); padding: 0 6px; border: 1px solid rgba(255,255,255,.6); border-radius: 3px; margin: 0 2px; }
#tools { position: absolute; right: 18px; top: 16px; display: flex; gap: 8px; pointer-events: auto; }
#tools button { cursor: pointer; background: rgba(10,10,12,.55); border: 1px solid rgba(255,255,255,.28); border-radius: 4px; padding: 7px 12px; font: 500 15px var(--hud); letter-spacing: .06em; text-transform: uppercase; color: #fff; display: flex; gap: 8px; align-items: center; }
#tools button:hover, #tools button:focus-visible { background: rgba(255,255,255,.14); outline: none; }
#tools kbd { font: 500 11px var(--hud); opacity: .7; border: 1px solid rgba(255,255,255,.4); border-radius: 3px; padding: 0 4px; }

/* touch: twin sticks. the left thumb moves wherever it lands, the right side looks; buttons on the right */
#pad { position: fixed; inset: 0; z-index: 4; pointer-events: none; }
#pad button { position: absolute; pointer-events: auto; border-radius: 50%; background: rgba(15,15,18,.45); border: 1.5px solid rgba(255,255,255,.35); color: #fff; font: 600 12px var(--hud); letter-spacing: .06em; text-transform: uppercase; touch-action: none; -webkit-user-select: none; user-select: none; width: 62px; height: 62px; display: grid; place-items: center; }
#pad button.on { background: rgba(242,193,78,.4); border-color: var(--gold); }
#t-fire { right: calc(20px + env(safe-area-inset-right)); bottom: calc(64px + env(safe-area-inset-bottom)); width: 86px !important; height: 86px !important; background: rgba(170,20,20,.45) !important; border-color: rgba(255,120,110,.7) !important; }
#t-ads { right: calc(118px + env(safe-area-inset-right)); bottom: calc(126px + env(safe-area-inset-bottom)); width: 56px !important; height: 56px !important; }
#t-reload { right: calc(118px + env(safe-area-inset-right)); bottom: calc(46px + env(safe-area-inset-bottom)); width: 56px !important; height: 56px !important; }
#t-use { right: calc(194px + env(safe-area-inset-right)); bottom: calc(150px + env(safe-area-inset-bottom)); width: 64px !important; height: 64px !important; line-height: 1; }
#t-use b { display: block; font-size: 9px; opacity: .7; } #t-use span { font-size: 11px; }
#t-swap { right: calc(190px + env(safe-area-inset-right)); bottom: calc(74px + env(safe-area-inset-bottom)); width: 48px !important; height: 48px !important; }
#t-knife { right: calc(250px + env(safe-area-inset-right)); bottom: calc(24px + env(safe-area-inset-bottom)); width: 48px !important; height: 48px !important; }
#t-jump { right: calc(32px + env(safe-area-inset-right)); bottom: calc(8px + env(safe-area-inset-bottom)); width: 46px !important; height: 46px !important; }
#t-work { left: calc(14px + env(safe-area-inset-left)); top: 12px; border-radius: 6px !important; width: auto !important; height: 34px !important; padding: 0 12px; }
#t-pause { left: calc(96px + env(safe-area-inset-left)); top: 12px; border-radius: 6px !important; width: 44px !important; height: 34px !important; }
#pad .stick { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; border: 2px solid rgba(255,255,255,.3); background: rgba(0,0,0,.18); opacity: 0; transition: opacity .15s; left: 90px; top: 70%; }
#pad .stick.on { opacity: 1; }
#pad .stick i { position: absolute; left: 35px; top: 35px; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.5); }
body.touch #tools { display: none; }
body.touch .t-keys { display: none; }
.t-touch { display: none; margin-top: 22px; font: 400 14px var(--deck); color: rgba(255,255,255,.7); max-width: 300px; line-height: 1.5; text-shadow: 0 1px 3px #000; }
body.touch .t-touch { display: block; }
#rotate { position: fixed; inset: 0; z-index: 20; display: none; place-items: center; background: rgba(5,6,7,.92); text-align: center; font: 600 20px var(--hud); letter-spacing: .1em; text-transform: uppercase; color: #fff; padding: 30px; }
#rotate small { display: block; margin-top: 10px; font: 400 14px var(--deck); letter-spacing: 0; text-transform: none; opacity: .7; }
#rotate button { margin-top: 18px; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; padding: 8px 14px; font: 500 13px var(--hud); letter-spacing: .1em; text-transform: uppercase; border-radius: 4px; }
body.touch.portrait.playing:not(.rot-ok) #rotate { display: grid; }
body.touch #money { bottom: auto; top: 12px; right: 16px; } body.touch #ammo { bottom: auto; top: 56px; right: 16px; }
body.touch #mag { font-size: 30px; } body.touch #cash { font-size: 24px; }
body.touch #round { bottom: auto; top: 54px; left: 8px; width: 140px; height: 66px; }
body.touch #perks { bottom: auto; top: 138px; left: 14px; } body.touch #hp { bottom: auto; top: 124px; left: 14px; width: 120px; } body.touch #tip { top: 24%; font-size: 14px; white-space: normal; max-width: 70vw; text-align: center; }
body.touch #prompt { top: 40%; font-size: 15px; } body.touch #cap { bottom: auto; top: 18%; font-size: 15px; width: 64vw; }
body.touch #powers { bottom: auto; top: 12px; }

/* screens */
.scr { position: absolute; inset: 0; display: grid; place-items: center; z-index: 10; }
.m { display: block; cursor: pointer; background: none; border: 0; padding: 6px 0; font: 600 28px var(--hud); letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.82); text-align: left; text-shadow: 0 2px 4px #000; }
.m:hover, .m:focus-visible { color: #fff; outline: none; text-shadow: 0 0 16px rgba(255,220,150,.6), 0 2px 4px #000; }
.m:hover::before, .m:focus-visible::before { content: "\25B8"; margin-left: -1.1em; width: 1.1em; display: inline-block; color: var(--gold); }

#loader { background: #050607; }
.invite { width: min(520px, 88vw); background: #f4f1ea; color: #1b1b1b; padding: 30px 34px 26px; font: 15px/1.5 var(--deck); box-shadow: 0 30px 80px rgba(0,0,0,.6); transform: rotate(-.6deg); }
.inv-h { font: 700 11px var(--deck); letter-spacing: .2em; text-transform: uppercase; color: #8a1d1d; }
.invite h1 { font: 800 30px/1.1 var(--deck); margin: 6px 0 16px; letter-spacing: -.01em; }
.invite dl { display: grid; grid-template-columns: 96px 1fr; gap: 6px 10px; margin: 0 0 14px; }
.invite dt { font-weight: 700; color: #666; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.invite dd { margin: 0; }
.inv-note { font-style: italic; color: #555; margin-bottom: 18px; }
.bar { height: 4px; background: #d9d4c8; }
.bar i { display: block; height: 100%; width: 0; background: #8a1d1d; transition: width .2s; }
#load-txt { margin-top: 8px; font-size: 12px; color: #777; letter-spacing: .04em; }

#title { background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.2) 55%, rgba(0,0,0,0)); place-items: center start; }
.t-menu { margin-left: max(6vw, 40px); max-height: 100%; overflow: auto; padding: 24px 0; }
.t-where { margin-bottom: clamp(18px, 5vh, 48px); display: grid; gap: 2px; font: 500 13px var(--hud); letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.62); text-shadow: 0 2px 4px #000; }
.t-where b { font: 600 34px var(--hud); letter-spacing: .08em; color: #fff; }
.t-keys { margin-top: 26px; display: grid; gap: 4px; font: 400 13px var(--deck); color: rgba(255,255,255,.6); text-shadow: 0 1px 3px #000; }
.t-keys kbd { display: inline-block; min-width: 4.4em; font: 600 11px var(--hud); letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-right: 8px; }
.t-sub { margin-top: 14px; display: flex; gap: 22px; }
.t-sub button { cursor: pointer; background: none; border: 0; padding: 0; font: 400 13px var(--hud); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.55); }

#pause { background: rgba(0,0,0,.62); }
.p-box { min-width: 320px; }
.p-h { font: 600 18px var(--hud); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.p-keys { margin-top: 18px; max-width: 380px; font: 400 14px/1.5 var(--deck); opacity: .65; }
.p-sens { display: flex; gap: 12px; align-items: center; font: 500 15px var(--hud); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); margin: 8px 0; }
.p-sens input { width: 160px; accent-color: var(--gold); }

/* the deck: every project, best first */
#deck { background: rgba(6,6,7,.94); overflow: auto; place-items: start center; }
.d-box { width: min(1180px, 94vw); padding: 28px 0 40px; }
.d-h { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.d-h span { font: 700 11px var(--deck); letter-spacing: .22em; text-transform: uppercase; opacity: .55; }
.d-h b { font: 800 30px var(--deck); flex: 1; }
.d-x { cursor: pointer; background: #f4f1ea; color: #111; border: 0; border-radius: 3px; padding: 8px 12px; font: 700 13px var(--deck); }
.d-x kbd { font: 600 11px var(--deck); opacity: .6; margin-left: 4px; }
.d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.d-grid button { cursor: pointer; padding: 0; border: 0; background: #111; text-align: left; color: #eee; position: relative; }
.d-grid button:hover img, .d-grid button:focus-visible img { filter: brightness(1.12); }
.d-grid button:focus-visible { outline: 2px solid var(--gold); }
.d-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #222; }
.d-grid .dc { display: block; padding: 7px 9px 9px; }
.d-grid .dc em { display: block; font: 700 10px var(--deck); letter-spacing: .18em; text-transform: uppercase; opacity: .55; font-style: normal; }
.d-grid .dc b { font: 700 15px var(--deck); }
.d-grid .seen { position: absolute; right: 8px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(242,193,78,.8); }

/* the work: the deck's presenter view */
#work { background: #0b0b0c; place-items: stretch; overflow: auto; display: block; }
.w-box { display: grid; grid-template-columns: minmax(230px, 310px) 1fr; gap: 30px; padding: 26px; max-width: 1560px; margin: 0 auto; }
.w-notes { position: sticky; top: 26px; align-self: start; font-size: 15px; line-height: 1.55; color: #cfcac0; }
.w-k { font: 700 11px var(--deck); letter-spacing: .2em; text-transform: uppercase; color: #8a8478; margin-bottom: 14px; }
.w-client { font: 700 11px var(--deck); letter-spacing: .22em; text-transform: uppercase; opacity: .6; }
.w-notes h2 { font: 800 28px/1.1 var(--deck); margin: 4px 0 12px; color: #fff; }
#w-credits { margin-top: 14px; font: 13px/1.5 var(--deck); color: #a29c90; white-space: pre-line; }
.w-nav { display: flex; gap: 8px; margin: 18px 0 10px; }
.w-nav button { cursor: pointer; flex: 1; background: #1c1c1f; border: 1px solid #333; color: #ddd; padding: 8px; font: 600 13px var(--deck); border-radius: 3px; }
.w-close { cursor: pointer; width: 100%; background: #f4f1ea; color: #111; border: 0; border-radius: 3px; padding: 10px 14px; font: 700 14px var(--deck); }
.w-close kbd { font: 600 11px var(--deck); opacity: .6; margin-left: 6px; }
#w-main .cs-sec { margin-bottom: 36px; }
#w-main .cs-h { font: 700 13px var(--deck); letter-spacing: .16em; text-transform: uppercase; color: #a29c90; margin: 0 0 6px; }
#w-main .cs-p { color: #cfcac0; max-width: 70ch; margin: 0 0 14px; }
#w-main .cs-films { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 18px; }
#w-main .cs-film { margin: 0; }
#w-main .cs-film.is-tall { max-width: 360px; }
#w-main .cs-frame { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
#w-main div.cs-frame { cursor: default; }
#w-main .cs-frame img, #w-main .cs-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
#w-main .cs-glyph { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.8); }
#w-main .cs-glyph::after { content: ""; position: absolute; left: 25px; top: 19px; border: 13px solid transparent; border-left: 20px solid #fff; border-right: 0; }
#w-main .cs-cap { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; color: #cfcac0; }
#w-main .cs-dur { opacity: .6; }
#w-main .cs-imgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; margin-top: 14px; }
#w-main .cs-img { margin: 0; } #w-main .cs-img img { width: 100%; height: auto; display: block; background: #111; }
#w-main .cs-audio { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 6px; }
#w-main .cs-track { display: grid; grid-template-columns: 38px 30px 1fr 160px; align-items: center; gap: 10px; padding: 6px 10px; background: #151517; }
#w-main .cs-ap { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #888; background: none; cursor: pointer; position: relative; }
#w-main .cs-ap::after { content: ""; position: absolute; left: 10px; top: 8px; border: 7px solid transparent; border-left: 10px solid #fff; border-right: 0; }
#w-main .cs-track.is-on .cs-ap::after { left: 9px; top: 9px; width: 10px; height: 10px; border: 0; border-left: 3px solid #fff; border-right: 3px solid #fff; }
#w-main .cs-n { opacity: .5; font-size: 12px; } #w-main .cs-bar { height: 3px; background: #333; } #w-main .cs-bar i { display: block; height: 100%; width: 0; background: #f4f1ea; }

#over { background: radial-gradient(ellipse at center, rgba(30,0,0,.78), rgba(5,0,0,.94)); }
.o-box { text-align: center; max-width: min(820px, 92vw); max-height: 92vh; overflow: auto; padding: 10px; }
.o-big { font: 400 54px/1.05 "Rubik Wet Paint", var(--hud); color: #c21515; text-shadow: 0 2px 0 #000, 0 0 30px rgba(180,0,0,.4); }
.o-stats { margin-top: 10px; font: 500 15px var(--hud); letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.o-line { margin: 14px 0 18px; font: 400 19px var(--deck); opacity: .85; }
.o-h { font: 600 12px var(--hud); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin: 6px 0 8px; }
#o-init { display: flex; gap: 10px; justify-content: center; align-items: center; margin-bottom: 14px; }
.o-lbl { font: 600 14px var(--hud); letter-spacing: .14em; text-transform: uppercase; }
#o-in { width: min(270px, 64vw); font: 600 26px var(--hud); text-align: center; letter-spacing: .03em; background: #000; color: #fff; border: 1px solid #888; padding: 2px 8px; }
#o-save { cursor: pointer; font: 600 16px var(--hud); padding: 8px 14px; background: #f4f1ea; color: #111; border: 0; }
#o-board { font: 500 17px var(--hud); letter-spacing: .06em; margin: 8px auto 14px; display: inline-grid; grid-template-columns: auto auto auto; gap: 2px 22px; text-align: left; }
#o-deck { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 6px 0 18px; }
#o-deck button { cursor: pointer; width: 118px; padding: 0; border: 1px solid #333; background: #000; text-align: left; font: 500 11px var(--deck); color: #ddd; }
#o-deck img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
#o-deck span { display: block; padding: 4px 6px; }
.o-btns { display: flex; gap: 34px; justify-content: center; }

#about { background: rgba(0,0,0,.86); overflow: auto; }
.a-box { max-width: 680px; padding: 40px 28px; font-size: 16px; line-height: 1.6; color: #ddd8ce; }
.b-h { font: 600 15px var(--hud); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.b-grid { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 22px; font: 500 22px var(--hud); letter-spacing: .05em; margin-bottom: 22px; }
.b-empty { grid-column: 1 / -1; opacity: .6; font: 400 16px var(--deck); }
.a-box h2 { font: 800 40px/1.05 var(--deck); margin: 0 0 4px; color: #fff; }
.a-role { font: 600 15px var(--deck); color: var(--gold); margin: 0 0 14px; }
.a-exp { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 4px; font-size: 14px; }
.a-exp b { color: #fff; margin-right: 6px; }
.a-contact a { color: #f4f1ea; }

@media (max-width: 760px), (max-height: 520px) {
  #cash { font-size: 24px; } #mag { font-size: 34px; } #round { width: 150px; height: 72px; left: 12px; }
  #cap { font-size: 16px; width: 90vw; } .m { font-size: 22px; }
  .w-box { grid-template-columns: 1fr; padding: 16px; } .w-notes { position: static; }
  .t-where b { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { #plus b, #xhair .hm.on, #dmg i { animation-duration: .01s; } }

/* the cold open: letterboxed, typed cards */
#opener { position: fixed; inset: 0; z-index: 15; cursor: default; opacity: 1; transition: opacity .6s; }
#opener.out { opacity: 0; pointer-events: none; }
#opener .lb { position: absolute; left: 0; right: 0; height: 11vh; background: #000; }
#opener .lb-t { top: 0; } #opener .lb-b { bottom: 0; }
#op-card { position: absolute; left: 50%; bottom: calc(11vh + 6vh); transform: translateX(-50%); width: min(820px, 86vw); text-align: center; color: #f1ead8; font: 400 clamp(18px, 2.4vw, 28px)/1.35 "Special Elite", "Courier New", monospace; text-shadow: 0 2px 6px #000, 0 0 24px rgba(0,0,0,.8); opacity: 0; }
#op-card.on { animation: opcard 4.6s ease forwards; }
#op-card small { display: block; font: 600 12px var(--hud); letter-spacing: .4em; text-transform: uppercase; color: #c9452f; margin-bottom: 10px; }
@keyframes opcard { 0% { opacity: 0; transform: translate(-50%, 6px); } 12% { opacity: 1; transform: translate(-50%, 0); } 86% { opacity: 1; } 100% { opacity: 0; } }
#op-skip { position: absolute; right: 22px; bottom: calc(11vh - 44px); cursor: pointer; background: none; border: 1px solid rgba(255,255,255,.35); border-radius: 3px; color: rgba(255,255,255,.75); padding: 6px 12px; font: 500 13px var(--hud); letter-spacing: .12em; text-transform: uppercase; }
#op-skip kbd { font: 500 10px var(--hud); opacity: .7; margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { #op-card.on { animation-duration: .01s; opacity: 1; } }

/* the walkthrough's objective, top left, the way the mode shows one */
#tut { position: absolute; left: 28px; top: 22px; max-width: min(420px, 60vw); opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s; font: 400 16px/1.35 var(--deck); color: #fff; }
#tut.on { opacity: 1; transform: none; }
#tut b { display: block; font: 600 11px var(--hud); letter-spacing: .3em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
#tut span { display: block; text-shadow: 0 1px 3px #000, 0 0 12px rgba(0,0,0,.7); }
#tut kbd { font: 600 13px var(--hud); padding: 0 6px; border: 1px solid rgba(255,255,255,.6); border-radius: 3px; margin: 0 2px; background: rgba(0,0,0,.35); }
#tut small { display: block; margin-top: 6px; font: 400 11px var(--deck); opacity: .55; }
body.touch #tut { top: 54px; left: 160px; font-size: 13px; pointer-events: auto; }
#op-card.cap { font: 400 clamp(17px, 2vw, 24px)/1.4 var(--deck); animation: opcap var(--d, 3s) ease forwards; }
#op-card.cap b { font-weight: 700; color: #8fd0ff; margin-right: .35em; }
@keyframes opcap { 0% { opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; } }
#op-stamp { position: absolute; z-index: 2; left: max(5vw, 24px); top: max(8px, calc(5.5vh - 21px)); font: 400 15px/1.45 "Special Elite", "Courier New", monospace; color: #f1ead8; text-shadow: 0 2px 6px #000; opacity: 0; }
#op-stamp b { display: block; font-weight: 400; letter-spacing: .06em; }
#op-stamp span { color: #c9452f; letter-spacing: .08em; }
#op-stamp.on { animation: opstamp 6.5s ease forwards; }
@keyframes opstamp { 0% { opacity: 0; clip-path: inset(0 100% 0 0); } 25% { opacity: 1; clip-path: inset(0 0 0 0); } 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---- the N64 build: the era's HUD, the dossier title and the Hartwell gold watch for pause ---------------------- */
:root { --hud: "Russo One", "Arial Black", sans-serif; --lcd: "VT323", "Courier New", monospace; --type: "Special Elite", "Courier New", monospace; }
html { font-synthesis: none; }
#hud { text-shadow: 2px 2px 0 #000; }
#cap { font: 400 19px/1.3 var(--hud); text-shadow: 2px 2px 0 #000; }
#cap b { font-weight: 400; }
#banner { font: 400 30px var(--hud); letter-spacing: .1em; text-shadow: 3px 3px 0 #000; }
#banner small { font: 400 15px var(--hud); letter-spacing: .04em; }
#prompt { font: 400 18px var(--hud); text-shadow: 2px 2px 0 #000; }
#prompt kbd, #tip kbd, #tut kbd { font: 400 13px var(--hud); border: 2px solid #f2f2f2; border-radius: 2px; background: #1a2a6a; box-shadow: 2px 2px 0 #000; padding: 0 6px; }
#tip { font: 400 16px var(--hud); background: rgba(0,0,0,.6); border: 2px solid rgba(255,255,255,.18); border-radius: 0; text-shadow: 2px 2px 0 #000; }
#tut { font: 400 16px/1.35 var(--hud); }
#tut b { font: 400 12px var(--hud); letter-spacing: .24em; color: #ffd84a; }
#tut span { text-shadow: 2px 2px 0 #000; }
#review .rv-k { font: 400 12px var(--hud); letter-spacing: .3em; } #review .rv-t { font: 400 17px var(--hud); }
#powers div { font: 400 12px var(--hud); }
#powers i { border-radius: 0; font: 400 15px var(--hud); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); box-shadow: none; }
#perks i { border-radius: 0; font: 400 12px var(--hud); box-shadow: 0 0 0 2px #000, 3px 3px 0 2px #000; }
#round { image-rendering: pixelated; }
/* points: gold digits, no box */
#money { bottom: 184px; }
#cash { background: none; padding: 0; font: 400 30px var(--hud); color: #ffd84a; letter-spacing: .02em; }
#plus b { font: 400 22px var(--hud); color: #ffd84a; }
/* the client pays in product: the points are credit against the wall (Mike: "they said they'd pay in product") */
.cash-k { display: block; margin-top: -2px; font: 400 11px var(--hud); letter-spacing: .14em; text-transform: uppercase; color: #ffd84a; opacity: .75; }
/* ammo: the gun's name, the magazine and what's left, and a stack of rounds you can count */
#ammo { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.am-row { display: flex; align-items: flex-end; gap: 10px; }
#ammo b { font: 400 13px var(--hud); letter-spacing: .1em; color: #9fd8ff; opacity: 1; }
#mag { font: 400 42px/1 var(--hud); color: #fff; }
#res { font: 400 20px var(--hud); color: #9fd8ff; opacity: 1; }
#res::before { content: none; }
#mag { margin-bottom: -4px; } #res { margin-bottom: -2px; }
#bul { display: flex; flex-direction: column-reverse; flex-wrap: wrap-reverse; align-content: flex-end; height: 104px; gap: 2px 3px; }
#bul u { display: block; width: 16px; height: 5px; border-radius: 0 3px 3px 0; background: linear-gradient(90deg, #8c6a1c 0 62%, #c9874a 62%); box-shadow: 1px 1px 0 #000; }
#bul.rifle u, #bul.lmg u { width: 20px; height: 4px; background: linear-gradient(90deg, #8c6a1c 0 55%, #b8b2a0 55% 60%, #c9874a 60%); }
#bul.shotgun u { width: 15px; height: 7px; border-radius: 0 1px 1px 0; background: linear-gradient(90deg, #c9a84a 0 24%, #b0221c 24%); }
#bul.sonic u, #bul.lightning u { width: 12px; height: 8px; border-radius: 2px; background: linear-gradient(90deg, #5fe1ff, #d9fbff); box-shadow: 0 0 6px #5fe1ff, 1px 1px 0 #000; }
#bul u.gone { opacity: .22; box-shadow: none; }
#nades u { border-radius: 2px; box-shadow: 1px 1px 0 #000; }
#ammo.low #mag { color: #ff4a3a; }
/* health: a curved, segmented bar on the left that shows up when you're hurt (and while you patch up) */
#hp { left: 26px; top: 50%; bottom: auto; width: 48px; height: 270px; margin-top: -135px; background: none; box-shadow: none; opacity: 0; transition: opacity .5s; }
#hp.show { opacity: 1; transition: opacity .12s; }
#hp svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#hp path { fill: rgba(0,0,0,.5); stroke: #000; stroke-width: 1.5; }
#hp path.f { fill: #e8401c; }
#hp path.f.hi { fill: #ff8a2a; }
#hp.low path.f { animation: hplow .5s steps(2) infinite; }
@keyframes hplow { 50% { fill: #6a0d06; } }
#hp.heal path.f { fill: #fff0c4; }
#hp b { left: 54px; top: 50%; margin-top: -8px; font: 400 13px var(--hud); letter-spacing: .14em; color: #fff0c4; white-space: nowrap; }
/* the crosshair: a small red cross */
#xhair i { background: #ff2a1a; box-shadow: 1px 1px 0 #000; opacity: .95; }
#xhair i:nth-child(1), #xhair i:nth-child(2) { width: 8px; height: 3px; top: -1px; }
#xhair i:nth-child(3), #xhair i:nth-child(4) { width: 3px; height: 8px; left: -1px; }
#xhair .hm::before, #xhair .hm::after { box-shadow: 1px 1px 0 #000; }
#tools button { border-radius: 0; border: 2px solid #9fd8ff; background: rgba(0,16,48,.65); font: 400 14px var(--hud); box-shadow: 3px 3px 0 #000; }
#tools kbd { font: 400 11px var(--hud); border-radius: 0; }
#pad button { font: 400 12px var(--hud); }
body.touch #hp { top: auto; bottom: 18px; left: 10px; height: 170px; margin-top: 0; width: 36px; }
body.touch #bul { height: 70px; } body.touch #money { bottom: auto; top: 12px; }

.m { font: 400 26px var(--hud); letter-spacing: .04em; text-shadow: 3px 3px 0 #000; }
.m:hover, .m:focus-visible { color: #ffd84a; text-shadow: 3px 3px 0 #000; }

/* the title: the account file on the boardroom table */
#title { background: linear-gradient(90deg, rgba(0,0,0,.6), rgba(0,0,0,.1) 60%, rgba(0,0,0,0)); }
/* the sheet is laid out at one size and scaled as a whole to fit (ui.js fitDossier): it never re-wraps */
.dossier { position: relative; width: 440px; flex: none; margin-left: max(5vw, 28px); padding: 34px 32px 22px 36px; overflow: visible;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(0,0,0,.08)), repeating-linear-gradient(0deg, rgba(90,60,20,.05) 0 2px, transparent 2px 5px), #d8bf86;
  color: #2a1f12; box-shadow: 6px 8px 0 rgba(0,0,0,.55), inset 0 0 0 2px #b89b5c; transform: rotate(-1deg); font-family: var(--type); }
.dossier::before { content: ""; position: absolute; inset: 10px 10px auto auto; width: 70px; height: 3px; background: #b89b5c; }
.ds-tab { position: absolute; left: 18px; top: -26px; white-space: nowrap; height: 28px; padding: 6px 16px 0; background: #d8bf86; box-shadow: inset 2px 2px 0 #b89b5c, inset -2px 0 0 #b89b5c; font: 400 12px var(--type); letter-spacing: .12em; text-transform: uppercase; color: #5a4320; border-radius: 4px 4px 0 0; }
.ds-clip { position: absolute; right: 54px; top: -14px; width: 16px; height: 46px; border: 3px solid #9aa0a6; border-bottom: 0; border-radius: 8px 8px 0 0; box-shadow: 1px 1px 0 rgba(0,0,0,.4); }
.dossier .t-where { display: grid; grid-template-columns: 64px 1fr; gap: 3px 10px; margin: 0 0 16px; font: 400 14px var(--type); letter-spacing: .02em; text-transform: none; color: #2a1f12; text-shadow: none; align-items: baseline; }
.ds-h { margin: 0 0 8px; font: 400 25px var(--type); letter-spacing: .03em; color: #1a120a; text-transform: uppercase; }
.ds-k { font: 400 11px var(--type); letter-spacing: .14em; text-transform: uppercase; color: #7a6038; }
.ds-menu { border-top: 2px dashed rgba(90,67,32,.45); padding-top: 10px; }
.dossier .m { font: 400 25px var(--type); color: #2a1f12; text-shadow: none; padding: 4px 0 4px 26px; letter-spacing: .02em; position: relative; }
.dossier .m:hover, .dossier .m:focus-visible { color: #a8180f; text-shadow: none; }
.dossier .m:hover::before, .dossier .m:focus-visible::before { content: "\25B8"; position: absolute; left: 4px; margin: 0; width: auto; color: #a8180f; }
.dossier .t-sub { margin-top: 10px; gap: 18px; }
.dossier .t-sub button { font: 400 13px var(--type); letter-spacing: .06em; color: #5a4320; text-decoration: underline; text-decoration-color: rgba(90,67,32,.35); }
.dossier .t-sub button:hover { color: #a8180f; }
.dossier .t-keys { margin-top: 14px; grid-template-columns: 1fr 1fr; gap: 2px 14px; font: 400 12px var(--type); color: #4a3820; text-shadow: none; }
.dossier .t-keys kbd { min-width: 3.6em; font: 400 11px var(--hud); color: #1a120a; margin-right: 6px; }
.dossier .t-touch { color: #4a3820; text-shadow: none; font: 400 13px/1.45 var(--type); }
/* one line each, always */
.ds-h, .dossier .m, .dossier .t-sub button, .dossier .t-where span { white-space: nowrap; }
/* narrow or portrait windows: the sheet takes the middle, and the controls fold behind a tab */
.t-keys-btn { display: none; }
body.t-narrow #title { place-items: center; background: rgba(0,0,0,.45); }
body.t-narrow .dossier { margin-left: 0; }
body.t-narrow:not(.touch) .t-keys-btn { display: inline; }
body.t-narrow .dossier .t-keys { display: none; }
body.t-narrow:not(.touch) .dossier.keys-open .t-keys { display: grid; }

/* pause: you check the gold watch Hartwell gave the agency */
#pause { background: radial-gradient(ellipse at center, rgba(0,0,0,.35), rgba(0,0,0,.8)); }
.watch { position: relative; display: flex; flex-direction: column; align-items: center; zoom: var(--wz, 1); animation: wristup .28s steps(6) both; }
@keyframes wristup { 0% { transform: translateY(70vh) rotate(-8deg); } 100% { transform: none; } }
.w-strap { width: 300px; height: 70px; background: repeating-linear-gradient(90deg, #8a6a22 0 10px, #e8c86a 10px 12px, #b48a2e 12px 30px, #f5dc8a 30px 32px, #8a6a22 32px 40px); box-shadow: inset 0 6px 8px rgba(0,0,0,.35); }
.w-top { border-radius: 6px 6px 0 0; clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%); }
.w-bot { border-radius: 0 0 6px 6px; clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%); box-shadow: inset 0 -6px 8px rgba(0,0,0,.35); }
.w-case { position: relative; width: 470px; padding: 18px 22px 14px; border-radius: 38px; background: linear-gradient(150deg, #fff3b8 0%, #e8c25a 18%, #a37a22 48%, #e9c862 72%, #7a5a14 100%); box-shadow: inset 0 0 0 3px #6a4c10, inset 0 0 0 6px #f7e29a, 8px 10px 0 rgba(0,0,0,.6); }
.w-btn { position: absolute; width: 14px; height: 26px; background: linear-gradient(90deg, #7a5a14, #f2d27a, #7a5a14); border-radius: 3px; }
.w-b1 { left: -12px; top: 70px; } .w-b2 { left: -12px; bottom: 70px; } .w-b3 { right: -12px; top: 70px; } .w-b4 { right: -12px; bottom: 70px; }
.w-brand { display: flex; justify-content: space-between; align-items: baseline; padding: 0 14px 8px; font: 400 11px var(--hud); letter-spacing: .14em; text-transform: uppercase; color: #3a2a06; }
.w-brand b { font: 400 18px var(--hud); letter-spacing: .2em; font-weight: 400; color: #2a1c02; }
.w-foot { text-align: center; padding-top: 7px; font: 400 10px var(--hud); letter-spacing: .24em; text-transform: uppercase; color: #3a2a06; }
.w-lcd { position: relative; min-height: 270px; padding: 12px 18px 14px; border-radius: 10px; background: linear-gradient(180deg, #b7c49a, #9fae84); box-shadow: inset 0 0 0 4px #1d2310, inset 4px 6px 12px rgba(0,0,0,.35); color: #1a2210; font-family: var(--lcd); }
.w-lcd::after { content: ""; position: absolute; inset: 4px; border-radius: 7px; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0,0,0,.04) 0 1px, transparent 1px 3px); }
.w-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid rgba(26,34,16,.6); padding-bottom: 2px; margin-bottom: 6px; }
.w-head .p-h { font: 400 26px var(--lcd); letter-spacing: .12em; color: #1a2210; margin: 0; text-transform: uppercase; }
.w-round { font: 400 16px var(--lcd); letter-spacing: .1em; color: rgba(26,34,16,.75); text-transform: uppercase; margin: 0 0 4px; }
#w-clock { font: 400 30px var(--lcd); letter-spacing: .04em; }
.w-tabs { display: flex; gap: 4px; margin-bottom: 8px; }
.w-tabs button { flex: 1; cursor: pointer; background: none; border: 2px solid rgba(26,34,16,.55); padding: 1px 0; font: 400 19px var(--lcd); color: #1a2210; text-transform: uppercase; letter-spacing: .02em; }
.w-tabs button.on, .w-tabs button:hover, .w-tabs button:focus-visible { background: #1a2210; color: #b7c49a; outline: none; }
.w-page { display: none; } .w-page.on { display: block; }
.w-lcd .m { font: 400 30px var(--lcd); letter-spacing: .02em; color: #1a2210; text-shadow: none; padding: 1px 0 1px 22px; position: relative; text-transform: uppercase; }
.w-lcd .m:hover, .w-lcd .m:focus-visible { color: #1a2210; text-shadow: none; background: rgba(26,34,16,.14); }
.w-lcd .m:hover::before, .w-lcd .m:focus-visible::before { content: "\25B8"; position: absolute; left: 4px; margin: 0; width: auto; color: #1a2210; }
.w-lcd .p-sens { font: 400 24px var(--lcd); color: #1a2210; letter-spacing: .02em; padding-left: 22px; margin: 2px 0; }
.w-lcd .p-sens input { accent-color: #1a2210; width: 150px; }
.w-lcd .p-keys { font: 400 21px/1.15 var(--lcd); opacity: 1; max-width: none; margin: 0; }
#w-obj { margin: 0; padding: 0; list-style: none; counter-reset: ob; font: 400 21px/1.12 var(--lcd); }
#w-obj li { counter-increment: ob; display: grid; grid-template-columns: 22px 1fr auto; gap: 6px; padding: 2px 0; }
#w-obj li::before { content: counter(ob, lower-alpha) "."; }
#w-obj li em { font-style: normal; text-transform: uppercase; }
#w-obj li.done em { background: #1a2210; color: #b7c49a; padding: 0 4px; }
@media (max-height: 640px) { .watch { --wz: .78; } }
@media (max-height: 470px) { .watch { --wz: .6; } .w-strap { height: 40px; } }
@media (max-height: 360px) { .watch { --wz: .54; } .w-strap { height: 24px; } }
@media (max-width: 560px) { .watch { --wz: .7; } }

/* the 4:3 frame: black bars either side, the HUD inside the picture */
body.frame43 #hud { left: var(--f43, 0px); right: var(--f43, 0px); top: var(--f43y, 0px); bottom: var(--f43y, 0px); }
/* the briefing's captions in the HUD's face */
#op-card.cap { font: 400 clamp(16px, 1.9vw, 22px)/1.4 var(--hud); text-shadow: 2px 2px 0 #000, 0 0 18px rgba(0,0,0,.8); }
#op-card small { font: 400 12px var(--hud); }
#op-skip { font-family: var(--hud) !important; border-radius: 0 !important; }
#cap { bottom: 92px; }
#tut small { font: 400 11px var(--hud); letter-spacing: .04em; }

/* ---- watch an ad to continue: the mobile-game prompt and the rewarded ad (deliberately not N64: it's the interruption) */
#adoffer { z-index: 14; background: radial-gradient(ellipse at center, rgba(20,0,0,.55), rgba(0,0,0,.88)); }
.ao-box { width: min(360px, 88vw); display: grid; justify-items: center; gap: 12px; padding: 22px 22px 16px; border-radius: 22px; text-align: center;
  background: linear-gradient(180deg, #2b2f6b, #171a3d); box-shadow: 0 0 0 4px #ffd84a, 0 0 0 8px #10122b, 0 18px 50px rgba(0,0,0,.6); font-family: "Inter Tight", var(--deck); color: #fff;
  animation: aopop .32s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes aopop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.ao-h { font: 800 15px "Inter Tight", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #ff8a7a; }
.ao-ring { position: relative; width: 112px; height: 112px; }
.ao-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ao-ring circle { fill: none; stroke-width: 10; }
.ao-track { stroke: rgba(255,255,255,.14); }
.ao-prog { stroke: #ffd84a; stroke-linecap: round; transition: stroke-dashoffset .05s linear; }
.ao-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 900 46px "Inter Tight", sans-serif; color: #fff; text-shadow: 0 3px 0 rgba(0,0,0,.35); }
.ao-q { font: 900 34px/1 "Inter Tight", sans-serif; letter-spacing: -.01em; }
.ao-watch { cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 18px; border: 0; border-radius: 16px; color: #fff; text-align: left;
  background: linear-gradient(180deg, #5fe36a, #22a832); box-shadow: inset 0 -5px 0 rgba(0,0,0,.22), 0 5px 0 #127020, 0 10px 18px rgba(0,0,0,.35); animation: aopulse 1s ease-in-out infinite; }
.ao-watch:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@keyframes aopulse { 50% { transform: scale(1.04); } }
.ao-play { width: 42px; height: 42px; border-radius: 50%; background: #fff; position: relative; flex: none; }
.ao-play::after { content: ""; position: absolute; left: 16px; top: 12px; border: 9px solid transparent; border-left: 14px solid #22a832; border-right: 0; }
.ao-txt b { display: block; font: 900 22px "Inter Tight", sans-serif; text-shadow: 0 2px 0 rgba(0,0,0,.25); }
.ao-txt small { display: flex; align-items: center; gap: 5px; font: 700 14px "Inter Tight", sans-serif; color: #eaffea; }
.ao-txt svg, .ad-pill svg, .add-box svg { width: 15px; height: 15px; fill: #ff4d6d; flex: none; }
.ao-fine { font: 500 13px/1.4 "Inter Tight", sans-serif; color: rgba(255,255,255,.7); max-width: 30ch; }
.ao-no { cursor: pointer; background: none; border: 0; padding: 4px 10px; font: 600 13px "Inter Tight", sans-serif; color: rgba(255,255,255,.5); text-decoration: underline; }
.ao-no:hover, .ao-no:focus-visible { color: #fff; }
@media (prefers-reduced-motion: reduce) { .ao-box, .ao-watch { animation: none; } }

#ad { z-index: 16; background: #000; display: block; font-family: "Inter Tight", var(--deck); color: #fff; }
#ad-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.ad-top { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: linear-gradient(rgba(0,0,0,.55), transparent); }
.ad-tag { font: 800 12px "Inter Tight", sans-serif; background: #ffd84a; color: #111; border-radius: 4px; padding: 2px 6px; }
.ad-who { font: 600 14px "Inter Tight", sans-serif; opacity: .9; flex: 1; }
.ad-pill { display: flex; align-items: center; gap: 6px; font: 600 14px "Inter Tight", sans-serif; background: rgba(255,255,255,.92); color: #111; border-radius: 999px; padding: 6px 12px; }
.ad-pill b { font-weight: 900; font-variant-numeric: tabular-nums; }
#ad.granted .ad-pill { background: #22a832; color: #fff; }
#ad.granted .ad-pill svg { fill: #fff; }
.ad-x { cursor: pointer; min-width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(255,255,255,.22); color: #fff; font: 700 16px "Inter Tight", sans-serif; padding: 0 12px; }
.ad-x.go { background: #fff; color: #111; }
.ad-x:focus-visible, .ad-more:focus-visible, .ad-go:focus-visible, .adc-box button:focus-visible { outline: 3px solid #ffd84a; outline-offset: 2px; }
.ad-tap { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); cursor: pointer; border: 0; border-radius: 999px; padding: 14px 24px; font: 800 18px "Inter Tight", sans-serif; background: #fff; color: #111; }
.ad-bot { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 16px 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); display: grid; gap: 10px; }
.ad-card { justify-self: start; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,.95); color: #111; border-radius: 12px; padding: 8px 8px 8px 8px; max-width: min(460px, 100%); }
.ad-card img { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; background: #222; flex: none; }
.ad-film { display: grid; min-width: 0; font: 500 12px/1.25 "Inter Tight", sans-serif; color: #555; }
.ad-film b { font: 800 14px "Inter Tight", sans-serif; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ad-more { cursor: pointer; border: 0; border-radius: 8px; background: #1a73e8; color: #fff; font: 700 13px "Inter Tight", sans-serif; padding: 9px 12px; white-space: nowrap; }
.ad-bar { height: 4px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.ad-bar i { display: block; height: 100%; width: 0; background: #ffd84a; }
.ad-confirm, .ad-done { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); }
.adc-box, .add-box { width: min(320px, 86vw); background: #fff; color: #111; border-radius: 16px; padding: 20px; display: grid; gap: 10px; text-align: center; }
.adc-box b, .add-box b { font: 900 22px "Inter Tight", sans-serif; }
.adc-box p, .add-box p { margin: 0; font: 500 15px "Inter Tight", sans-serif; color: #444; }
.adc-box button, .ad-go { cursor: pointer; border: 0; border-radius: 10px; padding: 11px; font: 800 15px "Inter Tight", sans-serif; }
.adc-keep, .ad-go { background: #22a832; color: #fff; }
.adc-close { background: #eee; color: #444; }
.add-box svg { width: 40px; height: 40px; justify-self: center; }
#cap span { color: #fff; }
/* the deck's header keeps "The deck" on one line; on a narrow screen the client line goes above it */
.d-h { flex-wrap: wrap; row-gap: 4px; }
.d-h b, .d-h span, .d-x { white-space: nowrap; }
@media (max-width: 520px) { .d-h span { flex-basis: 100%; } .d-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }

/* the clients at the table, top middle while they're in danger */
#clients { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; gap: 10px; opacity: 0; transition: opacity .3s; }
#clients.on { opacity: 1; }
#clients div { width: 92px; padding: 4px 6px 5px; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.2); display: grid; gap: 3px; }
#clients b { font: 400 12px var(--hud); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
#clients i { display: block; height: 6px; background: rgba(255,255,255,.15); }
#clients u { display: block; height: 100%; background: #7ed06a; transition: width .2s; }
#clients div.hit { border-color: #ff4a3a; animation: blink .3s steps(2) infinite; }
#clients div.hit u { background: #ff4a3a; }
#clients div.out { opacity: .55; } #clients div.out b { text-decoration: line-through; }
body.touch #clients { top: 54px; }

/* the credits at the end of the pitch (ui/credits.js): every project pitched, with its real credits, rolling up */
#credits { position: absolute; inset: 0; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, rgba(4,4,6,.86), rgba(4,4,6,.7) 50%, rgba(4,4,6,.86)); opacity: 0; transition: opacity .9s; z-index: 6; }
#credits.on { opacity: 1; }
.cr-roll { position: absolute; left: 0; right: 0; top: 0; text-align: center; will-change: transform; padding: 0 16px; }
.cr-title { font: 400 54px var(--hud); letter-spacing: .12em; text-transform: uppercase; color: #fff; text-shadow: 3px 3px 0 #000; }
.cr-sub { font: 400 17px var(--hud); letter-spacing: .08em; color: rgba(255,255,255,.7); margin: 6px 0 70px; text-transform: uppercase; }
.cr-p { margin: 0 auto 46px; max-width: 640px; }
.cr-client { font: 400 13px var(--hud); letter-spacing: .22em; color: var(--gold); text-transform: uppercase; }
.cr-name { font: 400 30px var(--hud); letter-spacing: .06em; color: #fff; text-transform: uppercase; text-shadow: 2px 2px 0 #000; margin: 2px 0 8px; }
.cr-row { font: 400 15px/1.5 var(--deck); color: rgba(255,255,255,.86); }
.cr-row span { display: inline-block; min-width: 9em; text-align: right; margin-right: 14px; font: 400 12px var(--hud); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.cr-row b { font-weight: 400; display: inline-block; text-align: left; min-width: 14em; max-width: 30em; }
.cr-end { font: 400 40px var(--hud); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin: 90px 0 40vh; text-shadow: 3px 3px 0 #000; }
.cr-skip { position: absolute; right: 22px; bottom: 18px; font: 400 13px var(--hud); letter-spacing: .08em; color: rgba(255,255,255,.55); }
.cr-skip kbd { font: 600 12px var(--hud); padding: 0 6px; border: 1px solid rgba(255,255,255,.5); margin-right: 4px; }
body.touch .cr-skip { display: none; }
@media (max-width: 700px) { .cr-title { font-size: 36px; } .cr-name { font-size: 22px; } .cr-row span { min-width: 0; display: block; text-align: center; margin: 4px 0 0; } .cr-row b { min-width: 0; text-align: center; } }
/* phones (touch): the objective, the caption and the tip stack in one column under the Deck and pause buttons, clear of
   the thumbs' controls, instead of all sitting on the same band at the top (they overlapped in landscape) */
body.touch #cap { top: 118px; bottom: auto; left: 160px; transform: none; width: min(46vw, 520px); text-align: left; font-size: 15px; }
body.touch #tip { top: 176px; left: 160px; transform: none; max-width: min(46vw, 520px); text-align: left; white-space: normal; font-size: 13px; }
@media (orientation: portrait) { body.touch #cap, body.touch #tip { left: 16px; width: auto; right: 16px; max-width: none; } }
/* the break waits for the spot: a quiet line above the round tally */
#cue { position: absolute; left: 24px; bottom: 120px; font: 400 14px var(--hud); letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.72); text-shadow: 2px 2px 0 #000; opacity: 0; transition: opacity .6s; pointer-events: none; white-space: nowrap; }
#cue.on { opacity: 1; }
#cue::before { content: "\25B6"; color: var(--gold); margin-right: 8px; font-size: 11px; }
body.touch #cue { bottom: auto; top: 12px; left: 50%; transform: translateX(-50%); font-size: 12px; }

