:root {
  color-scheme: light;
  --ink: #181818;
  --paper: #f5f2e9;
  --grass: #397a48;
  --sky: #8fcde8;
  --sun: #f4b63f;
  --danger: #b44336;
  --violet: #7866d8;
  --teal: #2ba6a4;
  --coral: #f07855;
  --rose: #cf6b7d;
  --leaf: #6fba68;
}

* {
  box-sizing: border-box;
}

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

body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 182, 63, 0.3), transparent 24%),
    linear-gradient(180deg, #a9dded 0%, #dceccf 72%, #78a761 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.directory-page {
  align-items: start;
  overflow: auto;
}

.directory-shell {
  width: min(100%, 1060px);
  padding: 16px 0 32px;
}

.directory-header {
  display: flex;
  align-items: end;
  justify-content: center;
  margin-bottom: 18px;
}

.directory-header h1 {
  width: 100%;
  margin: 0;
  color: #202020;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  text-align: center;
}

.site-version {
  color: rgba(24, 24, 24, 0.62);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.directory-footer {
  margin-top: 24px;
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  font-size: 13px;
  font-weight: 900;
}

.site-links a,
.info-card a {
  color: #202020;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.site-version {
  margin-top: 14px;
}

.info-page {
  display: block;
  overflow: auto;
}

.info-shell {
  width: min(100%, 780px);
  margin: 0 auto;
  padding: 12px 0 36px;
}

.info-header {
  padding: 28px 0 14px;
}

.info-header h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 0.98;
}

.info-header p {
  max-width: 680px;
  margin: 0;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 750;
  line-height: 1.5;
}

.info-kicker {
  margin-bottom: 8px !important;
  color: rgba(24, 24, 24, 0.68);
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.info-card {
  margin-top: 16px;
  border: 3px solid #202020;
  border-radius: 8px;
  padding: clamp(18px, 4vw, 28px);
  background: rgba(245, 242, 233, 0.94);
  box-shadow: 4px 4px 0 #202020;
}

.info-card h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.1;
}

.info-card p,
.info-card li {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
}

.info-card p {
  margin: 10px 0 0;
}

.info-card ul {
  margin: 10px 0 0;
  padding-left: 22px;
}

.info-shell > .site-links {
  margin-top: 28px;
}

.contact-notice {
  border-color: var(--danger);
}

.game-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(128px, 16vh);
  gap: 16px;
}

.game-tile {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 128px;
  overflow: hidden;
  border: 4px solid #202020;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(245, 242, 233, 0.92), rgba(214, 235, 201, 0.88)),
    #f5f2e9;
  box-shadow: 4px 4px 0 #202020;
  color: #202020;
  text-decoration: none;
}

.game-tile--active {
  background: #8fcde8;
}

.game-tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-tile::after {
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  content: "";
}

.game-tile:not(.game-tile--active)::after {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.34));
}

.game-tile span {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 14px 16px;
  color: #fffdf6;
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.48);
}

.game-tile:not(.game-tile--active) span {
  color: #fffdf6;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.42);
}

.game-tile--active:hover,
.game-tile--active:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #202020;
  outline: none;
}

.game-tile-preview {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 78% 18%, rgba(244, 182, 63, 0.85) 0 38px, transparent 39px),
    linear-gradient(180deg, #8fcde8 0%, #d6ebc9 72%, #78a761 100%);
}

.game-tile-preview--runner {
  overflow: hidden;
  background:
    radial-gradient(circle at 83% 16%, rgba(244, 182, 63, 0.92) 0 38px, transparent 39px),
    linear-gradient(180deg, #8fcde8 0%, #cfe7cf 70%, #397a48 71% 100%);
}

.game-tile-cloud {
  position: absolute;
  width: 88px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.72);
  box-shadow:
    24px -10px 0 rgba(255, 253, 246, 0.72),
    52px 0 0 rgba(255, 253, 246, 0.72);
}

.game-tile-cloud--one {
  top: 16%;
  left: 18%;
}

.game-tile-cloud--two {
  top: 26%;
  right: 24%;
  transform: scale(0.86);
}

.game-tile-plane {
  position: absolute;
  top: 26%;
  left: 13%;
  width: 86px;
  height: 18px;
  border: 3px solid #202020;
  border-radius: 60% 28% 28% 60%;
  background: #fffdf6;
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 rgba(32, 32, 32, 0.3);
}

.game-tile-plane::before,
.game-tile-plane::after {
  position: absolute;
  left: 32px;
  width: 34px;
  height: 12px;
  border: 3px solid #202020;
  background: #9ed9e4;
  content: "";
}

.game-tile-plane::before {
  top: -15px;
  border-radius: 14px 14px 4px 4px;
  transform: rotate(-9deg);
}

.game-tile-plane::after {
  bottom: -15px;
  border-radius: 4px 4px 14px 14px;
  transform: rotate(10deg);
}

.game-tile-birds {
  position: absolute;
  top: 38%;
  right: 20%;
  width: 112px;
  height: 44px;
}

.game-tile-birds::before,
.game-tile-birds::after {
  position: absolute;
  width: 24px;
  height: 12px;
  border-top: 3px solid #202020;
  border-radius: 50%;
  content: "";
  box-shadow:
    28px -10px 0 -1px #202020,
    56px 4px 0 -1px #202020,
    84px -7px 0 -1px #202020;
}

.game-tile-birds::after {
  left: 11px;
  top: 16px;
  transform: scale(0.75);
  opacity: 0.72;
}

