/* Tessellate — puzzle game reviews */
:root {
  --ink: #13233d;
  --ink-2: #2b3d5c;
  --muted: #5b6b83;
  --paper: #fbf7ef;
  --paper-2: #f3ecdf;
  --card: #ffffff;
  --line: #e4dccb;
  --amber: #f6a623;
  --amber-soft: #ffd27a;
  --coral: #ec5b4f;
  --coral-dark: #c43f34;
  --leaf: #3f9e5a;
  --teal: #0e6f74;
  --deep: #0d1a2e;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(19, 35, 61, 0.10);
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--coral-dark);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
}

p {
  margin: 0 0 1em;
}

button {
  font: inherit;
}

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

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.wrap-narrow {
  max-width: 820px;
}

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

.small {
  font-size: 0.88rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 247, 239, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

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

.logo-mark {
  width: 34px;
  height: 38px;
  flex: none;
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  cursor: pointer;
  position: relative;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  position: absolute;
  left: 11px;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle-bars {
  top: 20px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--deep);
  color: #eef3fb;
  overflow: hidden;
  padding: 56px 0 64px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 26, 46, 0.97) 0%, rgba(13, 26, 46, 0.86) 45%, rgba(13, 26, 46, 0.55) 100%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.crumbs {
  font-size: 0.85rem;
  color: #b9c6dc;
  margin-bottom: 22px;
}

.crumbs a {
  color: var(--amber-soft);
}

.hero-game {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.hero-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero-dev {
  margin: 2px 0 0;
  color: #cfd9ea;
}

.hero-dev strong {
  color: #fff;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.hero-lede {
  font-size: 1.12rem;
  color: #d8e1ef;
  max-width: 600px;
}

.byline {
  font-size: 0.9rem;
  color: #aebbd2;
}

.byline strong {
  color: #fff;
}

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

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 16px;
  background: #000;
  color: #fff;
  border: 1px solid #5f6b7d;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.1;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.btn-play:hover {
  color: #fff;
  background: #1b1b1b;
  transform: translateY(-2px);
}

.btn-play svg {
  width: 26px;
  height: 26px;
  color: var(--amber);
}

.btn-play small {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c9d1dd;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

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

.hero-card {
  background: rgba(251, 247, 239, 0.97);
  color: var(--ink);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.score-badge {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-bottom: 18px;
  margin-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}

.score-hex {
  flex: none;
  width: 92px;
  height: 104px;
  clip-path: var(--hex);
  background: linear-gradient(160deg, var(--amber) 0%, var(--coral) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.score-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.1rem;
}

.score-of {
  font-size: 0.8rem;
  font-weight: 700;
  opacity: 0.9;
  margin-top: 4px;
}

.score-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral-dark);
}

.score-word {
  margin: 4px 0 0;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.3;
}

.facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.facts div {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}

.facts div:first-child {
  grid-column: 1 / -1;
}

.facts dt {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.facts dd .muted {
  font-weight: 500;
}

.facts-note {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Article ---------- */
.article-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 56px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.toc {
  position: sticky;
  top: 96px;
  align-self: start;
  font-size: 0.92rem;
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.toc a {
  display: block;
  padding: 6px 0 6px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
}

.toc a:hover,
.toc a.is-active {
  color: var(--coral-dark);
  border-left-color: var(--coral);
}

.article {
  max-width: 760px;
  font-size: 1.06rem;
}

.article h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-top: 1.8em;
  position: relative;
  padding-left: 30px;
}

.article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 18px;
  height: 20px;
  clip-path: var(--hex);
  background: var(--amber);
}

.dropcap::first-letter {
  float: left;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 4.2rem;
  line-height: 0.85;
  margin: 6px 12px 0 0;
  color: var(--coral);
}

.verdict-line {
  background: var(--paper-2);
  border-left: 4px solid var(--coral);
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.figure {
  margin: 30px 0;
}

.figure figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 12px;
  border-left: 3px solid var(--amber);
}

.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-2);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow);
}

.zoom img {
  width: 100%;
  transition: transform 0.35s ease;
}

.zoom:hover img {
  transform: scale(1.03);
}

.figure-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 560px;
  margin: 30px auto;
}

.figure-pair .figure {
  margin: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 72px 0;
}

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

.section-dark {
  background: var(--ink);
  color: #e3eaf5;
  background-image: radial-gradient(circle at 85% 10%, rgba(246, 166, 35, 0.18), transparent 45%), radial-gradient(circle at 10% 90%, rgba(14, 111, 116, 0.35), transparent 50%);
}

.section-dark h2 {
  color: #fff;
}

.section-head {
  margin-bottom: 32px;
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--coral-dark);
}

.section-dark .eyebrow {
  color: var(--amber);
}

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

