/* =========================================================
   拾光小站 · LIGHTKIT
   Shared design system, shell, home page, components
   ========================================================= */

:root {
  color-scheme: light;
  --bg: #f2eee4;
  --bg-deep: #e9e2d4;
  --surface: #fbf9f2;
  --surface-solid: #fffdf8;
  --surface-soft: #ece6da;
  --ink: #18231d;
  --ink-soft: #39463f;
  --muted: #6c776f;
  --line: #d9d2c3;
  --line-strong: #bcb4a3;
  --green: #2f5b45;
  --green-deep: #203f31;
  --green-soft: #dce7dc;
  --accent: #e7653f;
  --accent-deep: #c74c2b;
  --accent-soft: #f9dfd3;
  --yellow: #efc55f;
  --yellow-soft: #f8eccb;
  --blue: #49738a;
  --danger: #b53d2f;
  --shadow-sm: 0 2px 0 rgba(24, 35, 29, .04), 0 10px 30px -22px rgba(24, 35, 29, .35);
  --shadow-md: 0 24px 70px -36px rgba(24, 35, 29, .48);
  --shadow-lg: 0 40px 100px -42px rgba(24, 35, 29, .55);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 38px;
  --font-sans: "Avenir Next", "Segoe UI Variable", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, "Liberation Mono", monospace;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111711;
  --bg-deep: #0c120e;
  --surface: #182019;
  --surface-solid: #1c251d;
  --surface-soft: #222d24;
  --ink: #f0ede1;
  --ink-soft: #d0d5ca;
  --muted: #98a398;
  --line: #2e3a30;
  --line-strong: #465448;
  --green: #8ebfa0;
  --green-deep: #b7d7c1;
  --green-soft: #23372a;
  --accent: #ff7d55;
  --accent-deep: #ff9674;
  --accent-soft: #3b261e;
  --yellow: #f2cc72;
  --yellow-soft: #3a3320;
  --blue: #80aec3;
  --danger: #ff8b7c;
  --shadow-sm: 0 2px 0 rgba(0, 0, 0, .12), 0 10px 30px -22px rgba(0, 0, 0, .8);
  --shadow-md: 0 24px 70px -36px rgba(0, 0, 0, .8);
  --shadow-lg: 0 40px 100px -42px rgba(0, 0, 0, .9);
}

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

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse 46rem 34rem at 4% -6%, rgba(231, 101, 63, .12), transparent 65%),
    radial-gradient(ellipse 52rem 40rem at 102% 2%, rgba(47, 91, 69, .14), transparent 66%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background:
    radial-gradient(ellipse 46rem 34rem at 4% -6%, rgba(231, 101, 63, .12), transparent 65%),
    radial-gradient(ellipse 52rem 40rem at 102% 2%, rgba(78, 129, 98, .18), transparent 66%),
    var(--bg);
}

::selection {
  background: var(--accent);
  color: #fffaf2;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

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

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 72%, transparent);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 16px;
}

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

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

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.section {
  padding-block: clamp(64px, 8vw, 110px);
}

.section--tight {
  padding-block: clamp(44px, 5vw, 68px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .17em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.eyebrow--plain::before {
  display: none;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 38px;
}

.section-head h2 {
  max-width: 660px;
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.section-head p {
  max-width: 360px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.8;
}

.section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  transition: color .2s ease, border-color .2s ease;
}

.section-head__link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: 0 12px 34px -32px rgba(24, 35, 29, .6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 11px;
  background: var(--ink);
  transform: rotate(-4deg);
  transition: transform .35s var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(4deg) scale(1.04);
}

.brand-mark i {
  display: block;
  border-radius: 2px;
  background: var(--accent);
}

.brand-mark i:nth-child(2) {
  background: var(--yellow);
}

.brand-mark i:nth-child(3) {
  background: var(--green);
}

.brand-mark i:nth-child(4) {
  background: var(--surface-solid);
}

.brand-type {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-type b {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
}

.brand-type small {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .22em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  transition: color .2s ease, background .2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
  transform: translate(-50%, 4px);
  transition: opacity .2s ease, transform .2s ease;
}

.main-nav a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
}

.main-nav a.is-active {
  color: var(--ink);
}

.main-nav a.is-active::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

.theme-toggle,
.menu-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--ink-soft);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--surface-solid);
  color: var(--ink);
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
  position: relative;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
}

