/* ==========================================================================
   Brush-Jjaemu.com
   A warm, low-glare editorial system for a high-tension little game.
   ========================================================================== */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe4;
  --paper-deep: #ebe3d4;
  --paper-warm: #f0e6d3;
  --cream: #fffbf2;
  --ink: #1e2a25;
  --ink-soft: #33443b;
  --muted: #5f6d64;
  --sage: #8fa68f;
  --sage-dark: #3f5d4b;
  --sage-wash: #e7eee5;
  --apricot: #e9a46e;
  --apricot-wash: #f6e0cc;
  --persimmon: #c55a3b;
  --persimmon-dark: #a8482d;
  --ochre: #c99a4a;
  --line: rgba(30, 42, 37, 0.15);
  --line-strong: rgba(30, 42, 37, 0.28);
  --white-line: rgba(244, 239, 228, 0.2);
  --shadow-sm: 0 2px 10px rgba(30, 42, 37, 0.05);
  --shadow-md: 0 18px 40px rgba(30, 42, 37, 0.1);
  --shadow-lg: 0 38px 80px rgba(30, 42, 37, 0.16);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(68px, 9vw, 112px);
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

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

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

body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 0%, rgba(233, 164, 110, 0.14), transparent 30rem),
    radial-gradient(circle at 96% 10%, rgba(143, 166, 143, 0.15), transparent 34rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

::selection {
  background: var(--apricot);
  color: var(--ink);
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

li {
  list-style-position: outside;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

:focus-visible {
  outline: 3px solid var(--apricot);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1001;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

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

.container {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

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

.section {
  position: relative;
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(52px, 7vw, 82px);
}

.section--paper {
  background: var(--paper-deep);
}

.section--sage {
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.35), transparent 40%),
    var(--sage-wash);
}

.section--ink {
  background:
    radial-gradient(circle at 92% 8%, rgba(197, 90, 59, 0.2), transparent 25rem),
    radial-gradient(circle at 3% 92%, rgba(143, 166, 143, 0.12), transparent 30rem),
    var(--ink);
  color: var(--paper);
}

.section--ink h2,
.section--ink h3 {
  color: var(--cream);
}

.section--flush-top {
  padding-top: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--persimmon);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  display: block;
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section--ink .kicker {
  color: var(--apricot);
}

.lead {
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.section--ink .lead,
.section--ink .section-head p {
  color: rgba(244, 239, 228, 0.74);
}

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

.small {
  font-size: 13.5px;
  line-height: 1.55;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 56px);
}

.section-head h2 {
  max-width: 13ch;
  font-size: clamp(2.2rem, 4.2vw, 3.7rem);
}

.section-head__copy {
  max-width: 62ch;
}

.section-head__copy p + p {
  margin-top: 16px;
}

.section-head--stack {
  display: block;
  max-width: 820px;
}

.section-head--stack h2 {
  margin-bottom: 18px;
}

.section-head--stack p {
  max-width: 66ch;
}

.section--ink .section-head__copy p {
  color: rgba(244, 239, 228, 0.72);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.text-link:hover {
  color: var(--persimmon);
  border-color: var(--persimmon);
}

.text-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s var(--ease);
}

.text-link:hover svg {
  transform: translate(2px, -2px);
}

.section--ink .text-link {
  color: var(--cream);
  border-color: var(--white-line);
}

.section--ink .text-link:hover {
  color: var(--apricot);
  border-color: var(--apricot);
}

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

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

.btn svg {
  width: 17px;
  height: 17px;
}

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

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

.btn--small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 12.5px;
}

.btn--light {
  background: var(--cream);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--apricot);
  color: var(--ink);
}

.section--ink .btn--ghost {
  color: var(--cream);
  border-color: var(--white-line);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(244, 239, 228, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(244, 239, 228, 0.96);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(30, 42, 37, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  transition: transform 0.25s var(--ease);
}

.brand:hover .brand__mark {
  transform: rotate(-5deg) scale(1.04);
}

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

.brand__name span:first-child {
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.brand__name span:last-child {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  margin-left: auto;
}

.site-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1.5px;
  background: var(--persimmon);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--persimmon);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 17px;
  height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

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

.menu-toggle span {
  margin-block: 4px;
}

.nav-open .menu-toggle span {
  opacity: 0;
}

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

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

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(38px, 6vw, 68px) 0 clamp(52px, 7vw, 88px);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -18rem;
  right: -14rem;
  width: 48rem;
  height: 48rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 164, 110, 0.28), transparent 66%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -11rem;
  bottom: -13rem;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(30, 42, 37, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(36px, 5vw, 74px);
  align-items: center;
}

.hero__copy {
  padding-bottom: 8px;
  animation: hero-rise 0.75s var(--ease) both;
}

.hero__title {
  margin: 18px 0 20px;
  font-size: clamp(4rem, 7.4vw, 7.1rem);
  font-weight: 600;
  line-height: 0.83;
  letter-spacing: -0.06em;
}

.hero__title span {
  display: block;
}

.hero__title span:last-child {
  margin-left: 0.32em;
  color: var(--persimmon);
}

.hero__tagline {
  max-width: 21ch;
  margin-bottom: 19px;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.hero__intro {
  max-width: 46ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.25vw, 1.08rem);
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 7px;
  list-style: none;
}

.hero__meta li + li::before {
  content: "/";
  color: var(--apricot);
}

.hero__byline {
  margin-top: 18px;
  color: var(--muted);
  font-size: 12px;
}

.hero__byline a {
  text-underline-offset: 2px;
}

.hero__game {
  position: relative;
  animation: hero-rise 0.75s 0.12s var(--ease) both;
}

.hero__game::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 18px;
  bottom: 30px;
  left: -18px;
  border-radius: var(--radius-lg);
  background: var(--sage);
  transform: rotate(-1.6deg);
  opacity: 0.46;
}

.game-stage {
  position: relative;
  border: 1px solid rgba(30, 42, 37, 0.24);
  border-radius: var(--radius-lg);
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.game-stage__bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 16px;
  background: var(--ink);
  color: rgba(244, 239, 228, 0.76);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--apricot);
  box-shadow: 0 0 0 4px rgba(233, 164, 110, 0.12);
}

