/* Glen's Counter Rush v3.5.2: shop-counter RPG */

:root {
  /* Official brand colors from glensmi.com theme (--color_1/2/3) and the logo */
  --glen-blue: #0c5dc6;       /* logo letters / site --color_1 */
  --glen-blue-dark: #0d4081;  /* logo letter shading */
  --glen-blue-light: #3498db; /* "USED AUTO PARTS" text / site --color_2 */
  --glen-red: #fd575b;        /* site accent --color_3 */
  --glen-black: #000000;
  --glen-white: #ffffff;
  --font-ui: 'Barlow', 'Century Gothic', 'Questrial', system-ui, sans-serif;
  --font-body: 'Century Gothic', 'Questrial', 'Segoe UI', system-ui, sans-serif;

  --success: #22c55e;
  --warning: #f5b014;
  --danger: #ef4444;
  --ink: #0b1220;
  --panel: rgba(9, 15, 28, 0.94);
  --panel-2: #121c31;
  --border: rgba(255, 255, 255, 0.12);
  --hud-h: 64px;
  --counter-h: 26%;
  --ease-out: cubic-bezier(.2, .9, .25, 1.15);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--glen-white);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }
#game { position: relative; width: 100%; height: 100vh; height: 100dvh; }

.screen { display: none; position: absolute; inset: 0; }
.screen.active { display: flex; }

