:root {
  color-scheme: dark;
  --bg: #11151e;
  --surface: #191e29;
  --surface2: #202632;
  --line: #2c3341;
  --text: #f1f0e9;
  --muted: #a0a6b3;
  --lime: #c7f36b;
  --radius: 20px;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 35px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 5px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
svg {
  display: block;
  width: 100%;
  height: 100%;
}
.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;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 15px;
  background: var(--lime);
  color: var(--bg);
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 23px 32px;
  display: flex;
  align-items: center;
  gap: 45px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -1.4px;
}
.brand-symbol {
  background: var(--lime);
  color: #182123;
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-weight: 900;
  font-size: 34px;
  line-height: 1;
  padding-bottom: 5px;
  letter-spacing: 0;
  transform: rotate(-7deg);
}
.brand-symbol > span {
  position: absolute;
  font-size: 14px;
  right: 2px;
  top: 0;
}
.brand-accent {
  color: var(--lime);
}
.brand-dot {
  color: var(--lime);
}
nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav-link {
  font-size: 13px;
  background: none;
  color: var(--muted);
  padding: 7px 0;
}
.nav-link:first-child {
  color: var(--text);
}
.nav-link:hover {
  color: var(--lime);
}
.nav-link > span {
  padding-left: 7px;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 24px;
  flex-shrink: 0;
}
.icon-button:hover {
  background: var(--surface2);
  border-color: #626d7e;
}
.icon-button svg {
  width: 22px;
  height: 22px;
}
main {
  max-width: 1200px;
  padding: 0 32px;
  margin: auto;
  outline: none !important;
}
.hero {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 65px;
  align-items: center;
  padding: 70px 0 72px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: #c4d6ac;
  border: 1px solid #344434;
  background: #1b271e;
  padding: 6px 12px;
  border-radius: 20px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}
.hero h1 {
  font-size: clamp(44px, 5.1vw, 66px);
  line-height: 1.12;
  letter-spacing: -3px;
  font-weight: 750;
  margin: 20px 0 23px;
  position: relative;
  width: max-content;
}
.hero h1 > span {
  color: var(--lime);
}
.hero h1 svg {
  position: absolute;
  bottom: -13px;
  left: 0;
  height: 15px;
  width: 100%;
  fill: none;
  stroke: var(--lime);
  stroke-width: 3;
  opacity: 0.6;
}
.hero-copy > p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.85;
  margin: 30px 0 24px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 650;
  min-height: 44px;
  transition:
    transform 0.18s,
    background 0.18s;
}
.button:not(:disabled):hover {
  transform: translateY(-2px);
}
.primary {
  background: var(--lime);
  color: #18201a;
}
.primary:hover {
  background: #d6ff88;
}
.secondary {
  background: var(--surface2);
  border: 1px solid #384151;
  color: var(--text);
}
.secondary:hover {
  background: #2c3545;
}
.button > span:not(.sr-only) {
  font-size: 20px;
  line-height: 1;
}
.hero-notes {
  display: flex;
  gap: 19px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 10px;
}
.hero-notes span::first-letter {
  color: var(--lime);
}
.hero-feature {
  display: block;
  position: relative;
  min-width: 0;
  background: #232a25;
  border: 1px solid #414a34;
  border-radius: 24px;
  padding: 23px 25px 25px;
  transform: rotate(2deg);
  transition: transform 0.25s;
  isolation: isolate;
}
.hero-feature:hover {
  transform: rotate(0);
}
.hero-feature::before {
  content: "";
  position: absolute;
  inset: -8px 9px 8px -9px;
  border: 1px solid #45483b;
  border-radius: 24px;
  transform: rotate(-5deg);
  z-index: -1;
}
.feature-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #d8e4b9;
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 700;
}
.feature-top > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}
.feature-top i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8e4b9;
}
.feature-star {
  font-size: 29px;
  line-height: 1;
}
.feature-art {
  height: 239px;
}
.feature-art svg {
  filter: drop-shadow(0 14px 15px #0003);
  transform: rotate(8deg) scale(1.1);
}
.feature-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.65px;
  text-transform: uppercase;
}
.feature-bottom .eyebrow {
  font-size: 8px;
  color: #c1c8a6;
  letter-spacing: 1.5px;
}
.feature-bottom strong {
  display: block;
  font-size: 21px;
  letter-spacing: -0.5px;
  margin-top: 4px;
}
.feature-button {
  display: grid;
  place-items: center;
  background: var(--lime);
  width: 43px;
  height: 43px;
  border-radius: 50%;
  color: #243221;
  font-size: 25px;
  flex-shrink: 0;
}
.floating-label {
  position: absolute;
  right: -17px;
  bottom: 86px;
  background: #ecdfc4;
  color: #4b412c;
  font-size: 12px;
  font-style: italic;
  font-weight: 650;
  padding: 9px 15px;
  border-radius: 5px;
  transform: rotate(-9deg);
  box-shadow: 0 5px 12px #0003;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}
.section-heading h2 {
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1.1px;
  margin-top: 7px;
}
.section-heading h2 > span {
  color: var(--lime);
}
.game-count {
  color: var(--muted);
  font-size: 11px;
  padding-bottom: 7px;
}
.library-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 23px;
  gap: 15px;
}
.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter {
  background: transparent;
  color: var(--muted);
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 12px;
}
.filter.selected {
  background: #293223;
  color: #d0edab;
  border-color: #435337;
}
.filter:hover {
  color: var(--text);
  background: var(--surface2);
}
.library-note {
  font-size: 10px;
  color: var(--muted);
}
.library-note > span {
  color: var(--lime);
  font-size: 16px;
  padding-right: 5px;
}
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.game-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.game-card:hover {
  transform: translateY(-5px);
  border-color: #667057;
}
.game-art {
  display: block;
  height: auto;
  aspect-ratio: 400/240;
  position: relative;
  overflow: hidden;
}
.game-art svg {
  transition: transform 0.3s;
}
.game-card:hover .game-art svg {
  transform: scale(1.06);
}
.art-gold {
  background: #eac987;
}
.art-purple {
  background: #b6a1d7;
}
.art-green {
  background: #b4d299;
}
.art-coral {
  background: #e6a58e;
}
.art-blue {
  background: #9fcbd3;
}
.art-peach {
  background: #a35e4d;
}
.game-category {
  position: absolute;
  left: 15px;
  top: 13px;
  font-size: 9px;
  font-weight: 700;
  background: #1420241a;
  border: 1px solid #14202410;
  color: #283337;
  padding: 3px 9px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}
