/* Public-service + operations career presentations --------------------- */

.public-game-shell {
  --public-navy: #18344f;
  --public-blue: #356f99;
  --public-green: #087665;
  --public-gold: #efbb4c;
  --public-soft: #eaf3f8;
}

.public-game-shell button {
  min-width: 48px;
  min-height: 48px;
  touch-action: manipulation;
}

.public-experience {
  margin-block: 0.9rem;
  padding: clamp(0.75rem, 2vw, 1rem);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.91);
  border: 2px solid color-mix(in srgb, var(--beta-accent) 28%, white);
  border-radius: 18px;
  box-shadow: 0 7px 20px rgba(24, 52, 79, 0.09);
}

.public-scene-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
}

.public-scene-heading small {
  color: var(--beta-accent);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.public-scene-heading h3 {
  margin: 0.08rem 0 0;
  color: var(--beta-accent-dark);
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  line-height: 1.1;
}

.public-scene-heading > span {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0.38rem 0.62rem;
  color: var(--beta-accent-dark);
  background: var(--beta-soft);
  border: 2px solid color-mix(in srgb, var(--beta-accent) 35%, white);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 950;
}

/* Shared activity surfaces */

.public-sequence-panel,
.public-inspect-panel,
.public-match-panel,
.public-control-panel,
.public-route-panel {
  margin-top: 0.75rem;
  padding: 0.68rem;
  color: var(--beta-accent-dark);
  background: color-mix(in srgb, var(--beta-soft) 68%, white);
  border: 2px solid color-mix(in srgb, var(--beta-accent) 24%, white);
  border-radius: 14px;
}

.public-sequence-panel h4,
.public-match-panel h4,
.public-control-panel h4 {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
}

.public-sequence-panel > ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  list-style: none;
}

.public-sequence-panel > ol > li {
  display: grid;
  min-width: 0;
  min-height: 92px;
  place-items: center;
  align-content: center;
  gap: 0.3rem;
  padding: 0.48rem;
  background: white;
  border: 2px dashed color-mix(in srgb, var(--beta-accent) 44%, white);
  border-radius: 11px;
  text-align: center;
}

.public-sequence-panel > ol > li.is-ready {
  background: color-mix(in srgb, var(--beta-support) 11%, white);
  border-color: var(--beta-support);
  border-style: solid;
}

.public-sequence-panel > ol > li > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: white;
  background: var(--beta-accent-dark);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 950;
}

.public-sequence-panel > ol button {
  width: 48px;
  min-width: 48px !important;
  min-height: 48px !important;
  padding: 0;
  color: var(--beta-accent-dark);
  background: white;
  border: 2px solid var(--beta-accent);
  border-radius: 50%;
  font-weight: 950;
}

.public-token-tray {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  margin-top: 0.55rem;
}

.public-token-tray button,
.public-inspect-panel button,
.public-match-item,
.public-match-slot,
.public-control-panel fieldset button,
.dispatch-controls button {
  min-width: 0;
  color: var(--beta-accent-dark);
  background: white;
  border: 2px solid var(--beta-accent);
  border-radius: 11px;
  box-shadow: 0 3px 0 color-mix(in srgb, var(--beta-accent-dark) 22%, transparent);
  font-weight: 850;
}

.public-token-tray button {
  display: grid;
  min-height: 76px;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem;
  text-align: left;
}

.public-token-tray button > span {
  font-size: 1.3rem;
}

.public-inspect-panel {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-inspect-panel button,
.public-match-item,
.public-match-slot {
  display: grid;
  min-height: 82px;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0.12rem 0.5rem;
  padding: 0.55rem;
  text-align: left;
}

.public-inspect-panel button > span,
.public-match-item > span,
.public-match-slot > span {
  grid-row: 1 / -1;
  font-size: 1.35rem;
}

.public-inspect-panel small,
.public-match-item small,
.public-match-slot small {
  opacity: 0.74;
}

.public-inspect-panel button.is-selected,
.public-match-item.is-selected,
.public-control-panel button.is-selected {
  color: white;
  background: var(--beta-support-dark);
  border-color: var(--beta-support-dark);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--beta-support) 20%, transparent);
}

.public-match-item.is-assigned:not(.is-selected),
.public-match-slot.is-filled {
  color: var(--beta-support-dark);
  background: color-mix(in srgb, var(--beta-support) 12%, white);
  border-color: var(--beta-support);
}

