:root {
  color-scheme: light;
  --red: #e32222;
  --red-dark: #9c1515;
  --yellow: #ffd334;
  --gold: #ffad22;
  --cream: #fff4c7;
  --ink: #211304;
  --grill: #232323;
  --tile: #f7e9bd;
  --green: #20a75a;
  --blue: #1687d9;
  --bad: #c31717;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.44) 0 5%, transparent 5.5%),
    radial-gradient(circle at 86% 18%, rgba(255, 211, 52, 0.42) 0 8%, transparent 8.5%),
    linear-gradient(135deg, #f4342f 0 34%, #ffd334 34% 60%, #f4342f 60% 100%);
  color: var(--ink);
  font-family: Impact, Haettenschweiler, "Arial Black", system-ui, sans-serif;
}

body.is-playing {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 2px, transparent 2px 78px),
    linear-gradient(rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 78px);
  mix-blend-mode: soft-light;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1840px, calc(100vw - 32px));
  height: 100dvh;
  margin: 0 auto;
  padding: 10px 0 12px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.hero {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.brand-lockup {
  position: relative;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 22px;
  min-height: 184px;
  padding: 12px clamp(18px, 3vw, 28px);
  background:
    radial-gradient(circle at right top, #fff59d 0 15%, transparent 15.5%),
    linear-gradient(180deg, #fff9d5, #ffe05e 52%, #ffb323);
  box-shadow: 9px 9px 0 var(--ink);
}

.brand-lockup::after {
  content: "BURGERS";
  position: absolute;
  right: -20px;
  bottom: -18px;
  color: rgba(227, 34, 34, 0.14);
  font-size: clamp(54px, 8vw, 118px);
  line-height: 1;
  transform: rotate(-8deg);
}

.brand-badge {
  display: inline-block;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 5px 12px;
  background: var(--red);
  color: white;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: clamp(0.8rem, 2vw, 1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  color: var(--red);
  font-size: clamp(4.2rem, 8.5vw, 7.8rem);
  line-height: 0.82;
  letter-spacing: 0;
  text-shadow: 5px 5px 0 white, 9px 9px 0 var(--ink);
}

.brand-lockup p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 8px 0 0;
  font-family: system-ui, sans-serif;
  font-size: clamp(1rem, 1.55vw, 1.15rem);
  font-weight: 900;
}

.brand-actions {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(680px, calc(100% - 260px));
}

.brand-token {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 5px 6px 5px 10px;
  background: #fffdfa;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-token span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 1000;
}

.brand-token button,
.brand-buy,
.brand-about {
  min-height: 34px;
  border: 3px solid var(--ink);
  border-radius: 11px;
  padding: 5px 10px;
  color: white;
  box-shadow: 3px 3px 0 var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 0.84rem;
  font-weight: 1000;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.brand-token button {
  width: 36px;
  padding: 0;
  background: var(--yellow);
  color: var(--ink);
  font-size: 1rem;
}

.brand-buy {
  display: grid;
  place-items: center;
  background: var(--green);
}

.brand-about {
  background: var(--red);
}

.ticker {
  display: flex;
  gap: 10px;
  overflow: hidden;
}

.ticker span {
  flex: 1;
  min-width: 140px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  padding: 5px 12px;
  background: var(--red);
  color: white;
  text-align: center;
  box-shadow: 5px 5px 0 var(--ink);
}

.kitchen {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr) minmax(280px, 340px);
  grid-template-areas: "signin station board";
  gap: 18px;
  align-items: stretch;
  min-height: 0;
  height: 100%;
}

.counter,
.station,
.home-job-board,
.crew-board {
  border: 5px solid var(--ink);
  border-radius: 24px;
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--ink);
}

.counter {
  grid-area: signin;
  padding: 16px;
  background:
    linear-gradient(#fff9d7 0 58%, #f3c33c 58% 100%);
}

.counter-sign,
.board-top,
.ticket {
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 11px;
  background: var(--red);
  color: white;
  box-shadow: 4px 4px 0 var(--ink);
}

.counter-sign span,
.board-top span,
.ticket span {
  display: block;
  font-family: system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.counter-sign strong,
.ticket strong {
  display: block;
  margin-top: 3px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 0.9;
}

label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

label span {
  font-family: system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-width: 0;
  border: 4px solid var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: system-ui, sans-serif;
  font-weight: 900;
}

button {
  border: 4px solid var(--ink);
  border-radius: 16px;
  padding: 10px 13px;
  background: linear-gradient(180deg, #fff176, var(--gold));
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  cursor: pointer;
  font-weight: 1000;
  text-transform: uppercase;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

button:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--ink);
}

button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.55);
  opacity: 0.68;
}

.counter button {
  width: 100%;
  margin-top: 16px;
}

.home-job-board {
  grid-area: station;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "homeJobTitle"
    "homeJobs"
    "homeJobMessage";
  min-height: 0;
  height: 100%;
  padding: 14px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 48px, transparent 48px 96px),
    linear-gradient(180deg, #fff7d2, #f7c83c);
}

body.is-playing .home-job-board {
  display: none;
}

.home-job-grid {
  grid-area: homeJobs;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 12px;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 14px 28px 0;
  scrollbar-color: var(--red) var(--ink);
  scrollbar-width: thin;
}

.home-job-board .board-top {
  grid-area: homeJobTitle;
  margin-bottom: 12px;
  width: 100%;
  min-height: 0;
  padding: 10px 14px;
}

.home-job-board .board-top h2 {
  font-size: clamp(2.2rem, 3.7vw, 4.2rem);
  line-height: 0.86;
}

.home-job-board > .message {
  grid-area: homeJobMessage;
  min-height: 0;
  margin: 8px 0 0;
}

.home-job-board > .message:empty {
  display: none;
}

.home-job-grid::-webkit-scrollbar {
  width: 16px;
}

.home-job-grid::-webkit-scrollbar-track {
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
  box-shadow: inset 0 0 0 3px var(--yellow);
}

.home-job-grid::-webkit-scrollbar-thumb {
  border: 4px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.home-job-grid::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff3a3a, var(--red));
}

.home-job-board .job-ticket {
  height: 230px;
  min-height: 230px;
  gap: 8px;
  padding: 10px;
  border-width: 4px;
  border-radius: 16px;
  box-shadow: 5px 5px 0 var(--ink);
  overflow: hidden;
  grid-template-rows: 56px 48px 34px 44px;
}

.home-job-board .job-ticket strong {
  min-height: 0;
  font-family: system-ui, sans-serif;
  font-size: clamp(1rem, 1.28vw, 1.3rem);
  font-weight: 1000;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 var(--ink);
  overflow-wrap: anywhere;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.home-job-board .job-ticket-tags {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 0;
  max-height: 48px;
  overflow: hidden;
}

.home-job-board .job-ticket-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 0;
  border-radius: 9px;
  padding: 5px 8px;
  font-size: 0.68rem;
  line-height: 1.05;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-job-board .job-ticket small {
  min-height: 0;
  overflow: hidden;
  align-self: center;
  line-height: 1.08;
  font-size: 0.78rem;
}

.home-job-board .job-ticket button {
  align-self: end;
  width: 100%;
  min-height: 44px;
  padding: 6px 10px;
}

.station {
  grid-area: station;
  min-height: 630px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 48px, transparent 48px 96px),
    var(--tile);
}

body.is-playing .kitchen {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  grid-template-areas: "station board";
  align-items: start;
  height: calc(100dvh - 154px);
}

body.is-playing .station {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  grid-template-areas:
    "ticket actions"
    "payClock actions"
    "grill actions"
    "message actions";
  gap: 12px;
  width: 100%;
  min-height: 0;
  height: calc(100dvh - 154px);
  padding: 12px;
}

.pay-clock {
  grid-area: payClock;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  padding: 8px 12px;
  background: linear-gradient(180deg, var(--yellow), var(--gold));
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  font-family: system-ui, sans-serif;
  font-weight: 1000;
}

.pay-clock strong {
  font-size: clamp(0.92rem, 1.15vw, 1.1rem);
  letter-spacing: 0.03em;
}

.pay-clock span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(0.76rem, 0.92vw, 0.92rem);
}