.menu-toggle span::before {
  transform: translateY(-5px);
}

.menu-toggle span::after {
  transform: translateY(5px);
}

.nav-open .menu-toggle span {
  background: transparent;
}

.nav-open .menu-toggle span::before {
  transform: rotate(45deg);
}

.nav-open .menu-toggle span::after {
  transform: rotate(-45deg);
}

/* ---------------- Buttons & badges ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: .01em;
  line-height: 1;
  transition: transform .2s var(--ease), background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--primary {
  background: var(--ink);
  color: var(--surface-solid);
  box-shadow: 0 16px 30px -22px rgba(24, 35, 29, .8);
}

.btn--primary:hover {
  background: var(--green-deep);
  color: var(--bg);
}

[data-theme="dark"] .btn--primary:hover {
  background: var(--green);
  color: #112016;
}

.btn--accent {
  background: var(--accent);
  color: #fffaf2;
  box-shadow: 0 16px 30px -20px color-mix(in srgb, var(--accent) 80%, transparent);
}

.btn--accent:hover {
  background: var(--accent-deep);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  border-color: var(--ink);
  background: var(--surface-solid);
}

.btn--soft {
  background: var(--surface-soft);
  color: var(--ink-soft);
}

.btn--soft:hover {
  background: var(--green-soft);
  color: var(--green-deep);
}

.btn--small {
  min-height: 38px;
  padding: 0 15px;
  font-size: 12.5px;
}

.btn--square {
  width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 14px;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: .45;
  transform: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .07em;
  line-height: 1;
  white-space: nowrap;
}

.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.badge--accent::before {
  background: var(--accent);
}

.badge--yellow::before {
  background: var(--yellow);
}

.badge--plain::before {
  display: none;
}

/* ---------------- Home hero ---------------- */

.hero {
  position: relative;
  padding-block: clamp(52px, 7vw, 96px) clamp(48px, 6vw, 78px);
  overflow: clip;
}

.hero::after {
  content: "";
  position: absolute;
  top: 11%;
  right: -100px;
  width: 400px;
  height: 400px;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(40px, 6vw, 84px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 650px;
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.2vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: 1.04;
}

.hero h1 .marker {
  position: relative;
  display: inline-block;
  color: var(--green-deep);
  white-space: nowrap;
  z-index: 0;
}

[data-theme="dark"] .hero h1 .marker {
  color: var(--green);
}

.hero h1 .marker::after {
  content: "";
  position: absolute;
  left: -1%;
  right: -1%;
  bottom: .1em;
  height: .27em;
  border-radius: 2px;
  background: var(--yellow);
  opacity: .72;
  transform: rotate(-1.2deg);
  z-index: -1;
}

.hero-lead {
  max-width: 480px;
  margin-top: 26px;
  color: var(--ink-soft);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.9;
}

.hero-lead strong {
  color: var(--ink);
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 34px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust i {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--green);
  font-size: 8px;
  font-style: normal;
  line-height: 1;
}

/* Hero visual */

.hero-visual {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(470px, 90%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 34%, color-mix(in srgb, var(--yellow) 36%, transparent), transparent 48%),
    radial-gradient(circle at 66% 70%, color-mix(in srgb, var(--green) 22%, transparent), transparent 55%);
  filter: blur(12px);
  z-index: -2;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 8% 0 0 8%;
  border: 1px dashed color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 50%;
  transform: rotate(18deg);
  z-index: -1;
}

.preview-window {
  position: relative;
  z-index: 1;
  width: min(420px, 92%);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line-strong) 78%, transparent);
  border-radius: 24px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-lg);
  transform: rotate(-2.4deg);
  transition: transform .6s var(--ease);
}