.game-stage__bar span:nth-child(2) {
  margin-right: auto;
}

.game-stage__status {
  color: var(--apricot);
}

.game-frame {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 30%, #ffffff, #f1eee8 75%);
  overflow: hidden;
}

.game-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--ink);
  color: var(--cream);
  text-align: left;
  overflow: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}

.game-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease), filter 0.6s var(--ease);
}

.game-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 42, 37, 0) 34%, rgba(30, 42, 37, 0.72) 100%),
    linear-gradient(90deg, rgba(30, 42, 37, 0.06), transparent 60%);
}

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

.game-poster__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  padding: 7px 11px;
  border: 1px solid rgba(255, 251, 242, 0.32);
  border-radius: 999px;
  background: rgba(30, 42, 37, 0.44);
  color: var(--cream);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.game-poster__content {
  position: absolute;
  right: 24px;
  bottom: 23px;
  left: 24px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.game-poster__eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--apricot);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.game-poster__title {
  display: block;
  max-width: 11ch;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.game-poster__note {
  display: block;
  margin-top: 7px;
  color: rgba(244, 239, 228, 0.68);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.play-orb {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 50%;
  background: var(--cream);
  color: var(--persimmon);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}

.play-orb svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

.game-poster:hover .play-orb {
  background: var(--persimmon);
  color: var(--cream);
  transform: scale(1.06);
}

.game-iframe {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.game-stage.is-live .game-iframe {
  opacity: 1;
  visibility: visible;
}

.game-stage.is-live .game-poster {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.game-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 14px;
  justify-items: center;
  background: rgba(30, 42, 37, 0.82);
  color: var(--cream);
  text-align: center;
  backdrop-filter: blur(4px);
}

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

.game-loading__spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(244, 239, 228, 0.25);
  border-top-color: var(--apricot);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.game-loading p {
  max-width: 230px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(244, 239, 228, 0.78);
}

.game-stage__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px 8px 16px;
  border-top: 1px solid var(--line);
  background: var(--cream);
  transition: background 0.25s var(--ease);
}

.game-stage.is-blocked .game-stage__foot {
  background: var(--apricot-wash);
}

.game-stage__foot p {
  flex: 1;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
}

.game-stage__foot a {
  font-weight: 700;
  color: var(--ink);
}

.game-stage__tools {
  display: flex;
  gap: 6px;
}

.game-tool {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.game-tool:hover {
  background: var(--ink);
  color: var(--cream);
}

.game-tool svg {
  width: 14px;
  height: 14px;
}

.game-caption {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.game-caption svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  margin-top: 2px;
  color: var(--persimmon);
}

/* Quick answer ------------------------------------------------------------ */

.quick-answer {
  position: relative;
  z-index: 2;
  padding-bottom: var(--section-y);
}

.answer-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 251, 242, 0.94), rgba(255, 251, 242, 0.68)),
    var(--cream);
  box-shadow: var(--shadow-sm);
}

.answer-panel h2 {
  margin: 13px 0 18px;
  font-size: clamp(2rem, 3.5vw, 3rem);
}

.answer-panel__copy p + p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15.5px;
}

.answer-panel__copy .lead {
  color: var(--ink-soft);
  font-size: 19px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.facts > div {
  padding: 17px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.facts dd {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.facts dd span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
}

.facts__note {
  grid-column: 1 / -1;
  background: rgba(235, 227, 212, 0.58);
}

.facts__note dd {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* Rule section ------------------------------------------------------------ */

.rule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(38px, 6vw, 80px);
  align-items: center;
}

.rule-copy h2 {
  max-width: 13ch;
  font-size: clamp(2.3rem, 4.6vw, 4.1rem);
}

.rule-copy > p {
  max-width: 52ch;
  margin-top: 20px;
  color: rgba(244, 239, 228, 0.72);
}

.rule-steps {
  margin-top: 34px;
  border-top: 1px solid var(--white-line);
}

.rule-step {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--white-line);
}

.rule-step__num {
  padding-top: 3px;
  color: var(--apricot);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

.rule-step h3 {
  margin-bottom: 5px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.rule-step p {
  color: rgba(244, 239, 228, 0.62);
  font-size: 13.5px;
  line-height: 1.6;
}

.freeze-callout {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 2px solid var(--apricot);
  background: rgba(233, 164, 110, 0.09);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.38rem);
  font-style: italic;
  line-height: 1.35;
}

.freeze-callout strong {
  color: var(--apricot);
  font-style: normal;
}

.rule-figure {
  position: relative;
}

.rule-figure::before {
  content: "THE ONLY TELL";
  position: absolute;
  top: 22px;
  left: -10px;
  z-index: 2;
  padding: 7px 11px;
  background: var(--persimmon);
  color: var(--cream);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transform: rotate(-90deg) translateX(-100%);
  transform-origin: top left;
}

.rule-figure__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink-soft);
}

.rule-figure__frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.04);
}

.rule-figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(30, 42, 37, 0.88) 100%);
  pointer-events: none;
}

.rule-figure__label {
  position: absolute;
  right: 22px;
  bottom: 18px;
  left: 22px;
  z-index: 2;
  color: var(--cream);
  font-size: 12px;
  line-height: 1.5;
}

.rule-figure__label span {
  display: block;
  color: var(--apricot);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rule-figure__credit {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

/* Tells ------------------------------------------------------------------- */

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

.tell-card {
  position: relative;
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.tell-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.tell-card__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--apricot-wash);
  color: var(--persimmon);
}

.tell-card__icon svg {
  width: 25px;
  height: 25px;
}

.tell-card__index {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.tell-card h3 {
  margin-bottom: 8px;
  font-size: 23px;
}

.tell-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.tell-card__signal {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
  color: var(--persimmon);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.figure-wide {
  margin-top: 24px;
}

.figure-wide__frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
}

.figure-wide__frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) brightness(0.82);
}

