/* ============================================================
   PIXELARCADE · 小霸王游戏站前台主题
   白底纸面 + 深靛蓝机台 + 红色街机标识 + 像素字体
   ============================================================ */

@font-face {
  font-family: "Press Start 2P";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/static/fonts/press-start-2p-latin.woff2") format("woff2");
}

:root {
  --bg: #f7f6f1;
  --bg-deep: #17172f;
  --panel: #ffffff;
  --panel-2: #efede6;
  --panel-glass: rgba(23, 23, 47, .045);
  --border: #d9d4c9;
  --border-strong: #bdb7aa;

  --text: #1c1c33;
  --text-soft: #4d4a60;
  --muted: #6c697b;

  --accent: #dc263b;
  --accent-strong: #f14356;
  --accent-contrast: #fffaf4;
  --accent-soft: rgba(237, 47, 69, .1);
  --accent-line: rgba(237, 47, 69, .55);

  --c-fc: #26bfd7;
  --c-fc-soft: rgba(38, 191, 215, .12);
  --c-fc-line: rgba(38, 191, 215, .54);
  --c-gba: #42d980;
  --c-gba-soft: rgba(66, 217, 128, .12);
  --c-gba-line: rgba(66, 217, 128, .54);
  --c-arcade: #f05b68;
  --c-arcade-soft: rgba(240, 91, 104, .12);
  --c-arcade-line: rgba(240, 91, 104, .54);
  --c-web: #e4b934;
  --c-web-soft: rgba(228, 185, 52, .14);
  --c-web-line: rgba(228, 185, 52, .58);
  --c-sfc: #a88cf4;
  --c-sfc-soft: rgba(168, 140, 244, .12);
  --c-sfc-line: rgba(168, 140, 244, .54);

  --bw: 2px;
  --radius-lg: 6px;
  --radius: 4px;
  --radius-sm: 2px;
  --shadow-sm: 0 2px 0 rgba(23, 23, 47, .12);
  --shadow-md: 5px 5px 0 rgba(23, 23, 47, .16);
  --shadow-lg: 9px 9px 0 rgba(23, 23, 47, .14);
  --hover-lift: -4px;
  --hover-shadow: 7px 7px 0 rgba(23, 23, 47, .2);

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Press Start 2P", "Courier New", monospace;
  --font-mono: Consolas, "Courier New", monospace;

  --arcade-navy: #191832;
  --arcade-navy-2: #232244;
  --arcade-navy-3: #2d2c52;
  --arcade-paper: #f7f6f1;
  --arcade-bright: #f9f5e9;
  --arcade-yellow: #b88916;
  --arcade-green: #4ce394;
}

html {
  background: var(--arcade-paper);
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--arcade-paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .01em;
  overflow-x: clip;
}

body::before,
body::after {
  display: none;
}

::selection {
  background: var(--accent);
  color: var(--accent-contrast);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #e8e4da;
}

::-webkit-scrollbar-thumb {
  background: #96919f;
  border: 2px solid #e8e4da;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

a {
  color: var(--accent);
}

a:hover {
  color: #b91b31;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 200;
  padding: 8px 15px;
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 2px;
  box-shadow: 3px 3px 0 #111023;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform .16s ease;
}

.skip-link:focus {
  color: var(--text);
  transform: translateY(0);
}

h1,
h2,
h3,
h4 {
  color: var(--text);
  line-height: 1.28;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

main.container {
  flex: 1 0 auto;
}

/* ---------- 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--arcade-navy);
  border-bottom: 1px solid #2d2c4c;
  box-shadow: 0 6px 20px rgba(23, 23, 47, .14);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 10px 18px;
  min-height: 76px;
  padding-top: 10px;
  padding-bottom: 0;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  flex: 0 0 auto;
  margin-right: auto;
  color: var(--arcade-bright);
  white-space: nowrap;
}

.logo:hover {
  color: var(--arcade-bright);
}

.logo-mark {
  display: block;
  color: var(--arcade-bright);
  font-family: var(--font-pixel);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .4);
}

.logo-mark span {
  color: var(--accent);
}

.main-nav {
  order: 3;
  width: 100%;
  margin-left: 0;
  border-top: 1px solid #302e50;
}

.main-nav-inner {
  display: flex;
  align-items: stretch;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav-inner::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px 11px;
  color: #b7b4cf;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  transition: color .16s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(.25);
  transform-origin: center;
  transition: opacity .16s ease, transform .16s ease;
}

.main-nav a:hover {
  color: var(--arcade-bright);
}

.main-nav a.active {
  color: var(--arcade-bright);
  font-weight: 800;
}

.main-nav a.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.search-form {
  display: flex;
  flex: 0 1 252px;
  margin-left: 0;
  padding: 3px;
  background: #242346;
  border: 1px solid #3d3b62;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12);
  transition: border-color .15s ease, box-shadow .15s ease;
}

.search-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(237, 47, 69, .2);
}

.search-form input {
  min-width: 0;
  flex: 1;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  color: var(--arcade-bright);
  outline: 0;
  font-family: var(--font);
  font-size: 13px;
}

.search-form input::placeholder {
  color: #9693b2;
}

.search-form button {
  flex: 0 0 auto;
  padding: 6px 13px;
  border: 0;
  border-radius: 1px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.search-form button:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.language-switch {
  position: relative;
  order: 2;
  flex: 0 0 auto;
}

.language-switch-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 11px 6px 12px;
  border: 1px solid #3d3b62;
  border-radius: 999px;
  background: #242346;
  color: var(--arcade-bright);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: border-color .15s ease, background .15s ease;
}

.language-switch-trigger::-webkit-details-marker {
  display: none;
}

.language-switch-trigger:hover {
  border-color: #5d5a8c;
  background: #2d2c52;
}

.language-switch[open] .language-switch-trigger {
  border-color: #7773b2;
  background: #2d2c52;
}

.language-switch-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: #8ec5ff;
}

.language-switch-icon svg {
  width: 17px;
  height: 17px;
}

.language-switch-current {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.language-switch-chevron {
  width: 6px;
  height: 6px;
  margin: 0 1px 3px 1px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .15s ease;
}

.language-switch[open] .language-switch-chevron {
  margin-bottom: -2px;
  transform: rotate(-135deg);
}

.language-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 90;
  width: 226px;
  max-width: calc(100vw - 34px);
  max-height: min(70vh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 6px;
  border: 1px solid #3d3b62;
  border-radius: 10px;
  background: #242346;
  box-shadow: 0 16px 38px rgba(10, 9, 27, .42);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 6px;
  color: #d8d4e8;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  transition: background .15s ease, color .15s ease;
}

.language-option:hover {
  background: rgba(255, 255, 255, .06);
  color: var(--arcade-bright);
}

.language-option.active {
  background: rgba(237, 47, 69, .12);
  color: var(--arcade-bright);
}

.language-option-code {
  flex: 0 0 22px;
  color: #8e8aa8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.language-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.language-option-check {
  flex: 0 0 auto;
  margin-left: auto;
  color: #8ec5ff;
  font-size: 14px;
  font-weight: 800;
}

/* ---------- 首页头部 ---------- */
.hero {
  position: relative;
  border-bottom: 0;
  background:
    linear-gradient(rgba(23, 23, 47, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 23, 47, .025) 1px, transparent 1px),
    #fbfaf6;
  background-size: 48px 48px;
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  pointer-events: none;
  opacity: .65;
}

.hero::before {
  top: 34px;
  left: -76px;
  background:
    linear-gradient(var(--accent), var(--accent)) 0 0 / 26px 8px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 0 0 / 8px 26px no-repeat;
}

.hero::after {
  right: -76px;
  bottom: 38px;
  background:
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 26px 8px no-repeat,
    linear-gradient(var(--accent), var(--accent)) 100% 100% / 8px 26px no-repeat;
}

.hero-inner {
  position: relative;
  display: block;
  padding: 28px 0 26px;
  text-align: center;
}

.hero-copy {
  max-width: 100%;
  margin: 0 auto;
}

.hero-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 auto 12px;
  color: var(--arcade-yellow);
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: .06em;
  text-shadow: 3px 3px 0 #a9820e, 5px 5px 0 rgba(23, 23, 47, .08);
}

.hero-sub {
  max-width: 680px;
  margin: 0 auto;
  color: #696678;
  font-size: 16px;
  line-height: 1.75;
}

.hero-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(520px, 78%);
  margin: 16px auto 20px;
}

