:root {
  --navy-950: #020917;
  --navy-900: #061429;
  --navy-800: #0a254a;
  --blue: #0c5cc5;
  --yellow: #ffd21a;
  --red: #ec2f2f;
  --green: #00dc83;
  --paper: #fff7d7;
  --white: #ffffff;
  --shadow: 0 32px 80px rgba(0, 0, 0, .52);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 220, 131, .12), transparent 24rem),
    radial-gradient(circle at 83% 8%, rgba(236, 47, 47, .15), transparent 22rem),
    linear-gradient(155deg, #020713 0%, #081a32 48%, #020713 100%);
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

/* Apply to the labels too: iOS can otherwise select a held button's text. */
button, button *, canvas, .back-button, .back-button * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; touch-action: manipulation; }

.page-shell {
  width: min(1480px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 18px clamp(12px, 2vw, 32px) 14px;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 8px 14px;
}

.brand-zone { display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  transform: rotate(45deg);
  color: var(--navy-950);
  background: var(--yellow);
  border: 3px solid var(--white);
  border-radius: 10px;
  font-size: 19px;
  box-shadow: 5px 5px 0 var(--red);
}
.brand-mark::first-letter { transform: rotate(-45deg); }
.brand-copy { display: flex; align-items: baseline; gap: 7px; letter-spacing: -.04em; }
.brand-copy strong { font-family: Impact, Haettenschweiler, "Arial Black", sans-serif; font-size: 27px; letter-spacing: .015em; font-style: italic; }
.brand-copy small { color: var(--yellow); font-size: 13px; font-weight: 900; letter-spacing: .2em; }

.back-button {
  min-height: 40px;
  padding: 0 13px;
  color: rgba(255,255,255,.76);
  background: transparent;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
}
.back-button:hover { color: var(--navy-950); background: var(--yellow); border-color: var(--yellow); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.record-label {
  display: flex;
  gap: 9px;
  align-items: baseline;
  margin-right: 4px;
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}
.record-label strong { color: var(--white); font-size: 18px; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.icon-button {
  min-height: 38px;
  padding: 0 14px;
  color: rgba(255,255,255,.77);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.icon-button:hover { color: var(--white); background: rgba(255,255,255,.13); transform: translateY(-1px); }
.icon-button:focus-visible, .primary-button:focus-visible, .mobile-controls button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

main { flex: 1; display: grid; align-content: center; }

.launcher-view {
  width: 100%;
  padding: clamp(6px, 1.2vw, 16px) 0 22px;
}

.launcher-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(18px, 2.2vw, 30px);
  padding: 0 5px;
}
.launcher-kicker {
  margin: 0 0 5px;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .24em;
}
.launcher-head h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(42px, 5.5vw, 82px);
  font-style: italic;
  line-height: .95;
  letter-spacing: .02em;
}
.launcher-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 6px 3px 0;
  color: rgba(255,255,255,.5);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: .12em;
}
.launcher-counter b { color: var(--yellow); font-size: 42px; line-height: 1; }

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(260px, 1.25fr) minmax(190px, .8fr);
  gap: clamp(13px, 1.5vw, 22px);
  min-height: min(64vh, 650px);
}

.game-tile {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
}
.tile-number {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 20px;
  color: rgba(255,255,255,.64);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .18em;
}

.game-tile--active {
  background:
    linear-gradient(116deg, rgba(0,220,131,.17), transparent 44%),
    linear-gradient(140deg, #0b3c58 0%, #0a244b 45%, #07172f 100%);
  border: 1px solid rgba(84,255,181,.45);
  box-shadow: 0 24px 55px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.05);
}
.game-tile--active::after {
  content: "";
  position: absolute;
  z-index: 0;
  right: -13%;
  bottom: -80%;
  width: 72%;
  aspect-ratio: 1;
  border: 42px solid rgba(255,210,26,.11);
  border-radius: 50%;
}
.tile-burst {
  position: absolute;
  z-index: 0;
  left: -10%;
  bottom: -48%;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,220,131,.36) 0 2%, rgba(0,220,131,.11) 3% 40%, transparent 41%);
  box-shadow: 0 0 80px rgba(0,220,131,.16);
}
.tile-character {
  position: absolute;
  z-index: 2;
  left: clamp(2px, 1.5vw, 23px);
  bottom: -11%;
  height: 117%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(12px 15px 22px rgba(0,0,0,.38));
  pointer-events: none;
}
.tile-copy {
  position: absolute;
  z-index: 3;
  right: clamp(18px, 2vw, 30px);
  bottom: clamp(17px, 2.2vw, 30px);
  width: 44%;
  text-align: right;
}
.tile-copy p {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .19em;
}
.tile-copy h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(38px, 4.8vw, 68px);
  font-style: italic;
  line-height: .72;
  letter-spacing: .025em;
  text-shadow: 4px 5px 0 rgba(0,0,0,.28);
}
.tile-copy h2 em { color: var(--yellow); font-size: .67em; letter-spacing: .16em; }
.tile-copy > span { display: block; margin-top: 13px; color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.35; }