.pay-clock.is-live {
  outline: 5px solid var(--green);
}

body.is-playing .hero {
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  align-items: stretch;
  margin-bottom: 10px;
}

body.is-playing .brand-lockup {
  min-height: 76px;
  padding: 10px 18px;
  border-width: 4px;
  border-radius: 18px;
  box-shadow: 5px 5px 0 var(--ink);
}

body.is-playing .brand-badge {
  padding: 4px 9px;
  font-size: 0.74rem;
  box-shadow: 3px 3px 0 var(--ink);
}

body.is-playing .brand-actions {
  top: 8px;
  right: 10px;
  max-width: 190px;
  gap: 5px;
}

body.is-playing .brand-token {
  max-width: 112px;
  padding: 4px 5px 4px 7px;
}

body.is-playing .brand-token span,
body.is-playing .brand-buy {
  display: none;
}

body.is-playing .brand-token button,
body.is-playing .brand-about {
  min-height: 30px;
  border-width: 3px;
  border-radius: 9px;
  padding: 4px 8px;
  font-size: 0.74rem;
  box-shadow: 2px 2px 0 var(--ink);
}

body.is-playing h1 {
  margin-top: 2px;
  font-size: clamp(2.8rem, 5vw, 4.8rem);
  line-height: 0.78;
  text-shadow: 3px 3px 0 white, 5px 5px 0 var(--ink);
}