.hero-divider::before,
.hero-divider::after {
  content: "";
  flex: 1;
  border-top: 2px dashed #c9c4b8;
}

.hero-divider span {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  background: #6d6a7f;
  transform: rotate(45deg);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin: 0;
  padding: 0;
  background:
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(28, 28, 51, .035) 31px 32px),
    #fffdf7;
  border: 2px solid var(--text);
  border-radius: 3px;
  box-shadow: 6px 6px 0 #d9d4c9;
  overflow: hidden;
}

.hero-stat {
  padding: 14px 24px 12px;
  border-left: 1px dashed #d8d2c5;
}

.hero-stat:first-child {
  border-left: 0;
}

.hero-stat dt {
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: clamp(20px, 2.3vw, 29px);
  font-weight: 400;
  line-height: 1.35;
  text-shadow: 2px 2px 0 rgba(28, 28, 51, .08);
}

.hero-stat:nth-child(1) dt {
  color: var(--accent);
}

.hero-stat:nth-child(2) dt {
  color: #0f8fa4;
}

.hero-stat:nth-child(3) dt {
  color: #238b5b;
}

.hero-stat dt sup {
  position: relative;
  top: -.2em;
  margin-left: 2px;
  font-size: .5em;
}

.hero-stat dt.stat-free {
  font-size: clamp(17px, 1.8vw, 24px);
}

.hero-stat dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .08em;
}

/* ---------- 区块标题：红色信号灯 + 移动箭头 ---------- */
.section-title {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 42px;
  margin: 0 0 24px;
  padding-left: 32px;
  line-height: 1.2;
}

h2.section-title::before,
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  height: auto;
  border-radius: 0;
  background: var(--accent);
}

h2.section-title::after,
.section-title::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 0;
  height: 0;
  flex: none;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 13px solid var(--accent);
  background: transparent;
  transform: translate(0, -50%);
  animation: arcade-arrow 1.35s steps(4, end) infinite;
}

@keyframes arcade-arrow {
  0%,
  100% {
    transform: translate(0, -50%);
  }
  50% {
    transform: translate(13px, -50%);
  }
}

.section-en {
  color: #25243e;
  font-family: var(--font-pixel);
  font-size: clamp(19px, 2.2vw, 27px);
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.section-cn {
  color: #4a475f;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.recent-games-clear {
  margin-left: auto;
  padding: 5px 12px;
  background: transparent;
  border: 2px solid #d9d4c9;
  border-radius: 2px;
  color: var(--muted);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}

.recent-games-clear:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.recent-games-section.has-row-nav .recent-games-clear {
  margin-right: 86px;
}

/* ---------- 平台选择 ---------- */
.platform-select {
  margin: 28px 0 38px;
}

.platform-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.platform-block {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: auto;
  min-width: 132px;
  padding: 7px 19px 7px 9px;
  background: #fffdf7;
  border: 2px solid var(--text);
  border-radius: 4px;
  color: var(--text);
  box-shadow: 3px 3px 0 #d9d4c9;
  overflow: visible;
  transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.platform-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--pf, var(--accent));
  border-radius: 2px 2px 0 0;
  pointer-events: none;
}

.platform-block:hover {
  background: var(--pf-soft, var(--accent-soft));
  border-color: var(--pf, var(--accent));
  color: var(--text);
  transform: translateY(-3px);
  box-shadow: 5px 5px 0 #d9d4c9;
}

.platform-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: var(--pf-soft, var(--accent-soft));
  border: 1px solid var(--pf-line, var(--accent-line));
  border-radius: 50%;
  font-size: 15px;
}

.platform-name {
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .05em;
}

.platform-count {
  padding: 1px 7px;
  background: var(--pf-soft, var(--accent-soft));
  border: 1px solid var(--pf-line, var(--accent-line));
  border-radius: 999px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}

.platform-block:hover .platform-count {
  border-color: var(--pf, var(--accent));
}

.platform-block:hover .platform-ico {
  transform: none;
}

/* ---------- 游戏区块与卡片 ---------- */
.game-section {
  margin: 0 0 58px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}

.cards-row {
  position: relative;
  min-width: 0;
}

.cards-row .game-grid {
  display: flex;
  grid-template-columns: none;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 3px 20px;
  scroll-snap-type: x mandatory;
  scrollbar-color: #9a95a2 #e6e2d8;
  scrollbar-width: thin;
}

.cards-row .game-card {
  flex: 0 0 calc((100% - 88px) / 5);
  scroll-snap-align: start;
}

.row-nav {
  position: absolute;
  top: -57px;
  right: 0;
  z-index: 4;
  display: flex;
  gap: 7px;
}

.row-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0 0 2px;
  background: #fff;
  border: 2px solid var(--text);
  border-radius: 2px;
  box-shadow: 2px 2px 0 #cec9be;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .13s ease, box-shadow .13s ease, color .13s ease, background .13s ease;
}

.row-nav-btn:hover:not([disabled]) {
  background: var(--accent);
  border-color: #a91a2d;
  color: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 #cec9be;
}

.row-nav-btn:active:not([disabled]) {
  transform: translate(1px, 1px);
  box-shadow: 0 0 0 #cec9be;
}

