@font-face { font-family: "Silkscreen"; src: url(fonts/Silkscreen-Regular.ttf); }
@font-face { font-family: "Silkscreen"; font-weight: 700; src: url(fonts/Silkscreen-Bold.ttf); }
@font-face { font-family: "Pixelify Sans"; font-weight: 400 700; src: url(fonts/PixelifySans-VF.ttf); }
@font-face { font-family: "Press Start 2P"; src: url(fonts/PressStart2P-Regular.ttf); }
@font-face { font-family: "VT323"; src: url(fonts/VT323-Regular.ttf); }

/* Palette lifted from the Steam store */
:root {
  --s-black: #0e1117;
  --s-top: #171a21;
  --s-bg: #1b2838;
  --s-bg2: #213247;
  --s-slate: #2a475e;
  --s-steel: #4b6a88;
  --s-txt: #c7d5e0;
  --s-dim: #8f98a0;
  --s-label: #556772;
  --s-link: #66c0f4;
  --s-bright: #1a9fff;
  --s-tagbg: rgba(103, 193, 245, .2);
  --s-tagtx: #67c1f5;
  --s-cart1: #75b022;
  --s-cart2: #588a1b;
  --s-carttx: #d2efa9;
  --s-disc: #4c6b22;
  --s-disctx: #beee11;
  --paper: #cdd7df;
  --paper-dk: #9fb0bf;
  --ink: #141c26;
  --red: #b3352c;
  --flag: #ff4b3a;
}

* { box-sizing: border-box; font-variant-ligatures: none !important; font-feature-settings: "liga" 0, "clig" 0 !important; }
html, body {
  margin: 0; height: 100%; background: #07090c; overflow: hidden;
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
body { font-family: "VT323", monospace; font-variant-ligatures: none; color: var(--ink); }
button { font: inherit; cursor: pointer; }
img, .px { image-rendering: pixelated; }
.hidden { display: none !important; }

#frame { position: fixed; inset: 0; }
#stage {
  position: absolute; left: 50%; top: 50%; width: 512px; height: 512px;
  transform-origin: center center; overflow: hidden; background: var(--s-black);
}

/* ---------- HUD (Steam top bar) ---------- */
#hud {
  position: absolute; left: 0; top: 0; width: 512px; height: 20px; z-index: 5;
  background: var(--s-top); color: var(--s-txt); font: 8px/20px "Silkscreen";
  display: flex; justify-content: space-between; padding: 0 8px; letter-spacing: .5px;
  border-bottom: 1px solid #000;
}
#hud .hud-l { display: flex; align-items: center; gap: 5px; }
#hud .hud-l b { color: var(--s-link); font-weight: 400; text-decoration: underline; text-underline-offset: 2px; }
#hud .hud-c { color: var(--s-dim); }
#hud .hud-r { color: var(--s-dim); }
#hud .hud-r b { color: #fff; font: 8px "Press Start 2P"; background: var(--s-slate); padding: 1px 4px; }
#hud b.bump { animation: bump .5s; }
@keyframes bump { 0% { background: var(--red); } 100% { background: var(--s-slate); } }

/* ---------- SCENE ---------- */
#scene { position: absolute; left: 0; top: 20px; width: 512px; height: 150px; overflow: hidden; background: var(--s-top); }
#booth {
  position: absolute; left: 0; top: 0; width: 232px; height: 150px; overflow: hidden;
  background: #121a24 url(assets/booth_wall.png) center / 232px auto;
  image-rendering: pixelated;
}
#booth::after { /* light shaft */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 55%, rgba(102,192,244,.06) 55% 72%, transparent 72%);
}
#queue-view {
  position: absolute; left: 238px; top: 6px; right: 6px; bottom: 18px; overflow: hidden;
  background: #2a3a4c url(assets/scene_queue.png) left 70% / cover; image-rendering: pixelated;
  border: 3px solid #0b0f14; box-shadow: inset 0 0 0 1px var(--s-slate), inset 0 0 30px rgba(0,0,0,.6);
}
#queue-view::after {
  content: "QUEUE CAM 2"; position: absolute; left: 4px; top: 3px; font: 8px "Silkscreen"; color: #e04a3a;
  text-shadow: 1px 1px 0 #000; animation: blink 1.6s steps(2) infinite;
}
#queue-view .scan {
  position: absolute; inset: 0; pointer-events: none; opacity: .25;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.6) 0 1px, transparent 1px 3px);
}
#post { position: absolute; left: 232px; top: 0; width: 6px; height: 150px; background: #0b0f14; border-left: 1px solid var(--s-slate); }