.figure-wide__overlay {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  color: var(--cream);
}

.figure-wide__overlay p {
  max-width: 30ch;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.25;
}

.figure-wide__overlay span {
  flex: 0 0 auto;
  color: var(--apricot);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.real-cat-note {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  margin-top: 24px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--persimmon);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: rgba(255, 251, 242, 0.55);
}

.real-cat-note p {
  max-width: 75ch;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.real-cat-note strong {
  color: var(--ink);
}

/* Strategy ---------------------------------------------------------------- */

.strategy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(36px, 5vw, 68px);
  align-items: start;
}

.strategy-block h3 {
  margin-bottom: 18px;
  font-size: 28px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.55;
}

.data-table caption {
  padding: 16px 18px 12px;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
}

.data-table th,
.data-table td {
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--paper-deep);
  color: var(--ink);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.data-table tbody th {
  font-weight: 700;
  white-space: nowrap;
}

.data-table td:last-child {
  color: var(--muted);
}

.data-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.drill-stack {
  display: grid;
  gap: 12px;
}

.drill {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 15px;
  padding: 19px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.drill__num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--persimmon);
  font-family: var(--font-display);
  font-size: 15px;
}

.drill h4 {
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.drill p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.58;
}

.mistakes {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.mistakes h3 {
  margin-bottom: 14px;
  font-size: 22px;
}

.check-list {
  display: grid;
  gap: 9px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
  list-style: none;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--persimmon);
}

.setup-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.setup-compare article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 251, 242, 0.52);
}

.setup-compare h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.setup-compare h4 svg {
  width: 15px;
  height: 15px;
  color: var(--persimmon);
}

.setup-compare p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* Story ------------------------------------------------------------------- */

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.story-figure {
  position: relative;
}

.story-figure::before {
  content: "";
  position: absolute;
  top: -14px;
  right: -14px;
  width: 44%;
  height: 38%;
  border: 1px solid var(--persimmon);
  border-radius: 0 var(--radius-lg) 0 0;
  pointer-events: none;
}

.story-figure img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: saturate(0.92);
}

.story-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.story-copy h2 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-size: clamp(2.2rem, 4.3vw, 3.8rem);
}

.story-copy p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.75;
}

.story-copy p + p {
  margin-top: 14px;
}

.pull-quote {
  margin: 26px 0;
  padding: 2px 0 2px 22px;
  border-left: 2px solid var(--persimmon);
}

.pull-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
}

.pull-quote cite {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
}

/* Care -------------------------------------------------------------------- */

.care-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 5vw, 68px);
  align-items: start;
}

.care-figure {
  position: sticky;
  top: 108px;
}

.care-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: saturate(0.82);
}

.care-figure figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.care-copy h2 {
  max-width: 14ch;
  margin-bottom: 18px;
  font-size: clamp(2.15rem, 4.2vw, 3.6rem);
}

.care-copy > p {
  max-width: 55ch;
  color: var(--muted);
  font-size: 15px;
}

.care-list {
  display: grid;
  gap: 0;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.care-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.care-item__num {
  color: var(--persimmon);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.2;
}

.care-item h3 {
  margin-bottom: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.care-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.care-sources {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.care-sources a {
  color: var(--ink);
  text-decoration-color: var(--line-strong);
}

.warning-strip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 32px;
  padding: 18px 20px;
  border: 1px solid rgba(197, 90, 59, 0.32);
  border-radius: var(--radius-md);
  background: rgba(197, 90, 59, 0.07);
}

.warning-strip svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  color: var(--persimmon);
}

.warning-strip p {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.65;
}

/* Cat games --------------------------------------------------------------- */

.cat-games-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 52px);
}

.cat-games-intro__figure {
  position: relative;
}

.cat-games-intro__figure img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: saturate(0.86);
}

