:root {
  color-scheme: light;
  --page: #f7faf7;
  --surface: #ffffff;
  --surface-soft: #eef5f0;
  --surface-mint: #e5f3ea;
  --ink: #17332b;
  --ink-soft: #36564d;
  --muted: #5f756f;
  --line: #dce8e1;
  --primary: #0d745c;
  --primary-dark: #075845;
  --primary-soft: #d9eee4;
  --coral: #d96958;
  --butter: #edbd55;
  --lavender: #9f92c9;
  --shadow-sm: 0 8px 24px rgba(31, 70, 58, 0.06);
  --shadow-md: 0 22px 58px rgba(31, 70, 58, 0.1);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --container: 1180px;
  --ease: cubic-bezier(.2, .72, .2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Be Vietnam Pro", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
canvas {
  display: block;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.14;
  letter-spacing: -.035em;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  font-weight: 650;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 650;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -.02em;
}

p {
  color: var(--muted);
}

::selection {
  color: #fff;
  background: var(--primary);
}

:focus-visible {
  outline: 3px solid rgba(13, 116, 92, .38);
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: #fff;
  background: var(--primary-dark);
  border-radius: 10px;
  transform: translateY(-160%);
  transition: transform 180ms ease-out;
}

.skip-link:focus {
  transform: translateY(0);
}

.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;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 250, 247, .9);
  border-bottom: 1px solid rgba(220, 232, 225, .86);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 620;
  letter-spacing: -.025em;
}

.brand strong {
  color: var(--primary);
  font-weight: 720;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 13px;
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.desktop-nav a {
  min-height: 44px;
  padding: 10px 16px;
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 560;
  border-radius: 999px;
  transition: color 180ms ease-out, background 180ms ease-out;
}

.desktop-nav a:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-toggle {
  position: relative;
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 4px;
  transition: transform 220ms var(--ease), top 220ms var(--ease);
}

.menu-toggle span:first-child {
  top: 17px;
}

.menu-toggle span:last-child {
  top: 25px;
}

.menu-toggle.open span:first-child {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.open span:last-child {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-menu {
  display: none;
}

/* Buttons */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  line-height: 1.25;
  transition: color 180ms ease-out, background 180ms ease-out, border-color 180ms ease-out, box-shadow 220ms ease-out, transform 180ms ease-out;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(.98);
}

.button-small {
  min-height: 44px;
  padding: 9px 14px 9px 18px;
  font-size: .9rem;
}

.button-small > svg {
  width: 18px;
  height: 18px;
}

.button-large {
  min-height: 58px;
  padding: 9px 10px 9px 24px;
}

.button-primary {
  color: #fff;
  background: var(--primary);
  box-shadow: 0 12px 30px rgba(13, 116, 92, .18);
}

.button-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 16px 34px rgba(13, 116, 92, .24);
}

.button-primary:disabled,
.button-quiet:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
}

.button-quiet {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.button-quiet:hover {
  color: var(--primary);
  border-color: #b9d8c9;
  box-shadow: var(--shadow-sm);
}

.button-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  color: inherit;
  background: rgba(255, 255, 255, .16);
  border-radius: 50%;
}

.button-quiet .button-icon {
  color: var(--primary);
  background: var(--primary-soft);
}

.button-icon svg {
  width: 20px;
  height: 20px;
}

.button-light {
  color: var(--primary-dark);
  background: #fff;
  box-shadow: 0 14px 34px rgba(5, 67, 52, .16);
}

.button-light:hover {
  background: #f1f8f4;
}

.button-outline-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 132px) 0 clamp(82px, 10vw, 124px);
}

.hero::before {
  position: absolute;
  top: -260px;
  right: -220px;
  width: 660px;
  height: 660px;
  pointer-events: none;
  background: radial-gradient(circle, rgba(179, 221, 196, .42), rgba(179, 221, 196, 0) 68%);
  content: "";
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr);
  align-items: center;
  gap: clamp(48px, 8vw, 112px);
}

.eyebrow,
.section-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: var(--primary);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hero h1 em {
  color: var(--primary);
  font-style: normal;
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}

.hero-notes li {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 570;
}

.hero-notes svg {
  width: 19px;
  height: 19px;
  color: var(--primary);
}

.hero-visual {
  position: relative;
  padding: 16px;
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(220, 232, 225, .9);
  border-radius: 38px;
  box-shadow: var(--shadow-md);
}