.game-tile-ground {
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background:
    repeating-linear-gradient(90deg, rgba(32, 32, 32, 0.16) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #4a8b45, #2f6634);
}

.game-tile-runner-face {
  position: absolute;
  left: 22%;
  bottom: 35%;
  z-index: 2;
  width: 54px;
  height: 54px;
  background: url("/stick-runner-smiling-head-v2.png") center / contain no-repeat;
  filter: drop-shadow(2px 3px 0 rgba(32, 32, 32, 0.28));
}

.game-tile-runner-body {
  position: absolute;
  left: calc(22% + 25px);
  bottom: 22%;
  z-index: 1;
  width: 4px;
  height: 44px;
  border-radius: 999px;
  background: #202020;
}

.game-tile-runner-arm,
.game-tile-runner-leg {
  position: absolute;
  z-index: 1;
  height: 4px;
  border-radius: 999px;
  background: #202020;
  transform-origin: 0 50%;
}

.game-tile-runner-arm {
  left: calc(22% + 27px);
  bottom: 35%;
  width: 40px;
}

.game-tile-runner-arm--front {
  transform: rotate(-31deg);
}

.game-tile-runner-arm--back {
  width: 34px;
  opacity: 0.72;
  transform: rotate(28deg);
}

.game-tile-runner-leg {
  left: calc(22% + 27px);
  bottom: 22%;
  width: 42px;
}

.game-tile-runner-leg--front {
  transform: rotate(42deg);
}

.game-tile-runner-leg--back {
  width: 36px;
  opacity: 0.72;
  transform: rotate(132deg);
}

.game-tile-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: auto;
  height: 58%;
  max-height: 124px;
  aspect-ratio: 1;
  border: 4px solid #202020;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(245, 242, 233, 0.94);
  box-shadow: 5px 5px 0 #202020;
  transform: translateY(-8%);
}

.game-tile-board b {
  display: grid;
  place-items: center;
  border-right: 3px solid #202020;
  border-bottom: 3px solid #202020;
  color: #202020;
  font-size: clamp(18px, 3vw, 34px);
  line-height: 1;
}

.game-tile-board b:nth-child(3n) {
  border-right: 0;
}

.game-tile-board b:nth-child(n + 7) {
  border-bottom: 0;
}

.game-tile-preview--space {
  overflow: hidden;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 253, 246, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 34%, rgba(255, 253, 246, 0.8) 0 1px, transparent 2px),
    radial-gradient(circle at 54% 74%, rgba(255, 253, 246, 0.7) 0 1px, transparent 2px),
    linear-gradient(140deg, #10172f 0%, #26134a 52%, #0c1833 100%);
}