/* ---------- Buttons ---------- */
.btn-primary {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #1a72e0, var(--glen-blue) 55%, var(--glen-blue-dark));
  border: 2px solid #000;
  border-radius: 10px;
  padding: .9rem 2.6rem;
  cursor: pointer;
  box-shadow: 0 4px 0 #000, 0 10px 24px rgba(12, 93, 198, .45);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-2px); box-shadow: 0 6px 0 #000, 0 14px 30px rgba(12, 93, 198, .55); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #000, 0 6px 14px rgba(12, 93, 198, .4); }
.btn-ghost {
  font-family: var(--font-ui); font-weight: 700; font-size: .9rem;
  background: transparent; border: 1px dashed rgba(255,255,255,.3); border-radius: 8px;
  padding: .55rem 1rem; cursor: pointer; color: #b9c6dc;
}
.btn-ghost:hover { border-color: var(--glen-red); color: #fff; }

/* ---------- Title / Game over ---------- */
#title-screen, #gameover-screen { align-items: center; justify-content: center; padding: 1.5rem; overflow-y: auto; }
.title-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(52,152,219,.35), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.025) 0 2px, transparent 2px 64px),
    linear-gradient(180deg, #16243d, #0a1120);
}
.title-bg::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(12,93,198,.18));
}
.title-card { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; max-width: 560px; width: 100%; animation: rise .7s var(--ease-out) both; }
.logo-img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; filter: drop-shadow(0 8px 22px rgba(0,0,0,.5)); }
.logo-img.small { max-width: 260px; }
.game-title {
  font-family: var(--font-ui); font-weight: 900; font-style: italic; text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 3.4rem); letter-spacing: .02em; line-height: 1;
  margin-top: .4rem;
  color: #fff; -webkit-text-stroke: 1.5px #000;
  text-shadow: 3px 3px 0 var(--glen-blue), 6px 6px 0 #000;
}
.tagline { margin-top: .8rem; color: #c8d6ea; font-size: 1.05rem; }
.howto { list-style: none; display: flex; gap: .6rem; margin: 1.4rem 0 1.6rem; flex-wrap: wrap; justify-content: center; }
.howto li { display: flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.06); border: 1px solid var(--border); border-radius: 999px; padding: .4rem .9rem .4rem .4rem; font-size: .9rem; color: #dbe5f3; }
.howto span { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--glen-blue); font-family: var(--font-ui); font-weight: 800; font-size: .85rem; }
.slogan { margin-top: 1.4rem; font-family: var(--font-ui); font-weight: 700; font-style: italic; color: var(--glen-blue-light); font-size: 1.1rem; }
.address { margin-top: .6rem; font-size: .75rem; color: #7f8fa8; }

.results-card h2 { font-family: var(--font-ui); font-weight: 900; font-size: 2.4rem; text-transform: uppercase; margin-top: .6rem; }
.rank { color: var(--warning); font-family: var(--font-ui); font-weight: 700; font-size: 1.2rem; margin-top: .2rem; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; width: 100%; margin: 1.2rem 0 .2rem; }
.results div { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: .7rem .9rem; display: flex; justify-content: space-between; align-items: baseline; }
.results div.wide { grid-column: 1 / -1; }
.results div > span { color: #9fb0c8; font-size: .9rem; }
.results strong, .results strong span { font-family: var(--font-ui); font-size: 1.3rem; color: #fff; }

/* ---------- Game screen ---------- */
#game-screen { flex-direction: column; }
.hud {
  height: var(--hud-h); flex: 0 0 var(--hud-h);
  display: flex; align-items: center; gap: 1.4rem;
  padding: 0 1.2rem; background: linear-gradient(180deg, #0a1222, #0d1729);
  border-bottom: 2px solid #000; box-shadow: 0 2px 0 var(--glen-blue);
  font-family: var(--font-ui); z-index: 20;
}
.mini-logo { display: block; height: 40px; width: auto; }
.hud-block { display: flex; flex-direction: column; line-height: 1.05; }
.hud-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: #8ea2c2; font-weight: 700; }
.hud-value { font-size: 1.3rem; font-weight: 800; }
.hud-value small { font-size: .8rem; color: #8ea2c2; font-weight: 700; }
.hud-value.cash { color: #7ee2a0; }
.hud-value.streak { color: var(--warning); }
.hud-shift { margin-right: auto; }
.hud-rep { min-width: 170px; display: grid; grid-template-columns: 1fr auto; column-gap: .5rem; align-items: center; }
.hud-rep .hud-label { grid-column: 1 / -1; }
.rep-meter { height: 10px; border-radius: 999px; background: #1d2a42; border: 1px solid #000; overflow: hidden; }
.rep-fill { height: 100%; width: 60%; background: linear-gradient(90deg, var(--glen-blue), var(--glen-blue-light)); transition: width .5s var(--ease-out), background .3s; }
.rep-fill.low { background: linear-gradient(90deg, #b91c1c, var(--glen-red)); }
.rep-fill.mid { background: linear-gradient(90deg, #c27c0e, var(--warning)); }
.rep-value { font-weight: 800; font-size: 1rem; }
.bump { animation: bump .45s var(--ease-out); }

.stage { position: relative; flex: 1; overflow: hidden; overflow: clip; }
.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.shelf-icons { color: #6f87ad; }
.wall-logo {
  position: absolute; left: 50%; top: 4.5%; transform: translateX(-50%);
  width: min(23vw, 230px); height: auto; filter: drop-shadow(0 0 18px rgba(52,152,219,.45));
  pointer-events: none;
}
.green-badge {
  position: absolute; left: 3%; top: 11%; width: 108px; z-index: 2;
  background: #f4f1e8; color: #1e5b33; border: 4px solid #6b4f2a; border-radius: 6px;
  padding: 6px; text-align: center; font-family: var(--font-ui); font-size: .62rem; line-height: 1.15;
  transform: rotate(-2deg); box-shadow: 0 8px 18px rgba(0,0,0,.45);
}
.green-badge img { width: 54px; height: 54px; display: block; margin: 0 auto 4px; border-radius: 3px; }
.green-badge strong { font-size: .8rem; text-transform: uppercase; }
.neon {
  position: absolute; left: 3%; top: 2.5%; font-family: var(--font-ui); font-weight: 800; font-style: italic;
  font-size: 1.05rem; color: #bfe6ff; padding: .4rem .8rem; border: 2px solid #3498db; border-radius: 8px;
  text-shadow: 0 0 8px #3498db, 0 0 18px #3498db; box-shadow: 0 0 14px rgba(52,152,219,.6), inset 0 0 10px rgba(52,152,219,.4);
  transform: rotate(-2deg); animation: flicker 6s infinite;
}

/* Customer */
.customer {
  position: absolute; left: 50%; bottom: calc(var(--counter-h) - 2%);
  width: min(34vh, 300px); aspect-ratio: 200 / 240;
  transform: translateX(-50%) translateX(-40%);
  z-index: 3; pointer-events: none;
  transition: transform .5s var(--ease-out), opacity .4s;
}
.customer.out { transform: translateX(-50%) translateX(-140%); opacity: 0; }
.customer.leaving { transform: translateX(-50%) translateX(60%); opacity: 0; transition-duration: .55s; }
.customer svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 12px 18px rgba(0,0,0,.45)); animation: idle 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
.customer.angry svg { animation: shake .5s ease-in-out 2, idle 3.2s 1s ease-in-out infinite; }
.customer.happy svg { animation: hop .5s var(--ease-out), idle 3.2s .5s ease-in-out infinite; }
.customer.confused svg { animation: tilt .6s var(--ease-out) forwards; }
.customer.heat-3 > svg { animation: shake .45s ease-in-out infinite; }
.customer.heat-4 > svg { animation: shake .28s ease-in-out infinite; filter: drop-shadow(0 0 22px rgba(239,68,68,.55)); }
.customer.heat-5 > svg { animation: shake .18s ease-in-out infinite; filter: drop-shadow(0 0 30px rgba(239,68,68,.8)); }
.customer .kid { position: absolute; width: 42%; aspect-ratio: 200 / 240; left: -6%; bottom: -2%; z-index: 3; }
.customer .kid svg { animation: idle 2.4s ease-in-out infinite; }
.stage.ringing .counter-top { animation: ring .25s linear 6; }
.m-wall, .m-window { display: none; }
.customer-tag {
  position: absolute; left: 50%; bottom: 20%; transform: translateX(-50%) rotate(-2deg); white-space: nowrap; z-index: 2;
  font-family: var(--font-ui); font-weight: 800; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em;
  background: #000; border: 1px solid var(--glen-blue); color: var(--glen-blue-light); padding: .2rem .6rem; border-radius: 999px;
}

/* Counter */
.counter { position: absolute; left: 0; right: 0; bottom: 0; height: var(--counter-h); z-index: 4; }
.counter-top { position: absolute; left: 0; right: 0; top: 0; height: 18px; background: linear-gradient(180deg, #c99a62, #8e6537); border-top: 2px solid #e6c391; border-bottom: 3px solid #000; }
.counter-front {
  position: absolute; left: 0; right: 0; top: 18px; bottom: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.25), transparent 30%),
    repeating-linear-gradient(90deg, #26364f 0 3px, #2c3e5a 3px 120px),
    #2a3b57;
  border-top: 6px solid var(--glen-blue);
}
.counter-front span { position: absolute; right: 2rem; bottom: .8rem; font-family: var(--font-ui); font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: .7rem; color: rgba(255,255,255,.25); }
.counter-item {
  position: absolute; left: 50%; bottom: calc(100% - 22px); width: 120px; transform: translateX(60%) translateY(-30px) scale(.6); opacity: 0;
  display: flex; flex-direction: column; align-items: center; pointer-events: none;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.counter-item.show { opacity: 1; transform: translateX(60%) translateY(0) scale(1); }
.counter-item svg { width: 92px; height: 92px; color: #e8eef8; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 6px 6px rgba(0,0,0,.6)); }
.price-tag {
  margin-top: -6px; font-family: var(--font-ui); font-weight: 900; font-size: 1.1rem; color: #000;
  background: #ffd84d; border: 2px solid #000; border-radius: 4px 12px 12px 4px; padding: .1rem .7rem; transform: rotate(-4deg);
  box-shadow: 2px 3px 0 rgba(0,0,0,.5);
}
.policy-card {
  position: absolute; z-index: 9; right: 3%; top: 4%; width: 210px; padding: .7rem .8rem; font-size: .8rem; line-height: 1.3;
  background: #fff7b8; color: #2b2410; border-radius: 3px; transform: rotate(-3deg) translateY(20px); opacity: 0;
  box-shadow: 0 6px 14px rgba(0,0,0,.4); transition: .35s var(--ease-out); pointer-events: none;
}
.policy-card strong { display: block; font-family: var(--font-ui); font-size: .85rem; text-transform: uppercase; color: var(--glen-blue-dark); }
.policy-card.show { opacity: 1; transform: rotate(-3deg) translateY(0); }

/* Dialogue */
.dialogue {
  position: absolute; z-index: 10; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: min(940px, calc(100% - 24px)); min-height: 150px;
  background: linear-gradient(180deg, rgba(14,24,44,.97), rgba(8,13,25,.97));
  border: 3px solid #000; outline: 2px solid var(--glen-blue); outline-offset: -6px;
  border-radius: 14px; padding: 1.6rem 1.6rem 1.2rem; cursor: pointer;
  box-shadow: 0 18px 40px rgba(0,0,0,.6);
  transition: opacity .25s, transform .3s var(--ease-out);
}
.dialogue.hidden { opacity: 0; transform: translateX(-50%) translateY(30px); pointer-events: none; }
.speaker {
  position: absolute; top: -18px; left: 22px; display: flex; align-items: baseline; gap: .5rem;
  background: var(--glen-blue); border: 3px solid #000; border-radius: 8px; padding: .25rem .9rem;
  font-family: var(--font-ui); font-weight: 900; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em;
  box-shadow: 3px 3px 0 #000;
}
.speaker small { font-weight: 700; font-size: .7rem; letter-spacing: .12em; opacity: .85; }
.speaker.player { background: #ffd84d; color: #000; }
.speaker.angry { background: var(--glen-red); }
.speaker.kid { background: #22c55e; color: #052e12; }
.speaker.phone { background: #6b7280; }
.dialogue.shout .dialogue-text { font-family: var(--font-ui); font-weight: 800; font-size: 1.45rem; color: #ffd0d1; letter-spacing: .01em; animation: shake .35s 2; }
.heat { position: absolute; top: -16px; right: 22px; display: none; align-items: center; gap: .45rem; background: #000; border: 2px solid var(--glen-red);
  border-radius: 999px; padding: .2rem .7rem; font-family: var(--font-ui); font-weight: 900; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #ffd0d1; }
.heat.show { display: flex; }
.heat-pips { display: flex; gap: 4px; }
.heat-pips i { width: 14px; height: 9px; border-radius: 3px; background: #3b1a1d; transition: background .3s; }
.heat-pips i.on { background: linear-gradient(90deg, #f59e0b, #ef4444); box-shadow: 0 0 8px rgba(239,68,68,.6); }
.heat[data-level="5"] { animation: shake .3s infinite; }
.choice-btn.special { border-color: #ffd84d; background: linear-gradient(90deg, #2a2410, #16233d 60%); }
.choice-btn.special .choice-key { background: #ffd84d; color: #000; }
.choice-btn.special .choice-label { color: #ffd84d; }
.dialogue-text { font-size: 1.18rem; line-height: 1.5; min-height: 3em; color: #eef3fb; }
.dialogue-text b { color: #ffd84d; font-weight: 700; }
.advance { position: absolute; right: 18px; bottom: 10px; color: var(--glen-blue-light); font-size: .9rem; opacity: 0; }
.dialogue.ready .advance { opacity: 1; animation: blink 1s infinite; }
.dialogue.choosing { cursor: default; }
.dialogue.choosing .advance { display: none; }
.choices { display: grid; gap: .55rem; margin-top: .9rem; }
.choices:empty { display: none; }
.choice-btn {
  text-align: left; display: flex; gap: .7rem; align-items: center; cursor: pointer;
  background: #16233d; border: 2px solid #2c3f63; border-radius: 10px; padding: .65rem .9rem; font-size: 1rem;
  transition: transform .12s, border-color .12s, background .12s; animation: slideIn .35s var(--ease-out) both;
}
.choice-btn:nth-child(2) { animation-delay: .06s; } .choice-btn:nth-child(3) { animation-delay: .12s; } .choice-btn:nth-child(4) { animation-delay: .18s; }
.choice-btn:hover:not(:disabled), .choice-btn:focus-visible { border-color: var(--glen-blue-light); background: #1b2c4d; transform: translateX(4px); outline: none; }
.choice-btn:disabled { opacity: .45; cursor: not-allowed; }
.choice-key { flex: 0 0 auto; width: 1.7rem; height: 1.7rem; border-radius: 6px; display: grid; place-items: center; background: var(--glen-blue); border: 2px solid #000; font-family: var(--font-ui); font-weight: 900; font-size: .9rem; }
.choice-label { font-family: var(--font-ui); font-weight: 800; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; color: var(--glen-blue-light); display: block; }

/* Drawer */
.drawer {
  position: absolute; z-index: 12; top: 12px; right: 12px; bottom: 12px; width: min(560px, 46%);
  display: flex; flex-direction: column; gap: .7rem; padding: 1rem;
  background: var(--panel); border: 3px solid #000; outline: 2px solid #22324f; outline-offset: -6px; border-radius: 14px;
  box-shadow: -10px 0 40px rgba(0,0,0,.55);
  transform: translateX(110%); transition: transform .45s var(--ease-out);
}
.drawer.open { transform: translateX(0); }
.ticket { display: flex; gap: .8rem; background: #f3efe2; color: #1b1b1b; border-radius: 6px; padding: .6rem; position: relative; }
.ticket::before { content: ''; position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: radial-gradient(circle at 6px 6px, transparent 4px, #f3efe2 4.5px) repeat-x; background-size: 12px 6px; }
.ticket-portrait { width: 64px; height: 76px; flex: 0 0 auto; background: #dfe6f0; border-radius: 4px; overflow: hidden; }
.ticket-portrait svg { width: 100%; height: 100%; }
.ticket-body { flex: 1; min-width: 0; }
.ticket-head { font-family: var(--font-ui); font-weight: 900; text-transform: uppercase; font-size: .78rem; letter-spacing: .1em; color: var(--glen-blue-dark); display: flex; justify-content: space-between; gap: .5rem; }
.ticket-head span { color: #000; }
.ticket-quote { font-size: .92rem; margin: .25rem 0 .45rem; font-style: italic; }
.patience { height: 8px; background: #d4cfbf; border-radius: 4px; overflow: hidden; }
.patience-fill { height: 100%; width: 100%; background: var(--glen-blue); transition: width .1s linear, background .3s; }
.drawer-title { font-family: var(--font-ui); font-weight: 900; text-transform: uppercase; letter-spacing: .06em; display: flex; justify-content: space-between; align-items: baseline; }
.drawer-title small { font-weight: 600; text-transform: none; letter-spacing: 0; color: #8ea2c2; font-size: .8rem; }
.inventory-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; align-content: start; padding: 2px; }
.part-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: .25rem; cursor: pointer;
  background: linear-gradient(160deg, #1a2742, #111a2d); border: 2px solid #26375a; border-radius: 10px;
  padding: .55rem .35rem .45rem; text-align: center; transition: transform .12s, border-color .12s, box-shadow .12s;
}
.part-card svg { width: 40px; height: 40px; color: #cfe0f7; stroke: currentColor; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.part-card:hover:not(.out) { border-color: var(--glen-blue-light); transform: translateY(-3px); box-shadow: 0 8px 18px rgba(12,93,198,.35); }
.part-card:hover:not(.out) svg { color: #fff; }
.part-name { font-family: var(--font-ui); font-weight: 700; font-size: .8rem; line-height: 1.1; }
.part-meta { font-size: .68rem; color: #8ea2c2; }
.part-stock { position: absolute; top: 4px; right: 6px; font-family: var(--font-ui); font-weight: 800; font-size: .7rem; color: #8ea2c2; }
.part-card.out { opacity: .35; cursor: not-allowed; }
.part-card.wrong { animation: shake .4s; border-color: var(--danger); }
.part-card.right { border-color: var(--success); box-shadow: 0 0 0 3px rgba(34,197,94,.35); }

/* Toast / floaters */
.toast {
  position: absolute; z-index: 15; left: 50%; top: 16px; transform: translate(-50%, -20px); opacity: 0;
  font-family: var(--font-ui); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .03em;
  background: #000; border: 2px solid var(--glen-blue); border-radius: 999px; padding: .45rem 1.3rem; white-space: nowrap;
  transition: .35s var(--ease-out); pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.good { border-color: var(--success); color: #b9f5cc; }
.toast.bad { border-color: var(--glen-red); color: #ffd0d1; }
.floaters { position: absolute; inset: 0; pointer-events: none; z-index: 16; }
.floater { position: absolute; font-family: var(--font-ui); font-weight: 900; font-size: 1.5rem; -webkit-text-stroke: 1px #000; animation: floatUp 1.4s ease-out forwards; white-space: nowrap; }
.floater.cash { color: #7ee2a0; } .floater.rep-up { color: var(--glen-blue-light); } .floater.rep-down, .floater.cash-down { color: var(--glen-red); }

/* Visual-novel layout on wide screens: portrait left, dialogue right */
@media (min-width: 901px) {
  .customer { left: 19%; width: min(46vh, 380px); bottom: calc(var(--counter-h) - 6%); transform: translateX(-50%); }
  .customer.out { transform: translateX(-50%) translateX(-120%); }
  .customer.leaving { transform: translateX(-50%) translateX(-120%); }
  .dialogue { left: auto; right: 24px; transform: none; width: min(840px, calc(62% - 24px)); }
  .dialogue.hidden { transform: translateY(30px); }
  .counter-item { left: calc(19% + 70px); transform: translateY(-30px) scale(.6); }
  .counter-item.show { transform: translateY(0) scale(1); }
}

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes idle { 0%,100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-3px) scaleY(1.008); } }
@keyframes hop { 0% { transform: translateY(0); } 40% { transform: translateY(-14px); } 100% { transform: translateY(0); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px) rotate(-1.5deg); } 40% { transform: translateX(7px) rotate(1.5deg); } 60% { transform: translateX(-5px); } 80% { transform: translateX(5px); } }
@keyframes blink { 50% { opacity: .2; } }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes floatUp { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 15% { opacity: 1; transform: translateY(0) scale(1.1); } 100% { opacity: 0; transform: translateY(-70px) scale(1); } }
@keyframes tilt { 0% { transform: rotate(0); } 50% { transform: rotate(-6deg) translateY(-6px); } 100% { transform: rotate(-4deg); } }
@keyframes ring { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
@keyframes flicker { 0%, 92%, 100% { opacity: 1; } 93% { opacity: .4; } 94% { opacity: 1; } 96% { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hud { gap: .8rem; }
  .drawer { width: min(520px, 60%); }
  .green-badge, .neon { display: none; }
}
@media (max-width: 640px) {
  :root { --hud-h: 96px; --counter-h: 22%; }
  .hud { flex-wrap: wrap; row-gap: .25rem; column-gap: .9rem; padding: .45rem .7rem; align-content: center; }
  .mini-logo { height: 34px; }
  .hud-shift { margin-right: 0; }
  .hud-value { font-size: 1.05rem; }
  .hud-end { flex: 1 1 100%; gap: .6rem; }
  .hud-rep { min-width: 0; flex: 1 1 auto; grid-template-columns: auto 1fr auto; column-gap: .5rem; }
  .hud-rep .hud-label { grid-column: auto; }
  .wall-logo { width: 34vw; top: 2%; }
  /* v3.2: the yard window comes back on phones, smaller and up on the wall to the right,
     with the customer stepped left so they stand beside it instead of blotting out the cars. */
  .yard-window, .m-wall { display: none; }
  .m-window {
    display: block; position: absolute; z-index: 1; pointer-events: none;
    right: 4%; top: 20.5%; width: 54%; height: auto; aspect-ratio: 520 / 300;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.45));
  }
  .counter { bottom: auto; top: 50%; height: 50%; }
  .customer { left: 30%; width: min(42vw, 185px); bottom: calc(50% - 6px); transform: translateX(-50%); }
  .customer .kid { left: -12%; width: 40%; }
  .customer-tag { font-size: .62rem; }
  .customer.out { transform: translateX(-50%) translateX(-120%); }
  .customer.leaving { transform: translateX(-50%) translateX(120%); }
  .counter-item { left: 62%; transform: translateY(-30px) scale(.6); bottom: auto; top: -70px; width: 90px; }
  .counter-item.show { transform: translateY(0) scale(.8); }
  .dialogue { bottom: 10px; padding: 2.5rem 1rem 1rem; min-height: 0; }
  .dialogue-text { font-size: 1rem; }
  .choice-btn { font-size: .82rem; padding: .45rem .6rem; line-height: 1.25; }
  .dialogue-text { min-height: 0; }
  .drawer { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; height: 74%; transform: translateY(110%); }
  .drawer.open { transform: translateY(0); }
  .inventory-grid { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
  .policy-card { top: 25%; right: 6px; width: 108px; font-size: .62rem; padding: .5rem .55rem; }
  .policy-card strong { font-size: .7rem; }
  .speaker { flex-wrap: wrap; max-width: calc(100% - 40px); font-size: .92rem; row-gap: 0; }
  .heat { top: -46px; right: 8px; }
  .dialogue.shout .dialogue-text { font-size: 1.1rem; }
  .results { grid-template-columns: 1fr; }
  .toast { font-size: 1rem; top: 10px; }
}


/* ---------- Negotiation (v3.2) ---------- */
.nego { display: none; grid-template-columns: repeat(5, auto); gap: .45rem; margin: .7rem 0 .1rem; }
.nego.show { display: grid; }
.nego-cell { background: #0f1930; border: 1px solid #263a5e; border-radius: 8px; padding: .3rem .6rem; display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.nego-cell span { font-family: var(--font-ui); font-weight: 800; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: #8ea2c2; white-space: nowrap; }
.nego-cell span em { color: var(--glen-red); font-style: normal; }
.nego-cell b { font-family: var(--font-ui); font-weight: 900; font-size: 1.15rem; color: #fff; }
.nego-cell small { font-size: .7rem; color: #9fb0c8; }
.nego-cell.offer b { color: #ffb4b6; }
.nego-cell.ask b { color: #ffd84d; }
.nego-cell.msrp b { color: #9fd1ff; font-size: 1rem; }
.nego-pips { display: flex; gap: 4px; margin-top: .3rem; }
.nego-pips i { width: 14px; height: 8px; border-radius: 3px; background: #26375a; }
.nego-pips i.on { background: var(--glen-blue-light); }
.choices.grid { grid-template-columns: 1fr 1fr; gap: .45rem; }
.choices.grid .choice-btn { padding: .45rem .65rem; font-size: .86rem; line-height: 1.25; align-items: flex-start; }
.choices.grid .choice-label { font-size: .72rem; }
.choices.grid .choice-btn[data-tactic="firm"] { border-color: #2f6fb5; }
.choices.grid .choice-btn[data-tactic="take"] { border-color: #4b5d2a; }
.stepper { background: #0f1930; border: 2px solid var(--glen-blue); border-radius: 12px; padding: .8rem .9rem; display: grid; gap: .55rem; cursor: default; }
.stepper-top { display: flex; align-items: center; justify-content: center; gap: .45rem; }
.step-btn { font-family: var(--font-ui); font-weight: 800; font-size: .9rem; background: #16233d; border: 2px solid #2c3f63; border-radius: 8px; padding: .45rem .7rem; cursor: pointer; min-width: 64px; }
.step-btn:hover { border-color: var(--glen-blue-light); }
.step-val { font-family: var(--font-ui); font-weight: 900; font-size: 2rem; color: #ffd84d; min-width: 130px; text-align: center; }
.step-range { width: 100%; accent-color: var(--glen-blue-light); }
.stepper-meta { display: flex; justify-content: space-between; gap: .6rem; font-size: .82rem; color: #b9c6dc; flex-wrap: wrap; }
.stepper-meta b { color: #ffd84d; }
.stepper-warn { display: none; font-family: var(--font-ui); font-weight: 800; font-size: .8rem; color: #ffd0d1; background: rgba(239,68,68,.15); border: 1px solid rgba(239,68,68,.5); border-radius: 6px; padding: .3rem .6rem; }
.stepper-warn.show { display: block; }
.stepper-actions { display: flex; justify-content: space-between; gap: .6rem; }
.stepper-actions .btn-primary { font-size: 1rem; padding: .55rem 1.2rem; }
kbd { font-family: var(--font-ui); font-size: .7em; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; padding: 0 .3em; margin-left: .3em; opacity: .8; }
@media (max-width: 640px) {
  .nego { grid-template-columns: repeat(3, 1fr); gap: .3rem; margin-top: .5rem; }
  .nego-cell { padding: .25rem .4rem; }
  .nego-cell b { font-size: .95rem; }
  .nego-cell.msrp b { font-size: .85rem; }
  .nego-cell.rounds { grid-column: span 2; }
  .choices.grid { gap: .3rem; }
  .choices.grid .choice-btn { padding: .35rem .45rem; font-size: .72rem; gap: .4rem; }
  .choices.grid .choice-key { width: 1.3rem; height: 1.3rem; font-size: .75rem; }
  .choices.grid .choice-label { font-size: .62rem; }
  .step-val { font-size: 1.5rem; min-width: 90px; }
  .step-btn { min-width: 0; padding: .4rem .45rem; font-size: .78rem; }
  .stepper-meta { font-size: .72rem; }
  kbd { display: none; }
}

/* Version footer */
.version-footer {
  position: fixed; left: 10px; bottom: 6px; z-index: 30;
  font-family: var(--font-ui, sans-serif); font-size: .7rem; letter-spacing: .04em;
  color: rgba(255,255,255,.45); pointer-events: none; user-select: none;
}

/* ---------- Sound controls (v3.3) ---------- */
.hud-end { display: flex; align-items: center; gap: 1rem; }
.sound-ctl { position: relative; display: flex; align-items: center; gap: .3rem; }
.sound-btn, .sound-gear, .amb-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 34px; min-width: 34px; padding: 0 .45rem; border-radius: 8px; cursor: pointer;
  background: #16233d; border: 1.5px solid #2c3f63; color: #cfe3ff;
  font-family: var(--font-ui); font-weight: 700; font-size: .85rem;
}
.sound-btn:hover, .sound-gear:hover, .amb-btn:hover { border-color: var(--glen-blue-light); }
.sound-btn svg, .sound-gear svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sound-btn .spk { fill: currentColor; }
.sound-btn .ico-off { display: none; }
.sound-btn.muted { color: #ffb4b6; border-color: #7a2d33; }
.sound-btn.muted .ico-on { display: none; }
.sound-btn.muted .ico-off { display: inline; }
.sound-pop {
  display: none; position: absolute; top: calc(100% + 8px); right: 0; z-index: 40; width: 220px; text-align: left;
  background: #0f1930; border: 2px solid var(--glen-blue); border-radius: 12px; padding: .7rem .8rem; box-shadow: 0 12px 28px rgba(0,0,0,.55);
  font-family: var(--font-body, inherit); font-size: .85rem; color: #dbe6f7;
}
.sound-pop.open { display: grid; gap: .45rem; animation: slideIn .18s var(--ease-out); }
.sp-row { display: flex; justify-content: space-between; font-family: var(--font-ui); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8ea2c2; }
.sp-row .sound-vol-val { color: #ffd84d; letter-spacing: 0; }
.sound-vol { width: 100%; accent-color: var(--glen-blue-light); }
.sp-check { display: flex; align-items: center; gap: .45rem; cursor: pointer; }
.sp-check input { accent-color: var(--glen-blue-light); width: 16px; height: 16px; }
.sp-hint { margin: 0; font-size: .72rem; color: #8ea2c2; }
.title-sound { margin-top: .8rem; }
.title-sound .sound-pop { right: auto; left: 50%; margin-left: -110px; }
@media (max-width: 640px) {
  .sound-btn, .sound-gear, .amb-btn { height: 30px; min-width: 30px; padding: 0 .35rem; }
  .sound-pop { width: min(240px, calc(100vw - 24px)); }
  .sp-hint { display: none; }
}
.amb-btn { font-size: 1rem; line-height: 1; font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; }
.amb-btn.off { border-color: #7a2d33; }
@media (min-width: 641px) { .amb-btn::after { content: 'Shop'; font-family: var(--font-ui); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; margin-left: .3rem; color: #9fb0c8; } }

/* ---------- Online top scores + My Shifts (v3.5) ---------- */
#title-screen, #gameover-screen { justify-content: flex-start; align-items: flex-start; }
.screen-row { position: relative; z-index: 1; margin: auto; display: flex; align-items: center; justify-content: center; gap: 2.2rem; width: 100%; max-width: 1100px; }
.screen-row > .title-card { flex: 0 1 560px; }
.board-card {
  display: none; position: relative; z-index: 1; flex: 0 1 380px; min-width: 0;
  background: var(--panel); border: 1px solid var(--border); border-top: 4px solid var(--glen-blue); border-radius: 14px;
  padding: 1rem 1.1rem 1.1rem; box-shadow: 0 18px 40px rgba(0,0,0,.45); animation: rise .7s .1s var(--ease-out) both;
}
.scores-online .board-card { display: flex; flex-direction: column; gap: .7rem; }
.offline-note { display: none; margin-top: .9rem; font-size: .75rem; color: #6f819c; font-style: italic; }
.scores-offline .offline-note { display: block; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.board-head h2 { font-family: var(--font-ui); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.35rem; letter-spacing: .02em; }
.board-tabs { display: inline-flex; background: #0c1527; border: 1px solid #22355a; border-radius: 999px; padding: 3px; }
.board-tab { border: 0; background: transparent; border-radius: 999px; padding: .3rem .75rem; cursor: pointer; font-family: var(--font-ui); font-weight: 800; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: #8ea2c2; }
.board-tab[aria-selected="true"] { background: var(--glen-blue); color: #fff; }
.board-list { list-style: none; display: grid; gap: 4px; min-height: 120px; }
.board-row { display: grid; grid-template-columns: 1.9rem 1fr auto; grid-template-areas: "rank name score" "rank meta score"; align-items: center; column-gap: .6rem; background: #111b30; border: 1px solid #1e2d4b; border-radius: 8px; padding: .32rem .6rem; }
.board-row:nth-child(1) .board-rank { background: #f5b014; color: #1b1300; }
.board-row:nth-child(2) .board-rank { background: #c9d3e0; color: #111; }
.board-row:nth-child(3) .board-rank { background: #c47a3c; color: #1b0d00; }
.board-row.me { border-color: var(--glen-blue-light); background: #13274a; }
.board-rank { grid-area: rank; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: #22355a; font-family: var(--font-ui); font-weight: 900; font-size: .85rem; }
.board-name { grid-area: name; font-family: var(--font-ui); font-weight: 800; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-name em { font-style: normal; color: var(--glen-blue-light); font-weight: 700; font-size: .8rem; }
.board-meta { grid-area: meta; font-size: .72rem; color: #8ea2c2; }
.board-score { grid-area: score; font-family: var(--font-ui); font-weight: 900; font-size: 1.1rem; color: #7ee2a0; }
.board-empty { list-style: none; color: #8ea2c2; font-size: .88rem; padding: .8rem .2rem; text-align: center; }
.board-status { font-family: var(--font-ui); font-weight: 700; font-size: .88rem; color: #b9c6dc; min-height: 1.2em; }
.board-status:empty { display: none; }
.board-status.good { color: #7ee2a0; } .board-status.bad { color: #ffb4b6; }
.board-status b { color: #ffd84d; }
.board-player { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: .88rem; color: #c8d6ea; border-top: 1px solid var(--border); padding-top: .7rem; }
.board-player b { color: #fff; font-family: var(--font-ui); }
.nick-edit, .nick-cancel { background: none; border: 0; color: var(--glen-blue-light); cursor: pointer; font-family: var(--font-ui); font-weight: 700; font-size: .82rem; text-decoration: underline; padding: 0; }
.nick-form { width: 100%; display: grid; gap: .45rem; }
.nick-form label { display: grid; gap: .35rem; font-family: var(--font-ui); font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: #8ea2c2; }
.nick-input { font: inherit; font-family: var(--font-body); font-size: 1rem; text-transform: none; letter-spacing: 0; color: #fff; background: #0c1527; border: 1.5px solid #2c3f63; border-radius: 8px; padding: .5rem .65rem; }
.nick-input:focus { outline: none; border-color: var(--glen-blue-light); }
.nick-actions { display: flex; gap: .8rem; align-items: center; }
.nick-save { font-family: var(--font-ui); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; background: var(--glen-blue); border: 1.5px solid #000; border-radius: 8px; padding: .45rem .9rem; cursor: pointer; }
.nick-msg { font-size: .8rem; color: #ffb4b6; min-height: 1em; }
.nick-msg:empty { display: none; }
.shifts-btn { align-self: flex-start; }
.turnstile-slot { position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 60; }

.modal { display: none; position: fixed; inset: 0; z-index: 50; background: rgba(3,8,18,.72); align-items: center; justify-content: center; padding: 1rem; }
.modal.open { display: flex; }
.modal-card { width: min(680px, 100%); max-height: 90dvh; overflow: auto; background: var(--panel); border: 1px solid var(--border); border-top: 4px solid var(--glen-blue); border-radius: 14px; padding: 1rem 1.2rem 1.2rem; box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: rise .35s var(--ease-out) both; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.modal-head h2 { font-family: var(--font-ui); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.5rem; }
.modal-close { background: #16233d; border: 1.5px solid #2c3f63; border-radius: 8px; width: 36px; height: 36px; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.shifts-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .9rem; }
.shifts-summary div { background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px; padding: .55rem .7rem; display: grid; }
.shifts-summary span { font-family: var(--font-ui); font-weight: 800; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #8ea2c2; }
.shifts-summary strong { font-family: var(--font-ui); font-weight: 900; font-size: 1.45rem; color: #fff; }
.shifts-summary div:first-child strong { color: #ffd84d; }
.shifts-summary small { font-size: .72rem; color: #8ea2c2; }
.shifts-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.shifts-table th { text-align: left; font-family: var(--font-ui); font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #8ea2c2; padding: .35rem .45rem; border-bottom: 1px solid var(--border); }
.shifts-table td { padding: .4rem .45rem; border-bottom: 1px solid rgba(255,255,255,.05); color: #dbe5f3; white-space: nowrap; }
.shifts-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.shifts-table th:not(:first-child) { text-align: right; }
.shifts-table tr.pb td { color: #ffd84d; font-weight: 700; }
.shifts-note { margin-top: .7rem; font-size: .75rem; color: #6f819c; }

/* Reserved names: recovery code panel + restore dialog */
.nick-actions { flex-wrap: wrap; }
.nick-restore, .nick-restore-inline { background: none; border: 0; color: var(--glen-blue-light); cursor: pointer; font-family: var(--font-ui); font-weight: 700; font-size: .82rem; text-decoration: underline; padding: 0; margin-left: auto; }
.nick-restore-inline { margin: 0; font-size: inherit; }
.nick-msg.good { color: #7ee2a0; }
.taken-note { display: inline-block; margin-top: .25rem; font-weight: 600; color: #ffd0a1; }
.taken-note b { color: #fff; }
.code-card, .restore-card { width: min(460px, 100%); }
.code-lead { font-size: 1rem; color: #dbe5f3; margin-bottom: .8rem; }
.code-lead b { color: #fff; font-family: var(--font-ui); }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: .8rem; background: #0c1527; border: 2px dashed #f5b014; border-radius: 12px; padding: .8rem 1rem; margin-bottom: .8rem; }
.code-value { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-weight: 800; font-size: 1.9rem; letter-spacing: .14em; color: #ffd84d; user-select: all; }
.code-copy { flex: none; font-family: var(--font-ui); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; background: var(--glen-blue); border: 1.5px solid #000; border-radius: 8px; padding: .5rem .9rem; cursor: pointer; }
.code-help { font-size: .86rem; color: #b9c6dc; line-height: 1.45; margin-bottom: .8rem; }
.code-help b { color: #fff; }
.code-actions { display: flex; gap: .9rem; align-items: center; flex-wrap: wrap; }
.code-done { padding: .7rem 1.8rem; font-size: 1.05rem; }
.restore-form { display: grid; gap: .7rem; }
.restore-form label { display: grid; gap: .35rem; font-family: var(--font-ui); font-weight: 800; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: #8ea2c2; }
.code-input { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; letter-spacing: .12em; text-transform: uppercase; }
.code-section { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--border); }
.code-section-head { font-family: var(--font-ui); font-weight: 800; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #8ea2c2; margin-bottom: .5rem; }
.code-section-head b { color: #fff; text-transform: none; letter-spacing: 0; font-size: .85rem; }
.code-box.small { padding: .5rem .8rem; margin-bottom: .5rem; border-width: 1.5px; }
.code-box.small .code-value { font-size: 1.35rem; }
.code-section .code-help { margin-bottom: .5rem; font-size: .8rem; }
/* v3.5.1: masked recovery code in My Shifts */
.code-mask { background: none; border: 0; padding: .1rem .2rem; margin: -.1rem -.2rem; border-radius: 6px; cursor: pointer; text-align: left; }
.code-mask:focus-visible, .code-eye:focus-visible, .code-copy:focus-visible { outline: 2px solid var(--glen-blue-light); outline-offset: 2px; }
.is-masked .code-mask { color: #8ea2c2; letter-spacing: .2em; }
.code-tools { display: flex; gap: .45rem; align-items: center; flex: none; }
.code-eye { display: inline-flex; align-items: center; gap: .35rem; font-family: var(--font-ui); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: #dbe5f3; background: #16233d; border: 1.5px solid #2c3f63; border-radius: 8px; padding: .45rem .7rem; cursor: pointer; }
.code-eye:hover { border-color: var(--glen-blue-light); color: #fff; }
.eye-icon { width: 16px; height: 10px; border: 2px solid currentColor; border-radius: 50% / 60%; position: relative; }
.eye-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: currentColor; }
.code-eye[aria-pressed="false"] .eye-icon::before { content: ''; position: absolute; left: -4px; right: -4px; top: 50%; height: 2px; margin-top: -1px; background: currentColor; transform: rotate(-30deg); }

@media (max-width: 900px) {
  .screen-row { flex-direction: column; gap: 1.4rem; }
  .screen-row > .title-card, .board-card { flex: none; width: 100%; max-width: 560px; }
}
@media (max-width: 640px) {
  #title-screen, #gameover-screen { padding: 1rem .8rem 2.5rem; }
  .board-card { padding: .85rem .8rem .9rem; }
  .shifts-summary { grid-template-columns: 1fr 1fr; }
  .shifts-summary div:last-child { grid-column: span 2; }
  .shifts-table { font-size: .76rem; }
  .shifts-table th, .shifts-table td { padding: .35rem .3rem; }
  .shifts-table th:nth-child(5), .shifts-table td:nth-child(5) { display: none; }
  .code-value { font-size: 1.5rem; letter-spacing: .1em; }
  .code-box.small { flex-wrap: wrap; gap: .5rem; }
  .code-box.small .code-value { font-size: 1.2rem; }
  .code-box.small.is-masked .code-mask { letter-spacing: .02em; }
}

/* v3.5.2: name required to clock in (only while scores are online and this device has no confirmed name) */
.clockin-hint { display: none; margin: .55rem auto 0; font-family: var(--font-ui); font-weight: 700; font-size: .9rem; letter-spacing: .02em; color: #ffd84d; }
.clockin-hint::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: .45rem; border-radius: 50%; background: #ffd84d; box-shadow: 0 0 0 3px rgba(255,216,77,.22); vertical-align: middle; }
.needs-name .clockin-hint { display: block; }
.name-skip-row { margin-top: .2rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.name-skip-row[hidden] { display: none; }