.tile-play {
  position: absolute;
  z-index: 5;
  top: 30%;
  left: 43%;
  min-width: 166px;
  min-height: 58px;
  display: flex;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  color: var(--navy-950);
  background: var(--yellow);
  border: 2px solid #fff5b4;
  border-radius: 12px;
  box-shadow: 6px 7px 0 rgba(0,0,0,.3), 0 0 30px rgba(255,210,26,.18);
  cursor: pointer;
  font-size: 15px;
  font-weight: 950;
  letter-spacing: .1em;
  transition: transform .16s ease, box-shadow .16s ease;
}
.tile-play span { display: grid; place-items: center; flex: 1; padding: 0 18px; }
.tile-play i { width: 52px; display: grid; place-items: center; color: #fff; background: var(--red); font-size: 25px; font-style: normal; }
.tile-play:hover:not(:disabled) { transform: translateY(-3px) scale(1.02); box-shadow: 7px 11px 0 rgba(0,0,0,.27), 0 0 38px rgba(255,210,26,.3); }
.tile-play:active:not(:disabled) { transform: translateY(3px); box-shadow: 3px 3px 0 rgba(0,0,0,.3); }
.tile-play:disabled { cursor: wait; opacity: .52; }
.tile-play:focus-visible, .back-button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.game-tile--pawn {
  background: linear-gradient(90deg, #18234125, #151e3df5 78%), url("assets/pawn/neighborhood.png") center / cover;
  border: 1px solid #ffcf5c99;
  box-shadow: 0 24px 55px #0005, inset 0 0 0 1px #ffffff0c;
}
.pawn-tile-character { position: absolute; z-index: 2; left: -3%; bottom: -18%; height: 125%; width: auto; pointer-events: none; filter: drop-shadow(8px 12px 10px #0006); }
.game-tile--pawn .tile-copy { bottom: 23%; width: 48%; }
.game-tile--pawn .tile-copy p { color: #ffda71; }
.game-tile--pawn .tile-copy h2 { font-size: clamp(38px,4.2vw,62px); line-height: .91; }
.game-tile--pawn .tile-copy h2 em { font-size: .71em; letter-spacing: .03em; }
.game-tile--pawn .tile-play { top: auto; bottom: 18px; left: auto; right: 25px; min-height: 49px; min-width: 165px; text-decoration: none; }
.game-tile--pawn .tile-play i { background: #de6646; }

.game-tile--placeholder {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 0 46%, rgba(255,255,255,.025) 46% 54%, transparent 54%) 0 0 / 30px 30px,
    rgba(6,20,41,.56);
  border: 1px dashed rgba(255,255,255,.22);
  color: rgba(255,255,255,.42);
}
.game-tile--placeholder::before,
.game-tile--placeholder::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  pointer-events: none;
}
.game-tile--placeholder::before { left: 11px; bottom: 11px; border-left: 3px solid rgba(255,210,26,.35); border-bottom: 3px solid rgba(255,210,26,.35); }
.game-tile--placeholder::after { right: 11px; top: 11px; border-right: 3px solid rgba(255,210,26,.35); border-top: 3px solid rgba(255,210,26,.35); }
.placeholder-mark {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-top: -32px;
  border: 1px solid rgba(255,255,255,.19);
  border-radius: 50%;
  box-shadow: inset 0 0 0 9px rgba(255,255,255,.025), 0 0 0 9px rgba(255,255,255,.025);
}
.placeholder-mark b { color: rgba(255,210,26,.7); font-size: 37px; font-weight: 300; }
.game-tile--placeholder p { position: absolute; top: 50%; margin: 18px 0 0; text-align: center; font-size: 13px; line-height: 1.45; letter-spacing: .1em; }
.game-tile--placeholder p strong { color: rgba(255,255,255,.72); font-size: 16px; }
.coming-soon { position: absolute; right: 18px; bottom: 16px; color: rgba(255,210,26,.55); font-size: 11px; font-weight: 900; letter-spacing: .16em; }

.game-view { width: 100%; }

.game-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100dvh - 150px);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 27px;
  background: #071831;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.05);
  isolation: isolate;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(0,0,0,.3);
}

#gameCanvas { display: block; width: 100%; height: 100%; outline: none; }

.action-hint {
  position: absolute;
  z-index: 6;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 12px;
  border: 2px solid var(--yellow);
  border-radius: 12px;
  background: #07182c;
  color: #fff7d7;
  box-shadow: 0 5px 20px rgba(0,0,0,.4);
  pointer-events: none;
  white-space: nowrap;
}
.action-hint[hidden] { display: none; }
.action-hint span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; background: var(--yellow); color: var(--navy-950); font-size: 26px; font-weight: 900; }
.action-hint b { font-size: 18px; letter-spacing: .08em; }
.action-hint.is-urgent { border-color: #fff7d7; background: #a42426; }

.hud {
  position: absolute;
  z-index: 5;
  top: clamp(13px, 2vw, 26px);
  left: clamp(14px, 2.2vw, 31px);
  right: clamp(14px, 2.2vw, 31px);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.hud-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 7px 14px;
  background: rgba(1, 10, 28, .66);
  border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(9px);
  box-shadow: 0 8px 26px rgba(0,0,0,.18);
}
.hud-item:first-child { border-radius: 14px 0 0 14px; }
.hud-item:last-child { border-radius: 0 14px 14px 0; }
.hud-item + .hud-item { border-left: 0; }
.hud-item span { color: rgba(255,255,255,.54); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.hud-item strong { font-size: clamp(16px, 2vw, 24px); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.can-block { margin-right: auto; }
.can-block strong { color: var(--yellow); }
.mini-can {
  display: grid;
  place-items: center;
  width: 21px;
  height: 31px;
  color: #082149 !important;
  background: linear-gradient(#f23732 0 25%, #ffd21a 25% 68%, #0b316b 68%);
  border: 2px solid #fff5cf;
  border-radius: 5px;
  font-size: 12px !important;
  font-style: italic;
}

.overlay {
  position: absolute;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  background: linear-gradient(90deg, rgba(1,8,21,.14) 0%, rgba(1,8,21,.58) 48%, rgba(1,8,21,.9) 100%);
  transition: opacity .24s ease, visibility .24s ease;
}
.overlay.is-visible { visibility: visible; opacity: 1; }
.overlay-card { width: min(490px, 92%); text-align: center; }
.intro-card { margin-left: 46%; text-align: left; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--yellow);
  font-size: clamp(11px, 1.2vw, 14px);
  font-weight: 900;
  letter-spacing: .23em;
}
.intro-card h1 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: clamp(55px, 8vw, 114px);
  font-style: italic;
  line-height: .72;
  letter-spacing: .015em;
  text-shadow: 6px 6px 0 #0d3573, 10px 10px 0 rgba(0,0,0,.28);
}
.intro-card h1 span { display: inline-block; color: var(--yellow); font-size: .65em; letter-spacing: .18em; transform: translateX(.06em); }
.lead { margin: clamp(18px, 2.8vw, 34px) 0 20px; color: rgba(255,255,255,.78); font-size: clamp(14px, 1.5vw, 19px); font-weight: 700; line-height: 1.55; }
.key-guide { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 24px; }
.key-guide span { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.56); font-size: 11px; letter-spacing: .1em; }
kbd { min-width: 30px; padding: 5px 8px; color: var(--navy-900); background: var(--paper); border: 0; border-bottom: 3px solid #b9af8a; border-radius: 6px; font-family: inherit; font-size: 10px; font-weight: 900; text-align: center; }

.primary-button {
  width: min(330px, 100%);
  min-height: 58px;
  display: inline-flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0;
  overflow: hidden;
  color: var(--navy-950);
  background: var(--yellow);
  border: 0;
  border-radius: 12px;
  box-shadow: 6px 7px 0 rgba(0,0,0,.28);
  cursor: pointer;
  font-weight: 950;
  letter-spacing: .08em;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.primary-button span { display: grid; place-items: center; flex: 1; padding: 0 18px; }
.primary-button i { width: 58px; display: grid; place-items: center; color: var(--white); background: var(--red); font-size: 23px; font-style: normal; }
.primary-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 7px 10px 0 rgba(0,0,0,.25); filter: saturate(1.1); }
.primary-button:active:not(:disabled) { transform: translateY(3px); box-shadow: 3px 3px 0 rgba(0,0,0,.25); }
.primary-button:disabled { cursor: wait; opacity: .58; filter: grayscale(.4); }

#gameOverOverlay, #pauseOverlay { background: rgba(2,8,20,.78); backdrop-filter: blur(7px); }
.result-card, .pause-card {
  padding: clamp(24px, 4vw, 48px);
  background: rgba(5,20,43,.92);
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(0,0,0,.42);
}
.result-card h2, .pause-card h2 { margin: 0 0 24px; font-family: Impact, "Arial Black", sans-serif; font-size: clamp(38px, 5vw, 68px); font-style: italic; letter-spacing: .03em; }
.result-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 0 28px; }
.result-grid span { display: grid; gap: 4px; color: rgba(255,255,255,.48); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.result-grid span + span { border-left: 1px solid rgba(255,255,255,.13); }
.result-grid b { color: var(--white); font-size: clamp(22px, 3vw, 34px); font-variant-numeric: tabular-nums; }
.result-grid span:nth-child(2) b { color: var(--yellow); }
.restart-hint { margin: 17px 0 0; color: rgba(255,255,255,.42); font-size: 12px; }
.result-hint { margin: -10px 0 22px; color: #d2ddeb; font-size: 15px; line-height: 1.5; }
.pause-card { width: min(410px, 92%); }
.pause-card .primary-button { justify-self: center; }

.mobile-controls { display: none; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.mobile-controls button {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--white);
  background: #102c54;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  box-shadow: 0 7px 0 #020916;
  touch-action: none;
}
.mobile-controls button:last-child { color: var(--navy-950); background: var(--yellow); border-color: #fff0a5; }
.mobile-controls button:active, .mobile-controls button.is-active { transform: translateY(5px); box-shadow: 0 2px 0 #020916; }
.mobile-controls b { font-size: 13px; letter-spacing: .11em; }
.mobile-controls small { display: block; margin-top: 4px; font-size: 10px; letter-spacing: .04em; opacity: .8; }
.mobile-controls button.is-suggested { outline: 3px solid #fff7d7; outline-offset: 2px; }
.control-icon { font-size: 25px; font-weight: 900; }

footer { min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 8px 0; color: rgba(255,255,255,.38); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
footer p { margin: 0; }
footer p:last-child { text-align: right; }
footer span { margin: 0 7px; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin: 0 7px 0 0; background: var(--green); border-radius: 50%; box-shadow: 0 0 12px var(--green); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (pointer: coarse), (max-width: 900px) {
  .mobile-controls { display: grid; }
  .game-card { max-height: none; min-height: 0; }
  footer { display: none; }
  .page-shell { padding-bottom: max(14px, env(safe-area-inset-bottom)); }
}

@media (max-width: 720px) {
  .page-shell { padding: 10px 9px max(10px, env(safe-area-inset-bottom)); }
  .topbar { min-height: 52px; padding: 0 3px 9px; }
  .brand-mark { width: 31px; height: 31px; border-width: 2px; border-radius: 8px; box-shadow: 4px 4px 0 var(--red); font-size: 15px; }
  .brand-copy strong { font-size: 21px; }
  .brand-copy small, .record-label > :not(strong) { display: none; }
  .launcher-head { margin: 8px 2px 16px; }
  .launcher-kicker { font-size: 11px; }
  .launcher-head h1 { font-size: clamp(37px, 11vw, 58px); }
  .launcher-counter { display: none; }
  .launcher-grid { grid-template-columns: 1fr; grid-template-rows: repeat(2,310px) repeat(2, 166px); min-height: 0; }
  .game-tile--pawn .tile-copy { bottom: 29%; }
  .game-tile--pawn .tile-copy h2 { font-size: 46px; }
  .game-tile--pawn .tile-play { right: 17px; bottom: 18px; }
  .pawn-tile-character { height: 114%; left: -9%; bottom: -13%; }
  .game-tile { border-radius: 18px; }
  .tile-character { left: 0; height: 112%; }
  .tile-play { top: 31%; left: 43%; min-width: 147px; min-height: 51px; }
  .tile-play span { padding: 0 13px; }
  .tile-play i { width: 44px; }
  .tile-copy { right: 17px; bottom: 19px; width: 47%; }
  .tile-copy h2 { font-size: 43px; }
  .tile-copy > span { font-size: 12px; }
  .placeholder-mark { margin-top: -25px; width: 55px; height: 55px; }
  .game-tile--placeholder p { margin-top: 7px; }
  .record-label { margin: 0; }
  .record-label strong { font-size: 15px; }
  .icon-button { min-height: 34px; padding: 0 10px; font-size: 9px; }
  .game-card { border-radius: 17px; }
  .action-hint { top: 55px; padding: 6px 10px 6px 6px; gap: 8px; }
  .action-hint span { width: 26px; height: 26px; font-size: 21px; }
  .action-hint b { font-size: 14px; }
  .hud { top: 9px; left: 9px; right: 9px; }
  .hud-item { min-height: 34px; padding: 4px 8px; gap: 6px; backdrop-filter: blur(4px); }
  .hud-item span { font-size: 8px; }
  .hud-item strong { font-size: 14px; }
  .mini-can { width: 15px; height: 23px; font-size: 8px !important; }
  .intro-card { width: 96%; margin-left: 0; }
  .intro-card h1 { font-size: clamp(46px, 15vw, 76px); }
  .lead { margin: 14px 0 12px; font-size: 12px; line-height: 1.35; }
  .key-guide { display: none; }
  .overlay { justify-items: start; padding: 18px; background: linear-gradient(90deg, rgba(1,8,21,.91), rgba(1,8,21,.55)); }
  .primary-button { min-height: 46px; width: 250px; font-size: 11px; }
  .primary-button i { width: 48px; }
  .result-card, .pause-card { width: 100%; padding: 20px; }
  .result-card h2, .pause-card h2 { margin-bottom: 14px; font-size: 34px; }
  .result-grid { margin-bottom: 16px; }
  .result-hint { margin: 0 0 12px; font-size: 12px; line-height: 1.3; }
  .restart-hint { display: none; }
}

@media (max-width: 480px) and (orientation: portrait) {
  .topbar-actions { gap: 5px; }
  .record-label { display: none; }
  .brand-zone { gap: 7px; }
  .back-button { min-width: 35px; padding: 0 8px; }
  .back-button span { display: none; }
  .launcher-grid { grid-template-rows: repeat(2,285px) repeat(2, 154px); }
  .tile-character { left: -8px; height: 108%; }
  .tile-number { top: 13px; left: 14px; }
  .tile-play { top: 31%; left: 41%; min-width: 139px; min-height: 48px; font-size: 13px; }
  .tile-copy { width: 50%; right: 13px; bottom: 14px; }
  .tile-copy h2 { font-size: 38px; }
  .tile-copy > span { display: none; }
  .overlay { padding: 12px; }
  .eyebrow { font-size: 9px; margin-bottom: 4px; }
  .intro-card h1 { font-size: 42px; }
  .lead { max-width: 220px; }
  .mobile-controls button { min-height: 62px; }
  .result-card { padding: 8px; }
  .result-card .eyebrow { display: none; }
  .result-card h2 { margin-bottom: 7px; font-size: 25px; }
  .result-grid { margin-bottom: 7px; }
  .result-hint { margin-bottom: 8px; }
  .result-card .primary-button { min-height: 38px; }
}

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

/* Arcade selector: flat poster panels, sharp geometry and game artwork first. */
.arcade-index:not(.game-is-open) {
  background: #090b0f;
}

.arcade-index:not(.game-is-open) .page-shell {
  width: min(1600px, 100%);
  padding: 12px clamp(12px, 2vw, 32px) 20px;
}

.arcade-index:not(.game-is-open) .topbar {
  min-height: 55px;
  padding: 0 2px 10px;
  border-bottom: 1px solid #ffffff24;
}

.arcade-index:not(.game-is-open) .brand-mark {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  box-shadow: 4px 4px 0 var(--red);
  font-size: 16px;
}

.arcade-index:not(.game-is-open) .brand-copy strong { font-size: 23px; }
.arcade-index:not(.game-is-open) .brand-copy small { font-size: 11px; }
.arcade-index:not(.game-is-open) main { align-content: stretch; }

.arcade-index .launcher-view {
  display: flex;
  min-height: calc(100dvh - 88px);
  flex-direction: column;
  padding: 17px 0 0;
}

.arcade-index .launcher-head {
  align-items: center;
  margin: 0 0 16px;
  padding: 0;
}

.arcade-index .launcher-kicker {
  margin-bottom: 3px;
  color: #9ca6b7;
  font-size: 11px;
  letter-spacing: .18em;
}

.arcade-index .launcher-head h1 {
  font-size: clamp(45px, 5.4vw, 79px);
  line-height: .9;
  letter-spacing: -.01em;
}

.arcade-index .launcher-head h1 span { color: var(--yellow); }

.arcade-index .launcher-counter {
  gap: 10px;
  color: #8a94a5;
}

.arcade-index .launcher-counter b {
  color: white;
  font: italic 43px/1 Impact, "Arial Black", sans-serif;
}

.arcade-index .launcher-grid {
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(330px, 1fr) 92px;
  gap: 12px;
  min-height: 0;
}

.arcade-index .game-tile {
  border-radius: 2px;
}

.arcade-index .game-tile--active {
  background: #075346;
  border: 2px solid #35e99c;
  box-shadow: 7px 7px 0 #35e99c;
}

.arcade-index .game-tile--active::after { display: none; }

.arcade-index .game-tile--pawn {
  background-color: #182646;
  background-image: url("assets/pawn/neighborhood.png");
  background-position: center;
  background-size: cover;
  border: 2px solid #f4c84f;
  box-shadow: 7px 7px 0 #f4c84f;
}

.arcade-index .game-tile--pawn::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 0 43%;
  background: #11182fe8;
}

.arcade-index .tile-number {
  top: 15px;
  left: 17px;
  color: #ffffffc7;
  font-size: 11px;
  letter-spacing: .13em;
}

.tile-index-giant {
  position: absolute;
  z-index: 1;
  top: -18px;
  right: 13px;
  color: #ffffff14;
  font: italic clamp(100px, 11vw, 175px)/1 Impact, "Arial Black", sans-serif;
  pointer-events: none;
}

.arcade-index .tile-character {
  left: -2%;
  bottom: -16%;
  height: 119%;
  filter: drop-shadow(10px 15px 0 #032b2678);
}

.arcade-index .pawn-tile-character {
  left: -7%;
  bottom: -17%;
  height: 122%;
  filter: drop-shadow(9px 12px 0 #07102266);
}

.arcade-index .tile-copy,
.arcade-index .game-tile--pawn .tile-copy {
  z-index: 3;
  right: 20px;
  bottom: 22px;
  width: 43%;
  text-align: left;
}

.arcade-index .tile-copy p {
  margin-bottom: 8px;
  color: #9affcf;
  font-size: 11px;
  letter-spacing: .12em;
}

.arcade-index .game-tile--pawn .tile-copy p { color: #ffe188; }

.arcade-index .tile-copy h2,
.arcade-index .game-tile--pawn .tile-copy h2 {
  font-size: clamp(50px, 5vw, 76px);
  line-height: .75;
  text-shadow: 5px 5px 0 #03070d99;
}

.arcade-index .game-tile--pawn .tile-copy h2 { line-height: .88; }

.arcade-index .tile-copy h2 em,
.arcade-index .game-tile--pawn .tile-copy h2 em {
  color: var(--yellow);
  font-size: .65em;
  letter-spacing: .07em;
}

.arcade-index .tile-play,
.arcade-index .game-tile--pawn .tile-play {
  z-index: 5;
  top: 35%;
  right: 20px;
  bottom: auto;
  left: auto;
  min-width: 170px;
  min-height: 54px;
  border: 0;
  border-radius: 1px;
  box-shadow: 5px 5px 0 #05070b;
  text-decoration: none;
}

.arcade-index .tile-play:hover:not(:disabled) {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 #05070b;
}

.arcade-index .game-tile--placeholder {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 22px;
  color: #7f8998;
  background: #12151b;
  border: 1px solid #3d444f;
  box-shadow: none;
}

.arcade-index .game-tile--placeholder::before,
.arcade-index .game-tile--placeholder::after { display: none; }

.placeholder-number {
  color: #59616c;
  font: italic 42px/1 Impact, "Arial Black", sans-serif;
}

.arcade-index .game-tile--placeholder p {
  position: static;
  margin: 0 0 0 22px;
  color: #a5adb8;
  text-align: left;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.arcade-index .coming-soon {
  position: static;
  color: #727b88;
  font-size: 10px;
}

@media (max-width: 900px) {
  .arcade-index .launcher-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 340px) repeat(2, 78px);
  }

  .arcade-index:not(.game-is-open) { overflow-y: auto; }
  .arcade-index .game-tile--active,
  .arcade-index .game-tile--pawn { box-shadow: 5px 5px 0 currentColor; }
}

@media (max-width: 520px) {
  .arcade-index:not(.game-is-open) .page-shell { padding: 8px 9px 14px; }
  .arcade-index .launcher-head { margin: 5px 0 13px; }
  .arcade-index .launcher-head h1 { font-size: 43px; }
  .arcade-index .launcher-kicker { font-size: 9px; }
  .arcade-index .launcher-grid { grid-template-rows: repeat(2, 292px) repeat(2, 70px); gap: 9px; }
  .arcade-index .tile-character { height: 112%; left: -10%; bottom: -12%; }
  .arcade-index .pawn-tile-character { height: 113%; left: -13%; bottom: -12%; }
  .arcade-index .tile-copy,
  .arcade-index .game-tile--pawn .tile-copy { right: 12px; bottom: 14px; width: 47%; }
  .arcade-index .tile-copy p { font-size: 9px; }
  .arcade-index .tile-copy h2,
  .arcade-index .game-tile--pawn .tile-copy h2 { font-size: 42px; }
  .arcade-index .tile-play,
  .arcade-index .game-tile--pawn .tile-play { top: 36%; right: 12px; min-width: 139px; min-height: 47px; }
  .arcade-index .tile-number { top: 11px; left: 12px; font-size: 9px; }
  .tile-index-giant { top: -9px; font-size: 95px; }
  .arcade-index .game-tile--placeholder { padding: 0 13px; }
  .placeholder-number { font-size: 32px; }
  .arcade-index .game-tile--placeholder p { margin-left: 14px; font-size: 11px; }
  .arcade-index .coming-soon { font-size: 8px; }
}

/* Final selector art direction. */
body .brand-copy {
  display: flex;
  align-items: baseline;
  gap: .5em;
  letter-spacing: 0;
  white-space: nowrap;
}

body .brand-copy strong,
.arcade-index:not(.game-is-open) .brand-copy strong {
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .025em;
}

body .brand-copy small,
.arcade-index:not(.game-is-open) .brand-copy small {
  display: inline;
  color: #aeb6c3;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.arcade-index .launcher-head {
  justify-content: flex-start;
  margin-bottom: 22px;
}

.arcade-index .launcher-head h1 {
  font-size: clamp(48px, 5.7vw, 82px);
}

.arcade-index .game-tile--active,
.arcade-index .game-tile--pawn {
  border: 1px solid #ffffff45;
  border-radius: 8px;
  box-shadow: 0 18px 42px #0007;
  transition: transform .18s ease, border-color .18s ease;
}

.arcade-index .game-tile--active:hover,
.arcade-index .game-tile--pawn:hover {
  transform: translateY(-3px);
  border-color: #ffffffb8;
}

.arcade-index .game-tile--active {
  background: #064b3f;
}

.arcade-index .game-tile--active::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: 9px;
  height: 100%;
  background: #ffd21a;
}

.arcade-index .game-tile--pawn {
  background-color: #152442;
  border-color: #ffffff45;
  box-shadow: 0 18px 42px #0007;
}

.arcade-index .game-tile--pawn::after {
  inset: 0 0 0 48%;
  background: #0d1529e8;
}

.arcade-index .tile-character {
  left: 2%;
  bottom: -17%;
  height: 124%;
  filter: drop-shadow(10px 14px 16px #001a176e);
}

.arcade-index .pawn-tile-character {
  left: -5%;
  bottom: -17%;
  height: 124%;
  filter: drop-shadow(9px 12px 15px #0309168c);
}

.arcade-index .tile-copy,
.arcade-index .game-tile--pawn .tile-copy {
  right: 28px;
  bottom: 28px;
  width: 44%;
}

.arcade-index .tile-copy h2,
.arcade-index .game-tile--pawn .tile-copy h2 {
  font-size: clamp(51px, 5vw, 76px);
  line-height: .84;
  letter-spacing: -.015em;
  text-shadow: 5px 6px 0 #02070c7a;
}

.arcade-index .game-tile--pawn .tile-copy h2 { line-height: .88; }

.arcade-index .tile-copy h2 em,
.arcade-index .game-tile--pawn .tile-copy h2 em {
  color: #ffdb58;
  font-size: .72em;
  letter-spacing: .015em;
}

.arcade-index .tile-play,
.arcade-index .game-tile--pawn .tile-play {
  min-width: 166px;
  min-height: 52px;
  border-radius: 4px;
  box-shadow: 5px 5px 0 #04070c;
}

.arcade-index .game-tile--active .tile-play {
  top: 34%;
  right: auto;
  left: 43%;
}

.arcade-index .game-tile--pawn .tile-play {
  top: 34%;
  right: 25px;
  left: auto;
}

.arcade-index .game-tile--placeholder {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  padding: 15px;
  background: #101319;
  border: 1px dashed #4f5661;
  border-radius: 5px;
}

.arcade-index .game-tile--placeholder p {
  position: static;
  margin: 0;
  color: #8f98a5;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
}

@media (max-width: 900px) {
  .arcade-index .game-tile--active,
  .arcade-index .game-tile--pawn { box-shadow: 0 14px 32px #0006; }
}

@media (max-width: 520px) {
  body .brand-copy strong,
  .arcade-index:not(.game-is-open) .brand-copy strong { font-size: 13px; }
  body .brand-copy small,
  .arcade-index:not(.game-is-open) .brand-copy small { font-size: 11px; }
  .arcade-index .launcher-head { margin-bottom: 14px; }
  .arcade-index .tile-character { left: -7%; bottom: -13%; height: 116%; }
  .arcade-index .pawn-tile-character { left: -11%; bottom: -13%; height: 116%; }
  .arcade-index .tile-copy,
  .arcade-index .game-tile--pawn .tile-copy { right: 14px; bottom: 16px; width: 48%; }
  .arcade-index .tile-copy h2,
  .arcade-index .game-tile--pawn .tile-copy h2 { font-size: 39px; }
  .arcade-index .game-tile--active .tile-play { top: 34%; left: 42%; }
  .arcade-index .game-tile--pawn .tile-play { top: 34%; right: 13px; }
  .arcade-index .tile-play,
  .arcade-index .game-tile--pawn .tile-play { min-width: 137px; min-height: 46px; }
  .arcade-index .game-tile--placeholder p { font-size: 13px; }
}

/* Polished arcade library: compact landscape posters with one clear action. */
.arcade-index:not(.game-is-open) {
  background:
    radial-gradient(circle at 18% -8%, #124b434f 0, transparent 36rem),
    radial-gradient(circle at 90% 5%, #173d784a 0, transparent 34rem),
    #06080d;
}

.arcade-index:not(.game-is-open)::before {
  display: none;
}

.arcade-index:not(.game-is-open) .page-shell {
  position: relative;
  width: min(1380px, 100%);
  padding: 16px clamp(14px, 2.3vw, 34px) 24px;
}

.arcade-index:not(.game-is-open) .topbar {
  min-height: 50px;
  padding: 0 2px 12px;
  border-bottom-color: #ffffff18;
}

.arcade-index .launcher-view {
  width: 100%;
  min-height: auto;
  padding: clamp(24px, 4vh, 44px) 0 0;
}

.arcade-index .launcher-head {
  align-items: flex-end;
  justify-content: flex-start;
  margin: 0 0 clamp(21px, 3vh, 32px);
}

.arcade-index .launcher-kicker {
  margin: 0 0 9px;
  color: #8d98a9;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2em;
}

.arcade-index .launcher-head h1 {
  font-size: clamp(52px, 5.4vw, 78px);
  line-height: .83;
  letter-spacing: -.018em;
  text-shadow: 0 10px 30px #0008;
}

.arcade-index .launcher-head h1 span { color: #ffd640; }

.launcher-note {
  margin: 0 2px 0 0;
  color: #8791a1;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
  letter-spacing: .13em;
  text-align: right;
}

.launcher-note strong {
  color: #fff;
  font: italic 32px/1 Impact, "Arial Black", sans-serif;
  vertical-align: -.12em;
}

.arcade-index .launcher-grid {
  flex: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: clamp(360px, 32vw, 430px);
  gap: 16px;
  min-height: 0;
}

.arcade-index .game-tile--active,
.arcade-index .game-tile--pawn {
  overflow: hidden;
  border: 1px solid #ffffff24;
  border-radius: 9px;
  box-shadow: 0 22px 42px #0008;
  isolation: isolate;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.arcade-index .game-tile--active:hover,
.arcade-index .game-tile--pawn:hover {
  transform: translateY(-2px);
  border-color: #ffffff52;
  box-shadow: 0 28px 52px #0009;
}

.arcade-index .game-tile--active {
  background: linear-gradient(105deg, #0a493d 0%, #073d36 54%, #052621 100%);
}

.arcade-index .game-tile--active::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  width: auto;
  height: auto;
  opacity: 1;
  background: linear-gradient(108deg, transparent 0 55%, #021b17c9 100%);
}

.arcade-index .game-tile--active::after {
  display: none;
}

.arcade-index .game-tile--pawn {
  background-color: #0b1832;
  background-image: url("assets/pawn/neighborhood.png");
  background-position: 40% 50%;
  background-size: cover;
}

.arcade-index .game-tile--pawn::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, #071329fc 0%, #091632ed 44%, #06112772 72%, #061127a8 100%);
}

.tile-topline {
  position: absolute;
  z-index: 5;
  top: 24px;
  left: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b7c2cd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .17em;
}

.tile-topline span:first-child {
  display: grid;
  place-items: center;
  width: 36px;
  height: 27px;
  color: #07101a;
  background: #fff;
  border-radius: 999px;
  letter-spacing: .05em;
}

.arcade-index .tile-character {
  z-index: 2;
  right: -2%;
  bottom: -13%;
  left: auto;
  height: 116%;
  filter: drop-shadow(14px 20px 20px #00100fad);
}

.pawn-tile-scene {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.pawn-hero-clip {
  position: absolute;
  right: -5%;
  bottom: -12%;
  width: auto;
  height: 110%;
  aspect-ratio: 1;
  overflow: hidden;
  filter: drop-shadow(14px 20px 20px #010610b8);
}

.pawn-hero-clip img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: auto;
  max-width: none;
}

.pawn-prop {
  position: absolute;
  z-index: 3;
  object-fit: contain;
  filter: drop-shadow(7px 11px 11px #000a);
}

.pawn-prop--speaker {
  top: 13%;
  right: 4%;
  width: 26%;
  transform: rotate(4deg);
}

.pawn-prop--phone {
  top: 25%;
  right: 31%;
  width: 11%;
  transform: rotate(-10deg);
}

.arcade-index .tile-copy,
.arcade-index .game-tile--pawn .tile-copy {
  z-index: 4;
  top: auto;
  bottom: 92px;
  left: 30px;
  right: auto;
  width: 55%;
  text-align: left;
}

.arcade-index .tile-copy p,
.arcade-index .game-tile--pawn .tile-copy p {
  margin: 0 0 10px;
  color: #8fffcf;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .13em;
}

.arcade-index .game-tile--pawn .tile-copy p { color: #86bfff; }

.arcade-index .tile-copy h2,
.arcade-index .game-tile--pawn .tile-copy h2 {
  margin: 0;
  font-size: clamp(52px, 4.6vw, 70px);
  line-height: .82;
  letter-spacing: -.02em;
  text-shadow: 5px 6px 0 #02070c7a;
}

.arcade-index .tile-copy h2 em,
.arcade-index .game-tile--pawn .tile-copy h2 em {
  color: #ffd640;
  font-size: .7em;
  letter-spacing: .01em;
}

.arcade-index .tile-copy > span {
  display: block;
  max-width: 270px;
  margin-top: 16px;
  color: #cfdae3;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.arcade-index .tile-play,
.arcade-index .game-tile--active .tile-play,
.arcade-index .game-tile--pawn .tile-play {
  top: auto;
  right: auto;
  bottom: 27px;
  left: 30px;
  min-width: 150px;
  min-height: 50px;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 10px 20px #02070b85;
}

.arcade-index .tile-play i,
.arcade-index .game-tile--active .tile-play i,
.arcade-index .game-tile--pawn .tile-play i {
  width: 46px;
  color: #071225;
  background: transparent;
  border-left: 1px solid #0712253a;
}

.arcade-index .tile-play:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px #02070b99;
}

.arcade-index .game-tile--placeholder {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 0 22px;
  color: #707987;
  background: linear-gradient(110deg, #10141b, #0b0e13);
  border: 1px dashed #3b424d;
  border-radius: 14px;
}

.arcade-index .game-tile--placeholder::before,
.arcade-index .game-tile--placeholder::after { display: none; }

.placeholder-number {
  color: #515966;
  font: italic 32px/1 Impact, "Arial Black", sans-serif;
}

.arcade-index .game-tile--placeholder p {
  position: static;
  margin: 0;
  color: #8993a1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: left;
}

.arcade-index .coming-soon {
  position: static;
  margin-left: auto;
  color: #ffd6409c;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
}

/* A direct, unmistakable loss state for Bieg po Tartę. */
#gameOverOverlay {
  background:
    radial-gradient(circle at 50% 38%, #7c172760 0, transparent 24rem),
    rgba(1, 6, 16, .88);
  backdrop-filter: blur(9px);
}

.result-card {
  position: relative;
  width: min(590px, 94%);
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
  background: linear-gradient(150deg, #0c1a31f7, #071225f7);
  border: 1px solid #ffffff26;
  border-radius: 28px;
  box-shadow: 0 34px 80px #0009, inset 0 1px 0 #ffffff10;
}

.result-card::before {
  display: none;
}

.result-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 9px;
}

.result-status span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #fff;
  background: #ef334c;
  border-radius: 50%;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.result-status p {
  margin: 0;
  color: #aeb8c7;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .2em;
}

.result-card h2 {
  margin: 0 0 25px;
  color: #fff;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1;
  letter-spacing: .01em;
  text-shadow: 4px 5px 0 #8c1427;
}

.result-grid {
  gap: 9px;
  margin: 0 0 24px;
}

.result-grid span {
  min-width: 0;
  padding: 14px 7px 12px;
  background: #020a18a6;
  border: 1px solid #ffffff13;
  border-radius: 12px;
  color: #8290a3;
}

.result-grid span + span { border-left: 1px solid #ffffff13; }
.result-grid b { margin-bottom: 2px; font-size: clamp(23px, 3vw, 34px); }

.result-hint {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0 0 22px;
  padding: 12px 14px;
  color: #cbd6e5;
  background: #ffffff08;
  border-left: 3px solid #ffd640;
  border-radius: 4px 10px 10px 4px;
  font-size: 14px;
  line-height: 1.42;
  text-align: left;
}

.result-hint strong {
  flex: 0 0 auto;
  color: #ffd640;
  font-size: 9px;
  letter-spacing: .12em;
  line-height: 1.9;
}

.result-card .primary-button { margin-inline: auto; }

@media (max-width: 900px) {
  .arcade-index .launcher-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, 340px);
  }
  .arcade-index .game-tile--active,
  .arcade-index .game-tile--pawn { box-shadow: 0 22px 46px #0007; }
  .arcade-index .tile-copy,
  .arcade-index .game-tile--pawn .tile-copy { width: 49%; }
  .pawn-hero-clip { width: auto; }
}

@media (max-width: 600px) {
  .arcade-index.game-is-open main { align-content: start; }
  .arcade-index.game-is-open .brand { display: none; }
  .arcade-index.game-is-open .game-view { margin-top: 5px; }
  .arcade-index.game-is-open .overlay { padding: 8px 12px; }
  .arcade-index.game-is-open .intro-card h1 { font-size: 37px; }
  .arcade-index.game-is-open .lead {
    max-width: 235px;
    margin: 8px 0;
    font-size: 10px;
    line-height: 1.25;
  }
  .arcade-index.game-is-open .intro-card .primary-button {
    width: 225px;
    min-height: 39px;
    font-size: 10px;
  }
  .arcade-index:not(.game-is-open) .page-shell { padding: 10px 10px 18px; }
  .arcade-index .launcher-view { padding-top: 22px; }
  .arcade-index .launcher-head { margin-bottom: 19px; }
  .arcade-index .launcher-kicker { font-size: 9px; }
  .arcade-index .launcher-head h1 { font-size: 46px; }
  .launcher-note { display: none; }
  .arcade-index .launcher-grid { grid-template-rows: repeat(2, 310px); gap: 11px; }
  .arcade-index .game-tile--active,
  .arcade-index .game-tile--pawn { border-radius: 7px; }
  .tile-topline { top: 17px; left: 18px; right: 18px; font-size: 9px; }
  .tile-topline span:first-child { width: 31px; height: 23px; }
  .arcade-index .tile-copy,
  .arcade-index .game-tile--pawn .tile-copy { top: auto; bottom: 76px; left: 18px; width: 57%; }
  .arcade-index .tile-copy p,
  .arcade-index .game-tile--pawn .tile-copy p { font-size: 8px; }
  .arcade-index .tile-copy h2,
  .arcade-index .game-tile--pawn .tile-copy h2 { font-size: 44px; }
  .arcade-index .tile-copy > span { display: none; }
  .arcade-index .tile-character { right: -13%; bottom: -9%; height: 105%; }
  .pawn-hero-clip { right: -8%; bottom: -7%; width: auto; height: 104%; }
  .arcade-index .tile-play,
  .arcade-index .game-tile--active .tile-play,
  .arcade-index .game-tile--pawn .tile-play {
    bottom: 18px;
    left: 18px;
    min-width: 145px;
    min-height: 48px;
    font-size: 11px;
  }
  .arcade-index .game-tile--placeholder { padding: 0 15px; border-radius: 11px; }
  .placeholder-number { font-size: 27px; }
  .arcade-index .game-tile--placeholder p { font-size: 11px; }
  .arcade-index .coming-soon { font-size: 8px; }
  .result-card { padding: 13px 10px 9px; border-radius: 17px; }
  .result-status { margin-bottom: 3px; }
  .result-status span { width: 19px; height: 19px; font-size: 15px; }
  .result-status p { font-size: 9px; }
  .result-card h2 { margin-bottom: 8px; font-size: 34px; }
  .result-grid { gap: 4px; margin-bottom: 7px; }
  .result-grid span { padding: 5px 2px 4px; font-size: 7px; }
  .result-grid b { font-size: 18px; }
  .result-card .primary-button { min-height: 36px; }
}

/* Final launcher composition: artwork left, title and action right. */
body .brand-copy,
.arcade-index:not(.game-is-open) .brand-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
  padding-left: 11px;
  border-left: 3px solid #ffd640;
  line-height: 1;
}

body .brand-copy strong,
.arcade-index:not(.game-is-open) .brand-copy strong {
  font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .045em;
}

body .brand-copy small,
.arcade-index:not(.game-is-open) .brand-copy small {
  color: #ffd640;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}

.arcade-index .launcher-head {
  justify-content: center;
  text-align: center;
}

.arcade-index .game-tile--active,
.arcade-index .game-tile--pawn {
  border: 0;
}

.arcade-index .game-tile--active:hover,
.arcade-index .game-tile--pawn:hover {
  border-color: transparent;
}

.arcade-index .game-tile--active {
  background: linear-gradient(90deg, #084a3e 0%, #07372f 50%, #031b19 100%);
}

.arcade-index .game-tile--active::before {
  background: linear-gradient(90deg, transparent 0 38%, #031b1966 57%, #021411eb 100%);
}

.arcade-index .game-tile--pawn::after {
  background: linear-gradient(90deg, #07132942 0 32%, #071329c9 57%, #050d20f5 100%);
}

.arcade-index .tile-character {
  right: auto;
  left: -2%;
  bottom: -12%;
  height: 115%;
}

.pawn-hero-clip {
  right: auto;
  left: -5%;
  bottom: -11%;
  height: 110%;
}

.arcade-index .tile-copy,
.arcade-index .game-tile--pawn .tile-copy {
  top: auto;
  right: 30px;
  bottom: 96px;
  left: auto;
  width: 43%;
}

.arcade-index .tile-copy h2,
.arcade-index .game-tile--pawn .tile-copy h2 {
  font-size: clamp(48px, 4.2vw, 64px);
}

.arcade-index .tile-play,
.arcade-index .game-tile--active .tile-play,
.arcade-index .game-tile--pawn .tile-play {
  right: 30px;
  left: auto;
  justify-content: center;
  min-width: 142px;
  padding: 0 22px;
}

.arcade-index .tile-play span {
  padding: 0;
}

@media (max-width: 600px) {
  body .brand-copy strong,
  .arcade-index:not(.game-is-open) .brand-copy strong { font-size: 13px; }

  .arcade-index .tile-character {
    right: auto;
    left: -12%;
    bottom: -7%;
    height: 104%;
  }

  .pawn-hero-clip {
    right: auto;
    left: -13%;
    bottom: -6%;
    height: 101%;
  }

  .arcade-index .tile-copy,
  .arcade-index .game-tile--pawn .tile-copy {
    top: auto;
    right: 17px;
    bottom: 76px;
    left: auto;
    width: 50%;
  }

  .arcade-index .tile-copy h2,
  .arcade-index .game-tile--pawn .tile-copy h2 { font-size: 39px; }

  .arcade-index .tile-play,
  .arcade-index .game-tile--active .tile-play,
  .arcade-index .game-tile--pawn .tile-play {
    right: 17px;
    left: auto;
    min-width: 132px;
    padding-inline: 17px;
  }
}

/* Mobile portrait shell for Bieg po Tartę. The canvas keeps its world ratio;
   the extra vertical space becomes sky instead of stretching the game. */
@media (max-width: 600px) and (orientation: portrait) {
  .arcade-index.game-is-open {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #030b1d;
  }

  .arcade-index.game-is-open .page-shell {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
  }

  .arcade-index.game-is-open .topbar {
    flex: 0 0 47px;
    min-height: 47px;
    padding: 0 3px 7px;
  }

  .arcade-index.game-is-open .back-button,
  .arcade-index.game-is-open .icon-button {
    min-height: 36px;
    border: 0;
    border-radius: 6px;
    background: #ffffff0c;
  }

  .arcade-index.game-is-open .back-button { border-left: 2px solid #ffd640; }
  .arcade-index.game-is-open .topbar-actions { gap: 6px; }

  .arcade-index.game-is-open main {
    display: block;
    flex: 1;
    min-height: 0;
  }

  .arcade-index.game-is-open .game-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0;
  }

  .arcade-index.game-is-open .game-card {
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 14px 34px #0008;
  }

  .arcade-index.game-is-open .game-card::before {
    border-radius: inherit;
    box-shadow: inset 0 0 34px #0005;
  }

  .arcade-index.game-is-open .hud {
    top: 11px;
    right: 10px;
    left: 10px;
  }

  .arcade-index.game-is-open .hud-item {
    min-height: 39px;
    padding: 5px 9px;
    border: 0;
    background: #020a19b8;
    box-shadow: none;
    backdrop-filter: blur(5px);
  }

  .arcade-index.game-is-open .hud-item:first-child { border-radius: 6px 0 0 6px; }
  .arcade-index.game-is-open .hud-item:last-child { border-radius: 0 6px 6px 0; }
  .arcade-index.game-is-open .hud-item span { font-size: 7px; }
  .arcade-index.game-is-open .hud-item strong { font-size: 15px; }

  .arcade-index.game-is-open .action-hint {
    top: auto;
    bottom: 105px;
    padding: 7px 11px 7px 7px;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 8px 24px #0008;
  }

  .arcade-index.game-is-open #startOverlay {
    place-items: stretch;
    padding: 0;
    background: linear-gradient(180deg, #020b1df2 0%, #04132bd9 46%, #04132b38 100%);
  }

  .arcade-index.game-is-open .intro-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: clamp(88px, 14dvh, 126px) 20px 22px;
    text-align: left;
  }

  .arcade-index.game-is-open .eyebrow {
    margin-bottom: 9px;
    font-size: 10px;
    letter-spacing: .19em;
  }

  .arcade-index.game-is-open .intro-card h1 {
    font-size: clamp(58px, 17vw, 74px);
    line-height: .76;
    text-shadow: 5px 6px 0 #0d3573;
  }

  .arcade-index.game-is-open .lead {
    max-width: 310px;
    margin: 22px 0 0;
    color: #dce6f3;
    font-size: 13px;
    line-height: 1.48;
  }

  .arcade-index.game-is-open .intro-card .primary-button {
    width: 100%;
    min-height: 56px;
    margin-top: auto;
    border-radius: 6px;
    box-shadow: 0 8px 22px #0007;
    font-size: 13px;
  }

  .arcade-index.game-is-open .intro-card .primary-button i { display: none; }

  .arcade-index.game-is-open #gameOverOverlay {
    place-items: center;
    padding: 20px;
    background: linear-gradient(180deg, #080d1bed 0%, #1a0a15e8 100%);
    backdrop-filter: blur(5px);
  }

  .arcade-index.game-is-open .result-card {
    width: 100%;
    padding: 30px 18px 20px;
    border: 0;
    border-radius: 10px;
    background: #08152af7;
    box-shadow: 0 24px 60px #0009;
  }

  .arcade-index.game-is-open .result-status {
    margin-bottom: 12px;
  }

  .arcade-index.game-is-open .result-status span {
    width: 27px;
    height: 27px;
    font-size: 21px;
  }

  .arcade-index.game-is-open .result-status p { font-size: 10px; }

  .arcade-index.game-is-open .result-card h2 {
    margin-bottom: 24px;
    font-size: clamp(49px, 14vw, 61px);
    line-height: .92;
  }

  .arcade-index.game-is-open .result-grid {
    gap: 6px;
    margin-bottom: 24px;
  }

  .arcade-index.game-is-open .result-grid span {
    padding: 14px 3px 12px;
    border: 0;
    border-radius: 5px;
    background: #020a18c7;
    font-size: 8px;
  }

  .arcade-index.game-is-open .result-grid span + span { border-left: 0; }
  .arcade-index.game-is-open .result-grid b { font-size: 23px; }

  .arcade-index.game-is-open .result-card .primary-button {
    width: 100%;
    min-height: 55px;
    border-radius: 6px;
    box-shadow: 0 8px 22px #0007;
    font-size: 11px;
  }

  .arcade-index.game-is-open .result-card .primary-button i { display: none; }

  .arcade-index.game-is-open .pause-card {
    width: calc(100% - 40px);
    padding: 30px 18px;
    border: 0;
    border-radius: 10px;
  }

  .arcade-index.game-is-open .mobile-controls {
    flex: 0 0 auto;
    gap: 8px;
    margin-top: 8px;
  }

  .arcade-index.game-is-open .mobile-controls button {
    min-height: 62px;
    border: 0;
    border-radius: 7px;
    box-shadow: 0 5px 0 #020916;
  }

  .arcade-index.game-is-open .mobile-controls button:active,
  .arcade-index.game-is-open .mobile-controls button.is-active {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #020916;
  }
}

@media (max-width: 600px) and (max-height: 700px) and (orientation: portrait) {
  .arcade-index.game-is-open .intro-card { padding-top: 72px; }
  .arcade-index.game-is-open .intro-card h1 { font-size: 54px; }
  .arcade-index.game-is-open .lead { margin-top: 15px; font-size: 11px; }
  .arcade-index.game-is-open .result-card { padding-top: 21px; }
  .arcade-index.game-is-open .result-card h2 { margin-bottom: 16px; font-size: 46px; }
}
