@font-face {
  font-family: ArcadeSystem;
  src: local("Arial");
  font-display: swap;
}
.challenge-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 12px;
  color: var(--muted);
}
#modes {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #e0eafa;
  border-radius: 10px;
}
#modes button {
  border: 0;
  background: transparent;
}
#modes button[aria-pressed="true"] {
  background: #102e60;
  color: #fff;
  box-shadow: 0 3px 8px #14365925;
}
.demo-caption {
  padding: 12px 16px;
  background: #163858;
  color: #d9f4ff;
  font:
    700 12px/1.5 Arial,
    sans-serif;
  min-height: 43px;
  border-top: 1px solid #467494;
}
.card-art .preview-canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 16/9;
}
.card-art {
  background: #091e38 !important;
  height: 235px !important;
}
.game-card:first-child .card-art {
  height: 300px !important;
}
.game-card {
  box-shadow: 0 5px 16px #1535680a;
}
.game-card:hover {
  border-color: #729fdf;
}
.card-number {
  background: #0b2942da;
  padding: 6px;
  border-radius: 4px;
}
#piece-tray {
  flex-basis: 100%;
  margin: 0 0 8px;
}
#piece-tray button {
  display: flex;
  align-items: center;
  gap: 10px;
}
#piece-tray svg {
  width: 32px;
  height: 32px;
  overflow: visible;
  flex-shrink: 0;
}
#play[data-phase="ready"] .scoreboard,
#play[data-phase="ready"] #controls,
#play[data-phase="ready"] #live-detail,
#play[data-phase="ready"] .game-bottom > div {
  display: none;
}
#play[data-phase="ready"] .cabinet {
  border-radius: 12px;
}
#play[data-phase="ready"] .overlay {
  position: relative;
  background: #102e60;
  padding: 18px;
  display: block;
}
#play[data-phase="ready"] .overlay-panel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-width: none;
  max-height: none;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