#applicant {
  position: absolute; left: 41px; bottom: 10px; width: 150px; height: 150px;
  transition: transform .45s cubic-bezier(.3,1.3,.6,1), opacity .35s; z-index: 2;
}
#applicant.out { transform: translateY(40px); opacity: 0; }
#applicant.leave { transform: translateX(-200px); opacity: 0; transition: transform .5s ease-in, opacity .5s; }
#applicant img { width: 150px; height: 150px; display: block; }
#applicant.bob img { animation: bob 3s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(2px); } }
#applicant.skeleton img { animation: rattle 3s infinite; }
@keyframes rattle { 0%,90%,100% { transform: none; } 92% { transform: translateX(-2px); } 95% { transform: translateX(2px); } }

#counter-ledge {
  position: absolute; left: 0; width: 232px; bottom: 0; height: 18px; z-index: 4;
  background:
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(0,0,0,.25) 3px 4px) left / 34px 100% no-repeat,
    repeating-linear-gradient(90deg, transparent 0 3px, rgba(0,0,0,.25) 3px 4px) right / 34px 100% no-repeat,
    linear-gradient(#5d7a93 0 2px, #3e5a73 2px 9px, #2a3f53 9px 16px, #172331 16px);
  border-top: 1px solid #8fb0c9;
}
#counter-ledge::after { content: ""; position: absolute; left: 60px; right: 60px; top: 9px; height: 3px; background: #0b0f14; }

#bubble {
  position: absolute; left: 172px; top: 8px; max-width: 300px; z-index: 6;
  background: #e6edf2; border-radius: 4px; padding: 4px 8px 5px;
  font: 16px/1.15 "VT323"; color: #111821; cursor: pointer;
  box-shadow: 0 2px 0 rgba(0,0,0,.6);
}
#bubble .who { display: block; font: 8px "Silkscreen"; color: #4b6a88; margin-bottom: 1px; }

#ticket {
  position: absolute; right: 12px; bottom: 24px; width: 104px; z-index: 6;
  background: var(--paper); padding: 4px 6px; transform: rotate(2deg);
  font: 8px/1.35 "Silkscreen"; color: #24303d; box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
#ticket b { display: block; font: 10px/1.5 "Press Start 2P"; color: var(--red); }
#ticket.long b { animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .5; } }

#queue-pop {
  position: absolute; right: 24px; top: 52px; z-index: 7; font: 12px "Silkscreen"; color: #ff7a5a;
  opacity: 0; text-shadow: 1px 1px 0 #000; pointer-events: none;
}
#queue-pop.good { color: #a4d007; }
#queue-pop.go { animation: pop 1.3s ease-out; }
@keyframes pop { 0% { opacity: 0; transform: translateY(10px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-30px); } }

/* ---------- DESK ---------- */
#desk {
  position: absolute; left: 0; top: 170px; width: 512px; height: 342px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 2px, transparent 2px 6px),
    linear-gradient(#141c26, #0f151d);
  box-shadow: inset 0 6px 8px rgba(0,0,0,.6);
}
#side { position: absolute; left: 8px; top: 10px; width: 108px; bottom: 8px; display: flex; flex-direction: column; gap: 8px; }