.visual-kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 14px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-dot::before {
  width: 7px;
  height: 7px;
  background: var(--primary);
  border-radius: 50%;
  content: "";
}

.cloud-scene {
  overflow: hidden;
  border-radius: 28px;
}

.cloud-scene svg {
  width: 100%;
  height: auto;
}

.visual-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 8px 6px;
}

.visual-info h2 {
  margin: 4px 0 5px;
  font-size: 1.5rem;
}

.visual-info p {
  margin-bottom: 0;
  font-size: .86rem;
}

.mini-label {
  color: var(--primary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.round-play {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  cursor: pointer;
  background: var(--primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 12px 28px rgba(13, 116, 92, .22);
  transition: background 180ms ease-out, transform 180ms ease-out;
}

.round-play:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.round-play svg {
  width: 24px;
  height: 24px;
}

/* Mood strip */
.mood-strip {
  padding: 0 0 clamp(86px, 10vw, 130px);
}

.mood-strip .container {
  display: grid;
  grid-template-columns: 170px 1fr;
  align-items: center;
  gap: 28px;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.mood-strip p {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 640;
}

.mood-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.mood-list a {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  color: var(--ink-soft);
  font-size: .86rem;
  font-weight: 590;
  border-radius: 16px;
  transition: color 180ms ease-out, background 180ms ease-out;
}

.mood-list a:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.mood-icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
}

.mood-icon svg {
  width: 23px;
  height: 23px;
}

.mood-icon.mint {
  color: #39795c;
  background: #dfeee5;
}

.mood-icon.lavender {
  color: #665b8d;
  background: #ebe7f5;
}

.mood-icon.peach {
  color: #a55243;
  background: #f6e2dc;
}

.mood-icon.butter {
  color: #916b20;
  background: #f6ebca;
}

/* Shared section heading */
.games-section,
.guide-section,
.about-section {
  padding: clamp(84px, 10vw, 132px) 0;
}

.games-section {
  background: var(--surface);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  align-items: end;
  gap: 48px;
  margin-bottom: 48px;
}

.section-heading h2 {
  max-width: 730px;
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 440px;
  margin-bottom: 4px;
  line-height: 1.75;
}

/* Filters */
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 44px;
  padding: 9px 16px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 620;
  transition: color 180ms ease-out, background 180ms ease-out, border-color 180ms ease-out;
}

.filter-button:hover {
  color: var(--primary);
  background: var(--surface-soft);
}

.filter-button.active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.result-count {
  flex: 0 0 auto;
  margin: 0;
  font-size: .82rem;
}

.result-count strong {
  color: var(--ink);
  font-size: 1rem;
}

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.game-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 180ms ease-out, box-shadow 220ms ease-out, transform 220ms var(--ease);
}

.game-card:hover {
  border-color: #bed6c9;
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.game-card[hidden] {
  display: none;
}

.game-art {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
  overflow: hidden;
}

.game-art svg {
  width: min(92%, 340px);
  height: auto;
}

.art-garden {
  background: #e8f3eb;
}

.art-station {
  background: #edf1ef;
}

.art-cats {
  background: #f6ede8;
}

.art-kitchen {
  background: #f7efe4;
}

.art-island {
  background: #eff1ea;
}

.art-firefly {
  background: #e8eeed;
}

.art-caro {
  background: #edf4e9;
}

.art-solitaire {
  background: #f4eee7;
}

.game-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 1;
  padding: 7px 11px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.game-card-body {
  display: flex;
  min-height: 264px;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.game-card-body > p {
  margin-bottom: 22px;
  font-size: .9rem;
  line-height: 1.75;
}

.game-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--primary);
  font-size: .71rem;
  font-weight: 690;
  letter-spacing: .02em;
}

.game-meta span:last-child {
  color: var(--muted);
  white-space: nowrap;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.text-action,
.detail-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--primary);
  cursor: pointer;
  background: transparent;
  border: 0;
  font-size: .86rem;
  font-weight: 690;
}

.text-action {
  border-bottom: 1px solid transparent;
}

.text-action:hover {
  color: var(--primary-dark);
  border-color: currentColor;
}

.text-action svg {
  width: 18px;
  height: 18px;
  transition: transform 180ms ease-out;
}

.text-action:hover svg {
  transform: translateX(3px);
}

.detail-action {
  color: var(--muted);
  font-weight: 560;
}

.detail-action:hover {
  color: var(--ink);
}

/* Guides */
.guide-section {
  background: var(--page);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 20px;
}

