:root {
  --gold: #b77a2b;
  --gold-bright: #e2ae55;
  --gold-deep: #805019;
  --red: #941f2b;
  --red-dark: #5e1018;
  --cream: #fbf5e9;
  --ink: #1d1715;
  --steel: #d9dde0;
  --steel-dark: #798087;
  --green: #3eaa61;
  --orange: #ee9b35;
  --danger: #d63d3d;
  --shadow: 0 14px 36px rgba(16, 8, 5, .34);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
  font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0f0908;
  overscroll-behavior: none;
}

body {
  color: var(--ink);
  user-select: none;
  -webkit-user-select: none;
}

button {
  border: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

button:active {
  transform: scale(.97);
}

img {
  display: block;
  max-width: 100%;
  pointer-events: none;
}

.is-hidden {
  display: none !important;
}

#app {
  position: relative;
  width: min(100%, 560px);
  height: 100dvh;
  min-height: 560px;
  margin-inline: auto;
  overflow: hidden;
  background: #1a0d09;
  box-shadow: 0 0 80px rgba(0, 0, 0, .6);
  isolation: isolate;
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow: hidden;
  opacity: 0;
  transform: scale(1.02);
}

.screen.is-active {
  display: block;
  opacity: 1;
  transform: scale(1);
  animation: screen-in .42s cubic-bezier(.22, .8, .22, 1) both;
}

@keyframes screen-in {
  from { opacity: 0; transform: scale(1.035); filter: blur(3px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  filter: drop-shadow(0 2px 0 rgba(255,255,255,.3));
}

.brand-name {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 11vw, 4rem);
  letter-spacing: -.055em;
}

.brand-rule {
  width: 92%;
  height: 3px;
  margin: .32rem auto .4rem;
  border-radius: 999px;
  background: var(--red);
}

.brand-sub {
  color: #171516;
  font-size: clamp(.66rem, 3.1vw, 1rem);
  font-weight: 900;
  letter-spacing: .055em;
}

.brand-sub b {
  color: var(--red);
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 900;
}

.glass-button,
.glass-pill {
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(17, 11, 8, .48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 7px 24px rgba(0,0,0,.16);
  backdrop-filter: blur(14px) saturate(1.25);
}

.glass-pill {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .45rem .9rem;
  gap: .32rem;
  border-radius: 999px;
}

.glass-pill span {
  color: var(--gold-bright);
  font-weight: 900;
}

.glass-pill strong {
  font-variant-numeric: tabular-nums;
}

.game-button {
  position: relative;
  display: flex;
  min-height: 62px;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .7rem 1rem;
  border-radius: 18px;
  font-weight: 800;
  letter-spacing: .01em;
  overflow: hidden;
  box-shadow: 0 8px 0 rgba(56, 24, 10, .34), 0 16px 26px rgba(30, 11, 4, .24);
  transition: transform .12s ease, filter .12s ease;
}

.game-button::after {
  content: "";
  position: absolute;
  inset: 1px 1px auto;
  height: 46%;
  border-radius: 17px 17px 50% 50%;
  background: linear-gradient(rgba(255,255,255,.28), transparent);
  pointer-events: none;
}

.game-button > * {
  position: relative;
  z-index: 1;
}

.game-button span:not(.button-icon) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.game-button small {
  font-size: .66rem;
  letter-spacing: .13em;
  opacity: .8;
}

.game-button strong {
  font-size: 1rem;
}

.game-button--primary {
  color: #fff;
  border: 1px solid #d64b54;
  background: linear-gradient(155deg, #c93743, #8c1521 68%, #70101a);
}

.game-button--primary .button-icon {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

.game-button--secondary {
  color: #2b211c;
  border: 1px solid rgba(255,255,255,.9);
  background: linear-gradient(155deg, #fff, #e5ded1);
  box-shadow: 0 6px 0 rgba(72, 52, 35, .28), 0 12px 20px rgba(20, 10, 3, .17);
}

.game-button--secondary > span {
  font-size: 1.35rem;
}

.game-button.wide {
  width: 100%;
}

.game-button[disabled],
button[disabled] {
  cursor: default;
  opacity: .5;
  filter: grayscale(.45);
}

.text-button {
  min-height: 44px;
  padding: .6rem 1rem;
  color: #fff;
  border-radius: 12px;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 800;
}

.text-button.danger {
  color: #a5222c;
}

/* Loading */
.loading-screen {
  color: #fff;
  background: #190d09;
}

.loading-bg,
.menu-bg,
.result-bg,
.panel-bg {
  position: absolute;
  inset: -3%;
  background: url("assets/menu-exterior-4k.webp") center / cover no-repeat;
}

.loading-bg {
  animation: cinematic-pan 9s ease-in-out infinite alternate;
}

.loading-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 9, 17, .18), rgba(12, 6, 4, .15) 42%, rgba(12, 5, 2, .92));
}

@keyframes cinematic-pan {
  from { transform: scale(1.02) translateX(-.5%); }
  to { transform: scale(1.08) translateX(1.5%); }
}

.loading-content {
  position: absolute;
  right: 8%;
  bottom: calc(7% + var(--safe-bottom));
  left: 8%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.35rem 1.2rem 1rem;
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 24px;
  background: rgba(255, 251, 242, .93);
  box-shadow: var(--shadow);
  color: var(--ink);
  backdrop-filter: blur(12px);
}

.brand-lockup--hero .brand-name {
  font-size: clamp(2.2rem, 11vw, 4rem);
}

.loading-kicker {
  margin: 1rem 0 .55rem;
  color: #5b4a3d;
  font-size: .88rem;
  font-weight: 800;
}

.loading-track {
  width: 100%;
  height: 12px;
  padding: 2px;
  border: 1px solid rgba(77, 49, 27, .25);
  border-radius: 999px;
  background: #d8ccbb;
  overflow: hidden;
}

.loading-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #e04d57, var(--gold-bright));
  box-shadow: 0 0 12px rgba(211, 68, 75, .65);
  transition: width .25s ease;
}

#loadingPercent {
  margin-top: .35rem;
  color: #716153;
  font-size: .75rem;
  font-weight: 900;
}