.hero-visual:hover .preview-window {
  transform: rotate(0deg) translateY(-4px);
}

.preview-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 72%, var(--surface-solid));
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .04em;
}

.preview-dots {
  display: flex;
  gap: 4px;
}

.preview-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line-strong);
}

.preview-dots i:first-child {
  background: var(--accent);
}

.preview-bar span:nth-child(2) {
  flex: 1;
}

.preview-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-weight: 700;
}

.preview-live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease-in-out infinite;
}

.preview-body {
  padding: 22px;
}

.preview-greeting {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.preview-greeting span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .06em;
}

.preview-greeting strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.preview-weather {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--yellow-soft);
  font-size: 18px;
}

.preview-clock {
  margin-top: 20px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
}

.preview-clock b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -.08em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.preview-clock small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: .04em;
}

.preview-tools {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.preview-tool {
  display: grid;
  gap: 5px;
  place-items: center;
  padding: 11px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface-solid) 76%, var(--surface-soft));
  transition: background .2s ease, transform .2s ease;
}

.preview-tool:hover {
  background: var(--green-soft);
  transform: translateY(-2px);
}

.preview-tool b {
  color: var(--green-deep);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.preview-tool span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1;
}

.preview-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 14px;
  border-radius: 13px;
  background: var(--accent-soft);
}

.preview-note__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  background: var(--accent);
  color: #fffaf2;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.preview-note p {
  color: var(--ink-soft);
  font-size: 10.5px;
  line-height: 1.55;
}

.floating-note {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 70%, transparent);
  border-radius: 14px;
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .04em;
  animation: float 6s ease-in-out infinite;
}

.floating-note b {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface-solid);
  font-size: 13px;
  letter-spacing: -.04em;
}

.floating-note span {
  display: grid;
  gap: 1px;
}

.floating-note small {
  color: var(--muted);
  font-size: 8px;
}

.floating-note--tool {
  top: 13%;
  left: -2%;
}

.floating-note--game {
  right: -1%;
  bottom: 16%;
  animation-delay: -2.8s;
}

.floating-note--game b {
  background: var(--accent);
}

.stamp {
  position: absolute;
  z-index: 3;
  right: 5%;
  top: 7%;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.55;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(11deg);
  opacity: .9;
}

.stamp::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px dashed currentColor;
  border-radius: 50%;
}

.stamp b {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0;
  line-height: 1.2;
}

/* ---------------- Ticker ---------------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface-soft) 55%, transparent);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

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

.ticker-group {
  display: flex;
  align-items: center;
  flex: none;
  gap: 34px;
  padding: 14px 17px;
}

.ticker-group span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker-group span::after {
  content: "✦";
  color: var(--accent);
  font-size: 10px;
}

/* ---------------- Tool cards ---------------- */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 218px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
  transition: transform .28s var(--ease), border-color .25s ease, box-shadow .3s ease, background .25s ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -64px;
  width: 150px;
  height: 150px;
  border: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  border-radius: 50%;
  transition: transform .5s var(--ease), border-color .3s ease;
}

.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
}

.tool-card:hover::before {
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transform: scale(1.35);
}

.tool-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.tool-no {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .08em;
}

.tool-glyph {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--green-deep);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.04em;
  transition: background .25s ease, color .25s ease, transform .3s var(--ease);
}

.tool-card:hover .tool-glyph {
  background: var(--green);
  color: var(--surface-solid);
  transform: rotate(-5deg);
}

.tool-card h3 {
  margin-top: 22px;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.02em;
}

.tool-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}

.tool-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.tool-card-tag {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tool-card-arrow {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: 12px;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .25s ease;
}

.tool-card:hover .tool-card-arrow {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--surface-solid);
  transform: rotate(45deg);
}

