/* Back Shelf — 90s video store at night. Pixel fonts, chunky borders, VCR blue screen. */
@font-face { font-family: 'Pixelify'; src: url(fonts/PixelifySans.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url(fonts/Silkscreen-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Silkscreen'; src: url(fonts/Silkscreen-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'VT323'; src: url(fonts/VT323-400.woff2) format('woff2'); font-display: swap; }

:root {
  --night: #120d1a; --ink: #1b1424; --plum: #2a1d3a; --plum2: #3d2a54; --plum3: #5a3f78;
  --cream: #f6edd7; --paper: #efe3c4; --yellow: #ffc93c; --yellow2: #d99a1e; --red: #e8473a; --red2: #a92f27;
  --teal: #2a8a8f; --tealL: #7fe3d5; --blue: #2b45c4; --blue2: #1c2f8f; --blueL: #9fb0ff; --violet: #a77bff; --tan: #c9a46b;
  --grey: #8d90a6; --grey3: #bfc2d1; --beige: #cfc4a8; --beige2: #a99d82;
  --t-L: #e8473a; --t-P: #f6edd7; --t-B: #bfc2d1; --t-M: #7fe3d5; --t-S: #a77bff; --t-D: #c9a46b; --t-K: #ffc93c; --t-F: #ff8fa3;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--night); color: var(--cream); font-family: 'Pixelify', ui-monospace, monospace;
  font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'clig' 0; }
input, button { font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'clig' 0; }
body { min-height: 100dvh; background-color: var(--night); background-size: 96px 96px; }
#app { max-width: 440px; margin: 0 auto; min-height: 100dvh; background: var(--ink); position: relative; overflow-x: hidden;
  box-shadow: 0 0 0 4px var(--night), 0 0 60px rgba(0,0,0,.6); }
canvas.px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; width: 100%; }
button { font: inherit; color: inherit; }
.screen { display: none; padding-bottom: 28px; }
.screen.on { display: block; }
.hidden { display: none !important; }

/* buttons */
.btn { display: block; width: 100%; font-family: 'Silkscreen', monospace; font-weight: 700; font-size: 18px; letter-spacing: 1.5px;
  text-transform: uppercase; background: var(--yellow); color: var(--ink); border: 3px solid var(--ink); padding: 14px 16px 15px;
  box-shadow: inset -4px -4px 0 var(--yellow2), 0 5px 0 var(--ink); cursor: pointer; transition: transform .04s; }
.btn:active { transform: translateY(4px); box-shadow: inset -4px -4px 0 var(--yellow2), 0 1px 0 var(--ink); }
.btn.alt { background: var(--plum2); color: var(--cream); box-shadow: inset -4px -4px 0 var(--plum), 0 5px 0 var(--ink); border-color: var(--plum3); }
.btn.small { font-size: 14px; padding: 10px 12px 11px; }
.link { background: none; border: 0; padding: 4px 2px; font-family: 'Silkscreen', monospace; font-size: 13px; color: var(--tealL);
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.icon-btn { background: var(--plum); border: 2px solid var(--plum3); color: var(--cream); width: 34px; height: 30px; cursor: pointer;
  font-family: 'Silkscreen', monospace; font-size: 14px; display: grid; place-items: center; padding: 0; }
.icon-btn.off { opacity: .45; }

/* ---------- home */
#hero { height: auto; }
.home-body { padding: 14px 18px 0; text-align: center; }
.tagline { font-family: 'Pixelify', monospace; font-weight: 600; font-size: 28px; line-height: 1.1; margin: 6px 0 8px; color: var(--cream);
  text-shadow: 3px 3px 0 var(--plum2); text-wrap: balance; }
.rules { font-family: 'VT323', monospace; font-size: 22px; line-height: 1.15; color: var(--grey3); margin: 0 0 16px; text-wrap: balance; }
.home-meta { margin: 14px 0 6px; font-family: 'Silkscreen', monospace; font-size: 12px; color: var(--grey); display: flex; gap: 8px;
  justify-content: center; align-items: center; flex-wrap: wrap; }
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0 10px; }
.rung { display: flex; align-items: center; gap: 6px; background: var(--plum); border: 2px solid var(--plum2); padding: 5px 6px;
  font-family: 'Silkscreen', monospace; font-weight: 400; font-size: 10px; letter-spacing: .5px; text-align: left; line-height: 1.15; }
.rung canvas { width: 18px; height: 18px; flex: none; }
.rung b { display: block; font-size: 12px; font-weight: 400; }
.proto-note { font-family: 'VT323', monospace; font-size: 17px; color: var(--grey); margin: 14px 4px 0; line-height: 1.15; }

/* ---------- game HUD */
.hud { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; background: var(--night);
  border-bottom: 3px solid var(--plum2); position: sticky; top: 0; z-index: 5; }
.slots { display: flex; gap: 5px; }
.slot { width: 24px; height: 15px; border: 2px solid var(--plum3); background: var(--ink); position: relative; }
.slot::after { content: ''; position: absolute; left: 5px; right: 5px; top: 3px; height: 5px; border: 2px solid var(--plum2); border-radius: 3px; }
.slot.cur { border-color: var(--yellow); animation: pulse 1s steps(2) infinite; }
.slot[data-t] { border-color: var(--ink); }
.slot[data-t]::after { border-color: rgba(0,0,0,.35); }
.slot[data-t="L"] { background: var(--t-L); } .slot[data-t="P"] { background: var(--t-P); } .slot[data-t="B"] { background: var(--t-B); }
.slot[data-t="M"] { background: var(--t-M); } .slot[data-t="S"] { background: var(--t-S); } .slot[data-t="D"] { background: var(--t-D); }
.slot[data-t="K"] { background: var(--t-K); }
.counter { font-family: 'Silkscreen', monospace; font-weight: 700; font-size: 20px; letter-spacing: 3px; background: #0b0710; color: var(--red);
  padding: 3px 7px 2px; border: 2px solid var(--plum3); text-shadow: 0 0 8px rgba(232,71,58,.7); min-width: 74px; text-align: center; }
.counter.bump { animation: bump .35s steps(3); }
@keyframes pulse { 50% { border-color: var(--plum3); } }
@keyframes bump { 50% { transform: scale(1.15); color: var(--yellow); } }

/* ---------- the TV with the VCR blue screen */
.tv { margin: 12px 12px 0; background: var(--beige); border: 3px solid var(--ink); border-radius: 14px; padding: 10px 10px 8px;
  box-shadow: inset -5px -5px 0 var(--beige2), inset 4px 4px 0 #e6dcc2, 0 5px 0 var(--ink); position: relative; }
.tv-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; font-family: 'Silkscreen', monospace;
  font-size: 10px; color: var(--beige2); letter-spacing: 2px; }
.tv-foot .led { width: 8px; height: 8px; background: var(--red); border: 2px solid var(--ink); box-shadow: 0 0 6px var(--red); }
.crt { position: relative; background: var(--blue); border: 3px solid var(--ink); border-radius: 16px / 12px; padding: 11px 13px 13px;
  overflow: hidden; min-height: 132px; box-shadow: inset 0 0 36px rgba(0,0,0,.5); }
.crt::before { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px); }
.crt::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.10), transparent 55%); }
.crt.static { animation: crtflick .25s steps(3); }
@keyframes crtflick { 0% { filter: brightness(2.2) contrast(.6); } 100% { filter: none; } }
.osd { display: flex; justify-content: space-between; align-items: baseline; font-family: 'Silkscreen', monospace; font-size: 14px;
  color: #fff; letter-spacing: 1px; text-shadow: 2px 2px 0 var(--blue2); position: relative; z-index: 1; }
.osd .time { font-size: 18px; }
.osd .time.urgent { color: var(--yellow); animation: blink .5s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.prompt-text { font-family: 'Pixelify', monospace; font-weight: 500; font-size: 27px; line-height: 1.12; color: #fff; margin: 9px 0 7px;
  text-shadow: 3px 3px 0 var(--blue2); position: relative; z-index: 1; text-wrap: pretty; }
.prompt-hint { font-family: 'VT323', monospace; font-size: 20px; line-height: 1.05; color: var(--blueL); position: relative; z-index: 1; }

/* ---------- search */
#answerArea { padding: 14px 12px 0; }
.search { display: flex; gap: 8px; }
.search input { flex: 1; min-width: 0; font-family: 'VT323', monospace; font-size: 26px; background: var(--night); color: var(--tealL);
  border: 3px solid var(--tealL); padding: 7px 10px 6px; caret-color: var(--yellow); outline: none; border-radius: 0; -webkit-appearance: none; }
.search input::placeholder { color: var(--teal); }
.search .btn { width: auto; flex: none; }
.results { list-style: none; margin: 0; padding: 0; border: 3px solid var(--tealL); border-top: 0; background: var(--night); }
.results:empty { display: none; }
.results li { display: flex; align-items: center; gap: 10px; padding: 7px 10px; cursor: pointer; border-top: 2px dashed rgba(127,227,213,.18); }
.results li:first-child { border-top: 0; }
.results li.sel, .results li:hover { background: var(--plum2); }
.results .spine { width: 9px; height: 30px; flex: none; border: 2px solid var(--ink); box-shadow: inset -2px 0 0 rgba(0,0,0,.3); }
.results .t { font-family: 'VT323', monospace; font-size: 23px; line-height: 1; color: var(--cream); }
.results .m { font-family: 'VT323', monospace; font-size: 18px; line-height: 1; color: var(--grey); margin-top: 2px; }
.msg { font-family: 'VT323', monospace; font-size: 21px; line-height: 1.1; color: var(--red); min-height: 24px; margin: 8px 2px 0; }
.msg.ok { color: var(--tealL); }
.shake { animation: shake .3s steps(4); }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

#scene { margin-top: 12px; border-top: 3px solid var(--plum2); border-bottom: 3px solid var(--plum2); }

/* ---------- result card */
#resultArea { padding: 12px 12px 0; }
.result { background: var(--night); border: 3px solid var(--tc, var(--cream)); padding: 12px 13px 13px; position: relative;
  box-shadow: 0 5px 0 var(--ink); animation: rise .25s steps(4); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.result .row { display: flex; align-items: center; gap: 10px; }
.result .badge { font-family: 'Silkscreen', monospace; font-weight: 700; font-size: 22px; letter-spacing: 1px; color: var(--tc); line-height: 1; flex: 1; }
.result .pts { font-family: 'Silkscreen', monospace; font-weight: 700; font-size: 22px; color: var(--tc); }
.result .ico { width: 27px; height: 27px; flex: none; }
.result .film { font-family: 'VT323', monospace; font-size: 28px; margin: 10px 0 2px; line-height: 1; color: #fff; }
.result .film small { color: var(--grey); font-size: 21px; }
.result .share { font-family: 'VT323', monospace; font-size: 20px; color: var(--grey3); }
.result .quip { font-family: 'VT323', monospace; font-size: 21px; line-height: 1.1; color: var(--cream); margin-top: 8px; }
.result .lb { font-family: 'Silkscreen', monospace; font-size: 11px; color: var(--tealL); letter-spacing: 1px; display: inline-block; margin-top: 8px; }
.staff-card { background: var(--cream); color: var(--ink); border: 3px solid var(--ink); padding: 10px 12px 12px; margin-top: 12px;
  transform: rotate(-1.2deg); box-shadow: 5px 5px 0 rgba(0,0,0,.45); font-family: 'VT323', monospace; font-size: 21px; line-height: 1.1; }
.staff-card .hdr { font-family: 'Silkscreen', monospace; font-weight: 700; font-size: 14px; color: var(--red); letter-spacing: 1px; margin-bottom: 4px; }
.staff-card .sig { text-align: right; color: var(--red2); margin-top: 6px; }
.zone-news { margin-top: 12px; padding: 9px 10px; background: var(--plum); border: 2px dashed var(--plum3); font-family: 'VT323', monospace; font-size: 20px; line-height: 1.1; color: var(--grey3); }
.zone-news b { display: block; font-family: 'Silkscreen', monospace; font-weight: 400; font-size: 13px; letter-spacing: 1px; color: var(--yellow); margin-bottom: 3px; }
.alts { font-family: 'VT323', monospace; font-size: 19px; color: var(--grey3); margin-top: 8px; line-height: 1.15; }
.next-wrap { padding: 16px 12px 0; }

/* ---------- receipt screen */
.rc-wrap { padding: 16px 14px 0; }
#rcCanvas { width: 100%; height: auto; filter: drop-shadow(6px 8px 0 rgba(0,0,0,.45)); }
#histCanvas { height: auto; }
.rc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.panel { background: var(--plum); border: 3px solid var(--plum2); padding: 12px; margin-top: 18px; }
.panel h3 { margin: 0 0 8px; font-family: 'Silkscreen', monospace; font-size: 16px; letter-spacing: 1px; color: var(--yellow); font-weight: 400; }
.panel p { margin: 4px 0; font-family: 'VT323', monospace; font-size: 20px; line-height: 1.1; color: var(--grey3); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.stats div { background: var(--ink); padding: 6px 2px; }
.stats b { display: block; font-family: 'Silkscreen', monospace; font-size: 20px; color: var(--cream); }
.stats span { font-family: 'Silkscreen', monospace; font-size: 9px; color: var(--grey); letter-spacing: 1px; }
details.shelf { background: var(--ink); border: 2px solid var(--plum2); margin-top: 8px; }
details.shelf summary { cursor: pointer; padding: 9px 10px; font-family: 'VT323', monospace; font-size: 20px; line-height: 1.05; color: var(--cream); list-style: none; }
details.shelf summary::-webkit-details-marker { display: none; }
details.shelf summary .you { display: block; color: var(--grey); font-size: 18px; }
details.shelf .body { padding: 0 10px 10px; }
.tierline { margin-top: 7px; font-family: 'VT323', monospace; font-size: 18px; line-height: 1.12; color: var(--grey3); }
.tierline b { font-family: 'Silkscreen', monospace; font-size: 11px; letter-spacing: 1px; margin-right: 4px; }
.tierline a { color: var(--cream); text-decoration: none; border-bottom: 1px dotted var(--grey); }
.tierline a.mine { color: var(--yellow); }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); background: var(--yellow); color: var(--ink); border: 3px solid var(--ink);
  font-family: 'Silkscreen', monospace; font-size: 13px; padding: 8px 12px; z-index: 50; box-shadow: 0 4px 0 var(--ink); }

/* ---------- modals */
.modal { position: fixed; inset: 0; background: rgba(12,8,18,.86); z-index: 40; display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 22px 12px; }
.modal.on { display: flex; }
.modal .tv { width: 100%; max-width: 416px; margin: 0; }
.modal .crt { min-height: 0; padding: 14px 14px 16px; }
.modal h2 { margin: 6px 0 10px; font-family: 'Silkscreen', monospace; font-size: 20px; letter-spacing: 2px; color: #fff; font-weight: 700;
  text-shadow: 2px 2px 0 var(--blue2); position: relative; z-index: 1; }
.modal ol { list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.modal li { font-family: 'Silkscreen', monospace; font-size: 13px; line-height: 1.35; color: #fff; margin: 0 0 9px; padding-left: 16px;
  text-indent: -16px; letter-spacing: .5px; text-shadow: 2px 2px 0 var(--blue2); }
.modal .ladder { position: relative; z-index: 3; }
.modal .rung { background: var(--blue2); border-color: var(--blueL); }
.modal .fine { font-family: 'VT323', monospace; font-size: 18px; line-height: 1.12; color: var(--blueL); position: relative; z-index: 1; margin: 10px 0 0; }
.modal .close { margin-top: 14px; position: relative; z-index: 3; }
.arch-list { display: grid; gap: 8px; position: relative; z-index: 3; }
.arch-list button { text-align: left; background: var(--blue2); border: 2px solid var(--blueL); color: #fff; padding: 10px 12px; cursor: pointer;
  font-family: 'Silkscreen', monospace; font-size: 13px; letter-spacing: 1px; display: flex; justify-content: space-between; }

/* ---------- double feature */
.df-news { margin-top: 12px; padding: 9px 10px; background: #3a1d33; border: 2px solid var(--t-F); font-family: 'VT323', monospace; font-size: 20px; line-height: 1.1; color: var(--cream); }
.df-news b { display: block; font-family: 'Silkscreen', monospace; font-weight: 400; font-size: 13px; letter-spacing: 1px; color: var(--t-F); margin-bottom: 3px; }
.df-hint { margin: 6px 2px 0; font-family: 'VT323', monospace; font-size: 18px; line-height: 1.25; color: var(--grey3); }
.df-hint:empty { display: none; }
.df-hint b { font-family: 'Silkscreen', monospace; font-weight: 400; font-size: 11px; letter-spacing: 1px; color: var(--t-F); margin-right: 4px; }
.df-hint span { display: inline-block; margin: 3px 6px 0 0; padding: 0 6px; border: 2px solid var(--plum3); background: var(--plum); color: var(--cream); }

/* ---------- my shelf */
.shelf-head { font-family: 'Silkscreen', monospace; font-size: 16px; letter-spacing: 2px; color: var(--yellow); }
.shelf-title { font-family: 'Silkscreen', monospace; font-size: 18px; letter-spacing: 1px; color: var(--yellow); text-align: center; margin: 4px 0 6px; }
.shelf-line { font-family: 'VT323', monospace; font-size: 20px; line-height: 1.1; color: var(--grey3); text-align: center; margin: 0 0 14px; }
#shelfCanvas { width: 100%; height: auto; filter: drop-shadow(5px 6px 0 rgba(0,0,0,.45)); }
#decadeCanvas { width: 100%; height: auto; }

.results li.more { cursor: default; font-family: 'VT323', monospace; font-size: 18px; color: var(--grey); }
.results li.more:hover { background: none; }

/* live site */
.foot-links { margin-top: 10px; font-size: 13px; opacity: .7; display: flex; gap: 8px; justify-content: center; }
.foot-links a { color: inherit; }
.acct-panel p { margin: 0; }
.loading-note { text-align: center; padding: 24px 12px; opacity: .8; }
.share-banner { background: var(--t-K); color: #120d1a; text-align: center; font-weight: 700; padding: 8px 12px; font-size: 14px; }
[hidden] { display: none !important; }
.legal { max-width: 640px; margin: 0 auto; padding: 32px 20px 64px; color: var(--cream, #f6edd7); font-family: system-ui, sans-serif; line-height: 1.55; }
.legal h1, .legal h2 { font-family: 'Silkscreen', monospace; color: var(--t-K, #ffc93c); }
.legal a { color: var(--t-K, #ffc93c); }

/* wide screens: the store behind the game, a panel on each side (desk.js) */
#bgArt, .rail { display: none; }
@media (min-width: 760px) {
  #bgArt { display: block; position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; image-rendering: pixelated; image-rendering: crisp-edges; }
  #app { max-width: 560px; z-index: 1; box-shadow: 0 0 0 4px var(--night), 0 0 0 7px var(--plum2), 0 0 80px 30px rgba(0,0,0,.75); }
  .share-banner { position: relative; z-index: 2; max-width: 560px; margin: 0 auto; }
}
@media (min-width: 1180px) {
  .rail { display: flex; flex-direction: column; position: fixed; top: 22px; width: 260px; z-index: 1; max-height: calc(100vh - 44px); overflow-y: auto; scrollbar-width: none; }
  .rail .panel { margin-top: 0; margin-bottom: 14px; background: rgba(42,29,58,.94); box-shadow: 0 6px 0 rgba(0,0,0,.35); }
  .rail-l { right: calc(50% + 280px + 30px); }
  .rail-r { left: calc(50% + 280px + 30px); }
  .rail-night { font-family: 'Silkscreen', monospace; font-size: 22px; color: var(--cream); }
  .rail-date { font-family: 'Silkscreen', monospace; font-size: 12px; color: var(--grey); letter-spacing: 1px; margin-top: 2px; }
  .rail-count { margin-top: 12px; background: var(--ink); padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; }
  .rail-count span { font-family: 'Silkscreen', monospace; font-size: 10px; color: var(--grey); letter-spacing: 1px; }
  .rail-count b { font-family: 'VT323', monospace; font-size: 34px; font-weight: 400; color: var(--red); letter-spacing: 3px; line-height: 1; text-shadow: 0 0 8px rgba(232,71,58,.6); }
  .rail-ladder { grid-template-columns: 1fr 1fr; margin: 0 0 8px; }
  .rail-ladder .rung b { font-size: 10px; }
  .rail-links { flex-direction: row; display: flex; justify-content: space-between; flex-wrap: wrap; }
  .map-canvas { display: block; margin: 4px auto 6px; image-rendering: pixelated; image-rendering: crisp-edges; }
  .rail-r .btn { margin-top: 8px; width: 100%; }
}
@media (min-width: 1180px) { .rail .rung { background: var(--ink); border-color: var(--plum2); } }
@media (min-width: 1180px) {
  /* the side panels already carry these: keep the home screen to the store, the pitch and the button */
  #home .home-meta, #home #ladderHome { display: none; }
  .rail-links .link { margin: 2px 0; }
  .static-row { display: flex; gap: 12px; align-items: center; }
  .static-portrait { width: 96px; height: 96px; flex: none; image-rendering: pixelated; image-rendering: crisp-edges; background: var(--ink); }
  .static-now { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .static-now span { font-family: 'Silkscreen', monospace; font-size: 10px; color: var(--grey); letter-spacing: 1px; }
  .static-now b { font-family: 'Silkscreen', monospace; font-size: 15px; font-weight: 400; color: var(--cream); line-height: 1.1; }
  .static-now em { font-family: 'VT323', monospace; font-style: normal; font-size: 18px; color: var(--tealL); line-height: 1.05; }
  .static-card > p { margin-top: 10px !important; }
  .static-bio { margin-top: 8px; }
  .static-bio summary { cursor: pointer; font-family: 'Silkscreen', monospace; font-size: 12px; color: var(--tealL); letter-spacing: 1px; list-style: none; }
  .static-bio summary::before { content: '▸ '; }
  .static-bio[open] summary::before { content: '▾ '; }
  .rail-toggle { all: unset; cursor: pointer; display: flex; justify-content: space-between; width: 100%; font-family: 'Silkscreen', monospace; font-size: 16px; letter-spacing: 1px; color: var(--yellow); }
  .rail-toggle span { transition: transform .15s; }
  .rail-toggle[aria-expanded="true"] span { transform: rotate(90deg); }
  .rail-toggle:focus-visible { outline: 2px solid var(--tealL); outline-offset: 3px; }
  .map-panel #rlMapLine { margin-top: 6px; }
}

/* after a rental: result card on top (in the TV's place), the store below, then the button */
#game.screen.on { display: flex; flex-direction: column; }
#game .hud { order: -2; }
#game.resulting .tv { display: none; }
#game.resulting #resultArea { order: -1; padding-top: 12px; }
#game.resulting .result { animation: cardIn .25s ease-out; }
@keyframes cardIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.card-prompt { font-family: 'Silkscreen', monospace; font-size: 11px; letter-spacing: 1px; color: var(--grey); margin-bottom: 8px; }

/* cookie consent bar (only when Google Analytics is on) */
.consent-bar { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); width: min(520px, calc(100% - 24px)); z-index: 60;
  background: var(--plum); border: 3px solid var(--plum3); box-shadow: 0 6px 0 rgba(0,0,0,.5); padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.consent-bar p { margin: 0; flex: 1; font-family: 'VT323', monospace; font-size: 18px; line-height: 1.1; color: var(--cream); }
.consent-bar a { color: var(--tealL); }
.consent-bar > div { display: flex; gap: 8px; flex: none; }
.consent-bar .btn { width: auto; padding: 8px 14px 9px; font-size: 13px; }
@media (max-width: 480px) { .consent-bar { flex-direction: column; align-items: stretch; } .consent-bar > div .btn { flex: 1; } }