body.is-playing .brand-lockup p,
body.is-playing .brand-lockup::after {
  display: none;
}

body.is-playing .ticker {
  align-content: stretch;
}

body.is-playing .ticker span {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 6px 8px;
  border-width: 4px;
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
}

.ticket {
  grid-area: ticket;
  display: grid;
  position: relative;
  grid-template-columns: minmax(170px, 0.85fr) minmax(0, 1.55fr) minmax(118px, auto);
  grid-template-areas:
    "ticketLabel title stats"
    "items title stats"
    "stepLabel step stats";
  gap: 7px 14px;
  align-items: stretch;
  min-width: 0;
  overflow: hidden;
  padding: 13px 16px;
  background:
    radial-gradient(circle at right top, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #249deb, var(--blue) 54%, #1377c4);
}

.ticket::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  pointer-events: none;
}

.ticket > span:first-child {
  grid-area: ticketLabel;
}

.ticket > span:nth-of-type(2) {
  grid-area: stepLabel;
  align-self: end;
}

.ticket strong {
  grid-area: title;
  min-width: 0;
  margin: 0;
  align-self: center;
  overflow: visible;
  text-align: left;
  text-wrap: balance;
  white-space: normal;
  font-size: clamp(1.55rem, 2.45vw, 3rem);
  line-height: 0.88;
  text-shadow: 3px 3px 0 rgba(0, 0, 0, 0.22);
}

.ticket b {
  grid-area: step;
  align-self: end;
  min-width: 0;
  max-width: 100%;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 7px 10px;
  background: rgba(0, 0, 0, 0.18);
  color: white;
  font-family: system-ui, sans-serif;
  font-size: clamp(0.82rem, 0.98vw, 0.96rem);
  font-weight: 1000;
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.ticket-items {
  grid-area: items;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: start;
  min-width: 0;
}

.ticket-items span {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: clamp(0.68rem, 0.78vw, 0.82rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ticket em {
  grid-area: stats;
  display: grid;
  place-items: center;
  gap: 4px;
  align-self: stretch;
  min-width: 112px;
  border: 3px solid var(--yellow);
  border-radius: 16px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.22);
  color: #fff7a6;
  font-family: system-ui, sans-serif;
  font-size: clamp(0.72rem, 0.82vw, 0.92rem);
  font-style: normal;
  font-weight: 1000;
  line-height: 1.1;
  text-align: center;
}

.ticket em span,
.ticket em small {
  display: block;
}

.ticket em .worker-pay {
  color: white;
  font-size: clamp(0.62rem, 0.72vw, 0.78rem);
  line-height: 1.08;
  text-transform: uppercase;
}

.grill-wrap {
  grid-area: grill;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 14px;
  margin: 16px 0;
}

body.is-playing .grill-wrap {
  min-height: 0;
  height: 100%;
  margin: 0;
  grid-template-columns: minmax(0, 1fr) 170px;
}

.grill,
.fryer {
  position: relative;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 24px;
  background:
    repeating-linear-gradient(90deg, #2c2c2c 0 18px, #111 18px 25px),
    var(--grill);
  box-shadow: inset 0 -20px 0 rgba(0, 0, 0, 0.24), 5px 5px 0 var(--ink);
}

.grill {
  display: grid;
  place-items: end center;
  min-height: 470px;
  height: clamp(470px, 54vh, 650px);
  background:
    radial-gradient(circle at center, rgba(255, 211, 52, 0.18), transparent 34%),
    repeating-linear-gradient(90deg, #2c2c2c 0 18px, #111 18px 25px),
    var(--grill);
}

body.is-playing .grill,
body.is-playing .fryer {
  min-height: 0;
  height: 100%;
}

.flame {
  position: absolute;
  z-index: 0;
  bottom: 0;
  width: 76%;
  height: 85px;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at center, rgba(255, 211, 52, 0.95), transparent 54%),
    radial-gradient(ellipse at center, rgba(227, 34, 34, 0.75), transparent 72%);
  animation: flamePulse 800ms infinite alternate;
}

@keyframes flamePulse {
  from { transform: scaleX(0.96); opacity: 0.68; }
  to { transform: scaleX(1.05); opacity: 0.96; }
}

.fryer {
  display: grid;
  align-content: end;
  justify-items: center;
  min-height: 470px;
  height: clamp(470px, 54vh, 650px);
  padding: 22px 12px;
  background:
    radial-gradient(ellipse at center 66%, rgba(255, 211, 52, 0.44), transparent 28%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16), transparent 18% 82%, rgba(0, 0, 0, 0.22)),
    linear-gradient(180deg, #8a8a83 0%, #565650 46%, #272727 100%);
}

.fryer.is-target {
  outline: 7px dashed var(--yellow);
  outline-offset: -14px;
  box-shadow:
    inset 0 -20px 0 rgba(0, 0, 0, 0.24),
    5px 5px 0 var(--ink),
    0 0 34px rgba(255, 211, 52, 0.9);
}

.fryer.is-fries-target {
  outline: 7px dashed var(--green);
  outline-offset: -14px;
  box-shadow:
    inset 0 -20px 0 rgba(0, 0, 0, 0.24),
    5px 5px 0 var(--ink),
    0 0 34px rgba(32, 167, 90, 0.95);
}

.fryer-drop {
  position: absolute;
  top: 16px;
  left: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  min-height: 64px;
  border: 4px dashed rgba(255, 211, 52, 0.85);
  border-radius: 18px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.38);
  color: white;
  font-family: system-ui, sans-serif;
  font-size: clamp(0.78rem, 0.86vw, 0.98rem);
  font-weight: 1000;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  opacity: 0.5;
}

.fryer.is-target .fryer-drop {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(32, 167, 90, 0.92), rgba(17, 117, 60, 0.92));
  color: white;
  opacity: 1;
  box-shadow: 0 0 22px rgba(32, 167, 90, 0.9);
}

.fryer.is-fries-target .fryer-drop {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(32, 167, 90, 0.92), rgba(17, 117, 60, 0.92));
  color: white;
  opacity: 1;
  box-shadow: 0 0 22px rgba(32, 167, 90, 0.9);
}