.tool-card--feature {
  grid-column: span 2;
  min-height: 218px;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 30px;
  border-color: transparent;
  background: var(--green-deep);
  color: #f7f1e2;
}

[data-theme="dark"] .tool-card--feature {
  background: #2a4938;
  color: #f6f1e3;
}

.tool-card--feature::before {
  width: 260px;
  height: 260px;
  right: -60px;
  bottom: -150px;
  border-color: rgba(255, 255, 255, .13);
}

.tool-card--feature::after {
  content: "";
  position: absolute;
  right: 18%;
  top: -52px;
  width: 130px;
  height: 130px;
  border: 1px dashed rgba(255, 255, 255, .15);
  border-radius: 50%;
}

.tool-card--feature:hover {
  border-color: transparent;
  background: var(--green-deep);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .tool-card--feature:hover {
  background: #325641;
}

.tool-card--feature .tool-card-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 62%;
}

.tool-card--feature .tool-no {
  color: rgba(247, 241, 226, .55);
}

.tool-card--feature .tool-glyph {
  width: 72px;
  height: 72px;
  margin-left: auto;
  border-color: rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  color: var(--yellow);
  font-size: 25px;
  align-self: flex-start;
}

.tool-card--feature:hover .tool-glyph {
  background: var(--yellow);
  color: var(--green-deep);
}

.tool-card--feature h3 {
  margin-top: 20px;
  color: #f8f2e4;
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -.03em;
}

.tool-card--feature p {
  max-width: 390px;
  color: rgba(247, 241, 226, .66);
  font-size: 13px;
}

.tool-card--feature .tool-card-foot {
  width: 100%;
  margin-top: 22px;
  padding-top: 0;
}

.tool-card--feature .tool-card-tag {
  color: rgba(247, 241, 226, .46);
}

.tool-card--feature .tool-card-arrow {
  border-color: rgba(255, 255, 255, .22);
  color: #f8f2e4;
}

.tool-card--feature:hover .tool-card-arrow {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--green-deep);
}

.tool-card--feature.tool-card--accent {
  background: var(--accent);
  color: #fffaf2;
}

.tool-card--feature.tool-card--accent:hover {
  background: var(--accent-deep);
}

.tool-card--feature.tool-card--accent .tool-glyph {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  color: #fffaf2;
}

.tool-card--feature.tool-card--accent:hover .tool-glyph {
  background: #fffaf2;
  color: var(--accent-deep);
}

.tool-card--feature.tool-card--accent .tool-card-arrow {
  border-color: rgba(255, 255, 255, .35);
}

.tool-card--feature.tool-card--accent:hover .tool-card-arrow {
  border-color: #fffaf2;
  background: #fffaf2;
  color: var(--accent-deep);
}

/* ---------------- Journal teaser ---------------- */

.journal-home-grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(26px, 5vw, 64px);
  align-items: center;
}

.journal-home-intro h2 {
  margin-top: 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.7vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -.045em;
  line-height: 1.08;
}

.journal-home-intro p {
  max-width: 360px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.journal-home-intro .section-head__link {
  margin-top: 22px;
}

.journal-home-articles {
  display: grid;
  gap: 12px;
}

.journal-home-card {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 22px 58px 22px 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-solid) 70%, transparent);
  transition: transform .25s var(--ease), border-color .2s ease, background .2s ease, box-shadow .25s ease;
}

.journal-home-card:nth-child(2) {
  margin-left: clamp(0px, 4vw, 40px);
  background: var(--surface-solid);
}

.journal-home-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow-md);
}

.journal-home-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .05em;
}

.journal-home-card__meta span {
  color: var(--accent);
}

.journal-home-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.25;
}