.row-nav-btn[disabled] {
  opacity: .28;
  cursor: default;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fffdf7;
  border: 2px solid var(--text);
  border-radius: 4px;
  box-shadow: 4px 4px 0 #d9d4c9;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.game-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  height: 3px;
  background: var(--pf, var(--accent));
  pointer-events: none;
}

.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 7px 7px 0 #d9d4c9;
}

.game-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #f4efe3;
  border-bottom: 2px solid #e2ddd1;
  overflow: hidden;
}

.game-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
  transition: transform .25s ease, filter .25s ease;
}

.game-cover .cover-fallback {
  position: absolute;
  inset: 0;
}

.cover-fallback {
  --cover-pattern: none;
  --cover-ink: rgba(28, 28, 51, .055);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 26px 16px 14px;
  background:
    var(--cover-pattern),
    radial-gradient(circle at 50% 42%, var(--pf-soft, var(--accent-soft)), transparent 60%),
    linear-gradient(160deg, #fffdf8 0%, #f7f2e7 56%, #eee7d8 100%);
  color: var(--text);
  text-align: center;
  isolation: isolate;
  overflow: hidden;
  transition: transform .25s ease;
}

.cover-fallback::before {
  content: "";
  position: absolute;
  inset: 9px;
  z-index: 1;
  border: 1px solid rgba(28, 28, 51, .14);
  box-shadow:
    0 0 0 3px rgba(28, 28, 51, .035),
    inset 0 0 24px rgba(28, 28, 51, .035);
  pointer-events: none;
}

.cover-fallback::after {
  content: attr(data-code);
  position: absolute;
  right: -6px;
  bottom: -12px;
  z-index: 0;
  color: rgba(28, 28, 51, .055);
  font-family: var(--font-pixel);
  font-size: 54px;
  line-height: 1;
  letter-spacing: -.08em;
  pointer-events: none;
}

.cover-fallback > * {
  position: relative;
  z-index: 2;
}

.cover-variant-0 {
  --cover-pattern:
    repeating-linear-gradient(90deg, transparent 0 23px, var(--cover-ink) 23px 24px),
    repeating-linear-gradient(0deg, transparent 0 23px, var(--cover-ink) 23px 24px);
}

.cover-variant-1 {
  --cover-pattern:
    repeating-linear-gradient(135deg, transparent 0 13px, var(--cover-ink) 13px 15px, transparent 15px 27px);
}

.cover-variant-2 {
  --cover-pattern:
    repeating-linear-gradient(0deg, transparent 0 7px, var(--cover-ink) 7px 9px);
}

.cover-variant-3 {
  --cover-pattern:
    repeating-linear-gradient(45deg, transparent 0 15px, var(--cover-ink) 15px 16px),
    repeating-linear-gradient(-45deg, transparent 0 15px, var(--cover-ink) 15px 16px);
}

.cover-platform-code {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 2px 6px;
  background: rgba(255, 253, 247, .86);
  border: 1px solid var(--pf-line, var(--accent-line));
  border-radius: 1px;
  color: var(--text);
  font-family: var(--font-pixel);
  font-size: 7px;
  line-height: 1.7;
  letter-spacing: .03em;
}

.cover-fallback-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  background: #fffdf7;
  border: 2px solid var(--pf, var(--border-strong));
  border-radius: 2px;
  box-shadow: 3px 3px 0 var(--pf-soft, var(--accent-soft));
  font-size: 20px;
}

.cover-fallback-title {
  display: -webkit-box;
  max-width: 92%;
  margin-top: 9px;
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.45;
  letter-spacing: .02em;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cover-fallback-meta {
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--font-pixel);
  font-size: 7px;
  line-height: 1.8;
  letter-spacing: .02em;
}

.game-card:hover .game-cover img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

.game-card:hover .cover-fallback {
  transform: scale(1.035);
}

.game-cover .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  padding: 2px 8px;
  background: var(--accent);
  border: 0;
  border-radius: 2px;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 2px 2px 0 rgba(28, 28, 51, .22);
}

.cover-play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 17, 38, .62);
  opacity: 0;
  transition: opacity .18s ease;
}

.game-card:hover .cover-play {
  opacity: 1;
}

.cover-play-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding-left: 3px;
  background: var(--accent);
  border: 2px solid var(--arcade-bright);
  border-radius: 2px;
  color: #fff;
  font-size: 17px;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .4);
  transform: translateY(5px);
  transition: transform .18s ease;
}

.game-card:hover .cover-play-ico {
  transform: translateY(0);
}

.game-label {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 13px 14px 15px;
}

.game-title {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-title a {
  color: var(--text);
}

.game-title a:hover {
  color: var(--accent);
}

.game-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.play-count {
  color: var(--muted);
}

.section-more {
  margin: 22px 0 0;
  text-align: center;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 21px;
  border: 2px solid var(--text);
  border-radius: 2px;
  background: #fff;
  color: var(--text);
  box-shadow: 3px 3px 0 #ccc7bb;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .03em;
  text-align: center;
  cursor: pointer;
  transition: transform .13s ease, box-shadow .13s ease, background .15s ease, border-color .15s ease, color .15s ease;
}

.btn:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 #ccc7bb;
  text-decoration: none;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0 0 0 #ccc7bb;
}

.btn-primary {
  background: var(--accent);
  border-color: #b91b31;
  color: #fff;
  box-shadow: 3px 3px 0 #191832;
}

.btn-primary:hover {
  background: var(--accent-strong);
  border-color: #b91b31;
  color: #fff;
  box-shadow: 4px 4px 0 #191832;
}

.btn-primary:active {
  box-shadow: 0 0 0 #191832;
}

.btn-ghost {
  background: #fff;
  border-color: var(--text);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-danger {
  background: #fff;
  border-color: #c8243a;
  color: #c8243a;
}

.btn-danger:hover {
  background: #fff0f1;
  border-color: #a8182b;
  color: #a8182b;
}

.btn-sm {
  padding: 4px 11px;
  font-size: 12px;
  box-shadow: 2px 2px 0 #ccc7bb;
}

.btn-lg {
  padding: 12px 27px;
  font-size: 15px;
}

/* ---------- 面包屑与列表页 ---------- */
.breadcrumb {
  padding: 30px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb span {
  color: var(--text-soft);
}

.page-head {
  padding: 16px 0 34px;
}

.page-head .breadcrumb {
  padding-top: 0;
}

.page-kicker {
  margin: 20px 0 14px;
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 10px;
  line-height: 1.8;
  letter-spacing: .1em;
}

.page-head h1 {
  position: relative;
  min-height: 40px;
  margin: 0 0 12px;
  padding-left: 29px;
  color: var(--text);
  font-size: clamp(25px, 3.2vw, 35px);
  font-weight: 900;
  letter-spacing: .02em;
}

.page-head h1::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  background: var(--accent);
}

.page-head h1::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 11px solid var(--accent);
  transform: translate(0, -50%);
  animation: arcade-arrow 1.35s steps(4, end) infinite;
}