.guide-card {
  display: grid;
  min-height: 360px;
  grid-template-rows: auto 1fr;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: border-color 180ms ease-out, box-shadow 220ms ease-out, transform 220ms var(--ease);
}

.guide-card:hover {
  border-color: #bed6c9;
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.guide-feature {
  color: #fff;
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.guide-feature h3,
.guide-feature p,
.guide-feature .text-action {
  color: #fff;
}

.guide-feature .guide-meta {
  color: rgba(255, 255, 255, .68);
}

.guide-number {
  color: var(--primary);
  font-size: 2.8rem;
  font-weight: 420;
  letter-spacing: -.07em;
}

.guide-feature .guide-number {
  color: #8bc7ad;
}

.guide-card-content {
  display: flex;
  align-self: end;
  flex-direction: column;
}

.guide-card h3 {
  max-width: 390px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.guide-card p {
  font-size: .9rem;
  line-height: 1.75;
}

.guide-meta {
  margin-bottom: 12px;
  color: var(--primary);
  font-size: .71rem !important;
  font-weight: 720;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.guide-card .text-action {
  align-self: flex-start;
  margin-top: 8px;
}

/* About */
.about-section {
  background: var(--surface);
}

.about-grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(56px, 9vw, 130px);
}

.about-copy {
  position: sticky;
  top: 120px;
  align-self: start;
}

.about-copy p:last-child {
  max-width: 470px;
  line-height: 1.8;
}

.value-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.value-list li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.value-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.value-list > li > span {
  color: var(--primary);
  font-size: .8rem;
  font-weight: 730;
  letter-spacing: .08em;
}

.value-list p {
  max-width: 520px;
  margin-bottom: 0;
  font-size: .92rem;
}

/* Final CTA */
.final-cta {
  padding: 0 0 clamp(80px, 10vw, 128px);
  background: var(--surface);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  padding: clamp(38px, 6vw, 68px);
  color: #fff;
  background: var(--primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cta-panel h2,
.cta-panel p {
  color: #fff;
}

.cta-panel h2 {
  margin-bottom: 10px;
}

.cta-panel .section-kicker {
  color: rgba(255, 255, 255, .7);
}

.cta-panel > div:first-child p:last-child {
  max-width: 590px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .78);
}

.cta-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.cta-actions .button-large {
  padding-inline: 24px;
}

/* Footer */
.site-footer {
  padding: 72px 0 24px;
  background: #eaf1ec;
}

.footer-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 72px;
  padding-bottom: 58px;
}

.footer-brand p {
  max-width: 360px;
  margin: 22px 0 0;
  font-size: .9rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.footer-links > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-links h2 {
  margin-bottom: 16px;
  font-size: .78rem;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-links a,
.footer-button {
  min-height: 44px;
  padding: 8px 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: .84rem;
  text-align: left;
}

.footer-button {
  cursor: pointer;
}

.footer-links a:hover,
.footer-button:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid #d3e0d8;
}

.footer-bottom p {
  margin: 0;
  font-size: .75rem;
}

/* Dialogs */
dialog {
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 36px 100px rgba(10, 50, 39, .25);
}

dialog::backdrop {
  background: rgba(14, 36, 30, .58);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog-top,
.game-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line);
}

.dialog-label {
  margin: 0;
  color: var(--primary);
  font-size: .7rem;
  font-weight: 730;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.dialog-close {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  background: var(--surface-soft);
  border: 0;
  border-radius: 50%;
  transition: color 180ms ease-out, background 180ms ease-out;
}

.dialog-close:hover {
  color: var(--ink);
  background: var(--primary-soft);
}

.dialog-close svg {
  width: 22px;
  height: 22px;
}

.detail-dialog {
  width: min(680px, calc(100vw - 32px));
}

.detail-content {
  padding: clamp(28px, 5vw, 48px);
}

.detail-content h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 5vw, 3rem);
}

.detail-lead {
  color: var(--ink-soft);
  font-size: 1.03rem;
  line-height: 1.75;
}

.detail-content h3 {
  margin: 28px 0 10px;
  font-size: 1rem;
}

.detail-content ul,
.detail-content ol {
  padding-left: 20px;
  color: var(--muted);
}

.detail-content li {
  margin-bottom: 8px;
}

.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
}

.detail-pills span {
  padding: 7px 11px;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 650;
}

.game-dialog {
  width: min(860px, calc(100vw - 24px));
}

.game-dialog-header {
  align-items: center;
  padding: 18px 22px;
}

.game-dialog-header h2 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.game-shell {
  padding: 18px;
  background: #f1f7f3;
}

.game-hud {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.game-hud > div {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.game-hud span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 620;
}

.game-hud strong {
  font-variant-numeric: tabular-nums;
}

#gameCanvas {
  width: 100%;
  height: auto;
  max-height: min(54vh, 520px);
  background: #f6fbf8;
  border: 1px solid var(--line);
  border-radius: 20px;
  touch-action: none;
}

.game-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
}