.art-peach .game-category {
  color: #ffe5ce;
  background: #49251b25;
  border-color: #f1d1a41a;
}
.art-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: #11151ed9;
  color: var(--lime);
  border: 1px solid #ffffff55;
  transition:
    opacity 0.2s,
    transform 0.2s;
  padding-left: 3px;
}
.game-art:hover .art-play,
.game-art:focus-visible .art-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.card-body {
  padding: 18px 20px 17px;
}
.card-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-heading h3 {
  font-size: 17px;
  letter-spacing: -0.4px;
  font-weight: 650;
}
.card-arrow {
  font-size: 22px;
  color: #a6acb8;
  line-height: 1;
}
.card-heading a:hover {
  color: var(--lime);
}
.card-body > p {
  color: var(--muted);
  font-size: 11px;
  margin: 7px 0 17px;
}
.card-meta {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #a7aeb9;
}
.card-meta .status-dot {
  width: 4px;
  height: 4px;
  opacity: 0.7;
}
.break-note {
  margin: 46px 0 58px;
  padding: 28px 31px;
  border: 1px solid var(--line);
  background: linear-gradient(105deg, #1c2422, #191e28);
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 25px;
}
.mini-spark {
  font-size: 47px;
  color: var(--lime);
  line-height: 1;
}
.break-note h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
.break-note p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  margin-top: 5px;
}
.note-doodle {
  font-size: 65px;
  line-height: 1;
  color: #89966b;
  transform: rotate(15deg);
  margin-left: auto;
}
.site-footer {
  border-top: 1px solid var(--line);
  max-width: 1136px;
  margin: 0 auto;
  padding: 24px 0 30px;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 10px;
  color: var(--muted);
}
.footer-logo {
  font-size: 18px;
  font-weight: 800;
  color: #c0c3c9;
  letter-spacing: -0.7px;
}
.footer-logo > span {
  color: var(--lime);
}
.credit {
  margin-left: auto;
}
.credit a {
  color: var(--text);
  border-bottom: 1px solid #58623f;
  padding-bottom: 2px;
}
.credit a:hover {
  color: var(--lime);
}
.resume-banner {
  display: flex;
  align-items: center;
  gap: 22px;
  border: 1px solid #3b4937;
  background: #20291f;
  border-radius: 16px;
  padding: 24px 30px;
  margin-top: 30px;
}
.resume-icon {
  font-size: 35px;
  color: var(--lime);
}
.resume-banner h3 {
  font-size: 19px;
  letter-spacing: -0.3px;
  margin: 4px 0;
}
.resume-banner p {
  font-size: 12px;
  color: var(--muted);
}
.resume-banner > .button {
  margin-left: auto;
  flex-shrink: 0;
}
.resume-banner .eyebrow {
  color: #a8c58d;
}
/* Game rooms */
.game-page {
  padding: 32px 0 48px;
}
.game-breadcrumb {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.game-breadcrumb > a {
  color: var(--text);
}
.game-breadcrumb > a:hover {
  color: var(--lime);
}
.game-breadcrumb > span {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.game-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 28px 0;
}
.game-page-heading h1 {
  font-size: 43px;
  font-weight: 700;
  letter-spacing: -1.8px;
  line-height: 1.3;
  margin: 4px 0;
}
.game-page-heading h1 > span {
  color: var(--lime);
}
.game-page-heading p {
  color: var(--muted);
  font-size: 13px;
}
.help-icon {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border: 1.5px solid #b4bac7;
  border-radius: 50%;
  font-size: 12px !important;
}
.game-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 28px;
  align-items: start;
}
.play-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 25px;
  min-width: 0;
}
.game-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.game-stats {
  display: flex;
  align-items: center;
  gap: 30px;
}
.stat > span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.stat > strong {
  font-size: 25px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.restart-button {
  font-size: 29px;
}
.game-options {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}
.game-options label {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
}
select {
  background: #252c39;
  border: 1px solid #3b4658;
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--text);
  font-size: 12px;
  max-width: 100%;
}
.game-stage {
  position: relative;
  max-width: 480px;
  margin: auto;
}
.game-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.game-note {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  margin-top: 15px;
}
.game-feedback {
  min-height: 30px;
  text-align: center;
  color: #c9e3a6;
  font-size: 12px;
  padding-top: 13px;
}
.game-aside {
  padding: 25px 0 15px 7px;
}
.game-aside > h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin: 5px 0 26px;
}
.aside-rule {
  display: flex;
  gap: 15px;
  margin-top: 22px;
}
.aside-icon {
  font-size: 23px;
  line-height: 1.2;
  color: #b0c48a;
  width: 25px;
  flex-shrink: 0;
}
.aside-rule h3,
.aside-tip h3 {
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 7px;
}
.aside-rule p,
.aside-tip p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}
.aside-tip {
  border: 1px solid #3c4831;
  background: #20271f;
  border-radius: 14px;
  padding: 20px;
  margin: 27px 0 22px;
}
.aside-tip > span {
  display: block;
  font-size: 22px;
  line-height: 1;
  color: var(--lime);
  margin-bottom: 13px;
}
.local-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
}
.text-button {
  background: none;
  color: var(--lime);
  padding: 13px 0;
  font-size: 11px;
}
.more-games {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}
.more-games h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin-top: 6px;
}
.related-links {
  display: flex;
  gap: 13px;
}
.related-links > a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.related-links > a:hover {
  border-color: var(--lime);
}
.related-art {
  display: block;
  width: 42px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
}
.related-art svg {
  transform: scale(1.5);
}
.related-links > a > span:last-child {
  color: var(--lime);
}
.board-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 22px;
  text-align: center;
  background: #111b20e8;
  backdrop-filter: blur(7px);
  border-radius: 14px;
  z-index: 2;
}
.board-overlay h2 {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: -0.7px;
}
.board-overlay p {
  font-size: 13px;
  color: #b2bdc0;
  max-width: 300px;
}
.canvas-wrap {
  position: relative;
  margin: auto;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  touch-action: none;
  border: 1px solid #394736;
}
.canvas-wrap canvas {
  display: block;
  width: 100%;
  height: auto;
}
.snake-wrap {
  max-width: 400px;
}
.breaker-wrap {
  border-color: #3b354a;
}
.direction-pad {
  display: grid;
  grid-template-columns: repeat(3, 42px);
  grid-template-rows: repeat(2, 38px);
  gap: 5px;
}
.direction-pad button {
  border: 1px solid #43513f;
  border-radius: 8px;
  background: #293328;
  color: #d5eca9;
  font-size: 23px;
  line-height: 1;
}
.direction-pad button:hover {
  background: #3c4d34;
}
.direction-pad button[data-dir="up"] {
  grid-column: 2;
}
.direction-pad button[data-dir="left"] {
  grid-row: 2;
  grid-column: 1;
}
.direction-pad button[data-dir="down"] {
  grid-row: 2;
  grid-column: 2;
}
.direction-pad button[data-dir="right"] {
  grid-row: 2;
  grid-column: 3;
}
.tiles-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #31352b;
  border: 1px solid #535743;
  border-radius: 14px;
  padding: 12px;
  position: relative;
  touch-action: none;
  aspect-ratio: 1;
  max-width: 400px;
  margin: auto;
}
.number-tile {
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #414638;
  aspect-ratio: 1;
  min-width: 0;
}
.number-tile > span {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
}
.number-tile.occupied {
  background: #e7dfcb;
  color: #594a35;
  animation: tile-in 0.12s ease-out;
}
.number-tile[data-value="4"] {
  background: #e7d5ae;
}
.number-tile[data-value="8"] {
  background: #efb46f;
  color: #4d3424;
}
.number-tile[data-value="16"] {
  background: #e99b60;
  color: #4d3424;
}
.number-tile[data-value="32"] {
  background: #e7805b;
  color: #fff0d6;
}
.number-tile[data-value="64"] {
  background: #c96242;
  color: #fff0d6;
}
.number-tile[data-value="128"] {
  background: #c4cc69;
}
.number-tile[data-value="256"] {
  background: #bfdc6f;
}
.number-tile[data-value="512"] {
  background: #b5e974;
}
.number-tile[data-value="1024"],
.number-tile[data-value="2048"] {
  background: var(--lime);
  color: #334222;
}
.number-tile[data-value="1024"] > span,
.number-tile[data-value="2048"] > span {
  font-size: 29px;
}
.number-tile[data-value="4096"],
.number-tile[data-value="8192"] {
  background: #b9a0e8;
  color: #2c2043;
}
.number-tile[data-value="16384"] > span,
.number-tile[data-value="32768"] > span,
.number-tile[data-value="65536"] > span {
  font-size: 23px;
}
@keyframes tile-in {
  from {
    opacity: 0.7;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.memory-board {
  display: grid;
  grid-template-columns: repeat(var(--columns, 4), 1fr);
  gap: 9px;
  position: relative;
  max-width: 430px;
  margin: auto;
}
.memory-card {
  position: relative;
  aspect-ratio: 1;
  background: #343044;
  border: 1px solid #565067;
  border-radius: 11px;
  font-size: 30px;
  transition:
    background 0.2s,
    transform 0.2s;
  min-width: 0;
  display: grid;
  place-items: center;
}
.memory-card:hover {
  background: #484058;
}
.card-back {
  color: #9a88b4;
  font-size: 27px;
}
.card-front {
  display: none;
  color: #e5d5fb;
}
.memory-card.flipped {
  background: #5c477d;
  border-color: #ad92d2;
  transform: rotateY(0);
}
.memory-card.flipped .card-back {
  display: none;
}
.memory-card.flipped .card-front {
  display: block;
}
.memory-card.matched {
  background: #354c32;
  border-color: #6e8e57;
}
.memory-card.matched .card-front {
  color: var(--lime);
}
.ttt-board {
  max-width: 360px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ttt-cell {
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid #46505f;
  border-radius: 13px;
  background: #252e3c;
  font-size: 65px;
  line-height: 1;
  font-weight: 350;
}
.ttt-cell:disabled {
  opacity: 1;
}
.ttt-cell:empty:hover {
  background: #303e50;
}
.ttt-cell.x {
  color: var(--lime);
}
.ttt-cell.o {
  color: #a9c8eb;
}
.ttt-cell.winning {
  border-color: var(--lime);
  background: #35442c;
}
.turn-indicator {
  text-align: center;
  margin: 0 0 20px;
  font-size: 14px;
  color: #c9dfac;
  min-height: 25px;
}
.reaction-panel {
  width: 100%;
  height: 320px;
  max-width: 480px;
  background: #283729;
  border: 1px solid #4b6141;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 25px;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
}
.reaction-symbol {
  font-size: 55px;
  line-height: 1;
  color: var(--lime);
}
.reaction-panel strong {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.8px;
}
.reaction-instruction {
  font-size: 13px;
  color: #c2cdba;
}
.reaction-waiting {
  background: #593b38;
  border-color: #8f6057;
}
.reaction-waiting .reaction-symbol {
  color: #edb19c;
}
.reaction-go {
  background: var(--lime);
  color: #203421;
  border-color: var(--lime);
}
.reaction-go .reaction-symbol,
.reaction-go .reaction-instruction {
  color: #294129;
}
.reaction-early {
  background: #58422b;
  border-color: #91704a;
}
.round-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.round-dot {
  border: 1px solid #465141;
  background: #293226;
  color: #b9c8a9;
  display: grid;
  place-items: center;
  min-height: 36px;
  min-width: 36px;
  border-radius: 8px;
  font-size: 11px;
  padding: 4px 7px;
}
.round-dot.complete {
  background: #34472b;
  color: var(--lime);
  border-color: #597445;
}
/* Dialogs and preferences */
dialog {
  max-width: 510px;
  width: calc(100% - 32px);
  background: #1b212d;
  color: var(--text);
  border: 1px solid #454e5e;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 25px 100px #0007;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
}
dialog::backdrop {
  background: #080c13c9;
  backdrop-filter: blur(6px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.modal-heading .icon-button {
  width: 34px;
  height: 34px;
  font-size: 23px;
}
dialog h2 {
  font-size: 29px;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 13px 0;
}
dialog p {
  font-size: 13px;
  line-height: 1.85;
  color: #aeb6c5;
}
dialog > .button {
  margin-top: 20px;
}
.help-steps {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}
.help-steps li {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin: 15px 0;
}
.help-steps li > span {
  display: grid;
  place-items: center;
  background: #303e29;
  color: var(--lime);
  font-weight: 700;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 12px;
}
.tip {
  background: #252e24;
  border: 1px solid #3c4b33;
  border-radius: 12px;
  padding: 15px;
  display: flex;
  gap: 13px;
  margin: 20px 0;
}
.tip > span {
  color: var(--lime);
  font-size: 20px;
}
.tip p {
  color: #b7c5aa;
  font-size: 12px;
}
.full {
  width: 100%;
  margin-top: 12px;
}
.merge-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-top: 22px;
  background: #242b24;
  border-radius: 12px;
  padding: 18px;
}
.merge-demo > span {
  display: grid;
  place-items: center;
  background: #e7d6b4;
  color: #5c4931;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  font-size: 24px;
  font-weight: 800;
}
.merge-demo > span:last-child {
  background: #c7f36b;
}
.merge-demo > b {
  color: var(--muted);
  font-size: 17px;
}
.purple-demo > span {
  background: #8166aa;
  color: #eee2ff;
}
.snake-demo {
  text-align: center;
  font-size: 35px;
  padding: 15px;
  color: var(--lime);
  letter-spacing: 2px;
}
.snake-demo > span {
  color: #ed947d;
}
.reaction-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.reaction-demo > span {
  background: #61433c;
  border-radius: 10px;
  padding: 12px 22px;
}
.reaction-demo > span:last-child {
  background: var(--lime);
  color: #203421;
}
.ttt-demo {
  font-size: 50px;
  text-align: center;
  color: var(--lime);
  letter-spacing: 12px;
}
.ttt-demo > span {
  color: #c7f36b88;
}
.brick-demo {
  display: grid;
  grid-template-columns: repeat(3, 48px);
  gap: 7px;
  justify-content: center;
  padding: 20px;
}
.brick-demo i {
  height: 17px;
  background: #b6a0d2;
  border-radius: 4px;
}
.brick-demo > span {
  grid-column: 2;
  text-align: center;
  color: #f2d3a5;
}
.brick-demo > b {
  grid-column: 2;
  text-align: center;
  color: var(--lime);
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 25px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.setting-row strong {
  display: block;
  font-size: 14px;
}
.setting-row small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin-top: 4px;
}
.setting-row input {
  appearance: none;
  width: 42px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 20px;
  background: #49515d;
  position: relative;
  cursor: pointer;
}
.setting-row input::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  left: 4px;
  top: 4px;
  background: #fff;
  transition: left 0.2s;
}
.setting-row input:checked {
  background: #84a943;
}
.setting-row input:checked::after {
  left: 22px;
}
.small {
  font-size: 11px;
  padding: 8px 10px;
  white-space: nowrap;
}
.settings-status {
  margin-top: 17px;
}
.loading,
.error-message {
  padding: 70px 20px;
  text-align: center;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px);
  width: max-content;
  background: #d9edb6;
  color: #25351d;
  box-shadow: 0 8px 35px #0006;
  padding: 13px 20px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 20;
  font-size: 13px;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1400px) {
  .hero {
    padding-top: 84px;
    padding-bottom: 85px;
  }
  .feature-art {
    height: 260px;
  }
}
@media (max-width: 1000px) {
  .hero {
    gap: 35px;
  }
  .hero h1 {
    font-size: 54px;
  }
  .hero-copy > p {
    font-size: 13px;
  }
  .feature-art {
    height: 220px;
  }
  .floating-label {
    right: -10px;
  }
  .game-grid {
    gap: 17px;
  }
  .card-body {
    padding: 15px;
  }
  .card-body > p {
    min-height: 35px;
  }
  .site-footer {
    margin: 0 32px;
  }
  .game-workspace {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 25px;
  }
  .game-aside {
    padding-left: 0;
  }
  .game-stats {
    gap: 21px;
  }
  .more-games {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .related-links {
    width: 100%;
  }
  .related-links > a {
    flex: 1;
  }
  .game-aside h2 {
    font-size: 23px;
  }
}
@media (max-width: 760px) {
  .header-inner {
    padding: 18px 23px;
    gap: 24px;
  }
  main {
    padding: 0 23px;
  }
  .brand {
    font-size: 24px;
  }
  .brand-symbol {
    width: 32px;
    height: 32px;
    font-size: 30px;
  }
  .nav-link {
    font-size: 11px;
  }
  nav {
    gap: 20px;
  }
  .hero {
    padding: 46px 0 48px;
    gap: 27px;
  }
  .hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }
  .hero-badge {
    font-size: 8px;
    letter-spacing: 1px;
    padding: 5px 9px;
  }
  .hero-copy > p {
    font-size: 12px;
    line-height: 1.8;
  }
  .hero-copy > p > br {
    display: none;
  }
  .hero .button {
    font-size: 11px;
    padding: 11px 13px;
    gap: 12px;
  }
  .hero-notes {
    gap: 10px;
    font-size: 8px;
  }
  .hero-feature {
    padding: 16px 17px;
  }
  .feature-art {
    height: 190px;
  }
  .feature-top {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .feature-bottom strong {
    font-size: 17px;
  }
  .feature-bottom .eyebrow {
    font-size: 6px;
    letter-spacing: 1px;
  }
  .feature-button {
    width: 33px;
    height: 33px;
    font-size: 21px;
  }
  .floating-label {
    font-size: 10px;
    bottom: 70px;
    padding: 7px 10px;
  }
  .section-heading h2 {
    font-size: 25px;
  }
  .game-count {
    font-size: 9px;
  }
  .library-note {
    display: none;
  }
  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-body > p {
    min-height: 0;
  }
  .game-workspace {
    grid-template-columns: 1fr;
  }
  .game-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    padding: 10px;
  }
  .game-aside > .eyebrow,
  .game-aside > h2 {
    grid-column: 1/-1;
  }
  .game-aside > h2 {
    margin-bottom: 0;
  }
  .aside-tip {
    grid-column: 1/-1;
    margin-top: 20px;
  }
  .aside-tip > span {
    float: left;
    margin: 0 15px 0 0;
  }
  .aside-tip h3 {
    margin: 0 0 5px;
  }
  .local-note {
    align-self: center;
  }
  .game-page-heading h1 {
    font-size: 37px;
  }
  .play-panel {
    padding: 22px;
  }
  .site-footer {
    margin: 0 23px;
    gap: 15px;
  }
  .site-footer > p:not(.credit) {
    font-size: 9px;
  }
  .break-note {
    margin: 35px 0 40px;
  }
  .resume-banner {
    padding: 22px;
    gap: 15px;
  }
  .resume-banner h3 {
    font-size: 17px;
  }
  .resume-banner p {
    font-size: 11px;
  }
  .resume-banner > .button {
    font-size: 11px;
    padding: 10px 12px;
  }
}
@media (max-width: 540px) {
  .header-inner {
    padding: 17px 20px;
    gap: 15px;
  }
  nav {
    margin-left: auto;
  }
  .nav-link:first-child {
    display: none;
  }
  .nav-link {
    font-size: 10px;
  }
  .settings-trigger {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .brand {
    font-size: 23px;
  }
  main {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 35px 0 46px;
    gap: 34px;
  }
  .hero h1 {
    font-size: 55px;
    letter-spacing: -2.7px;
    margin-top: 18px;
  }
  .hero-badge {
    font-size: 8px;
  }
  .hero-copy > p {
    font-size: 13px;
    max-width: 330px;
    margin-top: 27px;
    margin-bottom: 22px;
  }
  .hero-copy > p > br {
    display: block;
  }
  .hero .button {
    font-size: 12px;
    padding: 12px 17px;
  }
  .hero-notes {
    font-size: 9px;
    gap: 18px;
  }
  .hero-feature {
    margin: 0 8px;
    transform: rotate(1.5deg);
    padding: 19px 22px;
  }
  .feature-art {
    height: 220px;
  }
  .feature-top {
    font-size: 8px;
  }
  .feature-bottom strong {
    font-size: 21px;
  }
  .feature-bottom .eyebrow {
    font-size: 7px;
  }
  .feature-button {
    width: 39px;
    height: 39px;
  }
  .floating-label {
    font-size: 11px;
    right: -13px;
    bottom: 77px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 10px;
  }
  .section-heading h2 {
    font-size: 25px;
    line-height: 1.25;
    max-width: 250px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .game-count {
    display: none;
  }
  .library-toolbar {
    margin: 20px 0;
  }
  .filters {
    gap: 3px;
    justify-content: space-between;
    width: 100%;
  }
  .filter {
    font-size: 10px;
    padding: 8px 10px;
  }
  .game-grid {
    gap: 13px;
  }
  .game-card {
    border-radius: 12px;
  }
  .game-category {
    font-size: 7px;
    left: 8px;
    top: 8px;
    padding: 2px 6px;
  }
  .card-body {
    padding: 12px 11px;
  }
  .card-heading h3 {
    font-size: 14px;
    letter-spacing: -0.4px;
  }
  .card-arrow {
    font-size: 18px;
  }
  .card-body > p {
    font-size: 10px;
    min-height: 32px;
    line-height: 1.6;
    margin: 7px 0 12px;
  }
  .card-meta {
    font-size: 8px;
    gap: 5px;
    min-height: 34px;
    padding-top: 10px;
    line-height: 1.5;
  }
  .card-meta .status-dot {
    width: 3px;
    height: 3px;
  }
  .break-note {
    gap: 15px;
    padding: 22px 17px;
    align-items: flex-start;
  }
  .break-note h2 {
    font-size: 17px;
  }
  .break-note p {
    font-size: 11px;
  }
  .break-note p br {
    display: none;
  }
  .mini-spark {
    font-size: 34px;
  }
  .note-doodle {
    display: none;
  }
  .site-footer {
    margin: 0 20px;
    flex-wrap: wrap;
    gap: 8px 15px;
    padding: 22px 0;
  }
  .site-footer > p:not(.credit) {
    order: 3;
    width: 100%;
    font-size: 10px;
  }
  .credit {
    font-size: 10px;
  }
  .resume-banner {
    flex-wrap: wrap;
    padding: 20px;
    gap: 14px;
  }
  .resume-banner .eyebrow {
    font-size: 8px;
  }
  .resume-icon {
    font-size: 27px;
  }
  .resume-banner h3 {
    font-size: 16px;
  }
  .resume-banner p {
    font-size: 10px;
  }
  .resume-banner > .button {
    margin-left: 40px;
  }
  .game-page {
    padding-top: 24px;
  }
  .game-page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 24px;
  }
  .game-page-heading h1 {
    font-size: 37px;
  }
  .game-page-heading .eyebrow {
    font-size: 8px;
  }
  .game-page-heading p {
    font-size: 12px;
  }
  .game-page-heading > .button {
    padding: 9px 13px;
    font-size: 11px;
    min-height: 40px;
    gap: 10px;
  }
  .play-panel {
    padding: 16px 13px;
    border-radius: 16px;
  }
  .game-toolbar {
    margin-bottom: 16px;
    gap: 8px;
  }
  .game-stats {
    gap: 21px;
  }
  .stat > span {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .stat > strong {
    font-size: 21px;
  }
  .restart-button {
    width: 33px;
    height: 33px;
    font-size: 26px;
  }
  .game-options {
    font-size: 11px;
  }
  .game-options select {
    font-size: 11px;
    padding: 8px;
  }
  .game-options label {
    gap: 12px;
  }
  .game-controls {
    margin-top: 18px;
    gap: 10px;
  }
  .game-controls > .button {
    font-size: 12px;
    padding: 10px 15px;
  }
  .game-note {
    font-size: 10px;
    padding: 0 5px;
  }
  .game-feedback {
    font-size: 11px;
    padding: 12px 5px 0;
    min-height: 40px;
  }
  .tiles-board {
    gap: 8px;
    padding: 9px;
    border-radius: 12px;
  }
  .number-tile {
    border-radius: 7px;
  }
  .number-tile > span {
    font-size: 30px;
  }
  .number-tile[data-value="1024"] > span,
  .number-tile[data-value="2048"] > span {
    font-size: 23px;
  }
  .number-tile[data-value="16384"] > span,
  .number-tile[data-value="32768"] > span,
  .number-tile[data-value="65536"] > span {
    font-size: 17px;
  }
  .memory-board {
    gap: 6px;
  }
  .memory-card {
    border-radius: 8px;
    font-size: 25px;
  }
  .card-back {
    font-size: 21px;
  }
  .memory-board[style*="6"] .memory-card {
    font-size: 21px;
  }
  .memory-board[style*="6"] .card-back {
    font-size: 18px;
  }
  .board-overlay {
    gap: 12px;
    padding: 16px;
  }
  .board-overlay h2 {
    font-size: 23px;
  }
  .board-overlay p {
    font-size: 12px;
  }
  .board-overlay .button {
    font-size: 12px;
  }
  .ttt-board {
    gap: 8px;
  }
  .ttt-cell {
    font-size: 58px;
    border-radius: 11px;
  }
  .reaction-panel {
    height: 285px;
    padding: 17px;
  }
  .reaction-panel strong {
    font-size: 25px;
  }
  .reaction-instruction {
    font-size: 12px;
  }
  .round-dots {
    gap: 5px;
  }
  .round-dot {
    font-size: 9px;
    padding: 4px 6px;
    min-width: 31px;
  }
  .game-aside {
    gap: 16px;
    padding: 6px 4px;
  }
  .game-aside h2 {
    font-size: 23px;
    margin-top: -9px;
  }
  .aside-rule {
    margin-top: 0;
    gap: 10px;
  }
  .aside-icon {
    width: 21px;
    font-size: 20px;
  }
  .aside-rule h3 {
    font-size: 12px;
  }
  .aside-rule p,
  .aside-tip p {
    font-size: 11px;
  }
  .aside-tip {
    margin: 0;
  }
  .local-note {
    font-size: 10px;
  }
  .text-button {
    font-size: 10px;
    text-align: left;
  }
  .more-games {
    margin-top: 28px;
    padding-top: 24px;
  }
  .more-games h2 {
    font-size: 22px;
  }
  .related-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .related-links > a {
    font-size: 12px;
    gap: 13px;
    padding: 8px 12px;
  }
  .related-links > a > span:last-child {
    margin-left: auto;
  }
  .related-art {
    width: 45px;
    height: 37px;
  }
  .modal-actions {
    flex-direction: column-reverse;
  }
  .modal-actions > .button {
    width: 100%;
  }
  dialog {
    padding: 23px 20px;
    border-radius: 18px;
  }
  dialog h2 {
    font-size: 26px;
  }
  .merge-demo {
    gap: 9px;
    padding: 15px;
  }
  .merge-demo > span {
    width: 43px;
    height: 43px;
  }
  .help-steps {
    margin: 20px 0;
  }
  .help-steps li > p {
    font-size: 12px;
  }
  .setting-row {
    gap: 12px;
  }
  .setting-row small {
    font-size: 10px;
  }
  .small {
    font-size: 10px;
    padding: 8px;
  }
  .eyebrow {
    letter-spacing: 1.3px;
  }
}
@media (max-width: 360px) {
  .hero h1 {
    font-size: 48px;
  }
  .header-inner,
  main {
    padding-left: 15px;
    padding-right: 15px;
  }
  .brand {
    font-size: 21px;
  }
  .brand-symbol {
    width: 29px;
    height: 29px;
  }
  .header-inner {
    gap: 11px;
  }
  .nav-link {
    font-size: 9px;
  }
  .game-grid {
    gap: 10px;
  }
  .card-body {
    padding: 10px 9px;
  }
  .card-heading h3 {
    font-size: 12px;
  }
  .card-body > p {
    font-size: 9px;
  }
  .card-meta {
    font-size: 7px;
  }
  .stat > strong {
    font-size: 19px;
  }
  .game-stats {
    gap: 16px;
  }
  .number-tile > span {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
.inline-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex-shrink: 0;
}
.nav-link .inline-icon {
  width: 13px;
  height: 13px;
  margin-left: 5px;
}
.credit .inline-icon {
  width: 11px;
  height: 11px;
}
.feature-button .inline-icon {
  width: 24px;
  height: 24px;
}
.card-arrow .inline-icon {
  width: 19px;
  height: 19px;
}
.down-arrow {
  display: inline-flex;
  transform: rotate(90deg);
}
.canvas-wrap .board-overlay {
  background: #10181eb8;
  backdrop-filter: none;
}
/* New arrivals */
.art-mint {
  background: #9ac7b3;
}
.art-sand {
  background: #d9c49a;
}
.art-night {
  background: #29414a;
}
.art-night .game-category {
  color: #e4ebcf;
  background: #10212a4d;
  border-color: #aac39930;
}
.new-game {
  position: absolute;
  top: 13px;
  right: 14px;
  padding: 3px 8px;
  background: #1c2a20;
  color: #d3f6a1;
  font-size: 8px;
  letter-spacing: 1px;
  font-weight: 800;
  border-radius: 5px;
}
.blocks-shell,
.mines-shell {
  position: relative;
}
.blocks-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  background: #1b302d;
  border: 1px solid #3b5c51;
  border-radius: 13px;
  padding: 9px;
  max-width: 400px;
  margin: auto;
}
.block-cell {
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid #3b5148;
  background: #273e35;
  border-radius: 5px;
  padding: 0;
  transition: background 0.12s;
  position: relative;
}
.block-cell.filled {
  background: #aed873;
  border-color: #c5eb91;
  box-shadow: inset 0 -3px #759d4b;
}
.block-cell.preview {
  background: #b8e47b;
  border: 2px solid #edffd4;
  opacity: 0.75;
}
.block-cell.invalid {
  background: #8b5149;
  border-color: #d7907f;
}
.block-cell:hover:not(.filled) {
  border-color: #a4c58a;
}
.block-tray {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin: 18px auto 0;
  max-width: 400px;
}
.piece-slot {
  min-height: 113px;
  border-radius: 12px;
  background: #242e2a;
  border: 1px solid #435442;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 12px 6px;
  touch-action: none;
  user-select: none;
}
.piece-slot > span:last-child {
  font-size: 9px;
  color: #b2c2a4;
}
.piece-slot.selected {
  border-color: var(--lime);
  background: #33482b;
  box-shadow: 0 0 0 1px var(--lime);
}
.piece-slot.no-fit {
  border-style: dashed;
  opacity: 0.65;
}
.piece-slot.used {
  border-style: dashed;
  opacity: 0.5;
}
.piece-slot.used > span:first-child {
  font-size: 27px;
  color: var(--lime);
}
.piece-shape {
  display: grid;
  grid-template-columns: repeat(var(--piece-width), 18px);
  grid-template-rows: repeat(var(--piece-height), 18px);
  gap: 3px;
  min-height: 38px;
  align-content: center;
}
.piece-shape i {
  border-radius: 3px;
  background: #c3e68f;
  box-shadow: inset 0 -3px #86aa5a;
}
.blocks-demo {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  margin: 23px 0;
}
.blocks-demo > span {
  width: 30px;
  height: 30px;
  background: #b8db8c;
  border-radius: 5px;
}
.blocks-demo > b {
  font-size: 16px;
  color: var(--lime);
  margin-left: 8px;
}
.mines-scroll {
  overflow: auto;
  max-width: 100%;
  padding: 3px;
  overscroll-behavior: contain;
  border-radius: 12px;
}
.mines-grid {
  display: grid;
  grid-template-columns: repeat(var(--mine-columns), minmax(29px, 1fr));
  gap: 4px;
  padding: 7px;
  border: 1px solid #63553e;
  background: #302c26;
  border-radius: 12px;
  min-width: calc(var(--mine-size) * 33px + 14px);
  width: 100%;
  touch-action: pan-x pan-y;
}
.mine-cell {
  padding: 0;
  border-radius: 5px;
  border: 1px solid #7a715e;
  background: #635d4d;
  box-shadow: inset 0 -3px #4c453a;
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  place-items: center;
  position: relative;
  font-weight: 800;
  font-size: 18px;
  color: #e8e1d2;
  user-select: none;
}
.mine-cell:hover:not(.revealed) {
  background: #84785f;
  border-color: #c4b081;
}
.mine-cell.revealed {
  background: #292c2a;
  border-color: #3c4239;
  box-shadow: none;
}
.mine-cell.revealed[data-number="1"] {
  color: #a5c5f4;
}
.mine-cell.revealed[data-number="2"] {
  color: #c1e395;
}
.mine-cell.revealed[data-number="3"] {
  color: #f1b29d;
}
.mine-cell.revealed[data-number="4"] {
  color: #c7adf0;
}
.mine-cell.revealed[data-number="5"],
.mine-cell.revealed[data-number="6"],
.mine-cell.revealed[data-number="7"],
.mine-cell.revealed[data-number="8"] {
  color: #f4d891;
}
.mine-cell svg {
  width: 19px;
  height: 19px;
  color: #f2cc87;
}
.mine-cell.mine-visible {
  background: #524537;
  border-color: #9a7c57;
}
.mine-cell.exploded {
  background: #975446;
  border-color: #f3ab8d;
}
.mine-cell.wrong-flag {
  background: #5c3d36;
  color: #f2b99b;
  font-size: 23px;
}
.mine-dot {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ecd4a3;
  box-shadow:
    0 -6px 0 -5px #ecd4a3,
    0 6px 0 -5px #ecd4a3,
    6px 0 0 -5px #ecd4a3,
    -6px 0 0 -5px #ecd4a3;
}
.flag-toggle svg {
  width: 18px;
  height: 18px;
}
.flag-toggle[aria-pressed="true"] {
  background: #5a4a2e;
  border-color: #d6bd7d;
  color: #ffe4a2;
}
.flagging .mine-cell:not(.revealed) {
  border-color: #b69d60;
}
.mine-result {
  margin: 16px 0 0;
  padding: 18px;
  background: #292f25;
  border: 1px solid #5d6d44;
  border-radius: 12px;
  text-align: center;
}
.mine-result strong {
  font-size: 16px;
}
.mine-result p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 12px;
}
.mine-result .button {
  padding: 9px 17px;
}
.mines-demo {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin: 23px 0;
}
.mines-demo > span {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  background: #665c46;
  border-radius: 7px;
  color: #d4e5b8;
  font-size: 24px;
  font-weight: 800;
}
.mines-demo > span:first-child {
  color: #b5d1f8;
}
.dash-wrap {
  border-color: #3f5a4c;
  background: #172731;
  touch-action: manipulation;
}
.dash-wrap canvas {
  min-height: 200px;
}
.dash-wrap .board-overlay {
  gap: 12px;
  padding: 18px;
  background: #111e28d1;
}
.dash-wrap .board-overlay h2 {
  font-size: 25px;
}
.dash-wrap .board-overlay p {
  font-size: 12px;
  line-height: 1.5;
}
.dash-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 22px 0;
}
.dash-demo > span {
  padding: 10px 12px;
  border-radius: 9px;
  background: #33432c;
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
}
.dash-demo > b {
  color: #adc394;
}
.dash-wrap ~ .game-feedback {
  min-height: 30px;
}
@media (max-width: 540px) {
  .blocks-grid {
    gap: 4px;
    padding: 7px;
  }
  .block-cell {
    border-radius: 4px;
  }
  .block-tray {
    gap: 8px;
    margin-top: 14px;
  }
  .piece-slot {
    min-height: 108px;
    padding: 10px 3px;
    gap: 10px;
  }
  .piece-shape {
    grid-template-columns: repeat(var(--piece-width), 15px);
    grid-template-rows: repeat(var(--piece-height), 15px);
    gap: 3px;
  }
  .piece-slot > span:last-child {
    font-size: 8px;
  }
  .new-game {
    font-size: 7px;
    top: 8px;
    right: 8px;
    padding: 2px 6px;
  }
  .mines-scroll {
    padding: 1px;
  }
  .mine-cell {
    font-size: 16px;
  }
  .dash-wrap .board-overlay {
    gap: 9px;
    padding: 13px;
  }
  .dash-wrap .board-overlay h2 {
    font-size: 21px;
  }
  .dash-wrap .board-overlay p {
    font-size: 11px;
  }
  .dash-wrap .board-overlay .button {
    min-height: 38px;
    padding: 8px 14px;
  }
  .mines-demo > span {
    width: 40px;
    height: 40px;
  }
}
.button.flag-toggle > span:not(.sr-only) {
  font-size: 12px;
  line-height: 1.5;
}
/* A new round of little escapes */
.art-fairway {
  background: #94b8a3;
}
.art-paper {
  background: #d8d1af;
}
.art-lavender {
  background: #a5a6cb;
}
.course-name {
  color: #c0d4ac;
  text-align: center;
  font-size: 12px;
  margin-bottom: 13px;
}
.golf-wrap {
  border-color: #57725c;
  touch-action: none;
}
.golf-wrap canvas {
  min-height: 220px;
}
.golf-scorecard {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
  margin: 15px auto 0;
  max-width: 420px;
}
.golf-hole-chip {
  border: 1px solid #3e5141;
  border-radius: 8px;
  background: #25362b;
  text-align: center;
  padding: 5px;
}
.golf-hole-chip span {
  display: block;
  color: #a7b8a0;
  font-size: 9px;
}
.golf-hole-chip strong {
  display: block;
  font-size: 14px;
  color: #a5ad9c;
}
.golf-hole-chip.current {
  border-color: #c7ef8f;
}
.golf-hole-chip.finished strong {
  color: var(--lime);
}
.golf-sliders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  padding: 0 8px 3px;
}
.golf-sliders label {
  display: grid;
  grid-template-columns: 1fr auto;
  font-size: 11px;
  color: var(--muted);
  gap: 6px;
}
.golf-sliders output {
  color: #dfedc2;
  font-size: 11px;
}
.golf-sliders input {
  grid-column: 1/-1;
  width: 100%;
  margin: 5px 0;
  min-height: 28px;
  accent-color: var(--lime);
  cursor: pointer;
}
.golf-wrap .board-overlay,
.stack-wrap .board-overlay {
  padding: 15px;
  gap: 11px;
}
.golf-wrap .board-overlay h2,
.stack-wrap .board-overlay h2 {
  font-size: 23px;
}
.golf-wrap .board-overlay p {
  font-size: 12px;
  line-height: 1.6;
}
.golf-demo {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  margin: 23px 0;
  font-size: 34px;
  color: var(--lime);
}
.golf-demo > b {
  font-size: 24px;
  letter-spacing: 3px;
  color: #a3bc8c;
}
.stack-wrap {
  border-color: #555c79;
  touch-action: manipulation;
}
.stack-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 22px 0;
}
.stack-demo > i {
  display: block;
  width: 140px;
  height: 22px;
  border-radius: 5px;
  background: #ccb8e4;
}
.stack-demo > i:nth-child(2) {
  width: 125px;
  background: #b8d2cc;
}
.stack-demo > i:last-child {
  width: 110px;
  background: #e6c999;
}
.word-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}
.word-options label {
  gap: 9px;
}
.word-shell {
  position: relative;
}
.word-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
  background: #30372c;
  border: 1px solid #65714d;
  border-radius: 14px;
  padding: 9px;
  touch-action: none;
  user-select: none;
}
.letter-cell {
  aspect-ratio: 1;
  min-width: 0;
  border: 1px solid #5c654f;
  border-radius: 6px;
  background: #424b39;
  color: #f1eedc;
  font-size: 22px;
  font-weight: 750;
  padding: 0;
  display: grid;
  place-items: center;
  position: relative;
}
.letter-cell:hover {
  border-color: #d4e7a7;
}
.letter-cell.word-found {
  background: #47673b;
  color: #e0f6bd;
  border-color: #91b66e;
}
.letter-cell.selecting {
  background: #897342;
  color: #fff2c9;
  border-color: #f6d68a;
  box-shadow: inset 0 0 0 1px #f6d68a;
}
.letter-cell.word-hint {
  outline: 3px solid #d3b8ef;
  outline-offset: -4px;
}
.word-selection {
  text-align: center;
  color: #c3d5a6;
  font-size: 12px;
  min-height: 24px;
  margin: 12px 0;
}
.word-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.word-list li {
  background: #292f25;
  border: 1px solid #46503a;
  border-radius: 7px;
  padding: 7px 8px;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 1px;
  font-weight: 650;
}
.word-list li > span {
  font-size: 11px;
  color: #90a57a;
}
.word-list li.found {
  color: #bcdfa2;
  border-color: #6a8751;
  text-decoration: line-through;
}
.word-list li.found > span {
  font-size: 0;
}
.word-list li.found > span::after {
  content: "✓";
  font-size: 12px;
  text-decoration: none;
}
.hint-note {
  font-size: 10px;
  text-align: center;
  color: var(--muted);
}
.word-demo {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin: 24px 0;
}
.word-demo > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #516f40;
  color: #e7f3c9;
  border: 1px solid #a1bb7a;
  border-radius: 7px;
  font-size: 21px;
  font-weight: 800;
}
.word-shell .board-overlay h2 {
  font-size: 23px;
}
@media (max-width: 540px) {
  .golf-sliders {
    gap: 15px;
    padding: 0;
  }
  .golf-scorecard {
    gap: 5px;
  }
  .golf-wrap .board-overlay h2,
  .stack-wrap .board-overlay h2 {
    font-size: 21px;
  }
  .golf-wrap .board-overlay .button,
  .stack-wrap .board-overlay .button {
    font-size: 12px;
    min-height: 39px;
    padding: 9px 14px;
  }
  .word-grid {
    gap: 4px;
    padding: 7px;
  }
  .letter-cell {
    font-size: 18px;
    border-radius: 5px;
  }
  .word-list {
    gap: 6px;
  }
  .word-list li {
    padding: 7px 5px;
    font-size: 10px;
    letter-spacing: 0.7px;
    gap: 5px;
  }
  .word-selection {
    font-size: 11px;
  }
  .word-options {
    gap: 9px;
  }
  .word-options label {
    font-size: 10px;
  }
  .word-options select {
    font-size: 10px;
    padding: 7px 8px;
  }
  .word-demo > span {
    width: 34px;
    height: 37px;
    font-size: 19px;
  }
  .word-shell .board-overlay {
    padding: 14px;
    gap: 10px;
  }
  .word-shell .board-overlay h2 {
    font-size: 22px;
  }
  .word-shell .board-overlay p {
    font-size: 12px;
  }
}
.skip-link {
  top: 10px;
  clip-path: inset(50%);
}
.skip-link:focus {
  clip-path: none;
}
.game-stats {
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 8px;
}
/* Clean navigation, sharing and the larger arcade games */
.game-page-heading {
  flex-wrap: wrap;
}
.game-page-heading > div {
  min-width: 0;
}
.game-page-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.game-page-actions .button {
  gap: 10px;
}
.share-url {
  display: block;
  width: 100%;
  background: #111922;
  border: 1px solid #526246;
  border-radius: 9px;
  color: #d2e9ad;
  padding: 13px;
  font-size: 12px;
  margin-top: 18px;
}
.art-racing {
  background: #83ac8c;
}
.art-defense {
  background: #8bb398;
}
.rally-options,
.defense-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  flex-wrap: wrap;
}
.rally-options label,
.defense-options label {
  gap: 9px;
}
.rally-wrap {
  border-color: #617362;
  touch-action: manipulation;
}
.rally-wrap canvas {
  min-height: 215px;
}
.rally-road-status {
  font-size: 11px;
  color: #c0d1aa;
  text-align: center;
  margin: 12px 0 0;
  min-height: 35px;
}
.rally-pad {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 340px;
  justify-content: center;
}
.rally-pad button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  border: 1px solid #5a6d4a;
  background: #2c3d2d;
  border-radius: 12px;
  width: 94px;
  min-height: 66px;
  font-size: 28px;
  line-height: 1;
  touch-action: none;
  user-select: none;
}
.rally-pad small {
  font-size: 8px;
  letter-spacing: 1px;
  color: #bcd59c;
}
.rally-pad .pressed {
  background: #557044;
  border-color: var(--lime);
}
.rally-demo {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}
.rally-demo span {
  font-size: 11px;
  font-weight: bold;
  padding: 13px 10px;
  border: 1px solid #6d8652;
  background: #34492c;
  color: #d4eab4;
  border-radius: 8px;
}
.defense-wrap {
  position: relative;
  border-color: #5c7755;
}
.defense-wrap canvas {
  pointer-events: none;
}
.defense-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
}
.defense-grid button {
  background: transparent;
  border: 1px solid transparent;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 4px;
  touch-action: manipulation;
}
.defense-grid button:hover {
  border-color: #f1e6bc88;
}
.defense-grid button.selected {
  border: 2px solid #e8f4ac;
  background: #daf6ac16;
}
.defense-grid button:focus-visible {
  outline: 2px solid #fff0ba;
  outline-offset: -3px;
}
.tower-choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 15px 0;
}
.tower-choice {
  border: 1px solid #4b6341;
  border-radius: 11px;
  background: #293827;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 13px 5px;
  min-height: 102px;
}
.tower-choice i {
  display: block;
  width: 20px;
  height: 20px;
  background: var(--tower-color);
  border: 4px solid #243e2a;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--tower-color);
  margin-bottom: 3px;
}
.tower-choice strong {
  font-size: 12px;
}
.tower-choice small {
  font-size: 10px;
  color: #b8c79d;
}
.tower-choice[aria-pressed="true"] {
  border-color: var(--lime);
  background: #3b4e30;
  box-shadow: inset 0 0 0 1px #b4d97f;
}
.tower-details {
  background: #263225;
  border: 1px solid #47583a;
  border-radius: 12px;
  padding: 16px;
}
.tower-details h3 {
  font-size: 14px;
  color: #e1edc5;
}
.tower-details p {
  font-size: 11px;
  color: #b1c0a2;
  line-height: 1.8;
  margin: 7px 0 12px;
}
.tower-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tower-actions .button {
  padding: 9px 12px;
  font-size: 11px;
  min-height: 40px;
}
.defense-enemies {
  font-size: 10px;
  color: #b0c294;
}
.defense-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 24px 0;
}
.defense-demo span {
  background: #35472d;
  border: 1px solid #6c8550;
  border-radius: 8px;
  padding: 10px;
  font-size: 10px;
  color: #daf1b8;
  font-weight: 700;
}
.defense-demo b {
  color: #93ad79;
}
.defense-wrap .board-overlay {
  padding: 14px;
  gap: 10px;
}
.defense-wrap .board-overlay h2 {
  font-size: 24px;
}
.defense-wrap .board-overlay p {
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 540px) {
  .game-page-actions {
    width: 100%;
    gap: 8px;
  }
  .game-page-actions .button {
    font-size: 11px;
    padding: 9px 12px;
    min-height: 40px;
  }
  .rally-options {
    gap: 8px;
  }
  .rally-options label {
    font-size: 10px;
    gap: 7px;
  }
  .rally-options select {
    font-size: 10px;
    padding: 7px;
  }
  .rally-pad {
    gap: 9px;
  }
  .rally-pad button {
    width: 85px;
    min-height: 64px;
  }
  .rally-road-status {
    font-size: 10px;
  }
  .tower-choices {
    gap: 7px;
  }
  .tower-choice {
    padding: 11px 3px;
    min-height: 96px;
  }
  .tower-choice strong {
    font-size: 11px;
  }
  .tower-choice small {
    font-size: 9px;
  }
  .tower-details {
    padding: 13px;
  }
  .tower-details h3 {
    font-size: 13px;
  }
  .tower-details p {
    font-size: 10px;
  }
  .defense-wrap .board-overlay h2 {
    font-size: 19px;
  }
  .defense-wrap .board-overlay p {
    font-size: 11px;
  }
  .defense-wrap .board-overlay .button {
    font-size: 11px;
    padding: 8px 12px;
    min-height: 37px;
  }
}
.rally-wrap .board-overlay {
  padding: 14px;
  gap: 10px;
}
.rally-wrap .board-overlay h2 {
  font-size: 22px;
  line-height: 1.25;
}
.rally-wrap .board-overlay p {
  font-size: 12px;
  line-height: 1.6;
}
.rally-wrap .board-overlay .button {
  padding: 9px 14px;
  min-height: 39px;
}
.defense-result {
  margin-top: 15px;
  padding: 18px;
  border: 1px solid #789251;
  border-radius: 12px;
  background: #293b26;
  text-align: center;
}
.defense-result h2 {
  font-size: 20px;
  line-height: 1.3;
  color: #e4efc6;
}
.defense-result p {
  font-size: 12px;
  color: #c0cead;
  margin: 9px 0 14px;
}
.defense-result .button {
  font-size: 12px;
  padding: 10px 15px;
}
@media (max-width: 540px) {
  .rally-wrap .board-overlay p {
    font-size: 11px;
  }
  .defense-result h2 {
    font-size: 18px;
  }
  .defense-result p {
    font-size: 11px;
  }
}
/* Little farm journeys and two different kinds of open road. */
.art-harvest {
  background: #b4c98d;
}
.art-highway {
  background: #9dbbb6;
}
.art-trails {
  background: #b8c7b5;
}
.harvest-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
  width: min(100%, 420px);
  padding: 9px;
  border: 1px solid #527052;
  border-radius: 17px;
  background: #253e30;
  aspect-ratio: 1;
  touch-action: none;
}
.crop-cell {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 2px;
  aspect-ratio: 1;
  border: 1px solid #657550;
  border-radius: 10px;
  background: #3a513a;
  cursor: pointer;
  transition:
    transform 0.18s,
    background 0.18s,
    opacity 0.18s;
}
.crop-cell svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 3px 1px #14291a55);
}
.crop-cell:disabled {
  cursor: default;
  opacity: 1;
}
.crop-cell.selected {
  background: #647749;
  border-color: #edecb6;
  outline: 2px solid #f1e3a2;
  outline-offset: 1px;
  z-index: 1;
}
.crop-cell.hinted {
  border-color: #e5eaba;
  box-shadow: inset 0 0 0 2px #dae899;
}
.crop-cell.garden-patch {
  background: #648249;
  box-shadow: inset 0 -5px #789647;
}
.crop-cell.thick-patch {
  background: #7c9347;
  border: 2px dashed #bfd47d;
}
.crop-cell.clearing {
  opacity: 0.15;
  transform: scale(0.65) rotate(9deg);
}
.crop-special {
  position: absolute;
  bottom: 0;
  right: 1px;
  min-width: 19px;
  border-radius: 5px;
  background: #f3e8ba;
  color: #374a31;
  font-weight: 900;
  font-size: 16px;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 1px 4px #16352177;
}
.harvest-goals {
  display: flex;
  gap: 9px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 0 14px;
}
.harvest-goal {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #57654b;
  border-radius: 10px;
  color: #edf0d3;
  background: #2d3c2b;
  font-size: 16px;
  font-weight: 800;
}
.harvest-goal svg {
  width: 32px;
  height: 32px;
}
.harvest-goal small {
  font-size: 11px;
  color: #bdc7ac;
  font-weight: 500;
}
.harvest-goal.complete {
  border-color: #b2d17d;
  background: #425d34;
}
.grass-icon {
  color: #c9e398;
  font-size: 28px;
}
.harvest-tip {
  max-width: 420px;
  text-align: center;
  color: #bdc8ab;
  font-size: 12px;
  line-height: 1.7;
  margin: 13px 0 0;
}
.harvest-paused {
  opacity: 0.55;
}
.harvest-map,
.traffic-garage {
  width: 100%;
  background: #202e28;
  border: 1px solid #465c43;
  border-radius: 14px;
  padding: 19px;
  margin-top: 18px;
}
.harvest-map h3,
.traffic-garage h3 {
  font-size: 18px;
  color: #e0e9c6;
}
.harvest-map p,
.traffic-garage p {
  color: #becab1;
  font-size: 12px;
  line-height: 1.7;
  margin: 7px 0 14px;
}
.harvest-levels {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 7px;
}
.harvest-levels button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 56px;
  border: 1px solid #5c7650;
  border-radius: 9px;
  background: #354932;
  color: #e4eccb;
  cursor: pointer;
  gap: 3px;
}
.harvest-levels strong {
  font-size: 17px;
}
.harvest-levels small {
  font-size: 9px;
  color: #e3d99e;
}
.harvest-levels button:disabled {
  opacity: 0.4;
  cursor: default;
}
.harvest-levels [aria-current] {
  border-color: #d1e99c;
  background: #536b3e;
}
.harvest-demo {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin: 25px 0;
  color: #f39d99;
}
.harvest-demo span {
  display: grid;
  place-items: center;
  width: 41px;
  height: 43px;
  background: #3b5134;
  border: 1px solid #657a4c;
  border-radius: 8px;
  font-size: 28px;
}
.harvest-demo strong {
  font-size: 12px;
  color: #d9e9af;
}
.harvest-demo b {
  color: #d1ddb5;
}
.traffic-wrap {
  width: min(100%, 410px);
  aspect-ratio: 5/6;
}
.moto-wrap {
  width: min(100%, 640px);
  aspect-ratio: 32/21;
}
.traffic-wrap canvas,
.moto-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.traffic-instruments {
  width: min(100%, 410px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: #d4ddbf;
  margin-bottom: 11px;
  flex-wrap: wrap;
}
.traffic-instruments label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.traffic-instruments meter {
  width: 65px;
  height: 12px;
  accent-color: #bcd98e;
}
.drive-status {
  margin: 12px 0 0;
  max-width: 560px;
  text-align: center;
  color: #bac9b0;
  font-size: 12px;
  line-height: 1.7;
}
.traffic-pad,
.moto-pad {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 450px;
}
.traffic-pad button,
.moto-pad button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 73px;
  min-width: 0;
  border: 1px solid #4d6657;
  border-radius: 12px;
  color: #dbe8c3;
  background: #283d32;
  font: inherit;
  font-size: 24px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.traffic-pad small,
.moto-pad small {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
}
.traffic-pad .pressed,
.moto-pad .pressed {
  color: #203420;
  background: #c7e69b;
  border-color: #d7f0b4;
}
.traffic-pad button[data-drive="boost"] {
  background: #284c50;
  border-color: #598183;
}
.traffic-pad button[data-drive="boost"].pressed {
  background: #afe1d7;
  color: #1e383a;
}
.garage-cars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.garage-cars button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 16px 6px;
  border: 1px solid #55705c;
  background: #2d4135;
  color: #e2ead0;
  border-radius: 11px;
  cursor: pointer;
}
.garage-cars button:disabled {
  opacity: 0.45;
  cursor: default;
}
.garage-cars [aria-pressed="true"] {
  border-color: #c7e69b;
  background: #475b36;
}
.garage-cars strong {
  font-size: 12px;
}
.garage-cars small,
.traffic-garage > small {
  font-size: 10px;
  color: #c6d0b6;
  line-height: 1.7;
}
.traffic-garage > small {
  display: block;
  margin-top: 13px;
}
.garage-car {
  width: 29px;
  height: 52px;
  border-radius: 8px;
  background: var(--car);
  border: 3px solid #536259;
  position: relative;
  box-shadow:
    -4px 0 #192a27,
    4px 0 #192a27;
}
.garage-car:after {
  content: "";
  position: absolute;
  inset: 13px 3px;
  border-radius: 4px;
  background: #38555b;
  border-top: 5px solid #99c1bf;
}
.moto-progress {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: #c8d7b5;
  margin-bottom: 12px;
}
.moto-progress progress {
  width: 45%;
  height: 8px;
  accent-color: #b9d98e;
}
.race-result {
  margin-top: 14px;
  width: 100%;
  padding: 20px;
  border: 1px solid #6a8350;
  border-radius: 13px;
  background: #293b28;
  text-align: center;
}
.race-result h2 {
  font-size: 23px;
  line-height: 1.3;
  color: #e4edcf;
}
.race-result p {
  font-size: 12px;
  line-height: 1.8;
  margin: 9px 0 16px;
  color: #c2ceb2;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}
.result-actions .button {
  font-size: 12px;
  padding: 11px 15px;
}
@media (max-width: 540px) {
  .harvest-board {
    gap: 4px;
    padding: 6px;
    border-radius: 12px;
  }
  .crop-cell {
    border-radius: 7px;
    padding: 0;
  }
  .crop-special {
    font-size: 13px;
    min-width: 15px;
    line-height: 16px;
  }
  .harvest-goals {
    gap: 6px;
  }
  .harvest-goal {
    padding: 5px 7px;
    gap: 4px;
    font-size: 13px;
  }
  .harvest-goal svg {
    width: 25px;
    height: 25px;
  }
  .harvest-goal small {
    font-size: 10px;
  }
  .harvest-tip,
  .drive-status {
    font-size: 11px;
  }
  .harvest-map,
  .traffic-garage {
    padding: 12px;
  }
  .harvest-levels {
    gap: 5px;
  }
  .harvest-levels button {
    min-height: 47px;
  }
  .traffic-pad,
  .moto-pad {
    gap: 6px;
  }
  .traffic-pad button,
  .moto-pad button {
    min-height: 66px;
    font-size: 22px;
    border-radius: 9px;
  }
  .traffic-pad small,
  .moto-pad small {
    font-size: 8px;
    letter-spacing: 0;
  }
  .garage-cars {
    gap: 6px;
  }
  .garage-cars strong {
    font-size: 10px;
  }
  .traffic-instruments {
    font-size: 10px;
  }
  .race-result {
    padding: 16px;
  }
  .race-result h2 {
    font-size: 19px;
  }
}
.journey-options {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.journey-options label {
  min-width: 0;
}
.journey-options select {
  min-width: 0;
}
.harvest-board {
  margin: auto;
}
.traffic-instruments {
  margin: 0 auto 11px;
}
.moto-stage {
  max-width: 640px;
}
.drive-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
@media (max-width: 540px) {
  .journey-options label {
    flex: 1 1 220px;
  }
  .drive-actions .button {
    font-size: 12px;
    padding: 10px 13px;
  }
}
.library-empty {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
  line-height: 1.8;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.hero h1,
#library-title,
.game-card h3,
.game-page-heading h1,
.feature-bottom strong {
  overflow-wrap: anywhere;
}
