@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Zen+Maru+Gothic:wght@400;500;700;900&display=swap");
:root {
  --paper: #f8f7f0;
  --ink: #2e483d;
  --muted: #737b6e;
  --line: #dfe3d7;
  --green: #365c47;
  --white: #fffef9;
  --accent: #7959ae;
  --tint: #e7dff5;
  --font:
    "DM Sans", "Zen Maru Gothic", -apple-system, BlinkMacSystemFont, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button {
  border: 0;
}
svg {
  flex-shrink: 0;
}
img,
svg {
  max-width: 100%;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
canvas:focus-visible {
  outline: 3px solid #b57537;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: "Zen Maru Gothic", var(--font);
  letter-spacing: 0.025em;
}
h1 {
  font-weight: 900;
}
button {
  font-weight: 700;
}
.container {
  width: min(1180px, calc(100% - 80px));
  margin-inline: auto;
}
.site-header {
  height: 100px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.brand-mark {
  width: 37px;
  height: 39px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  transform: rotate(-8deg);
}
.brand-mark i:nth-child(1) {
  background: #799e83;
  border-radius: 12px 12px 3px 12px;
}
.brand-mark i:nth-child(2) {
  background: #d89767;
  border-radius: 12px 12px 12px 3px;
}
.brand-mark i:nth-child(3) {
  background: #c5b0d3;
  border-radius: 12px 3px 12px 12px;
}
.brand-mark i:nth-child(4) {
  background: #d8bd76;
  border-radius: 3px 12px 12px 12px;
}
.brand-name {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: 0.035em;
}
.brand-name small {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 9px;
  letter-spacing: 0.21em;
  margin-top: 7px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
}
.header-nav a {
  position: relative;
  padding: 12px 0;
}
.header-nav a.active:after {
  content: "";
  height: 3px;
  background: var(--green);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 3px;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}
.icon-btn {
  background: transparent;
  border: 1px solid var(--line);
  height: 42px;
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 50%;
  transition: background 0.2s;
}
.icon-btn:hover {
  background: #e9edde;
}
.collection {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.collection svg {
  color: #b89442;
  fill: #f3df9f;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
}
.eyebrow:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #93a981;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 54px 0 55px;
}
.hero h1 {
  font-size: clamp(34px, 3.75vw, 50px);
  line-height: 1.55;
  letter-spacing: 0.05em;
  margin: 17px 0;
}
.hero h1 span {
  color: #6f8970;
  position: relative;
  white-space: nowrap;
}
.hero h1 span:after {
  content: "";
  position: absolute;
  height: 7px;
  bottom: 2px;
  left: 0;
  right: 0;
  background: #e4bd78;
  z-index: -1;
  border-radius: 50%;
}
.hero-copy > p {
  color: var(--muted);
  line-height: 2;
  font-size: 14px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 21px;
  margin-top: 28px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 10px;
  padding: 14px 23px;
  min-height: 50px;
  background: var(--green);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition:
    transform 0.18s,
    background 0.18s;
}
.btn:hover {
  background: #244a34;
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(1px);
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.secondary:hover {
  background: #e9edde;
}
.btn.soft {
  background: var(--tint);
  color: var(--ink);
}
.text-link {
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  background: none;
  padding: 8px 0;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 23px;
  font-size: 11px;
  color: var(--muted);
}
.hero-note .note-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a1ac96;
  margin: 0 4px;
}
.feature-card {
  position: relative;
  background: #e7edde;
  border: 1px solid #dbe3d1;
  border-radius: 24px;
  min-height: 320px;
  overflow: hidden;
  transform: rotate(1deg);
  padding: 25px 30px 24px;
  isolation: isolate;
}
.feature-card:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#69806825 0.65px, transparent 0.65px);
  background-size: 7px 7px;
  opacity: 0.33;
  z-index: -1;
}
.feature-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: #ffffff9c;
  border: 1px solid #ffffffaa;
  border-radius: 6px;
  padding: 5px 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.feature-caption {
  font-size: 10px;
  letter-spacing: 0.17em;
}
.feature-card .game-art {
  width: 300px;
  height: 233px;
  display: block;
  margin: -4px auto -19px;
  transition: transform 0.4s;
}
.feature-card:hover .game-art {
  transform: rotate(-4deg) translateY(-4px);
}
.feature-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.feature-bottom p {
  font-size: 11px;
  color: #657962;
}
.feature-bottom h2 {
  font-size: 21px;
  margin-top: 2px;
}
.round-arrow {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
}
.feature-sticker {
  position: absolute;
  right: 24px;
  top: 76px;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #f5e7b6;
  display: grid;
  place-content: center;
  text-align: center;
  line-height: 1.35;
  font-size: 10px;
  transform: rotate(12deg);
  border: 1px dashed #bda362;
}
.feature-sticker strong {
  font-size: 17px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  margin-bottom: 23px;
}
.section-heading h2 {
  font-size: 24px;
}
.section-heading h2 span {
  font-family: "DM Sans", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e6eadf;
  min-width: 28px;
  height: 25px;
  border-radius: 7px;
  font-size: 12px;
  vertical-align: middle;
  letter-spacing: 0;
  margin-left: 10px;
}
.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.little-note {
  font-size: 11px;
  color: var(--muted);
}
.filter-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 25px;
}
.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter {
  background: none;
  border: 1px solid var(--line);
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  min-height: 40px;
}
.filter.active {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.filter:hover:not(.active) {
  background: #e9edde;
}
.search-box {
  position: relative;
  min-width: 188px;
}
.search-box svg {
  position: absolute;
  left: 12px;
  top: 13px;
  color: #8a9381;
}
.search-box input {
  padding: 11px 12px 11px 37px;
  width: 190px;
  border: 1px solid var(--line);
  background: #fffdf5;
  border-radius: 8px;
  font-size: 12px;
  color: var(--ink);
}
.games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.game-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.22s,
    box-shadow 0.22s;
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 25px #2946350b;
}
.card-link {
  display: block;
  height: 100%;
}
.card-art {
  position: relative;
  height: 202px;
  background: var(--tint);
  overflow: hidden;
}
.card-art .game-art {
  width: 100%;
  height: 100%;
  transition: transform 0.35s;
}
.game-card:hover .card-art .game-art {
  transform: scale(1.04) rotate(-2deg);
}
.card-number {
  position: absolute;
  top: 15px;
  left: 17px;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: #344c4080;
}
.favorite {
  position: absolute;
  z-index: 2;
  right: 13px;
  top: 13px;
  border: 1px solid #ffffff9c;
  background: #ffffff88;
  color: #657666;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.favorite[aria-pressed="true"] {
  color: #b66858;
  background: #fff5ed;
}
.favorite[aria-pressed="true"] svg {
  fill: #b66858;
}
.card-info {
  padding: 19px 20px 17px;
}
.card-overline {
  font-size: 9px;
  letter-spacing: 0.13em;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 7px;
}
.card-info h3 {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}
.card-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.85;
  margin: 8px 0 17px;
  min-height: 44px;
}
.card-meta {
  border-top: 1px solid #e9ebdf;
  padding-top: 13px;
  display: flex;
  gap: 13px;
  align-items: center;
  font-size: 10px;
  color: #747e6d;
}
.card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.card-meta .card-go {
  margin-left: auto;
  color: var(--ink);
}
.empty-state {
  grid-column: 1/-1;
  padding: 50px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.empty-state p {
  color: var(--muted);
  margin: 7px 0 18px;
}
.bottom-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: #e9ecdf;
  border-radius: 16px;
  margin: 42px 0 45px;
  padding: 29px 34px;
}
.bottom-banner h2 {
  font-size: 20px;
}
.bottom-banner p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.banner-doodle {
  font-size: 37px;
  letter-spacing: 10px;
  white-space: nowrap;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 26px 0 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
}
.site-footer strong {
  font-size: 13px;
  color: var(--ink);
}
.footer-right {
  display: flex;
  gap: 20px;
}
.saved-banner {
  margin-bottom: 23px;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.saved-banner a {
  margin-left: auto;
  font-weight: 700;
}
.hidden,
[hidden] {
  display: none !important;
}
.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;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 15px;
  padding: 10px;
  background: var(--white);
  z-index: 200;
}
.skip-link:focus {
  top: 10px;
}
/* A shared play space: calm chrome, expressive games. */
.game-page .site-header {
  height: 81px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 26px;
  font-size: 11px;
  color: var(--muted);
}
.game-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin: 20px 0 25px;
}
.game-heading h1 {
  font-size: 31px;
  margin: 4px 0;
}
.game-heading .eyebrow {
  color: var(--accent);
  font-size: 10px;
}
.game-heading .eyebrow:before {
  background: var(--accent);
}
.game-heading p {
  font-size: 13px;
  color: var(--muted);
}
.game-heading .pill {
  background: var(--white);
  border-color: var(--line);
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: start;
  margin-bottom: 38px;
}
.play-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  overflow: hidden;
}
.play-toolbar {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  gap: 10px;
}
.play-toolbar .toolbar-title {
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #98a987;
}
.toolbar-actions {
  display: flex;
  gap: 4px;
}
.toolbar-actions button {
  border: 0;
  border-radius: 8px;
  padding: 8px;
  background: none;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  min-height: 38px;
}
.toolbar-actions button:hover {
  background: #eef0e7;
}
.arena {
  position: relative;
  min-height: 520px;
  background: #f0f2e9;
  padding: 22px;
  overflow: hidden;
}
.arena[data-kind="memory"] {
  background: #eeebf3;
}
.arena[data-kind="hiragana"] {
  background: #e6f0f0;
}
.arena[data-kind="othello"] {
  background: #dfeae2;
}
.arena[data-kind="car"] {
  background: #e0e9d9;
}
.arena[data-kind="applepie"],
.arena[data-kind="applepie-coop"],
.arena[data-kind="applepie-craft"] {
  background: #f5eada;
}
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  min-height: 465px;
}
.intro .game-art {
  width: 240px;
  height: 183px;
  margin: 0 auto 7px;
}
.intro h2 {
  font-size: 25px;
  margin-bottom: 5px;
}
.intro > p {
  color: var(--muted);
  font-size: 13px;
  max-width: 380px;
}
.game-settings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  margin: 23px 0;
}
.game-settings label {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
  color: #61715f;
  font-weight: 700;
}
.game-settings select {
  border: 1px solid #cdd3c5;
  border-radius: 8px;
  background: #fffef9;
  padding: 10px 32px 10px 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 12px;
  min-height: 43px;
}
.intro .btn {
  min-width: 204px;
}
.play-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 11px 15px;
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  min-height: 39px;
}
.side-card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 13px;
  padding: 20px;
  margin-bottom: 15px;
}
.side-card h2 {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.instructions {
  list-style: none;
  padding: 0;
  margin: 19px 0 0;
  counter-reset: step;
}
.instructions li {
  position: relative;
  padding-left: 31px;
  font-size: 12px;
  color: #61705e;
  line-height: 1.9;
  margin: 14px 0;
  counter-increment: step;
}
.instructions li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--tint);
  font-family: "DM Sans";
  font-size: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent);
}
.tip {
  font-size: 11px;
  line-height: 1.9;
  color: #62735d;
  background: #edf0e4;
  border-radius: 8px;
  padding: 12px;
  margin-top: 17px;
}
.record-value {
  font-size: 27px;
  line-height: 1.3;
  margin: 16px 0 5px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.record-note {
  font-size: 10px;
  color: var(--muted);
}
.star-row {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  color: #cdd2c1;
}
.star-row .earned {
  color: #c99e43;
  fill: #eccc7e;
}
.next-game {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}
.next-game .game-art {
  width: 72px;
  height: 64px;
  background: var(--tint);
  border-radius: 8px;
}
.next-game span {
  font-size: 12px;
  font-weight: 700;
}
.next-game small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.hud {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 19px;
}
.hud-item {
  background: #fffef9d9;
  border: 1px solid #ffffffbb;
  border-radius: 10px;
  min-width: 92px;
  padding: 8px 16px;
  text-align: center;
}
.hud-label {
  font-size: 10px;
  display: block;
  color: #747d6f;
}
.hud-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.game-message {
  min-height: 34px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0 auto 14px;
}
.game-message.good {
  color: #3c7958;
}
.game-message.warm {
  color: #aa653e;
}
.progress {
  height: 7px;
  background: #dce2d1;
  border-radius: 5px;
  overflow: hidden;
  margin-top: 13px;
}
.progress > span {
  display: block;
  height: 100%;
  background: #7da083;
  border-radius: 5px;
  transition: width 0.25s;
}
.memory-board {
  display: grid;
  gap: 10px;
  width: min(100%, 440px);
  margin: 0 auto;
  grid-template-columns: repeat(4, 1fr);
}
.memory-card {
  position: relative;
  padding: 0;
  aspect-ratio: 0.82;
  perspective: 700px;
  background: none;
  border-radius: 12px;
  transition: transform 0.2s;
}
.memory-card:hover:not(:disabled) {
  transform: translateY(-3px);
}
.memory-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.25, 1);
}
.memory-card.revealed .memory-inner,
.memory-card.matched .memory-inner {
  transform: rotateY(180deg);
}
.memory-front,
.memory-back {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  display: grid;
  place-items: center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  box-shadow: 0 3px 0 #bcb1cb;
}
.memory-back {
  color: #dac9e6;
  background: #8e75a7;
  border: 5px solid #ac97c0;
  background-image: radial-gradient(#c4aed1 1px, transparent 1px);
  background-size: 10px 10px;
  font-size: 34px;
}
.memory-front {
  background: var(--white);
  font-size: 40px;
  transform: rotateY(180deg);
  border: 2px solid #e0d6e9;
}
.memory-card.matched {
  opacity: 0.72;
}
.memory-card.matched .memory-front {
  border-color: #8fac88;
  background: #f4f8ed;
}
.memory-card.matched:after {
  content: "✓";
  position: absolute;
  right: 6px;
  top: 3px;
  color: #5c8355;
  font-size: 13px;
}
.memory-card:disabled {
  opacity: 1;
}
.memory-card.matched:disabled {
  opacity: 0.72;
}
.memory-board.dense {
  max-width: 480px;
  gap: 8px;
}
.memory-board.dense .memory-card {
  aspect-ratio: 1;
}
.memory-board.dense .memory-front {
  font-size: 32px;
}
.small-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.small-btn {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  background: #fffef9;
  border: 1px solid #d6ddcc;
  border-radius: 8px;
  padding: 9px 15px;
  font-size: 12px;
  min-height: 43px;
}
.board-grid {
  display: grid;
  margin: 0 auto;
  overflow: hidden;
}
.tic-board {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: min(100%, 340px);
}
.tic-cell {
  aspect-ratio: 1;
  background: var(--white);
  border: 1px solid #e3d8ca;
  border-radius: 13px;
  font-family: "DM Sans", sans-serif;
  font-size: 54px;
  font-weight: 500;
  box-shadow: 0 3px 0 #e0d7c7;
}
.tic-cell.mark-1 {
  color: #bf7656;
}
.tic-cell.mark--1 {
  color: #538675;
}
.tic-cell.win {
  background: #e7dcaf;
  border-color: #c6b774;
}
.tic-cell:disabled {
  opacity: 1;
}
.othello-board {
  grid-template-columns: repeat(8, 1fr);
  width: min(100%, 420px);
  background: #4d7a61;
  gap: 1px;
  border: 10px solid #3d624d;
  border-radius: 8px;
  box-shadow: 0 7px 0 #314d3e;
}
.othello-cell {
  aspect-ratio: 1;
  background: #67937a;
  padding: 12%;
  position: relative;
  display: grid;
  place-items: center;
}
.othello-cell:disabled {
  opacity: 1;
}
.piece {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 2px 2px #172c3155;
  animation: piece-in 0.25s ease;
}
.piece.black {
  background: radial-gradient(circle at 35% 25%, #42534a, #263a30);
}
.piece.white {
  background: radial-gradient(circle at 35% 25%, #fffef2, #dfdfce);
}
.othello-cell.legal:after {
  content: "";
  width: 21%;
  height: 21%;
  border: 1.5px solid #d5e4c5;
  border-radius: 50%;
  position: absolute;
}
.othello-cell.legal:hover {
  background: #8bae89;
}
.othello-cell.last:before {
  content: "";
  width: 7px;
  height: 7px;
  background: #dbad69;
  position: absolute;
  z-index: 1;
  border-radius: 50%;
}
.turn-pill {
  background: var(--white);
  border-radius: 20px;
  padding: 7px 15px;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.turn-pill .piece {
  width: 20px;
  height: 20px;
}
.turns {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}
.turn-pill.active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
/* Words, baking, and cooperative play. */
.kana-prompt {
  text-align: center;
  background: #fffef9;
  border-radius: 15px;
  width: min(100%, 390px);
  padding: 15px;
  margin: 0 auto 26px;
  box-shadow: 0 4px 0 #b9d3ce66;
}
.kana-prompt .word-picture {
  font-size: 39px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 12px;
}
.kana-prompt .target-kana {
  font-size: 37px;
  font-weight: 700;
  color: #3a7c88;
}
.kana-prompt .word {
  font-size: 13px;
  color: #70877f;
}
.balloon-field {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
  min-height: 202px;
  padding: 15px 8px 30px;
  background:
    radial-gradient(ellipse at 15% 90%, #ffffffaa 0 15%, transparent 15.5%),
    radial-gradient(ellipse at 92% 10%, #ffffff88 0 15%, transparent 15.5%);
  border-radius: 20px;
}
.balloon {
  position: relative;
  border: 0;
  width: clamp(65px, 14vw, 105px);
  height: clamp(87px, 18vw, 135px);
  border-radius: 48% 48% 46% 46%;
  background: var(--balloon);
  color: #fffef8;
  font-size: 46px;
  font-weight: 700;
  box-shadow: inset -8px -6px 0 #0000000a;
  animation: float 3s ease-in-out infinite;
  animation-delay: var(--delay);
  margin-bottom: 20px;
}
.balloon:before {
  content: "";
  position: absolute;
  width: 10px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff4a;
  left: 17%;
  top: 16%;
  transform: rotate(25deg);
}
.balloon:after {
  content: "";
  position: absolute;
  height: 30px;
  width: 12px;
  border-left: 1px solid #819f9a;
  border-radius: 40%;
  bottom: -30px;
  left: 50%;
}
.balloon.pop {
  animation: pop-out 0.35s both;
}
.balloon.wrong {
  animation: shake 0.35s;
}
.balloon:disabled {
  opacity: 0.5;
}
.kana-rounds {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 15px 0;
}
.kana-rounds i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c4d9d1;
}
.kana-rounds i.done {
  background: #e0b553;
}
.kana-rounds i.current {
  outline: 2px solid #7f9f91;
  outline-offset: 3px;
}
.order-ticket {
  background: #fffdf4;
  border: 1px solid #e6d9bb;
  border-radius: 12px;
  padding: 15px 18px;
  max-width: 530px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 3px 0 #dac6a53d;
}
.order-title {
  font-size: 11px;
  color: #9f825f;
  letter-spacing: 0.05em;
  margin-bottom: 9px;
}
.recipe-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.recipe-step {
  font-size: 11px;
  line-height: 1.4;
  background: #f4efe4;
  border: 2px solid transparent;
  min-width: 56px;
  border-radius: 9px;
  padding: 6px;
}
.recipe-step strong {
  display: block;
  font-size: 26px;
  line-height: 1.3;
}
.recipe-step.current {
  border-color: #bb8c4f;
  background: #fae6b5;
}
.recipe-step.done {
  background: #e1ebd8;
  color: #6d875d;
  opacity: 0.7;
}
.bakery-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 136px;
}
.bakery-pie {
  font-size: 68px;
  line-height: 1.2;
  transition: transform 0.2s;
}
.bakery-preview .game-art {
  width: 150px;
  height: 130px;
}
.bakery-status {
  font-size: 14px;
  font-weight: 700;
  max-width: 210px;
}
.bakery-status small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 500;
}
.player-stations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.player-station {
  background: #eacfd0;
  border-radius: 13px;
  padding: 14px;
}
.player-station.p2 {
  background: #cddfd9;
}
.station-title {
  font-size: 12px;
  text-align: center;
  margin-bottom: 10px;
  font-weight: 700;
}
.station-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.ingredient-btn {
  min-height: 84px;
  padding: 10px 5px;
  background: #fffdf4;
  border-radius: 9px;
  box-shadow: 0 3px 0 #ab947540;
  font-size: 11px;
  line-height: 1.5;
}
.ingredient-btn .ing-emoji {
  display: block;
  font-size: 28px;
}
.ingredient-btn kbd {
  display: block;
  font-size: 9px;
  color: #8b8d7d;
}
.ingredient-btn:active {
  transform: translateY(3px);
  box-shadow: none;
}
.ingredient-btn.expected {
  outline: 2px solid #6f8b5c;
  outline-offset: 1px;
}
.craft-steps {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 19px;
}
.craft-step {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: #e6d8c3;
  border-radius: 50%;
  font-size: 12px;
}
.craft-step.current {
  background: #7b9566;
  color: white;
}
.craft-step.done {
  background: #c5d4b5;
}
.craft-title {
  text-align: center;
  font-size: 21px;
  margin-bottom: 5px;
}
.craft-hint {
  text-align: center;
  color: #7e806b;
  font-size: 12px;
  margin-bottom: 14px;
}
.craft-surface {
  width: min(100%, 470px);
  height: 246px;
  background: #e9cfaa;
  border-radius: 15px;
  position: relative;
  margin: 0 auto;
  overflow: hidden;
  touch-action: none;
  background-image: linear-gradient(
    90deg,
    transparent 48%,
    #ffffff0f 49%,
    transparent 50%
  );
  background-size: 70px 100%;
}
.craft-surface canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}
.craft-object {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.dough {
  width: 142px;
  height: 120px;
  border-radius: 47%;
  background: #f8dca3;
  box-shadow:
    inset -7px -9px 0 #e4be82,
    0 9px 10px #93764925;
  transition: transform 0.12s;
}
.dough:after {
  content: "";
  display: block;
  width: 30px;
  height: 8px;
  border-radius: 50%;
  background: #ffedc6;
  position: relative;
  left: 28px;
  top: 26px;
}
.rolling-pin {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 170px;
  height: 37px;
  border-radius: 14px;
  background: #a67a4d;
  box-shadow: inset 0 4px 0 #c1905d;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.rolling-pin:before,
.rolling-pin:after {
  content: "";
  position: absolute;
  top: 13px;
  width: 23px;
  height: 11px;
  background: #875d38;
  border-radius: 4px;
  left: -17px;
}
.rolling-pin:after {
  left: auto;
  right: -17px;
}
.craft-progress {
  width: min(100%, 380px);
  margin: 15px auto 0;
}
.craft-progress p {
  font-size: 11px;
  text-align: center;
  margin-bottom: 7px;
}
.timing-track {
  position: relative;
  height: 31px;
  background: #c5b496;
  border-radius: 7px;
  overflow: hidden;
  width: min(85%, 365px);
  margin: 20px auto;
}
.timing-zone {
  position: absolute;
  left: 39%;
  width: 22%;
  inset-block: 0;
  background: #86a671;
  border-inline: 3px solid #f0f6d8;
}
.timing-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #fffef4;
  box-shadow: 0 0 4px #48502e;
}
.oven {
  position: relative;
  background: #63826b;
  border-radius: 15px;
  width: 200px;
  height: 164px;
  padding: 35px 17px 15px;
  margin: auto;
}
.oven:before {
  content: "●  ●  ●";
  position: absolute;
  top: 5px;
  left: 19px;
  color: #e6c699;
  letter-spacing: 14px;
}
.oven-window {
  display: grid;
  place-items: center;
  background: #253d30;
  height: 100%;
  border-radius: 10px;
  font-size: 68px;
  border: 4px solid #a5b397;
}
.step-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
}
.step-result {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
  font-size: 10px;
  color: var(--muted);
}
.step-result strong {
  display: block;
  font-size: 16px;
  color: var(--ink);
}
/* Arcade: logical canvas coordinates stay the same on every display. */
.canvas-game {
  position: relative;
  width: 100%;
  max-width: 650px;
  margin: auto;
}
.game-canvas {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  touch-action: none;
  background: #e1ebdb;
  max-height: 530px;
  object-fit: contain;
}
.canvas-game.portrait {
  max-width: 390px;
}
.canvas-game.portrait .game-canvas {
  max-height: 480px;
  aspect-ratio: 400/540;
}
.canvas-status {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.canvas-status span {
  background: #fffdf3ed;
  border: 1px solid #d3dcc8;
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 20px #28433011;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.arcade-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.direction-btn {
  min-height: 46px;
  min-width: 66px;
  border-radius: 9px;
  border: 1px solid #c9d5bd;
  background: #fffdf4;
  font-size: 22px;
  touch-action: none;
  user-select: none;
}
.direction-btn:active {
  background: #dde7cb;
}
.fling-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 13px;
  margin-top: 16px;
}
.fling-controls label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 10px;
}
.fling-controls input {
  width: 100%;
  accent-color: #778a52;
  min-height: 30px;
}
.shoot-field {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  height: 380px;
  border-radius: 13px;
  background:
    radial-gradient(ellipse at 50% 130%, #d3b88b 0 32%, transparent 32.4%),
    linear-gradient(#faeed4, #f1dcb6);
  touch-action: none;
}
.shoot-field:before {
  content: "";
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  border-bottom: 2px dashed #ddc28c;
}
.flying-pie {
  position: absolute;
  width: 76px;
  height: 76px;
  padding: 0;
  background: none;
  border-radius: 50%;
  will-change: transform;
  user-select: none;
  display: grid;
  place-items: center;
}
.flying-pie .game-art {
  position: absolute;
  width: 184px;
  max-width: none;
  transform: translate(-52px, -25px);
  pointer-events: none;
}
.flying-pie .pie-drawing {
  position: relative;
  width: 66px;
  height: 53px;
  border-radius: 50%;
  background:
    repeating-linear-gradient(
      40deg,
      transparent 0 8px,
      #f8d185 9px 15px,
      transparent 16px 24px
    ),
    repeating-linear-gradient(
      -40deg,
      #ac6739 0 8px,
      #f5c578 9px 15px,
      #ac6739 16px 24px
    );
  border: 5px solid #e5aa59;
  box-shadow:
    0 7px 0 #af7642,
    0 11px 5px #87653626;
  pointer-events: none;
}
.flying-pie.gold .pie-drawing {
  border-color: #ffdf72;
  box-shadow:
    0 7px 0 #c69e3c,
    0 0 0 5px #ffe29075;
}
.flying-pie.bomb {
  font-size: 43px;
}
.flying-pie.bomb small {
  position: absolute;
  bottom: -8px;
  white-space: nowrap;
  background: #fff1df;
  border-radius: 5px;
  padding: 2px 4px;
  color: #9d5447;
  font-size: 9px;
}
.floating-score {
  position: absolute;
  font-size: 19px;
  font-weight: 900;
  color: #477b43;
  pointer-events: none;
  z-index: 4;
  animation: score-up 0.7s both;
}
.shoot-ground-label {
  position: absolute;
  bottom: 14px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #a18458;
  pointer-events: none;
}
/* Dialogs and feedback. */
dialog {
  background: var(--white);
  color: var(--ink);
  border: 1px solid #d8ddcc;
  border-radius: 22px;
  box-shadow: 0 25px 100px #273c3455;
  padding: 32px;
  width: min(460px, calc(100vw - 32px));
  text-align: center;
  max-height: calc(100dvh - 40px);
  overflow: auto;
}
dialog::backdrop {
  background: #253c3580;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 26px;
  margin: 10px 0 8px;
}
dialog p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.result-symbol {
  font-size: 51px;
  line-height: 1.2;
}
.result-stars {
  display: flex;
  gap: 12px;
  justify-content: center;
  color: #d8ddcd;
  margin: 18px 0;
}
.result-stars .earned {
  color: #c49b3f;
  fill: #e9c76e;
}
.result-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 17px;
}
.result-stats strong {
  font-size: 25px;
  display: block;
  line-height: 1.4;
}
.result-stats small {
  font-size: 10px;
  color: var(--muted);
}
.new-best {
  font-size: 11px !important;
  color: #99752c !important;
  background: #f6edcf;
  border-radius: 15px;
  padding: 5px 12px;
  display: inline-block;
  margin-top: 15px;
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 30px);
  padding: 13px 23px;
  background: #2e4b3f;
  color: #fffdf1;
  border-radius: 12px;
  font-size: 12px;
  box-shadow: 0 6px 25px #21332833;
  z-index: 150;
  text-align: center;
  pointer-events: none;
}
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 120;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -20px;
  width: 9px;
  height: 13px;
  border-radius: 2px;
  background: var(--c);
  left: var(--x);
  animation: confetti-fall 2.7s ease-in var(--d) both;
}
.saving-note {
  font-size: 10px;
  color: #8a7761;
  text-align: center;
  padding: 6px;
  background: #f4e9c9;
}
.paused-game {
  filter: blur(5px);
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-9px) rotate(3deg);
  }
}
@keyframes pop-out {
  to {
    transform: scale(1.4);
    opacity: 0;
  }
}
@keyframes shake {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}
@keyframes piece-in {
  from {
    transform: scale(0.75);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes score-up {
  to {
    transform: translateY(-44px);
    opacity: 0;
  }
}
@keyframes confetti-fall {
  to {
    transform: translateY(105vh) rotate(620deg);
    opacity: 0.5;
  }
}
@media (min-width: 1500px) {
  .container {
    width: min(1230px, calc(100% - 120px));
  }
  .hero {
    padding-block: 65px;
  }
  .card-art {
    height: 220px;
  }
}
@media (max-width: 1000px) {
  .container {
    width: calc(100% - 48px);
  }
  .header-nav {
    gap: 17px;
  }
  .hero {
    gap: 28px;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero-actions {
    gap: 13px;
  }
  .feature-card {
    padding: 22px;
    min-height: 310px;
  }
  .games-grid {
    gap: 18px;
  }
  .card-art {
    height: 180px;
  }
  .card-info {
    padding: 17px;
  }
  .card-info h3 {
    font-size: 17px;
  }
  .card-meta {
    gap: 9px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 222px;
    gap: 18px;
  }
  .side-card {
    padding: 17px;
  }
  .arena {
    padding: 18px;
  }
  .game-heading h1 {
    font-size: 27px;
  }
  .header-nav .optional-nav {
    display: none;
  }
}
@media (max-width: 760px) {
  .container {
    width: calc(100% - 36px);
  }
  .site-header {
    height: 79px;
    gap: 14px;
  }
  .brand-name {
    font-size: 17px;
  }
  .brand-name small {
    font-size: 8px;
  }
  .brand-mark {
    width: 31px;
    height: 33px;
  }
  .header-nav {
    display: none;
  }
  .header-tools {
    gap: 10px;
  }
  .collection {
    font-size: 11px;
  }
  .hero {
    gap: 21px;
    grid-template-columns: 1fr;
    padding: 33px 0;
  }
  .hero-copy {
    max-width: 540px;
  }
  .hero h1 {
    font-size: 36px;
    line-height: 1.55;
    margin: 14px 0;
  }
  .hero-copy > p {
    font-size: 13px;
  }
  .hero-actions {
    margin-top: 23px;
  }
  .hero-note {
    margin-top: 19px;
  }
  .feature-card {
    min-height: 240px;
    margin: 5px 5px 3px;
    transform: rotate(0.5deg);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .feature-card .game-art {
    position: absolute;
    width: 215px;
    height: 180px;
    right: 4%;
    top: 40px;
    margin: 0;
  }
  .feature-top {
    position: relative;
    z-index: 2;
  }
  .feature-sticker {
    right: 15px;
    top: 91px;
    width: 52px;
    height: 52px;
    font-size: 9px;
  }
  .feature-sticker strong {
    font-size: 15px;
  }
  .feature-bottom {
    position: relative;
    z-index: 2;
  }
  .feature-bottom h2 {
    font-size: 20px;
  }
  .feature-caption {
    font-size: 9px;
  }
  .feature-bottom .round-arrow {
    width: 36px;
    height: 36px;
  }
  .filter-row {
    display: block;
    margin-bottom: 20px;
  }
  .filters {
    gap: 6px;
  }
  .filter {
    font-size: 11px;
    padding: 9px 12px;
  }
  .search-box {
    margin-top: 12px;
  }
  .search-box input {
    width: 100%;
    font-size: 12px;
  }
  .section-heading h2 {
    font-size: 21px;
  }
  .little-note {
    display: none;
  }
  .games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .card-art {
    height: 170px;
  }
  .card-info {
    padding: 14px;
  }
  .card-info h3 {
    font-size: 16px;
  }
  .card-description {
    font-size: 11px;
    margin: 7px 0 12px;
    min-height: 61px;
  }
  .card-meta {
    font-size: 9px;
    gap: 8px;
  }
  .card-meta svg {
    width: 12px;
  }
  .card-meta .card-go svg {
    width: 17px;
  }
  .card-overline {
    font-size: 8px;
    letter-spacing: 0.07em;
  }
  .bottom-banner {
    padding: 23px;
    gap: 14px;
    margin: 32px 0;
  }
  .bottom-banner h2 {
    font-size: 17px;
  }
  .banner-doodle {
    font-size: 27px;
    letter-spacing: 4px;
  }
  .site-footer {
    align-items: start;
    font-size: 9px;
  }
  .footer-right {
    display: block;
    text-align: right;
  }
  .footer-right span {
    display: block;
    margin-bottom: 5px;
  }
  .play-layout {
    grid-template-columns: 1fr;
  }
  .game-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .side-card {
    margin-bottom: 0;
  }
  .game-sidebar .rules-card {
    grid-column: 1/-1;
  }
  .instructions {
    display: flex;
    gap: 15px;
  }
  .instructions li {
    flex: 1;
    margin: 0;
    font-size: 11px;
    padding-left: 26px;
  }
  .game-heading {
    margin: 15px 0 21px;
  }
  .game-heading h1 {
    font-size: 26px;
  }
  .game-heading p {
    font-size: 12px;
  }
  .game-heading .game-type {
    display: none;
  }
  .breadcrumbs {
    padding-top: 20px;
  }
  .game-page .site-header {
    height: 75px;
  }
  .arena {
    min-height: 475px;
  }
  .intro {
    min-height: 435px;
  }
  .game-settings {
    margin: 18px 0;
  }
  .intro .game-art {
    width: 224px;
    height: 168px;
  }
  .game-canvas {
    max-height: 460px;
  }
  .canvas-game.portrait {
    max-width: 350px;
  }
  .canvas-game.portrait .game-canvas {
    max-height: 425px;
  }
  .play-toolbar {
    padding: 0 14px;
  }
  .hud-item {
    padding: 7px 12px;
    min-width: 83px;
  }
  .hud {
    gap: 8px;
    margin-bottom: 14px;
  }
}
@media (max-width: 420px) {
  .container {
    width: calc(100% - 28px);
  }
  .brand-name {
    font-size: 16px;
  }
  .header-tools .collection {
    gap: 4px;
  }
  .hero h1 {
    font-size: 31px;
  }
  .hero-actions .btn {
    padding: 12px 19px;
  }
  .hero-actions .text-link {
    font-size: 12px;
  }
  .card-art {
    height: 137px;
  }
  .games-grid {
    gap: 12px;
  }
  .card-info {
    padding: 12px;
  }
  .card-info h3 {
    font-size: 14px;
  }
  .card-description {
    font-size: 10px;
    min-height: 55px;
  }
  .card-meta {
    gap: 6px;
    font-size: 8px;
    flex-wrap: wrap;
    min-height: 28px;
  }
  .card-overline {
    font-size: 7px;
  }
  .card-number {
    top: 11px;
    left: 12px;
  }
  .favorite {
    width: 29px;
    height: 29px;
    right: 9px;
    top: 9px;
  }
  .card-description {
    line-height: 1.8;
  }
  .banner-doodle {
    display: none;
  }
  .feature-card {
    min-height: 224px;
  }
  .feature-card .game-art {
    width: 195px;
    height: 166px;
    right: 1%;
    top: 40px;
  }
  .feature-sticker {
    right: 17px;
    top: 58px;
  }
  .feature-bottom h2 {
    font-size: 18px;
  }
  .arena {
    padding: 14px;
    min-height: 450px;
  }
  .game-heading h1 {
    font-size: 23px;
  }
  .game-heading p {
    font-size: 11px;
  }
  .intro h2 {
    font-size: 21px;
  }
  .intro > p {
    font-size: 12px;
  }
  .game-settings {
    gap: 9px;
  }
  .game-settings select {
    font-size: 11px;
  }
  .hud-item {
    min-width: 72px;
    padding: 6px 9px;
  }
  .hud-value {
    font-size: 18px;
  }
  .memory-board {
    gap: 8px;
  }
  .memory-front {
    font-size: 34px;
  }
  .memory-board.dense {
    gap: 6px;
  }
  .memory-board.dense .memory-front {
    font-size: 25px;
  }
  .memory-board.dense .memory-back {
    font-size: 22px;
    border-width: 3px;
  }
  .player-station {
    padding: 10px 8px;
  }
  .player-stations {
    gap: 8px;
  }
  .ingredient-btn {
    font-size: 10px;
    min-height: 79px;
  }
  .recipe-step {
    min-width: 44px;
    font-size: 9px;
  }
  .recipe-step strong {
    font-size: 23px;
  }
  .order-ticket {
    padding: 12px 8px;
  }
  .bakery-preview {
    gap: 11px;
    min-height: 128px;
  }
  .bakery-pie {
    font-size: 54px;
  }
  .bakery-status {
    font-size: 12px;
  }
  .station-title {
    font-size: 10px;
  }
  .instructions {
    display: block;
  }
  .instructions li {
    margin: 12px 0;
    font-size: 12px;
  }
  .fling-controls {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .fling-controls .btn {
    grid-column: 1/-1;
    padding: 9px;
    min-height: 44px;
  }
  .balloon-field {
    gap: 13px;
  }
  .balloon {
    font-size: 34px;
  }
  .game-sidebar {
    gap: 10px;
  }
  .side-card {
    padding: 15px;
  }
  .record-value {
    font-size: 24px;
  }
  .next-game {
    gap: 8px;
  }
  .next-game .game-art {
    width: 49px;
    height: 49px;
  }
  .next-game span {
    font-size: 11px;
  }
  .shoot-field {
    height: 340px;
  }
  .craft-surface {
    height: 218px;
  }
  .othello-board {
    border-width: 7px;
  }
  .tic-board {
    width: min(100%, 310px);
  }
  .result-stats {
    gap: 16px;
  }
  .toolbar-actions button span {
    display: none;
  }
}
.record-value.empty {
  font-size: 18px;
  line-height: 1.5;
}
.feature-sticker strong {
  white-space: nowrap;
  font-size: 15px;
}
.feature-sticker {
  width: 72px;
  height: 72px;
  font-size: 9px;
}
.play-panel {
  scroll-margin-top: 16px;
}
.instructions li::marker {
  content: "";
}
.arena:has(.canvas-game.portrait) {
  padding: 14px;
}
.arena:has(.canvas-game.portrait) .game-message {
  min-height: 22px;
  margin-bottom: 8px;
}
.arena:has(.canvas-game.portrait) .hud {
  margin-bottom: 10px;
}
.canvas-game.portrait .game-canvas {
  max-height: clamp(250px, calc(100dvh - 370px), 460px);
}
.canvas-game.portrait {
  width: min(100%, calc(clamp(250px, calc(100dvh - 370px), 460px) * 0.74));
}
.game-page.focus-mode .site-header,
.game-page.focus-mode .breadcrumbs,
.game-page.focus-mode .game-heading,
.game-page.focus-mode .game-sidebar,
.game-page.focus-mode .site-footer {
  display: none;
}
.game-page.focus-mode .play-layout {
  display: block;
  margin: 12px auto;
  max-width: 960px;
}
.game-page.focus-mode .arena {
  min-height: calc(100dvh - 130px);
}
.game-page.focus-mode .canvas-game.portrait {
  width: min(100%, calc(clamp(270px, calc(100dvh - 265px), 630px) * 0.74));
}
.game-page.focus-mode .canvas-game.portrait .game-canvas {
  max-height: clamp(270px, calc(100dvh - 265px), 630px);
}
body {
  padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 900px) {
  .play-layout {
    grid-template-columns: 1fr;
  }
  .game-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .game-sidebar .side-card {
    margin-bottom: 0;
  }
  .game-sidebar .rules-card {
    grid-column: 1 / -1;
  }
}
@media (max-width: 350px) {
  .brand-name {
    font-size: 14px;
  }
  .brand-name small {
    font-size: 7px;
  }
  .brand {
    gap: 8px;
  }
  .brand-mark {
    width: 28px;
    height: 30px;
  }
  .site-header {
    gap: 10px;
  }
  .header-tools {
    gap: 6px;
  }
  .collection {
    font-size: 10px;
    gap: 3px;
  }
  .hero h1 {
    font-size: 28px;
  }
  .hero-actions {
    gap: 10px;
  }
  .hero-actions .btn {
    padding-inline: 12px;
  }
  .hero-actions .text-link {
    font-size: 11px;
    gap: 5px;
  }
  .game-heading h1 {
    font-size: 21px;
  }
  .hero-note {
    font-size: 9px;
    gap: 5px;
  }
  .hero-copy > p {
    font-size: 12px;
  }
  .feature-card {
    min-height: 280px;
  }
  .feature-card .game-art {
    width: 170px;
    height: 134px;
    top: 50px;
    right: 10%;
  }
  .feature-top .pill {
    font-size: 9px;
    padding: 4px 7px;
    white-space: nowrap;
  }
  .feature-caption {
    font-size: 7px;
    letter-spacing: 0.1em;
  }
  .feature-sticker {
    top: 64px;
    right: 13px;
  }
}
.icon-btn {
  min-height: 44px;
  min-width: 44px;
}
.favorite {
  width: 40px;
  height: 40px;
}
.filter {
  min-height: 44px;
}
@media (max-width: 760px) {
  .feature-sticker {
    width: 61px;
    height: 61px;
  }
  .feature-sticker strong {
    font-size: 13px;
  }
  .play-panel {
    scroll-margin-top: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .memory-inner {
    transition: none;
  }
  .confetti {
    display: none;
  }
  .balloon.pop {
    opacity: 0;
  }
}