.fryer-oil {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 128px;
  height: 96px;
  border: 5px solid var(--ink);
  border-radius: 28px;
  background:
    radial-gradient(circle at 32% 48%, rgba(255, 255, 255, 0.42), transparent 10%),
    radial-gradient(circle at 68% 44%, rgba(255, 255, 255, 0.3), transparent 9%),
    linear-gradient(180deg, #ffe36e, #f4aa23);
  box-shadow: inset 0 10px 0 rgba(255, 255, 255, 0.28), inset 0 -18px 0 rgba(120, 60, 0, 0.22);
}

.fryer-basket {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 146px;
  height: 82px;
  border: 5px solid var(--ink);
  border-radius: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(33, 19, 4, 0.75) 0 5px, transparent 5px 14px),
    repeating-linear-gradient(0deg, rgba(33, 19, 4, 0.55) 0 4px, transparent 4px 13px),
    rgba(255, 255, 255, 0.12);
  transform: rotate(-2deg);
  box-shadow: 5px 5px 0 rgba(33, 19, 4, 0.65);
}

.fryer-basket::before {
  content: "";
  position: absolute;
  right: -28px;
  top: 24px;
  width: 36px;
  height: 12px;
  border: 4px solid var(--ink);
  border-left: 0;
  border-radius: 0 999px 999px 0;
  background: #d7d7cc;
}

.fryer-basket span {
  position: absolute;
  bottom: 10px;
  width: 18px;
  height: 54px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  opacity: 0;
  transition: opacity 120ms ease, transform 120ms ease;
}

.fryer.has-fries .fryer-basket span {
  opacity: 1;
}

.fryer-basket span:nth-child(1) { left: 24%; transform: rotate(-8deg); }
.fryer-basket span:nth-child(2) { left: 43%; transform: rotate(3deg); }
.fryer-basket span:nth-child(3) { left: 62%; transform: rotate(10deg); }

.fryer-basket::after {
  content: "";
  position: absolute;
  left: 25%;
  right: 17%;
  top: 18px;
  height: 26px;
  border-radius: 999px;
  opacity: 0;
  background:
    radial-gradient(circle at 10% 50%, white 0 2px, transparent 3px),
    radial-gradient(circle at 25% 28%, white 0 2px, transparent 3px),
    radial-gradient(circle at 38% 62%, white 0 2px, transparent 3px),
    radial-gradient(circle at 53% 36%, white 0 2px, transparent 3px),
    radial-gradient(circle at 68% 58%, white 0 2px, transparent 3px),
    radial-gradient(circle at 84% 42%, white 0 2px, transparent 3px);
}

.fryer.is-salted .fryer-basket::after {
  opacity: 1;
}

.fryer > span {
  display: none;
  width: 82%;
  height: 24px;
  margin-top: -3px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #ffe569 0 11px, #f3aa28 11px 17px);
}

.fryer strong {
  margin-top: 22px;
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 7px 8px;
  background: var(--red);
  color: white;
  font-size: 0.9rem;
}

#foodCanvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.sim-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.sim-target {
  position: absolute;
  left: 50%;
  top: 61%;
  width: min(38%, 360px);
  aspect-ratio: 1;
  border: 6px dashed rgba(255, 211, 52, 0.92);
  border-radius: 999px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 8px rgba(35, 167, 90, 0.22), 0 0 34px rgba(255, 211, 52, 0.9);
  animation: targetPulse 700ms infinite alternate;
}