.page-head p {
  margin: 0 0 10px;
  color: var(--muted);
}

.empty-state {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin: 20px 0 4px;
  padding: 18px 20px;
  background: #fff;
  border: 2px solid #d0cbc0;
  border-left: 5px solid var(--accent);
  border-radius: 2px;
  box-shadow: 4px 4px 0 rgba(23, 23, 47, .08);
  color: var(--muted);
}

.empty-state strong {
  color: var(--text);
  font-size: 16px;
}

.empty-state-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 2px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
}

.category-intro {
  max-width: 840px;
}

.platform-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.platform-nav .btn {
  padding: 6px 14px;
  border-width: 1px;
  border-color: #bdb7aa;
  box-shadow: 2px 2px 0 #cfcabe;
  font-size: 13px;
}

/* ---------- 详情页 ---------- */
.detail-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 32px;
  margin: 14px 0 28px;
  background:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
    var(--arcade-navy);
  background-size: 40px 40px;
  border: 2px solid #0f0e21;
  border-radius: 4px;
  box-shadow: 7px 7px 0 #cec9be;
  overflow: hidden;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(480px 260px at 8% 0%, rgba(237, 47, 69, .19), transparent 66%);
}

.detail-cover {
  position: relative;
  flex: 0 0 320px;
}

.detail-cover img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  image-rendering: pixelated;
  border: 3px solid #f4f0e3;
  border-radius: 2px;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .32);
}

.detail-cover .cover-fallback {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border: 3px solid #f4f0e3;
  border-radius: 2px;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, .32);
}

.detail-cover .cover-fallback::before {
  inset: 12px;
}

.detail-cover .cover-platform-code {
  top: 18px;
  left: 18px;
  right: auto;
  font-size: 8px;
}

.detail-cover .cover-fallback-icon {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  font-size: 31px;
}

.detail-cover .cover-fallback-title {
  max-width: 82%;
  margin-top: 15px;
  font-size: 22px;
}

.detail-cover .cover-fallback-meta {
  margin-top: 9px;
  font-size: 8px;
}

.detail-info {
  position: relative;
  flex: 1;
  min-width: 0;
}

.detail-info h1 {
  margin: 0 0 12px;
  color: var(--arcade-bright);
  font-size: clamp(25px, 3.2vw, 35px);
  font-weight: 900;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .34);
}

.detail-desc {
  margin: 0 0 18px;
  color: #bbb8d1;
  line-height: 1.8;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-meta li {
  padding: 4px 12px;
  background: #282748;
  border: 1px solid #403e66;
  border-radius: 2px;
  color: #d7d4e6;
  font-size: 13px;
}

.detail-meta li a {
  color: #75dce8;
  font-weight: 800;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.detail-actions .btn-primary {
  box-shadow: 4px 4px 0 #090914;
}

/* ---------- 内容块 ---------- */
.content-block {
  margin-bottom: 22px;
  padding: 25px 28px;
  background: #fff;
  border: 2px solid #d0cbc0;
  border-radius: 4px;
  box-shadow: 4px 4px 0 rgba(23, 23, 47, .08);
}

.content-block h2 {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
}

.content-block h2::before {
  content: "";
  width: 4px;
  height: 22px;
  border-radius: 0;
  background: var(--accent);
}

.content-block p {
  color: var(--text-soft);
}

.controls-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.controls-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 20px;
  color: var(--text-soft);
}

.controls-list li::before {
  content: "▶";
  position: absolute;
  left: 2px;
  top: .18em;
  color: var(--accent);
  font-size: 9px;
}

.faq-item {
  margin-bottom: 10px;
  padding: 12px 16px;
  background: #faf9f5;
  border: 1px solid #d5d0c5;
  border-radius: 2px;
}

.faq-item:hover {
  border-color: #aaa497;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
  transition: transform .18s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 10px 0 2px;
  color: var(--muted);
}

.seo-note {
  margin: 38px 0 8px;
  padding: 23px 27px;
  background: #f0eee7;
  border: 1px solid #d8d3c8;
  border-left: 5px solid var(--accent);
  border-radius: 2px;
}

.seo-note h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.seo-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.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;
}

.home-seo {
  margin-top: 52px;
}

.home-seo > p {
  max-width: 920px;
  line-height: 1.8;
}

.seo-platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.seo-platform-grid > div {
  padding: 18px;
  background: #faf9f4;
  border: 1px solid #ddd8cc;
}

.seo-platform-grid h3 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 15px;
}

.seo-platform-grid p {
  min-height: 3.8em;
  line-height: 1.7;
}

.seo-platform-grid a {
  display: inline-block;
  margin-top: 11px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.home-faq {
  margin-top: 24px;
}

@media (max-width: 720px) {
  .seo-platform-grid {
    grid-template-columns: 1fr;
  }

  .seo-platform-grid p {
    min-height: 0;
  }
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 15px;
}

.shot-item {
  margin: 0;
}

.shot-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  image-rendering: pixelated;
  border: 2px solid #d0cbc0;
  border-radius: 2px;
  transition: transform .16s ease, border-color .16s ease;
}

.shot-item img:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 4px 4px 0 #cec9be;
}

/* ---------- 运行页 ---------- */
.play-stage {
  padding: 20px 0 50px;
  text-align: center;
}

.play-stage h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(23px, 2.8vw, 31px);
  font-weight: 900;
}

.play-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 62px;
  margin-bottom: 24px;
}

.play-heading > div {
  grid-column: 2;
  text-align: center;
}

.play-heading-breadcrumb {
  grid-column: 1;
  justify-self: start;
  padding: 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.play-heading .page-kicker {
  margin: 0 0 8px;
  font-size: 9px;
}

.play-heading-link {
  grid-column: 3;
  justify-self: end;
}

.play-heading-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.play-heading > .play-heading-actions {
  grid-column: 3;
  justify-self: end;
}

.play-heading-actions .play-heading-link {
  grid-column: auto;
  justify-self: auto;
}

.play-orientation-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 14px;
  white-space: nowrap;
}

