:root {
  --red: #ff2b3d;
  --accent: #22e6ff;
  --bg: #150b24;
  --card: rgba(32, 33, 36, 0.92);
  --fg: #e8eaed;
  --muted: #9aa0a6;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  --safe-top: max(env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px));
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-content-safe-area-inset-bottom, 0px));
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; /* no "save image" sheet on a long press (iOS) */
  touch-action: manipulation; /* no double-tap zoom */
}

.hidden {
  display: none !important;
}

kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 1px 5px;
  margin: 0 1px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-bottom-width: 2px;
  border-radius: 4px;
  font: 600 11px/1.4 var(--mono);
  text-align: center;
  color: var(--fg);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- stage: where a game renders ---------- */

#stage {
  position: fixed;
  inset: 0;
  touch-action: none;
}

#stage:empty {
  display: none;
}

.game-root {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ---------- shared cards (intro, pause, game over) ---------- */

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: calc(16px + var(--safe-top));
  padding-bottom: calc(16px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(10, 6, 18, 0.15), rgba(10, 6, 18, 0.55));
  touch-action: pan-y;
}

.card {
  width: min(600px, 100%);
  max-height: 100%;
  overflow: auto;
  padding: 30px 38px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card.small {
  width: auto;
  text-align: center;
}

.card h1 {
  margin: 14px 0 8px;
  font-size: 26px;
  font-weight: 500;
  color: var(--fg);
}

.card.small h1 {
  margin-top: 0;
}

.card p {
  margin: 6px 0;
}

.card ul {
  margin: 4px 0 10px;
  padding-left: 24px;
}

.card b {
  color: var(--fg);
  font-weight: 600;
}

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

.card pre {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  font: 13px var(--mono);
  white-space: pre-wrap;
}

.pix {
  display: block;
  width: 180px;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

/* a game's picture of how the run ended (result.picture), at twice its pixels */
.pix.shot {
  width: min(360px, 100%);
  border-radius: 8px;
}

.err {
  margin-top: 12px !important;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rules {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #bdc1c6;
}

.keys,
.touch-keys {
  margin-top: 12px;
  font-size: 12px;
  line-height: 2;
}

/* intro cards list both; <html class="touch"> (core/input.js) picks one */
.touch-keys {
  display: none;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* the intro card: a long description is cut to what fits above the buttons and fades out, with «Дочитать» on top
   (session.js clampIntro), so «Играть» is in view without scrolling; «Дочитать» opens it all */
.card.intro {
  display: flex;
  flex-direction: column;
}

.card.intro > * {
  flex: none;
}

.card.intro > .intro-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 150px;
}

.intro-text {
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
}

.card.intro.cut .intro-text {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent calc(100% - 6px));
  mask-image: linear-gradient(to bottom, #000 calc(100% - 120px), transparent calc(100% - 6px));
}

.card.intro .more {
  display: none;
  position: absolute;
  left: 50%;
  bottom: 2px;
  z-index: 2;
  transform: translateX(-50%);
  padding: 9px 20px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 8px 24px rgba(0, 0, 0, 0.45);
  color: var(--fg);
  font: 700 12px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.card.intro .more:hover {
  background: rgba(255, 255, 255, 0.2);
}

.card.intro.cut .more {
  display: block;
}

.card.intro.open {
  display: block;
}

.card.small .card-actions {
  justify-content: center;
}

.btn {
  padding: 10px 22px;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  background: #8ab4f8;
  color: #202124;
}

.btn.primary:hover {
  background: #aecbfa;
}

.btn.ghost {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hint-key {
  opacity: 0.6;
  font-weight: 500;
}

.best-line {
  margin-top: 14px;
  font-size: 12px;
}

.best-line b {
  font-family: var(--mono);
  color: var(--red);
  font-weight: 700;
}

.big-score {
  margin: 4px 0 6px;
  font: 800 clamp(34px, 8vw, 52px) / 1.1 var(--mono);
  color: var(--red);
  text-shadow: 0 0 20px rgba(255, 43, 61, 0.6);
}

.record {
  display: inline-block;
  margin-bottom: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 43, 61, 0.15);
  color: var(--red);
  font: 700 11px var(--mono);
  letter-spacing: 0.12em;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 10px 0;
}

.stats-grid div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

.stats-grid b {
  font-family: var(--mono);
  text-align: right;
}

.loading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ---------- leaderboard on the game-over card ---------- */

.muted {
  color: var(--muted);
  font-size: 13px;
}

.server-result {
  margin: 8px 0;
}

.rank-line {
  color: #ffd23d;
  font: 700 14px var(--mono);
}

.mini-board {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.mini-board li {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 8px;
  padding: 3px 6px;
  border-radius: 4px;
}

.mini-board li.me {
  background: rgba(255, 210, 61, 0.12);
}

.mini-board li span {
  color: var(--muted);
  font-family: var(--mono);
}

.mini-board li b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-board li i {
  font: 700 13px var(--mono);
  font-style: normal;
  color: var(--red);
}

/* ---------- lobby ---------- */

#lobby {
  position: fixed;
  inset: 0;
  overflow-y: auto;
  background:
    radial-gradient(ellipse 90% 50% at 50% 100%, rgba(255, 43, 61, 0.22), transparent 70%),
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(34, 230, 255, 0.1), transparent 70%),
    var(--bg);
}

.lobby {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: calc(28px + var(--safe-top)) 16px calc(80px + var(--safe-bottom));
}

.lobby-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.lobby-head .logo svg {
  display: block;
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 6px 18px rgba(229, 56, 62, 0.45));
}

.lobby-head h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lobby-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.game-list {
  display: grid;
  gap: 12px;
}

.game-card {
  --card-accent: var(--accent);
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 12px 40px rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.game-card:not(.ghost):hover,
.game-card:not(.ghost):focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--card-accent), 0 16px 50px rgba(0, 0, 0, 0.45);
  outline: none;
}

.game-card .pix {
  flex: none;
  width: 120px;
}

.game-card .meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.game-card .title {
  color: var(--fg);
  font-size: 18px;
  font-weight: 600;
}

.game-card .tagline {
  font-size: 13px;
  line-height: 1.4;
}

.game-card .best {
  margin-top: 4px;
  font-size: 12px;
}

.game-card .best b {
  font-family: var(--mono);
  color: var(--red);
}

.game-card .leader {
  font-size: 12px;
  color: #ffd23d;
}

.game-card .leader:empty {
  display: none;
}

.lobby-head .online {
  margin-left: auto;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(61, 255, 139, 0.12);
  color: #3dff8b;
  font: 600 12px var(--mono);
  white-space: nowrap;
}

.game-card .play {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card-accent);
  color: #120a1c;
  font-size: 13px;
  font-weight: 700;
}