.cat-games-intro__figure span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cat-games-intro h2 {
  max-width: 15ch;
  margin: 12px 0 18px;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.cat-games-intro p {
  max-width: 60ch;
  color: var(--muted);
  font-size: 15px;
}

.cat-games-intro p + p {
  margin-top: 12px;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.game-card {
  --accent: var(--persimmon);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 21px 20px 20px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  background: var(--cream);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.game-card::before {
  content: "";
  position: absolute;
  top: -48px;
  right: -48px;
  width: 132px;
  height: 132px;
  border: 1px solid var(--line);
  border-radius: 50%;
  opacity: 0.7;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.game-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 26px;
}

.game-card__type {
  color: var(--accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.game-card__index {
  color: var(--line-strong);
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
}

.game-card h3 {
  margin-bottom: 7px;
  font-size: 22px;
  line-height: 1.1;
}

.game-card p {
  flex: 1;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.58;
}

.game-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 17px;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.game-card__link svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}

.game-card__link:hover svg {
  transform: translate(2px, -2px);
}

.games-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.games-foot p {
  color: var(--muted);
  font-size: 11.5px;
}

/* Video ------------------------------------------------------------------- */

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.video-facade {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 1px solid var(--white-line);
  border-radius: var(--radius-lg);
  background-image:
    linear-gradient(135deg, rgba(30, 42, 37, 0.28), rgba(30, 42, 37, 0.76)),
    var(--thumb, linear-gradient(135deg, #425c4d, #1e2a25)),
    var(--thumb-fallback, linear-gradient(135deg, #425c4d, #1e2a25));
  background-position: center;
  background-size: cover;
  color: var(--cream);
  overflow: hidden;
  isolation: isolate;
}

.video-facade::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(30, 42, 37, 0.12), rgba(30, 42, 37, 0.78));
}

.video-facade__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 251, 242, 0.46);
  border-radius: 50%;
  background: rgba(255, 251, 242, 0.12);
  color: var(--cream);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}

.video-facade__play svg {
  width: 24px;
  height: 24px;
  margin-left: 4px;
}

.video-facade:hover .video-facade__play {
  background: var(--persimmon);
  transform: translate(-50%, -50%) scale(1.06);
}

.video-facade__label {
  position: absolute;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--cream);
  font-size: 11px;
  font-weight: 600;
  text-align: left;
}

.video-facade__label span:last-child {
  color: var(--apricot);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-facade__mark {
  position: absolute;
  top: 20px;
  left: 24px;
  color: rgba(255, 251, 242, 0.6);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 0.86;
  letter-spacing: -0.05em;
  text-align: left;
  text-shadow: 0 2px 24px rgba(30, 42, 37, 0.22);
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--white-line);
  border-radius: var(--radius-lg);
  background: #0d1411;
}

.video-side h3 {
  margin-bottom: 17px;
  font-size: 25px;
}

.watch-list {
  display: grid;
  gap: 12px;
}

.watch-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  color: rgba(244, 239, 228, 0.7);
  font-size: 12.5px;
  line-height: 1.6;
  list-style: none;
}

.watch-list span {
  color: var(--apricot);
  font-family: var(--font-display);
  font-size: 12px;
}

.video-note {
  margin-top: 20px;
  color: rgba(244, 239, 228, 0.58);
  font-size: 10.5px;
}

.video-note a {
  color: rgba(244, 239, 228, 0.7);
}

/* Author ------------------------------------------------------------------ */

.author-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) minmax(230px, 0.62fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.author-card__avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 251, 242, 0.35), transparent 55%),
    var(--sage-dark);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.author-card h2 {
  margin: 9px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.author-card__role {
  color: var(--persimmon);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.author-card__bio {
  max-width: 57ch;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
}

.author-card__bio + .author-card__bio {
  margin-top: 8px;
}

.author-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.author-card__meta span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.author-card__standards {
  padding-left: clamp(0px, 3vw, 28px);
  border-left: 1px solid var(--line);
}

.author-card__standards h3 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.author-card__standards ul {
  display: grid;
  gap: 7px;
}

.author-card__standards li {
  position: relative;
  padding-left: 14px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
  list-style: none;
}

.author-card__standards li::before {
  content: "路";
  position: absolute;
  left: 0;
  color: var(--persimmon);
  font-weight: 700;
}

.updated {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}

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

/* Community --------------------------------------------------------------- */

.community {
  background:
    radial-gradient(circle at 0% 0%, rgba(233, 164, 110, 0.18), transparent 28rem),
    radial-gradient(circle at 100% 100%, rgba(143, 166, 143, 0.2), transparent 28rem),
    var(--paper-deep);
}

.community-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 38px;
}

.community-head h2 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
}

.community-head p {
  max-width: 48ch;
  color: var(--muted);
  font-size: 14px;
}

.community-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.13fr) minmax(0, 0.87fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
}

.community-feed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.community-feed-head h3 {
  font-size: 25px;
}

.community-feed-head span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ugc-feed {
  display: grid;
  gap: 12px;
}

.ugc-note {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
}

.ugc-note--media {
  border-left: 3px solid var(--persimmon);
}

.ugc-note__head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.ugc-note__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: var(--sage-wash);
  color: var(--sage-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.ugc-note__identity {
  min-width: 0;
  flex: 1;
}

.ugc-note__author {
  margin: 0;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.ugc-note__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.ugc-note__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--apricot-wash);
  color: var(--persimmon-dark);
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ugc-note__rating {
  color: var(--ochre);
  font-size: 10px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.ugc-note__body {
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.68;
}

.ugc-note--media .ugc-note__body {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
}

.ugc-note__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 9px;
}

.ugc-note__foot a {
  color: var(--ink-soft);
  font-weight: 600;
}

.ugc-empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.ugc-status {
  min-height: 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.ugc-status[data-tone="success"] {
  color: var(--sage-dark);
}

.ugc-status[data-tone="error"] {
  color: var(--persimmon-dark);
}

.community-side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
}

.poll-card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
}

.poll-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -50px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(244, 239, 228, 0.14);
  border-radius: 50%;
}

.poll-card h3 {
  margin: 7px 0 4px;
  font-size: 24px;
  color: var(--cream);
}

.poll-card > p {
  color: rgba(244, 239, 228, 0.56);
  font-size: 11px;
}

.poll-options {
  display: grid;
  gap: 8px;
  margin-top: 17px;
}

.poll-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--white-line);
  border-radius: 9px;
  background: rgba(255, 251, 242, 0.05);
  color: var(--cream);
  text-align: left;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.poll-option:hover {
  border-color: var(--apricot);
  background: rgba(255, 251, 242, 0.09);
}

.poll-option__label {
  position: relative;
  z-index: 2;
  font-size: 11.5px;
  font-weight: 600;
}

.poll-option__count {
  position: relative;
  z-index: 2;
  color: var(--apricot);
  font-family: var(--font-display);
  font-size: 18px;
}

.poll-option__bar {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 0;
  background: rgba(233, 164, 110, 0.12);
  transition: width 0.5s var(--ease);
}

.poll-foot {
  margin-top: 12px;
  color: rgba(244, 239, 228, 0.58);
  font-size: 9.5px;
}

.ugc-form-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
}

.ugc-form-card h3 {
  margin-bottom: 4px;
  font-size: 23px;
}

.ugc-form-card > p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.ugc-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field {
  display: grid;
  gap: 4px;
}

.field label,
.field-label,
.fieldset-label {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--persimmon);
  background: var(--cream);
  outline: none;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field-row .field:last-child {
  min-width: 0;
}

.rating-field {
  padding: 0;
  border: 0;
}