/* Main menu */
.menu-screen {
  color: #fff;
  background: #20110d;
}

.menu-bg {
  animation: menu-breathe 12s ease-in-out infinite alternate;
}

@keyframes menu-breathe {
  from { transform: scale(1.03); }
  to { transform: scale(1.08) translateX(-1.3%); }
}

.menu-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 48% 36%, transparent 0 26%, rgba(7, 2, 0, .08) 48%, rgba(7, 2, 0, .56) 100%),
    linear-gradient(180deg, rgba(7,8,15,.24), transparent 28%, rgba(12,5,2,.15) 55%, rgba(14,5,2,.89));
}

.menu-header {
  position: absolute;
  z-index: 2;
  top: calc(12px + var(--safe-top));
  right: 14px;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-logo {
  position: absolute;
  z-index: 2;
  top: calc(12% + var(--safe-top));
  left: 50%;
  width: min(88%, 430px);
  padding: 1rem 1rem .8rem;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.96), rgba(241,232,216,.9));
  box-shadow: 0 16px 42px rgba(0,0,0,.35), inset 0 1px 0 #fff;
  transform: translateX(-50%) rotate(-1deg);
}

.brand-lockup--menu .brand-name {
  font-size: clamp(2.45rem, 12vw, 4.4rem);
}

.game-title {
  display: block;
  width: max-content;
  margin: .65rem auto -.15rem;
  padding: .28rem .9rem .22rem;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  box-shadow: 0 3px 0 var(--red-dark);
  font-size: .8rem;
  font-weight: 1000;
  letter-spacing: .2em;
}

.menu-actions {
  position: absolute;
  z-index: 2;
  right: 7%;
  bottom: calc(7.5% + var(--safe-bottom));
  left: 7%;
  display: grid;
  gap: .82rem;
}

.menu-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .72rem;
}

.menu-actions > .game-button--primary {
  min-height: 72px;
}

.menu-actions > .text-button {
  justify-self: center;
  min-height: 30px;
  padding: .2rem .7rem;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,.6);
}

.menu-foot {
  position: absolute;
  z-index: 2;
  right: 8%;
  bottom: calc(2% + var(--safe-bottom));
  left: 8%;
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 5px #000;
}

/* Panel screens */
.panel-screen {
  padding: calc(76px + var(--safe-top)) 16px calc(20px + var(--safe-bottom));
  overflow-y: auto;
  color: #fff;
  background: #26130e;
}

.panel-bg {
  position: fixed;
  filter: blur(5px) brightness(.47) saturate(.82);
  transform: scale(1.08);
}

.panel-bg--shop {
  background-position: 37% center;
}

.panel-header {
  position: fixed;
  z-index: 3;
  top: 0;
  left: 50%;
  display: grid;
  width: min(100%, 560px);
  min-height: calc(64px + var(--safe-top));
  grid-template-columns: 48px 1fr auto;
  align-items: end;
  gap: .5rem;
  padding: calc(8px + var(--safe-top)) 14px 8px;
  background: linear-gradient(180deg, rgba(18,8,5,.95), rgba(18,8,5,.62), transparent);
  transform: translateX(-50%);
}

.panel-header h1 {
  margin: 0 0 .6rem;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  text-align: center;
}

.panel-header .icon-button {
  align-self: end;
  margin-bottom: .15rem;
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1);
  font-size: 2.2rem;
  line-height: 1;
}

.panel-header .glass-pill {
  align-self: end;
  margin-bottom: .2rem;
}

.steel-card {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.78);
  background:
    linear-gradient(115deg, rgba(255,255,255,.72), rgba(255,255,255,.18) 23%, transparent 24% 70%, rgba(255,255,255,.36)),
    linear-gradient(#f8f7f2, #dad7cf);
  box-shadow: var(--shadow), inset 0 1px 0 #fff;
  color: var(--ink);
}

.brief-card {
  margin-top: min(8vh, 64px);
  padding: 1.2rem;
  border-radius: 28px;
}

.level-selector {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 1rem;
}

.level-selector > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.level-selector small {
  color: var(--gold-deep);
  font-size: .68rem;
  font-weight: 1000;
  letter-spacing: .22em;
}

.level-selector strong {
  margin-top: -.2rem;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 4rem;
  line-height: 1;
}

.round-stepper {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid #d4c5b0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 5px 0 #6f461a;
  font-size: 2rem;
}

.brief-stars {
  margin: .2rem 0 1.1rem;
  color: #d8a039;
  font-size: 1.8rem;
  letter-spacing: .2rem;
  text-align: center;
  text-shadow: 0 2px 0 #fff;
}

.brief-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem;
}

.brief-details > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: .7rem .25rem;
  border: 1px solid #d7ccbc;
  border-radius: 15px;
  background: rgba(255,255,255,.58);
}