.sim-target.is-hidden {
  display: none;
}

.sim-target.is-fryer {
  left: auto;
  right: 4%;
  top: 55%;
  width: 120px;
  border-radius: 22px;
}

.sim-target.is-cup,
.sim-target.is-fountain {
  left: 74%;
  top: 58%;
  width: 170px;
  border-radius: 24px;
}

.sim-target.is-carton,
.sim-target.is-fries {
  left: 27%;
  top: 55%;
  width: 190px;
  border-radius: 24px;
}

.sim-target.is-pass {
  left: 50%;
  top: 14%;
  width: 260px;
  height: 82px;
  aspect-ratio: auto;
  border-radius: 18px;
}

@keyframes targetPulse {
  from { opacity: 0.58; transform: translate(-50%, -50%) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1.03); }
}

.sim-arrow {
  position: absolute;
  left: 36%;
  top: 42%;
  width: 28%;
  height: 18px;
  border-radius: 999px;
  background: var(--yellow);
  box-shadow: 5px 5px 0 var(--ink), 0 0 24px rgba(255, 211, 52, 0.9);
  display: none;
}

.sim-arrow::after {
  content: "";
  position: absolute;
  right: -20px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
  border-left: 34px solid var(--yellow);
  transform: translateY(-50%);
}

.sim-arrow.is-visible {
  display: block;
  animation: arrowSlide 560ms infinite alternate;
}

@keyframes arrowSlide {
  from { transform: translateX(-12px); }
  to { transform: translateX(14px); }
}

.sim-meter {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: min(52%, 440px);
  height: 24px;
  border: 4px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: white;
  box-shadow: 4px 4px 0 var(--ink);
  transform: translateX(-50%);
  display: none;
}

.sim-meter span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red) 0 24%, var(--green) 24% 76%, var(--red) 76% 100%);
}

.sim-meter.is-visible {
  display: block;
}

.pass-zone {
  position: absolute;
  left: 50%;
  top: 10px;
  transform: translateX(-50%);
  border: 4px solid var(--ink);
  border-radius: 14px;
  padding: 8px 18px;
  background: var(--green);
  color: white;
  box-shadow: 4px 4px 0 var(--ink);
  display: none;
}

.pass-zone.is-visible {
  display: block;
}

.drag-ghost {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  min-width: 92px;
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 12px 14px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 6px 6px 0 rgba(33, 19, 4, 0.78);
  text-align: center;
  transform: translate(-50%, -50%) rotate(-3deg);
}

.actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.is-playing .actions {
  align-content: stretch;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.prep-tile {
  user-select: none;
  touch-action: none;
}

.actions button,
.prep-tile {
  min-height: 58px;
  background: white;
}

body.is-playing .actions button,
body.is-playing .prep-tile {
  display: grid;
  place-items: center;
  position: relative;
  min-height: 44px;
  padding: 7px 6px;
  border: 4px solid var(--ink);
  border-width: 4px;
  border-radius: 14px;
  box-shadow: 4px 4px 0 var(--ink);
  background: white;
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: clamp(0.78rem, 0.8vw, 0.94rem);
  font-weight: 1000;
  line-height: 1.02;
  text-align: center;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  cursor: grab;
}

.prep-label {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 100%;
  color: inherit;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
  word-break: normal;
  overflow-wrap: anywhere;
}

.actions button.is-next,
.prep-tile.is-active {
  background: linear-gradient(180deg, #fff176, var(--gold));
  color: #140b02;
  outline: 5px solid var(--green);
}

.prep-tile.is-passive {
  opacity: 0.72;
  filter: none;
  background: #fffaf0;
}

.prep-tile.is-passive .prep-label {
  color: #3a2308;
}

.prep-tile.is-hold {
  cursor: pointer;
}

.completion-button {
  cursor: pointer;
}

body.is-playing .actions.is-complete {
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 10px;
}

body.is-playing .actions.is-complete .prep-prompt {
  grid-column: 1 / -1;
  min-height: 58px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fff176, var(--gold));
  outline: 5px solid var(--green);
}

body.is-playing .actions.is-complete .completion-button {
  min-height: 48px;
  max-height: 56px;
  padding: 9px 12px;
  color: white;
  cursor: pointer;
}

body.is-playing .actions.is-complete .completion-button:hover {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 var(--ink);
}

body.is-playing .actions.is-complete .completion-button.is-share-x {
  background: #111111;
  outline: 5px solid #1d9bf0;
}

body.is-playing .actions.is-complete .completion-button.is-next-ticket {
  background: #14833b;
  outline: 5px solid var(--yellow);
}

body.is-playing .actions.is-complete .completion-button .prep-label {
  color: white;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.share-modal,
.job-board-modal,
.notice-modal,
.about-modal,
.bounty-modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.68);
}