.game-card.ghost {
  justify-content: center;
  cursor: default;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  text-align: center;
}

.game-card.ghost .title {
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Релиз-тамагочи's home card (src/release/index.js; its screen has src/release/style.css) ---------- */

.home-slot {
  margin-bottom: 12px;
}

.home-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(229, 56, 62, 0.22), rgba(32, 33, 36, 0.92) 55%);
  box-shadow: inset 0 0 0 1px rgba(255, 43, 61, 0.35), 0 12px 40px rgba(0, 0, 0, 0.35);
  color: var(--muted);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.home-card.alarm {
  box-shadow: inset 0 0 0 2px var(--red), 0 12px 40px rgba(255, 43, 61, 0.25);
}

.home-card.off {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  cursor: default;
}

.home-pet {
  flex: none;
  width: 48px;
  image-rendering: pixelated;
}

.home-pet-empty {
  flex: none;
  width: 48px;
  font-size: 30px;
  text-align: center;
}

.home-card .meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-card .title {
  overflow: hidden;
  color: var(--fg);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-card .title b {
  color: var(--red);
  font: 700 13px var(--mono);
}

.home-card .tagline {
  font-size: 12px;
  line-height: 1.35;
}

.home-bars {
  display: grid;
  flex: none;
  gap: 4px;
  width: 44px;
}

.home-bars i {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.home-bars u {
  display: block;
  height: 100%;
  background: #3adc7a;
}

.home-bars i.low u {
  background: var(--red);
}

.home-purse {
  flex: none;
  color: #ffd23d;
  font: 700 13px var(--mono);
  white-space: nowrap;
}

.home-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font: 800 13px var(--mono);
  box-shadow: 0 0 0 3px var(--bg);
}

/* under the card: colleagues waiting for a review, what a colleague just did */
.home-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 8px 10px 8px 14px;
  border-radius: 12px;
  background: rgba(138, 180, 248, 0.08);
  box-shadow: inset 0 0 0 1px rgba(138, 180, 248, 0.25);
  color: var(--muted);
  font-size: 12px;
}

.home-row span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.home-row b {
  color: var(--fg);
}

.home-row button {
  flex: none;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  background: #8ab4f8;
  color: #202124;
  font: 700 12px system-ui, sans-serif;
  cursor: pointer;
}

.home-sprint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  padding: 7px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.home-sprint b {
  color: #ffd23d;
  font-family: var(--mono);
}

.home-sprint i {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.home-sprint u {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff2b3d, #ffd23d);
}

.home-sprint.vote {
  justify-content: center;
  color: #ffd23d;
  font-weight: 600;
}

.home-note {
  margin-top: 6px;
  color: #ffd23d;
  font: 700 12px var(--mono);
  text-align: center;
}

body.in-release #mute {
  display: none;
}

/* the game-over card: what the run paid the release */
.bonus-line {
  margin-top: 6px;
  color: #ffd23d;
  font: 700 13px var(--mono);
}

/* ---------- FIRST NEWS: the lobby's ticker (lobby/news.js) ---------- */

.news {
  display: flex;
  margin: -8px 0 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
  font-size: 13px;
}