.brief-details span {
  font-size: 1.35rem;
}

.brief-details small {
  margin-top: .25rem;
  color: #76695f;
  font-size: .62rem;
  font-weight: 800;
}

.brief-details strong {
  max-width: 100%;
  overflow: hidden;
  font-size: .88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unlock-note {
  min-height: 46px;
  margin: .9rem 0;
  padding: .65rem .8rem;
  border-radius: 13px;
  color: #664d2a;
  background: #fff1c9;
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
}

.unlock-note:empty {
  visibility: hidden;
}

.panel-bottom-button {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 1rem;
}

.shop-intro {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  margin: .9rem .25rem 1rem;
  text-shadow: 0 2px 6px #000;
}

.shop-intro strong {
  font-size: 1.2rem;
}

.shop-intro span {
  margin-top: .2rem;
  color: rgba(255,255,255,.78);
  font-size: .8rem;
  line-height: 1.35;
}

.shop-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .85rem;
  padding-bottom: 1rem;
}

.shop-item {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  align-items: center;
  gap: .8rem;
  min-height: 102px;
  padding: .75rem;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 22px;
  color: var(--ink);
  background: linear-gradient(155deg, rgba(255,255,255,.97), rgba(228,221,208,.96));
  box-shadow: 0 10px 24px rgba(0,0,0,.25), inset 0 1px 0 #fff;
}

.shop-item.is-owned {
  background: linear-gradient(155deg, #f1f7ec, #c8dfc0);
}

.shop-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(74,44,19,.25));
}

.shop-item-copy {
  min-width: 0;
}

.shop-item-copy strong {
  display: block;
  font-size: 1rem;
}

.shop-item-copy span {
  display: block;
  margin-top: .22rem;
  color: #6e6258;
  font-size: .7rem;
  line-height: 1.3;
}

.buy-button {
  min-width: 76px;
  min-height: 46px;
  padding: .5rem .65rem;
  border: 1px solid #d69943;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(#d69c46, #95601e);
  box-shadow: 0 4px 0 #684112;
  font-size: .77rem;
  font-weight: 900;
}

.buy-button.owned {
  color: #286837;
  border-color: #78aa76;
  background: #e6f3e2;
  box-shadow: none;
}

/* Game */
.game-screen {
  color: #fff;
  background: #1a120e;
}

.kitchen-bg {
  position: absolute;
  inset: 0;
  background: url("assets/kitchen-interior-4k.webp") center / cover no-repeat;
  transform: scale(1.005);
}

.kitchen-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,7,10,.22), transparent 22% 45%, rgba(8,5,3,.28) 58%, rgba(8,5,3,.62));
}

.game-hud {
  position: absolute;
  z-index: 20;
  top: calc(5px + var(--safe-top));
  right: 7px;
  left: 7px;
  display: grid;
  grid-template-columns: 48px 1fr auto 38px;
  align-items: center;
  gap: 5px;
  min-height: 49px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(34,26,21,.91), rgba(13,9,7,.85));
  box-shadow: 0 7px 20px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.18);
  backdrop-filter: blur(9px);
}

.hud-chip {
  display: flex;
  min-height: 37px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}

.hud-chip small {
  color: #c8bcb4;
  font-size: .49rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.hud-chip strong {
  color: #fff;
  font-size: .91rem;
  line-height: 1;
}

.hud-chip--money {
  min-width: 68px;
  padding-inline: .35rem;
}

.hud-chip--money strong {
  color: #ffd273;
  font-size: .8rem;
}

.hud-progress {
  min-width: 0;
  padding: 0 .25rem;
}

.hud-progress > span {
  display: block;
  margin-bottom: 4px;
  font-size: .64rem;
  font-weight: 800;
  text-align: center;
}

.hud-progress-track {
  height: 8px;
  padding: 1px;
  border-radius: 99px;
  background: #40362f;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.6);
}

.hud-progress-track i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), #f0ac3d);
  transition: width .35s ease;
}

.hud-pause {
  width: 37px;
  height: 37px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.11);
  font-size: .9rem;
}

.customer-area {
  position: absolute;
  z-index: 4;
  top: calc(56px + var(--safe-top));
  right: 0;
  left: 0;
  height: 39%;
  overflow: hidden;
}

.customer-area::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 16%;
  background: linear-gradient(transparent, rgba(12,7,4,.2));
  pointer-events: none;
}

.queue-rail {
  position: absolute;
  inset: 0;
}

.empty-hatch {
  position: absolute;
  top: 34%;
  left: 50%;
  display: flex;
  width: 70%;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  color: rgba(40,28,20,.72);
  font-size: .78rem;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
  transform: translateX(-50%);
  transition: opacity .25s ease;
}

.empty-hatch.is-hidden {
  opacity: 0;
}

.street-sparkle {
  color: #fff;
  font-size: 1.6rem;
  animation: sparkle 1.3s ease-in-out infinite;
}

@keyframes sparkle {
  50% { opacity: .35; transform: scale(.75) rotate(25deg); }
}

.customer {
  --scale: 1;
  position: absolute;
  bottom: -3%;
  left: 50%;
  z-index: 3;
  width: clamp(116px, 34vw, 178px);
  height: 84%;
  transform: translateX(-50%) scale(var(--scale));
  transform-origin: bottom center;
  transition: left .55s cubic-bezier(.2,.75,.25,1), transform .55s cubic-bezier(.2,.75,.25,1), opacity .3s ease;
}