.public-match-panel {
  display: grid;
  align-items: start;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-match-panel > div {
  display: grid;
  gap: 0.4rem;
}

.public-control-panel > div {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-control-panel fieldset {
  min-width: 0;
  margin: 0;
  padding: 0.58rem;
  background: white;
  border: 2px solid color-mix(in srgb, var(--beta-accent) 28%, white);
  border-radius: 11px;
}

.public-control-panel legend {
  padding-inline: 0.25rem;
  font-size: 0.76rem;
  font-weight: 900;
}

.public-control-panel fieldset > div {
  display: grid;
  gap: 0.35rem;
}

.public-control-panel fieldset button {
  min-height: 44px;
  padding: 0.35rem 0.45rem;
  box-shadow: none;
  font-size: 0.7rem;
}

.public-token-tray button:hover,
.public-inspect-panel button:hover,
.public-match-item:not(:disabled):hover,
.public-match-slot:not(:disabled):hover,
.public-control-panel button:hover,
.dispatch-controls button:hover {
  color: white;
  background: var(--beta-accent);
  transform: translateY(-1px);
}

/* Business manager: live operations floor */

.operations-wall {
  position: relative;
  display: grid;
  min-height: 245px;
  grid-template-columns: minmax(110px, 0.45fr) minmax(260px, 1.4fr);
  align-items: end;
  gap: 0.75rem;
  padding: 0.9rem;
  color: white;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    #263d54;
  background-size: 28px 28px;
  border: 4px solid white;
  border-radius: 17px;
}

.ops-team {
  padding-bottom: 0.8rem;
  font-size: 2.25rem;
  text-align: center;
}

.ops-board {
  display: grid;
  align-self: stretch;
  gap: 0.45rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0.65rem;
  background: #f4f0e4;
  border: 7px solid #172637;
  border-radius: 9px;
}

.ops-board article {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.25rem;
  padding: 0.45rem;
  color: #604b53;
  background: #eadfce;
  border-radius: 7px;
}

.ops-board article.is-ready {
  color: #075e50;
  background: #cfeee4;
  box-shadow: inset 0 -5px 0 #5aaf9c;
}

.ops-board small {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: white;
  background: #66778a;
  border-radius: 50%;
  font-size: 0.6rem;
}

.ops-board strong {
  font-size: 0.58rem;
  text-transform: uppercase;
}

.ops-board i {
  height: 4px;
  background: #b9ae9f;
  border-radius: 99px;
}

.ops-clock {
  position: absolute;
  top: 0.6rem;
  left: 0.7rem;
  font-size: 2rem;
}

/* Fashion model: safe call sheet and runway */

.runway-scene {
  display: grid;
  min-height: 250px;
  grid-template-columns: minmax(160px, 0.8fr) minmax(220px, 1.2fr);
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.9rem;
  background:
    radial-gradient(circle at 20% 0, rgba(255, 255, 255, 0.55), transparent 28%),
    linear-gradient(145deg, #e7d7f2, #f8d8e5);
  border: 4px solid white;
  border-radius: 17px;
}

.runway-strip {
  display: grid;
  min-height: 210px;
  place-items: center;
  align-content: center;
  gap: 0.35rem;
  color: #6b2c55;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.75) 49% 51%, transparent 52%),
    #d9a7c7;
  border: 4px solid #9a5882;
  border-radius: 50% 50% 10px 10px;
}

.runway-strip > span {
  font-size: 5rem;
}

.runway-strip i {
  width: 90px;
  height: 10px;
  background: rgba(71, 35, 61, 0.18);
  border-radius: 50%;
}

.runway-strip strong {
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.call-sheet-paper {
  align-self: center;
  padding: 0.8rem;
  color: #403542;
  background: #fffdf8;
  border: 2px solid #cbbbc4;
  box-shadow: 6px 8px 0 rgba(75, 46, 68, 0.12);
  transform: rotate(1deg);
}

.call-sheet-paper > small {
  font-size: 0.6rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.call-sheet-paper p {
  padding: 0.4rem;
  background: #f0e9ed;
  border-left: 5px solid #b6a6af;
  font-size: 0.68rem;
  font-weight: 800;
}

.call-sheet-paper p.is-ready {
  color: #075e50;
  background: #dcf4ed;
  border-color: #29947f;
}

.call-sheet-paper b {
  display: block;
  padding: 0.35rem;
  color: #075e50;
  background: #e1f7f0;
  font-size: 0.56rem;
  text-align: center;
}

.call-sheet-paper b.is-warning {
  color: #842d3e;
  background: #ffe1e5;
}

/* Journalist: source-verification newsroom */

.newsroom-scene {
  display: grid;
  min-height: 245px;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.8fr);
  grid-template-rows: 1fr auto;
  gap: 0.65rem;
  padding: 0.75rem;
  color: #d9eaf5;
  background: #192735;
  border: 4px solid #5c7386;
  border-radius: 15px;
}

.news-monitor {
  display: grid;
  min-height: 150px;
  align-content: center;
  gap: 0.45rem;
  padding: 0.7rem;
  color: #193049;
  background: #f4f8fa;
  border: 6px solid #516171;
  border-radius: 8px;
}

.news-monitor small {
  font: 800 0.58rem ui-monospace, monospace;
}

.news-monitor strong {
  color: #9d3348;
  font-size: 0.72rem;
}

.news-monitor span {
  font: 950 1.1rem Georgia, serif;
}

.news-monitor i {
  height: 6px;
  background: repeating-linear-gradient(90deg, #8293a1 0 25px, transparent 25px 30px);
}

.source-file {
  display: grid;
  gap: 0.35rem;
}

.source-file span {
  padding: 0.45rem;
  color: #9cabb8;
  background: #263b4e;
  border: 1px solid #577086;
  border-radius: 7px;
  font: 750 0.58rem ui-monospace, monospace;
}

.source-file span.is-ready {
  color: #c9fff5;
  background: #087665;
}

.source-file span.is-warning {
  color: #ffd9df;
  background: #8c3144;
}

.news-desk {
  grid-column: 1 / -1;
  padding: 0.45rem;
  background: #3a2e2a;
  border-radius: 7px;
  font-size: 1.5rem;
  text-align: center;
}

/* Police officer: tiny, coordinated community-rescue rally */

.public-game-shell[data-beta-kind="tinyTownRescue"] {
  --public-navy: #233b64;
  --public-blue: #387caa;
  --public-green: #087665;
  --public-gold: #efbb4c;
  --public-soft: #e7f6f3;
}

.tiny-town-rescue {
  background:
    radial-gradient(circle at 92% 5%, rgba(239, 187, 76, 0.3), transparent 8rem),
    linear-gradient(145deg, #f7fffd, #e4f3fb);
  border-color: #5e9eab;
}

.tiny-response-plans,
.tiny-rescue-finish {
  min-inline-size: 0;
  margin: 0.75rem 0;
  padding: 0.75rem;
  color: #18344f;
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #77aebb;
  border-radius: 15px;
  box-shadow: 0 5px 0 rgba(24, 52, 79, 0.1);
}

.tiny-response-plans legend,
.tiny-rescue-finish legend {
  padding-inline: 0.35rem;
  color: #18344f;
  font-family: var(--font-rounded, ui-rounded, system-ui, sans-serif);
  font-size: 0.88rem;
  font-weight: 950;
}

.tiny-response-plans > p,
.tiny-rescue-finish > p {
  margin: 0 0 0.65rem;
  font-size: 0.76rem;
  font-weight: 760;
}

.tiny-response-plans > div,
.tiny-rescue-finish > div {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tiny-response-plans button,
.tiny-rescue-finish button {
  display: grid;
  min-width: 0;
  min-height: 88px;
  align-items: center;
  gap: 0.45rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.55rem;
  color: #18344f;
  background: white;
  border: 2px solid #387caa;
  border-radius: 12px;
  box-shadow: 0 3px 0 rgba(24, 52, 79, 0.18);
  text-align: left;
}

.tiny-response-plans button > span:first-child,
.tiny-rescue-finish button > span:first-child {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: #e7f6f3;
  border-radius: 12px;
  font-size: 1.35rem;
}

.tiny-response-plans button strong,
.tiny-response-plans button small,
.tiny-rescue-finish button strong,
.tiny-rescue-finish button small {
  display: block;
}

.tiny-response-plans button strong,
.tiny-rescue-finish button strong {
  font-size: 0.73rem;
  line-height: 1.2;
}

.tiny-response-plans button small,
.tiny-rescue-finish button small {
  margin-top: 0.18rem;
  opacity: 0.78;
  font-size: 0.62rem;
  line-height: 1.25;
}

.tiny-response-plans button.is-selected,
.tiny-rescue-finish button.is-selected {
  color: white;
  background: #225f84;
  border-color: #18344f;
  box-shadow: 0 0 0 4px rgba(239, 187, 76, 0.35);
}

.tiny-response-plans button.is-selected > span:first-child,
.tiny-rescue-finish button.is-selected > span:first-child {
  background: white;
}

.tiny-town-rescue-scene {
  display: grid;
  align-items: stretch;
  gap: 0.7rem;
  grid-template-columns: minmax(280px, 1.35fr) minmax(190px, 0.65fr);
  margin-block: 0.75rem;
  padding: 0.7rem;
  background: linear-gradient(145deg, #bfe9e1, #cce6f4);
  border: 4px solid white;
  border-radius: 18px;
  box-shadow: 0 7px 0 rgba(24, 52, 79, 0.12);
}

.tiny-town-map-wrap {
  min-width: 0;
  overflow: hidden;
  background: #7fbf91;
  border: 4px solid #356f54;
  border-radius: 15px;
}

.tiny-town-skyline {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  color: #18344f;
  background: linear-gradient(#bdeaff, #e6f8ff);
  border-bottom: 3px solid #356f54;
}

.tiny-town-skyline b {
  font-size: 0.64rem;
  letter-spacing: 0.08em;
}

.tiny-town-map {
  display: grid;
  gap: 3px;
  grid-template-columns: repeat(var(--tiny-map-size, 5), minmax(48px, 1fr));
  padding: 0.45rem;
  background:
    radial-gradient(circle at 5% 95%, rgba(255, 255, 255, 0.3), transparent 28%),
    #70aa7f;
}

.tiny-town-cell {
  position: relative;
  display: grid;
  min-width: 48px;
  min-height: 58px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  color: #22334d;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.64) 46% 54%, transparent 55%),
    #c8d0d5;
  border: 2px solid #60717a;
  border-radius: 8px;
}

.tiny-town-cell::before {
  position: absolute;
  inset: 45% 0 auto;
  height: 3px;
  content: "";
  background: repeating-linear-gradient(90deg, #f8d77b 0 9px, transparent 9px 14px);
}

.tiny-town-cell > small {
  position: absolute;
  top: 2px;
  left: 3px;
  z-index: 4;
  opacity: 0.64;
  font-size: 0.48rem;
  font-weight: 900;
}

.tiny-town-cell.is-trail {
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.8) 46% 54%, transparent 55%),
    #a7dbea;
}

.tiny-town-cell.is-closed {
  background:
    radial-gradient(circle at 24% 23%, rgba(255, 255, 255, 0.32), transparent 26%),
    #71b780;
  border-color: #3a7650;
}

.tiny-town-cell.is-closed::before {
  display: none;
}

.tiny-town-cell.is-goal {
  border-color: #b76c18;
  box-shadow: inset 0 0 0 3px rgba(239, 187, 76, 0.38);
}

.tiny-town-cell.is-visited {
  border-color: #087665;
  box-shadow: inset 0 0 0 3px rgba(8, 118, 101, 0.28);
}

.tiny-town-cell.is-current {
  z-index: 2;
  outline: 4px solid #ffe084;
  outline-offset: -4px;
}

.tiny-landmark,
.tiny-obstacle,
.tiny-goal {
  position: relative;
  z-index: 2;
  font-size: clamp(1.1rem, 3vw, 1.55rem);
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.65));
}

.tiny-obstacle {
  opacity: 0.9;
}

.tiny-robot-cart {
  animation: tiny-robot-roll 1.1s ease-in-out infinite alternate;
}

@keyframes tiny-robot-roll {
  from { transform: translateX(-3px) rotate(-4deg); }
  to { transform: translateX(3px) rotate(4deg); }
}

.tiny-checkpoint-check {
  position: absolute;
  right: 3px;
  bottom: 3px;
  z-index: 5;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  color: white;
  background: #087665;
  border: 2px solid white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 950;
}

.tiny-response-car {
  position: absolute;
  z-index: 6;
  font-size: clamp(1.45rem, 4vw, 2rem);
  filter: drop-shadow(0 3px 0 rgba(24, 52, 79, 0.3));
}

.tiny-response-car.enter-from-up {
  animation: tiny-car-from-up 330ms ease-out;
}

.tiny-response-car.enter-from-right {
  animation: tiny-car-from-right 330ms ease-out;
}

.tiny-response-car.enter-from-down {
  animation: tiny-car-from-down 330ms ease-out;
}

.tiny-response-car.enter-from-left {
  animation: tiny-car-from-left 330ms ease-out;
}

.tiny-response-car.enter-from-ready {
  animation: tiny-car-ready 800ms ease-in-out infinite alternate;
}

@keyframes tiny-car-from-up {
  from { transform: translateY(75%) rotate(-8deg); opacity: 0.45; }
}

@keyframes tiny-car-from-right {
  from { transform: translateX(-75%) rotate(-8deg); opacity: 0.45; }
}

@keyframes tiny-car-from-down {
  from { transform: translateY(-75%) rotate(8deg); opacity: 0.45; }
}

@keyframes tiny-car-from-left {
  from { transform: translateX(75%) rotate(8deg); opacity: 0.45; }
}

@keyframes tiny-car-ready {
  to { transform: translateY(-3px) rotate(3deg); }
}

.tiny-town-map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  padding: 0.4rem 0.55rem;
  color: #163e31;
  background: #e8f7e9;
  border-top: 3px solid #356f54;
  font-size: 0.56rem;
  font-weight: 850;
}

.tiny-rescue-console {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 0.55rem;
  padding: 0.65rem;
  color: #e9f8ff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 45%),
    #233b64;
  border: 4px solid #152846;
  border-radius: 14px;
}

.tiny-console-screen {
  display: grid;
  min-height: 74px;
  align-content: center;
  gap: 0.15rem;
  padding: 0.55rem;
  color: #d5fff2;
  background: #12383b;
  border: 2px solid #75d6c0;
  border-radius: 9px;
  box-shadow: inset 0 0 14px rgba(117, 214, 192, 0.12);
}

.tiny-console-screen small {
  color: #75d6c0;
  font: 850 0.54rem ui-monospace, monospace;
  letter-spacing: 0.1em;
}

.tiny-console-screen strong {
  font-size: 0.73rem;
}

.tiny-console-screen span {
  font-size: 0.62rem;
}

.tiny-rescue-console h4 {
  margin: 0.1rem 0 0;
  font-size: 0.78rem;
}

.tiny-rescue-checkpoints {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tiny-rescue-checkpoints li {
  display: grid;
  min-height: 48px;
  align-items: center;
  gap: 0.45rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.4rem;
  color: #b6c8db;
  background: rgba(255, 255, 255, 0.07);
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
}

.tiny-rescue-checkpoints li > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 1rem;
}

.tiny-rescue-checkpoints strong,
.tiny-rescue-checkpoints small {
  display: block;
}

.tiny-rescue-checkpoints strong {
  font-size: 0.65rem;
}

.tiny-rescue-checkpoints small {
  margin-top: 0.1rem;
  font-size: 0.54rem;
}

.tiny-rescue-checkpoints li.is-current {
  color: white;
  border-color: #efbb4c;
  box-shadow: 0 0 0 2px rgba(239, 187, 76, 0.2);
}

.tiny-rescue-checkpoints li.is-complete {
  color: white;
  background: #087665;
  border-color: #77e1ca;
}

.tiny-keyboard-help {
  margin: 0;
  color: #c9d9e8;
  font-size: 0.57rem;
  line-height: 1.35;
}

.tiny-direction-pad {
  display: grid;
  width: min(100%, 180px);
  gap: 0.3rem;
  grid-template-columns: repeat(3, minmax(48px, 1fr));
  grid-template-rows: repeat(3, 48px);
  justify-self: center;
}

.tiny-direction-pad button {
  min-width: 48px;
  min-height: 48px;
  padding: 0;
  color: #18344f;
  background: #f8fcff;
  border: 3px solid #8db8d2;
  border-radius: 11px;
  box-shadow: 0 4px 0 #0f223d;
  font-size: 1.15rem;
  font-weight: 950;
}

.tiny-direction-pad button[data-direction="up"] {
  grid-column: 2;
  grid-row: 1;
}

.tiny-direction-pad button[data-direction="left"] {
  grid-column: 1;
  grid-row: 2;
}

.tiny-direction-pad button[data-direction="right"] {
  grid-column: 3;
  grid-row: 2;
}

.tiny-direction-pad button[data-direction="down"] {
  grid-column: 2;
  grid-row: 3;
}

.tiny-direction-pad button:not(:disabled):active {
  box-shadow: none;
  transform: translateY(3px);
}

.tiny-rescue-finish {
  opacity: 0.75;
  border-style: dashed;
}

.tiny-rescue-finish.is-ready {
  opacity: 1;
  border-color: #087665;
  border-style: solid;
}

.tiny-rescue-payoff {
  position: relative;
  display: grid;
  min-height: 145px;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  margin-top: 0.8rem;
  overflow: hidden;
  color: #173451;
  background:
    radial-gradient(circle at 10% 22%, #efbb4c 0 4px, transparent 5px),
    radial-gradient(circle at 88% 18%, #d94e8f 0 5px, transparent 6px),
    radial-gradient(circle at 78% 80%, #087665 0 4px, transparent 5px),
    linear-gradient(145deg, #fff5c8, #d9f7ed);
  border: 4px solid #efbb4c;
  border-radius: 18px;
  box-shadow: 0 7px 0 rgba(24, 52, 79, 0.13);
  text-align: center;
  animation: tiny-payoff-arrive 480ms ease-out both;
}

.tiny-rescue-payoff > span {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  font-size: 1.6rem;
}

.tiny-rescue-payoff > div {
  font-size: clamp(1.7rem, 6vw, 2.8rem);
}

.tiny-rescue-payoff strong {
  font-family: var(--font-rounded, ui-rounded, system-ui, sans-serif);
  font-size: clamp(1rem, 3vw, 1.45rem);
}

.tiny-rescue-payoff small {
  font-weight: 850;
}

@keyframes tiny-payoff-arrive {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
}

/* Politician: transparent proposal chamber */

.chamber-scene {
  position: relative;
  display: grid;
  min-height: 260px;
  grid-template-columns: minmax(130px, 0.6fr) minmax(230px, 1.2fr);
  align-items: end;
  gap: 0.8rem;
  padding: 0.9rem;
  color: white;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.13), transparent 40%),
    linear-gradient(#344a62 0 72%, #8a6049 72%);
  border: 4px solid white;
  border-radius: 17px;
}

.chamber-dais {
  position: absolute;
  top: 0.65rem;
  left: 7%;
  display: grid;
  width: 47%;
  min-height: 72px;
  place-items: center;
  padding: 0.45rem;
  background: #503e37;
  border: 3px solid #b58b63;
  border-radius: 8px;
}

.chamber-dais span {
  font-size: 1.7rem;
}

.chamber-dais strong {
  font-size: 0.53rem;
  letter-spacing: 0.08em;
}

.chamber-speaker {
  display: grid;
  place-items: center;
  gap: 0.2rem;
  padding-bottom: 0.8rem;
  font-size: 2.5rem;
}

.chamber-speaker small {
  font-size: 0.5rem;
  font-weight: 900;
}

.chamber-speaker.is-ready {
  color: #b9ffed;
}

.proposal-screen {
  align-self: center;
  padding: 0.7rem;
  color: #26364b;
  background: #f4f7f8;
  border: 7px solid #1a2737;
  border-radius: 9px;
}

.proposal-screen > span {
  font-size: 0.6rem;
  font-weight: 950;
}

.proposal-screen > div {
  display: flex;
  justify-content: space-between;
  margin-block: 0.8rem;
}

.proposal-screen i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: white;
  background: #8b99a6;
  border-radius: 50%;
  font-style: normal;
  font-weight: 950;
}

.proposal-screen i.is-ready {
  background: #087665;
}

.proposal-screen strong {
  font-size: 0.58rem;
}

/* Quality control: animated inspection conveyor */

.conveyor-scene {
  display: grid;
  min-height: 240px;
  grid-template-columns: minmax(260px, 1.4fr) minmax(140px, 0.6fr);
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  color: #dce9ef;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    #33424e;
  background-size: 24px 24px;
  border: 4px solid #7f909b;
  border-radius: 15px;
}

.conveyor-belt {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 0.35rem;
  padding: 0.8rem 0.45rem 2.2rem;
}

.conveyor-belt::after {
  position: absolute;
  right: 0;
  bottom: 0.8rem;
  left: 0;
  height: 25px;
  content: "";
  background: repeating-linear-gradient(90deg, #202931 0 24px, #5b6871 25px 31px);
  border: 4px solid #1e282f;
  border-radius: 8px;
}

.conveyor-belt article {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 105px;
  place-items: center;
  align-content: center;
  gap: 0.15rem;
  color: #394955;
  background: #e7d0a0;
  border: 3px solid #8d7142;
  border-radius: 7px;
}

.conveyor-belt article.is-rejected {
  color: #7c2938;
  background: #ffd8dc;
  border-color: #c34d5d;
  transform: translateY(-14px) rotate(-3deg);
}

.conveyor-belt article.is-marked {
  color: #614910;
  background: #fff0b7;
  border-color: #c59431;
  transform: translateY(-8px);
}

.conveyor-belt article.is-warning {
  color: #79520e;
  background: #fff0b7;
  border-color: #c59431;
}

.quality-record-visual {
  display: grid;
  width: 72%;
  place-items: center;
  gap: 0.2rem;
}

.quality-record-visual > span {
  font-size: 1.45rem;
}

.quality-record-visual > i {
  display: block;
  width: 100%;
  height: 9px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid currentColor;
  border-radius: 999px;
}

.quality-record-visual > i > b {
  display: block;
  width: 72%;
  height: 100%;
  background: currentColor;
  border-radius: inherit;
}

.quality-record-visual.quality-amount-low > i {
  position: relative;
  height: 13px;
  border-width: 2px;
}

.quality-record-visual.quality-amount-low > i > b {
  width: 36%;
  background: #d45c69;
}

.quality-record-visual.quality-amount-low > i::after {
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 72%;
  width: 2px;
  content: "";
  background: currentColor;
}

.conveyor-belt small,
.conveyor-belt strong {
  font-size: 0.52rem;
}

.quality-scanner {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 0.3rem;
  color: #9cf0df;
  background: #15212a;
  border: 5px solid #697c88;
  border-radius: 10px;
  text-align: center;
}

.quality-scanner > span {
  font-size: 2.6rem;
}

.quality-scanner strong {
  font: 850 0.6rem ui-monospace, monospace;
}

.quality-scanner small {
  color: #9babb4;
  font-size: 0.52rem;
}

/* School counselor: flexible pathway map */

.pathway-scene {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, #f4d169 0 7%, transparent 8%),
    linear-gradient(#dcedf7 0 58%, #b6d79f 59%);
  border: 4px solid white;
  border-radius: 17px;
}

.pathway-scene svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pathway-scene svg path {
  fill: none;
  stroke: #fff;
  stroke-dasharray: 10 7;
  stroke-width: 7;
}

.pathway-stops {
  position: absolute;
  inset: 1rem 1.2rem auto;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
}

.pathway-stops article {
  display: grid;
  min-width: 64px;
  place-items: center;
  padding: 0.45rem;
  color: #52705f;
  background: rgba(255, 255, 255, 0.8);
  border: 3px solid #789882;
  border-radius: 14px;
}

.pathway-stops article.is-ready {
  color: white;
  background: #087665;
  border-color: white;
}

.pathway-stops span {
  font-size: 1.35rem;
}

.pathway-stops b {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  background: #597260;
  border-radius: 50%;
  font-size: 0.58rem;
}

.pathway-stops strong {
  font-size: 0.52rem;
  text-transform: uppercase;
}

.pathway-traveler {
  position: absolute;
  bottom: 25%;
  left: calc(5% + var(--pathway-stage, 0) * 22%);
  font-size: 2.8rem;
  transition: left 350ms ease;
}

.student-pathway-map[data-stage="0"] { --pathway-stage: 0; }
.student-pathway-map[data-stage="1"] { --pathway-stage: 1; }
.student-pathway-map[data-stage="2"] { --pathway-stage: 2; }
.student-pathway-map[data-stage="3"] { --pathway-stage: 3; }
.student-pathway-map[data-stage="4"] { --pathway-stage: 4; }

.pathway-note {
  position: absolute;
  right: 0.7rem;
  bottom: 0.55rem;
  left: 0.7rem;
  padding: 0.35rem;
  color: #174a40;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 7px;
  font-size: 0.55rem;
  text-align: center;
}

/* Principal: live school support dashboard */

.school-dashboard-scene {
  display: grid;
  min-height: 230px;
  grid-template-columns: minmax(90px, 0.4fr) repeat(3, minmax(110px, 0.7fr));
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem;
  color: white;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    #29465e;
  background-size: 25px 25px;
  border: 4px solid #7893a8;
  border-radius: 15px;
}

.school-building {
  font-size: 3.6rem;
  text-align: center;
}

.school-dashboard-scene article {
  display: grid;
  min-height: 145px;
  place-items: center;
  align-content: center;
  gap: 0.3rem;
  padding: 0.55rem;
  color: #90a7b9;
  background: #1a3145;
  border: 2px solid #68859c;
  border-radius: 10px;
  text-align: center;
}

.school-dashboard-scene article.is-ready {
  color: #d9fff6;
  background: #087665;
  border-color: white;
}

.school-dashboard-scene article > span {
  font-size: 1.7rem;
}

.school-dashboard-scene article small {
  font-size: 0.5rem;
  text-transform: uppercase;
}

.school-dashboard-scene article strong {
  font-size: 0.6rem;
}

/* Social media manager: moderation studio */

.moderation-scene {
  display: grid;
  min-height: 270px;
  grid-template-columns: minmax(190px, 0.85fr) minmax(210px, 1.15fr);
  gap: 0.7rem;
  padding: 0.8rem;
  color: #d9e9f2;
  background: #1e3044;
  border: 4px solid #6b839a;
  border-radius: 15px;
}

.social-post-preview {
  display: grid;
  align-content: center;
  gap: 0.45rem;
  padding: 0.75rem;
  color: #3a2850;
  background: linear-gradient(145deg, #f7e5ff, #dff5ff);
  border-radius: 12px;
}

.social-post-preview small {
  font-size: 0.55rem;
  font-weight: 950;
}

.social-post-preview > span {
  font-size: 2rem;
}

.social-post-preview p,
.social-post-preview b {
  margin: 0;
  padding: 0.38rem;
  color: #8b3e52;
  background: #ffe5eb;
  border-radius: 7px;
  font-size: 0.6rem;
}

.social-post-preview :is(p, b).is-ready {
  color: #075e50;
  background: #dff6ef;
}

.moderation-console {
  display: grid;
  align-content: center;
  gap: 0.38rem;
}

.moderation-console > span {
  padding: 0.45rem;
  color: #91a5b5;
  background: #293f54;
  border: 1px solid #57738d;
  border-radius: 7px;
  font: 750 0.57rem ui-monospace, monospace;
}

.moderation-console > span.is-ready {
  color: #d3fff5;
  background: #087665;
}

.moderation-console > span.is-warning {
  color: #ffe2e7;
  background: #8c3043;
}

.moderation-console strong {
  padding: 0.5rem;
  color: #8fe8da;
  background: #102233;
  border-radius: 7px;
  font: 850 0.65rem ui-monospace, monospace;
  text-align: center;
}

/* Special education teacher: accessible classroom */

.access-classroom-scene {
  position: relative;
  display: grid;
  min-height: 250px;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem;
  background:
    linear-gradient(rgba(92, 123, 114, 0.08) 1px, transparent 1px),
    #f2ecd9;
  background-size: 26px 26px;
  border: 4px solid white;
  border-radius: 17px;
}

.access-classroom-scene article {
  display: grid;
  min-height: 150px;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  padding: 0.6rem;
  color: #75645e;
  background: rgba(255, 255, 255, 0.8);
  border: 3px dashed #b09c90;
  border-radius: 14px;
  text-align: center;
}

.access-classroom-scene article.is-ready {
  color: #075e50;
  background: #e1f7ef;
  border-color: #31917f;
  border-style: solid;
}

.access-classroom-scene article > span {
  font-size: 2rem;
}

.access-classroom-scene article small {
  font-size: 0.6rem;
}

.access-student {
  position: absolute;
  right: 0.5rem;
  bottom: 0.15rem;
  font-size: 2.4rem;
}

/* Stockbroker order-entry practice */

.order-desk-scene {
  display: grid;
  min-height: 270px;
  grid-template-columns: minmax(160px, 0.7fr) minmax(180px, 0.85fr) minmax(90px, 0.4fr);
  align-items: stretch;
  gap: 0.65rem;
  padding: 0.75rem;
  color: #d6e7f2;
  background:
    linear-gradient(rgba(83, 121, 154, 0.12) 1px, transparent 1px),
    #152638;
  background-size: 22px 22px;
  border: 4px solid #617c94;
  border-radius: 15px;
}

.practice-ticket {
  padding: 0.7rem;
  color: #3d3d48;
  background: #fffbe9;
  border: 2px solid #c2b795;
  box-shadow: 5px 6px 0 rgba(16, 30, 43, 0.25);
  transform: rotate(-1deg);
}

.practice-ticket small {
  font-size: 0.55rem;
  font-weight: 950;
}

.practice-ticket p {
  padding-block: 0.3rem;
  border-bottom: 1px solid #c9c1a9;
  font-size: 0.66rem;
}

.practice-ticket b {
  display: block;
  padding: 0.35rem;
  color: #7b3341;
  background: #ffe2e4;
  font-size: 0.55rem;
  text-align: center;
}

.order-entry {
  display: grid;
  align-content: center;
  gap: 0.4rem;
}

.order-entry small {
  font: 800 0.55rem ui-monospace, monospace;
}

.order-entry span {
  padding: 0.48rem;
  color: #9aabb9;
  background: #263c50;
  border: 1px solid #57748d;
  border-radius: 6px;
  font: 750 0.6rem ui-monospace, monospace;
}

.order-entry span.is-ready {
  color: #cffff5;
  background: #087665;
}

.order-entry strong {
  padding: 0.45rem;
  color: #ffd4db;
  background: #7c2e3c;
  border-radius: 6px;
  font: 850 0.57rem ui-monospace, monospace;
  text-align: center;
}

.fictional-market {
  display: flex;
  align-items: end;
  gap: 4px;
  padding: 0.5rem;
  background: #0c1b29;
  border: 2px solid #4e6d86;
  border-radius: 7px;
}

.fictional-market i {
  width: 12%;
  height: var(--h);
  background: linear-gradient(#5cd7df, #6b5ba0);
}

/* Truck driver: freight dispatch grid */

.public-route-panel {
  display: grid;
  align-items: start;
  gap: 0.7rem;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.55fr);
}

.dispatch-grid {
  display: grid;
  width: min(100%, 480px);
  justify-self: center;
  gap: 0.35rem;
  grid-template-columns: repeat(var(--dispatch-size), minmax(48px, 1fr));
  padding: 0.65rem;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.08) 75%),
    #30475b;
  background-size: 26px 26px;
  border-radius: 14px;
}

.dispatch-grid > div {
  display: grid;
  min-width: 48px;
  min-height: 58px;
  aspect-ratio: 1;
  place-items: center;
  align-content: center;
  color: #23445d;
  background: #f6fbfd;
  border: 3px solid transparent;
  border-radius: 10px;
}

.dispatch-grid small {
  font-size: 0.62rem;
  font-weight: 900;
}

.dispatch-grid strong {
  font-size: 1.25rem;
}

.dispatch-grid > div.is-stop {
  border-color: var(--public-gold);
}

.dispatch-grid > div.is-closed {
  color: white;
  background: #823641;
  border-color: white;
}

.dispatch-grid > div.is-visited {
  color: white;
  background: var(--public-green);
}

.dispatch-grid > div.is-current {
  color: white;
  background: var(--public-blue);
  border-color: white;
  box-shadow: 0 0 0 4px var(--public-gold);
}

.dispatch-controls {
  display: grid;
  gap: 0.65rem;
}

.dispatch-controls ol {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.35rem;
  list-style: none;
}

.dispatch-controls li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem;
  background: white;
  border: 2px solid #afc1cf;
  border-radius: 9px;
}

.dispatch-controls li > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: white;
  background: #5d7283;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 950;
}

.dispatch-controls li.is-ready {
  color: #075e50;
  background: #e0f6ef;
  border-color: #6bb5a5;
}

.dispatch-controls > div {
  display: grid;
  width: min(100%, 210px);
  justify-self: center;
  gap: 0.35rem;
  grid-template-areas: ". up ." "left . right" ". down .";
  grid-template-columns: repeat(3, minmax(50px, 1fr));
}

.dispatch-controls button {
  min-height: 52px;
  padding: 0.25rem;
  font-size: 1.3rem;
}

.dispatch-controls button[data-direction="up"] { grid-area: up; }
.dispatch-controls button[data-direction="left"] { grid-area: left; }
.dispatch-controls button[data-direction="right"] { grid-area: right; }
.dispatch-controls button[data-direction="down"] { grid-area: down; }

/* Water treatment operator: live training tanks */

.treatment-scene {
  display: grid;
  min-height: 250px;
  grid-template-columns: minmax(90px, 0.45fr) minmax(150px, 0.8fr) minmax(105px, 0.5fr) minmax(105px, 0.5fr);
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem;
  color: #d9f7fa;
  background:
    linear-gradient(rgba(86, 165, 178, 0.1) 1px, transparent 1px),
    #183c4a;
  background-size: 25px 25px;
  border: 4px solid #6c9da8;
  border-radius: 15px;
}

.water-inlet,
.uv-channel,
.water-outlet {
  display: grid;
  min-height: 120px;
  place-items: center;
  align-content: center;
  gap: 0.3rem;
  padding: 0.45rem;
  background: #245666;
  border: 2px solid #6ba2ad;
  border-radius: 10px;
  text-align: center;
}

.water-inlet span,
.uv-channel span,
.water-outlet span {
  font-size: 2rem;
}

.water-inlet strong,
.uv-channel strong,
.water-outlet strong {
  font-size: 0.58rem;
}

.water-inlet i {
  width: 75%;
  height: 7px;
  background: #76d4e3;
  border-radius: 99px;
  animation: water-flow-line 1.2s linear infinite;
}

@keyframes water-flow-line {
  50% { transform: scaleX(0.6); }
}

.water-tank {
  position: relative;
  display: grid;
  height: 190px;
  place-items: center;
  align-content: end;
  padding-bottom: 0.7rem;
  overflow: hidden;
  color: #15404b;
  background: linear-gradient(transparent 30%, #8ed4df 31%);
  border: 7px solid #8fb6bf;
  border-radius: 8px 8px 30px 30px;
}

.water-tank i {
  position: absolute;
  bottom: 22%;
  width: 13px;
  height: 13px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: tank-bubble 1.5s ease-in infinite;
}

.water-tank i:nth-child(1) { left: 28%; }
.water-tank i:nth-child(2) { left: 50%; animation-delay: -0.5s; }
.water-tank i:nth-child(3) { left: 70%; animation-delay: -1s; }

@keyframes tank-bubble {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(-75px); }
}

.water-tank strong {
  position: relative;
  z-index: 1;
  font-size: 0.6rem;
  text-align: center;
}

.uv-channel.is-on {
  color: #4b3b08;
  background: #fff2a8;
  box-shadow: 0 0 24px rgba(255, 236, 116, 0.7);
}

.water-outlet.is-ready {
  color: #063f37;
  background: #b8f4e6;
  border-color: white;
}

/* Wind technician: weather/safety climb */

.turbine-scene {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 15%, #f8db77 0 7%, transparent 8%),
    linear-gradient(#9cd4e7 0 68%, #80b779 69%);
  border: 4px solid white;
  border-radius: 17px;
}

.weather-panel {
  position: absolute;
  z-index: 2;
  top: 0.7rem;
  left: 0.7rem;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.35rem;
  padding: 0.48rem;
  color: #7f3140;
  background: rgba(255, 235, 239, 0.9);
  border: 3px solid #b64f5d;
  border-radius: 10px;
}

.weather-panel > span {
  grid-row: 1 / -1;
  font-size: 1.55rem;
}

.weather-panel strong {
  font-size: 0.54rem;
}

.weather-panel i {
  height: 6px;
  background: #c85d68;
  border-radius: 99px;
}

.weather-panel.is-ready {
  color: #075e50;
  background: rgba(220, 247, 239, 0.93);
  border-color: #31917f;
}

.turbine-tower {
  position: absolute;
  right: 26%;
  bottom: 0;
  width: 25px;
  height: 220px;
  background: linear-gradient(90deg, #87979e, #f3f6f7, #788b93);
  clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%);
}

.turbine-tower > span {
  position: absolute;
  top: -8px;
  left: -72px;
  width: 170px;
  height: 18px;
  background: #e7eef0;
  border: 3px solid #7c8c93;
  border-radius: 50%;
  animation: turbine-spin 4s linear infinite;
}

.turbine-tower > span::before,
.turbine-tower > span::after {
  position: absolute;
  top: -62px;
  left: 72px;
  width: 18px;
  height: 145px;
  content: "";
  background: #e7eef0;
  border: 2px solid #7c8c93;
  border-radius: 50%;
}

.turbine-tower > span::after {
  transform: rotate(60deg);
}

@keyframes turbine-spin {
  to { transform: rotate(360deg); }
}

.turbine-tower em {
  position: absolute;
  right: -32px;
  bottom: 15px;
  font-size: 1.7rem;
  font-style: normal;
  transition: bottom 350ms ease;
}

.turbine-tower em.is-mid { bottom: 95px; }
.turbine-tower em.is-top { bottom: 185px; }

.energy-lock {
  position: absolute;
  z-index: 2;
  right: 0.7rem;
  bottom: 0.7rem;
  display: grid;
  place-items: center;
  gap: 0.2rem;
  padding: 0.55rem;
  color: #7f3140;
  background: rgba(255, 236, 239, 0.9);
  border: 3px solid #b64f5d;
  border-radius: 10px;
  font-size: 1.5rem;
}

.energy-lock strong {
  font-size: 0.52rem;
}

.energy-lock.is-ready {
  color: #075e50;
  background: rgba(220, 247, 239, 0.93);
  border-color: #31917f;
}

.climb-status {
  position: absolute;
  bottom: 0.65rem;
  left: 0.7rem;
  display: grid;
  gap: 0.35rem;
}

.climb-status > span {
  display: grid;
  min-width: 110px;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  color: #41615a;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid #78958d;
  border-radius: 8px;
}

.climb-status > span.is-ready {
  color: white;
  background: #087665;
  border-color: white;
}

.climb-status b {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  background: #627a74;
  border-radius: 50%;
  font-size: 0.55rem;
}

.climb-status small {
  font-size: 0.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .operations-wall,
  .runway-scene,
  .newsroom-scene,
  .tiny-town-rescue-scene,
  .chamber-scene,
  .conveyor-scene,
  .moderation-scene,
  .order-desk-scene,
  .treatment-scene,
  .public-route-panel {
    grid-template-columns: 1fr;
  }

  .ops-board {
    min-height: 165px;
  }

  .news-desk,
  .campaign-bars {
    grid-column: 1;
  }

  .school-dashboard-scene {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .school-building {
    grid-column: 1 / -1;
  }

  .access-classroom-scene {
    grid-template-columns: 1fr;
  }

  .public-control-panel > div {
    grid-template-columns: 1fr;
  }

  .treatment-scene {
    min-height: 0;
  }

  .water-tank {
    width: min(100%, 230px);
    justify-self: center;
  }

  .tiny-rescue-console {
    grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 1.2fr);
  }

  .tiny-console-screen,
  .tiny-rescue-console h4,
  .tiny-keyboard-help {
    grid-column: 1;
  }

  .tiny-rescue-checkpoints,
  .tiny-direction-pad {
    grid-column: 2;
  }

  .tiny-rescue-checkpoints {
    grid-row: 1 / span 3;
  }
}

@media (max-width: 580px) {
  .public-scene-heading {
    flex-direction: column;
  }

  .public-scene-heading > span {
    align-self: flex-start;
  }

  .public-inspect-panel,
  .public-match-panel {
    grid-template-columns: 1fr;
  }

  .tiny-response-plans > div,
  .tiny-rescue-finish > div,
  .tiny-rescue-console {
    grid-template-columns: 1fr;
  }

  .tiny-console-screen,
  .tiny-rescue-console h4,
  .tiny-keyboard-help,
  .tiny-rescue-checkpoints,
  .tiny-direction-pad {
    grid-column: 1;
    grid-row: auto;
  }

  .tiny-town-map {
    gap: 2px;
    padding: 0.3rem;
  }

  .tiny-town-cell {
    min-width: 46px;
    min-height: 50px;
  }

  .public-sequence-panel > ol,
  .public-token-tray {
    grid-template-columns: 1fr;
  }

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

  .pathway-stops article {
    min-width: 0;
    padding: 0.3rem;
  }

  .pathway-stops strong {
    display: none;
  }

  .school-dashboard-scene {
    grid-template-columns: 1fr;
  }

  .school-building {
    grid-column: 1;
  }

  .fictional-market {
    min-height: 90px;
  }

  .dispatch-grid {
    gap: 0.2rem;
    padding: 0.4rem;
  }

  .dispatch-grid > div {
    min-width: 44px;
    min-height: 48px;
  }

  .weather-panel {
    right: 0.7rem;
  }

  .climb-status > span {
    min-width: 90px;
  }
}

@media (pointer: coarse) {
  .public-game-shell button,
  .tiny-direction-pad button,
  .tiny-response-plans button,
  .tiny-rescue-finish button {
    min-height: 50px;
  }
}

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

  .tiny-response-car,
  .tiny-robot-cart,
  .tiny-rescue-payoff {
    animation: none !important;
  }
}

@media (prefers-contrast: more) {
  .public-experience,
  .public-sequence-panel,
  .public-inspect-panel,
  .public-match-panel,
  .public-control-panel,
  .public-route-panel,
  .public-inspect-panel button,
  .public-match-item,
  .public-match-slot,
  .public-token-tray button,
  .public-control-panel button,
  .tiny-town-map-wrap,
  .tiny-rescue-console,
  .tiny-response-plans,
  .tiny-rescue-finish {
    border-width: 3px;
  }
}

@media (forced-colors: active) {
  .public-experience,
  .operations-wall,
  .ops-board,
  .runway-scene,
  .call-sheet-paper,
  .newsroom-scene,
  .news-monitor,
  .tiny-town-rescue-scene,
  .tiny-town-map-wrap,
  .tiny-town-map,
  .tiny-town-cell,
  .tiny-rescue-console,
  .tiny-console-screen,
  .tiny-response-plans,
  .tiny-rescue-finish,
  .tiny-rescue-payoff,
  .chamber-scene,
  .proposal-screen,
  .conveyor-scene,
  .quality-scanner,
  .pathway-scene,
  .school-dashboard-scene,
  .moderation-scene,
  .social-post-preview,
  .access-classroom-scene,
  .order-desk-scene,
  .practice-ticket,
  .public-route-panel,
  .dispatch-grid,
  .treatment-scene,
  .water-tank,
  .turbine-scene,
  .public-sequence-panel,
  .public-inspect-panel,
  .public-match-panel,
  .public-control-panel {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
  }

  .public-token-tray button,
  .public-inspect-panel button,
  .public-match-item,
  .public-match-slot,
  .public-control-panel button,
  .dispatch-controls button,
  .tiny-response-plans button,
  .tiny-rescue-finish button,
  .tiny-direction-pad button {
    color: ButtonText;
    background: ButtonFace;
    border-color: ButtonText;
    box-shadow: none;
  }

  .public-inspect-panel button.is-selected,
  .public-match-item.is-selected,
  .public-control-panel button.is-selected,
  .tiny-response-plans button.is-selected,
  .tiny-rescue-finish button.is-selected {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
    forced-color-adjust: none;
  }
}