.section-dark .section-sub {
  color: #b8c5da;
}

/* ---------- Gallery ---------- */
.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.gallery-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.gallery-tall {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* ---------- Pros / cons / bars ---------- */
.scores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 20px;
}

.pc,
.bars {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.pc h3,
.bars h3 {
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc-mark {
  width: 30px;
  height: 34px;
  clip-path: var(--hex);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
}

.pc-pros .pc-mark {
  background: var(--leaf);
}

.pc-cons .pc-mark {
  background: var(--coral);
}

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

.pc li {
  position: relative;
  padding: 8px 0 8px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.pc li:last-child {
  border-bottom: 0;
}

.pc li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 10px;
  height: 11px;
  clip-path: var(--hex);
}

.pc-pros li::before {
  background: var(--leaf);
}

.pc-cons li::before {
  background: var(--coral);
}

.bar-row {
  margin-bottom: 16px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.bar {
  height: 12px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber), var(--coral));
  transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bars.is-in .bar span,
.no-js .bar span {
  width: var(--v);
}

.bars-total {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-weight: 700;
}

.bars-total strong {
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--coral-dark);
}

/* ---------- Tips ---------- */
.tips {
  list-style: none;
  counter-reset: tip;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
}

.tips li {
  counter-increment: tip;
  position: relative;
  padding: 18px 20px 18px 74px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius);
  min-height: 84px;
}

.tips li::before {
  content: counter(tip);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 40px;
  height: 46px;
  clip-path: var(--hex);
  background: var(--amber);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tips strong {
  color: #fff;
}

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

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

.faq-item h3 {
  margin: 0;
  font-size: 1.15rem;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  cursor: pointer;
}

.faq-q:hover {
  color: var(--coral-dark);
}

.faq-icon {
  flex: none;
  position: relative;
  width: 30px;
  height: 34px;
  clip-path: var(--hex);
  background: var(--paper-2);
  transition: background-color 0.2s ease;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: var(--ink);
  transition: transform 0.2s ease;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-q[aria-expanded="true"] .faq-icon {
  background: var(--amber);
}

.faq-q[aria-expanded="true"] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-a {
  padding: 0 4px 18px;
  color: var(--ink-2);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
}

.card-art {
  height: 150px;
  position: relative;
  overflow: hidden;
}

.card-art::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 104px;
  right: 24px;
  bottom: -20px;
  clip-path: var(--hex);
  background: rgba(255, 255, 255, 0.85);
}

.card-art-a {
  background: radial-gradient(circle at 20% 30%, #ffd27a 0 18%, transparent 19%), linear-gradient(135deg, #f6a623, #ec5b4f);
}

.card-art-b {
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 22px), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 2px, transparent 2px 22px), linear-gradient(135deg, #13233d, #2b3d5c);
}

.card-art-c {
  background: radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.35) 0 12%, transparent 13%), linear-gradient(135deg, #0e6f74, #3f9e5a);
}

.card-body {
  padding: 20px 22px 24px;
}

.card-meta {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-dark);
}

.card h3 {
  font-size: 1.22rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--ink-2);
  margin-bottom: 0;
}

/* ---------- About / contact ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.about-grid h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.contact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.contact-box h3 {
  font-size: 1.35rem;
}

.mail {
  font-weight: 800;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

/* ---------- Legal ---------- */
.legal {
  border-top: 1px solid var(--line);
  padding: 56px 0;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.legal-block {
  font-size: 0.95rem;
  color: var(--ink-2);
  border-radius: var(--radius);
}

.legal-block h2 {
  font-size: 1.5rem;
}

.legal-block:focus {
  outline: none;
}

.legal-block:target {
  background: var(--paper-2);
  box-shadow: 0 0 0 12px var(--paper-2);
}

.link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--teal);
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.link-btn:hover {
  color: var(--coral-dark);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--deep);
  color: #b9c6dc;
  padding: 56px 0 28px;
  font-size: 0.95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 36px;
}

.logo-footer,
.logo-footer:hover {
  color: #fff;
}

.logo-footer .logo-text small {
  color: #8ea0bd;
}

.footer-about {
  margin-top: 16px;
  max-width: 360px;
}

.footer-title {
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

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

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a,
.site-footer .link-btn {
  color: #dce5f3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-links a:hover,
.site-footer .link-btn:hover {
  color: var(--amber-soft);
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 0.82rem;
  color: #8ea0bd;
}

.footer-bottom p {
  margin: 0;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 72px;
}

.lightbox[hidden] {
  display: none;
}

.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 28, 0.92);
}

.lb-figure {
  position: relative;
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: lb-in 0.25s ease;
}

.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 170px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lb-cap {
  margin-top: 14px;
  color: #e3eaf5;
  font-size: 0.95rem;
  text-align: center;
}