.rating-field legend {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.star-input {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}

.star-input input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.star-input label {
  color: rgba(30, 42, 37, 0.22);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label {
  color: var(--ochre);
}

.star-input label:hover {
  transform: scale(1.08);
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.captcha-row .field {
  min-width: 0;
}

.captcha-question {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.captcha-refresh {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.captcha-refresh svg {
  width: 13px;
  height: 13px;
  margin: auto;
}

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.form-foot p {
  max-width: 28ch;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.form-foot .btn {
  min-height: 40px;
  padding: 10px 17px;
  font-size: 11.5px;
}

.ugc-form[aria-busy="true"] .btn {
  opacity: 0.6;
}

/* FAQ --------------------------------------------------------------------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(34px, 6vw, 80px);
  align-items: start;
}

.faq-intro {
  position: sticky;
  top: 106px;
}

.faq-intro h2 {
  max-width: 10ch;
  margin: 12px 0 18px;
  font-size: clamp(2.25rem, 4.2vw, 3.5rem);
}

.faq-intro p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 14px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 0;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary h3 {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.34rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.faq-item summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--persimmon);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}

.faq-item[open] summary::after {
  content: "鈭?;
  background: var(--apricot-wash);
  transform: rotate(180deg);
}

.faq-item__answer {
  max-width: 65ch;
  padding: 0 50px 22px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.faq-item__answer a {
  color: var(--ink);
}

/* Sources ----------------------------------------------------------------- */

.sources-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 0.62fr);
  gap: clamp(32px, 5vw, 68px);
  align-items: start;
}

.sources-layout h2 {
  max-width: 11ch;
  margin: 12px 0 16px;
  font-size: clamp(2rem, 3.6vw, 3rem);
}

.sources-layout p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.source-list {
  display: grid;
  gap: 0;
  counter-reset: source;
  border-top: 1px solid var(--line);
}

.source-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
  counter-increment: source;
}

.source-list li::before {
  content: counter(source, decimal-leading-zero);
  color: var(--persimmon);
  font-family: var(--font-display);
  font-size: 12px;
}

.source-list a {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  text-decoration-color: var(--line-strong);
}

.source-list span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}

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

.site-footer {
  position: relative;
  padding: 64px 0 26px;
  background: var(--ink);
  color: rgba(244, 239, 228, 0.68);
  overflow: hidden;
}

.site-footer::before {
  content: "JJAEMU";
  position: absolute;
  right: -1vw;
  bottom: -6rem;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(12rem, 27vw, 26rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.08em;
  -webkit-text-stroke: 1px rgba(244, 239, 228, 0.06);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, 0.58fr));
  gap: clamp(28px, 5vw, 64px);
}

.footer-brand .brand {
  color: var(--cream);
}

.footer-brand .brand__name span:first-child {
  color: rgba(244, 239, 228, 0.46);
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 15px;
  color: rgba(244, 239, 228, 0.56);
  font-size: 11.5px;
  line-height: 1.65;
}

.footer-col h2 {
  margin-bottom: 13px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 7px;
}

.footer-col li {
  list-style: none;
}

.footer-col a {
  color: rgba(244, 239, 228, 0.64);
  font-size: 11.5px;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: var(--apricot);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(244, 239, 228, 0.12);
}

.footer-bottom p {
  max-width: 76ch;
  color: rgba(244, 239, 228, 0.56);
  font-size: 10px;
  line-height: 1.6;
}

.footer-bottom a {
  color: rgba(244, 239, 228, 0.68);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 9px;
}

.footer-legal a {
  text-decoration: none;
}

/* Inner pages ------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: clamp(36px, 5vw, 58px) 0 clamp(38px, 5vw, 62px);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: -14rem;
  right: -10rem;
  width: 36rem;
  height: 36rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 166, 143, 0.2), transparent 66%);
  pointer-events: none;
}

.breadcrumb {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--persimmon);
}

.breadcrumb span[aria-current] {
  color: var(--ink);
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.33fr);
  gap: 38px;
  align-items: end;
}

.page-hero h1 {
  max-width: 16ch;
  margin-top: 13px;
  font-size: clamp(2.65rem, 5.6vw, 5.05rem);
  line-height: 0.96;
}

.page-hero__lead {
  max-width: 58ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  line-height: 1.65;
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-hero__meta span + span::before {
  content: "/";
  margin-right: 16px;
  color: var(--apricot);
}

.page-hero__aside {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 251, 242, 0.58);
}

.page-hero__aside p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.page-hero__aside strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.guide-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
}

.toc {
  position: sticky;
  top: 106px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.toc h2 {
  margin-bottom: 11px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 6px;
  counter-reset: toc;
}

.toc li {
  list-style: none;
  counter-increment: toc;
}

.toc a {
  display: flex;
  gap: 7px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.4;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--apricot);
  font-family: var(--font-display);
  font-size: 9px;
}

.toc a:hover {
  color: var(--persimmon);
}

.prose {
  min-width: 0;
  max-width: 780px;
}

.prose > section + section {
  margin-top: clamp(42px, 6vw, 64px);
}

.prose h2 {
  max-width: 18ch;
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
}

.prose h2 + .h2-note {
  margin-top: -10px;
  margin-bottom: 18px;
}

.prose h3 {
  margin: 26px 0 10px;
  font-size: clamp(1.28rem, 2vw, 1.55rem);
}

.prose p {
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.78;
}

.prose p + p {
  margin-top: 13px;
}

.prose a {
  text-decoration-color: var(--apricot);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding-left: 22px;
}

.prose li {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}

.prose li::marker {
  color: var(--persimmon);
  font-weight: 700;
}

.prose figure {
  margin: 26px 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--radius-md);
}

.prose figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.prose .table-wrap {
  margin: 20px 0;
}

.callout {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--persimmon);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--cream);
}

.callout--sage {
  border-left-color: var(--sage-dark);
  background: var(--sage-wash);
}

.callout h3 {
  margin: 0 0 5px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.callout p {
  font-size: 13px;
  line-height: 1.65;
}

.prose-steps {
  display: grid;
  gap: 0;
  margin: 20px 0;
  border-top: 1px solid var(--line);
  counter-reset: guide-step;
}

.prose-step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  counter-increment: guide-step;
}

.prose-step::before {
  content: counter(guide-step, decimal-leading-zero);
  color: var(--persimmon);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1.6;
}

.prose-step h3 {
  margin: 0 0 4px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.prose-step p {
  margin: 0;
  font-size: 13px;
  line-height: 1.62;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.article-meta__author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.article-meta__author span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sage-dark);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 9px;
}

.article-meta__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.guide-end {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.guide-end h2 {
  margin-bottom: 12px;
  font-size: 28px;
}

.guide-end p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 13.5px;
}

/* Category page ----------------------------------------------------------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
}

.filter-bar button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.filter-bar button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.filter-bar button[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.filter-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

.games-grid--category {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.games-grid--category .game-card {
  min-height: 240px;
}

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

.category-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.category-note article {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 251, 242, 0.52);
}

.category-note h3 {
  margin-bottom: 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.category-note p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.decision-box {
  margin-top: 28px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--paper);
}

.decision-box h3 {
  margin-bottom: 8px;
  color: var(--cream);
  font-size: 23px;
}

.decision-box p {
  color: rgba(244, 239, 228, 0.65);
  font-size: 12.5px;
}

.decision-box a {
  color: var(--apricot);
}

/* About and legal --------------------------------------------------------- */

.profile {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.profile__avatar {
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 27%, rgba(255, 251, 242, 0.3), transparent 55%),
    var(--sage-dark);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 46px;
  letter-spacing: -0.05em;
}

.profile h2 {
  margin: 8px 0 9px;
  font-size: 34px;
}

.profile__role {
  color: var(--persimmon);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.profile p {
  max-width: 64ch;
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 15px;
}

.legal-note {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 251, 242, 0.55);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

/* Error / utility --------------------------------------------------------- */

.visually-hidden {
  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;
}

[hidden] {
  display: none !important;
}

.no-scroll {
  overflow: hidden;
}

/* Animations -------------------------------------------------------------- */

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

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

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

@media (max-width: 1120px) {
  .games-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .games-grid .game-card:nth-child(7),
  .games-grid .game-card:nth-child(8) {
    min-height: 230px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 38px;
  }

  .hero__title {
    font-size: clamp(3.8rem, 7.2vw, 5.9rem);
  }

  .author-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .author-card__standards {
    grid-column: 2;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 980px) {
  .site-nav {
    position: fixed;
    top: 82px;
    right: var(--gutter);
    left: var(--gutter);
    display: grid;
    gap: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--cream);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s var(--ease);
  }

  .nav-open .site-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

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

  .menu-toggle {
    display: block;
  }

  .header-actions .btn--small {
    display: none;
  }

  .hero__grid,
  .rule-grid,
  .strategy-grid,
  .story-grid,
  .care-layout,
  .video-grid,
  .faq-layout,
  .sources-layout,
  .page-hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__copy {
    max-width: 680px;
  }

  .hero__game {
    width: min(100%, 620px);
    margin-inline: auto;
  }

  .hero::after {
    bottom: 30%;
    font-size: 15rem;
    opacity: 0.6;
  }

  .answer-panel,
  .section-head,
  .community-head {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-head h2,
  .community-head h2 {
    max-width: 16ch;
  }

  .rule-figure {
    max-width: 600px;
    margin-inline: auto;
  }

  .rule-figure::before {
    display: none;
  }

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

  .tell-card {
    display: block;
  }

  .tell-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
  }

  .tell-card__index {
    display: block;
    margin-top: 0;
    text-align: right;
  }

  .tell-card__signal {
    margin-top: 12px;
  }

  .care-figure,
  .faq-intro,
  .community-side {
    position: static;
  }

  .care-figure {
    max-width: 620px;
  }

  .cat-games-intro {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  }

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

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

  .community-layout {
    grid-template-columns: 1fr;
  }

  .community-side {
    grid-template-columns: 1fr;
  }

  .ugc-form-card {
    max-width: 620px;
  }

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

  .toc {
    position: static;
    padding: 0 0 18px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .toc ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 18px;
  }

  .prose {
    max-width: 100%;
  }

  .page-hero__aside {
    max-width: 520px;
  }

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

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

@media (max-width: 720px) {
  html {
    scroll-padding-top: 88px;
  }

  body {
    font-size: 16px;
  }

  .header-inner {
    min-height: 74px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .brand__name span:last-child {
    font-size: 19px;
  }

  .site-nav {
    top: 74px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero__title {
    font-size: clamp(3.45rem, 16vw, 5.2rem);
    line-height: 0.86;
  }

  .hero__title span:last-child {
    margin-left: 0.16em;
  }

  .hero__tagline {
    font-size: 1.4rem;
  }

  .hero__meta {
    gap: 7px 12px;
    font-size: 9px;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .game-stage__foot p {
    font-size: 9.5px;
  }

  .game-poster__content {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .play-orb {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
  }

  .game-poster__title {
    font-size: 1.65rem;
  }

  .answer-panel {
    padding: 24px;
  }

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

  .facts > div {
    padding: 14px;
  }

  .figure-wide__overlay {
    right: 18px;
    bottom: 16px;
    left: 18px;
  }

  .figure-wide__overlay span {
    display: none;
  }

  .real-cat-note {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .setup-compare {
    grid-template-columns: 1fr;
  }

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

  .cat-games-intro__figure {
    max-width: 320px;
  }

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

  .game-card {
    min-height: 220px;
  }

  .games-foot {
    align-items: flex-start;
  }

  .author-card {
    grid-template-columns: 1fr;
  }

  .author-card__avatar {
    width: 72px;
    height: 72px;
    font-size: 24px;
  }

  .author-card__standards {
    grid-column: auto;
  }

  .community-feed-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .captcha-row {
    grid-template-columns: 1fr;
  }

  .faq-item__answer {
    padding-right: 0;
  }

  .source-list li {
    grid-template-columns: 22px minmax(0, 1fr);
  }

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

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

  .footer-bottom {
    flex-direction: column;
  }

  .page-hero {
    padding-top: 28px;
  }

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

  .profile__avatar {
    width: 96px;
    height: 96px;
    font-size: 30px;
  }

  .category-note {
    grid-template-columns: 1fr;
  }

  .toc ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .brand__name span:first-child {
    display: none;
  }

  .hero__title {
    font-size: 3.3rem;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .filter-count {
    width: 100%;
    margin-left: 0;
  }
}

@media print {
  .site-header,
  .game-stage__bar,
  .game-stage__foot,
  .community,
  .site-footer,
  .video-facade {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .hero {
    padding: 0;
  }

  .hero__grid,
  .section-head,
  .rule-grid,
  .story-grid,
  .care-layout,
  .strategy-grid {
    display: block;
  }

  a {
    color: #000;
  }
}

/* ==========================================================================
   Evidence-led guide additions
   ========================================================================== */

.jump-nav {
  padding: 0 0 var(--section-y);
}

.jump-nav__panel {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1.55fr);
  gap: 30px;
  align-items: start;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 251, 242, 0.68);
}

.jump-nav h2 {
  margin: 9px 0 6px;
  font-size: clamp(1.55rem, 2.4vw, 2.1rem);
}

.jump-nav p {
  max-width: 28ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.jump-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.jump-links a:hover {
  border-color: var(--persimmon);
  background: var(--apricot-wash);
  color: var(--ink);
}

.jump-links a span {
  color: var(--persimmon);
  font-family: var(--font-display);
  font-size: 12px;
}

.evidence-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage-dark);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--cream);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.evidence-note strong {
  color: var(--ink);
}

.evidence-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: 1px;
  color: var(--sage-dark);
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.evidence-card {
  padding: 22px 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
}

.evidence-card--verified {
  border-top: 3px solid var(--sage-dark);
}

.evidence-card--reported {
  border-top: 3px solid var(--ochre);
}

.evidence-card--unknown {
  border-top: 3px solid var(--persimmon);
}

.evidence-card h3 {
  margin: 11px 0 9px;
  font-size: 23px;
}

.evidence-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.evidence-card ul {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.evidence-card li {
  position: relative;
  padding-left: 15px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.58;
  list-style: none;
}

.evidence-card li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--persimmon);
}

.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.evidence-badge--verified {
  background: var(--sage-wash);
  color: var(--sage-dark);
}

.evidence-badge--reported {
  background: #f7ead5;
  color: #7a541c;
}

.evidence-badge--unknown {
  background: var(--apricot-wash);
  color: var(--persimmon-dark);
}

.mechanics-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}

.mechanics-split h3 {
  margin-bottom: 10px;
  font-size: 27px;
}

.mechanics-split p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.mechanics-split p + p {
  margin-top: 12px;
}

.mechanics-list {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.mechanics-list > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.mechanics-list dt {
  color: var(--persimmon);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mechanics-list dd {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.6;
}

.trade-table td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.figure-note {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.figure-note a {
  color: var(--ink-soft);
}

.diagram-figure {
  margin: 0;
}

.diagram-figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.diagram-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.myth-box {
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid rgba(197, 90, 59, 0.3);
  border-radius: var(--radius-md);
  background: rgba(197, 90, 59, 0.055);
}

.myth-box h3 {
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.myth-box ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
}

.myth-box li {
  position: relative;
  padding-left: 17px;
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.58;
  list-style: none;
}

.myth-box li::before {
  content: "脳";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--persimmon);
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.tag-row span {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

/* Turn test --------------------------------------------------------------- */

.turn-test {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--cream);
}

.test-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--ink);
  color: var(--cream);
  text-align: center;
  overflow: hidden;
}

.test-stage::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(244, 239, 228, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.test-stage__cat {
  position: relative;
  z-index: 1;
  color: rgba(244, 239, 228, 0.24);
}

.test-stage__cat svg {
  width: 118px;
  height: 118px;
}

.test-stage__message {
  position: relative;
  z-index: 1;
  max-width: 32ch;
  margin-top: 13px;
  color: rgba(244, 239, 228, 0.7);
  font-size: 13px;
  line-height: 1.6;
}

.test-stage__cue {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: var(--persimmon);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.92);
  transition: opacity 0.08s linear, transform 0.12s var(--ease), visibility 0.08s linear;
}

.test-stage.is-cue .test-stage__cue {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.test-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}

.test-side h3 {
  font-size: 27px;
}

.test-side p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.test-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.test-controls .btn {
  min-height: 44px;
  padding: 10px 16px;
  font-size: 12px;
}

.test-stop {
  background: var(--persimmon);
}

.test-stop:hover {
  background: var(--persimmon-dark);
}

.test-stop:disabled {
  opacity: 0.32;
}

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

.test-stat {
  padding: 9px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.test-stat span {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.test-stat strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
}

.test-result {
  min-height: 52px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.55;
}

.test-result strong {
  color: var(--persimmon-dark);
}

.test-disclaimer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

/* Troubleshooting and comparison ----------------------------------------- */

.troubleshoot-table td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.troubleshoot-table td:nth-child(2) {
  color: var(--ink-soft);
}

.troubleshoot-table td:nth-child(3) {
  color: var(--muted);
}

.compat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 16px;
}

.compat-grid article {
  padding: 15px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.compat-grid h3 {
  margin: 7px 0 5px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.compat-grid p {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.5;
}

.compat-grid span {
  color: var(--persimmon);
  font-family: var(--font-display);
  font-size: 22px;
}

.compare-table td:first-child {
  font-weight: 700;
  color: var(--ink);
}

.compare-table td {
  font-size: 12px;
}

.compare-table .status {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status--good {
  background: var(--sage-wash);
  color: var(--sage-dark);
}

.status--reported {
  background: #f7ead5;
  color: #7a541c;
}

.status--unknown {
  background: var(--apricot-wash);
  color: var(--persimmon-dark);
}

/* Press and entity ------------------------------------------------------- */

.press-timeline {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.press-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}

.press-item time {
  color: var(--persimmon);
  font-family: var(--font-display);
  font-size: 14px;
}

.press-item h3 {
  margin-bottom: 3px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.press-item p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.press-item a {
  color: var(--ink-soft);
  text-decoration-color: var(--line-strong);
}

.entity-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.entity-card {
  padding: 21px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--cream);
}

.entity-card h3 {
  margin: 8px 0 7px;
  font-size: 23px;
}

.entity-card p {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

.entity-card dl {
  display: grid;
  gap: 0;
  margin-top: 13px;
  border-top: 1px solid var(--line);
}

.entity-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.entity-card dt {
  color: var(--muted);
  font-size: 10px;
}

.entity-card dd {
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-align: right;
}

.entity-card__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--apricot-wash);
  color: var(--persimmon);
  font-family: var(--font-display);
  font-size: 16px;
}

/* Author revisions ------------------------------------------------------- */

.author-card--compact {
  grid-template-columns: 92px minmax(0, 1fr);
}

.author-card--compact .author-card__avatar {
  width: 82px;
  height: 82px;
  font-size: 25px;
}

.verification {
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.verification h3 {
  margin-bottom: 7px;
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.verification ul {
  display: grid;
  gap: 5px;
}

.verification li {
  position: relative;
  padding-left: 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  list-style: none;
}

.verification li::before {
  content: "路";
  position: absolute;
  left: 0;
  color: var(--persimmon);
  font-weight: 700;
}

.source-ref {
  color: var(--persimmon-dark);
  font-size: 0.72em;
  font-weight: 700;
  text-decoration: none;
  vertical-align: super;
  line-height: 0;
}

.source-ref:hover {
  text-decoration: underline;
}

.source-list li:target {
  background: var(--apricot-wash);
}

/* New FAQ summary -------------------------------------------------------- */

.faq-question {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.8vw, 1.34rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-align: left;
}

.faq-item summary {
  align-items: flex-start;
}

/* New responsive additions ----------------------------------------------- */

@media (max-width: 980px) {
  .jump-nav__panel,
  .mechanics-split,
  .turn-test,
  .entity-grid {
    grid-template-columns: 1fr;
  }

  .jump-nav__panel {
    gap: 18px;
  }

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

  .evidence-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 16px;
  }

  .evidence-card h3,
  .evidence-card p,
  .evidence-card ul,
  .evidence-card .tag-row {
    grid-column: 2;
  }

  .evidence-card h3 {
    margin-top: 8px;
  }

  .myth-box ul {
    grid-template-columns: 1fr;
  }

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

  .test-stage {
    min-height: 260px;
  }

  .test-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .test-side h3,
  .test-side > p {
    grid-column: 1 / -1;
  }

  .test-controls,
  .test-stats,
  .test-result,
  .test-disclaimer {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .jump-nav__panel {
    padding: 20px;
  }

  .jump-links a {
    font-size: 10px;
  }

  .mechanics-list > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .myth-box {
    padding: 18px;
  }

  .press-item {
    grid-template-columns: 1fr;
    gap: 3px;
  }

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

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

  .turn-test {
    padding: 12px;
  }

  .test-stage {
    min-height: 230px;
  }

  .test-stats {
    grid-template-columns: 1fr 1fr;
  }
}

.section--ink .diagram-figure img {
  border-color: var(--white-line);
}

.section--ink .diagram-figure figcaption {
  color: rgba(244, 239, 228, 0.62);
}

@media (max-width: 980px) {
  .evidence-card {
    display: block;
  }

  .evidence-card h3 {
    margin-top: 11px;
  }
}

.loop-layout .rule-copy {
  max-width: 1120px;
}

.loop-layout .rule-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 38px;
}

.loop-layout .diagram-figure {
  max-width: 1120px;
  margin: 34px auto 0;
}

.diagram-stack {
  display: grid;
  gap: 24px;
  max-width: 1040px;
  margin: 34px auto 0;
}

.diagram-stack .diagram-figure {
  margin: 0;
}

@media (max-width: 820px) {
  .loop-layout .rule-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (min-width: 1200px) {
  .prose .diagram-figure {
    width: 960px;
    max-width: calc(100vw - 48px);
  }
}
/* Stacked tables on small screens ---------------------------------------- */

@media (max-width: 720px) {
  .stack-table {
    display: block;
    min-width: 0;
  }

  .stack-table thead {
    display: none;
  }

  .stack-table tbody,
  .stack-table tr,
  .stack-table th,
  .stack-table td {
    display: block;
    width: 100%;
  }

  .stack-table tr {
    padding: 14px 0;
    border-top: 1px solid var(--line);
  }

  .stack-table tr:first-child {
    border-top: 0;
  }

  .stack-table th,
  .stack-table td {
    padding: 2px 0;
    border: 0;
    font-size: 12.5px;
    line-height: 1.55;
    white-space: normal;
  }

  .stack-table th {
    padding-bottom: 5px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
  }

  .stack-table td::before {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .stack-table--troubleshoot td:nth-child(1)::before { content: "Symptom"; }
  .stack-table--troubleshoot td:nth-child(2)::before { content: "Try first"; }
  .stack-table--troubleshoot td:nth-child(3)::before { content: "If that fails"; }
  .stack-table--troubleshoot td:nth-child(4)::before { content: "Why"; }

  .stack-table--compare td:nth-child(1)::before { content: "Game"; }
  .stack-table--compare td:nth-child(2)::before { content: "Core promise"; }
  .stack-table--compare td:nth-child(3)::before { content: "Platform / build"; }
  .stack-table--compare td:nth-child(4)::before { content: "Fail state"; }
  .stack-table--compare td:nth-child(5)::before { content: "Status"; }

  .stack-table--scorelog td:nth-child(1)::before,
  .stack-table--scorelog td:nth-child(2)::before,
  .stack-table--scorelog td:nth-child(3)::before,
  .stack-table--scorelog td:nth-child(4)::before { content: ""; }

  .stack-table .status {
    margin-top: 5px;
  }
}
@media (max-width: 720px) {
  .stack-table caption {
    display: block;
    width: 100%;
    padding: 14px 0 10px;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.5;
    text-align: left;
  }
}
@media (max-width: 720px) {
  .diagram-figure {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
  }

  .diagram-figure img {
    width: 1000px;
    max-width: none;
  }

  .diagram-figure figcaption::after {
    content: " Swipe the diagram sideways to read it.";
    color: var(--persimmon);
    font-weight: 600;
  }
}
@media (max-width: 720px) {
  .prose .diagram-figure {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .prose .diagram-figure img {
    width: 1000px;
    max-width: none;
  }
}