/* =========================================================
   Night Shift Inu — time clock mockup
   Vanilla CSS, no build step. Fonts are bundled in assets/fonts.
   ========================================================= */

@font-face { font-family: "Bebas Neue";    src: url("assets/fonts/BebasNeue-Regular.ttf") format("truetype");    font-display: swap; }
@font-face { font-family: "Special Elite"; src: url("assets/fonts/SpecialElite-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Share Tech Mono"; src: url("assets/fonts/ShareTechMono-Regular.ttf") format("truetype"); font-display: swap; }

:root {
  --navy-0: #050a14;
  --navy-1: #08101d;
  --navy-2: #0d1727;
  --navy-3: #14233a;
  --paper: #f1e8cf;
  --paper-2: #e6dab8;
  --ink: #241d10;
  --in: #2fbf5b;
  --in-ink: #1c9a47;
  --out: #ea4a4f;
  --out-ink: #cf3338;
  --vest: #d8e82e;
  --amber: #ffb23e;
  --brass-1: #f0cf7b;
  --brass-2: #b8902f;
  --brass-3: #6e4f17;
  --text: #e8eefb;
  --muted: #8ea0bd;
  --f-head: "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --f-type: "Special Elite", "Courier New", monospace;
  --f-mono: "Share Tech Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--navy-0); color: var(--text); }
body { font-family: var(--f-mono); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* ---------- room ---------- */
.room {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  background:
    radial-gradient(900px 420px at 45% -8%, rgba(150, 230, 205, .13), transparent 62%),
    linear-gradient(180deg, #0b1424 0%, #08101d 62%, #060a13 100%);
}
.vignette { position: absolute; inset: 0; pointer-events: none; z-index: 40;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
.dim { position: absolute; inset: 0; pointer-events: none; z-index: 41; background: #000; opacity: 0;
  animation: flick-dim 11s infinite; }

/* ---------- header ---------- */
.top {
  position: relative; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  padding: 8px 18px;
  background: linear-gradient(180deg, rgba(5, 9, 18, .92), rgba(8, 15, 28, .78));
  border-bottom: 1px solid rgba(216, 232, 46, .18);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--vest); box-shadow: 0 0 0 2px #0a1220, 0 0 14px rgba(216, 232, 46, .25); }
.names h1 { margin: 0; font: 400 30px/1 var(--f-head); letter-spacing: 2.5px; color: #fff; text-shadow: 0 0 14px rgba(216, 232, 46, .22); white-space: nowrap; }
.tagline { margin: 1px 0 0; font: 400 15px/1 var(--f-type); color: var(--vest); letter-spacing: .5px; }
.pills { display: flex; align-items: center; gap: 10px; margin-left: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; letter-spacing: 1px; white-space: nowrap;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); color: var(--text); }
.pill.ticker { background: var(--vest); color: #101606; border-color: transparent; font: 400 20px/1 var(--f-head); letter-spacing: 2px; padding: 4px 14px; }
.pill.ca { color: var(--muted); border-style: dashed; cursor: default; }
.ca-label { color: var(--amber); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.demo-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase;
  color: #ffd9d9; background: rgba(234, 74, 79, .14); border: 1px solid rgba(234, 74, 79, .55); white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--out); box-shadow: 0 0 8px var(--out); animation: blink 1.6s steps(2, jump-none) infinite; display: inline-block; }
@keyframes blink { 50% { opacity: .25; } }
.sound { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 7px 12px; border-radius: 6px; font: 400 13px/1 var(--f-mono); letter-spacing: 1.2px;
  color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .18); transition: .15s; }
.sound:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.sound:focus-visible { outline: 2px solid var(--vest); outline-offset: 2px; }
.sound[aria-pressed="true"] { color: #101606; background: var(--vest); border-color: var(--vest); }
.sound .wave { display: none; }
.sound[aria-pressed="true"] .wave { display: inline; }
.sound[aria-pressed="true"] .mute { display: none; }

/* ---------- page nav (shared by index.html + build.html) ---------- */
.top { flex-wrap: wrap; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: 6px; }
.nav a { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 6px; font: 400 19px/1 var(--f-head); letter-spacing: 2px; text-decoration: none; white-space: nowrap;
  color: var(--muted); border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03); transition: .15s; }
.nav a:hover { color: #fff; border-color: rgba(216, 232, 46, .55); }
.nav a:focus-visible { outline: 2px solid var(--vest); outline-offset: 2px; }
.nav a.on { color: #101606; background: var(--vest); border-color: var(--vest); }
@media (max-width: 1220px) { .demo-pill { display: none; } }

/* ---------- counters ---------- */
.counters {
  position: relative; z-index: 29;
  display: flex; justify-content: center; align-items: stretch; gap: 14px;
  padding: 8px 18px;
  background: linear-gradient(180deg, rgba(4, 8, 16, .85), rgba(7, 13, 25, .55));
}
.cell { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 6px 18px; border-radius: 8px; min-width: 210px; justify-content: center;
  background: linear-gradient(180deg, #05080f, #0a111d); border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .04); }
.cell .lbl { font-size: 13px; letter-spacing: 1.8px; color: var(--muted); }
.cell b { font: 400 38px/1 var(--f-mono); letter-spacing: 2px; min-width: 1.6ch; text-align: right; display: inline-block; transform-origin: 50% 60%; }
.cell small { font-size: 13px; color: var(--muted); letter-spacing: .6px; }
.cell.onshift b { color: var(--amber); text-shadow: 0 0 14px rgba(255, 178, 62, .6); }
.cell.cin b, .cell.cin small { color: var(--in); text-shadow: 0 0 12px rgba(47, 191, 91, .45); }
.cell.cin small { text-shadow: none; }
.cell.cout b, .cell.cout small { color: var(--out); text-shadow: 0 0 12px rgba(234, 74, 79, .45); }
.cell.cout small { text-shadow: none; }
.cell b.bump { animation: bump .42s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes bump { 0% { transform: scale(1.5); filter: brightness(1.8); } 100% { transform: scale(1); filter: none; } }

/* ---------- layout ---------- */
.layout { position: relative; z-index: 10; display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 0; }

/* ---------- stage ---------- */
.stage { position: relative; min-height: 0; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 0 80%, rgba(0, 0, 0, .25) 80% 100%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .028) 0 2px, transparent 2px 46px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 92px),
    linear-gradient(180deg, #0d182a 0%, #0b1424 100%); }
.demo-ribbon { position: absolute; left: 14px; top: 12px; z-index: 35; display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 4px;
  font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: #ffd9d9; background: rgba(40, 8, 10, .7); border: 1px solid rgba(234, 74, 79, .5); backdrop-filter: blur(2px); }

.scene { position: absolute; left: 0; top: 0; width: 860px; height: 610px; transform-origin: 0 0; --cx: 430px; }
.scene.m { width: 400px; height: 700px; --cx: 200px; }

/* fixture + light */
.fixture { position: absolute; z-index: 1; top: 0; left: calc(var(--cx) - 240px); width: 480px; height: 20px; border-radius: 0 0 8px 8px;
  background: linear-gradient(#3a4558, #1b2230); box-shadow: 0 4px 10px rgba(0, 0, 0, .5); display: flex; gap: 10px; justify-content: center; align-items: center; padding: 0 12px; }
.tube { flex: 1; height: 8px; border-radius: 6px; background: #effff8; box-shadow: 0 0 10px 2px rgba(190, 255, 230, .85), 0 6px 28px 6px rgba(160, 255, 220, .4); animation: flick-tube 11s infinite; }
.tube.t2 { animation-duration: 17s; animation-delay: -4s; }
.cone { position: absolute; z-index: 5; pointer-events: none; top: 20px; left: calc(var(--cx) - 330px); width: 660px; height: 590px; mix-blend-mode: screen;
  clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(190, 255, 228, .22), rgba(190, 255, 228, 0) 88%); animation: flick-cone 11s infinite; }
@keyframes flick-tube { 0%, 100% { opacity: 1; } 6% { opacity: .35; } 6.8% { opacity: 1; } 31% { opacity: .55; } 31.8% { opacity: 1; } 58% { opacity: 1; } 59% { opacity: .3; } 60.2% { opacity: 1; } 83% { opacity: .5; } 84% { opacity: 1; } }
@keyframes flick-cone { 0%, 100% { opacity: 1; } 6% { opacity: .35; } 6.8% { opacity: 1; } 31% { opacity: .6; } 31.8% { opacity: 1; } 58% { opacity: 1; } 59% { opacity: .3; } 60.2% { opacity: 1; } 83% { opacity: .55; } 84% { opacity: 1; } }
@keyframes flick-dim { 0%, 100% { opacity: 0; } 6% { opacity: .16; } 6.8% { opacity: 0; } 31% { opacity: .1; } 31.8% { opacity: 0; } 59% { opacity: .18; } 60.2% { opacity: 0; } 83% { opacity: .1; } 84% { opacity: 0; } }

/* wall decor (desktop) */
.sign { position: absolute; z-index: 1; left: 648px; top: 70px; width: 196px; padding: 12px 12px 10px; text-align: center; border-radius: 4px;
  font: 400 15px/1.3 var(--f-head); letter-spacing: 1.5px; color: #111; background: linear-gradient(180deg, #f5df6b, #d9bd35); border: 3px solid #1a1a1a; box-shadow: 0 6px 14px rgba(0, 0, 0, .5), inset 0 0 0 2px rgba(0, 0, 0, .15); transform: rotate(1.5deg); }
.sign b { font-weight: 400; color: #8a1313; }
.sign small { display: block; margin-top: 6px; font: 400 11px/1 var(--f-type); letter-spacing: .3px; color: #3a3210; }
.shelf { position: absolute; z-index: 1; left: 646px; top: 300px; width: 200px; }
.shelf svg { display: block; }
.shelf .plank { height: 12px; margin-top: -2px; background: linear-gradient(#6a4020, #3e2410); border-radius: 2px; box-shadow: 0 8px 14px rgba(0, 0, 0, .55); }
.coffee-led { animation: blink 2.4s steps(2, jump-none) infinite; }
.steam path { opacity: 0; stroke-dasharray: 40; animation: steam 3.2s ease-in-out infinite; }
.steam .s2 { animation-delay: 1s; } .steam .s3 { animation-delay: 2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(8px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-14px); } }

/* ---------- time clock cabinet ---------- */
.cabinet { position: absolute; z-index: 2; left: calc(var(--cx) - 170px); top: 34px; width: 340px; height: 500px; border-radius: 52px 52px 6px 6px;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .07) 0 2px, transparent 2px 6px),
    linear-gradient(90deg, #4c2a12 0%, #774622 14%, #8c5629 50%, #774622 86%, #46260f 100%);
  box-shadow: 0 0 0 3px #2b1709, 0 24px 50px rgba(0, 0, 0, .65), inset 0 0 40px rgba(0, 0, 0, .35); }
.housing { position: absolute; left: 0; top: 0; width: 100%; height: 270px; border-radius: 52px 52px 0 0; }
.bezel { position: absolute; left: 50%; top: 22px; width: 232px; height: 232px; margin-left: -116px; border-radius: 50%;
  background: #120b04; box-shadow: 0 0 0 4px #2b1709, 0 0 0 7px rgba(240, 207, 123, .35), inset 0 0 24px #000, 0 10px 24px rgba(0, 0, 0, .5); display: grid; place-items: center; }
.face { width: 224px; height: 224px; display: block; }
.dial-t1 { font: 400 13px var(--f-head); letter-spacing: 2.5px; fill: #3a2a12; }
.dial-t2 { font: 400 8px var(--f-type); letter-spacing: 1.2px; fill: #5a4624; }
.hand { transform-origin: 120px 120px; }
#sHand { transition: transform .22s cubic-bezier(.35, 2.1, .5, 1); }
.num { font: 400 21px var(--f-head); fill: #2a1d0b; text-anchor: middle; dominant-baseline: central; }
.screw { position: absolute; width: 11px; height: 11px; border-radius: 50%; z-index: 3;
  background: radial-gradient(circle at 35% 30%, #fbe9ad, #9a7425 70%, #4a3410); box-shadow: 0 1px 2px rgba(0, 0, 0, .6); }
.screw::after { content: ""; position: absolute; left: 1px; right: 1px; top: 50%; height: 1.5px; margin-top: -.75px; background: rgba(0, 0, 0, .55); transform: rotate(35deg); }
.s-tl { left: 14px; top: 14px; } .s-tr { right: 14px; top: 14px; } .s-bl { left: 12px; bottom: 12px; } .s-br { right: 12px; bottom: 12px; }
.housing .s-tl { left: 52px; top: 36px; } .housing .s-tr { right: 52px; top: 36px; }

.plate { position: absolute; left: 26px; right: 26px; top: 270px; height: 34px; border-radius: 3px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  background: linear-gradient(180deg, var(--brass-1), var(--brass-2) 55%, var(--brass-3)); box-shadow: 0 2px 6px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .5); color: #2a1b05; }
.plate span { font: 400 20px/1 var(--f-head); letter-spacing: 2.5px; }
.plate em { font: 400 11px/1 var(--f-type); font-style: normal; letter-spacing: 1px; opacity: .85; }

.panel { position: absolute; left: 14px; right: 14px; top: 314px; height: 176px; border-radius: 6px;
  background: linear-gradient(180deg, #2a1708, #3a2210 40%, #2a1708); box-shadow: inset 0 0 22px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(0, 0, 0, .35), 0 1px 0 rgba(255, 255, 255, .06); }
.insert { position: absolute; left: 0; right: 0; top: 8px; text-align: center; font: 400 12px/1 var(--f-mono); letter-spacing: 3px; color: var(--brass-1); opacity: .8; }
.lamps { position: absolute; inset: 0; }
.lamp { position: absolute; top: 60px; width: 64px; text-align: center; font: 400 15px/1 var(--f-head); letter-spacing: 2px; color: rgba(255, 255, 255, .55); }
.lamp.in { left: 14px; } .lamp.out { right: 14px; }
.lamp i { display: block; width: 34px; height: 34px; margin: 0 auto 6px; border-radius: 50%; border: 3px solid #120b04;
  background: radial-gradient(circle at 35% 30%, #3b4a3d, #121a14); box-shadow: inset 0 0 8px #000, 0 0 0 2px rgba(240, 207, 123, .35); transition: background .12s, box-shadow .12s; }
.lamp.in.on i { background: radial-gradient(circle at 35% 30%, #c9ffd8, #2fbf5b 55%, #0e5a26); box-shadow: 0 0 22px 6px rgba(47, 191, 91, .75), inset 0 0 6px rgba(255, 255, 255, .5), 0 0 0 2px rgba(240, 207, 123, .35); }
.lamp.out i { background: radial-gradient(circle at 35% 30%, #4a3b3b, #1a1212); }
.lamp.out.on i { background: radial-gradient(circle at 35% 30%, #ffd0d0, #ea4a4f 55%, #6a1013); box-shadow: 0 0 22px 6px rgba(234, 74, 79, .75), inset 0 0 6px rgba(255, 255, 255, .5), 0 0 0 2px rgba(240, 207, 123, .35); }
.lamp.on { color: #fff; }

.kachunk { position: absolute; left: calc(var(--cx) + 64px); top: 296px; z-index: 12; pointer-events: none; opacity: 0; font: 400 38px/1 var(--f-head); letter-spacing: 2px; color: var(--vest);
  -webkit-text-stroke: 2px #101606; paint-order: stroke fill; text-shadow: 3px 3px 0 #101606; transform: rotate(-8deg); white-space: nowrap; }

/* pedestal covers card bottoms, sells the "slot" illusion */
.pedestal { position: absolute; z-index: 4; left: calc(var(--cx) - 190px); top: 534px; width: 380px; height: 72px; }
.pedestal .lip { position: relative; height: 18px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--brass-1), var(--brass-2) 60%, var(--brass-3)); box-shadow: 0 -4px 10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .55); }
.pedestal .lip::before { content: ""; position: absolute; left: 50%; top: -9px; width: 194px; height: 11px; margin-left: -97px; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(8, 4, 0, .85) 55%, #000 100%); }
.pedestal .slit { position: absolute; left: 50%; top: 5px; width: 170px; height: 7px; margin-left: -85px; border-radius: 4px; background: #000; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .9), 0 1px 0 rgba(255, 255, 255, .25); }
.pedestal .base { height: 54px; background: linear-gradient(180deg, #2b313d, #12161e); border-radius: 0 0 6px 6px; box-shadow: 0 16px 24px rgba(0, 0, 0, .6); }
.floor { position: absolute; z-index: 0; left: -2400px; right: -2400px; top: 606px; height: 120px;
  background: repeating-linear-gradient(90deg, #0b0f17 0 58px, #0e131d 58px 60px), #0b0f17; border-top: 2px solid rgba(255, 255, 255, .08); box-shadow: inset 0 14px 24px rgba(0, 0, 0, .6); }
.scene.m .floor { display: none; }

/* ---------- card rack ---------- */
.rack { position: absolute; left: 40px; top: 330px; width: 210px; height: 232px; }
.rack-label { position: absolute; z-index: 4; left: 0; right: 0; top: -24px; text-align: center; font: 400 15px/1 var(--f-head); letter-spacing: 3px; color: var(--brass-1); text-shadow: 0 1px 0 #000; }
.rack-cards { position: absolute; z-index: 2; left: 0; top: 0; width: 100%; height: 100%; }
.rack-body { position: absolute; z-index: 4; left: 0; right: 0; top: 122px; bottom: 0; border-radius: 4px 4px 8px 8px;
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 6px), linear-gradient(180deg, #5d3519, #3b2110);
  box-shadow: inset 0 3px 0 rgba(240, 207, 123, .55), inset 0 0 18px rgba(0, 0, 0, .55), 0 10px 20px rgba(0, 0, 0, .55); display: grid; place-items: center; }
.rack-body span { font: 400 14px/1 var(--f-mono); letter-spacing: 3px; color: rgba(240, 207, 123, .55); }
.rack .card { transition: none; }
.scene.m .rack { left: calc(var(--cx) - 105px); top: 614px; height: 86px; }
.scene.m .rack-body { top: 46px; }
.scene.m .rack-label { top: 56px; z-index: 5; }
.scene.m .rack-body span { display: none; }
.scene.m .sign, .scene.m .shelf { display: none; }

/* ---------- time card (paper) ---------- */
.card { position: absolute; left: 0; top: 0; width: 150px; height: 230px; background: var(--paper); border-radius: 3px; color: var(--ink); font-family: var(--f-type); overflow: hidden; will-change: transform;
  background-image:
    radial-gradient(circle at 50% 7px, #000 0 3px, transparent 3.5px),
    linear-gradient(135deg, rgba(0, 0, 0, 0) 92%, rgba(0, 0, 0, .12) 100%),
    linear-gradient(180deg, #f6eed6, #ebdfbd);
  box-shadow: 0 8px 16px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(80, 60, 20, .25); }
.card.blank .f { visibility: hidden; }
.card .c-head { position: absolute; left: 8px; right: 8px; top: 12px; text-align: center; border-bottom: 2px double rgba(36, 29, 16, .6); padding-bottom: 4px; }
.card .c-head b { display: block; font: 400 15px/1 var(--f-head); letter-spacing: 2px; }
.card .c-head i { display: block; font: 400 9px/1 var(--f-type); font-style: normal; letter-spacing: 1.5px; margin-top: 3px; opacity: .75; }
.card .row { position: absolute; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; line-height: 1; }
.card .row label { opacity: .6; letter-spacing: .8px; }
.card .r-emp { top: 50px; } .card .r-no { top: 68px; font-size: 10px; opacity: .85; }
.card .r-time { top: 141px; } .card .r-sol { top: 163px; }
.card .r-time .v { font-size: 16px; font-weight: 700; letter-spacing: .5px; }
.card .r-sol .v { font-size: 14px; font-weight: 700; }
.card .v { border-bottom: 1px dotted rgba(36, 29, 16, .45); min-width: 64px; text-align: right; min-height: 12px; }
.card .stamp-zone { position: absolute; left: 10px; right: 10px; top: 84px; height: 52px; border: 1px dashed rgba(36, 29, 16, .22); border-radius: 3px; }
.card .lines { position: absolute; left: 0; right: 0; top: 190px; bottom: 0; background: repeating-linear-gradient(180deg, transparent 0 11px, rgba(60, 100, 150, .35) 11px 12px); }
.card .lines::before { content: "IN ________   OUT ________"; position: absolute; left: 8px; top: 2px; font: 400 9px var(--f-type); opacity: .5; letter-spacing: .5px; white-space: nowrap; }
.stamp { position: absolute; left: 50%; top: 86px; margin-left: -45px; width: 90px; text-align: center; padding: 0 0 1px; opacity: 0; border: 3px solid currentColor; border-radius: 7px; font: 400 40px/1 var(--f-head); letter-spacing: 3px; transform-origin: 50% 50%; mix-blend-mode: multiply; filter: url(#inkRough); }
.stamp::after { content: ""; position: absolute; inset: 2px; border: 1.5px solid currentColor; border-radius: 4px; opacity: .8; }
.stamp.in { color: var(--in-ink); } .stamp.out { color: var(--out-ink); }
.card.is-in .stamp, .card.is-out .stamp { opacity: .93; transform: rotate(-7deg); }
.card.is-out .stamp { transform: rotate(5deg); }
.ink-ring { position: absolute; left: 50%; top: 110px; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .85); opacity: 0; pointer-events: none; }

.rack-card { position: absolute; }
.rack-card.hidden { visibility: hidden; }

/* ---------- shift change overlay ---------- */
.shift-change { position: absolute; z-index: 30; inset: 0; display: grid; place-items: center; background: rgba(3, 6, 12, .72); opacity: 0; pointer-events: none; transition: opacity .35s; }
.shift-change.show { opacity: 1; }
.shift-change div { font: 400 54px/1 var(--f-head); letter-spacing: 6px; color: var(--vest); text-align: center; text-shadow: 0 0 22px rgba(216, 232, 46, .45); }
.shift-change small { display: block; margin-top: 10px; font: 400 14px var(--f-mono); letter-spacing: 3px; color: var(--muted); text-shadow: none; }

/* ---------- shift log ---------- */
.log { position: relative; z-index: 12; display: flex; flex-direction: column; min-height: 0; border-left: 1px solid rgba(255, 255, 255, .08);
  background: linear-gradient(180deg, rgba(7, 12, 22, .88), rgba(5, 9, 17, .94)); box-shadow: -10px 0 24px rgba(0, 0, 0, .35); }
.log-head { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 14px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.log-head h2 { margin: 0; font: 400 26px/1 var(--f-head); letter-spacing: 3px; color: var(--paper); }
.log-sub { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--out); }
.entries { list-style: none; margin: 0; padding: 12px 12px 18px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, #000 0, #000 88%, transparent 100%); }
.entries::-webkit-scrollbar { display: none; }
.log-empty { position: absolute; left: 0; right: 0; top: 120px; text-align: center; color: var(--muted); font-size: 13px; letter-spacing: 1px; pointer-events: none; }
.log-empty.hide { display: none; }
.entry { position: relative; display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 3px; align-items: center;
  margin: 0 0 9px; padding: 8px 12px 8px 10px; border-radius: 3px; color: var(--ink); font-family: var(--f-type);
  background: linear-gradient(180deg, #f4ecd3, #e8dcb9); box-shadow: 0 4px 10px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(80, 60, 20, .25); transform: rotate(var(--rot, 0deg)); }
.entry::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; border-radius: 3px 0 0 3px; background: var(--c); }
.entry.in { --c: var(--in); } .entry.out { --c: var(--out); }
.entry .chip { grid-row: 1 / span 2; display: grid; place-items: center; width: 46px; height: 38px; border: 3px solid var(--sc); color: var(--sc); border-radius: 6px; font: 400 25px/1 var(--f-head); letter-spacing: 2px; transform: rotate(-5deg); background: rgba(255, 255, 255, .25); }
.entry.in .chip { --sc: var(--in-ink); } .entry.out .chip { --sc: var(--out-ink); transform: rotate(4deg); }
.entry .who { font-size: 14px; letter-spacing: .5px; font-weight: 700; }
.entry .amt { font-size: 15px; font-weight: 700; text-align: right; }
.entry .amt small { font-size: 11px; font-weight: 400; opacity: .7; }
.entry .when { font-size: 11px; opacity: .7; grid-column: 2; }
.entry .state { font-size: 11px; opacity: .75; text-align: right; letter-spacing: .6px; text-transform: uppercase; }
.entry.pending { visibility: hidden; }
.entry.land { animation: land .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes land { 0% { transform: rotate(var(--rot, 0deg)) scale(.7); filter: brightness(1.6); } 100% { transform: rotate(var(--rot, 0deg)) scale(1); filter: none; } }

.flying-clone { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; width: 150px; height: 230px; transform-origin: 0 0; margin: 0; }

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 820px) {
  .room { height: auto; min-height: 100vh; display: block; }
  .top { flex-wrap: wrap; gap: 10px 12px; padding: 10px 12px; }
  .names h1 { font-size: 25px; }
  .logo { width: 42px; height: 42px; }
  .pills { margin-left: 0; order: 3; width: 100%; }
  .nav { order: 4; width: 100%; margin-left: 0; }
  .nav a { flex: 1; justify-content: center; padding: 9px 8px; font-size: 18px; }
  .tools { margin-left: auto; gap: 8px; order: 2; }
  .demo-pill { display: none; }
  .sound { padding: 7px 10px; }
  .counters { gap: 6px; padding: 8px 8px; }
  .cell { min-width: 0; flex: 1; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; }
  .cell b { font-size: 30px; text-align: center; }
  .cell .lbl { font-size: 11px; letter-spacing: 1.2px; }
  .cell small { font-size: 11px; }
  .layout { display: block; }
  .stage { height: 420px; }
  .demo-ribbon { left: 8px; top: 8px; font-size: 11px; }
  .log { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); height: 460px; box-shadow: none; }
  .log-empty { top: 100px; }
}
@media (max-width: 820px) { .kachunk { font-size: 30px; left: calc(var(--cx) + 52px); top: 292px; } }
@media (max-width: 380px) {
  .names h1 { font-size: 22px; letter-spacing: 1.8px; }
  .pill { padding: 5px 10px; font-size: 13px; }
}

/* short desktop windows */
@media (min-width: 821px) and (max-height: 640px) {
  .cell b { font-size: 30px; }
  .top { padding: 6px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tube, .cone, .dim, .steam path, .dot, .coffee-led { animation: none !important; }
  .dim { opacity: 0; }
}

/* ---------- pre-launch banner (both pages) ---------- */
.prebar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 10px; min-height: 34px; padding: 6px 12px; box-sizing: border-box; text-align: center;
  font: 400 13px/1.25 var(--f-mono); letter-spacing: .6px; color: #101606; background: linear-gradient(180deg, #e6f55a, #c3d520); border-bottom: 2px solid #8f9f10; }
.prebar b { font-family: var(--f-head); font-weight: 400; font-size: 16px; letter-spacing: 1.6px; }
.prebar a { color: #101606; font-weight: 700; text-decoration: underline; }
.prebar a:focus-visible { outline: 2px solid #101606; outline-offset: 2px; }
@media (min-width: 821px) { body.has-prebar .room { height: calc(100vh - 34px); } }
.nav a.x { opacity: .85; }
.foot a { color: var(--vest); }