.lb-count {
  color: var(--amber-soft);
  font-weight: 700;
  margin-left: 6px;
}

.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 4px;
}

.lb-btn:hover {
  background: var(--amber);
  color: var(--ink);
}

.lb-close {
  top: 14px;
  right: 14px;
}

.lb-prev {
  left: 14px;
  top: 50%;
  margin-top: -24px;
}

.lb-next {
  right: 14px;
  top: 50%;
  margin-top: -24px;
}

@keyframes lb-in {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 250;
  max-width: 980px;
  margin: 0 auto;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 4px solid var(--amber);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(13, 26, 46, 0.28);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  animation: cookie-in 0.35s ease;
}

.cookie[hidden] {
  display: none;
}

.cookie-inner {
  padding: 22px 24px;
}

.cookie h2 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}

.cookie-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-2);
}

.cookie-prefs {
  margin-top: 16px;
  border-top: 1px solid var(--line);
}

.pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.pref-name {
  margin: 0;
  font-weight: 800;
}

.pref-desc {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.switch {
  position: relative;
  flex: none;
  width: 50px;
  height: 28px;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.switch input:disabled {
  cursor: not-allowed;
}

.slider {
  position: absolute;
  inset: 0;
  background: #c9cfd9;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.slider::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.switch input:checked + .slider {
  background: var(--leaf);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

.switch input:disabled + .slider {
  opacity: 0.6;
}

.switch input:focus-visible + .slider {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.cbtn {
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid var(--ink);
}

.cbtn-ghost {
  background: transparent;
  color: var(--ink);
}

.cbtn-ghost:hover {
  background: var(--paper-2);
}

.cbtn-primary {
  background: var(--ink);
  color: #fff;
}

.cbtn-primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

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

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 260;
  transform: translate(-50%, 140%);
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  max-width: calc(100% - 32px);
  text-align: center;
}

.toast.is-on {
  transform: translate(-50%, 0);
}

.toast:empty {
  padding: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .hero-card {
    max-width: 620px;
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .toc {
    position: static;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
  }

  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    border-left: 0;
  }

  .toc a {
    border-left: 0;
    margin-left: 0;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--paper-2);
    font-size: 0.85rem;
  }

  .toc a:hover,
  .toc a.is-active {
    background: var(--amber-soft);
    color: var(--ink);
  }

  .article {
    max-width: none;
  }

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

  .bars {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(19, 35, 61, 0.12);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    padding: 10px 16px 16px;
    gap: 2px;
  }

  .site-nav a {
    border-radius: 10px;
    padding: 12px 14px;
  }

  .hero {
    padding: 36px 0 44px;
  }

  .hero-icon {
    width: 68px;
    height: 68px;
    border-radius: 16px;
  }

  .hero-card {
    padding: 20px;
  }

  .score-hex {
    width: 78px;
    height: 88px;
  }

  .score-num {
    font-size: 1.8rem;
  }

  .article-layout {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .section {
    padding: 52px 0;
  }

  .gallery-wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-tall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .scores-grid,
  .tips,
  .cards,
  .about-grid,
  .legal-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .about-grid {
    gap: 28px;
  }

  .lightbox {
    padding: 64px 12px 84px;
  }

  .lb-img {
    max-height: calc(100vh - 190px);
  }

  .lb-prev,
  .lb-next {
    top: auto;
    bottom: 18px;
    margin-top: 0;
  }

  .lb-prev {
    left: calc(50% - 60px);
  }

  .lb-next {
    right: calc(50% - 60px);
  }

  .cookie {
    left: 10px;
    right: 10px;
    bottom: 10px;
    max-height: calc(100vh - 20px);
  }

  .cookie-inner {
    padding: 18px;
  }

  .cookie-text p {
    font-size: 0.9rem;
  }

  .cookie-actions {
    gap: 8px;
    margin-top: 14px;
  }

  .cookie-actions .cbtn {
    flex: 1 1 calc(50% - 4px);
    padding: 10px 8px;
    font-size: 0.88rem;
  }

  .cookie-actions .cbtn-primary {
    flex-basis: 100%;
  }
}

@media (max-width: 420px) {
  .wrap {
    padding: 0 16px;
  }

  .logo-text {
    font-size: 1.25rem;
  }

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

  .score-badge {
    gap: 14px;
  }

  .score-word {
    font-size: 1.02rem;
  }

  .tips li {
    padding-left: 66px;
  }

  .tips li::before {
    left: 14px;
  }

  .figure-pair {
    gap: 12px;
  }
}

@media (min-width: 1600px) {
  .wrap {
    max-width: 1320px;
  }
}

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

  .zoom:hover img,
  .card:hover,
  .btn-play:hover {
    transform: none;
  }
}