.play-orientation-btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.play-landscape-exit {
  display: none;
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  z-index: 1000;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 8px 14px;
  color: #fff;
  background: rgba(9, 11, 20, .78);
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.play-landscape-exit svg {
  width: 16px;
  height: 16px;
}

.play-landscape-exit:hover {
  color: #fff;
  background: rgba(220, 38, 59, .9);
  border-color: rgba(255, 255, 255, .72);
}

@media (max-width: 900px) {
  .play-orientation-btn {
    display: inline-flex;
  }
}

/* 运行页桌面端：沉浸式 16:9 游戏舞台，左侧工具栏悬浮。 */
@media (min-width: 901px) {
  body:has(#playbar-root) {
    background: #0a2a33;
    overflow-x: hidden;
  }

  body:has(#playbar-root) .site-header {
    display: none;
  }

  body:has(#playbar-root) main.container {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  body:has(#playbar-root) .play-stage {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 6px 16px 8px 82px;
    background: #0a2a33;
  }

  body:has(#playbar-root) .play-heading {
    flex: 0 0 auto;
    width: 100%;
    min-height: 0;
    margin: 0 0 6px;
  }

  body:has(#playbar-root) .play-heading .page-kicker {
    margin: 0;
    color: #ff6478;
    font-size: 9px;
    line-height: 1.2;
  }

  body:has(#playbar-root) .play-heading > div {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
  }

  body:has(#playbar-root) .play-heading > .play-heading-actions {
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  body:has(#playbar-root) .play-stage h1 {
    margin: 0;
    color: #f1f7f7;
    font-size: clamp(20px, 2vw, 26px);
    line-height: 1.2;
  }

  body:has(#playbar-root) .play-heading-breadcrumb {
    color: #8fb5b8;
    font-size: 12px;
  }

  body:has(#playbar-root) .play-heading-breadcrumb a {
    color: #a9ced0;
  }

  body:has(#playbar-root) .play-heading-breadcrumb a:hover {
    color: #fff;
  }

  body:has(#playbar-root) .play-heading-link {
    color: #d8eeee;
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .22);
    box-shadow: none;
  }

  body:has(#playbar-root) .play-heading-link:hover {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .4);
    color: #fff;
  }

  body:has(#playbar-root) .play-layout {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  body:has(#playbar-root) .play-main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
  }

  body:has(#playbar-root) .ejs-wrap {
    width: min(100%, calc((100vh - 56px) * 16 / 9));
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 56px);
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    border: 3px solid #071e26;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 50px rgba(0, 0, 0, .35);
  }

  body:has(#playbar-root) .play-rail {
    position: fixed;
    left: 16px;
    top: 50%;
    bottom: auto;
    width: 58px;
    max-height: calc(100vh - 28px);
    padding: 0;
    overflow-y: auto;
    transform: translateY(-50%);
    z-index: 80;
  }

  body:has(#playbar-root) .playbar-group {
    background: rgba(8, 35, 44, .9);
    border-color: rgba(255, 255, 255, .1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  }

  body:has(#playbar-root) .playbar-btn {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    color: #dbe8e8;
  }

  body:has(#playbar-root) .playbar-panel {
    top: 50%;
    max-height: calc(100vh - 28px);
    transform: translateY(-50%);
  }
}

/* 横屏模式：手机上铺满整个可视区域；不支持方向锁定时旋转播放器兜底。 */
html.xbz-play-landscape,
body.xbz-play-landscape {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.xbz-play-landscape {
  position: fixed;
  inset: 0;
  background: #000;
  touch-action: none;
}

body.xbz-play-landscape .site-header,
body.xbz-play-landscape .site-footer,
body.xbz-play-landscape .play-heading,
body.xbz-play-landscape .play-stage > :not(.play-player):not(.play-landscape-exit) {
  display: none !important;
}

body.xbz-play-landscape main.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.xbz-play-landscape .play-stage,
.play-stage:fullscreen {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
  text-align: left;
}

body.xbz-play-landscape .play-player {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #000;
}

body.xbz-play-landscape .play-layout {
  gap: 0;
}

body.xbz-play-landscape .play-main,
body.xbz-play-landscape .play-main > .ejs-wrap {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.xbz-play-landscape .play-rail,
body.xbz-play-landscape .playbar-panel,
body.xbz-play-landscape .playbar-panel-layer,
body.xbz-play-landscape .playbar-confirm-mask {
  display: none !important;
}

body.xbz-play-landscape .play-start {
  gap: 14px;
  padding: 12px;
}

body.xbz-play-landscape .play-start-tips {
  display: none;
}

body.xbz-play-landscape .play-start-mobile-tip {
  display: block;
  margin: 0;
  padding: 9px 14px;
  background: #211f3b;
  border: 1px dashed #4a4769;
  border-radius: 2px;
  color: #d2cee5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.7;
}

body.xbz-play-landscape .play-start-btn {
  min-height: 48px;
  padding: 12px 40px;
  font-size: 18px;
}

body.xbz-play-landscape .play-landscape-exit {
  display: inline-flex;
}

@media (orientation: portrait) {
  body.xbz-play-landscape .play-player {
    width: var(--xbz-play-h, 100dvh);
    height: var(--xbz-play-w, 100dvw);
    transform: translateX(var(--xbz-play-w, 100dvw)) rotate(90deg);
    transform-origin: top left;
  }
}

.play-layout {
  gap: 16px;
}

.play-rail {
  top: 98px;
  max-height: calc(100vh - 116px);
}

.playbar-group {
  background: var(--arcade-navy);
  border: 2px solid #0f0e21;
  border-radius: 3px;
  box-shadow: 4px 4px 0 #d0cbc0;
}

.playbar-btn {
  background: #242245;
  border: 1px solid #3d3b62;
  border-radius: 2px;
  color: #e2dfef;
}

.playbar-btn:hover {
  background: #302e56;
  border-color: var(--accent);
  color: var(--accent);
}

.playbar-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.playbar-btn[disabled]:hover {
  background: #242245;
  border-color: #3d3b62;
  color: #e2dfef;
}

.ejs-wrap {
  background: #0e0d20;
  border: 3px solid var(--arcade-navy);
  border-radius: 4px;
  box-shadow: 7px 7px 0 #ccc7bb;
}

.play-start {
  background: radial-gradient(560px 300px at 50% 34%, rgba(237, 47, 69, .16), transparent 70%), #0e0d20;
}

.play-start kbd {
  color: #ff9bab;
  background: #211f3b;
  border-color: #48466b;
  border-radius: 3px;
}

.play-start-btn {
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 5px 5px 0 #080713, 0 0 0 6px rgba(237, 47, 69, .12);
}

.play-start-btn:hover:not([disabled]) {
  background: var(--accent-strong);
  filter: none;
}

.play-start-sub {
  color: #928fa9;
}

.play-start-mobile-tip {
  display: none;
}

.play-help,
.play-intro,
.play-cheats,
.play-related {
  max-width: 980px;
}

.playbar-panel {
  top: 98px;
  max-height: calc(100vh - 116px);
  background: #fbfaf6;
  border: 2px solid var(--arcade-navy);
  border-radius: 3px;
  box-shadow: 7px 7px 0 rgba(23, 23, 47, .24);
}

.playbar-panel-head {
  background: var(--arcade-navy);
  border-bottom: 0;
}

.playbar-panel-head strong {
  color: var(--arcade-bright);
}

.playbar-panel-close {
  color: #aaa7c2;
}

.playbar-panel-close:hover {
  background: #2b294c;
  color: #fff;
}

.playbar-panel-body .playbar-sec {
  color: #59566c;
}

.playbar-panel .playbar-btn {
  background: #fff;
  border-color: #d4cec3;
  color: var(--text-soft);
}

.playbar-panel .playbar-btn:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

.playbar-zoom-label,
.playbar-slot,
.playbar-cheat,
.playbar-opt,
.cheat-code-list li {
  border-radius: 2px;
  background: #f0eee7;
  border: 1px solid #d4cec3;
  color: var(--text-soft);
}

.playbar-opt.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cheat-code-list code {
  color: var(--accent);
}

#playbar-toast {
  background: var(--arcade-navy);
  border: 2px solid #f4f0e3;
  border-radius: 2px;
  color: var(--arcade-bright);
  box-shadow: 5px 5px 0 rgba(23, 23, 47, .24);
}

.pwa-tip {
  display: none;
}

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: 68px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 1px, transparent 1px 32px),
    var(--arcade-navy);
  border-top: 4px solid var(--accent);
}

