:root {
  font-family: "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  color: #17313a;
  background: #0d252d;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body, #game-shell { width: 100%; height: 100%; margin: 0; overflow: hidden; }

#game-shell {
  position: relative;
  background: radial-gradient(circle at 50% 25%, #316876, #102f38 72%);
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
}

.hidden { display: none !important; }

.game-entry {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(74,174,176,.2), transparent 34%),
    linear-gradient(145deg, rgba(8,29,36,.88), rgba(18,55,65,.94));
  color: #fff6e5;
  opacity: 1;
  transition: opacity .42s ease, transform .55s cubic-bezier(.2,.8,.2,1);
}
.game-entry::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: repeating-linear-gradient(125deg, transparent 0 88px, rgba(255,255,255,.025) 88px 90px);
  transform: rotate(-2deg);
  pointer-events: none;
}
.game-entry.exiting { opacity: 0; transform: scale(1.035); pointer-events: none; }
.entry-hero {
  position: relative;
  display: grid;
  justify-items: center;
  width: min(720px, calc(100% - 42px));
  text-align: center;
  transition: opacity .34s ease, transform .44s cubic-bezier(.2,.8,.2,1);
}
.entry-logo-lockup {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  padding: 26px 32px 23px;
  border: 4px solid rgba(255,255,255,.88);
  border-radius: 26px;
  background: #173e4a;
  box-shadow: 0 12px 0 #0b252d, 0 30px 70px rgba(0,0,0,.28);
  transform: rotate(-1deg);
}
.entry-logo-lockup img { width: clamp(245px, 34vw, 390px); height: auto; }
.entry-game-title { display: flex; align-items: flex-start; flex-direction: column; padding: 0 0 2px 22px; border-left: 2px solid rgba(255,246,229,.28); }
.entry-game-title span { color: #7ed4b2; font-size: 15px; font-weight: 950; letter-spacing: .32em; }
.entry-game-title strong { color: #fff6e5; font: 800 clamp(34px, 5vw, 58px)/.9 "Fredoka", "Avenir Next", sans-serif; letter-spacing: -.04em; }
.entry-subtitle { margin: 32px 0 44px; color: #a9d7d3; font-size: 12px; font-weight: 900; letter-spacing: .24em; }
.press-any-button {
  min-width: 260px;
  padding: 15px 28px;
  border: 2px solid rgba(255,246,229,.5);
  border-radius: 999px;
  background: rgba(255,246,229,.08);
  box-shadow: none;
  color: #fff6e5;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .18em;
  animation: press-any-pulse 1.1s ease-in-out infinite alternate;
}
.press-any-button:hover { transform: none; background: rgba(255,246,229,.16); box-shadow: none; }
.game-entry.mode-open .entry-hero { opacity: 0; transform: translateY(-24px) scale(.96); pointer-events: none; }
/* Mode select lives on the entry screen itself — no modal card, just the
   options styled onto the page after you press start. */
.mode-select {
  position: absolute;
  width: min(660px, calc(100% - 38px));
  padding: 0;
  color: #fff6e5;
  text-align: center;
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .32s ease, transform .46s cubic-bezier(.18,.86,.24,1.1);
}
.mode-select.visible { opacity: 1; transform: translateY(0) scale(1); }
.mode-kicker { color: #7ed4b2; font-size: 10px; font-weight: 950; letter-spacing: .24em; }
.mode-select h1 { margin: 8px 0 26px; color: #fff6e5; font: 800 clamp(34px,5vw,46px)/1 "Fredoka", sans-serif; letter-spacing: -.02em; }
.mode-options { display: grid; gap: 14px; text-align: left; }
.mode-card {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  padding: 14px 18px;
  border: 3px solid rgba(255,255,255,.72);
  border-radius: 20px;
  background: #173e4a;
  box-shadow: 0 7px 0 #0b252d, 0 20px 40px rgba(0,0,0,.28);
  color: #fff6e5;
  text-align: left;
  transition: transform .14s ease, box-shadow .14s ease;
}
.mode-card.active { border-color: #6fd0bf; box-shadow: 0 7px 0 #0b252d, 0 0 0 4px rgba(111,208,191,.28), 0 20px 40px rgba(0,0,0,.3); }
.mode-card.active:hover { transform: translateY(-2px); box-shadow: 0 9px 0 #0b252d, 0 0 0 4px rgba(111,208,191,.34), 0 22px 44px rgba(0,0,0,.32); }
.mode-card:focus-visible { outline: 4px solid #f6be3e; outline-offset: 4px; }
.mode-number { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 15px; background: #4aaeb0; color: #0b252d; font: 800 22px "Fredoka"; }
.mode-card > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.mode-card strong { font: 800 20px "Fredoka"; letter-spacing: .02em; color: #fff6e5; }
.mode-card small { color: #a9d7d3; font-size: 11px; font-weight: 700; }
.mode-card b { padding: 7px 11px; border-radius: 999px; background: #55c48b; color: #123c31; font-size: 9px; letter-spacing: .12em; }
.mode-card.coming-soon { opacity: .5; cursor: not-allowed; filter: grayscale(.35); }
.mode-card.coming-soon b { background: rgba(220,231,229,.5); color: #cfe0de; }
@keyframes press-any-pulse { to { opacity: .58; transform: scale(.985); } }

.character-select {
  position: absolute;
  inset: 0;
  display: flex;
  min-height: 640px;
  overflow: hidden;
  background: #bfDEdc;
  z-index: 30;
}

.character-stage { position: relative; flex: 1 1 auto; min-width: 0; }
#character-canvas { display: block; width: 100%; height: 100%; outline: none; touch-action: none; }
.character-stage-heading { position: absolute; top: 28px; left: 32px; display: flex; flex-direction: column; gap: 18px; pointer-events: none; }
.character-logo { width: fit-content; padding: 14px 22px; border-radius: 10px; background: #16323b; box-shadow: 0 4px 0 rgba(9,45,59,.45), 0 10px 20px rgba(16,24,40,.08); }
.character-logo img { display: block; width: auto; height: 26px; }
.character-stage-heading span { display: block; margin-bottom: 6px; color: #115673; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.character-stage-heading h1 { margin: 0; color: #0f2f3a; font: 700 40px/1.04 "Avenir Next", sans-serif; letter-spacing: -.02em; }
.camera-hint { position: absolute; left: 32px; bottom: 26px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 9999px; background: rgba(255,255,255,.72); color: #2f5d63; font-size: 13px; font-weight: 500; pointer-events: none; }
.camera-hint i { width: 7px; height: 7px; border-radius: 50%; background: #18779f; }

.character-panel { display: flex; flex: 0 0 396px; flex-direction: column; width: 396px; min-height: 0; background: #fbf8ef; box-shadow: -14px 0 40px rgba(9,45,59,.16); }
.character-panel > header { flex: 0 0 auto; padding: 22px 26px; background: #16323b; }
.character-panel > header > span { color: #8fbac4; font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.character-panel > header h2 { margin: 6px 0 0; color: #f6f2e7; font: 700 20px/1.15 "Avenir Next", sans-serif; }
.character-panel > header p { margin: 4px 0 0; color: #a9cbd3; font-size: 13px; }
.character-options { display: flex; flex: 1 1 auto; flex-direction: column; gap: 26px; min-height: 0; padding: 24px 26px 8px; overflow-y: auto; }
.custom-section { display: flex; flex-direction: column; gap: 8px; }
.custom-section > label { color: #5f7a82; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.custom-section input { min-height: 44px; padding: 0 12px; border: 0; border-radius: 4px; outline: none; background: #fff; box-shadow: 0 0 0 1px #c5d0d3; color: #17313a; font: 400 14px inherit; }
.custom-section input:hover { box-shadow: 0 0 0 1px #81969c; }
.custom-section input:focus { box-shadow: 0 0 0 3px rgba(68,179,227,.7); }
.custom-section small { color: #667b82; font-size: 12px; }
.option-grid { display: grid; gap: 8px; }
.option-grid.two { grid-template-columns: repeat(2, 1fr); }
.option-grid.three { grid-template-columns: repeat(3, 1fr); }
.option-chip { min-height: 44px; padding: 0 8px; border: 1.5px solid #c7d0d3; border-radius: 4px; background: #fff; box-shadow: none; color: #405860; font: 500 13px inherit; letter-spacing: 0; transition: all .15s ease-in-out; }
.option-chip:hover { transform: none; box-shadow: none; border-color: #81969c; }
.option-chip.selected { border-color: #156789; background: #18779f; color: #fff; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 10px; }
.color-swatch { width: 42px; height: 42px; padding: 0; border: 2px solid #fbf8ef; border-radius: 9999px; background: var(--swatch); box-shadow: 0 0 0 1px rgba(16,24,40,.18); transition: box-shadow .15s ease-in-out; }
.color-swatch:hover { transform: none; box-shadow: 0 0 0 2px #79aab7; }
.color-swatch.selected { box-shadow: 0 0 0 3px #18779f; }
.scrub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scrub-option { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 4px; border: 1.5px solid #c7d0d3; border-radius: 6px; background: #fff; box-shadow: none; color: #405860; font: 500 12px inherit; letter-spacing: 0; }
.scrub-option:hover { transform: none; box-shadow: none; border-color: #81969c; }
.scrub-option i { width: 34px; height: 34px; border-radius: 50%; background: var(--swatch); }
.scrub-option.selected { border-color: #156789; background: rgba(24,119,159,.12); color: #115673; }
.character-panel > footer { display: flex; flex: 0 0 auto; flex-direction: column; gap: 10px; padding: 18px 26px 24px; border-top: 1px solid #dfe5e6; background: #fbf8ef; }
.character-panel .start-shift { min-height: 48px; border-radius: 4px; background: #156789; box-shadow: 0 3px 0 #0e465d; font-size: 16px; }
.character-panel .start-shift:hover { transform: none; background: #115673; box-shadow: 0 3px 0 #0e465d; }
.custom-actions { display: flex; gap: 8px; }
.custom-actions button { flex: 1; min-height: 40px; padding: 8px; border: 1.5px solid #c7d0d3; border-radius: 4px; background: transparent; box-shadow: none; color: #405860; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.custom-actions button:hover { transform: none; box-shadow: none; background: rgba(16,24,40,.05); }
.character-saved { display: flex; align-items: center; justify-content: center; gap: 7px; color: #2d6244; font-size: 13px; font-weight: 500; animation: tech-rise .25s ease-out; }
.character-saved img { width: 16px; height: 16px; }

@keyframes tech-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
  .character-panel { flex-basis: 360px; width: 360px; }
  .character-stage-heading h1 { font-size: 32px; }
}

.sales-call-modal {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 34px;
  background: rgba(8,28,34,.62);
  backdrop-filter: blur(7px);
  z-index: 45;
}

.first-day-modal {
  position: absolute;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(18,48,57,.72);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease;
}
.first-day-modal.visible { opacity: 1; pointer-events: auto; }

.first-day-card {
  width: min(600px, calc(100% - 36px));
  padding: 42px 42px 38px;
  border: 5px solid white;
  border-radius: 30px;
  background: #fffaf0;
  box-shadow: 0 18px 0 #173e4a, 0 28px 42px rgba(14,40,48,.3);
  text-align: center;
  opacity: 0;
  transform: translateY(24px) scale(.94);
  transition: opacity .36s ease, transform .52s cubic-bezier(.18,.86,.24,1.12);
}
.first-day-modal.visible .first-day-card {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: .08s;
}

.first-day-card h2 { margin: 0 0 30px; color: #173e4a; font: 800 46px/1.04 "Fredoka"; }
.first-day-card button { width: 100%; border: 0; border-radius: 12px; background: #e95c52; color: white; font-weight: 950; letter-spacing: .08em; }

.tutorial-coach {
  position: absolute;
  z-index: 55;
  left: 20px; top: 218px;
  width: 260px;
  transform: translateY(-7px) scale(.96);
  padding: 12px 14px 11px;
  border: 3px solid #ffd85c;
  border-radius: 18px;
  background: rgba(255,250,240,.97);
  box-shadow: 0 6px 0 #173e4a, 0 13px 26px rgba(17,47,56,.24);
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.9,.25,1.2);
}
.tutorial-coach.show { opacity: 1; transform: translateY(0) scale(1); }
.tutorial-coach span { display:inline-block; padding:4px 7px; border-radius:999px; background:#e95c52; color:#fff; font-size:7px; font-weight:950; letter-spacing:.1em; }
.tutorial-coach h2 { margin: 7px 0 3px; color: #173e4a; font: 800 18px/1.05 "Fredoka"; }
.tutorial-coach p { margin: 0; color: #486067; font-size: 11px; line-height: 1.35; }

.inventory-panel.tutorial-focus {
  border-color: #ffd85c;
  box-shadow: 0 8px 0 #173e4a, 0 0 0 6px rgba(255,216,92,.28), 0 0 28px rgba(255,216,92,.62);
  animation: inventory-tutorial-pulse 1s ease-in-out infinite alternate;
}
@keyframes inventory-tutorial-pulse { to { transform: scale(1.035); } }
@keyframes inventory-receive {
  0% { transform: scale(1); }
  45% { transform: scale(1.22) rotate(-4deg); box-shadow: 0 0 0 5px rgba(246,190,62,.45); }
  100% { transform: scale(1); }
}
.sales-call-window {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(360px, .95fr);
  width: min(1120px, 92vw);
  height: min(690px, 82vh);
  min-height: 540px;
  overflow: hidden;
  border: 5px solid white;
  border-radius: 26px;
  background: #fbf8ef;
  box-shadow: 0 14px 0 #16323b, 0 36px 90px rgba(0,0,0,.42);
}
.sales-call-video { position: relative; min-width: 0; background: #dbe4e6; }
#sales-call-canvas { display: block; width: 100%; height: 100%; outline: none; }
.sales-call-video > span { position: absolute; top: 18px; left: 18px; padding: 7px 10px; border-radius: 7px; background: #e95c52; color: white; font-size: 10px; font-weight: 900; letter-spacing: .13em; box-shadow: 0 3px 0 #a83e39; }
.sales-call-video > span.call-clock-note { left: auto; right: 18px; background: #f2b03a; color: #3a2a05; box-shadow: 0 3px 0 #c9901f; }
.sales-call-copy { display: flex; flex-direction: column; min-width: 0; padding: 34px; background: #fbf8ef; }
.sales-call-copy > div:first-child > span { color: #18779f; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.sales-call-copy h2 { margin: 8px 0 0; color: #16323b; font: 800 34px/1 "Avenir Next", sans-serif; }
.sales-call-copy > p { flex: 1 1 auto; margin: 34px 0 22px; color: #294850; font-size: clamp(20px, 2vw, 27px); font-weight: 650; line-height: 1.34; }
.sales-call-choices { display: flex; flex-direction: column; gap: 10px; }
.phone-skip-typing { align-self: flex-end; min-height: 32px; margin: -4px 0 8px; padding: 6px 11px; border: 2px solid #8db6bd; border-radius: 9px; background: #eaf4f3; box-shadow: none; color: #173e4a; font-size: 10px; letter-spacing: .1em; }
.phone-skip-typing:hover { transform: none; border-color: #18779f; background: #d8eeee; box-shadow: none; }
.sales-call-choices button { min-height: 46px; padding: 11px 14px; border: 2px solid #bed0d3; border-radius: 10px; background: white; box-shadow: none; color: #173e4a; text-align: left; font-size: 14px; letter-spacing: 0; }
.sales-call-choices button:hover { transform: translateY(-1px); border-color: #18779f; box-shadow: 0 3px 0 #9abac1; }
.sales-call-hangup { margin-top: 14px; min-height: 46px; border-radius: 10px; background: #e95c52; box-shadow: 0 4px 0 #ae3e39; }

@media (max-width: 860px) {
  .sales-call-modal { padding: 16px; }
  .sales-call-window { grid-template-columns: 1fr; grid-template-rows: 42% 58%; height: 94vh; min-height: 0; }
  .sales-call-copy { padding: 22px; }
  .sales-call-copy h2 { font-size: 27px; }
  .sales-call-copy > p { margin: 18px 0 14px; font-size: 18px; }
}

#hud {
  position: absolute;
  inset: 18px 20px auto;
  display: grid;
  grid-template-columns: 250px 1fr 210px;
  gap: 18px;
  align-items: start;
  pointer-events: none;
  z-index: 10;
}

.identity-stack { display: flex; flex-direction: column; gap: 10px; }

.brand-chip, .round-stats, .order-card {
  border: 3px solid rgba(255,255,255,.82);
  box-shadow: 0 6px 0 rgba(17,52,61,.42), 0 10px 24px rgba(8,24,29,.2);
}

.brand-chip {
  display: flex;
  align-items: center;
  background: #173e4a;
  color: white;
  border-radius: 18px;
  min-height: 60px;
  padding: 13px 18px;
  font-weight: 900;
  letter-spacing: .04em;
}

.brand-chip img { display: block; width: 148px; height: auto; }

.player-guide {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 11px;
  min-height: 116px;
  padding: 11px;
  border: 3px solid rgba(255,255,255,.88);
  border-radius: 18px;
  background: rgba(255,250,240,.97);
  box-shadow: 0 6px 0 rgba(17,52,61,.42), 0 10px 24px rgba(8,24,29,.16);
}

.player-portrait {
  --portrait-skin: #f0c49a;
  --portrait-hair: #3a2a1e;
  --portrait-scrubs: #55a099;
  position: relative;
  align-self: start;
  width: 66px;
  height: 72px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 16px;
  background: linear-gradient(to bottom, var(--portrait-skin) 0 70%, var(--portrait-scrubs) 70% 100%);
  box-shadow: 0 0 0 2px #b8c9cc, 0 5px 0 rgba(23,62,74,.2);
}
.portrait-hair { position: absolute; inset: 0 0 auto; height: 19px; background: var(--portrait-hair); box-shadow: -7px 10px 0 -2px var(--portrait-hair), 7px 10px 0 -2px var(--portrait-hair); }
.portrait-eye { position: absolute; top: 31px; width: 7px; height: 7px; border-radius: 2px; background: #2d2926; }
.portrait-eye.left { left: 16px; }
.portrait-eye.right { right: 16px; }
.portrait-mouth { position: absolute; left: 50%; top: 48px; width: 19px; height: 7px; transform: translateX(-50%); border-bottom: 3px solid #754b43; border-radius: 0 0 12px 12px; }
.mood-unhappy .portrait-mouth, .mood-angry .portrait-mouth { top: 51px; border: 0; border-top: 3px solid #754b43; border-radius: 12px 12px 0 0; }
.mood-angry .portrait-eye.left { transform: rotate(18deg); }
.mood-angry .portrait-eye.right { transform: rotate(-18deg); }

.player-guide-copy { min-width: 0; }
.player-guide-copy > span { display: inline-block; margin-bottom: 5px; padding: 3px 7px; border-radius: 999px; background: #dceae8; color: #2d6c5a; font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.mood-unhappy .player-guide-copy > span { background: #fff0bd; color: #835f09; }
.mood-angry .player-guide-copy > span { background: #ffd5d1; color: #9f312b; }
.player-guide-copy small { display: block; color: #73898f; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.player-guide-copy strong { display: block; margin-top: 3px; color: #173e4a; font-size: 12px; font-weight: 950; line-height: 1.08; }
.player-guide-copy p { margin: 5px 0 0; color: #637a80; font-size: 9px; font-weight: 650; line-height: 1.25; }

.orders { display: flex; justify-content: center; gap: 10px; }

.order-card {
  position: relative;
  min-width: 122px;
  overflow: hidden;
  background: #fffaf0;
  border-radius: 15px;
  padding: 9px 11px 10px;
  text-align: center;
  transform: rotate(-1deg);
}

.order-card:nth-child(even) { transform: rotate(1deg); }
.order-card.overdue { border-color: #ffb3aa; animation: pulse .72s infinite alternate; }
.order-card .cart-icon { font-size: 24px; }
.order-card strong { display: block; font: 700 13px/1.1 "Fredoka"; }
.order-card small { color: #66808a; font-size: 10px; letter-spacing: .08em; }
.order-card .patience { height: 6px; margin-top: 7px; border-radius: 9px; background: #d8e4e2; overflow: hidden; }
.order-card .patience i { display: block; height: 100%; background: #55c48b; transition: width .2s; }
.order-card.overdue .patience i { background: #e95c52; }
.order-card.active { border-color: #72d2dc; padding-bottom: 16px; }
.order-card.active::after {
  content: "IN RESTOCK";
  position: absolute;
  inset: auto 0 0;
  padding: 2px;
  background: #173e4a;
  color: white;
  font-size: 7px;
  letter-spacing: .08em;
}

.round-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fffaf0;
  border-radius: 18px;
  overflow: hidden;
}

.round-stats > div { padding: 8px 13px; text-align: center; }
.round-stats > div + div { background: #173e4a; color: white; }
.timer-wrap { min-width: 112px; }
.stat-label { display: block; font-size: 9px; letter-spacing: .15em; opacity: .68; }
.round-stats strong { font: 700 26px/1 "Fredoka"; }
.round-stats strong.practice { font-size: 17px; letter-spacing: .01em; }

.time-toggle {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 5px 7px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 7px;
  background: rgba(255,255,255,.14);
  box-shadow: none;
  color: white;
  pointer-events: auto;
  font-size: 8px;
  letter-spacing: .08em;
}
.time-toggle:hover { transform: none; box-shadow: none; background: rgba(255,255,255,.24); }
.time-toggle:active { transform: none; box-shadow: none; }
.time-toggle.frozen { background: #f6be3e; border-color: #fff1b9; color: #463607; }
.time-toggle:disabled { cursor: default; opacity: .82; background: rgba(126,212,178,.28); color: #dff8ed; }

.screen-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(590px, calc(100% - 36px));
  transform: translate(-50%, -50%);
  padding: 32px 38px 34px;
  background: rgba(255,250,240,.96);
  border: 5px solid white;
  border-radius: 32px;
  text-align: center;
  box-shadow: 0 14px 0 #173e4a, 0 30px 80px rgba(3,20,26,.4);
  z-index: 20;
}

.eyebrow { color: #e95c52; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
h1, h2 { margin: 7px 0 8px; font-family: "Fredoka", sans-serif; line-height: .95; }
h1 { font-size: clamp(54px, 8vw, 84px); color: #173e4a; letter-spacing: -.04em; }
h1 span { color: #e95c52; }
h2 { font-size: 48px; color: #173e4a; }
.screen-card > p { max-width: 450px; margin: 0 auto 22px; color: #58717a; font-size: 17px; }

.level-map {
  --route-ink: #123037;
  --route-muted: #5d746f;
  --route-paper: #f8f2e3;
  position: absolute;
  inset: 0;
  z-index: 32;
  display: flex;
  flex-direction: column;
  min-height: 620px;
  overflow: hidden;
  color: var(--route-ink);
  background: #0d252b;
  animation: map-enter .45s ease-out both;
}
.route-topbar { z-index: 4; display: flex; flex: 0 0 76px; align-items: center; gap: 22px; height: 76px; padding: 0 26px; border-bottom: 3px solid #0c2228; background: linear-gradient(180deg,#173a42,#123037); box-shadow: 0 6px 20px -8px rgba(0,0,0,.5); color: #eef6f2; }
.route-brand { width: 188px; height: auto; }
.route-divider { width: 2px; height: 34px; border-radius: 2px; background: rgba(255,255,255,.14); }
.route-facility { display: flex; flex-direction: column; min-width: 0; }
.route-facility span { color: #6fb6ab; font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.route-facility strong { margin-top: 1px; color: #fff6e5; font: 800 20px/1.05 "Fredoka", sans-serif; }
.route-star-total { display: grid; grid-template-columns: 18px auto; align-items: center; gap: 0 8px; margin-left: auto; padding: 8px 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; background: rgba(255,255,255,.07); }
.route-star-total img { grid-row: 1 / span 2; width: 18px; height: 18px; }
.route-star-total small { color: #8fc4bb; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.route-star-total strong { color: white; font-size: 13px; }
.route-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 18% 25%,rgba(255,255,255,.9) 0 4%,transparent 24%),radial-gradient(ellipse at 84% 74%,rgba(56,139,128,.14),transparent 28%),linear-gradient(180deg,#edf5f1 0 42%,#d2e6dc 42% 49%,#bfdacb 49% 100%); }
.route-stage::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(31,111,104,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(31,111,104,.075) 1px,transparent 1px),linear-gradient(180deg,transparent 0 47%,rgba(255,255,255,.5) 47% 48%,rgba(57,133,122,.12) 48% 49%,transparent 49%); background-size: 64px 64px,64px 64px,100% 100%; background-position: center; mask-image: radial-gradient(145% 110% at 50% 42%,#000 64%,transparent 100%); }
.route-stage::after { content: "CHICKEN HEALTH  •  PHARMACY SERVICE ROUTE"; position: absolute; left: 50%; bottom: 13px; transform: translateX(-50%); color: rgba(31,111,104,.22); font-size: 10px; font-weight: 900; letter-spacing: .32em; white-space: nowrap; }
.route-board { position: absolute; left: 50%; top: 50%; width: 1160px; height: 600px; transform: translate(-50%,-50%); transform-origin: center; }
.route-landmarks { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.route-landmarks > div { position: absolute; display: grid; grid-template-columns: 30px auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; width: 210px; padding: 11px 14px; border: 1px solid rgba(61,132,121,.16); border-radius: 14px; background: rgba(255,255,255,.28); box-shadow: inset 0 1px rgba(255,255,255,.6); color: rgba(31,111,104,.5); }
.route-landmarks > div:nth-child(1) { left: 46px; top: 70px; }
.route-landmarks > div:nth-child(2) { left: 472px; top: 58px; }
.route-landmarks > div:nth-child(3) { right: 18px; top: 58px; }
.route-landmarks img { grid-row: 1 / span 2; width: 28px; height: 28px; opacity: .42; }
.route-landmarks span { font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.route-landmarks small { margin-top: 2px; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.route-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-path-base,.route-path-guide,.route-path-done { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.route-path-base { stroke: #b9d3c8; stroke-width: 20; opacity: .55; }
.route-path-guide { stroke: #8fb7ab; stroke-width: 5; stroke-dasharray: 2 22; opacity: .9; animation: route-flow 2.4s linear infinite; }
.route-path-done { stroke: url(#route-teal-line); stroke-width: 14; filter: drop-shadow(0 4px 6px rgba(31,111,104,.35)); }
.route-destination-zone { position: absolute; left: 958px; top: 152px; width: 184px; height: 196px; border: 4px dashed rgba(47,143,134,.38); border-radius: 22px; background: linear-gradient(145deg,rgba(255,255,255,.16),rgba(72,154,142,.07)); box-shadow: inset 0 0 0 10px rgba(255,255,255,.08); }
.route-node { position: absolute; z-index: 3; display: block; width: 70px; height: 70px; padding: 0; border: 0; border-radius: 50%; background: #fdf8ec; box-shadow: 0 0 0 6px white,0 0 0 8px rgba(18,48,55,.1),0 12px 20px -8px rgba(18,48,55,.5); color: var(--route-ink); }
.route-node:hover { transform: translateY(-3px); box-shadow: 0 0 0 6px white,0 0 0 8px rgba(18,48,55,.1),0 15px 22px -8px rgba(18,48,55,.55); }
.route-node > b { display: grid; place-items: center; width: 100%; height: 100%; font: 800 26px "Fredoka", sans-serif; }
.route-node > b img { width: 24px; height: 24px; }
.route-node > span { position: absolute; left: 50%; top: calc(100% + 16px); display: flex; flex-direction: column; width: max-content; min-width: 128px; max-width: 210px; transform: translateX(-50%); padding: 8px 14px 9px; border: 1px solid #ece0c7; border-radius: 12px; background: #fdf8ec; box-shadow: 0 10px 24px -10px rgba(18,48,55,.45),0 2px 0 rgba(18,48,55,.06); text-align: center; }
.route-node > span small { color: #1f6f68; font-size: 9px; font-weight: 900; letter-spacing: .16em; }
.route-node > span strong { margin-top: 2px; color: var(--route-ink); font: 800 14px/1.1 "Fredoka", sans-serif; white-space: nowrap; }
.route-node > span em { display: flex; justify-content: center; gap: 2px; margin-top: 5px; font-style: normal; }
.route-node > span em img { width: 13px; height: 13px; }
.route-node > span em img.empty-star,.route-meta b img.empty-star { opacity: .28; filter: grayscale(1); }
.route-node.origin { left: 78px; top: 208px; }
.route-node.current { width: 84px; height: 84px; background: radial-gradient(120% 120% at 50% 25%,#f07a63,#e86a52); color: white; box-shadow: 0 0 0 6px white,0 0 0 9px #e86a52,0 16px 26px -10px rgba(197,80,60,.7); }
.route-node.selected::after { content: ""; position: absolute; inset: -15px; border: 3px solid #e86a52; border-radius: 50%; animation: route-halo 2.2s ease-out infinite; }
.route-node.current > span em { min-width: 58px; }
.route-node.locked { width: 70px; height: 70px; cursor: pointer; background: repeating-linear-gradient(45deg,#f2b03a 0 12px,#22333a 12px 24px); }
.route-node.locked.selected::after { border-color: #2f8f86; }
.route-node.locked > b img { width: 22px; height: 22px; padding: 5px; border-radius: 8px; background: #fdf8ec; }
.route-node.locked > span strong { margin-top: 5px; padding: 3px 8px; border-radius: 6px; background: repeating-linear-gradient(45deg,#f7c65a 0 8px,#efe6cf 8px 16px); color: #8a5a12; font-size: 9px; letter-spacing: .1em; }
.route-node.level-two { left: 325px; top: 395px; }
.route-node.level-three { left: 585px; top: 245px; }
.route-node.level-four { left: 845px; top: 405px; }
.route-node.destination { left: 1020px; top: 220px; width: 60px; height: 60px; background: #3f9c93; color: #eafffb; }
.map-character-token { position: absolute; z-index: 5; left: 360px; top: 430px; width: 86px; height: 116px; transform: translate(-50%,-92%); pointer-events: none; filter: drop-shadow(0 8px 8px rgba(18,48,55,.34)); }
#map-character-canvas { display: block; width: 100%; height: 100%; background: transparent; }
.route-dock { z-index: 5; display: flex; flex: 0 0 116px; align-items: center; gap: 26px; min-height: 116px; padding: 15px 30px; border-top: 3px solid #ece0c7; background: linear-gradient(180deg,#fdf8ec,#f8f2e3); box-shadow: 0 -8px 22px -12px rgba(18,48,55,.4); }
.route-brief { flex: 1 1 auto; min-width: 0; }
.route-brief > span { color: #c5503c; font-size: 9px; font-weight: 900; letter-spacing: .2em; }
.route-brief h2 { margin: 3px 0 3px; color: var(--route-ink); font-size: 25px; line-height: 1; }
.route-brief p { margin: 0; color: var(--route-muted); font-size: 12px; font-weight: 600; }
.route-meta { display: flex; gap: 8px; margin-top: 8px; }
.route-meta > span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid #ece0c7; border-radius: 999px; background: white; }
.route-meta small { color: var(--route-muted); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.route-meta b { color: var(--route-ink); font-size: 11px; }
.route-meta b img { width: 13px; height: 13px; }
.route-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 8px; }
.route-actions button { display: flex; align-items: center; gap: 10px; min-width: 220px; justify-content: center; padding: 14px 28px; border-radius: 16px; background: linear-gradient(180deg,#ef7259,#e86a52); box-shadow: 0 6px 0 #c5503c,0 14px 22px -8px rgba(197,80,60,.6); font-size: 15px; }
.route-actions button img { width: 18px; height: 18px; color: white; filter: brightness(0) invert(1); }
.route-actions button:disabled { cursor: default; background: linear-gradient(180deg,#7e9897,#657e7d); box-shadow: 0 6px 0 #4b6261,0 14px 22px -8px rgba(18,48,55,.35); opacity: 1; }
.route-actions > small { color: var(--route-muted); font-size: 10px; font-weight: 800; }
@keyframes route-flow { to { stroke-dashoffset: -24; } }
@keyframes route-halo { 0% { transform: scale(.9); opacity: .55; } 70%,100% { transform: scale(1.5); opacity: 0; } }
@keyframes map-enter { from { opacity: 0; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
@media (max-height: 760px) { .route-topbar { flex-basis: 66px; height: 66px; } .route-dock { flex-basis: 104px; min-height: 104px; padding-top: 10px; padding-bottom: 10px; } }

.workflow { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 18px 0; }
.workflow div { display: flex; flex-direction: column; align-items: center; gap: 5px; }
.workflow b { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #55c48b; color: white; font: 700 21px "Fredoka"; }
.workflow span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.workflow i { color: #b3c4c3; font: 700 34px "Fredoka"; }

.controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin: 18px 0 22px; color: #58717a; font-size: 12px; }
kbd, .keycap { padding: 4px 7px; border: 0; border-radius: 7px; background: #dceae8; color: #173e4a; box-shadow: 0 3px 0 #b6cbc8; font: 900 11px "Nunito"; }

button {
  border: 0;
  border-radius: 15px;
  padding: 14px 24px;
  background: #e95c52;
  color: white;
  box-shadow: 0 6px 0 #ae3e39;
  cursor: pointer;
  font: 900 14px "Nunito";
  letter-spacing: .06em;
  transition: transform .12s, box-shadow .12s;
}
button:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #ae3e39; }
button:active { transform: translateY(4px); box-shadow: 0 2px 0 #ae3e39; }

.interaction-prompt {
  position: absolute;
  left: 50%;
  bottom: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border: 3px solid white;
  border-radius: 15px;
  background: rgba(255,250,240,.94);
  box-shadow: 0 6px 0 rgba(17,52,61,.4);
  font: 900 14px "Nunito";
  z-index: 12;
}

.toast {
  position: absolute;
  left: 20px;
  top: 218px;
  width: 260px;
  transform: none;
  padding: 10px 13px;
  background: rgba(255,250,240,.97);
  border: 3px solid #e95c52;
  border-radius: 16px;
  color: #173e4a;
  box-shadow: 0 6px 0 rgba(17,52,61,.35), 0 12px 24px rgba(17,52,61,.16);
  font: 900 12px/1.25 "Nunito";
  animation: toast-pop .2s ease-out;
  z-index: 14;
}

.inventory-panel {
  position: absolute;
  left: 20px;
  bottom: 24px;
  width: 210px;
  padding: 11px;
  border: 3px solid white;
  border-radius: 18px;
  background: rgba(23,62,74,.95);
  color: white;
  box-shadow: 0 7px 0 rgba(10,35,42,.45);
  z-index: 11;
}

.inventory-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 2px 8px;
  font-size: 10px;
  letter-spacing: .12em;
}

.inventory-heading strong { color: #9fe4c4; }

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.inventory-slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 2px solid rgba(255,255,255,.35);
  border-radius: 11px;
  background: rgba(255,255,255,.12);
}

.inventory-slot.empty { opacity: .42; }
.inventory-slot img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 3px 1px rgba(10,35,42,.2));
}
.inventory-slot b {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 2px solid white;
  border-radius: 50%;
  background: #e95c52;
  font-size: 11px;
}
.inventory-slot.received-item { animation: inventory-receive .34s cubic-bezier(.2,.9,.3,1.4); }

.bin-icon-layer {
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
}
.bin-icon-layer img {
  position: absolute;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: drop-shadow(0 3px 1px rgba(8,31,38,.4));
}
.item-fly {
  position: fixed;
  z-index: 90;
  width: 58px;
  height: 58px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 7px 3px rgba(9,35,42,.38));
}

.tray-status {
  position: absolute;
  right: 20px;
  top: 112px;
  width: 280px;
  padding: 11px 15px;
  border: 3px solid white;
  border-radius: 15px;
  background: #dce8e7;
  box-shadow: 0 6px 0 rgba(17,52,61,.35);
  color: #173e4a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  text-align: center;
  z-index: 11;
}

.tray-status.not-ready { background: #e95c52; color: white; }
.tray-status.ready { background: #55c48b; color: white; }
.tray-status.inspecting { background: #f6be3e; color: #563e08; }

.par-panel {
  position: absolute;
  right: 20px;
  bottom: 24px;
  width: 380px;
  padding: 13px;
  border: 3px solid rgba(255,255,255,.9);
  border-radius: 18px;
  background: rgba(23,62,74,.96);
  color: white;
  box-shadow: 0 7px 0 rgba(10,35,42,.42), 0 14px 30px rgba(8,24,29,.14);
  z-index: 11;
}
.par-panel header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 3px 11px; }
.par-panel header span { color: #fff6e5; font-size: 11px; font-weight: 950; letter-spacing: .13em; }
.par-panel header strong { color: #9fe4c4; font-size: 8px; letter-spacing: .05em; text-align: right; }
.par-panel header strong.missing { padding: 4px 7px; border-radius: 999px; background: #e95c52; color: white; }
.par-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.par-item {
  --item-color: #75b9ef;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  aspect-ratio: .88;
  padding: 8px 7px 9px;
  border: 4px solid #fff6e5;
  border-radius: 16px;
  background: #102f38;
  box-shadow: inset 0 0 0 2px var(--item-color), 0 6px 0 #091f26;
  transform: rotate(-1deg);
}
.par-item:nth-child(even) { transform: rotate(1deg); }
.par-item.syringe { --item-color: #72d2dc; }
.par-item.seal { --item-color: #f6be3e; }
.par-item-name { color: #fff6e5; font-size: 10px; font-weight: 950; letter-spacing: .06em; text-shadow: 0 2px 0 #081a20; }
.par-card-center { display: flex; flex: 1; align-items: center; justify-content: center; width: 100%; min-height: 0; }
.par-card-center img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(4,18,22,.55)); }
.par-card-center b { color: var(--item-color); font-size: 21px; font-weight: 950; letter-spacing: -.04em; text-shadow: 0 3px 0 #071a20; }
.par-ribbon { width: calc(100% - 8px); margin: 0 0 7px; padding: 3px 4px; border-radius: 3px; background: var(--item-color); color: #102f38; text-align: center; font-size: 8px; font-weight: 950; letter-spacing: .08em; box-shadow: 0 3px 0 color-mix(in srgb, var(--item-color), black 40%); }
.par-item.complete .par-ribbon { background: #66d89d; box-shadow: 0 3px 0 #2c8f5a; }
.par-meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.par-item.syringe .par-meter { grid-template-columns: repeat(2, 1fr); }
.par-item.seal .par-meter { grid-template-columns: 1fr; }
.par-meter { width: calc(100% - 8px); }
.par-meter i { position: relative; height: 15px; border: 2px solid rgba(255,255,255,.38); border-radius: 5px; background: rgba(3,20,26,.72); box-shadow: inset 0 2px 3px rgba(0,0,0,.34); }
.par-meter i.filled { border-color: color-mix(in srgb, var(--item-color), white 28%); background: var(--item-color); box-shadow: 0 0 12px color-mix(in srgb, var(--item-color), transparent 55%); }

.inspection-progress {
  position: absolute;
  left: 50%;
  top: 172px;
  width: 290px;
  transform: translateX(-50%);
  padding: 10px 13px;
  border: 3px solid white;
  border-radius: 15px;
  background: rgba(23,62,74,.96);
  color: white;
  box-shadow: 0 6px 0 rgba(17,52,61,.38);
  z-index: 13;
}

.inspection-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: .1em;
}

.inspection-track { height: 10px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.22); }
.inspection-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: #f6be3e; }

.completion-burst {
  position: absolute;
  left: 50%;
  top: 72px;
  display: grid;
  place-items: center;
  transform: translateX(-50%) scale(.4);
  opacity: 0;
  pointer-events: none;
  z-index: 18;
}

.completion-burst.show { animation: completion-burst 1.65s ease-out both; }
.completion-burst.demo-hold.show {
  animation: none;
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.score-star {
  position: fixed;
  left: 0; top: 0;
  font-size: 22px;
  line-height: 1;
  color: #f6be3e;
  text-shadow: 0 0 10px rgba(246,190,62,.85), 0 2px 4px rgba(0,0,0,.35);
  pointer-events: none;
  z-index: 200;
  will-change: transform, opacity;
}
.confetti-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 17;
}
.confetti-layer i {
  position: absolute;
  left: var(--x);
  top: 118px;
  width: 10px;
  height: 18px;
  border-radius: 2px;
  background: var(--color);
  opacity: 0;
  transform: translate(-50%, -20px) rotate(0deg);
}
.confetti-layer i.round { width: 12px; height: 12px; border-radius: 50%; }
.confetti-layer.celebrate i { animation: confetti-fall var(--fall) cubic-bezier(.18,.75,.36,1) var(--delay) both; }

.completion-check {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 7px solid white;
  border-radius: 50%;
  background: #55c48b;
  color: white;
  box-shadow: 0 10px 0 #278d60, 0 18px 42px rgba(12,62,45,.34);
  font: 900 58px/1 "Avenir Next", sans-serif;
}

.completion-burst strong {
  margin-top: 15px;
  padding: 7px 17px;
  border: 3px solid white;
  border-radius: 12px;
  background: #173e4a;
  color: white;
  box-shadow: 0 5px 0 rgba(17,52,61,.38);
  font-size: 19px;
  letter-spacing: .08em;
}

.completion-burst span {
  position: relative;
  z-index: 2;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255,250,240,.94);
  color: #173e4a;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .14em;
}

.stars { margin: 16px 0; color: #f6be3e; font: 700 76px/1 "Fredoka"; letter-spacing: 4px; text-shadow: 0 5px 0 #ca8d19; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 25px; }
.result-grid div { padding: 14px 8px; background: #e7f1ef; border-radius: 14px; }
.result-grid strong { display: block; font: 700 30px "Fredoka"; color: #173e4a; }
.result-grid span { color: #6c8389; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }

@keyframes pulse { to { transform: scale(1.04) rotate(-1deg); } }
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, -8px) scale(.95); } }
@keyframes toast-pop { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
@keyframes completion-burst {
  0% { opacity: 0; transform: translateX(-50%) scale(.35) rotate(-12deg); }
  18% { opacity: 1; transform: translateX(-50%) scale(1.14) rotate(4deg); }
  30% { transform: translateX(-50%) scale(1) rotate(0); }
  76% { opacity: 1; transform: translate(-50%, -5px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -30px) scale(.88); }
}

@keyframes confetti-fall {
  0% { opacity: 0; transform: translate(-50%, -18px) rotate(0deg) scale(.7); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--drift)), 72vh) rotate(var(--spin)) scale(1); }
}

@media (max-width: 800px) {
  #hud { grid-template-columns: 1fr 155px; }
  .identity-stack { display: none; }
  .orders { justify-content: flex-start; overflow: hidden; }
  .order-card { min-width: 98px; }
  .completion-burst { top: 76px; }
  .par-panel { right: 12px; width: min(360px, calc(100% - 24px)); }
}

@media (max-height: 700px) {
  .screen-card { padding: 20px 30px 24px; }
  h1 { font-size: 54px; }
  .workflow { margin: 12px 0; }
  .controls { margin: 12px 0 16px; }
}