.journal-home-card p {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.journal-home-card__arrow {
  position: absolute;
  right: 20px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  transform: translateY(-50%);
  transition: background .2s ease, color .2s ease, transform .25s ease;
}

.journal-home-card:hover .journal-home-card__arrow {
  background: var(--ink);
  color: var(--surface-solid);
  transform: translateY(-50%) rotate(45deg);
}

.journal-changelog-line {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 10.5px;
}

.journal-changelog-line > span {
  flex: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: .05em;
}

.journal-changelog-line p {
  flex: 1;
}

.journal-changelog-line a {
  flex: none;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}

.journal-changelog-line a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ---------------- Arcade preview ---------------- */

.arcade-preview {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(0, .68fr);
  gap: 16px;
}

.feature-game {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 440px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #111726;
  color: #f8f2e4;
  isolation: isolate;
}

.feature-game img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  transition: transform .8s var(--ease), filter .5s ease;
}

.feature-game::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 15, 23, .16) 0%, rgba(10, 15, 23, .12) 35%, rgba(10, 15, 23, .89) 100%),
    linear-gradient(90deg, rgba(10, 15, 23, .44), transparent 55%);
}

.feature-game:hover img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.feature-game .badge {
  position: absolute;
  top: 22px;
  left: 22px;
  border-color: rgba(255, 255, 255, .18);
  background: rgba(14, 20, 25, .5);
  color: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.feature-game .badge::before {
  background: #8fd9a8;
}

.feature-game__body {
  max-width: 540px;
}

.feature-game__body h3 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1.04;
}

.feature-game__body h3 small {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .55);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .22em;
}

.feature-game__body p {
  max-width: 450px;
  margin-top: 13px;
  color: rgba(255, 255, 255, .66);
  font-size: 13px;
  line-height: 1.75;
}

.feature-game__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
}

.feature-game__meta {
  color: rgba(255, 255, 255, .48);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .07em;
}

.feature-game .btn {
  flex: none;
}

.mini-games {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.mini-game {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 212px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-solid);
  transition: transform .28s var(--ease), box-shadow .3s ease, border-color .25s ease;
}

.mini-game:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.mini-game__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.mini-game h3 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.mini-game p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.mini-game .mini-arrow {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .2s ease, color .2s ease, transform .25s ease;
}

.mini-game:hover .mini-arrow {
  background: var(--ink);
  color: var(--surface-solid);
  transform: rotate(45deg);
}

.mini-game--2048 {
  background: #e8ddc5;
  color: #2d332e;
}

[data-theme="dark"] .mini-game--2048 {
  background: #2c332c;
  color: #f0ede1;
}

.mini-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  width: 118px;
  padding: 5px;
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 18%, transparent);
  transform: rotate(-4deg) translate(6px, 4px);
  align-self: flex-end;
}

.mini-board i {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 4px;
  background: color-mix(in srgb, currentColor 7%, transparent);
  color: inherit;
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
}