.footer-inner {
  padding-top: 38px;
  padding-bottom: 34px;
  text-align: center;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 17px;
  color: var(--arcade-bright);
  font-family: var(--font-pixel);
  font-size: 17px;
  line-height: 1.4;
  text-decoration: none;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .4);
}

.footer-logo:hover {
  color: var(--arcade-bright);
}

.footer-logo span {
  color: var(--accent);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 14px;
}

.footer-links a {
  color: #b7b4cf;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links span {
  color: #555271;
}

.footer-seo {
  max-width: 760px;
  margin: 15px auto 8px;
  color: #8f8ca8;
  font-size: 13px;
}

.copyright {
  margin: 0;
  color: #9996ae;
  font-size: 12px;
}

.copyright a {
  color: #8f8ca8;
}

/* ---------- 后台沿用同一套纸张与机台配色 ---------- */
.admin-page {
  padding: 34px 0 54px;
}

.admin-session-bar {
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: #101026;
}

.admin-session-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: #b8b4ca;
  font-size: 13px;
}

.admin-session-inner a {
  color: #fff;
  font-weight: 800;
}

.admin-session-email {
  margin-left: auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-session-inner form {
  margin: 0;
}

.settings-box {
  max-width: 760px;
}

.settings-intro {
  margin: 0 0 20px;
  color: var(--text-soft);
  line-height: 1.8;
}

.settings-note {
  margin: -8px 0 20px;
  padding: 12px 14px;
  border-left: 4px solid var(--accent);
  background: #fbfaf6;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.settings-toggle-row {
  display: flex !important;
  align-items: flex-start !important;
  flex-direction: row !important;
  gap: 13px !important;
  padding: 16px 18px;
  border: 2px solid #d9d4c9;
  border-radius: 3px;
  background: #fbfaf6;
  cursor: pointer;
}

.nav-settings-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-toggle-row input[type="checkbox"] {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--accent);
}

.settings-toggle-copy {
  display: block;
}

.settings-toggle-title {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.settings-toggle-help {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
}

.settings-actions {
  margin-top: 2px;
}

.notice-success {
  display: inline-block;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 2px solid #9cc8a5;
  border-radius: 3px;
  background: #eef8f0;
  color: #246438;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .nav-settings-list {
    grid-template-columns: 1fr;
  }
}

.admin-page h1 {
  margin: 0 0 16px;
  font-size: 27px;
  font-weight: 900;
}

.admin-page h2::before {
  width: 4px;
  height: 19px;
  border-radius: 0;
  background: var(--accent);
}

.admin-box,
.table-wrap,
.stat-card,
.bar-chart {
  background: #fff;
  border: 2px solid #d0cbc0;
  border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(23, 23, 47, .08);
}

.admin-box {
  padding: 26px 28px;
}

.admin-translation {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid #d9d4c9;
  border-radius: 3px;
  background: #fbfaf6;
}

.admin-translation > summary {
  cursor: pointer;
  font-weight: 800;
}

.admin-translation[open] > summary {
  margin-bottom: 16px;
}

.admin-table th {
  background: var(--arcade-navy);
  color: #dedbea;
  border-bottom: 0;
}

.admin-table td {
  color: var(--text-soft);
  border-bottom: 1px solid #e0dbd1;
}

.admin-table tbody tr:hover {
  background: #f8f6f0;
}

.admin-table code {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
  border-radius: 2px;
}

.form-stack label {
  color: var(--text-soft);
}

.form-stack input,
.form-stack select,
.form-stack textarea {
  background: #fff;
  border: 2px solid #cfc9bd;
  border-radius: 2px;
  color: var(--text);
}

.form-stack input:focus,
.form-stack select:focus,
.form-stack textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-stack select option {
  background: #fff;
  color: var(--text);
}

.stat-num,
.bar-value,
.bar-label {
  color: var(--accent);
}

.bar {
  background: var(--accent);
  border-radius: 0;
}

.mini-bar-inner {
  background: var(--accent);
}

.playbar h1,
.playbar h2 {
  color: var(--text);
}

/* ---------- 404 ---------- */
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 62vh;
  padding: 76px 0 96px;
  text-align: center;
}

.error-page .page-kicker {
  margin: 0 0 22px;
}

.error-code {
  position: relative;
  padding-right: 28px;
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: clamp(76px, 13vw, 132px);
  line-height: 1.15;
  letter-spacing: -.05em;
  text-shadow: 5px 5px 0 #1b1a34, 8px 8px 0 #d7d2c7;
}

.error-code::after {
  content: "";
  position: absolute;
  top: 51%;
  right: 0;
  width: 0;
  height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 22px solid var(--accent);
  transform: translateY(-50%);
  animation: error-arrow 1.2s steps(3, end) infinite;
}

@keyframes error-arrow {
  0%,
  100% {
    transform: translate(0, -50%);
  }
  50% {
    transform: translate(14px, -50%);
  }
}

.error-page h1 {
  margin: 24px 0 10px;
  color: var(--text);
  font-size: clamp(25px, 3.4vw, 36px);
  font-weight: 900;
}

.error-page > p:not(.page-kicker) {
  max-width: 570px;
  margin: 0;
  color: var(--muted);
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 27px;
}

/* ---------- 入场动效 ---------- */
.reveal-ready {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .46s ease, transform .46s cubic-bezier(.2, .72, .25, 1);
}

.reveal-ready.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 分页 ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 30px 0 8px;
}

.pagination .btn {
  padding: 6px 15px;
}