.customer.is-entering {
  animation: walk-in .78s cubic-bezier(.16,.72,.28,1) both;
}

.customer.is-leaving {
  pointer-events: none;
  animation: walk-out .65s ease-in both;
}

.customer.is-idle .customer-figure {
  animation: customer-idle 2.7s ease-in-out infinite;
}

.customer.is-impatient .customer-figure {
  animation: impatient .55s ease-in-out infinite;
}

.customer.is-angry .customer-figure {
  animation: angry-stomp .32s ease-in-out infinite;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.25)) saturate(1.14);
}

.customer.is-happy .customer-figure {
  animation: happy-hop .48s ease-in-out 2;
}

@keyframes walk-in {
  from { opacity: 0; transform: translateX(85vw) scale(calc(var(--scale) * .82)); }
}

@keyframes walk-out {
  to { opacity: 0; transform: translateX(-110vw) scale(calc(var(--scale) * .9)); }
}

@keyframes customer-idle {
  50% { transform: translateY(-3px) rotate(.4deg); }
}

@keyframes impatient {
  25% { transform: translateY(-2px) rotate(-1deg); }
  75% { transform: translateY(0) rotate(1deg); }
}

@keyframes angry-stomp {
  50% { transform: translateY(-3px) rotate(-1.5deg); }
}

@keyframes happy-hop {
  50% { transform: translateY(-11px) scale(1.02); }
}

.customer-figure {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 93%;
  margin: auto;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 7px 9px rgba(0,0,0,.25));
}

.customer-name {
  position: absolute;
  bottom: 1%;
  left: 50%;
  z-index: 4;
  padding: .2rem .48rem;
  border-radius: 8px;
  color: #fff;
  background: rgba(28,17,12,.82);
  box-shadow: 0 3px 8px rgba(0,0,0,.25);
  font-size: .58rem;
  font-weight: 900;
  transform: translateX(-50%);
}

.order-bubble {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 50%;
  min-width: 128px;
  max-width: 195px;
  padding: .5rem .55rem .55rem;
  border: 2px solid rgba(255,255,255,.92);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255,255,255,.95);
  box-shadow: 0 8px 18px rgba(0,0,0,.24);
  transform: translate(-50%, -5%);
}

.order-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 15px;
  height: 15px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.customer:not(.is-active) .order-bubble {
  display: none;
}

.order-lines {
  position: relative;
  z-index: 1;
  display: flex;
  max-height: 74px;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem;
  overflow: hidden;
}

.order-line {
  display: flex;
  min-width: 52px;
  align-items: center;
  gap: .2rem;
  padding: .18rem .28rem;
  border-radius: 9px;
  background: #f2ede4;
}

.order-line img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.order-line-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.order-line-copy strong {
  font-size: .59rem;
}

.order-line-copy small {
  max-width: 74px;
  margin-top: .12rem;
  color: #76695e;
  font-size: .48rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browsing-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  gap: .4rem;
  font-size: .67rem;
  font-weight: 900;
}

.browsing-copy span {
  font-size: 1.25rem;
  animation: menu-look 1s ease-in-out infinite alternate;
}

@keyframes menu-look {
  to { transform: rotate(5deg) scale(1.04); }
}

.patience {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 17px 1fr;
  align-items: center;
  gap: .24rem;
  margin-top: .35rem;
}

.patience-face {
  font-size: .7rem;
  line-height: 1;
}

.patience-track {
  height: 7px;
  padding: 1px;
  border-radius: 99px;
  background: #d7d0c7;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.22);
}

.patience-track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width .12s linear, background .25s ease;
}

.patience-copy {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: .25rem;
  color: #77685c;
  font-size: .5rem;
  font-weight: 800;
  text-align: center;
}

.workstation {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  height: calc(57% + var(--safe-bottom));
  padding: 8px 8px calc(7px + var(--safe-bottom));
  border-top: 2px solid rgba(255,255,255,.7);
  border-radius: 22px 22px 0 0;
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(255,255,255,.42), transparent 24% 67%, rgba(255,255,255,.25)),
    linear-gradient(180deg, rgba(225,228,229,.96), rgba(153,160,164,.97));
  box-shadow: 0 -10px 26px rgba(0,0,0,.3), inset 0 1px 0 #fff;
}

.station-topbar {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: .45rem;
  height: 28px;
  margin: -2px 2px 4px;
}

.shift-clock {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
}

.reputation {
  font-size: .72rem;
  letter-spacing: .08rem;
  text-align: center;
  filter: drop-shadow(0 1px 0 white);
}