.news-tag {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 10px;
  background: var(--red);
  color: #fff;
  font: 800 11px var(--mono);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.news-window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

/* the lines twice in a row: moving by half the track loops without a seam */
.news-track {
  display: flex;
  width: max-content;
  padding: 8px 0;
  white-space: nowrap;
  animation: hub-news var(--news-s, 120s) linear infinite;
}

.news-track > span {
  display: flex;
  align-items: center;
}

.news:hover .news-track {
  animation-play-state: paused;
}

.news-track span span {
  color: var(--fg);
}

.news-track i {
  margin: 0 14px;
  padding: 0 5px;
  border-radius: 4px;
  background: #e5383e;
  color: #fff;
  font: 800 10px/16px var(--mono);
  font-style: normal;
}

@keyframes hub-news {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-track {
    animation: none;
  }
  .news-window {
    overflow-x: auto;
  }
}

/* ---------- achievements (core/achievements.js): the lobby's shelf, and new ones on the game-over card ---------- */

.ach {
  margin-top: 28px;
}

.ach summary {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  list-style: none;
  cursor: pointer;
}

.ach summary::-webkit-details-marker {
  display: none;
}

.ach[open] summary {
  margin-bottom: 10px;
}

.ach h2 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  color: var(--fg);
  font-size: 18px;
  font-weight: 600;
}

.ach h2::after {
  content: '▾';
  margin-left: auto;
  color: var(--muted);
  font-size: 14px;
  transition: transform 0.2s;
}

.ach[open] h2::after {
  transform: rotate(180deg);
}

.ach-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 20px;
  line-height: 1;
}

.ach-row span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  filter: grayscale(1);
  opacity: 0.4;
}

.ach-row span.on {
  background: rgba(255, 210, 61, 0.16);
  filter: none;
  opacity: 1;
}

.ach h2 span {
  color: var(--muted);
  font: 600 12px var(--mono);
}

.ach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.ach-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-content: start;
  gap: 2px 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.ach-item > :not(.ach-icon) {
  grid-column: 2;
}

.ach-icon {
  grid-row: 1 / span 4;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 210, 61, 0.14);
  font-size: 19px;
}

.ach-item b {
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}

.ach-game {
  color: #ffd23d;
  font: 600 10px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ach-item.off {
  background: rgba(255, 255, 255, 0.03);
}

.ach-item.off .ach-icon {
  background: rgba(255, 255, 255, 0.06);
  filter: grayscale(1);
  opacity: 0.55;
}

.ach-item.off b {
  color: var(--muted);
}

.ach-bar {
  height: 4px;
  margin-top: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.ach-bar i {
  display: block;
  height: 100%;
  background: #ffd23d;
}

.ach-count {
  font: 600 11px var(--mono);
}

.ach-new {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.ach-new .ach-item {
  background: rgba(255, 210, 61, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 210, 61, 0.35);
  animation: hub-ach 0.5s ease-out both;
}

.ach-label {
  color: #ffd23d;
  font: 700 11px var(--mono);
  letter-spacing: 0.12em;
}

.ach-label.muted-label {
  color: var(--muted);
}

@keyframes hub-ach {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
}

.share-note {
  margin-top: 8px;
}

.share-note:empty {
  display: none;
}

/* ---------- "Реклама" billboards (core/billboard.js) ---------- */

.bb {
  position: relative;
  margin: 16px 0;
  padding: 18px 16px 16px;
  border-radius: 10px;
  background: var(--ad-bg, linear-gradient(135deg, #ffd23d, #ff8a1a));
  color: var(--ad-fg, #2a1400);
  text-align: center;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* on the hub's pause card */
.card.small:has(.bb) {
  width: min(420px, 100%);
}

.card .bb {
  margin: 0 0 18px;
}

.bb-art {
  font-size: 38px;
  line-height: 1.1;
}

.bb-tag {
  position: absolute;
  top: 6px;
  left: 8px;
  padding: 1px 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bb-title {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 800;
}

.bb-text {
  margin: 6px 0 12px;
  font-size: 14px;
}

.bb-cta {
  padding: 8px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--ad-fg, #2a1400);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- global chrome ---------- */

#mute {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: calc(12px + var(--safe-bottom));
  z-index: 10;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  font-size: 18px;
  cursor: pointer;
}

/* the pause button: only while a run is on (session.js sets body.in-play), left of the mute button. A game moves
   it where its own controls leave room: body[data-game='<id>'].in-play #pause in its style.css */
#pause {
  position: fixed;
  right: calc(max(12px, env(safe-area-inset-right)) + 48px);
  bottom: calc(12px + var(--safe-bottom));
  z-index: 10;
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
}

#pause svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.in-play #pause {
  display: grid;
}

#file-warning {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: var(--bg);
}

.touch .hint-key,
.touch .keys,
.touch .kbd-only {
  display: none;
}

.touch .touch-keys {
  display: block;
}

@media (max-height: 560px) {
  .card.intro:not(.open) > .pix {
    display: none;
  }
}

@media (max-width: 640px) {
  .card {
    padding: 22px 20px;
    font-size: 14px;
  }
  .card h1 {
    font-size: 22px;
  }
  .pix:not(.shot) {
    width: 140px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .game-card {
    flex-wrap: wrap;
  }
  .game-card .pix {
    width: 96px;
  }
  .game-card .play {
    display: none;
  }
}