#play[data-phase="ready"] #overlay-kicker {
  display: block;
  flex-basis: 100%;
  margin: 0;
  color: #86c5ff;
  font-size: 10px;
}
#play[data-phase="ready"] #overlay-title {
  display: none;
}
#play[data-phase="ready"] #overlay-text {
  color: #fff;
  font-size: 17px;
  line-height: 1.4;
  flex-basis: 100%;
  margin: 0 0 2px;
}
#play[data-phase="ready"] #start {
  background: #62efd0;
  border-color: #62efd0;
  color: #123749;
  box-shadow: 0 0 20px #62efd024;
}
#demo-toggle {
  background: transparent;
  border-color: #729cbe;
  color: #e1f1ff;
}
.game-bottom details {
  font-size: 13px;
  line-height: 1.7;
  flex: 1;
  color: var(--muted);
}
.game-bottom summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-weight: 700;
}
.game-bottom summary::before {
  content: "+";
}
.game-bottom details[open] summary::before {
  content: "-";
}
.game-bottom details p {
  margin: 0 0 12px;
  max-width: 680px;
}
summary:focus-visible {
  outline: 3px solid #b76000;
  outline-offset: 3px;
}
@media (max-width: 750px) {
  .challenge-bar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .challenge-bar > span {
    text-align: center;
  }
  .card-art {
    height: 155px !important;
  }
  .game-card:first-child .card-art {
    height: 200px !important;
  }
  .demo-caption {
    font-size: 11px;
    padding: 10px;
    min-height: 52px;
  }
  #play[data-phase="ready"] #overlay-text {
    font-size: 14px;
  }
  #piece-tray button {
    font-size: 11px;
    padding: 8px;
  }
  #piece-tray svg {
    width: 25px;
    height: 25px;
  }
}
.live-detail {
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  margin: 14px 0 0;
  color: var(--navy);
}
.live-detail:empty {
  display: none;
}
:root {
  --blue: #2a6fff;
  --navy: #102e60;
  --ink: #112d53;
  --paper: #f4f7fc;
  --line: #ccd8e9;
  --muted: #506481;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
.primary {
  font:
    700 14px Arial,
    sans-serif;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  padding: 12px 18px;
  cursor: pointer;
  min-height: 44px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover,
.primary:hover {
  background: #e7efff;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
canvas:focus-visible,
input:focus-visible {
  outline: 3px solid #b76000;
  outline-offset: 4px;
}
.primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.primary:hover {
  background: #1854ce;
}
[hidden] {
  display: none !important;
}
.skip {
  position: absolute;
  left: 10px;
  top: -100px;
  z-index: 20;
  background: #fff;
  padding: 15px;
}
.skip:focus {
  top: 10px;
}
.site-header {
  max-width: 1320px;
  margin: auto;
  padding: 23px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.logo {
  width: 180px;
  height: 54px;
  object-fit: contain;
}
.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.header-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #7799c4;
  border-radius: 6px;
  color: #102e60;
  background: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.header-links a:hover {
  background: #e6efff;
}
.header-links a:focus-visible {
  outline: 3px solid #2a6fff;
  outline-offset: 3px;
}
.header-links .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.header-tag,
.eyebrow,
.hero-meta,
.art-label,
.art-stamp,
footer > span {
  font-family: monospace;
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 700;
}
.header-tag {
  color: var(--muted);
}
main {
  max-width: 1320px;
  margin: auto;
  padding: 0 40px;
}
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 35px;
  align-items: center;
  padding: 65px 0 55px;
}
.eyebrow {
  color: #1a55bb;
  margin: 0 0 20px;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2a6fff;
  margin-right: 8px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
.hero h1 {
  font-size: clamp(38px, 4.8vw, 65px);
  letter-spacing: -3px;
  line-height: 1.05;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero-description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 26px;
}
.hero-link {
  padding: 16px 25px;
  box-shadow: 4px 4px 0 #cfddf6;
}
.hero-meta {
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 24px;
  color: var(--muted);
}
.hero-art {
  height: 410px;
  position: relative;
  overflow: hidden;
  background: #e0ebff;
  border: 1px solid #bed1f3;
  border-radius: 15px;
  background-image:
    linear-gradient(#2a6fff0d 1px, transparent 1px),
    linear-gradient(90deg, #2a6fff0d 1px, transparent 1px);
  background-size: 25px 25px;
}
.art-label {
  position: absolute;
  left: 24px;
  top: 24px;
  color: var(--navy);
}
.art-label span {
  display: block;
  font-size: 8px;
  opacity: 0.6;
  margin-top: 6px;
}
.mike {
  height: 290px;
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.orbit {
  border: 1px dashed #95b4e8;
  border-radius: 50%;
  position: absolute;
  left: 20%;
  top: 10%;
  width: 320px;
  height: 320px;
}
.orbit-two {
  width: 240px;
  height: 240px;
  top: 20%;
  left: 28%;
}
.art-gear {
  position: absolute;
  font-size: 180px;
  color: #adc7ef;
  left: 5px;
  bottom: 20px;
  animation: turn 35s linear infinite;
}
.art-web {
  position: absolute;
  bottom: 18px;
  left: -10%;
  width: 120%;
  transform: rotate(-7deg);
  background: var(--navy);
  border-block: 7px solid #7699cf;
  display: flex;
  justify-content: space-around;
  padding: 8px;
  color: #fff;
  font-size: 32px;
  z-index: 3;
}
.mike-bubble {
  position: absolute;
  right: 15px;
  top: 88px;
  transform: rotate(5deg);
  background: #fff;
  border: 2px solid var(--navy);
  box-shadow: 4px 4px 0 #aec6eb;
  padding: 14px;
  font-weight: 800;
  line-height: 1.25;
  z-index: 4;
}
.mike-bubble span {
  display: block;
  font: 9px monospace;
  letter-spacing: 2px;
  margin-top: 8px;
}
.art-stamp {
  position: absolute;
  right: 18px;
  bottom: 90px;
  background: #2a6fff;
  color: #fff;
  border: 4px double #fff;
  border-radius: 50%;
  width: 78px;
  height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotate(12deg);
  z-index: 4;
  font-size: 18px;
  letter-spacing: 0;
}
.art-stamp small {
  font-size: 8px;
}
.ticker {
  border-block: 1px solid var(--line);
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 700 10px monospace;
  letter-spacing: 1.3px;
}
.ticker span:nth-child(even) {
  color: var(--blue);
}
#games {
  padding: 48px 0;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 26px;
}
.section-heading .eyebrow {
  margin-bottom: 10px;
}
.section-heading h2 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 0;
}
.section-heading > p {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 5px;
}
.game-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.game-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px #102e6010;
}
.game-card:first-child {
  grid-column: span 2;
}
.card-art {
  height: 176px;
  background: #123f89;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.card-art svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-number {
  position: absolute;
  left: 15px;
  top: 15px;
  color: #fff;
  font: 11px monospace;
  letter-spacing: 2px;
}
.card-badge {
  position: absolute;
  right: 14px;
  top: 12px;
  background: #fff;
  color: #174787;
  padding: 6px 8px;
  border-radius: 4px;
  font: 700 9px monospace;
}
.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
}
.card-body h3 {
  font-size: 23px;
  letter-spacing: -0.7px;
  margin-bottom: 10px;
}
.card-body p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-foot > span {
  font: 10px monospace;
  color: var(--muted);
}
.card-foot button {
  padding: 10px 14px;
}
.shop-note {
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 40px;
  background: #eaf1fd;
}
.shop-note > span {
  font-size: 40px;
  color: var(--blue);
}
.shop-note h3 {
  font-size: 16px;
  margin-bottom: 7px;
}
.shop-note p {
  max-width: 610px;
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
}
.shop-note > strong {
  font-size: 18px;
  max-width: 175px;
  margin-left: auto;
}
footer {
  border-top: 1px solid var(--line);
  padding: 30px 40px;
  max-width: 1320px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
footer strong {
  letter-spacing: 2px;
  font-size: 14px;
}
footer strong span {
  font-weight: 400;
}
footer p,
footer > span {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}
.play-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 30px 0 20px;
}
.play-heading > div {
  text-align: center;
}
.play-heading .eyebrow {
  margin-bottom: 5px;
  font-size: 9px;
}
.play-heading h1 {
  font-size: 28px;
  margin: 0;
  letter-spacing: -1px;
}
.scoreboard {
  display: flex;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  padding: 17px 25px;
  border-radius: 8px 8px 0 0;
  gap: 15px;
}
.scoreboard > div {
  font: 10px monospace;
  letter-spacing: 1px;
}
.scoreboard strong {
  display: block;
  font: 700 24px monospace;
  margin-top: 5px;
  letter-spacing: 0;
}
.scoreboard > div:last-child {
  text-align: right;
}
.cabinet {
  position: relative;
  background: #0c2448;
  border: 6px solid var(--navy);
  border-radius: 0 0 10px 10px;
  overflow: hidden;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}
canvas.active {
  touch-action: none;
}
.overlay {
  position: absolute;
  inset: 0;
  background: #071c3bba;
  display: grid;
  place-items: center;
  padding: 12px;
}
.overlay-panel {
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  background: #f8fbff;
  border: 1px solid #c2d5f5;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  max-width: 520px;
  box-shadow: 8px 8px 0 #2a6fff40;
}
.overlay-panel .eyebrow {
  margin-bottom: 12px;
}
.overlay-panel h2 {
  font-size: 32px;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.overlay-panel p:not(.eyebrow) {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.overlay-panel button {
  margin: 3px;
}
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}
.controls button {
  touch-action: none;
  min-width: 55px;
}
.controls button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
}
.game-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.game-bottom > p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 650px;
  color: var(--muted);
  margin: 0;
}
.game-bottom > div {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.feedback {
  min-height: 23px;
  text-align: center;
  font-size: 14px;
  color: #184887;
  margin: 12px 0;
}
.lesson {
  background: #e5edfa;
  border-left: 3px solid var(--blue);
  padding: 18px 22px;
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 30px;
}
#share-fallback {
  margin-bottom: 20px;
}
#share-text {
  padding: 12px;
  width: 100%;
  border: 1px solid var(--line);
}
@keyframes turn {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (min-width: 1100px) {
  #play {
    max-width: 1050px;
    margin: auto;
  }
}
@media (max-width: 750px) {
  main {
    padding: 0 18px;
  }
  .site-header {
    padding: 15px 18px;
  }
  .header-links {
    order: 1;
    width: 100%;
  }
  .logo {
    width: 140px;
    height: 42px;
  }
  .header-tag {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 35px 0;
  }
  .hero h1 {
    font-size: 49px;
    letter-spacing: -2px;
  }
  .hero-art {
    height: 310px;
  }
  .mike {
    height: 245px;
    bottom: 20px;
  }
  .art-label {
    top: 15px;
    left: 15px;
    font-size: 9px;
  }
  .mike-bubble {
    top: 60px;
    right: 20px;
  }
  .ticker {
    font-size: 8px;
    line-height: 1.7;
    letter-spacing: 0.5px;
  }
  .ticker span:last-child,
  .ticker span:nth-child(4) {
    display: none;
  }
  .game-cards {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .game-card:first-child {
    grid-column: span 2;
  }
  .card-body {
    padding: 16px;
  }
  .card-body h3 {
    font-size: 20px;
  }
  .card-foot {
    align-items: start;
    flex-direction: column;
  }
  .card-art {
    height: 140px;
  }
  .section-heading > p {
    display: none;
  }
  .shop-note {
    padding: 20px;
  }
  .shop-note > strong {
    display: none;
  }
  footer {
    padding: 25px 18px;
    flex-wrap: wrap;
  }
  footer > span {
    display: none;
  }
  .play-heading h1 {
    font-size: 20px;
  }
  .play-heading > button {
    padding: 10px;
    font-size: 12px;
  }
  .scoreboard {
    padding: 12px;
    gap: 7px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .scoreboard > div:nth-child(2) {
    text-align: right;
  }
  .scoreboard > div:last-child {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .scoreboard > div:last-child strong {
    font-size: 13px;
    margin: 0;
  }
  .scoreboard strong {
    font-size: 17px;
  }
  .scoreboard > div {
    font-size: 10px;
    letter-spacing: 0;
  }
  .cabinet {
    border-width: 3px;
  }
  .overlay-panel {
    padding: 14px;
  }
  .overlay-panel h2 {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .overlay-panel .eyebrow {
    display: none;
  }
  .overlay-panel p:not(.eyebrow) {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 9px;
  }
  .overlay-panel button {
    min-height: 38px;
    padding: 9px 13px;
  }
  .game-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .game-bottom > div {
    justify-content: center;
  }
  .controls {
    gap: 6px;
  }
  .controls button {
    padding: 10px;
    font-size: 12px;
  }
  .lesson {
    font-size: 12px;
  }
}
@media (max-width: 390px) {
  .game-cards {
    grid-template-columns: 1fr;
  }
  .game-card:first-child {
    grid-column: auto;
  }
  .hero h1 {
    font-size: 42px;
  }
  .overlay-panel p:not(.eyebrow) {
    font-size: 11px;
  }
  .play-heading {
    gap: 8px;
  }
  .play-heading h1 {
    font-size: 18px;
  }
}
.shift-bar {
  padding: 14px 18px;
  background: #e6efff;
  border: 1px solid #bed0ef;
  border-radius: 10px;
  margin: 12px 0;
}
#shifts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#shifts [aria-pressed="true"] {
  background: #102e60;
  color: white;
}
#shift-goal {
  margin: 10px 0 0;
  color: #173d65;
  font-size: 15px;
  line-height: 1.5;
}
#tycoon-panel {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  text-align: left;
}
#job-card {
  grid-column: 1/-1;
  padding: 16px;
  margin: 0;
  background: #e6efff;
  border-radius: 8px;
  line-height: 1.65;
}
#tycoon-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}
#tycoon-panel [hidden],
#controls [data-work-step][hidden] {
  display: none;
}
#customer-order {
  margin: 16px 0;
  padding: 20px;
  border-left: 5px solid #2374d4;
  border-radius: 8px;
  background: #e6efff;
  color: #102e60;
}
#customer-order h2 {
  font-size: 19px;
  margin: 0 0 8px;
}
#customer-order p {
  margin: 0;
  line-height: 1.6;
}
#order-steps,
#order-coach {
  grid-column: 1/-1;
}
#order-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#order-steps [aria-pressed="true"] {
  background: #102e60;
  color: white;
}
#order-coach {
  margin: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid #7799c4;
  border-radius: 8px;
  line-height: 1.65;
}
#tycoon-panel select {
  width: 100%;
  min-height: 44px;
  padding: 8px;
  color: #102e60;
  background: #fff;
  border: 1px solid #7799c4;
  border-radius: 6px;
  font-size: 15px;
}
#tycoon-panel select:focus-visible {
  outline: 3px solid #2a6fff;
  outline-offset: 2px;
}
#press-balances {
  width: 100%;
  background: #102e60;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  line-height: 1.6;
}
#press-sources {
  margin: 22px 0;
  line-height: 1.7;
}
#press-sources a {
  color: #1752b0;
}
@media (max-width: 600px) {
  #tycoon-panel {
    grid-template-columns: minmax(0, 1fr);
  }
  #tycoon-panel select {
    font-size: 16px;
  }
  #shift-goal {
    font-size: 14px;
  }
  .shift-bar {
    padding: 10px;
  }
}