.share-modal {
  z-index: 50;
}

.job-board-modal {
  z-index: 60;
}

.notice-modal {
  z-index: 70;
}

.about-modal {
  z-index: 71;
}

.bounty-modal {
  z-index: 72;
}

.share-card,
.job-board-card,
.notice-card,
.about-card,
.bounty-detail-card {
  position: relative;
  width: min(760px, 100%);
  border: 5px solid var(--ink);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #fff9d7, #ffd85b);
  box-shadow: 10px 10px 0 var(--ink);
}

.job-board-card {
  width: min(1060px, 100%);
}

.notice-card {
  width: min(560px, 100%);
}

.about-card {
  width: min(780px, 100%);
}

.about-copy {
  display: grid;
  gap: 10px;
  margin: 10px 0 16px;
}

.about-copy p {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  background: white;
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.35;
}

.about-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about-actions button,
.about-actions a {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 4px solid var(--ink);
  border-radius: 14px;
  padding: 10px 16px;
  color: white;
  box-shadow: 5px 5px 0 var(--ink);
  font-family: system-ui, sans-serif;
  font-weight: 1000;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

#aboutGotItButton {
  background: var(--red);
}

#aboutBuyButton {
  background: var(--green);
  outline: 5px solid var(--yellow);
}

.bounty-detail-card {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(860px, calc(100dvh - 36px));
  overflow-y: auto;
  scrollbar-color: var(--red) var(--ink);
  scrollbar-width: thin;
}

.bounty-detail-card .share-title {
  margin-bottom: 14px;
}

.bounty-detail-card .share-title strong {
  font-size: clamp(2.35rem, 5vw, 4.15rem);
}

.bounty-detail-card::-webkit-scrollbar {
  width: 14px;
}

.bounty-detail-card::-webkit-scrollbar-track {
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
}

.bounty-detail-card::-webkit-scrollbar-thumb {
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red), var(--red-dark));
}

.notice-card p {
  margin: 8px 0 16px;
  font-family: system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 1000;
  line-height: 1.25;
}

#noticeActionButton {
  width: 100%;
  min-height: 54px;
  background: var(--green);
  color: white;
  outline: 5px solid var(--yellow);
}

.share-close {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 42px;
  height: 42px;
  border: 4px solid var(--ink);
  border-radius: 12px;
  background: var(--red);
  color: white;
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.share-title {
  display: grid;
  gap: 2px;
  margin-right: 52px;
  margin-bottom: 12px;
}

.share-title span {
  font-family: system-ui, sans-serif;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.share-title strong {
  color: var(--red);
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 0.9;
  text-shadow: 2px 2px 0 white, 4px 4px 0 var(--ink);
}

#sharePreviewImage {
  display: block;
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
  border: 5px solid var(--ink);
  border-radius: 18px;
  background: #111;
  box-shadow: 5px 5px 0 var(--ink);
}

#shareHint {
  margin: 12px 0;
  font-family: system-ui, sans-serif;
  font-weight: 1000;
  line-height: 1.2;
}

.share-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.share-actions button {
  min-height: 54px;
  border: 4px solid var(--ink);
  border-radius: 14px;
  color: white;
  box-shadow: 5px 5px 0 var(--ink);
  font-family: system-ui, sans-serif;
  font-weight: 1000;
  text-transform: uppercase;
  cursor: pointer;
}

#openXButton {
  background: #111;
  outline: 5px solid #1d9bf0;
}

#moreJobsButton {
  background: #14833b;
  outline: 5px solid var(--yellow);
}

#openXButton:disabled,
#moreJobsButton:disabled {
  cursor: wait;
  opacity: 0.72;
}