.pos-launch {
  display: flex;
  min-height: 27px;
  align-items: center;
  gap: .35rem;
  padding: .25rem .5rem;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(#2c3338, #121719);
  box-shadow: 0 3px 0 #050708;
  font-size: .56rem;
}

.pos-launch span {
  padding: .12rem .2rem;
  border-radius: 3px;
  color: #14251b;
  background: #65d98e;
  font-size: .48rem;
}

.pos-launch.needs-entry {
  animation: pos-pulse .8s ease-in-out infinite alternate;
}

@keyframes pos-pulse {
  to { box-shadow: 0 3px 0 #050708, 0 0 15px #f5b441; transform: translateY(-1px); }
}

.station-label {
  color: #403b37;
  font-size: .57rem;
  font-weight: 1000;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-strip-wrap {
  height: 58px;
}

.product-strip {
  display: flex;
  gap: 5px;
  margin-top: 3px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.product-strip::-webkit-scrollbar,
.sauce-strip::-webkit-scrollbar {
  display: none;
}

.product-button {
  display: grid;
  min-width: 66px;
  height: 40px;
  grid-template-columns: 31px 1fr;
  align-items: center;
  gap: 2px;
  padding: 3px 5px;
  border: 1px solid #b6aca1;
  border-radius: 10px;
  color: #332a25;
  background: linear-gradient(#fff, #dfd9d1);
  box-shadow: 0 3px 0 #9e958c;
}

.product-button img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.product-button span {
  max-width: 40px;
  font-size: .52rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-button.is-selected {
  border-color: var(--red);
  color: #fff;
  background: linear-gradient(#c93a45, #8d1722);
  box-shadow: 0 3px 0 #5d0e16, 0 0 0 2px rgba(255,255,255,.8);
}

.fryer-row {
  display: grid;
  height: 110px;
  grid-template-columns: 1fr 1fr .9fr;
  gap: 6px;
}

.fryer {
  position: relative;
  display: grid;
  grid-template-rows: 14px 1fr 15px;
  min-width: 0;
  padding: 3px;
  border: 1px solid #777;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #3b4145, #161a1d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 0 #686b6d;
  overflow: hidden;
}

.fryer-number {
  color: #d4d7d9;
  font-size: .47rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.fryer-well {
  position: relative;
  display: grid;
  margin: 0 2px;
  place-items: center;
  border: 2px solid #555;
  border-radius: 5px;
  background: #3b2a12;
  box-shadow: inset 0 3px 9px rgba(0,0,0,.7);
  overflow: hidden;
}

.fryer-oil {
  position: absolute;
  inset: 0;
  opacity: .78;
  background:
    radial-gradient(circle at 18% 32%, rgba(255,232,134,.9) 0 2px, transparent 3px),
    radial-gradient(circle at 65% 68%, rgba(255,232,134,.72) 0 2px, transparent 3px),
    radial-gradient(circle at 82% 22%, rgba(255,232,134,.7) 0 1.5px, transparent 2.5px),
    linear-gradient(145deg, #8d5b14, #46300e);
}

.basket-grid {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(220,220,220,.55);
  background-image:
    linear-gradient(rgba(210,210,210,.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(210,210,210,.35) 1px, transparent 1px);
  background-size: 7px 7px;
  transform: perspective(90px) rotateX(6deg);
}

.fryer img {
  position: relative;
  z-index: 2;
  width: 50px;
  height: 43px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.45));
}

.fryer-status {
  align-self: center;
  overflow: hidden;
  font-size: .5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fryer-timer {
  position: absolute;
  right: 4px;
  top: 3px;
  font-size: .49rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.fryer::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, #58c978 var(--progress, 0%), rgba(255,255,255,.12) 0);
}

.fryer.is-cooking .fryer-oil {
  animation: oil-boil .45s linear infinite;
}

.fryer.is-cooking img {
  animation: fry-bob .7s ease-in-out infinite alternate;
}

.fryer.is-ready {
  border-color: #6be08d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 0 #397a4a, 0 0 14px rgba(67,206,105,.65);
  animation: ready-pulse .6s ease-in-out infinite alternate;
}

.fryer.is-burnt {
  border-color: #ef5353;
  box-shadow: 0 4px 0 #7f1f1f, 0 0 16px rgba(218,44,44,.7);
  animation: burnt-shake .24s ease-in-out infinite;
}

@keyframes oil-boil {
  to { background-position: 8px -9px, -5px 7px, 4px -7px, 0 0; }
}

@keyframes fry-bob {
  to { transform: translateY(-2px); }
}

@keyframes ready-pulse {
  to { transform: translateY(-2px); filter: brightness(1.12); }
}

@keyframes burnt-shake {
  50% { transform: translateX(1px); }
}

.ready-pass {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 4px;
  border: 1px solid #8a8e90;
  border-radius: 10px;
  background:
    radial-gradient(circle, rgba(60,60,60,.18) 1px, transparent 1.5px) 0 0 / 8px 8px,
    linear-gradient(#d9dcde, #a7aaac);
  box-shadow: inset 0 1px 4px rgba(0,0,0,.28);
}

.ready-stock {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 3px;
  margin-top: 3px;
  overflow-y: auto;
}

.ready-stock-empty {
  grid-column: 1 / -1;
  align-self: center;
  color: #5f6162;
  font-size: .52rem;
  text-align: center;
}

.stock-button {
  position: relative;
  display: grid;
  min-height: 31px;
  place-items: center;
  border: 1px solid #a0998f;
  border-radius: 7px;
  background: rgba(255,255,255,.72);
}

.stock-button img {
  width: 29px;
  height: 29px;
  object-fit: contain;
}

.stock-button b {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: .5rem;
}

.assembly {
  display: grid;
  height: 106px;
  grid-template-columns: 1.25fr .75fr;
  gap: 6px;
  margin-top: 6px;
}

.tray-panel,
.sauce-panel {
  min-width: 0;
  padding: 5px;
  border: 1px solid #85898b;
  border-radius: 10px;
  background: linear-gradient(150deg, rgba(255,255,255,.74), rgba(215,218,220,.68));
  box-shadow: inset 0 1px 3px rgba(255,255,255,.9);
}

.tray-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-link {
  padding: 2px 4px;
  color: var(--red);
  background: transparent;
  font-size: .52rem;
  font-weight: 900;
  text-decoration: underline;
}

.tray-items {
  display: flex;
  height: 77px;
  gap: 4px;
  align-items: stretch;
  margin-top: 3px;
  padding: 4px;
  border-radius: 7px;
  background: linear-gradient(#eee9df, #d8d0c5);
  box-shadow: inset 0 2px 5px rgba(62,43,28,.18);
  overflow-x: auto;
}

.tray-placeholder {
  align-self: center;
  width: 100%;
  color: #898076;
  font-size: .55rem;
  text-align: center;
}

.tray-item {
  position: relative;
  display: flex;
  min-width: 62px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #c7baaa;
  border-radius: 8px;
  background: rgba(255,255,255,.75);
}

.tray-item.is-selected {
  border: 2px solid var(--red);
  box-shadow: 0 0 0 2px #fff;
}

.tray-item img {
  width: 42px;
  height: 40px;
  object-fit: contain;
}

.tray-item small {
  max-width: 54px;
  color: #65594f;
  font-size: .44rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tray-remove {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #4e4640;
  font-size: .65rem;
}

.sauce-panel {
  display: flex;
  flex-direction: column;
}

.sauce-strip {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-top: 3px;
  overflow-y: auto;
}

.sauce-button {
  display: grid;
  min-height: 31px;
  grid-template-columns: 27px 1fr;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid #bcb2a7;
  border-radius: 7px;
  background: rgba(255,255,255,.75);
}

.sauce-button img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.sauce-button span {
  max-width: 40px;
  font-size: .45rem;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sauce-button.is-on {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.serve-button {
  position: absolute;
  right: 8px;
  bottom: calc(7px + var(--safe-bottom));
  left: 8px;
  display: grid;
  height: 50px;
  grid-template-columns: 36px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  padding: 5px 12px;
  border: 1px solid #55b16d;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(150deg, #58c87a, #258a49 72%, #1a6e38);
  box-shadow: 0 5px 0 #175c30, 0 9px 15px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.35);
}

.serve-button > span {
  grid-row: 1 / 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  font-size: 1.15rem;
}

.serve-button strong,
.serve-button small {
  text-align: left;
}

.serve-button strong {
  align-self: end;
  font-size: .86rem;
  letter-spacing: .08em;
}

.serve-button small {
  align-self: start;
  color: rgba(255,255,255,.78);
  font-size: .48rem;
}

.serve-button.needs-pos {
  border-color: #edb452;
  background: linear-gradient(#db9b35, #a86613);
  box-shadow: 0 5px 0 #70430d;
}

/* Results */
.result-screen {
  padding: calc(5vh + var(--safe-top)) 6% calc(4vh + var(--safe-bottom));
  color: #fff;
  background: #20100b;
}

.result-bg {
  filter: blur(3px) brightness(.42) saturate(.78);
  transform: scale(1.08);
}

.result-burst {
  position: absolute;
  inset: 0;
  opacity: .65;
  background:
    radial-gradient(circle at 14% 18%, #ffd060 0 3px, transparent 4px),
    radial-gradient(circle at 83% 25%, #fff 0 2px, transparent 3px),
    radial-gradient(circle at 28% 76%, #bd3741 0 3px, transparent 4px),
    radial-gradient(circle at 74% 70%, #e9ab42 0 4px, transparent 5px);
  background-size: 90px 120px, 130px 110px, 110px 140px, 160px 125px;
  animation: confetti-fall 4s linear infinite;
}

@keyframes confetti-fall {
  to { background-position: 15px 240px, -30px 220px, 20px 280px, -10px 250px; }
}

.result-card {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  max-height: 710px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  border-radius: 30px;
}

.result-card > small {
  color: var(--gold-deep);
  font-size: .64rem;
  font-weight: 1000;
  letter-spacing: .18em;
}

.result-card h1 {
  margin: .25rem 0 .4rem;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 8vw, 2.6rem);
  text-align: center;
}

.result-stars {
  margin-bottom: .9rem;
  color: #dfaa42;
  font-size: 2.6rem;
  letter-spacing: .22rem;
  filter: drop-shadow(0 3px 0 #97661b);
  animation: star-pop .55s cubic-bezier(.2,1.55,.45,1) both;
}

@keyframes star-pop {
  from { opacity: 0; transform: scale(.4) rotate(-8deg); }
}

.result-score-grid {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  margin-bottom: .8rem;
}

.result-score-grid > div {
  display: flex;
  min-height: 66px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1c6b9;
  border-radius: 14px;
  background: rgba(255,255,255,.52);
}

.result-score-grid small {
  color: #75685d;
  font-size: .62rem;
}

.result-score-grid strong {
  margin-top: .12rem;
  font-size: 1.15rem;
}

.result-unlock {
  width: 100%;
  margin-bottom: .75rem;
  padding: .65rem;
  border: 1px solid #e0bd6b;
  border-radius: 13px;
  color: #6d4d1c;
  background: #fff0bd;
  font-size: .75rem;
  font-weight: 900;
  text-align: center;
}

.result-actions {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  margin-top: .75rem;
}

.result-actions .game-button {
  min-height: 52px;
}

/* Modals */
.modal {
  position: absolute;
  z-index: 80;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: calc(16px + var(--safe-top)) 18px calc(16px + var(--safe-bottom));
  background: rgba(13, 7, 5, .72);
  backdrop-filter: blur(8px);
}

.modal.is-open {
  display: flex;
  animation: modal-fade .22s ease both;
}

@keyframes modal-fade {
  from { opacity: 0; }
}

.modal-card {
  position: relative;
  width: min(100%, 430px);
  padding: 1.25rem;
  border: 1px solid #fff;
  border-radius: 26px;
  color: var(--ink);
  background: linear-gradient(155deg, #fffdf7, #ded8ce);
  box-shadow: 0 24px 65px rgba(0,0,0,.48), inset 0 1px 0 #fff;
  text-align: center;
  animation: modal-pop .3s cubic-bezier(.2,1.25,.3,1) both;
}

@keyframes modal-pop {
  from { transform: scale(.82) translateY(20px); }
}

.modal-card h2 {
  margin: .35rem 0 .3rem;
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 1.65rem;
}

.modal-card p {
  margin: .2rem 0 1rem;
  color: #6b5d53;
  font-size: .86rem;
  line-height: 1.45;
}

.modal-icon {
  display: block;
  font-size: 2.7rem;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 37px;
  height: 37px;
  place-items: center;
  border-radius: 50%;
  color: #584b43;
  background: rgba(0,0,0,.07);
  font-size: 1.6rem;
  line-height: 1;
}

.help-card {
  max-height: 90%;
  overflow-y: auto;
  text-align: left;
}

.help-card > .modal-icon,
.help-card h2 {
  text-align: center;
}

.help-card ol {
  display: grid;
  gap: .55rem;
  margin: 1rem 0;
  padding-left: 1.35rem;
  color: #51463f;
  font-size: .82rem;
  line-height: 1.4;
}

.help-note {
  padding: .65rem;
  border-radius: 10px;
  background: #f8e7b7;
  font-weight: 800;
}

.tutorial-step-number {
  position: absolute;
  top: 14px;
  left: 16px;
  color: var(--gold-deep);
  font-size: .68rem;
  font-weight: 1000;
}

/* POS */
.pos-modal {
  padding: 0;
  align-items: stretch;
}

.pos-shell {
  position: relative;
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  color: #eceff0;
  background: #22282b;
  animation: pos-slide .32s cubic-bezier(.2,.8,.25,1) both;
}

@keyframes pos-slide {
  from { transform: translateY(100%); }
}

.pos-header {
  display: grid;
  grid-template-columns: 92px 1fr 40px;
  align-items: center;
  gap: .6rem;
  min-height: calc(72px + var(--safe-top));
  padding: calc(9px + var(--safe-top)) 12px 8px;
  border-bottom: 1px solid #596166;
  background: linear-gradient(#353d41, #1e2427);
}

.brand-lockup--pos {
  align-items: flex-start;
}

.brand-lockup--pos .brand-name {
  color: #d5a650;
  font-size: 1.2rem;
}

.brand-lockup--pos .brand-rule {
  width: 100%;
  height: 2px;
  margin: .15rem 0 0;
}

.pos-header > div:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.pos-header small {
  color: #83db9c;
  font-size: .53rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.pos-header strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-close--dark {
  position: static;
  color: #fff;
  background: #161a1c;
}

.pos-body {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px;
  padding: 10px;
  overflow-y: auto;
}

.pos-order-reference {
  padding: .55rem .65rem;
  border: 1px solid #5b666b;
  border-radius: 10px;
  background: #171c1e;
}

.pos-order-reference > small {
  display: block;
  margin-bottom: .35rem;
  color: #aab4b8;
  font-size: .54rem;
  font-weight: 900;
}

#posReference {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.pos-ref-line {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .25rem .4rem;
  border-radius: 7px;
  color: #fff;
  background: #3a4347;
  font-size: .63rem;
  font-weight: 800;
}

.pos-ref-line img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.pos-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pos-product,
.pos-sauce {
  display: grid;
  min-height: 62px;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: .25rem;
  padding: .35rem;
  border: 1px solid #646d71;
  border-radius: 9px;
  color: #eef1f2;
  background: linear-gradient(#485257, #30373a);
  box-shadow: 0 3px 0 #15191b;
  font-size: .58rem;
  font-weight: 800;
  text-align: left;
}

.pos-product img,
.pos-sauce img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.pos-sauce-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.pos-sauce {
  min-height: 45px;
  grid-template-columns: 30px 1fr;
  padding: .25rem;
  background: linear-gradient(#3d464a, #292f32);
}

.pos-sauce img {
  width: 29px;
  height: 29px;
}

.pos-sauce.is-on {
  border-color: #e5a84c;
  color: #fff;
  background: #8e5b1d;
}

.pos-ticket {
  min-height: 160px;
  padding: .7rem;
  border-radius: 10px 10px 0 0;
  color: #292421;
  background:
    repeating-linear-gradient(0deg, rgba(94,79,65,.05) 0 1px, transparent 1px 22px),
    #fffdf7;
  box-shadow: inset 0 2px 5px rgba(0,0,0,.17);
}

.pos-ticket-head,
.pos-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-ticket-head {
  padding-bottom: .45rem;
  border-bottom: 1px dashed #94877d;
}

.pos-ticket-lines {
  display: grid;
  gap: .28rem;
  min-height: 74px;
  padding: .45rem 0;
  color: #655b54;
  font-size: .7rem;
}

.pos-ticket-line {
  display: flex;
  justify-content: space-between;
}

.pos-ticket-line small {
  color: #8b7f76;
}

.pos-total {
  padding-top: .45rem;
  border-top: 1px dashed #94877d;
}

.pos-total strong {
  color: var(--red);
  font-size: 1.2rem;
}

.pos-pay-button {
  display: flex;
  min-height: calc(62px + var(--safe-bottom));
  align-items: flex-start;
  justify-content: center;
  gap: .55rem;
  padding: 15px 12px calc(12px + var(--safe-bottom));
  color: #fff;
  background: linear-gradient(#48bd70, #247e45);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}

.pos-pay-button span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
}

.pos-pay-button strong {
  padding-top: .3rem;
  font-size: .84rem;
  letter-spacing: .06em;
}

/* Toast, curtain, particles */
.toast-region {
  position: absolute;
  z-index: 120;
  top: calc(68px + var(--safe-top));
  left: 50%;
  display: grid;
  width: min(88%, 420px);
  gap: .45rem;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: .55rem .75rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 13px;
  color: #fff;
  background: rgba(29,20,16,.92);
  box-shadow: 0 8px 22px rgba(0,0,0,.32);
  font-size: .75rem;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(9px);
  animation: toast-in .24s ease both;
}

.toast.success { background: rgba(35,120,65,.95); }
.toast.error { background: rgba(160,34,43,.96); }
.toast.warning { background: rgba(158,96,20,.96); }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-12px) scale(.96); }
}

.scene-curtain {
  position: absolute;
  z-index: 200;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  background:
    radial-gradient(circle at center, rgba(186,122,40,.18), transparent 43%),
    #160b08;
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}

.scene-curtain.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  transition: transform .35s cubic-bezier(.55,0,.35,1), opacity .2s;
}

.scene-curtain.is-leaving {
  transform: translateY(-100%);
  transition: transform .38s cubic-bezier(.55,0,.35,1);
}

.curtain-logo {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 2px solid #c58b3d;
  border-radius: 50%;
  color: #d8a24d;
  font-family: Georgia, serif;
  font-size: 2.8rem;
  box-shadow: 0 0 35px rgba(208,145,55,.25);
}

.scene-curtain span {
  margin-top: .8rem;
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.scene-curtain i {
  width: 90px;
  height: 3px;
  margin-top: .75rem;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--red), var(--gold-bright), transparent);
  animation: curtain-load 1s ease-in-out infinite;
}

@keyframes curtain-load {
  50% { transform: scaleX(.45); opacity: .55; }
}

.coin-layer {
  position: absolute;
  z-index: 130;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.flying-coin {
  position: absolute;
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 2px solid #ffe69c;
  border-radius: 50%;
  color: #fff4bd;
  background: linear-gradient(145deg, #f3c155, #a66a13);
  box-shadow: 0 3px 0 #70430a, 0 5px 9px rgba(0,0,0,.25);
  font-size: .8rem;
  font-weight: 1000;
  animation: coin-fly .9s cubic-bezier(.18,.72,.18,1) forwards;
}

@keyframes coin-fly {
  0% { opacity: 0; transform: translate(0, 0) scale(.35) rotate(0); }
  20% { opacity: 1; transform: translate(var(--x1), var(--y1)) scale(1.12) rotate(120deg); }
  100% { opacity: 0; transform: translate(var(--x2), var(--y2)) scale(.55) rotate(480deg); }
}

.screen-shake {
  animation: screen-shake .35s ease;
}

@keyframes screen-shake {
  20% { transform: translateX(-5px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

@media (max-height: 700px) {
  .menu-logo { top: calc(9% + var(--safe-top)); transform: translateX(-50%) rotate(-1deg) scale(.88); }
  .menu-actions { bottom: calc(6% + var(--safe-bottom)); gap: .62rem; }
  .menu-actions > .game-button--primary { min-height: 62px; }
  .game-button { min-height: 54px; }
  .menu-foot { display: none; }
  .customer-area { height: 37%; }
  .workstation { height: calc(59% + var(--safe-bottom)); }
  .product-strip-wrap { height: 52px; }
  .product-button { height: 36px; }
  .fryer-row { height: 96px; }
  .assembly { height: 91px; }
  .tray-items { height: 63px; }
  .serve-button { height: 44px; }
}

@media (max-height: 610px) {
  .customer-area { height: 33%; }
  .workstation { height: calc(63% + var(--safe-bottom)); }
  .station-topbar { height: 24px; }
  .product-strip-wrap { height: 46px; }
  .product-button { height: 33px; }
  .fryer-row { height: 87px; }
  .assembly { height: 80px; }
  .tray-items { height: 52px; }
}

@media (min-width: 720px) {
  body {
    background:
      radial-gradient(circle at center, rgba(139,91,35,.2), transparent 45%),
      #0c0807;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  #app {
    width: min(100%, 980px);
    min-height: 360px;
  }
  .menu-logo {
    top: 17%;
    left: 25%;
    width: 43%;
  }
  .menu-actions {
    top: 17%;
    right: 5%;
    bottom: auto;
    left: 53%;
  }
  .menu-foot { display: none; }
  .game-hud { right: 1%; left: 1%; }
  .customer-area {
    top: calc(55px + var(--safe-top));
    right: 53%;
    height: calc(100% - 55px - var(--safe-top));
  }
  .workstation {
    top: calc(55px + var(--safe-top));
    right: 0;
    bottom: 0;
    left: 47%;
    height: auto;
    border-left: 2px solid rgba(255,255,255,.65);
    border-top-left-radius: 18px;
  }
}

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