/* ==========================================================================
   小羊游戏厅 · xiaoyangplay.cn
   设计系统：暖纸底 + 墨黑描边 + 硬投影 + 一个高饱和橙色作强调
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --paper: #f8f4ec;
  --paper-2: #f1ebdd;
  --card: #fffdf7;
  --ink: #17130f;
  --ink-soft: #5f574b;
  --ink-faint: #9c9487;
  --line: #17130f;
  --line-soft: rgba(23, 19, 15, 0.14);
  --accent: #ff5a36;
  --accent-soft: #ffe1d6;
  --grass: #1f7a4d;
  --grass-soft: #dff2c8;
  --shadow: #17130f;
  --shadow-a: 4px 4px 0 var(--shadow);
  --shadow-b: 7px 7px 0 var(--shadow);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --wrap: 1120px;
  --nav-h: 72px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas,
    "Liberation Mono", monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

[data-theme="dark"] {
  --paper: #131110;
  --paper-2: #1b1815;
  --card: #1e1a17;
  --ink: #f7f2e8;
  --ink-soft: #a9a094;
  --ink-faint: #6f675c;
  --line: #f7f2e8;
  --line-soft: rgba(247, 242, 232, 0.16);
  --accent: #ff6a45;
  --accent-soft: #3a1d14;
  --grass: #7fd39b;
  --grass-soft: #1c2a20;
  --shadow: #050403;
  --shadow-a: 4px 4px 0 var(--shadow);
  --shadow-b: 7px 7px 0 var(--shadow);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

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

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

/* 纸面细纹理（极淡的点阵），避免纯色背景显得空 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(var(--line-soft) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(
    ellipse 80% 60% at 50% 0%,
    #000 40%,
    transparent 100%
  );
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

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

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

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.h1 {
  font-size: clamp(40px, 7.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0;
}

.h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0;
}

.h3 {
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.lede {
  font-size: clamp(16px, 1.6vw, 18.5px);
  line-height: 1.75;
  color: var(--ink-soft);
  margin: 0;
}

.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

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

/* 文字下划线笔刷效果 */
.brush {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.brush::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 0.02em;
  height: 0.14em;
  background: var(--accent);
  opacity: 0.85;
  z-index: -1;
  transform: rotate(-0.5deg);
  border-radius: 999px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--card);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  box-shadow: var(--shadow-a);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-b);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--shadow);
}

.btn--primary {
  --btn-bg: var(--accent);
  color: #fff;
}

[data-theme="dark"] .btn--primary {
  color: #1b0a04;
}

.btn--ghost {
  --btn-bg: transparent;
  box-shadow: none;
  border-color: var(--line-soft);
}

.btn--ghost:hover {
  box-shadow: var(--shadow-a);
  border-color: var(--line);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13.5px;
  box-shadow: 3px 3px 0 var(--shadow);
}

.btn--sm:hover {
  box-shadow: 5px 5px 0 var(--shadow);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--paper); /* 老浏览器兜底 */
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav.is-stuck {
  border-bottom-color: var(--line-soft);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  flex: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 11px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 2px 2px 0 var(--shadow);
  flex: none;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  padding-bottom: 1px;
}

[data-theme="dark"] .brand__mark {
  color: #1b0a04;
}

.brand__mark svg {
  width: 20px;
  height: 20px;
}

.brand__dot {
  color: var(--accent);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.nav__link:hover {
  color: var(--ink);
  background: var(--paper-2);
}

.nav__link[aria-current="page"] {
  color: var(--ink);
}

.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--line-soft);
  border-radius: 11px;
  background: transparent;
  color: var(--ink);
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease),
    transform 0.16s var(--ease);
}

.icon-btn:hover {
  background: var(--paper-2);
  border-color: var(--line);
  transform: translateY(-1px);
}

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