.job-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.job-ticket {
  display: grid;
  gap: 8px;
  height: 270px;
  min-height: 270px;
  grid-template-rows: 72px 58px 32px 48px;
  overflow: hidden;
  border: 5px solid var(--ink);
  border-radius: 18px;
  padding: 14px;
  background: linear-gradient(180deg, #1d9bf0, #1276b9);
  color: white;
  box-shadow: 6px 6px 0 var(--ink);
}

.job-ticket strong {
  font-family: system-ui, sans-serif;
  font-size: clamp(1.08rem, 1.55vw, 1.55rem);
  font-weight: 1000;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 1px 1px 0 var(--ink);
  min-height: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.job-ticket small,
.job-ticket em {
  min-height: 0;
  overflow: hidden;
  line-height: 1.12;
  font-family: system-ui, sans-serif;
  font-style: normal;
  font-weight: 1000;
  text-transform: uppercase;
}

.job-ticket-tags {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 0;
  max-height: 58px;
  overflow: hidden;
}

.job-ticket-tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  max-width: 100%;
  min-height: 0;
  border: 3px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.16);
  font-family: system-ui, sans-serif;
  font-weight: 1000;
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-ticket button {
  align-self: end;
  width: 100%;
  min-height: 46px;
  border: 4px solid var(--ink);
  border-radius: 14px;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  font-family: system-ui, sans-serif;
  font-weight: 1000;
  text-transform: uppercase;
  cursor: pointer;
}

.job-ticket button:hover {
  transform: translate(1px, 1px);
  box-shadow: 3px 3px 0 var(--ink);
}

@media (max-width: 900px) {
  .job-board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .share-actions,
  .job-board-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.prep-prompt {
  grid-column: 1 / -1;
  min-height: 54px;
}

.mistake-strip {
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 24px;
  display: flex;
  gap: 6px;
  align-items: center;
  font-family: system-ui, sans-serif;
  font-weight: 1000;
}

.mistake-dot {
  width: 16px;
  height: 16px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: white;
}

.mistake-dot.is-hit {
  background: var(--red);
}

.message {
  grid-area: message;
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--red-dark);
  font-family: system-ui, sans-serif;
  font-weight: 1000;
}

body.is-playing .message {
  margin: 0;
  min-height: 20px;
  font-size: 0.95rem;
}

.message.is-error {
  color: var(--bad);
}

.message.is-ok {
  color: var(--green);
}

.crew-board {
  grid-area: board;
  min-height: 0;
  padding: 14px;
  background:
    linear-gradient(180deg, #2d2017, #17100c);
  color: white;
}

body.is-playing .crew-board {
  min-height: 0;
  height: calc(100dvh - 154px);
  padding: 12px;
  overflow: hidden;
}

.board-top {
  margin-bottom: 12px;
  background: var(--red);
}

.board-top h2 {
  margin: 2px 0 0;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 0.9;
}

body.is-playing .board-top h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.bounty-board {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 0;
  max-height: calc(100% - 118px);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 8px 4px 0;
  scrollbar-color: var(--red) #3b2a1f;
  scrollbar-width: thin;
}

.bounty-board::-webkit-scrollbar {
  width: 12px;
}

.bounty-board::-webkit-scrollbar-track {
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #3b2a1f;
}

.bounty-board::-webkit-scrollbar-thumb {
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--yellow), var(--gold));
}

.bounty-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 3px solid var(--yellow);
  border-radius: 14px;
  padding: 9px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.bounty-card:hover,
.bounty-card:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink);
  background: rgba(255, 211, 52, 0.18);
  outline: none;
}

.bounty-card img {
  width: 58px;
  height: 58px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  object-fit: cover;
  background: var(--red);
}

.bounty-card.has-no-image {
  grid-template-columns: minmax(0, 1fr);
}

.bounty-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.bounty-body strong {
  min-width: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: system-ui, sans-serif;
  font-weight: 1000;
  line-height: 1.05;
}

.bounty-body small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffe9a1;
  font-family: system-ui, sans-serif;
  font-weight: 900;
}

.bounty-cue {
  justify-self: start;
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 5px 10px;
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 1000;
  text-transform: uppercase;
}

.bounty-empty {
  margin: 0;
  border: 3px dashed var(--yellow);
  border-radius: 14px;
  padding: 12px;
  color: #ffe9a1;
  font-family: system-ui, sans-serif;
  font-weight: 1000;
}

.bounty-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  grid-template-areas:
    "hero hero"
    "criteria stats"
    "rewards stats"
    "actions actions";
  gap: 14px;
  font-family: system-ui, sans-serif;
}

.bounty-detail-hero {
  grid-area: hero;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 4px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(235, 30, 35, 0.12), transparent 34%),
    linear-gradient(180deg, #fffdf2, #fff4bd);
  box-shadow: 5px 5px 0 var(--ink);
}

.bounty-detail-hero:has(img) {
  grid-template-columns: 156px minmax(0, 1fr);
}

.bounty-detail-hero img {
  width: 156px;
  height: 156px;
  border: 4px solid var(--ink);
  border-radius: 16px;
  object-fit: cover;
  background: var(--red);
  box-shadow: 5px 5px 0 var(--ink);
}