.game-controls p {
  max-width: 480px;
  margin: 0;
  font-size: .78rem;
  line-height: 1.55;
}

.game-controls > div {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.game-controls .button {
  min-height: 44px;
  padding: 9px 16px;
  font-size: .82rem;
}

.game-shell:fullscreen {
  display: grid;
  width: 100vw;
  height: 100vh;
  padding: 24px;
  place-content: center;
  background: #edf6f0;
}

.game-shell:fullscreen #gameCanvas {
  width: min(92vw, 1100px);
  max-height: 72vh;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 35ms;
}

.reveal-delay-2 {
  transition-delay: 70ms;
}

.reveal-delay-3 {
  transition-delay: 105ms;
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-actions > .button {
    display: none;
  }

  .mobile-menu {
    position: absolute;
    top: 76px;
    left: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
  }

  .mobile-menu a {
    min-height: 48px;
    padding: 12px 14px;
    color: var(--ink-soft);
    border-radius: 12px;
    font-weight: 620;
  }

  .mobile-menu a:hover {
    color: var(--primary);
    background: var(--primary-soft);
  }

  .mobile-menu .button {
    margin-top: 6px;
  }

  .hero-grid {
    grid-template-columns: 1fr 390px;
    gap: 42px;
  }

  .hero h1 {
    font-size: clamp(3.2rem, 8vw, 5rem);
  }

  .mood-strip .container {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-grid {
    grid-template-columns: 1fr 1fr;
  }

  .guide-feature {
    grid-column: 1 / -1;
    min-height: 320px;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, var(--container));
  }

  .hero {
    padding-top: 62px;
  }

  .hero-grid,
  .section-heading,
  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 52px;
  }

  .hero h1 {
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .hero-visual {
    width: min(100%, 520px);
    justify-self: center;
  }

  .mood-list {
    grid-template-columns: 1fr 1fr;
  }

  .section-heading {
    align-items: start;
    gap: 20px;
  }

  .filter-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    max-width: 560px;
    margin-inline: auto;
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .guide-feature {
    grid-column: auto;
  }

  .guide-card {
    min-height: 330px;
  }

  .about-copy {
    position: static;
  }

  .footer-grid {
    gap: 44px;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .game-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .game-controls > div {
    width: 100%;
  }

  .game-controls .button {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .nav-shell {
    min-height: 68px;
  }

  .mobile-menu {
    top: 68px;
    left: 12px;
    right: 12px;
  }

  .hero {
    padding-top: 48px;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 3.6rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
    justify-content: space-between;
  }

  .hero-notes {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-visual {
    padding: 10px;
    border-radius: 28px;
  }

  .cloud-scene {
    border-radius: 20px;
  }

  .visual-info {
    padding: 16px 6px 6px;
  }

  .mood-strip .container {
    padding: 20px;
  }

  .mood-list {
    grid-template-columns: 1fr;
  }

  .filter-list {
    width: 100%;
  }

  .filter-button {
    flex: 1 0 calc(50% - 8px);
  }

  .game-art {
    min-height: 190px;
  }

  .game-card-body {
    min-height: 0;
    padding: 22px;
  }

  .guide-card {
    min-height: 310px;
    padding: 24px;
  }

  .value-list li {
    grid-template-columns: 42px 1fr;
    gap: 14px;
  }

  .cta-panel {
    padding: 34px 24px;
    border-radius: 24px;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .button {
    width: 100%;
  }

  .footer-links {
    grid-template-columns: 1fr 1fr;
  }

  .footer-links > div:last-child {
    grid-column: 1 / -1;
  }

  dialog {
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 22px;
  }

  .game-dialog {
    width: calc(100vw - 16px);
  }

  .game-dialog-header {
    padding: 14px 16px;
  }

  .game-shell {
    padding: 10px;
  }

  .game-hud {
    gap: 6px;
  }

  .game-hud > div {
    min-height: 46px;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    padding: 7px 10px;
  }

  .game-controls p {
    font-size: .7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