[data-theme="light"] .theme-icon--moon,
:root:not([data-theme]) .theme-icon--moon {
  display: none;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(20px, 3vw, 40px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.hero__title {
  margin-bottom: 22px;
}

.hero__sub {
  max-width: 30em;
  margin-bottom: 30px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero__note {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

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

.hero__note span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grass);
}

/* Mascot */
.mascot {
  position: relative;
  justify-self: center;
  width: min(100%, 420px);
}

.mascot__art {
  width: 100%;
  height: auto;
  filter: drop-shadow(6px 6px 0 var(--shadow));
}

.mascot__sticker {
  position: absolute;
  right: -6px;
  top: 6px;
  padding: 9px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transform: rotate(7deg);
  box-shadow: 3px 3px 0 var(--shadow);
  animation: floaty 5s var(--ease) infinite;
}

.mascot__sticker2 {
  position: absolute;
  left: -10px;
  bottom: 26px;
  padding: 8px 13px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  transform: rotate(-6deg);
  box-shadow: 3px 3px 0 var(--shadow);
  animation: floaty 6.5s var(--ease) infinite reverse;
}

[data-theme="dark"] .mascot__sticker2 {
  color: #1b0a04;
}

@keyframes floaty {
  0%,
  100% {
    transform: rotate(7deg) translateY(0);
  }
  50% {
    transform: rotate(4deg) translateY(-7px);
  }
}

/* ---------- Marquee ---------- */
.marquee {
  border-block: 2px solid var(--line);
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: 11px;
  transform: rotate(-0.35deg) scale(1.02);
  margin-block: clamp(24px, 4vw, 44px);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 32s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__set {
  display: flex;
  align-items: center;
  gap: 26px;
  padding-right: 26px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee__set i {
  color: var(--accent);
  font-style: normal;
}

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

/* ---------- Section head ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.sec-head__text {
  max-width: 42em;
}

.sec-head__text .lede {
  margin-top: 10px;
  font-size: 15.5px;
}

/* ---------- Featured ---------- */
.featured {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 0;
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-b);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.featured:hover {
  transform: translate(-3px, -3px);
  box-shadow: 10px 10px 0 var(--shadow);
}

.featured__body {
  padding: clamp(24px, 3.4vw, 44px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.featured__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

[data-theme="dark"] .featured__badge {
  color: #1b0a04;
}

.featured__title {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0;
}

.featured__desc {
  color: var(--ink-soft);
  margin: 0;
  max-width: 34em;
}

.featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.featured__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.featured__visual {
  position: relative;
  min-height: 260px;
  border-left: 2px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, var(--f-c1, #dff2c8), var(--f-c2, #9ed36a));
}

.featured__glyph {
  font-size: clamp(72px, 11vw, 118px);
  line-height: 1;
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.18));
  animation: bob 3.4s var(--ease) infinite;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-12px) rotate(3deg);
  }
}

.featured__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.16) 1.2px, transparent 1.2px);
  background-size: 16px 16px;
  opacity: 0.5;
  pointer-events: none;
}

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

.tag {
  padding: 3px 10px;
  border: 1.5px solid var(--line-soft);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--paper);
}

/* ---------- Filter bar ---------- */
.filters {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

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

.chip {
  padding: 8px 16px;
  border: 1.5px solid var(--line-soft);
  border-radius: 999px;
  background: transparent;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  transition: all 0.16s var(--ease);
}

.chip:hover {
  border-color: var(--line);
  color: var(--ink);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.search {
  position: relative;
  margin-left: auto;
  min-width: 220px;
  flex: 1 1 220px;
  max-width: 300px;
}

.search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--ink-faint);
  pointer-events: none;
}

.search input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border: 1.5px solid var(--line-soft);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.search input::placeholder {
  color: var(--ink-faint);
}

.search input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search kbd {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--ink-faint);
}

.search input:focus + kbd {
  opacity: 0;
}