.bounty-detail-copy {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.bounty-detail-hero h3 {
  max-width: 920px;
  margin: 0;
  color: var(--red);
  font-size: clamp(2.25rem, 5.2vw, 4.2rem);
  line-height: 0.88;
  overflow-wrap: anywhere;
  text-shadow: 3px 3px 0 white, 5px 5px 0 var(--ink);
}

.bounty-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bounty-pill {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 8px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 11px;
  background: var(--red);
  color: white;
  box-shadow: 3px 3px 0 var(--ink);
  text-transform: uppercase;
}

.bounty-pill em {
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 1000;
  opacity: 0.78;
}

.bounty-pill strong {
  font-weight: 1000;
}

.bounty-detail-body {
  margin: 0;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 14px 16px;
  background: white;
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  font-weight: 850;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.bounty-detail-grid {
  grid-area: stats;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.bounty-detail-row {
  min-width: 0;
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fffdfa;
  box-shadow: 3px 3px 0 rgba(33, 19, 4, 0.22);
}

.bounty-detail-row span {
  display: block;
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bounty-detail-row strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 1000;
}

.bounty-detail-section {
  min-width: 0;
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  background: white;
  box-shadow: 4px 4px 0 rgba(33, 19, 4, 0.18);
}

.bounty-detail-criteria {
  grid-area: criteria;
}

.bounty-detail-rewards {
  grid-area: rewards;
}

.bounty-detail-section h4 {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 1.1rem;
  font-weight: 1000;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bounty-detail-section ol {
  margin: 0;
  padding-left: 24px;
  font-weight: 900;
  line-height: 1.42;
}

.bounty-detail-section li {
  overflow-wrap: anywhere;
}

.bounty-reward-list {
  display: grid;
  gap: 8px;
}

.bounty-reward-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border: 3px solid rgba(33, 19, 4, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff6c8;
  font-weight: 1000;
}

.bounty-reward-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bounty-detail-actions {
  grid-area: actions;
}

.bounty-detail-actions a {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 4px solid var(--ink);
  border-radius: 14px;
  padding: 10px 16px;
  background: var(--green);
  color: white;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 1000;
  text-decoration: none;
  text-transform: uppercase;
}

.leader-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  margin-bottom: 10px;
  border: 3px solid var(--yellow);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.leader-row strong {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
}

.leader-row span,
.leader-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leader-row small {
  color: #ffe9a1;
  font-family: system-ui, sans-serif;
  font-weight: 900;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1060px) {
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .shell {
    height: auto;
    min-height: 100dvh;
  }

  body.is-playing {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .kitchen {
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    grid-template-areas:
      "signin station"
      "board board";
  }

  .home-job-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.is-playing .kitchen {
    grid-template-columns: 1fr;
    grid-template-areas:
      "station"
      "board";
    height: auto;
  }

  body.is-playing .station {
    display: block;
    height: auto;
    min-height: 0;
  }

  .ticket {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "ticketLabel stats"
      "title stats"
      "items items"
      "stepLabel stepLabel"
      "step step";
  }

  .ticket strong {
    text-align: left;
  }

  body.is-playing .crew-board {
    height: auto;
    min-height: 320px;
    overflow: visible;
  }

  .crew-board {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 18px, 1240px);
    padding-top: 12px;
  }

  .brand-lockup {
    min-height: 0;
    padding-right: 18px;
  }

  h1 {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .brand-actions {
    position: relative;
    top: auto;
    right: auto;
    justify-content: flex-start;
    flex-wrap: wrap;
    max-width: 100%;
    margin-top: 12px;
  }

  .brand-token {
    max-width: 100%;
  }

  .brand-buy,
  .brand-about {
    flex: 1 1 130px;
  }

  .about-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .ticker {
    flex-wrap: wrap;
  }

  .ticker span {
    flex: 1 1 calc(50% - 10px);
  }

  .kitchen,
  .grill-wrap {
    grid-template-columns: 1fr;
    grid-template-areas: none;
  }

  .counter,
  .home-job-board,
  .station,
  .crew-board {
    grid-area: auto;
  }

  .home-job-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.is-playing .kitchen {
    grid-template-columns: 1fr;
  }

  .station {
    min-height: 0;
  }

  .ticket {
    grid-template-columns: 1fr;
    grid-template-areas:
      "ticketLabel"
      "title"
      "items"
      "stepLabel"
      "step"
      "stats";
  }

  .ticket em {
    min-width: 0;
    min-height: 38px;
  }

  .pay-clock {
    display: grid;
    justify-items: start;
  }

  .pay-clock span {
    white-space: normal;
  }

  .grill {
    min-height: 390px;
    height: 58vh;
  }

  .bounty-detail-card {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 16px;
  }

  .bounty-detail-card .share-title strong {
    font-size: clamp(2.1rem, 13vw, 3.4rem);
  }

  .bounty-detail-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "hero"
      "criteria"
      "rewards"
      "stats"
      "actions";
  }

  .bounty-detail-hero,
  .bounty-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bounty-detail-hero:has(img) {
    grid-template-columns: minmax(0, 1fr);
  }

  .bounty-detail-hero img {
    width: 100%;
    height: 180px;
  }

  .bounty-detail-hero h3 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .bounty-pill {
    border-radius: 12px;
  }

  .fryer {
    height: 120px;
    min-height: 120px;
    grid-auto-flow: column;
    align-content: center;
    justify-content: center;
  }

  .fryer strong {
    margin-top: 0;
  }

  .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