.pagination-info {
  color: var(--muted);
  font-size: 13px;
}

.pagination-disabled {
  opacity: .4;
  pointer-events: none;
}

/* ---------- 通用 ---------- */
.muted {
  color: var(--muted);
  font-size: 13px;
}

.error {
  color: #c8243a;
  font-weight: 800;
}

.admin-kicker {
  margin: 0 0 9px;
  color: var(--accent);
  font-family: var(--font-pixel);
  font-size: 9px;
  line-height: 1.8;
  letter-spacing: .08em;
}

.play-missing {
  max-width: 600px;
  margin: 36px auto;
  padding: 28px;
  background: #fff;
  border: 2px solid #d0cbc0;
  border-radius: 3px;
  box-shadow: 4px 4px 0 rgba(23, 23, 47, .08);
  color: var(--muted);
}

/* ---------- 响应式 ---------- */
@media (max-width: 1360px) {
  .header-top {
    flex-wrap: wrap;
    gap: 10px 18px;
    padding-top: 10px;
    padding-bottom: 0;
  }

  .logo {
    margin-right: auto;
  }

  .search-form {
    flex: 0 1 240px;
  }

  .language-switch {
    order: 2;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid #302e50;
  }

  .main-nav-inner {
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    padding: 10px 16px 11px;
  }
}

@media (max-width: 1180px) {
  .header-top {
    gap: 22px;
  }

  .main-nav-inner {
    gap: 19px;
  }

  .search-form {
    flex-basis: 218px;
  }

  .language-switch-trigger {
    padding-inline: 10px;
  }

  .cards-row .game-card {
    flex-basis: calc((100% - 66px) / 4);
  }
}

@media (max-width: 980px) {
  .header-top {
    flex-wrap: wrap;
    gap: 12px 22px;
    padding-top: 12px;
    padding-bottom: 0;
  }

  .logo {
    margin-right: auto;
  }

  .search-form {
    flex: 0 1 250px;
    margin-left: 0;
  }

  .language-switch {
    order: 2;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    border-top: 1px solid #302e50;
  }

  .main-nav-inner {
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .main-nav-inner::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    padding: 10px 16px 11px;
  }

  .hero-inner {
    padding: 30px 0 26px;
  }

  .game-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cards-row .game-card {
    flex-basis: calc((100% - 44px) / 3);
  }

  .row-nav {
    display: none;
  }

  .recent-games-section.has-row-nav .recent-games-clear {
    margin-right: 0;
  }

  .detail-hero {
    gap: 26px;
    padding: 26px;
  }

  .detail-cover {
    flex-basis: 260px;
  }
}

@media (max-width: 900px) {
  .play-main {
    width: 100%;
    align-self: stretch;
  }
}

@media (max-width: 760px) {
  .container {
    padding-left: max(17px, env(safe-area-inset-left));
    padding-right: max(17px, env(safe-area-inset-right));
  }

  .header-top {
    gap: 10px;
  }

  .logo-mark {
    font-size: 16px;
  }

  .search-form {
    order: 2;
    flex: 1 1 100%;
  }

  .language-switch {
    order: 1;
    margin-left: 0;
  }

  .search-form input {
    font-size: 16px;
  }

  .search-form button {
    min-height: 44px;
  }

  .main-nav {
    order: 3;
  }

  .main-nav-inner {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
  }

  .main-nav a {
    min-height: 44px;
    padding: 9px 11px 10px;
    font-size: 14px;
  }

  .hero {
    background-size: 38px 38px;
  }

  .hero-inner {
    padding: 26px 0 22px;
  }

  .hero-kicker {
    margin-bottom: 12px;
    font-size: 8px;
  }

  .hero h1 {
    margin-bottom: 11px;
    font-size: clamp(26px, 7vw, 35px);
    letter-spacing: .03em;
    text-shadow: 2px 2px 0 #a9820e;
  }

  .hero-sub {
    font-size: 14px;
    line-height: 1.8;
  }

  .hero-divider {
    margin: 14px auto 18px;
  }

  .hero-stat {
    padding: 12px 6px 11px;
  }

  .hero-stat dt {
    font-size: 18px;
  }

  .hero-stat dt.stat-free {
    font-size: 15px;
  }

  .hero-stat dd {
    margin-top: 5px;
    font-size: 11px;
    letter-spacing: 0;
  }

  .section-title {
    gap: 8px;
    min-height: 31px;
    margin-bottom: 20px;
    padding-left: 25px;
    flex-wrap: wrap;
  }

  .section-en {
    font-size: 17px;
  }

  .section-cn {
    font-size: 14px;
  }

  .recent-games-section .section-title {
    gap: 6px;
  }

  .recent-games-clear {
    padding: 4px 8px;
    font-size: 11px;
  }

  h2.section-title::after,
  .section-title::after {
    border-top-width: 5px;
    border-bottom-width: 5px;
    border-left-width: 10px;
  }

  .platform-select {
    margin: 26px 0 34px;
  }

  .platform-blocks {
    gap: 10px;
  }

  .platform-block {
    min-width: 0;
    padding: 6px 13px 6px 7px;
  }

  .platform-ico {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
    font-size: 13px;
  }

  .platform-name {
    font-size: 13px;
  }

  .game-section {
    margin-bottom: 44px;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .cards-row .game-grid {
    gap: 14px;
    padding-left: 2px;
    padding-right: 12px;
  }

  .cards-row .game-card {
    flex-basis: 72%;
  }

  .game-label {
    padding: 11px 12px 13px;
  }

  .game-title {
    font-size: 14px;
  }

  .page-head {
    padding-bottom: 26px;
  }

  .page-kicker {
    margin-top: 17px;
    font-size: 8px;
  }

  .page-head h1 {
    padding-left: 24px;
    font-size: 25px;
    text-wrap: balance;
  }

  .content-block {
    padding: 21px 19px;
  }

  .platform-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .platform-nav .btn {
    width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.45;
    white-space: normal;
  }

  .detail-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    box-shadow: 5px 5px 0 #cec9be;
  }

  .detail-cover {
    flex: 1 1 auto;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
  }

  .detail-info h1 {
    font-size: 26px;
  }

  .play-stage {
    padding-top: 12px;
  }

  .play-layout {
    gap: 12px;
  }

  body:has(#playbar-root) {
    padding-bottom: 72px;
  }

  .play-heading {
    display: block;
    min-height: 0;
    margin-bottom: 18px;
  }

  .play-heading-link {
    display: none;
  }

  .play-heading-actions {
    justify-content: center;
    margin-top: 12px;
  }

  .play-orientation-btn {
    width: 100%;
    max-width: 240px;
    min-height: 46px;
    padding: 9px 20px;
    font-size: 15px;
  }

  .play-orientation-btn svg {
    width: 20px;
    height: 20px;
  }

  .play-heading .page-kicker {
    font-size: 8px;
  }

  .play-heading-breadcrumb {
    padding: 0 0 8px;
  }

  .play-main {
    width: 100%;
  }

  .play-rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 75;
    order: 2;
    width: 100%;
    max-height: none;
    padding: 7px max(10px, env(safe-area-inset-right))
      calc(7px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
    background: rgba(23, 23, 47, .98);
    border-top: 2px solid var(--accent);
    box-shadow: 0 -8px 28px rgba(23, 23, 47, .22);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    overscroll-behavior-x: contain;
  }

  .playbar-group {
    flex-direction: row;
    gap: 5px;
    padding: 4px;
    border-color: #3d3b62;
    box-shadow: none;
  }

  .playbar-btn {
    width: 44px;
    height: 44px;
  }

  .playbar-btn svg {
    width: 19px;
    height: 19px;
  }

  .playbar-panel {
    top: auto;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-height: calc(100vh - 180px);
    transform: none;
  }

  #playbar-toast {
    top: auto;
    bottom: calc(78px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    max-width: 340px;
  }

  .ejs-wrap {
    height: clamp(340px, 52vh, 440px);
    height: clamp(340px, 52dvh, 440px);
    min-height: 0;
    box-shadow: 4px 4px 0 #ccc7bb;
  }

  /* Windows 内置游戏需要更大的纵向操作区，竖屏下允许页面继续向下滚动。 */
  .ejs-wrap.play-player {
    height: clamp(460px, 68dvh, 620px);
  }

  .play-start {
    gap: 18px;
    padding: 16px;
  }

  .play-start-mobile-tip {
    display: block;
    margin: 0;
    padding: 9px 14px;
    background: #211f3b;
    border: 1px dashed #4a4769;
    border-radius: 2px;
    color: #d2cee5;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
  }

  .play-start-tips {
    display: none;
  }

  .play-start-btn {
    padding: 13px 42px;
    font-size: 18px;
  }

  .footer-inner {
    padding-top: 31px;
  }

  .footer-logo {
    font-size: 14px;
  }

  .error-page {
    min-height: 55vh;
    padding: 56px 0 70px;
  }

  .error-page .page-kicker {
    font-size: 8px;
  }

  .error-code {
    padding-right: 20px;
    text-shadow: 3px 3px 0 #1b1a34, 6px 6px 0 #d7d2c7;
  }

  .error-code::after {
    border-top-width: 9px;
    border-bottom-width: 9px;
    border-left-width: 16px;
  }
}