.game-tile-preview--wiggle {
  background:
    linear-gradient(90deg, rgba(32, 32, 32, 0.13) 1px, transparent 1px),
    linear-gradient(0deg, rgba(32, 32, 32, 0.13) 1px, transparent 1px),
    radial-gradient(circle at 80% 18%, rgba(244, 182, 63, 0.85) 0 36px, transparent 37px),
    linear-gradient(180deg, #9bddc8 0%, #d6ebc9 54%, #6f9b58 100%);
  background-size: 32px 32px, 32px 32px, auto, auto;
}

.game-tile-preview--fishing {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 16%, rgba(244, 182, 63, 0.9) 0 36px, transparent 37px),
    linear-gradient(180deg, #8fcde8 0 38%, #2ba6a4 39%, #1d486f 100%);
}

.game-tile-preview--quick {
  overflow: hidden;
}

.game-tile-preview--bubble {
  background:
    radial-gradient(circle at 82% 18%, rgba(244, 182, 63, 0.84) 0 36px, transparent 37px),
    linear-gradient(180deg, #8fcde8 0%, #9bddc8 44%, #2ba6a4 100%);
}

.game-tile-preview--pizza {
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 253, 246, 0.7) 0 30px, transparent 31px),
    linear-gradient(145deg, #f07855 0%, #f4b63f 54%, #8a6242 100%);
}

.game-tile-preview--cloud {
  background:
    radial-gradient(circle at 78% 20%, rgba(244, 182, 63, 0.9) 0 36px, transparent 37px),
    linear-gradient(180deg, #8fcde8 0%, #d6ebc9 100%);
}

.game-tile-preview--cookie {
  background:
    linear-gradient(145deg, #f5d07a 0%, #d8995f 54%, #8a6242 100%);
}

.game-tile-preview--garden {
  background:
    radial-gradient(circle at 80% 18%, rgba(244, 182, 63, 0.9) 0 36px, transparent 37px),
    linear-gradient(180deg, #8fcde8 0%, #d6ebc9 42%, #5b8c47 43% 100%);
}

.game-tile-preview--frog {
  background:
    linear-gradient(180deg, #8fcde8 0%, #9bddc8 38%, #2ba6a4 39% 100%);
}

.game-tile-preview--rings {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 248, 239, 0.34) 0 42px, transparent 43px),
    linear-gradient(135deg, #f39a7c 0%, #f5cf62 48%, #71c78a 100%);
}

.game-tile-preview--blocks {
  background:
    linear-gradient(90deg, rgba(255, 253, 246, 0.16) 0 8px, transparent 8px 40px),
    linear-gradient(150deg, #77c7e8 0%, #7866d8 58%, #2b2f6f 100%);
}

.game-tile-preview--waves {
  background:
    radial-gradient(circle at 16% 22%, rgba(255, 253, 246, 0.74) 0 28px, transparent 29px),
    linear-gradient(145deg, #50b9b6 0%, #9bddc8 50%, #f7d86e 100%);
}

.game-tile-preview--stars {
  background:
    radial-gradient(circle at 80% 24%, rgba(244, 182, 63, 0.9) 0 36px, transparent 37px),
    linear-gradient(135deg, #29366f 0%, #6551a8 56%, #c95c83 100%);
}

.game-tile-preview--confetti {
  background:
    linear-gradient(135deg, rgba(255, 253, 246, 0.17) 0 25%, transparent 25% 50%, rgba(255, 253, 246, 0.17) 50% 75%, transparent 75%),
    linear-gradient(135deg, #ffcc66 0%, #f07855 48%, #cf6b7d 100%);
  background-size: auto, 100% 100%;
}

.tile-ring,
.tile-block,
.tile-wave,
.tile-star,
.tile-confetti,
.game-tile-worm,
.game-tile-worm-head,
.game-tile-bug,
.game-tile-dock,
.game-tile-rod,
.game-tile-line,
.game-tile-bobber,
.game-tile-fish,
.quick-bubble,
.quick-pizza,
.quick-topping,
.quick-cloud,
.quick-hopper,
.quick-cookie,
.quick-sprout,
.quick-weed,
.quick-frog,
.quick-bug {
  position: absolute;
  display: block;
}

.quick-bubble {
  width: 72px;
  height: 72px;
  border: 4px solid #202020;
  border-radius: 50%;
  background: rgba(185, 228, 255, 0.78);
  box-shadow: 4px 4px 0 rgba(32, 32, 32, 0.3);
}

.quick-bubble::after {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: #f4b63f;
  content: "";
}

.quick-bubble--one {
  left: 18%;
  top: 22%;
}

.quick-bubble--two {
  right: 18%;
  top: 36%;
  transform: scale(0.72);
}

.quick-bubble--three {
  left: 46%;
  bottom: 18%;
  transform: scale(0.56);
}

.quick-pizza {
  left: 30%;
  bottom: 18%;
  width: 150px;
  height: 86px;
  border: 4px solid #202020;
  border-radius: 150px 150px 18px 18px;
  background:
    radial-gradient(circle at 34% 54%, #b44336 0 8px, transparent 9px),
    radial-gradient(circle at 62% 42%, #b44336 0 8px, transparent 9px),
    #f4b63f;
  box-shadow: 5px 5px 0 rgba(32, 32, 32, 0.35);
}

.quick-topping {
  width: 48px;
  height: 34px;
  border: 4px solid #202020;
  border-radius: 10px;
  background: #f07855;
  box-shadow: 4px 4px 0 rgba(32, 32, 32, 0.3);
}

.quick-topping--one {
  left: 20%;
  top: 22%;
  transform: rotate(-12deg);
}

.quick-topping--two {
  right: 24%;
  top: 18%;
  background: #7866d8;
  transform: rotate(16deg);
}

.quick-cloud {
  width: 132px;
  height: 44px;
  border: 4px solid #202020;
  border-radius: 999px;
  background: #fffdf6;
  box-shadow: 5px 5px 0 rgba(32, 32, 32, 0.26);
}

.quick-cloud--one {
  left: 16%;
  bottom: 28%;
}

.quick-cloud--two {
  right: 18%;
  top: 32%;
  transform: scale(0.78);
}

.quick-hopper {
  left: 42%;
  top: 28%;
  width: 46px;
  height: 46px;
  border: 4px solid #202020;
  border-radius: 50%;
  background: #f07855;
  box-shadow: 4px 4px 0 rgba(32, 32, 32, 0.3);
}

.quick-cookie {
  left: 36%;
  width: 132px;
  height: 38px;
  border: 4px solid #202020;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 45%, #5b3826 0 5px, transparent 6px),
    radial-gradient(circle at 58% 34%, #5b3826 0 5px, transparent 6px),
    #d8995f;
  box-shadow: 5px 5px 0 rgba(32, 32, 32, 0.34);
}

.quick-cookie--one {
  bottom: 22%;
}

.quick-cookie--two {
  bottom: 36%;
  transform: translateX(18px);
}

.quick-cookie--three {
  bottom: 50%;
  transform: translateX(-14px);
}

.quick-sprout {
  width: 66px;
  height: 86px;
}

.quick-sprout::before,
.quick-sprout::after {
  position: absolute;
  bottom: 0;
  width: 34px;
  height: 68px;
  border: 4px solid #202020;
  border-radius: 50%;
  background: #6fba68;
  content: "";
}

.quick-sprout::before {
  left: 0;
  transform: rotate(-24deg);
}

.quick-sprout::after {
  right: 0;
  transform: rotate(24deg);
}

.quick-sprout--one {
  left: 22%;
  bottom: 18%;
}

.quick-sprout--two {
  right: 26%;
  bottom: 24%;
  transform: scale(0.72);
}

.quick-weed {
  left: 50%;
  bottom: 22%;
  width: 58px;
  height: 64px;
  background: #b44336;
  clip-path: polygon(50% 0, 62% 44%, 100% 28%, 72% 66%, 86% 100%, 50% 76%, 14% 100%, 28% 66%, 0 28%, 38% 44%);
  filter: drop-shadow(4px 4px 0 rgba(32, 32, 32, 0.34));
}

.quick-frog {
  left: 34%;
  bottom: 18%;
  width: 132px;
  height: 82px;
  border: 4px solid #202020;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 36%, #202020 0 4px, transparent 5px),
    radial-gradient(circle at 66% 36%, #202020 0 4px, transparent 5px),
    #6fba68;
  box-shadow: 5px 5px 0 rgba(32, 32, 32, 0.34);
}

.quick-bug {
  width: 36px;
  height: 28px;
  border: 3px solid #202020;
  border-radius: 50%;
  background: #7866d8;
  box-shadow: 3px 3px 0 rgba(32, 32, 32, 0.3);
}

.quick-bug--one {
  left: 22%;
  top: 24%;
}

.quick-bug--two {
  right: 24%;
  top: 34%;
  background: #f4b63f;
}

.game-tile-dock {
  left: 0;
  top: 32%;
  width: 44%;
  height: 24%;
  border: solid #202020;
  border-width: 4px 4px 4px 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 34px, rgba(32, 32, 32, 0.32) 34px 38px),
    #8a6242;
  box-shadow: 5px 5px 0 rgba(32, 32, 32, 0.34);
}

.game-tile-rod {
  left: 25%;
  top: 24%;
  width: 38%;
  height: 5px;
  border-radius: 999px;
  background: #202020;
  transform: rotate(-24deg);
  transform-origin: 0 50%;
}

.game-tile-line {
  left: 55%;
  top: 27%;
  width: 2px;
  height: 38%;
  background: rgba(255, 253, 246, 0.92);
  transform: rotate(9deg);
  transform-origin: 50% 0;
}

.game-tile-bobber {
  left: 57%;
  top: 62%;
  width: 24px;
  height: 24px;
  border: 3px solid #202020;
  border-radius: 50%;
  background:
    linear-gradient(180deg, #f07855 0 50%, #fffdf6 51% 100%);
  box-shadow: 3px 3px 0 rgba(32, 32, 32, 0.32);
}

.game-tile-fish {
  width: 78px;
  height: 38px;
  border: 4px solid #202020;
  border-radius: 50%;
  background:
    radial-gradient(circle at 68% 36%, #202020 0 3px, transparent 4px),
    #f4b63f;
  box-shadow: 4px 4px 0 rgba(32, 32, 32, 0.32);
}

.game-tile-fish::before {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 28px;
  height: 28px;
  background: inherit;
  clip-path: polygon(100% 50%, 0 0, 24% 50%, 0 100%);
  content: "";
}

.game-tile-fish--one {
  right: 14%;
  bottom: 18%;
  transform: rotate(-8deg);
}

.game-tile-fish--two {
  right: 34%;
  bottom: 36%;
  background:
    radial-gradient(circle at 68% 36%, #202020 0 3px, transparent 4px),
    #7866d8;
  transform: scale(0.62) rotate(14deg);
}

.game-tile-worm {
  width: 68px;
  height: 24px;
  border: 4px solid #202020;
  border-radius: 999px;
  background: #cf6b7d;
  box-shadow: 4px 4px 0 rgba(32, 32, 32, 0.35);
}

.game-tile-worm--one {
  left: 20%;
  top: 42%;
}

.game-tile-worm--two {
  left: 31%;
  top: 42%;
  transform: rotate(26deg);
}

.game-tile-worm--three {
  left: 42%;
  top: 31%;
}

.game-tile-worm-head {
  left: 54%;
  top: 25%;
  width: 42px;
  height: 42px;
  border: 4px solid #202020;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 36%, #202020 0 3px, transparent 4px),
    radial-gradient(circle at 63% 36%, #202020 0 3px, transparent 4px),
    #f07855;
  box-shadow: 4px 4px 0 rgba(32, 32, 32, 0.35);
}

.game-tile-bug {
  width: 34px;
  height: 28px;
  border: 3px solid #202020;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 34%, #202020 0 2px, transparent 3px),
    radial-gradient(circle at 65% 34%, #202020 0 2px, transparent 3px),
    #7866d8;
  box-shadow: 3px 3px 0 rgba(32, 32, 32, 0.32);
}

.game-tile-bug::before,
.game-tile-bug::after {
  position: absolute;
  top: 4px;
  width: 15px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.68);
  content: "";
}

.game-tile-bug::before {
  left: -7px;
}

.game-tile-bug::after {
  right: -7px;
}

.game-tile-bug--one {
  right: 22%;
  bottom: 30%;
  transform: rotate(-12deg);
}

.game-tile-bug--two {
  right: 38%;
  top: 56%;
  background:
    radial-gradient(circle at 35% 34%, #202020 0 2px, transparent 3px),
    radial-gradient(circle at 65% 34%, #202020 0 2px, transparent 3px),
    #b44336;
  transform: scale(0.72) rotate(18deg);
}

.tile-ring {
  border: 5px solid #202020;
  border-radius: 50%;
  background: rgba(255, 253, 246, 0.32);
  box-shadow: 4px 4px 0 rgba(32, 32, 32, 0.3);
}

.tile-ring--one {
  left: 20%;
  top: 18%;
  width: 86px;
  height: 86px;
}

.tile-ring--two {
  left: 42%;
  top: 34%;
  width: 58px;
  height: 58px;
}

.tile-ring--three {
  right: 18%;
  top: 20%;
  width: 104px;
  height: 104px;
}

.tile-block {
  width: 88px;
  height: 72px;
  border: 4px solid #202020;
  border-radius: 7px;
  box-shadow: 5px 5px 0 rgba(32, 32, 32, 0.38);
}

.tile-block--one {
  left: 18%;
  top: 22%;
  background: var(--sun);
  transform: rotate(-10deg);
}

.tile-block--two {
  left: 48%;
  top: 24%;
  background: #fffdf6;
  transform: rotate(8deg) scale(0.78);
}

.tile-block--three {
  right: 18%;
  bottom: 18%;
  background: var(--coral);
  transform: rotate(-16deg) scale(0.64);
}

.tile-wave {
  left: 12%;
  width: 76%;
  height: 36px;
  border: 5px solid #202020;
  border-color: #202020 transparent transparent transparent;
  border-radius: 50%;
}

.tile-wave--one {
  top: 30%;
}

.tile-wave--two {
  top: 45%;
  transform: scaleX(0.8);
}

.tile-wave--three {
  top: 60%;
  transform: scaleX(0.62);
}

.tile-star {
  width: 82px;
  height: 82px;
  background: var(--sun);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 79% 92%, 50% 70%, 21% 92%, 32% 56%, 2% 35%, 39% 35%);
  filter: drop-shadow(4px 4px 0 rgba(32, 32, 32, 0.38));
}

.tile-star--one {
  left: 20%;
  top: 22%;
}

.tile-star--two {
  right: 22%;
  top: 30%;
  transform: scale(0.62) rotate(16deg);
}

.tile-star--three {
  left: 52%;
  bottom: 14%;
  transform: scale(0.46) rotate(-12deg);
}

.tile-confetti {
  width: 72px;
  height: 22px;
  border: 4px solid #202020;
  border-radius: 999px;
  background: #fffdf6;
  box-shadow: 4px 4px 0 rgba(32, 32, 32, 0.28);
}

.tile-confetti--one {
  left: 16%;
  top: 20%;
  transform: rotate(-20deg);
}

.tile-confetti--two {
  right: 20%;
  top: 24%;
  background: var(--teal);
  transform: rotate(18deg) scale(0.78);
}

.tile-confetti--three {
  left: 42%;
  bottom: 26%;
  background: var(--sun);
  transform: rotate(8deg) scale(0.68);
}

.tile-confetti--four {
  right: 32%;
  bottom: 18%;
  background: var(--leaf);
  transform: rotate(-28deg) scale(0.54);
}

.game-tile-galaxy {
  width: min(54%, 230px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 253, 246, 0.98) 0 7%, transparent 8%),
    conic-gradient(from 15deg, transparent, rgba(143, 205, 232, 0.62), transparent, rgba(244, 182, 63, 0.54), transparent);
  filter: blur(0.2px) drop-shadow(0 0 18px rgba(143, 205, 232, 0.36));
  opacity: 0.95;
}

.game-tile-ship-face {
  position: absolute;
  top: 50%;
  left: calc(50% + 44px);
  z-index: 3;
  width: 38px;
  height: 38px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(2px 3px 0 rgba(32, 32, 32, 0.35));
}

.game-tile-ship {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 112px;
  height: 62px;
  transform: translate(-50%, -50%);
}

.game-tile-ship::before {
  position: absolute;
  left: 18px;
  top: 19px;
  width: 72px;
  height: 24px;
  border: 4px solid #202020;
  border-radius: 48% 52% 52% 48%;
  background: #f5f2e9;
  box-shadow: 4px 4px 0 rgba(32, 32, 32, 0.34);
  clip-path: polygon(0 50%, 13% 14%, 82% 0, 100% 50%, 82% 100%, 13% 86%);
  content: "";
}

.game-tile-ship::after {
  position: absolute;
  left: 13px;
  top: 0;
  width: 58px;
  height: 62px;
  border: 4px solid #202020;
  background:
    linear-gradient(90deg, transparent 0 36%, #f5f2e9 37% 63%, transparent 64%),
    #9ed9e4;
  clip-path: polygon(66% 50%, 0 0, 25% 50%, 0 100%);
  content: "";
}

.game-tile-laser {
  position: absolute;
  top: 50%;
  left: calc(50% + 66px);
  z-index: 1;
  width: 124px;
  height: 6px;
  border-radius: 999px;
  background: #fff7b0;
  box-shadow:
    0 0 10px #f4b63f,
    0 0 18px rgba(244, 182, 63, 0.86);
}

.game-tile-asteroid {
  position: absolute;
  border: 3px solid rgba(32, 32, 32, 0.9);
  border-radius: 46% 54% 42% 58%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 253, 246, 0.3), transparent 18px),
    #8b7a68;
  box-shadow: 3px 3px 0 rgba(32, 32, 32, 0.46);
}

.game-tile-asteroid--one {
  top: 41%;
  right: 17%;
  width: 50px;
  height: 42px;
}

.game-tile-asteroid--two {
  left: 18%;
  bottom: 25%;
  width: 34px;
  height: 42px;
}

.game-tile-asteroid--three {
  right: 29%;
  bottom: 17%;
  width: 28px;
  height: 24px;
}

.directory-robot {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 116px;
  height: 176px;
  pointer-events: none;
  transform: translate(calc(100vw + 150px), calc(100vh + 150px)) rotate(-10deg);
  transform-origin: 50% 60%;
  will-change: transform;
}

.directory-robot__head {
  position: absolute;
  top: 0;
  left: 18px;
  z-index: 3;
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 50%;
  filter: drop-shadow(3px 4px 0 rgba(32, 32, 32, 0.28));
}

.directory-robot__face {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.08s linear;
}

.directory-robot__face--smile {
  opacity: 1;
}

.directory-robot.is-bumping .directory-robot__face--smile {
  opacity: 0;
}

.directory-robot.is-bumping .directory-robot__face--doh {
  opacity: 1;
}

.directory-robot__bubble {
  position: absolute;
  left: 80px;
  bottom: 116px;
  z-index: 4;
  width: 260px;
  border: 4px solid #202020;
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(255, 253, 246, 0.96);
  box-shadow: 4px 4px 0 rgba(32, 32, 32, 0.32);
  color: #202020;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.15;
  opacity: 0;
  transform: translate(8px, 8px) scale(0.92);
  transform-origin: 0 100%;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.directory-robot__bubble::after {
  position: absolute;
  left: 16px;
  bottom: -18px;
  width: 24px;
  height: 24px;
  border-right: 4px solid #202020;
  border-bottom: 4px solid #202020;
  background: rgba(255, 253, 246, 0.96);
  content: "";
  transform: rotate(45deg);
}

.directory-robot.is-talking .directory-robot__bubble {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.directory-robot__torso {
  position: absolute;
  top: 70px;
  left: 31px;
  z-index: 2;
  width: 54px;
  height: 66px;
  border: 4px solid #202020;
  border-radius: 16px 16px 12px 12px;
  background:
    linear-gradient(135deg, #f5f2e9 0 42%, #9ed9e4 43% 100%),
    #f5f2e9;
  box-shadow:
    inset -8px -8px 0 rgba(32, 32, 32, 0.08),
    4px 5px 0 rgba(32, 32, 32, 0.28);
}

.directory-robot__torso::before,
.directory-robot__torso::after {
  position: absolute;
  left: 12px;
  width: 22px;
  height: 4px;
  border-radius: 4px;
  background: #f4b63f;
  content: "";
}

.directory-robot__torso::before {
  top: 20px;
}

.directory-robot__torso::after {
  top: 34px;
  background: #b44336;
}

.directory-robot__arm,
.directory-robot__leg {
  position: absolute;
  z-index: 1;
  border: 4px solid #202020;
  border-radius: 999px;
  background: #f5f2e9;
}

.directory-robot__arm {
  top: 82px;
  width: 18px;
  height: 48px;
  transform-origin: 50% 10%;
}

.directory-robot__arm--left {
  left: 16px;
  transform: rotate(24deg);
}

.directory-robot__arm--right {
  right: 16px;
  transform: rotate(-24deg);
}

.directory-robot__leg {
  top: 128px;
  width: 17px;
  height: 36px;
  transform-origin: 50% 0;
}

.directory-robot__leg--left {
  left: 39px;
  transform: rotate(7deg);
}

.directory-robot__leg--right {
  right: 39px;
  transform: rotate(-7deg);
}

.directory-robot__shoe {
  position: absolute;
  top: 158px;
  z-index: 2;
  width: 28px;
  height: 15px;
  border: 3px solid #202020;
  border-radius: 9px 9px 6px 6px;
  background: #b44336;
  box-shadow: 2px 2px 0 rgba(32, 32, 32, 0.24);
}

.directory-robot__shoe--left {
  left: 32px;
}

.directory-robot__shoe--right {
  right: 32px;
}

.directory-robot__shoe-flame {
  position: absolute;
  top: 170px;
  z-index: 1;
  width: 14px;
  height: 32px;
  border-radius: 50% 50% 60% 60%;
  background:
    radial-gradient(circle at 50% 30%, #fff7b0 0 22%, transparent 23%),
    linear-gradient(180deg, #f4b63f, #e65f2f 70%, transparent);
  filter: drop-shadow(0 0 8px rgba(244, 182, 63, 0.7));
  transform-origin: 50% 0;
  animation: robot-flame 0.18s linear infinite alternate;
}

.directory-robot__shoe-flame--left {
  left: 39px;
}

.directory-robot__shoe-flame--right {
  right: 39px;
  animation-delay: 0.09s;
}

@keyframes robot-flame {
  from {
    transform: scaleY(0.72) rotate(-3deg);
  }

  to {
    transform: scaleY(1.1) rotate(4deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .directory-robot {
    display: none;
  }
}

.game-page {
  align-content: start;
  justify-items: center;
  gap: 14px;
  overflow: auto;
}

.game-page-header {
  display: grid;
  grid-template-columns: 96px 1fr 96px;
  align-items: center;
  width: min(100%, 960px);
}

.game-details {
  width: min(100%, 960px);
  border: 3px solid rgba(32, 32, 32, 0.84);
  border-radius: 8px;
  padding: 14px 18px;
  background: rgba(245, 242, 233, 0.9);
  box-shadow: 3px 3px 0 #202020;
}

.game-details h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.game-details p {
  margin: 0;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.nickname-help {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.game-page-footer {
  width: min(100%, 960px);
  padding: 0 0 12px;
}

.game-page-header h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.game-version {
  display: grid;
  justify-self: end;
  gap: 2px;
  color: rgba(24, 24, 24, 0.66);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-align: right;
  text-transform: uppercase;
}

.game-version span {
  white-space: nowrap;
}

.home-link {
  display: inline-grid;
  place-items: center;
  width: fit-content;
  min-height: 38px;
  border: 3px solid #202020;
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(245, 242, 233, 0.9);
  box-shadow: 3px 3px 0 #202020;
  color: #202020;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.home-link:hover,
.home-link:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #202020;
  outline: none;
}

.game-shell {
  position: relative;
  width: min(100%, 960px);
  aspect-ratio: 16 / 9;
  border: 4px solid #202020;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sky);
  box-shadow: 0 18px 50px rgba(25, 35, 18, 0.22);
}

.game-shell::before {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(32, 32, 32, 0.34);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  content: "";
}

.game-shell.is-score-save::before {
  opacity: 1;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.hud {
  position: absolute;
  inset: 18px 18px auto 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.status,
.scoreboard {
  min-height: 44px;
  border: 3px solid #202020;
  border-radius: 8px;
  background: rgba(245, 242, 233, 0.88);
  box-shadow: 3px 3px 0 #202020;
}

.status {
  display: flex;
  align-items: center;
  max-width: min(56vw, 360px);
  padding: 0 14px;
  font-size: clamp(14px, 1.7vw, 18px);
  font-weight: 800;
}

.scoreboard {
  display: grid;
  grid-template-columns: auto 48px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
}

.scoreboard span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.scoreboard strong {
  min-width: 38px;
  text-align: right;
  font-size: 28px;
  line-height: 1;
}

.controls {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: none;
}

#jumpButton {
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

button {
  width: 64px;
  height: 64px;
  border: 3px solid #202020;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 3px 3px 0 #202020;
  color: #202020;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

button:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 #202020;
}

.leaderboard {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  width: 168px;
  border: 3px solid #202020;
  border-radius: 8px;
  background: rgba(245, 242, 233, 0.9);
  box-shadow: 3px 3px 0 #202020;
  color: #202020;
  transition:
    right 0.2s ease,
    bottom 0.2s ease,
    width 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

.game-shell.is-score-save .leaderboard {
  right: 50%;
  bottom: 50%;
  z-index: 4;
  width: min(78%, 340px);
  background: rgba(245, 242, 233, 0.97);
  transform: translate(50%, 50%);
}

.game-shell.is-score-save .leaderboard__header {
  min-height: 34px;
  padding: 6px 8px 4px 10px;
}

.game-shell.is-score-save .leaderboard h2 {
  font-size: 13px;
}

.game-shell.is-score-save .icon-button {
  width: 28px;
  height: 28px;
  font-size: 17px;
}

.game-shell.is-score-save .leaderboard__list {
  min-height: 104px;
  max-height: 126px;
  padding: 8px 10px 9px 30px;
  font-size: 13px;
}

.game-shell.is-score-save .score-form {
  padding: 8px 10px 10px;
}

.leaderboard__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  padding: 4px 6px 3px 8px;
  border-bottom: 2px solid rgba(32, 32, 32, 0.18);
}

.leaderboard h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.icon-button {
  width: 23px;
  height: 23px;
  border-width: 2px;
  border-radius: 50%;
  box-shadow: 2px 2px 0 #202020;
  font-size: 14px;
}

.leaderboard__list {
  min-height: 66px;
  max-height: 84px;
  margin: 0;
  padding: 6px 8px 7px 24px;
  overflow: hidden;
  font-size: 11px;
  font-weight: 800;
}

.leaderboard__list li {
  padding: 1px 0;
}

.leaderboard__score {
  float: right;
  font-variant-numeric: tabular-nums;
}

.score-form {
  padding: 7px 8px 8px;
  border-top: 2px solid rgba(32, 32, 32, 0.18);
}

.score-form label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.score-form__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px 54px;
  gap: 6px;
}

.score-form input {
  min-width: 0;
  height: 34px;
  border: 2px solid #202020;
  border-radius: 6px;
  padding: 0 8px;
  background: #fffdf6;
  color: #202020;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.score-form button {
  width: auto;
  height: 34px;
  border-width: 2px;
  border-radius: 6px;
  box-shadow: 2px 2px 0 #202020;
  font-size: 12px;
}

.score-form .score-form__skip {
  background: #d8d2c4;
}

.save-score-dialog {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 4;
  width: min(44%, 240px);
  border: 4px solid #202020;
  border-radius: 8px;
  background: rgba(245, 242, 233, 0.97);
  box-shadow: 5px 5px 0 #202020;
}

.save-score-dialog[hidden] {
  display: none;
}

.tic-tac-toe-shell.is-score-save .leaderboard {
  display: none;
}

.restart-dialog {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  background: rgba(32, 32, 32, 0.34);
}

.restart-dialog[hidden] {
  display: none;
}

.restart-dialog__panel {
  width: min(84%, 330px);
  border: 4px solid #202020;
  border-radius: 8px;
  padding: 24px;
  background: rgba(245, 242, 233, 0.96);
  box-shadow: 5px 5px 0 #202020;
  text-align: center;
}

.restart-dialog h2 {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 1;
}

.restart-dialog p {
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 800;
}

.restart-button {
  width: auto;
  height: 46px;
  min-width: 156px;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 15px;
  text-transform: uppercase;
}

.master-blaster-page {
  background:
    radial-gradient(circle at 16% 20%, rgba(244, 182, 63, 0.24), transparent 22%),
    linear-gradient(180deg, #151c34 0%, #253b58 58%, #51654f 100%);
}

.wiggle-buffet-page {
  background:
    radial-gradient(circle at 76% 18%, rgba(244, 182, 63, 0.24), transparent 22%),
    linear-gradient(180deg, #8fcde8 0%, #dceccf 68%, #315f36 100%);
}

.fishing-frenzy-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 182, 63, 0.24), transparent 22%),
    linear-gradient(180deg, #8fcde8 0%, #bfe8d6 44%, #226f88 100%);
}

.quick-game-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 182, 63, 0.22), transparent 22%),
    linear-gradient(180deg, #8fcde8 0%, #d6ebc9 62%, #5b8c47 100%);
}

.pizza-panic-page,
.cookie-stack-page {
  background:
    radial-gradient(circle at 76% 18%, rgba(255, 253, 246, 0.26), transparent 22%),
    linear-gradient(180deg, #f4b63f 0%, #f5d07a 52%, #8a6242 100%);
}

.frog-snack-page,
.bubble-pop-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(244, 182, 63, 0.22), transparent 22%),
    linear-gradient(180deg, #8fcde8 0%, #9bddc8 48%, #226f88 100%);
}

.master-blaster-page .game-page-header h1 {
  color: #fffdf6;
  text-shadow: 0 3px 0 rgba(32, 32, 32, 0.55);
}

.master-blaster-shell {
  background: #10172f;
}

.wiggle-buffet-shell {
  background: #8fcde8;
}

.fishing-frenzy-shell {
  background: #2ba6a4;
}

.quick-game-shell {
  background: #8fcde8;
}

.tic-tac-toe-shell {
  background: #8fcde8;
}

.tic-tac-toe-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(180deg, #82c9e5 0%, #d6ebc9 76%, #6f9b58 100%);
}

.tic-tac-toe-sun {
  position: absolute;
  top: 46px;
  right: 118px;
  width: 74px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #f4b63f;
}

.tic-tac-toe-cloud {
  position: absolute;
  width: 86px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
}

.tic-tac-toe-cloud::before,
.tic-tac-toe-cloud::after {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.tic-tac-toe-cloud::before {
  left: 14px;
  width: 38px;
  height: 38px;
}

.tic-tac-toe-cloud::after {
  right: 13px;
  width: 31px;
  height: 31px;
}

.tic-tac-toe-cloud--one {
  top: 96px;
  left: 172px;
}

.tic-tac-toe-cloud--two {
  top: 140px;
  right: 250px;
  transform: scale(0.72);
}

.tic-tac-toe-ground {
  position: absolute;
  right: -24px;
  bottom: -34px;
  left: -24px;
  height: 118px;
  border-top: 5px solid rgba(32, 32, 32, 0.72);
  background:
    linear-gradient(90deg, rgba(32, 32, 32, 0.14) 1px, transparent 1px) 0 0 / 18px 100%,
    linear-gradient(180deg, #5a8d44, #315f36);
}

.tic-tac-toe-panel {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(42%, 360px);
  aspect-ratio: 1;
  margin-top: 26px;
  border: 5px solid #202020;
  border-radius: 8px;
  background: rgba(245, 242, 233, 0.94);
  box-shadow: 7px 7px 0 #202020;
}

.tic-tac-toe-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 84%;
  aspect-ratio: 1;
}

.tic-tac-toe-cell {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-right: 5px solid #202020;
  border-bottom: 5px solid #202020;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #202020;
  font-size: clamp(42px, 8vw, 86px);
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  appearance: none;
}

.tic-tac-toe-cell:nth-child(3n) {
  border-right: 0;
}

.tic-tac-toe-cell:nth-child(n + 7) {
  border-bottom: 0;
}

.tic-tac-toe-cell:hover:not(:disabled),
.tic-tac-toe-cell:focus-visible:not(:disabled) {
  background: rgba(244, 182, 63, 0.16);
  outline: none;
}

.tic-tac-toe-cell:active {
  transform: none;
  box-shadow: none;
}

.tic-tac-toe-marker {
  width: 88%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(2px 3px 0 rgba(32, 32, 32, 0.24));
}

.tic-tac-toe-cell.is-o {
  color: #b44336;
}

.tic-tac-toe-cell.is-win {
  background: rgba(244, 182, 63, 0.32);
}

@media (pointer: coarse) {
  .controls {
    display: block;
  }
}

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  .directory-page {
    place-items: start center;
  }

  .game-page {
    align-content: center;
    gap: 10px;
  }

  .game-page-header {
    grid-template-columns: 76px 1fr 76px;
  }

  .home-link {
    min-height: 32px;
    border-width: 2px;
    padding: 0 10px;
    box-shadow: 2px 2px 0 #202020;
    font-size: 12px;
  }

  .directory-shell {
    padding-top: 6px;
  }

  .directory-header {
    margin-bottom: 12px;
  }

  .game-directory {
    grid-template-columns: 1fr;
    grid-auto-rows: 118px;
    gap: 12px;
  }

  .hud {
    inset: 10px 10px auto 10px;
  }

  .status,
  .scoreboard {
    min-height: 38px;
    border-width: 2px;
    box-shadow: 2px 2px 0 #202020;
  }

  .status {
    padding: 0 10px;
  }

  .scoreboard {
    grid-template-columns: auto 34px;
    gap: 6px;
    padding: 0 9px;
  }

  .scoreboard strong {
    min-width: 28px;
    font-size: 22px;
  }

  .leaderboard {
    right: 10px;
    bottom: 10px;
    width: 154px;
  }

  .leaderboard__list {
    min-height: 58px;
    max-height: 66px;
    padding-left: 24px;
    font-size: 10px;
  }

  .game-shell.is-score-save .leaderboard {
    width: min(82%, 340px);
  }

  .game-shell.is-score-save .leaderboard__list {
    min-height: 78px;
    max-height: 92px;
    padding-left: 28px;
    font-size: 12px;
  }

  .score-form {
    padding: 7px 8px 8px;
  }

  .save-score-dialog {
    width: min(56%, 230px);
  }

  .tic-tac-toe-panel {
    width: min(66%, 310px);
    margin-top: 24px;
  }

  .tic-tac-toe-sun {
    top: 50px;
    right: 68px;
    width: 54px;
  }

  .tic-tac-toe-cloud--one {
    left: 52px;
  }

  .tic-tac-toe-cloud--two {
    right: 96px;
  }
}