.mini-board i:nth-child(1) { background: #eee4ce; color: #6c675c; }
.mini-board i:nth-child(2) { background: #edcf8e; color: #5e4c1d; }
.mini-board i:nth-child(3) { background: #e3a15f; color: #fffaf2; }
.mini-board i:nth-child(4) { background: #d96c43; color: #fffaf2; }
.mini-board i:nth-child(6) { background: #efc55f; color: #4c3b12; }
.mini-board i:nth-child(7) { background: #e7653f; color: #fffaf2; }
.mini-board i:nth-child(10) { background: #eab85e; color: #4c3b12; }
.mini-board i:nth-child(11) { background: #2f5b45; color: #f7f1e2; }
.mini-board i:nth-child(15) { background: #d8caa9; color: #5b5649; }
.mini-board i:nth-child(16) { background: #3b6f52; color: #f7f1e2; }

.mini-game--memory {
  background: var(--accent-soft);
}

.memory-mini {
  display: flex;
  gap: 6px;
  align-self: flex-end;
  transform: rotate(4deg) translate(4px, 2px);
}

.memory-mini i {
  display: grid;
  place-items: center;
  width: 31px;
  height: 43px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 5px;
  background: var(--accent);
  color: rgba(255, 250, 242, .85);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: normal;
  box-shadow: 0 5px 12px -7px rgba(80, 30, 15, .5);
}

.memory-mini i:nth-child(2) {
  background: var(--surface-solid);
  color: var(--accent);
  transform: translateY(-8px);
}

.memory-mini i:nth-child(3) {
  background: var(--green);
}

.memory-mini i:nth-child(4) {
  background: var(--surface-solid);
  color: var(--green);
  transform: translateY(-4px);
}

/* ---------------- About / values ---------------- */

.about-card {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 5vw, 64px);
  border-radius: var(--radius-xl);
  background: var(--green-deep);
  color: #f6f0e1;
  isolation: isolate;
}

[data-theme="dark"] .about-card {
  background: #243f31;
}

.about-card::before {
  content: "";
  position: absolute;
  right: -130px;
  top: -170px;
  z-index: -1;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
}

.about-card::after {
  content: "";
  position: absolute;
  right: 4%;
  bottom: -180px;
  z-index: -1;
  width: 430px;
  height: 430px;
  border: 1px dashed rgba(255, 255, 255, .12);
  border-radius: 50%;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(36px, 6vw, 84px);
  align-items: end;
}

.about-card .eyebrow {
  color: rgba(246, 240, 225, .52);
}

.about-card .eyebrow::before {
  background: var(--yellow);
}

.about-card h2 {
  max-width: 610px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -.05em;
  line-height: 1.08;
}

.about-card h2 em {
  font-style: normal;
  color: var(--yellow);
}

.about-card > .about-grid > div > p {
  max-width: 470px;
  margin-top: 20px;
  color: rgba(246, 240, 225, .65);
  font-size: 14px;
  line-height: 1.9;
}

.value-list {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

.value-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.value-item b {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--yellow);
}

.value-item h3 {
  color: #f8f2e4;
  font-size: 14px;
  font-weight: 600;
}

.value-item p {
  margin-top: 3px;
  color: rgba(246, 240, 225, .52);
  font-size: 11.5px;
  line-height: 1.65;
}

/* ---------------- Footer ---------------- */

.site-footer {
  margin-top: clamp(50px, 7vw, 92px);
  border-top: 1px solid var(--line);
  padding-top: 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr .7fr .7fr 1fr;
  gap: 34px;
  padding-bottom: 42px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  max-width: 280px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

.footer-col h3 {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  padding-block: 5px;
  color: var(--ink-soft);
  font-size: 12.5px;
  transition: color .2s ease, transform .2s ease;
}

.footer-col a:hover {
  color: var(--accent);
  transform: translateX(2px);
}

.footer-status {
  align-self: start;
  justify-self: end;
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface-solid) 60%, transparent);
}

.footer-status span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .05em;
}

.footer-status span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.footer-status b {
  font-size: 12px;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .04em;
}

.footer-bottom .footer-bottom__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-to-top {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  transition: color .2s ease;
}

.footer-to-top:hover {
  color: var(--accent);
}

/* ---------------- Reveal & toast ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal[data-delay="1"] { transition-delay: .07s; }
.reveal[data-delay="2"] { transition-delay: .14s; }
.reveal[data-delay="3"] { transition-delay: .21s; }
.reveal[data-delay="4"] { transition-delay: .28s; }

.toast-stack {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  display: grid;
  gap: 8px;
  width: max-content;
  max-width: min(340px, calc(100vw - 44px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: var(--surface-solid);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  line-height: 1.4;
  animation: toast-in .32s var(--ease) both;
}

.toast::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}

.toast.is-leaving {
  animation: toast-out .24s ease forwards;
}

/* ---------------- Keyframes ---------------- */

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

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50% { transform: translateY(-9px) rotate(1deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 34%, transparent); }
  50% { opacity: .65; box-shadow: 0 0 0 4px transparent; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateY(6px) scale(.97); }
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
  .hero-grid {
    gap: 34px;
  }

  .floating-note--tool {
    left: -3%;
  }

  .stamp {
    right: 1%;
  }

  .footer-grid {
    grid-template-columns: 1.4fr .8fr .8fr;
  }

  .footer-status {
    grid-column: 1 / -1;
    justify-self: stretch;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 14px;
    right: 14px;
    z-index: 75;
    display: grid;
    gap: 2px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-solid);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }

  .nav-open .main-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav a {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a.is-active {
    background: var(--surface-soft);
  }

  .menu-toggle {
    display: grid;
  }

  .hero {
    padding-top: 44px;
  }

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

  .hero-copy {
    max-width: 680px;
  }

  .hero h1 {
    max-width: 700px;
  }

  .hero-visual {
    width: min(520px, 100%);
    margin-inline: auto;
    min-height: 490px;
  }

  .floating-note--tool {
    left: 1%;
  }

  .floating-note--game {
    right: 0;
  }

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

  .tool-card--feature {
    grid-column: span 2;
  }

  .arcade-preview {
    grid-template-columns: 1fr;
  }

  .journal-home-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .journal-home-intro p {
    max-width: 540px;
  }

  .journal-home-card:nth-child(2) {
    margin-left: 0;
  }

  .mini-games {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .value-list {
    max-width: 540px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr .75fr .75fr;
  }

  .footer-status {
    display: none;
  }
}

@media (max-width: 700px) {
  .container,
  .container--narrow {
    width: min(100% - 32px, 1180px);
  }

  .section-head {
    display: grid;
    gap: 18px;
    align-items: start;
  }

  .section-head p {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 11vw, 4rem);
  }

  .hero-lead {
    font-size: 14.5px;
  }

  .hero-actions {
    gap: 10px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-visual {
    min-height: 450px;
  }

  .preview-window {
    width: min(390px, 94%);
  }

  .floating-note {
    padding: 8px 11px 8px 8px;
    font-size: 8px;
  }

  .floating-note b {
    width: 31px;
    height: 31px;
    font-size: 11px;
  }

  .floating-note--tool {
    top: 8%;
  }

  .floating-note--game {
    bottom: 9%;
  }

  .stamp {
    width: 68px;
    height: 68px;
    font-size: 6px;
    top: 3%;
  }

  .stamp b {
    font-size: 13px;
  }

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

  .tool-card--feature {
    grid-column: auto;
    min-height: 250px;
  }

  .tool-card--feature .tool-card-main {
    max-width: 100%;
  }

  .mini-games {
    grid-template-columns: 1fr;
  }

  .journal-changelog-line {
    display: grid;
    gap: 7px;
  }

  .journal-changelog-line a {
    justify-self: start;
  }

  .journal-home-card {
    padding: 19px 52px 19px 18px;
  }

  .feature-game {
    min-height: 380px;
    padding: 22px;
  }

  .feature-game__foot {
    display: grid;
    justify-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: grid;
    gap: 10px;
  }
}

@media (max-width: 460px) {
  .container,
  .container--narrow {
    width: min(100% - 24px, 1180px);
  }

  .brand-type small {
    display: none;
  }

  .brand-type b {
    font-size: 14px;
  }

  .header-inner {
    gap: 12px;
  }

  .theme-toggle,
  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-trust {
    gap: 8px 14px;
  }

  .hero-visual {
    min-height: 420px;
  }

  .preview-body {
    padding: 17px;
  }

  .preview-tools {
    gap: 5px;
  }

  .preview-tool {
    padding: 9px 2px 7px;
  }

  .preview-tool b {
    font-size: 12px;
  }

  .floating-note span {
    display: none;
  }

  .floating-note {
    padding: 6px;
    border-radius: 11px;
  }

  .floating-note--tool {
    top: 8%;
    left: -2px;
  }

  .floating-note--game {
    right: -2px;
  }

  .stamp {
    display: none;
  }

  .feature-game {
    min-height: 360px;
  }

  .feature-game .badge {
    top: 16px;
    left: 16px;
  }

  .about-card {
    border-radius: var(--radius-lg);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

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