@media (max-width: 430px) {
  .logo-mark {
    font-size: 14px;
  }

  .hero-stat dt {
    font-size: 16px;
  }

  .hero-stat dt.stat-free {
    font-size: 13px;
  }

  .section-en {
    font-size: 15px;
  }

  .section-cn {
    font-size: 13px;
  }

  .platform-block {
    flex: 1 1 calc(50% - 5px);
    justify-content: flex-start;
  }

  .cards-row .game-card {
    flex-basis: 82%;
  }
}

@media (max-width: 360px) {
  .main-nav a {
    padding: 8px 8px 9px;
    font-size: 13px;
  }

  .search-form button {
    padding: 6px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .row-nav,
  .skip-link {
    display: none !important;
  }

  .reveal-ready {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- 用户反馈与后台留言 ---------- */
.contact-page {
  padding: 46px 0 64px;
}

.contact-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.contact-heading .page-kicker {
  margin-bottom: 10px;
}

.contact-heading h1 {
  margin-bottom: 14px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 900;
}

.contact-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(230px, .72fr) minmax(0, 1.55fr);
  gap: 24px;
  align-items: start;
}

.contact-note,
.contact-form,
.contact-success {
  border: 2px solid #d0cbc0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 5px 5px 0 rgba(23, 23, 47, .08);
}

.contact-note {
  position: sticky;
  top: 112px;
  padding: 24px;
}

.contact-note strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 16px;
}

.contact-note p,
.contact-note li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.contact-note p {
  margin: 0 0 16px;
}

.contact-note ul {
  margin: 0;
  padding-left: 18px;
}

.contact-form {
  max-width: none;
  padding: 28px;
}

.contact-form .field-optional {
  color: var(--muted);
  font-weight: 500;
}

.contact-form .field-help {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-error {
  margin: 0;
  padding: 11px 14px;
  border: 2px solid #dba1a1;
  border-radius: 3px;
  background: #fff1f1;
  color: #9d2f2f;
  font-size: 13px;
  font-weight: 700;
}

.contact-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contact-submit-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.contact-success {
  max-width: 760px;
  padding: 38px;
}

.contact-success h2 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 28px;
}

.contact-success p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.85;
}

.contact-success-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.message-filters {
  display: flex;
  gap: 8px;
  margin: 22px 0;
  padding-bottom: 14px;
  border-bottom: 1px solid #ddd8cd;
  overflow-x: auto;
}

.message-filters a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #d0cbc0;
  border-radius: 3px;
  background: #fff;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.message-filters a.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.message-filters span {
  min-width: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: rgba(23, 23, 47, .09);
  color: inherit;
  font-size: 11px;
  text-align: center;
}

.admin-message-list {
  display: grid;
  gap: 16px;
}

.admin-message {
  padding: 20px 22px;
  border: 2px solid #d0cbc0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 4px 4px 0 rgba(23, 23, 47, .07);
}

.admin-message-head,
.admin-message-actions,
.admin-message-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-message-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-message-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.message-status,
.message-category {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
}

.status-new {
  background: #fff3d6;
  color: #8b5b00;
}

.status-working {
  background: #e9f1ff;
  color: #2858a7;
}

.status-resolved {
  background: #eaf7ed;
  color: #28633a;
}

.message-category {
  background: #f1efea;
  color: #5c586c;
}

.admin-message-head time {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.admin-message h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
}

.admin-message-text {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: #fbfaf6;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-message-meta {
  gap: 22px;
  margin: 0 0 16px;
}

.admin-message-meta div {
  display: flex;
  gap: 5px;
  font-size: 12px;
}

.admin-message-meta dt {
  color: var(--muted);
}

.admin-message-meta dd {
  margin: 0;
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.admin-message-actions {
  padding-top: 14px;
  border-top: 1px solid #e3ded4;
}

.admin-message-actions form {
  margin: 0;
}

.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
}

.admin-empty {
  padding: 42px 24px;
  border: 2px dashed #d0cbc0;
  background: #fff;
  text-align: center;
}

.admin-empty h2 {
  margin-bottom: 8px;
}

.admin-empty p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .contact-page {
    padding-top: 30px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-note {
    position: static;
    order: 2;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-submit-row .btn {
    width: 100%;
  }

  .admin-message {
    padding: 16px;
  }

  .admin-message-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}