/* ---------- Game grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow-a);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  text-align: left;
  padding: 0;
}

.card:hover {
  transform: translate(-2px, -3px);
  box-shadow: var(--shadow-b);
}

.card__cover {
  position: relative;
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  border-bottom: 2px solid var(--line);
  background: linear-gradient(150deg, var(--c1), var(--c2));
  overflow: hidden;
}

.card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0, 0, 0, 0.14) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  opacity: 0.55;
}

.card__glyph {
  font-size: 54px;
  line-height: 1;
  transition: transform 0.3s var(--ease);
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.15));
}

.card:hover .card__glyph {
  transform: scale(1.12) rotate(-4deg);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: 3px 9px;
  border: 1.5px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.badge--new {
  background: var(--accent);
  color: #fff;
  border-color: var(--line);
}

[data-theme="dark"] .badge--new {
  color: #1b0a04;
}

.badge--soon {
  background: var(--paper-2);
  color: var(--ink-soft);
}

.played-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(23, 19, 15, 0.72);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.card__title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card__title .arrow {
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s var(--ease);
  color: var(--accent);
}

.card:hover .card__title .arrow {
  opacity: 1;
  transform: translateX(0);
}

.card__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

.card__foot .sep {
  opacity: 0.5;
}

.card--soon {
  opacity: 0.72;
  box-shadow: none;
  border-style: dashed;
}

.card--soon:hover {
  transform: none;
  box-shadow: none;
}

.card--soon .card__cover {
  filter: grayscale(1);
}

.card--soon .card__title .arrow {
  display: none;
}

/* 空状态 */
.empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  text-align: center;
  border: 2px dashed var(--line-soft);
  border-radius: var(--r-md);
  color: var(--ink-soft);
}

.empty strong {
  display: block;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 6px;
}

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.about__text p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}

.about__text p:last-child {
  margin-bottom: 0;
}

.note-card {
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  padding: 22px 24px;
  box-shadow: var(--shadow-a);
}

.note-card h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}

.note-card h4 svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  flex: none;
}

.note-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.note-list {
  display: grid;
  gap: 14px;
}

/* ---------- Support ---------- */
.support {
  position: relative;
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow-b);
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  overflow: hidden;
}

.support::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--accent-soft);
  z-index: 0;
}

.support > * {
  position: relative;
  z-index: 1;
}

.support__qr {
  /* 这里放的是真收款码：必须白底 + 不裁切，否则扫不出来 */
  width: 200px;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 9px 9px 8px;
  box-shadow: var(--shadow-a);
  flex: none;
}

.support__qr img {
  display: block;
  width: 100%;
  height: auto;
  /* 别加 filter / 混合模式，会把二维码的对比度搞坏 */
}

.support__qr figcaption {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #5b6a78;
  text-align: center;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding-block: 40px 48px;
  margin-top: clamp(40px, 6vw, 80px);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__brand {
  max-width: 26em;
}

.footer__brand p {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.footer__col h5 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 700;
}

.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--ink-soft);
  padding: 3px 0;
  transition: color 0.16s var(--ease);
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}

/* ---------- Play page ---------- */
.play-shell {
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.play-bar {
  flex: none;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--paper);
}

.play-bar__title {
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.play-bar__title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.play-bar__spacer {
  margin-left: auto;
}

.play-frame-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--paper-2);
}

.play-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.play-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--paper-2);
  transition: opacity 0.3s var(--ease);
}

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

.play-error {
  max-width: 40em;
  margin: 15vh auto;
  text-align: center;
}

/* ---------- 404 ---------- */
.err {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 60px;
}

.err__code {
  font-family: var(--font-mono);
  font-size: clamp(72px, 16vw, 160px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0;
  color: var(--accent);
  text-shadow: 6px 6px 0 var(--shadow);
}

/* ---------- Reveal animation ----------
   默认可见；只有 JS 成功接管后才加 .reveal--armed 隐藏，
   这样 JS 加载失败时内容不会变成一片空白。 */
.reveal--armed {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid,
  .featured,
  .about,
  .support {
    grid-template-columns: 1fr;
  }

  .mascot {
    width: min(78%, 340px);
    order: -1;
  }

  .featured__visual {
    order: -1;
    min-height: 200px;
    border-left: 0;
    border-bottom: 2px solid var(--line);
  }

  .support__qr {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .wrap {
    padding-inline: 18px;
  }

  .nav__links .nav__link {
    display: none;
  }

  .nav__inner {
    gap: 14px;
  }

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

  .mascot__sticker,
  .mascot__sticker2 {
    display: none;
  }

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

  .filters {
    align-items: stretch;
  }

  .search {
    margin-left: 0;
    max-width: none;
  }

  .search kbd {
    display: none;
  }

  .footer__grid {
    flex-direction: column;
  }

  .play-bar__title span {
    font-size: 14px;
  }
}

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

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