.book {
  position: relative; height: 66px; border: 2px solid #05080c;
  background: linear-gradient(90deg, #12202e 0 9px, var(--s-slate) 9px); color: var(--s-txt);
  box-shadow: 3px 3px 0 rgba(0,0,0,.6), inset -3px 0 0 #1d3447; padding: 0 0 0 9px;
  font: 10px/1.2 "Silkscreen"; text-align: center;
}
.book:hover { filter: brightness(1.15); }
.book-title { display: block; border: 1px solid var(--s-link); margin: 0 9px; padding: 4px 0; }
.book-badge {
  position: absolute; right: -6px; top: -6px; background: var(--red); color: #fff; font: 8px "Silkscreen";
  padding: 2px 3px; border: 1px solid #000; animation: blink .8s steps(2) infinite;
}

#tally {
  background: var(--paper); padding: 4px 6px; font: 8px/1.7 "Silkscreen"; color: var(--ink);
  box-shadow: 2px 2px 0 rgba(0,0,0,.5);
}
#tally div { display: flex; justify-content: space-between; }
#tally b { font: 8px/1.6 "Press Start 2P"; color: var(--red); }

#stamps { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.stamp {
  height: 52px; border: 0; border-radius: 2px; font: 12px "Silkscreen";
  box-shadow: 0 4px 0 #05080c; position: relative; top: 0;
  transition: top .06s, box-shadow .06s; letter-spacing: 1px; line-height: 1;
}
.stamp small { display: block; font-size: 7px; opacity: .8; margin-top: 2px; letter-spacing: 0; }
.stamp:active, .stamp.down { top: 4px; box-shadow: 0 0 0 #000; }
.stamp.approve { background: linear-gradient(90deg, var(--s-cart1) 5%, var(--s-cart2) 95%); color: var(--s-carttx); }
.stamp.reject { background: linear-gradient(90deg, #c8463a, #8f2b23); color: #ffd9d2; }
.stamp:hover:not(:disabled) { filter: brightness(1.15); }
.stamp.armed { outline: 2px dashed #ffd34a; outline-offset: 2px; animation: blink .6s steps(2) infinite; }
.stamp:disabled { filter: grayscale(.7) brightness(.55); cursor: default; }

/* ---------- STEAM PAGE DOCUMENT ---------- */
#doc-slot { position: absolute; left: 124px; top: 8px; width: 380px; height: 326px; }
#doc {
  position: absolute; inset: 0; overflow: hidden;
  background: radial-gradient(120% 60% at 50% 0%, #2a4763 0%, var(--s-bg) 60%);
  border: 1px solid #000; box-shadow: 4px 5px 0 rgba(0,0,0,.6); color: var(--s-txt);
  transition: transform .45s cubic-bezier(.3,1.2,.5,1), opacity .3s;
}
#doc.away { transform: translateY(380px) rotate(6deg); opacity: 0; }
#doc.gone { transform: translateX(420px) rotate(10deg); opacity: 0; transition: transform .45s ease-in, opacity .45s; }

.d-nav {
  height: 15px; background: var(--s-top); display: flex; gap: 8px; align-items: center; padding: 0 7px;
  font: 8px "Silkscreen"; color: var(--s-txt);
}
.d-nav .on { color: var(--s-bright); text-decoration: underline; }
.d-nav .sp { flex: 1; }
.d-nav .pill { background: var(--s-cart2); color: var(--s-carttx); padding: 0 4px; }
.d-inner { padding: 4px 8px 6px; }
.d-crumb { font: 11px/1.1 "VT323"; color: var(--s-dim); }
.d-title { font: 700 18px/1.15 "VT323"; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.d-body { display: flex; gap: 8px; }
.d-left { width: 204px; flex: none; }
.d-right { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lbl { font: 8px "Silkscreen"; color: #6b8394; margin: 3px 0 2px; letter-spacing: .5px; }

.el { position: relative; cursor: zoom-in; outline: 1px solid transparent; transition: outline-color .15s; }
.el:hover { outline: 1px solid var(--s-link); }
#doc.picking .el { cursor: crosshair; }
#doc.picking .el:hover { outline: 2px solid var(--flag); box-shadow: 0 0 0 3px rgba(255,75,58,.3); }
.el.flagged { outline: 2px solid var(--flag) !important; }

.capsule { position: relative; overflow: hidden; background: #000 center / cover no-repeat; image-rendering: pixelated; }
.logo { position: absolute; line-height: .95; text-align: center; white-space: pre-line; pointer-events: none; }
.badge-goty {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 50%; background: radial-gradient(#ffe38a, #d4a020 70%); color: #3b2500;
  border: 2px dashed #7a5600; font-family: "Silkscreen"; text-align: center; line-height: 1;
  box-shadow: 0 0 0 2px #ffe38a, 2px 3px 0 rgba(0,0,0,.4); transform: rotate(12deg);
}
.badge-goty small { font-family: "VT323"; opacity: .8; }

.media .main { display: block; background: #000 center / cover no-repeat; image-rendering: pixelated; }
.media .strip { display: flex; gap: 3px; margin-top: 3px; background: rgba(0,0,0,.3); padding: 2px; }
.shot { flex: none; background: #000 center / cover no-repeat; image-rendering: pixelated; }
.media .strip .shot { border: 1px solid transparent; }
.media .strip .shot:first-child { border-color: #fff; }
.media .strip .ph { flex: none; background: #0f1822; }

.desc-text { font: 13px/1.12 "VT323"; color: var(--s-txt); padding: 1px 0; }
.rows { font: 12px/1.3 "VT323"; }
.rows .r { display: flex; gap: 4px; }
.rows .k { color: #6b8394; font: 11px/1.45 "VT323"; width: 64px; flex: none; text-transform: uppercase; }
.rows .v { color: var(--s-link); }
.rows .v.plain { color: var(--s-txt); }
.tags { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 3px; }
.tag { background: var(--s-tagbg); color: var(--s-tagtx); font: 11.5px/1.1 "VT323"; padding: 0 3px; border-radius: 2px; }
.tagcap { display: none; font: 11px "VT323"; color: #6b8394; margin-top: 2px; }
.big-rows .tagcap { display: block; font-size: 15px; }

.buy {
  margin-top: 4px; position: relative; height: 30px; border-radius: 3px;
  background: linear-gradient(-60deg, rgba(226,244,255,.2) 5%, rgba(84,107,115,.2) 95%);
  padding: 3px 6px; font: 13px "VT323"; color: #fff;
}
.buy .cart { position: absolute; right: 5px; bottom: 3px; display: flex; border: 2px solid #000; }
.buy .price { background: #000; color: var(--s-txt); font: 13px/16px "VT323"; padding: 0 5px; }
.buy .add { background: linear-gradient(90deg, var(--s-cart1) 5%, var(--s-cart2) 95%); color: var(--s-carttx); font: 13px/16px "VT323"; padding: 0 6px; }

/* stamp ink on the document */
.ink {
  position: absolute; left: 50%; top: 46%; z-index: 9; pointer-events: none;
  font: 30px/1 "Silkscreen"; padding: 6px 12px; border: 5px solid currentColor; border-radius: 6px;
  transform: translate(-50%, -50%) rotate(var(--rot, -14deg)) scale(2.4); opacity: 0;
  animation: slam .22s cubic-bezier(.5,0,.8,.4) forwards;
  background: rgba(0,0,0,.25); letter-spacing: 2px; white-space: nowrap; text-align: center;
}
.ink small { display: block; font-size: 10px; letter-spacing: 1px; }
.ink.approve { color: #a4d007; }
.ink.reject { color: #ff4636; }
@keyframes slam { 70% { transform: translate(-50%, -50%) rotate(var(--rot, -14deg)) scale(.92); opacity: .95; } to { transform: translate(-50%, -50%) rotate(var(--rot, -14deg)) scale(1); opacity: .92; } }

#pick-hint {
  position: absolute; left: 50%; top: -6px; transform: translateX(-50%); z-index: 10;
  background: var(--red); color: #fff; font: 8px "Silkscreen"; padding: 3px 6px; border: 1px solid #000;
  white-space: nowrap; cursor: pointer; animation: blink .8s steps(2) infinite;
}

/* result slip */
#slip {
  position: absolute; right: 12px; bottom: 10px; width: 262px; z-index: 12;
  background: var(--paper); padding: 7px 9px 8px; color: var(--ink);
  box-shadow: 3px 4px 0 rgba(0,0,0,.6); font: 15.5px/1.2 "VT323";
}
@keyframes slipin { from { transform: translateY(40px) rotate(4deg); opacity: 0; } }
#slip.cite { background: #e8b3aa; }
#slip-time { font: 8px/1.5 "Silkscreen"; color: #3b4c5c; border-bottom: 1px dashed #6d8194; padding-bottom: 4px; margin-bottom: 4px; }
#slip-time b { color: var(--red); font: 8px "Press Start 2P"; }
#slip-msg { min-height: 26px; }
#next-btn {
  float: right; margin-top: 4px; background: var(--s-top); color: var(--s-link); border: 0; padding: 4px 10px;
  font: 9px "Silkscreen";
}
#next-btn:hover { background: #000; }

/* ---------- OVERLAYS ---------- */
#overlay {
  position: absolute; inset: 0; z-index: 50; background: rgba(5,8,12,.78);
  display: grid; place-items: center; animation: fadein .2s;
}
@keyframes fadein { from { opacity: 0; } }
#overlay-inner { max-width: 488px; max-height: 496px; }

.sheet {
  background: var(--paper); padding: 12px 14px; box-shadow: 5px 6px 0 rgba(0,0,0,.6);
  font: 16px/1.25 "VT323"; position: relative; color: var(--ink);
}
.sheet h1, .sheet h2 { font-family: "Silkscreen"; font-weight: 400; margin: 0 0 6px; }
.sheet h2 { font-size: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 4px; }
.sheet p { margin: 6px 0; }
.btnrow { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
.btn {
  background: var(--s-slate); color: #fff; border: 0; padding: 6px 12px;
  font: 10px "Silkscreen"; box-shadow: 0 3px 0 #000;
}
.btn:hover { filter: brightness(1.15); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #000; }
.btn.red { background: linear-gradient(90deg, #c8463a, #8f2b23); }
.btn.green { background: linear-gradient(90deg, var(--s-cart1) 5%, var(--s-cart2) 95%); color: var(--s-carttx); }
.btn.blue { background: var(--s-bright); }

/* intro */
.intro {
  width: 430px; padding: 18px 20px; color: #fff; border: 1px solid #000;
  background: radial-gradient(120% 70% at 50% 0%, #2a4763 0%, var(--s-bg) 55%) var(--s-bg);
}
.intro .kicker { font: 8px "Silkscreen"; letter-spacing: 2px; color: var(--s-link); }
.intro h1 { font: 34px/1 "Silkscreen"; margin: 6px 0 2px; letter-spacing: 1px; color: #fff; }
.intro .sub { font: 9px "Silkscreen"; color: var(--s-txt); margin-bottom: 10px; }
.intro .seal {
  position: absolute; right: 16px; top: 18px; transform: rotate(10deg); border: 3px solid #ff6a5a; color: #ff6a5a;
  font: 9px/1.15 "Silkscreen"; padding: 3px 5px;
}
.intro p { font-size: 17px; line-height: 1.2; color: var(--s-txt); }
.intro p b { color: #fff; }
.intro .btnrow { justify-content: flex-start; }
.intro .tiny { font: 8px "Silkscreen"; color: rgba(199,213,224,.6); margin-top: 12px; }

/* memo */
.memo { width: 380px; }
.memo .stampmark { position: absolute; right: 12px; top: 10px; font: 9px "Silkscreen"; color: var(--red); border: 2px solid var(--red); padding: 2px 4px; transform: rotate(8deg); }
.memo .newrule { background: rgba(20,28,38,.08); border-left: 3px solid var(--red); padding: 4px 6px; margin: 4px 0; font-size: 16px; }
.memo .newrule b { font-family: "Silkscreen"; font-weight: 400; font-size: 9px; display: block; }

/* rulebook */
.rulebook { width: 420px; }
.rulebook .rule { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px dashed #6d8194; }
.rulebook .rule .n { font: 16px "Silkscreen"; color: var(--red); width: 22px; flex: none; }
.rulebook .rule b { font: 9px "Silkscreen"; font-weight: 400; display: block; }
.rulebook .rule.locked { opacity: .35; }
.rulebook .new { background: var(--red); color: #fff; font: 8px "Silkscreen"; padding: 1px 3px; margin-left: 4px; }

/* inspector */
.inspect { width: 488px; background: var(--s-bg); color: var(--s-txt); padding: 10px; border: 1px solid #000; }
.inspect h2 { color: #fff; border-color: var(--s-slate); font-size: 12px; }
.inspect .spec { font: 8px "Silkscreen"; color: var(--s-dim); float: right; margin-top: 3px; }
.inspect .stagebox { display: grid; place-items: center; padding: 6px 0; }
.inspect .rulehint { font: 15.5px/1.2 "VT323"; background: var(--s-top); border-left: 3px solid var(--s-link); padding: 5px 7px; margin-top: 6px; }
.inspect .rulehint b { font: 8px "Silkscreen"; font-weight: 400; color: var(--s-link); display: block; }
.inspect .big-desc { font: 19.5px/1.4 "VT323"; max-width: 440px; padding: 6px 4px; }
.inspect .big-rows { font: 18px/1.7 "VT323"; width: 420px; }
.inspect .big-rows .k { font: 10px/2.4 "Silkscreen"; width: 120px; }
.inspect .big-rows .tag { font-size: 15px; padding: 2px 6px; }
.inspect .shots-big { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }

/* report */
.report { width: 440px; font-size: 14px; }
.report .line { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px dotted #6d8194; padding: 3px 0; }
.report .line b { font: 8px/1.6 "Press Start 2P"; color: var(--red); }
.report .big { font: 15.5px/1.4 "VT323"; background: var(--s-bg); color: var(--s-txt); padding: 8px 10px; margin: 8px 0 4px; }
.report .big b { font: 10px "Press Start 2P"; color: #fff; }
.report .official { font: 9px "Silkscreen"; color: #3b4c5c; text-align: center; }
.report .rank { font: 9px "Silkscreen"; text-align: center; margin-top: 8px; color: #3b4c5c; }
.report .row2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }

/* ---------- juice ---------- */
#mute {
  background: var(--s-slate); color: var(--s-link); border: 0; font: 8px/12px "Silkscreen"; padding: 0 4px; height: 12px;
}
#mute:hover { background: var(--s-steel); color: #fff; }
.shake { animation: shake .28s linear; }
@keyframes shake {
  0% { transform: translate(0, 0); } 20% { transform: translate(calc(var(--sh) * -1), var(--sh)); }
  40% { transform: translate(var(--sh), calc(var(--sh) * -.5)); } 60% { transform: translate(calc(var(--sh) * -.5), calc(var(--sh) * .5)); }
  80% { transform: translate(calc(var(--sh) * .3), 0); } 100% { transform: translate(0, 0); }
}
.floater {
  position: absolute; left: 314px; top: 120px; z-index: 13; pointer-events: none; text-align: center;
  font: 18px "Press Start 2P"; color: #a4d007; text-shadow: 2px 2px 0 #000, -1px -1px 0 #000;
  background: rgba(14,17,23,.82); padding: 6px 10px 5px; border: 1px solid #a4d007;
  transform: translateX(-50%); animation: floatup 2.1s cubic-bezier(.2,.9,.3,1) forwards; white-space: nowrap;
}
.floater small { display: block; font: 8px "Silkscreen"; color: #fff; margin-top: 4px; letter-spacing: 1px; }
@keyframes floatup {
  0% { opacity: 0; transform: translate(-50%, 20px) scale(.6); } 12% { opacity: 1; transform: translate(-50%, 0) scale(1.15); }
  22% { transform: translate(-50%, 0) scale(1); } 75% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -40px) scale(1); }
}
#bubble.pop { animation: bubblepop .25s cubic-bezier(.3,1.6,.6,1); transform-origin: 0 50%; }
@keyframes bubblepop { from { transform: scale(.4); opacity: 0; } }
#ticket.drop { animation: ticketdrop .5s cubic-bezier(.3,1.5,.6,1); }
@keyframes ticketdrop { from { transform: translateY(-60px) rotate(-20deg); opacity: 0; } }
#slip.in { animation: slipin .3s ease-out; }
@keyframes slipin { from { transform: translateY(40px) rotate(4deg); opacity: 0; } }
#slip.print { animation: printout .9s steps(9) both; }
@keyframes printout { from { clip-path: inset(0 0 100% 0); transform: translateY(-20px); } to { clip-path: inset(0 0 0 0); transform: none; } }
#tally.flash { animation: tallyflash .7s steps(2) 2; }
@keyframes tallyflash { 50% { background: #e8b3aa; } }
.stamp:not(:disabled):hover { transform: translateX(2px); }
.sheet.enter { animation: sheetin .28s cubic-bezier(.3,1.4,.6,1); }
@keyframes sheetin { from { transform: translateY(24px) scale(.94); opacity: 0; } }
#hud b.bump { animation: bump .5s, qjolt .3s; }
@keyframes qjolt { 30% { transform: scale(1.3); } }
#doc .el { transition: outline-color .15s, transform .12s; }
#doc:not(.picking) .el:hover { transform: scale(1.015); z-index: 2; }

/* EARLY ACCESS ribbon on the hero */
.ribbon {
  position: absolute; transform: rotate(-5deg); background: #e3a817; white-space: nowrap; color: #1b1203; text-align: center;
  font-family: "Silkscreen"; box-shadow: 0 2px 0 rgba(0,0,0,.5); letter-spacing: 1px; pointer-events: none;
}

/* boss on directives */
.memo { width: 468px; display: flex; gap: 12px; align-items: flex-start; }
.memo-col { flex: 1; position: relative; }
.memo .stampmark { right: 0; top: 0; }
.boss { position: relative; width: 112px; flex: none; background: linear-gradient(#1b2838, #0e1117); padding: 6px 6px 0; box-shadow: inset 0 0 0 2px #0b0f14; }
.boss img { display: block; width: 100px; height: 100px; }
.boss-plate { margin: 0 -6px; background: var(--ink); color: var(--s-link); font: 8px/14px "Silkscreen"; text-align: center; letter-spacing: 1px; }
.twinkle {
  position: absolute; width: 7px; height: 7px; margin: -3px 0 0 -3px; pointer-events: none;
  background:
    linear-gradient(#fff, #fff) center / 1px 7px no-repeat,
    linear-gradient(#fff, #fff) center / 7px 1px no-repeat;
  animation: twinkle 1.4s steps(4) infinite; opacity: 0;
}
.twinkle:nth-child(3n) { filter: drop-shadow(0 0 1px #66c0f4); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3); } 40% { opacity: 1; transform: scale(1); } 60% { opacity: .8; transform: scale(.6) rotate(45deg); } }

/* report v2 */
.report { width: 470px; }
.report .big { font-size: 16px; line-height: 1.2; padding: 7px 10px; }
.report .vs-cap { font: 8px "Silkscreen"; color: var(--s-dim); margin: 8px 0 4px; }
.report .vs { display: flex; align-items: stretch; gap: 6px; }
.report .vs-box { flex: 1; background: var(--s-black); padding: 6px 8px; display: flex; flex-direction: column; gap: 3px; }
.report .vs-box span { font: 8px "Silkscreen"; color: var(--s-dim); }
.report .vs-box b { font: 13px/1.3 "Press Start 2P"; }
.report .vs-box b.g { color: #a4d007; }
.report .vs-box b.r { color: #ff6a5a; }
.report .vs-box small { font: 14px/1.1 "VT323"; color: var(--s-txt); }
.report .vs-box small.fn { color: var(--s-dim); }
.report .vs-x { align-self: center; font: 10px "Press Start 2P"; color: #fff; }
.report .official { font-size: 8px; line-height: 1.5; margin-top: 5px; }
.report .fn { opacity: .75; }
.report .rank { margin-top: 6px; }
.report .btnrow { justify-content: space-between; }
.btn.x { background: #000; }
