/* ============================================================
   浜戞父宸村＋ CLOUD BUS 鈥?Design System
   Blue gradient / light-first / responsive. No external assets.
   ============================================================ */

:root {
  --bg: #070b14;
  --bg-2: #0a1020;
  --bg-3: #0f172a;
  --panel: #0c1424;
  --panel-2: #111c31;
  --panel-3: #17243c;
  --line: rgba(148, 163, 184, 0.12);
  --line-strong: rgba(148, 163, 184, 0.22);
  --line-accent: rgba(96, 165, 250, 0.34);
  --text: #f3f8ff;
  --text-2: #c4d0e2;
  --text-3: #91a3bd;
  --accent: #7dd3fc;
  --accent-2: #3b82f6;
  --accent-3: #a5e8ff;
  --accent-rgb: 96, 165, 250;
  --accent-soft: rgba(96, 165, 250, 0.12);
  --accent-glow: rgba(59, 130, 246, 0.3);
  --accent-gradient: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #1d4ed8 100%);
  --header-bg: rgba(7, 11, 20, 0.86);
  --header-bg-scrolled: rgba(7, 11, 20, 0.96);
  --glass: rgba(12, 20, 36, 0.82);
  --cyan: #22d3ee;
  --orange: #fbbf24;
  --pink: #f472b6;
  --danger: #f87171;
  --radius: 20px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 12px 36px rgba(0, 0, 0, 0.28);
  --header-h: 70px;
  --max-w: 1400px;
  --font-sans: "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Hiragino Sans GB", system-ui, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "Cascadia Mono", ui-monospace, "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: #303a2b var(--bg);
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(120, 180, 40, 0.11), transparent 60%),
    radial-gradient(900px 500px at -10% 40%, rgba(70, 120, 40, 0.07), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 75%);
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #0b0e0a;
}

::-webkit-scrollbar-thumb {
  background: #2a3325;
  border: 2px solid #0b0e0a;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3b4934;
}

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

img {
  height: auto;
}

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

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

button {
  border: 0;
  background: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

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

[hidden] {
  display: none !important;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: none;
}

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

.wrap {
  width: min(100% - 48px, var(--max-w));
  margin-inline: auto;
}

.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-solid {
  fill: currentColor;
  stroke: none;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-lg {
  width: 24px;
  height: 24px;
}

.dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.65;
}

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

.dim {
  color: var(--text-3);
}

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

.mono {
  font-family: var(--font-mono);
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 55%), var(--panel);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

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

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.16);
}

.btn-primary:hover {
  background: var(--accent-3);
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.26);
}

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

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

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

.btn-soft:hover {
  background: rgba(var(--accent-rgb), 0.16);
}

.btn-dark {
  background: #0b0f08;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  height: 36px;
  padding: 0 15px;
  font-size: 13px;
}

.btn-lg {
  height: 50px;
  padding: 0 26px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
}

.btn-icon:hover {
  border-color: var(--line-accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.btn-icon.is-active {
  border-color: rgba(255, 126, 182, 0.4);
  background: rgba(255, 126, 182, 0.12);
  color: var(--pink);
}

.btn-icon.is-active .icon {
  fill: currentColor;
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}

.theme-toggle:hover {
  border-color: var(--line-accent);
  background: var(--accent-soft);
  color: var(--accent);
  transform: rotate(-8deg);
}

.theme-icon {
  display: none;
  place-items: center;
}

html[data-theme="light"] .theme-icon-moon,
html[data-theme="dark"] .theme-icon-sun {
  display: grid;
}

.theme-icon .icon {
  width: 18px;
  height: 18px;
}

.header-feedback {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  font-size: 12px;
  transition: 0.2s;
}

.header-feedback:hover {
  border-color: var(--line-accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.auth-wrap {
  position: relative;
  flex: 0 0 auto;
}

.auth-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px 0 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
  transition: 0.2s;
}

.auth-trigger:hover {
  border-color: var(--line-accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.auth-trigger.is-logged {
  border-color: var(--line-accent);
  color: var(--text);
}

.auth-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 900;
}

.auth-trigger.is-logged .auth-avatar {
  background: var(--accent-gradient);
  color: #fff;
}

.auth-label {
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-auth .btn + .btn {
  margin-top: 8px;
}

.auth-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  z-index: 130;
  width: 220px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.auth-menu-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 9px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
}

.auth-menu-head b {
  font-size: 13px;
}

.auth-menu-head span {
  overflow: hidden;
  color: var(--text-3);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 12px;
  text-align: left;
}

.auth-menu button:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.drawer-auth {
  margin-top: 18px;
}

.drawer-auth .btn {
  width: 100%;
}

.drawer-feedback {
  width: 100%;
  margin-top: 10px;
}

html[data-theme="light"] .header-feedback,
html[data-theme="light"] .auth-trigger {
  background: #f6f9fe;
}

.auth-modal,
.feedback-modal,
.bind-phone-modal {
  width: min(470px, 93vw);
}

.bind-account-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--text-3);
  font-size: 11.5px;
}

.bind-account-line b {
  color: var(--text);
}

.bind-account-line span {
  margin-left: auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.auth-menu-head span:last-child {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
}

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-2);
}

.auth-tab {
  flex: 1;
  height: 34px;
  border-radius: 8px;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  transition: 0.2s;
}

.auth-tab.is-active {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 5px 14px rgba(var(--accent-rgb), 0.18);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.form-field > span {
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
}

.form-field > span em {
  color: var(--danger);
  font-style: normal;
}

.form-field > span small {
  color: var(--text-3);
  font-size: 9.5px;
  font-weight: 400;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input,
.form-field select {
  height: 42px;
}

.form-field textarea {
  min-height: 108px;
  resize: vertical;
  line-height: 1.7;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--line-accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-3);
}

.form-field select {
  appearance: none;
  cursor: pointer;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 2px 0 13px;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.6;
  cursor: pointer;
}

.auth-consent input {
  width: 14px;
  height: 14px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.auth-consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-alert {
  margin-bottom: 12px;
  padding: 9px 11px;
  border: 1px solid rgba(248, 113, 113, 0.24);
  border-radius: 8px;
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  font-size: 11.5px;
  line-height: 1.6;
}

.form-alert.is-success {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}

.auth-submit {
  margin-top: 3px;
}

.auth-switch {
  margin-top: 13px;
  color: var(--text-3);
  font-size: 11.5px;
  text-align: center;
}

.auth-switch button {
  color: var(--accent);
  font-size: inherit;
  font-weight: 700;
}

.form-hint {
  margin-top: 10px;
  color: var(--text-3);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

html[data-theme="light"] .form-alert {
  color: #b91c1c;
}

html[data-theme="light"] .form-alert.is-success {
  color: #15803d;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s, gap 0.2s;
}

.link-arrow:hover {
  color: var(--accent);
  gap: 12px;
}

/* ---------------- Top bar / Header ---------------- */
.topbar {
  position: relative;
  z-index: 101;
  border-bottom: 1px solid var(--line);
  background: #090c08;
  color: var(--text-2);
  font-size: 12px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 34px;
}

.topbar-msg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.topbar-msg .dot {
  width: 5px;
  height: 5px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.topbar-links a {
  transition: color 0.2s;
}

.topbar-links a:hover,
.topbar-links button:hover {
  color: var(--accent);
}

.topbar-links button {
  color: var(--text-2);
  font-size: 12px;
  transition: color 0.2s;
}

.site-pv {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 11px;
  white-space: nowrap;
}

.site-pv .icon {
  width: 13px;
  height: 13px;
}

.site-pv b,
.footer-status b {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.topbar-divider {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 8, 0.86);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  transition: background 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  background: rgba(8, 10, 8, 0.95);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: var(--header-h);
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.brand:hover .brand-mark {
  transform: rotate(-6deg) scale(1.06);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-en {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 13px;
  border-radius: 10px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transform: translateX(-50%) scaleX(0.3);
  transition: opacity 0.2s, transform 0.2s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: 210px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-3);
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
}

.search-trigger:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}

.search-trigger kbd {
  margin-left: auto;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.header-cta {
  height: 40px;
  padding: 0 17px;
  font-size: 13px;
}

.menu-toggle {
  display: none;
}

/* ---------------- Search overlay ---------------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  justify-content: center;
  padding: 12vh 20px 40px;
  background: rgba(4, 6, 3, 0.76);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-panel {
  width: min(760px, 100%);
  align-self: flex-start;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: #10140f;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  transform: translateY(-16px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow: hidden;
}

.search-overlay.is-open .search-panel {
  transform: none;
}

.search-panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.search-panel-head .icon {
  color: var(--accent);
}

.search-panel-head input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 17px;
  outline: none;
}

.search-panel-head input::placeholder {
  color: var(--text-3);
}

.search-close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-3);
  font-size: 11px;
}

.search-panel-body {
  max-height: 54vh;
  padding: 10px;
  overflow-y: auto;
}

.search-suggest-label {
  padding: 8px 12px 6px;
  color: var(--text-3);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 11px;
  transition: background 0.15s;
}

.search-result:hover,
.search-result.is-focus {
  background: rgba(255, 255, 255, 0.055);
}

.search-result img {
  width: 38px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  background: var(--panel-2);
}

.search-result .sr-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

.search-result > div {
  min-width: 0;
  flex: 1;
}

.search-result .sr-meta {
  color: var(--text-3);
  font-size: 11.5px;
}

.search-result .sr-type {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10.5px;
  white-space: nowrap;
}

.search-empty {
  padding: 36px 20px;
  color: var(--text-3);
  text-align: center;
  font-size: 13.5px;
}

.search-panel-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11px;
}

.search-panel-foot kbd {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-mono);
}

/* ---------------- Mobile drawer ---------------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(3, 5, 2, 0.66);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  display: flex;
  flex-direction: column;
  width: min(360px, 88vw);
  padding: 22px;
  border-left: 1px solid var(--line);
  background: #0c100a;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.5);
  transform: translateX(102%);
  transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  overflow-y: auto;
}

.mobile-drawer.is-open {
  transform: none;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 12px;
  color: var(--text-2);
  font-size: 16px;
  font-weight: 600;
}

.drawer-nav a:hover,
.drawer-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.drawer-nav .icon {
  color: var(--text-3);
}

.drawer-nav a.is-active .icon {
  color: var(--accent);
}

.drawer-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.drawer-foot {
  margin-top: auto;
  padding-top: 26px;
  color: var(--text-3);
  font-size: 12px;
}

.drawer-foot .socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

/* ---------------- Hero ---------------- */
.hero {
  padding-top: 22px;
}

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

.hero-main {
  position: relative;
  height: 524px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #0b0d0a;
  isolation: isolate;
  touch-action: pan-y;
}

.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.hero-track.is-dragging {
  transition: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s;
}

.hero-track .hero-slide {
  position: relative;
  inset: auto;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  opacity: 1;
  visibility: visible;
  transition: none;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-slide.is-active .slide-bg {
  animation: heroZoom 9s ease-out both;
}

@keyframes heroZoom {
  from { transform: scale(1.055); }
  to { transform: scale(1); }
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 7, 4, 0.92) 0%, rgba(5, 7, 4, 0.62) 38%, rgba(5, 7, 4, 0.08) 72%),
    linear-gradient(0deg, rgba(5, 7, 4, 0.9) 0%, transparent 55%);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(700px 320px at 20% 80%, rgba(var(--accent-rgb), 0.06), transparent 70%);
  pointer-events: none;
}

.hero-slide-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.hero-slide-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: -5px;
}

.hero-content {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: min(680px, 78%);
  padding: 44px;
  pointer-events: none;
}

.hero-actions {
  pointer-events: auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 5px 12px 5px 8px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 999px;
  background: rgba(8, 12, 6, 0.5);
  color: #a5e8ff;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-content,
.hero-title {
  color: #fff;
}

.hero-kicker .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  50% { box-shadow: 0 0 0 5px rgba(var(--accent-rgb), 0); }
}

.hero-title {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.7vw, 56px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-en {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.26em;
}

.hero-sub {
  max-width: 520px;
  margin-bottom: 18px;
  color: #cbd4c4;
  font-size: 15px;
  line-height: 1.7;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 22px;
  color: var(--text-2);
  font-size: 12.5px;
}

.hero-meta .score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hero-tag {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d7ded1;
  font-size: 11.5px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-controls {
  position: absolute;
  right: 24px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-index {
  margin-right: 4px;
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.hero-index b {
  color: #fff;
  font-size: 14px;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(10, 13, 8, 0.5);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hero-arrow:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.hero-dots {
  position: absolute;
  left: 44px;
  bottom: 24px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.24);
  transition: background 0.25s, width 0.25s;
}

.hero-dot.is-active {
  width: 36px;
  background: var(--accent);
}

.hero-side {
  display: flex;
  flex-direction: column;
  height: 524px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(var(--accent-rgb), 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 40%),
    var(--panel);
}

.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.side-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}

.side-head .live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
}

.side-sub {
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 11.5px;
}

.top-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 7px;
  border-radius: 11px;
  transition: background 0.2s;
}

.top-item:hover {
  background: rgba(255, 255, 255, 0.045);
}

.top-rank {
  width: 20px;
  flex: 0 0 auto;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.top-item:nth-child(1) .top-rank,
.top-item:nth-child(2) .top-rank,
.top-item:nth-child(3) .top-rank {
  color: var(--accent);
}

.top-item img {
  width: 48px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-2);
}

.top-info {
  min-width: 0;
  flex: 1;
}

.top-name {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-3);
  font-size: 10.5px;
}

.top-meta .score {
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
}

.top-play {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-3);
  opacity: 0;
  transform: translateX(-4px);
  transition: 0.2s;
}

.top-item:hover .top-play {
  border-color: var(--line-accent);
  color: var(--accent);
  opacity: 1;
  transform: none;
}

.hero-side-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.hero-side-foot span {
  color: var(--text-3);
  font-size: 10.5px;
}

/* ---------------- Stats ---------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--panel);
  overflow: hidden;
}

.stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 22px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line-accent);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.stat-label {
  color: var(--text-3);
  font-size: 11.5px;
}

/* ---------------- Section shell ---------------- */
.section {
  margin-top: 64px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading {
  min-width: 0;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.section-kicker::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-title small {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-sub {
  margin-top: 6px;
  color: var(--text-3);
  font-size: 13px;
}

.section-head .section-action {
  margin-left: auto;
  flex: 0 0 auto;
}

.section-head .tabs {
  margin-left: auto;
}

/* ---------------- Tabs / chips ---------------- */
.tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}

.tab {
  height: 32px;
  padding: 0 15px;
  border-radius: 999px;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active,
.tab[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font-size: 11.5px;
  white-space: nowrap;
}

.pill-accent {
  border-color: var(--line-accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.pill-warm {
  border-color: rgba(255, 180, 94, 0.25);
  background: rgba(255, 180, 94, 0.1);
  color: var(--orange);
}

/* ---------------- Play paths ---------------- */
.play-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}

.path-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(220px, 0.95fr);
  min-height: 292px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(420px 260px at 90% 0%, rgba(var(--accent-rgb), 0.13), transparent 68%),
    var(--panel);
}

.path-card.path-apk {
  background:
    radial-gradient(420px 260px at 90% 0%, rgba(99, 230, 255, 0.11), transparent 68%),
    var(--panel);
}

.path-copy {
  position: relative;
  z-index: 2;
  padding: 28px 6px 28px 28px;
}

.path-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border: 1px solid var(--line-accent);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.path-apk .path-icon {
  border-color: rgba(99, 230, 255, 0.25);
  background: rgba(99, 230, 255, 0.08);
  color: var(--cyan);
}

.path-copy h3 {
  margin-bottom: 8px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.path-copy p {
  max-width: 360px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.65;
}

.path-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 20px;
}

.path-points span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 11px;
}

.path-points .icon {
  color: var(--accent);
}

.path-apk .path-points .icon {
  color: var(--cyan);
}

.path-visual {
  position: relative;
  min-height: 100%;
}

.browser-mock {
  position: absolute;
  top: 42px;
  left: 6px;
  width: 340px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: #0a0d08;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(-3deg);
  transition: transform 0.5s ease;
}

.path-card:hover .browser-mock {
  transform: rotate(-1deg) translateY(-4px);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 9px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: #151a12;
}

.browser-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.browser-bar i:first-child {
  background: rgba(255, 180, 94, 0.6);
}

.browser-bar span {
  margin-left: 5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.04em;
}

.browser-mock img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.browser-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
  transform: translate(-50%, -30%);
}

.phone-mock {
  position: absolute;
  top: 30px;
  left: 50%;
  width: 142px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 23px;
  background: #0a0d08;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%) rotate(4deg);
  transition: transform 0.5s ease;
}

.path-card:hover .phone-mock {
  transform: translateX(-50%) rotate(1deg) translateY(-4px);
}

.phone-mock img {
  width: 100%;
  aspect-ratio: 9 / 17.5;
  border-radius: 17px;
  object-fit: cover;
}

.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 42px;
  height: 5px;
  border-radius: 5px;
  background: #0a0d08;
  transform: translateX(-50%);
  z-index: 2;
}

.qr-float {
  position: absolute;
  right: 18px;
  bottom: 26px;
  z-index: 3;
  width: 82px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f3f7ed;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  transform: rotate(3deg);
}

.qr-float img {
  width: 100%;
  aspect-ratio: 1;
}

.qr-float span {
  display: block;
  margin-top: 3px;
  color: #35402f;
  font-size: 7px;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

/* ---------------- Game grid / card ---------------- */
.game-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px 14px;
}

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

.game-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 16px;
}

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

.game-card {
  min-width: 0;
}

.card-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  isolation: isolate;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.game-card:hover .card-cover {
  border-color: var(--line-accent);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(var(--accent-rgb), 0.07);
  transform: translateY(-4px);
}

.cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.game-card:hover .cover-img {
  transform: scale(1.055);
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, transparent 34%, rgba(5, 7, 4, 0.06) 55%, rgba(5, 7, 4, 0.82) 100%);
  pointer-events: none;
}

.card-badges {
  position: absolute;
  top: 9px;
  left: 9px;
  right: 9px;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(7, 9, 5, 0.66);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.rating .icon {
  width: 10px;
  height: 10px;
}

.badge-new {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.badge-hot {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(255, 107, 107, 0.92);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
}

.card-hover {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 9px;
  z-index: 3;
  display: flex;
  gap: 6px;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.25s, transform 0.25s;
}

.game-card:hover .card-hover,
.game-card:focus-within .card-hover {
  opacity: 1;
  transform: none;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(8, 11, 6, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.card-action:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.card-action.is-primary {
  flex: 1;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.card-action.is-primary:hover {
  background: var(--accent-3);
}

.card-platform {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  display: flex;
  gap: 3px;
  transition: opacity 0.2s;
}

.game-card:hover .card-platform {
  opacity: 0;
}

.card-platform span {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  background: rgba(8, 11, 6, 0.7);
  color: rgba(255, 255, 255, 0.7);
}

.card-platform .icon {
  width: 11px;
  height: 11px;
}

.card-body {
  padding: 10px 2px 0;
}

.card-title {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--text-3);
  font-size: 11px;
  white-space: nowrap;
}

.card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta .sep {
  width: 2px;
  height: 2px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--text-3);
}

.game-card.compact .card-cover {
  border-radius: 13px;
}

.game-card.compact .card-body {
  padding-top: 8px;
}

.game-card.compact .card-title {
  font-size: 13px;
}

/* Horizontal game row (used on rankings / sidebars) */
.game-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 10px;
  border-radius: 12px;
  transition: background 0.2s;
}

.game-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.game-row img {
  width: 48px;
  height: 62px;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: cover;
  background: var(--panel-2);
}

.game-row .row-body {
  min-width: 0;
  flex: 1;
}

.game-row .row-title {
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-row .row-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--text-3);
  font-size: 10.5px;
}

.game-row .row-score {
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
}

.game-row .row-arrow {
  color: var(--text-3);
  transition: color 0.2s, transform 0.2s;
}

.game-row:hover .row-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* ---------------- Genres ---------------- */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.genre-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 84px;
  padding: 16px 17px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.genre-card:hover {
  border-color: var(--line-accent);
  background: var(--panel-2);
  transform: translateY(-2px);
}

.genre-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(var(--accent-rgb), 0.26);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.08);
  color: var(--genre-color, var(--accent));
  border-color: color-mix(in srgb, var(--genre-color, var(--accent)) 30%, transparent);
  background: color-mix(in srgb, var(--genre-color, var(--accent)) 10%, transparent);
}

.genre-body {
  min-width: 0;
}

.genre-name {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.genre-name em {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.genre-count {
  color: var(--text-3);
  font-size: 11px;
}

.genre-arrow {
  margin-left: auto;
  color: var(--text-3);
  opacity: 0;
  transform: translateX(-4px);
  transition: 0.2s;
}

.genre-card:hover .genre-arrow {
  color: var(--accent);
  opacity: 1;
  transform: none;
}

.genre-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -34px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--genre-color, var(--accent));
  opacity: 0.06;
  filter: blur(16px);
  transition: opacity 0.25s;
}

.genre-card:hover::after {
  opacity: 0.14;
}

/* ---------------- New releases ---------------- */
.new-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.new-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.new-card:hover {
  border-color: var(--line-accent);
  background: var(--panel-2);
  transform: translateY(-2px);
}

.new-card img {
  width: 72px;
  height: 94px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  background: var(--panel-2);
}

.new-body {
  min-width: 0;
  flex: 1;
}

.new-date {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
}

.new-date .badge-new {
  padding: 2px 5px;
  font-size: 8px;
}

.new-title {
  margin: 4px 0 3px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-tags {
  overflow: hidden;
  color: var(--text-3);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-arrow {
  color: var(--text-3);
  opacity: 0;
  transition: 0.2s;
}

.new-card:hover .new-arrow {
  color: var(--accent);
  opacity: 1;
}

/* ---------------- Rank section ---------------- */
.rank-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
}

.rank-main {
  padding: 22px;
  border-right: 1px solid var(--line);
}

.rank-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.rank-panel-head h3 {
  font-size: 17px;
  font-weight: 800;
}

.rank-panel-head .tabs {
  margin-left: auto;
}

.rank-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 26px;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 8px;
  border-radius: 10px;
  transition: background 0.2s;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.rank-no {
  width: 25px;
  flex: 0 0 auto;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  font-style: italic;
  text-align: center;
}

.rank-row:nth-child(1) .rank-no,
.rank-row:nth-child(2) .rank-no,
.rank-row:nth-child(3) .rank-no {
  color: var(--accent);
}

.rank-row img {
  width: 38px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
  background: var(--panel-2);
}

.rank-body {
  min-width: 0;
  flex: 1;
}

.rank-name {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  color: var(--text-3);
  font-size: 10px;
}

.rank-score {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
}

.rank-aside {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background:
    radial-gradient(300px 220px at 100% 0%, rgba(var(--accent-rgb), 0.09), transparent 70%),
    rgba(255, 255, 255, 0.01);
}

.rank-aside .eyebrow {
  margin-bottom: 12px;
}

.rank-aside h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.rank-aside p {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.65;
}

.rank-aside .rank-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.16);
}

.rank-highlight img {
  width: 54px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.rank-highlight .rh-name {
  font-size: 13px;
  font-weight: 700;
}

.rank-highlight .rh-meta {
  color: var(--text-3);
  font-size: 10.5px;
}

.rank-highlight .rh-score {
  margin-top: 3px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.rank-aside .btn {
  margin-top: auto;
}

/* ---------------- News ---------------- */
.news-showcase {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
}

.news-feature {
  position: relative;
  display: flex;
  min-height: 370px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  isolation: isolate;
}

.news-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.news-feature:hover img {
  transform: scale(1.04);
}

.news-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(5, 7, 4, 0.95) 0%, rgba(5, 7, 4, 0.38) 54%, transparent 78%);
}

.news-feature-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  padding: 28px;
}

.news-feature h3 {
  max-width: 540px;
  margin: 12px 0 9px;
  font-size: clamp(19px, 1.8vw, 25px);
  font-weight: 800;
  line-height: 1.3;
}

.news-feature p {
  max-width: 540px;
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.65;
}

.news-cat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.news-cat.cat-guide {
  background: var(--cyan);
}

.news-cat.cat-review {
  background: #c7a3ff;
}

.news-cat.cat-newgame {
  background: var(--orange);
}

.news-cat.cat-news {
  background: var(--accent);
}

.news-side-list {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}

.news-row {
  display: flex;
  gap: 13px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.2s, background 0.2s;
}

.news-row:hover {
  border-color: var(--line-accent);
  background: var(--panel-2);
}

.news-row img {
  width: 116px;
  height: 78px;
  flex: 0 0 auto;
  border-radius: 9px;
  object-fit: cover;
  background: var(--panel-2);
}

.news-row-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.news-row-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-row-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 5px;
  color: var(--text-3);
  font-size: 10px;
}

/* ---------------- FAQ teaser ---------------- */
.faq-teaser {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 34px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(500px 300px at 0% 100%, rgba(var(--accent-rgb), 0.08), transparent 70%),
    var(--panel);
}

.faq-teaser-copy h2 {
  margin: 10px 0 12px;
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 800;
  line-height: 1.15;
}

.faq-teaser-copy p {
  max-width: 350px;
  color: var(--text-3);
  font-size: 13px;
}

.faq-teaser-copy .btn {
  margin-top: 22px;
}

.faq-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-mini details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s, background 0.2s;
}

.faq-mini details[open] {
  border-color: var(--line-accent);
  background: rgba(var(--accent-rgb), 0.035);
}

.faq-mini summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 46px 14px 16px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq-mini summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 400;
  transform: translateY(-50%);
  transition: color 0.2s, transform 0.25s;
}

.faq-mini details[open] summary::after {
  color: var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.faq-mini .faq-a {
  padding: 0 16px 16px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.75;
}

/* ---------------- CTA banner ---------------- */
.cta-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  margin-top: 64px;
  padding: 42px 44px;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 26px;
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(var(--accent-rgb), 0.25), transparent 62%),
    linear-gradient(120deg, #0b1e3a 0%, #091426 46%, #070d19 100%);
}

.cta-banner::before {
  content: "PLAY";
  position: absolute;
  top: -54px;
  right: 80px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--font-display);
  font-size: 230px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
}

.cta-copy {
  position: relative;
  z-index: 1;
}

.cta-copy h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.cta-copy p {
  max-width: 520px;
  color: var(--text-2);
  font-size: 13.5px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cta-side {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(5, 8, 3, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.cta-side img {
  width: 92px;
  height: 92px;
  border-radius: 10px;
  background: #f3f7ed;
}

.cta-side .qr-title {
  font-size: 12.5px;
  font-weight: 700;
}

.cta-side .qr-desc {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 10.5px;
}

/* ---------------- Footer ---------------- */
.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: #070906;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 38px;
}

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

.footer-desc {
  max-width: 360px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.8;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.footer-col h3 {
  margin-bottom: 13px;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.footer-col a,
.footer-col span,
.footer-col button {
  display: block;
  margin-bottom: 8px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: inherit;
  text-align: left;
  transition: color 0.2s;
}

.footer-col a:hover,
.footer-col button:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 26px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11px;
}

.footer-bottom p {
  max-width: 720px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 5px;
}

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

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 10.5px;
}

/* ---------------- Mobile dock ---------------- */
.mobile-dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 90;
  display: none;
  align-items: stretch;
  justify-content: space-around;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(12, 16, 10, 0.9);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.dock-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 4px;
  border-radius: 12px;
  color: var(--text-3);
  font-size: 9.5px;
  font-weight: 600;
}

.dock-item .icon {
  width: 20px;
  height: 20px;
}

.dock-item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
}

.dock-item.dock-play {
  flex: 0 0 58px;
  margin-top: -18px;
  border: 4px solid var(--bg);
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.2);
}

.dock-item.dock-play .icon {
  width: 22px;
  height: 22px;
}

/* ---------------- Inner page hero ---------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 320px at 78% -20%, rgba(var(--accent-rgb), 0.14), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(600px 300px at 70% 30%, #000, transparent 78%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  padding: 32px 0 42px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  color: var(--text-3);
  font-size: 11.5px;
}

.breadcrumbs a {
  transition: color 0.2s;
}

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

.breadcrumbs .sep {
  color: rgba(255, 255, 255, 0.2);
}

.breadcrumbs .current {
  color: var(--text-2);
}

.page-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.page-title .en {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
}

.page-desc {
  max-width: 680px;
  margin-top: 12px;
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.75;
}

.page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 20px;
}

.page-meta .pill {
  padding: 6px 12px;
}

/* ---------------- Catalog ---------------- */
.catalog {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 30px;
  padding: 30px 0 72px;
}

.filter-panel {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - var(--header-h) - 36px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.filter-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.filter-card h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filter-card h2 span {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9px;
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.filter-link {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--text-2);
  font-size: 12.5px;
  transition: color 0.2s, background 0.2s;
}

.filter-link:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.filter-link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.filter-link .icon {
  width: 15px;
  height: 15px;
  color: var(--text-3);
}

.filter-link.is-active .icon {
  color: var(--accent);
}

.filter-link .count {
  margin-left: auto;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.filter-tip {
  padding: 15px;
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.09), transparent 65%), var(--panel);
}

.filter-tip .eyebrow {
  margin-bottom: 8px;
  font-size: 9px;
}

.filter-tip h3 {
  margin-bottom: 5px;
  font-size: 15px;
}

.filter-tip p {
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.6;
}

.filter-tip .btn {
  margin-top: 12px;
}

.catalog-main {
  min-width: 0;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.catalog-search {
  position: relative;
  flex: 1;
  min-width: 0;
}

.catalog-search .icon {
  position: absolute;
  top: 50%;
  left: 14px;
  color: var(--text-3);
  transform: translateY(-50%);
  pointer-events: none;
}

.catalog-search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.catalog-search input:focus {
  border-color: var(--line-accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.07);
}

.catalog-search input::placeholder {
  color: var(--text-3);
}

.sort-wrap {
  position: relative;
  flex: 0 0 auto;
}

.sort-select {
  height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text-2);
  font-size: 12.5px;
  outline: none;
  appearance: none;
  cursor: pointer;
}

.sort-wrap::after {
  content: "鈱?;
  position: absolute;
  top: 50%;
  right: 14px;
  color: var(--text-3);
  font-size: 12px;
  pointer-events: none;
  transform: translateY(-58%);
}

.mobile-filter-btn {
  display: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-3);
  font-size: 11.5px;
  transition: 0.2s;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.filter-chip.is-active {
  border-color: var(--line-accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

.results-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-3);
  font-size: 11.5px;
}

.results-line b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

.results-line .view-count {
  color: var(--accent);
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 360px;
  padding: 40px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}

.empty-state .empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--text-3);
}

.empty-state h3 {
  margin-bottom: 6px;
  font-size: 17px;
}

.empty-state p {
  max-width: 360px;
  margin-bottom: 18px;
  color: var(--text-3);
  font-size: 12.5px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
}

.page-btn {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12px;
  transition: 0.2s;
}

.page-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.page-btn.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.page-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.page-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.page-ellipsis {
  padding: 0 5px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
}

/* Mobile filter drawer */
.filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: none;
}

.filter-drawer.is-open {
  display: block;
}

.filter-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 2, 0.7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.filter-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(340px, 88vw);
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #0c100a;
}

.filter-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.filter-drawer-head h2 {
  font-size: 18px;
}

/* ---------------- Game detail ---------------- */
.game-detail {
  position: relative;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #070d19;
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  /* 20% 涓嶉€忔槑搴︼紙80% 閫忔槑锛?*/
  opacity: 0.2;
  filter: saturate(0.88) brightness(0.85);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.97) 0%, rgba(5, 8, 13, 0.84) 50%, rgba(5, 8, 13, 0.66) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 8, 13, 0.22) 48%, transparent 76%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 24px 0 34px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 272px;
  gap: 26px;
  align-items: start;
  margin-top: 10px;
}

.detail-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  margin-top: 4px;
  background: var(--panel-2);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-cover .rating {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.detail-info {
  min-width: 0;
  padding-bottom: 4px;
}

.detail-facts {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  margin-top: 4px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(6, 12, 24, 0.76);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  color: #eef2f8;
  backdrop-filter: blur(14px);
}

.facts-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.facts-kicker {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.facts-head h2 {
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.facts-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.facts-list > div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

.facts-list dt {
  color: rgba(255, 255, 255, 0.42);
  font-size: 10.5px;
}

.facts-list dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11.5px;
  line-height: 1.55;
  text-align: right;
  overflow-wrap: anywhere;
}

.facts-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
}

.facts-foot span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.facts-foot .icon {
  color: var(--accent);
}

.detail-info h1 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.detail-en {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.24em;
}

.detail-sub {
  max-width: 660px;
  margin: 10px 0;
  color: #d3dbcd;
  font-size: 14px;
  line-height: 1.7;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-bottom: 16px;
  color: var(--text-2);
  font-size: 12px;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-meta .icon {
  color: var(--text-3);
}

.detail-meta b {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-actions .btn-primary {
  min-width: 158px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 36px;
  padding: 36px 0 80px;
}

.detail-main {
  min-width: 0;
}

.detail-main > section + section {
  margin-top: 38px;
}

.block-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.block-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 800;
}

.block-head h2::before {
  content: "";
  width: 3px;
  height: 17px;
  border-radius: 2px;
  background: var(--accent);
}

.block-head .hint {
  margin-left: auto;
  color: var(--text-3);
  font-size: 11px;
}

.prose {
  color: #c4cdbe;
  font-size: 14px;
  line-height: 1.95;
}

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

.prose h3 {
  margin: 24px 0 8px;
  color: var(--text);
  font-size: 16px;
}

.prose strong {
  color: var(--text);
}

.prose ul {
  margin: 12px 0;
  padding-left: 2px;
}

.prose li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.prose li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Screenshot gallery: native horizontal swipe + arrows + thumbnails */
.gallery {
  position: relative;
}

.gallery.is-single .gallery-toolbar,
.gallery.is-single .gallery-thumbs {
  display: none;
}

.gallery-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #05070d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.gallery-track {
  position: relative;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  outline: none;
  user-select: none;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-track:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.gallery-track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
}

.gallery-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #04060b;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: zoom-in;
  font: inherit;
  text-align: left;
}

.gallery-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.gallery-slide:hover img {
  transform: scale(1.02);
}

.gallery-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(2, 5, 10, 0.82), transparent);
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  right: 18px;
  bottom: 15px;
  left: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  pointer-events: none;
}

.gallery-caption b {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.gallery-caption span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  opacity: 0.72;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
}

.gallery-count {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--font-mono);
}

.gallery-count b {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.gallery-count span {
  color: var(--text-3);
  font-size: 10px;
}

.gallery-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--text-3);
  font-size: 11px;
  white-space: nowrap;
}

.gallery-hint .icon {
  color: var(--accent);
}

.gallery-arrows {
  display: flex;
  gap: 6px;
}

.gallery-arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--text-2);
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.gallery-arrow:hover:not(:disabled) {
  border-color: var(--line-accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.gallery-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(var(--thumb-count, 5), minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
  padding: 4px 2px 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--panel-2);
  opacity: 0.68;
  filter: saturate(0.78) brightness(0.9);
  transform: translateY(0);
  transition: opacity 0.25s, filter 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 7, 14, 0.72), transparent 55%);
  pointer-events: none;
}

.gallery-thumb-index {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(4, 8, 15, 0.62);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.gallery-thumb:hover {
  opacity: 0.95;
  filter: saturate(0.92) brightness(0.98);
  transform: translateY(-2px);
}

.gallery-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
  filter: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16), 0 0 0 2px var(--accent-soft);
}

.gallery-thumb.is-active .gallery-thumb-index {
  background: var(--accent);
  color: #fff;
}

.gallery-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--text-3);
  font-size: 10.5px;
}

.gallery-note .icon {
  color: var(--text-3);
}

/* Game video */
.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #000;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

/* Game notice */
.detail-notice-section {
  margin-bottom: 0;
}

.notice-card {
  overflow: hidden;
  border: 1px solid var(--line-accent);
  border-radius: 14px;
  background:
    linear-gradient(120deg, rgba(var(--accent-rgb), 0.08), transparent 46%),
    var(--panel);
}

.notice-card summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  cursor: pointer;
  list-style: none;
}

.notice-card summary::-webkit-details-marker {
  display: none;
}

.notice-badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.notice-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.notice-hint {
  margin-left: auto;
  color: var(--text-3);
  font-size: 10px;
}

.notice-card summary > .icon {
  color: var(--text-3);
  transition: transform 0.2s;
}

.notice-card[open] summary > .icon {
  transform: rotate(180deg);
}

.notice-card[open] .when-closed,
.notice-card:not([open]) .when-open {
  display: none;
}

.notice-body {
  max-height: 360px;
  overflow: auto;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.85;
  white-space: pre-line;
}

@media (max-width: 620px) {
  .notice-card summary {
    padding: 12px 13px;
  }

  .notice-body {
    max-height: 300px;
    padding: 11px 13px 14px;
    font-size: 12px;
  }
}

.howto-list {
  display: grid;
  gap: 8px;
  counter-reset: step;
}

.howto-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.howto-item::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  flex: 0 0 auto;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}

.howto-item p {
  color: var(--text-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.req-table {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 12px;
}

.req-table th,
.req-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.req-table tr:last-child td,
.req-table tr:last-child th {
  border-bottom: 0;
}

.req-table thead th {
  background: var(--panel-2);
  color: var(--text-3);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.req-table tbody th {
  width: 100px;
  color: var(--text-3);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.02);
}

.req-table td {
  color: var(--text-2);
}

.detail-side {
  min-width: 0;
}

.sticky-side {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.play-card {
  padding: 20px;
  border: 1px solid var(--line-accent);
  border-radius: 18px;
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(var(--accent-rgb), 0.13), transparent 70%),
    var(--panel);
}

.play-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 800;
}

.play-card .play-note {
  margin: 5px 0 16px;
  color: var(--text-3);
  font-size: 11px;
}

.play-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s, background 0.2s;
}

.play-option:hover {
  border-color: var(--line-accent);
  background: rgba(var(--accent-rgb), 0.04);
}

.play-option + .play-option {
  margin-top: 8px;
}

.play-option-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

.play-option-icon.cyan {
  background: rgba(99, 230, 255, 0.09);
  color: var(--cyan);
}

.play-option .po-title {
  font-size: 12.5px;
  font-weight: 700;
}

.play-option .po-sub {
  color: var(--text-3);
  font-size: 10px;
}

.play-option .po-arrow {
  margin-left: auto;
  color: var(--text-3);
}

.qr-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}

.qr-line img {
  width: 66px;
  height: 66px;
  border-radius: 6px;
  background: #fff;
}

.qr-line .qr-copy b {
  display: block;
  font-size: 11.5px;
}

.qr-line .qr-copy span {
  color: var(--text-3);
  font-size: 10px;
}

.side-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.side-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13.5px;
}

.side-card h3 .icon {
  color: var(--accent);
}

.side-card p {
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.7;
}

.side-card .side-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-card .side-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 11.5px;
  transition: color 0.2s;
}

.side-card .side-list a:hover {
  color: var(--accent);
}

.side-card .side-list .icon {
  width: 13px;
  height: 13px;
  color: var(--text-3);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.mobile-playbar {
  display: none;
}

/* Lightbox */
.lightbox {
  width: min(1000px, 92vw);
  max-height: 88vh;
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #070906;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(3, 5, 2, 0.86);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11.5px;
}

/* ---------------- News list / article ---------------- */
.news-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 30px;
  padding: 32px 0 74px;
}

.news-main {
  min-width: 0;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}

.news-card:hover {
  border-color: var(--line-accent);
  background: var(--panel-2);
  transform: translateY(-3px);
}

.news-card-img {
  position: relative;
  overflow: hidden;
}

.news-card-img img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s;
}

.news-card:hover .news-card-img img {
  transform: scale(1.035);
}

.news-card-img .news-cat {
  position: absolute;
  top: 10px;
  left: 10px;
}

.news-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 15px;
}

.news-card-body h3 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 7px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 13px;
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: var(--text-3);
  font-size: 10.5px;
}

.news-meta .icon {
  width: 12px;
  height: 12px;
}

.news-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.news-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.aside-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.aside-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  font-size: 14px;
}

.aside-card h3::before {
  content: "";
  width: 3px;
  height: 13px;
  border-radius: 2px;
  background: var(--accent);
}

.popular-news {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: pop;
}

.popular-news a {
  display: flex;
  gap: 9px;
  counter-increment: pop;
}

.popular-news a::before {
  content: counter(pop);
  flex: 0 0 auto;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

.popular-news a:nth-child(-n + 3)::before {
  color: var(--accent);
}

.popular-news .pn-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-2);
  font-size: 11.5px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s;
}

.popular-news a:hover .pn-title {
  color: var(--accent);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud a {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 10.5px;
  transition: 0.2s;
}

.tag-cloud a:hover {
  border-color: var(--line-accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* Article */
.article-page {
  padding: 28px 0 74px;
}

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

.article-head {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.article-cat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}

.article-head h1 {
  max-width: 900px;
  margin-bottom: 12px;
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.article-lead {
  max-width: 800px;
  margin-bottom: 18px;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.75;
}

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-3);
  font-size: 11.5px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.author-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.article-cover {
  margin: 22px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 7.5;
  object-fit: cover;
}

.article-body {
  max-width: 820px;
  color: #c8d1c1;
  font-size: 15px;
  line-height: 2;
}

.article-body p {
  margin-bottom: 17px;
}

.article-body h2 {
  margin: 32px 0 12px;
  color: var(--text);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.article-body h2::before {
  content: "#";
  margin-right: 8px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 16px;
}

.article-body ul {
  margin: 16px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.article-body li {
  position: relative;
  padding-left: 17px;
  margin-bottom: 7px;
  color: var(--text-2);
  font-size: 13.5px;
}

.article-body li:last-child {
  margin-bottom: 0;
}

.article-body li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.article-body blockquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.08), transparent);
  color: var(--text);
  font-size: 14px;
  line-height: 1.8;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.share-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.share-row b {
  font-size: 12px;
}

.share-row .btn {
  margin-left: auto;
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
}

.article-nav a {
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: border-color 0.2s;
}

.article-nav a:hover {
  border-color: var(--line-accent);
}

.article-nav .an-label {
  color: var(--text-3);
  font-size: 10px;
}

.article-nav .an-title {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.article-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.article-side .sticky-side {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toc a {
  padding: 5px 0 5px 12px;
  border-left: 1px solid var(--line);
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.5;
  transition: color 0.2s, border-color 0.2s;
}

.toc a:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* ---------------- FAQ page ---------------- */
.faq-page {
  padding: 32px 0 74px;
}

.faq-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
}

.faq-side {
  align-self: start;
}

.faq-side .sticky-side {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}

.faq-cats {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.faq-cat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 12.5px;
  transition: 0.2s;
}

.faq-cat:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.faq-cat.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.faq-cat .icon {
  width: 15px;
  height: 15px;
  color: var(--text-3);
}

.faq-cat.is-active .icon {
  color: var(--accent);
}

.faq-cat .count {
  margin-left: auto;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.faq-search {
  position: relative;
  margin-bottom: 18px;
}

.faq-search .icon {
  position: absolute;
  top: 50%;
  left: 15px;
  color: var(--text-3);
  transform: translateY(-50%);
}

.faq-search input {
  width: 100%;
  height: 48px;
  padding: 0 16px 0 45px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-search input:focus {
  border-color: var(--line-accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.07);
}

.faq-group {
  margin-bottom: 26px;
}

.faq-group-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.faq-group-head h2 {
  font-size: 17px;
  font-weight: 800;
}

.faq-group-head .count {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.faq-item[open] {
  border-color: rgba(var(--accent-rgb), 0.24);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.035), transparent 60%), var(--panel);
}

.faq-item summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 50px 16px 17px;
  cursor: pointer;
  list-style: none;
}

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

.faq-q-mark {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  opacity: 0.8;
}

.faq-q {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 300;
  transform: translateY(-50%);
  transition: transform 0.25s, color 0.2s;
}

.faq-item[open] summary::after {
  color: var(--accent);
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 17px 17px 46px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.9;
}

.faq-answer p + p {
  margin-top: 9px;
}

.faq-empty {
  padding: 50px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--text-3);
  text-align: center;
  font-size: 13px;
}

.faq-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  padding: 20px;
  border: 1px solid var(--line-accent);
  border-radius: 16px;
  background:
    radial-gradient(300px 160px at 100% 0%, rgba(var(--accent-rgb), 0.12), transparent 70%),
    var(--panel);
}

.faq-cta .icon {
  color: var(--accent);
}

.faq-cta h3 {
  font-size: 15px;
}

.faq-cta p {
  color: var(--text-3);
  font-size: 11.5px;
}

.faq-cta .btn {
  margin-left: auto;
}

/* ---------------- Rankings page ---------------- */
.rank-page {
  padding: 34px 0 76px;
}

.rank-page-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.podium {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}

.podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  background:
    radial-gradient(300px 200px at 100% 0%, color-mix(in srgb, var(--platform-color, var(--accent)) 14%, transparent), transparent 70%),
    var(--panel);
}

.podium-card.is-first {
  border-color: rgba(var(--accent-rgb), 0.3);
  background:
    radial-gradient(400px 260px at 100% 0%, rgba(var(--accent-rgb), 0.2), transparent 70%),
    linear-gradient(160deg, #101f3a, var(--panel));
}

.podium-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.podium-rank b {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.podium-card:nth-child(2) .podium-rank b {
  color: #d8e2d0;
}

.podium-card:nth-child(3) .podium-rank b {
  color: var(--orange);
}

.podium-card h2 {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 900;
}

.podium-card .p-en {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.podium-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 16px;
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.podium-score {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: auto;
}

.podium-score b {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 27px;
  line-height: 1;
}

.podium-score span {
  color: var(--text-3);
  font-size: 10px;
}

.platform-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.platform-row {
  background: var(--panel);
  transition: background 0.2s;
}

.platform-row:hover {
  background: var(--panel-2);
}

.platform-row td,
.platform-row th {
  padding: 13px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.platform-row td:first-child,
.platform-row th:first-child {
  border-left: 1px solid var(--line);
  border-radius: 12px 0 0 12px;
}

.platform-row td:last-child,
.platform-row th:last-child {
  border-right: 1px solid var(--line);
  border-radius: 0 12px 12px 0;
}

.platform-head-row th {
  padding: 0 14px 8px;
  color: var(--text-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border: 0;
}

.pt-rank {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
}

.pt-name {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 170px;
}

.platform-logo {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--platform-color, var(--accent));
  background: color-mix(in srgb, var(--platform-color, var(--accent)) 14%, transparent);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
}

.pt-name b {
  display: block;
  font-size: 13px;
}

.pt-name span {
  display: block;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.pt-score {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.pt-badge {
  display: inline-flex;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-3);
  font-size: 9.5px;
  white-space: nowrap;
}

.pt-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-2);
  font-size: 11px;
  white-space: nowrap;
}

.pt-action:hover {
  color: var(--accent);
}

.rank-method {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  margin-top: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.rank-method h3 {
  font-size: 15px;
}

.rank-method p {
  color: var(--text-3);
  font-size: 12px;
  line-height: 1.75;
}

.rank-method .score-bars {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.score-bar {
  display: grid;
  grid-template-columns: 70px 1fr 40px;
  align-items: center;
  gap: 10px;
  color: var(--text-3);
  font-size: 10.5px;
}

.score-bar i {
  display: block;
  height: 4px;
  border-radius: 4px;
  background: var(--panel-3);
  overflow: hidden;
}

.score-bar i::after {
  content: "";
  display: block;
  width: var(--w, 80%);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.score-bar b {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-weight: 500;
  text-align: right;
}

/* Game ranking table */
.game-rank-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 26px;
}

.game-rank-row {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  transition: 0.2s;
}

.game-rank-row:hover {
  border-color: var(--line-accent);
  background: var(--panel-2);
}

.game-rank-row .gr-no {
  width: 28px;
  flex: 0 0 auto;
  color: var(--text-3);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  font-style: italic;
  text-align: center;
}

.game-rank-row:nth-child(-n + 3) .gr-no {
  color: var(--accent);
}

.game-rank-row img {
  width: 44px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
}

.game-rank-row .gr-body {
  min-width: 0;
  flex: 1;
}

.game-rank-row .gr-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-rank-row .gr-meta {
  color: var(--text-3);
  font-size: 10px;
}

.game-rank-row .gr-score {
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

/* ---------------- Search page ---------------- */
.search-page {
  padding: 40px 0 80px;
  min-height: 55vh;
}

.search-page-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.search-page-head h1 {
  margin-bottom: 9px;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 900;
}

.search-page-head p {
  color: var(--text-3);
  font-size: 13px;
}

.search-page-form {
  position: relative;
  max-width: 760px;
  margin-bottom: 30px;
}

.search-page-form .icon {
  position: absolute;
  top: 50%;
  left: 18px;
  color: var(--text-3);
  transform: translateY(-50%);
}

.search-page-form input {
  width: 100%;
  height: 58px;
  padding: 0 130px 0 50px;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: var(--panel);
  color: var(--text);
  font-size: 15px;
  outline: none;
}

.search-page-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.08);
}

.search-page-form button {
  position: absolute;
  top: 8px;
  right: 8px;
  height: 42px;
}

.search-summary {
  margin-bottom: 16px;
  color: var(--text-3);
  font-size: 12px;
}

.search-summary b {
  color: var(--accent);
}

.search-section + .search-section {
  margin-top: 34px;
}

.search-section h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-size: 18px;
}

.search-section h2 span {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

/* ---------------- Modal / toast ---------------- */
.modal {
  width: min(480px, 92vw);
  max-height: min(90vh, 760px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #0e120c;
  color: var(--text);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
  overflow-y: auto;
}

.modal::backdrop {
  background: rgba(3, 5, 2, 0.8);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 20px 0;
}

.modal-head .modal-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line-accent);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.modal-head h2 {
  margin-bottom: 3px;
  font-size: 18px;
}

.modal-head p {
  color: var(--text-3);
  font-size: 11.5px;
  line-height: 1.55;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-left: auto;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-3);
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.modal-body {
  padding: 16px 20px;
}

.modal-foot {
  padding: 0 20px 20px;
}

.play-modal-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  text-align: left;
  transition: 0.2s;
}

.modal-option:hover {
  border-color: var(--line-accent);
  background: var(--accent-soft);
}

.modal-option .mo-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
}

.modal-option .mo-title {
  font-size: 13px;
  font-weight: 700;
}

.modal-option > span:nth-child(2) {
  min-width: 0;
  flex: 1;
}

.modal-option .mo-sub {
  color: var(--text-3);
  font-size: 10.5px;
}

.modal-option .icon:last-child {
  margin-left: auto;
  color: var(--text-3);
}

.modal-note {
  margin-top: 12px;
  padding: 9px 11px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--text-3);
  font-size: 10.5px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  border: 1px solid var(--line-accent);
  border-radius: 12px;
  background: #141b0f;
  box-shadow: var(--shadow-soft);
  color: var(--text);
  font-size: 12.5px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
}

.toast.is-show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

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

/* ---------------- Review / comment upgrades ---------------- */
.review-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    radial-gradient(380px 200px at 0% 50%, rgba(var(--accent-rgb), 0.09), transparent 72%),
    var(--panel);
}

.review-score {
  display: flex;
  align-items: baseline;
  gap: 3px;
  min-width: 104px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.review-score b {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
}

.review-score span {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
}

.review-summary-main {
  min-width: 0;
  flex: 1;
}

.review-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #fbbf24;
}

.review-star {
  display: inline-flex;
  opacity: 0.18;
}

.review-star.is-on {
  opacity: 1;
}

.review-star .icon {
  width: 15px;
  height: 15px;
}

.review-summary-label {
  margin-top: 5px;
  color: var(--text-3);
  font-size: 11px;
}

.review-summary-label b {
  color: var(--text-2);
  font-family: var(--font-mono);
}

.review-good {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 10.5px;
}

.review-good b {
  color: var(--accent);
  font-family: var(--font-mono);
}

.review-summary > .btn {
  margin-left: auto;
  flex: 0 0 auto;
}

.comments-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.comments-toolbar > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 10px;
}

.comment-sort {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
}

.comment-sort button {
  height: 28px;
  padding: 0 13px;
  border-radius: 6px;
  color: var(--text-3);
  font-size: 11px;
  transition: 0.2s;
}

.comment-sort button.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.comment-item {
  display: flex;
  gap: 13px;
  margin-bottom: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.comment-item:hover {
  border-color: var(--line-strong);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  font-size: 14px;
  box-shadow: 0 6px 16px rgba(var(--accent-rgb), 0.16);
}

.comment-body {
  min-width: 0;
  flex: 1;
}

.comment-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.comment-user {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.comment-user b {
  color: var(--text);
  font-size: 12.5px;
}

.comment-user-badge {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 8.5px;
  font-weight: 600;
}

.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 3px;
  color: var(--text-3);
  font-size: 10px;
}

.comment-meta .review-stars {
  gap: 1px;
}

.comment-meta .review-star .icon {
  width: 11px;
  height: 11px;
}

.comment-more {
  margin-left: auto;
  color: var(--text-3);
  opacity: 0.5;
}

.comment-text {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.comment-text.is-expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}

.comment-expand {
  margin-top: 5px;
  color: var(--accent);
  font-size: 10.5px;
  font-weight: 600;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.comment-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 10.5px;
  transition: color 0.2s;
}

.comment-action:hover {
  color: var(--accent);
}

.comment-action.is-liked {
  color: var(--accent);
}

.comment-action .icon {
  width: 14px;
  height: 14px;
}

.comment-action b {
  font-family: var(--font-mono);
  font-weight: 500;
}

.comment-device {
  margin-left: auto;
  color: var(--text-3);
  font-size: 9.5px;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.review-rating > span {
  color: var(--text-3);
  font-size: 11px;
}

.review-rating > b {
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 10.5px;
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
}

.rating-stars button {
  display: inline-flex;
  padding: 1px;
  color: #94a3b8;
  opacity: 0.35;
  transition: transform 0.15s, opacity 0.15s, color 0.15s;
}

.rating-stars button:hover,
.rating-stars button.is-active {
  color: #fbbf24;
  opacity: 1;
}

.rating-stars button:hover {
  transform: translateY(-1px);
}

.rating-stars .icon {
  width: 18px;
  height: 18px;
}

html[data-theme="light"] .comment-item {
  background: #fff;
}

html[data-theme="light"] .review-summary {
  background:
    radial-gradient(380px 200px at 0% 50%, rgba(37, 99, 235, 0.07), transparent 72%),
    #fff;
}

@media (max-width: 860px) {
  .review-summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .review-summary > .btn {
    width: 100%;
    margin-left: 0;
  }

  .comments-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .comments-toolbar > span {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .review-score {
    min-width: 88px;
    padding-right: 12px;
  }

  .review-score b {
    font-size: 38px;
  }

  .review-summary {
    padding: 16px;
  }

  .comment-item {
    padding: 14px;
  }

  .comment-avatar {
    width: 34px;
    height: 34px;
  }

  .comment-device {
    display: none;
  }
}

.vote-panel {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px 12px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.vote-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #dbe7f7;
  font-size: 12px;
  font-weight: 600;
}

.vote-label .icon {
  color: #7dd3fc;
}

.vote-actions {
  display: flex;
  gap: 6px;
}

.vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 11.5px;
  transition: 0.2s;
}

.vote-btn:hover {
  border-color: rgba(125, 211, 252, 0.55);
  background: rgba(96, 165, 250, 0.14);
}

.vote-btn b {
  color: #b6c4da;
  font-family: var(--font-mono);
  font-size: 10px;
}

.vote-btn.is-active[data-vote="like"] {
  border-color: transparent;
  background: var(--accent-gradient);
  color: #fff;
}

.vote-btn.is-active[data-vote="like"] b {
  color: #fff;
}

.vote-btn.is-active[data-vote="dislike"] {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.14);
  color: #fca5a5;
}

.vote-hint {
  margin-left: auto;
  color: #94a3b8;
  font-size: 10px;
}

.comments-section {
  margin-top: 8px;
  padding: 30px 0 82px;
  border-top: 1px solid var(--line);
}

.comments-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.comments-head h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.comments-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.comments-rule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 10.5px;
}

.comments-rule .icon {
  color: var(--accent);
}

.comments-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  background: var(--panel);
}

.comments-gate b {
  font-size: 13.5px;
}

.comments-gate p {
  margin-top: 3px;
  color: var(--text-3);
  font-size: 11.5px;
}

.comment-form {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}

.comment-form-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
  color: var(--text-3);
  font-size: 11px;
}

.comment-form-head b {
  color: var(--text);
}

.comment-length b {
  color: var(--text-2);
  font-family: var(--font-mono);
}

.comment-form textarea {
  width: 100%;
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 12.5px;
  line-height: 1.75;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.comment-form textarea:focus {
  border-color: var(--line-accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.comment-form textarea::placeholder {
  color: var(--text-3);
}

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

.comment-form-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-3);
  font-size: 10px;
}

.comment-notice {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
  font-size: 12px;
}

html[data-theme="light"] .comment-notice {
  color: #15803d;
}

.comment-list {
  margin-top: 22px;
}

.comment-item {
  display: flex;
  gap: 12px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
}

.comment-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 900;
}

.comment-body {
  min-width: 0;
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-3);
  font-size: 10.5px;
}

.comment-meta b {
  color: var(--text-2);
  font-size: 12px;
}

.comment-text {
  margin-top: 6px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.8;
  white-space: pre-wrap;
  word-break: break-word;
}

.comments-empty {
  padding: 34px 20px;
  border: 1px dashed var(--line);
  border-radius: 13px;
  color: var(--text-3);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 860px) {
  .comments-section {
    padding-bottom: 40px;
  }

  .comments-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .comments-rule {
    width: 100%;
  }

  .comments-gate {
    align-items: flex-start;
    flex-direction: column;
  }

  .comment-form-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .vote-hint {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .comments-section {
    padding-top: 24px;
  }

  .comments-head h2 {
    font-size: 21px;
  }

  .comment-form {
    padding: 14px;
  }

  .comment-form-foot .btn {
    width: 100%;
  }

  .vote-panel {
    gap: 8px;
  }

  .vote-actions {
    width: 100%;
  }

  .vote-btn {
    flex: 1;
    justify-content: center;
  }
}

.ai-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  width: 76px;
  height: 76px;
  padding: 0;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 26px;
  background: linear-gradient(145deg, #102a4d, #0a1424);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.28), 0 0 0 6px rgba(37, 99, 235, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
  animation: aiFloat 4.8s ease-in-out infinite;
}

.ai-launcher:hover {
  transform: translateY(-4px) rotate(-2deg);
  box-shadow: 0 22px 54px rgba(15, 23, 42, 0.34), 0 0 0 8px rgba(37, 99, 235, 0.09);
}

@keyframes aiFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.ai-launcher img {
  width: 58px;
  height: 58px;
  margin: auto;
}

.ai-launcher-halo {
  position: absolute;
  inset: 4px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 40%, rgba(34, 211, 238, 0.28), transparent 68%);
  pointer-events: none;
}

.ai-launcher-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ai-launcher-tip {
  position: absolute;
  right: 88px;
  top: 50%;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text-2);
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(6px);
  transition: 0.2s;
  box-shadow: var(--shadow-soft);
}

.ai-launcher:hover .ai-launcher-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%);
}

.ai-panel {
  position: fixed;
  right: 22px;
  bottom: 112px;
  z-index: 125;
  display: flex;
  flex-direction: column;
  width: 366px;
  height: min(520px, calc(100vh - 150px));
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--panel);
  box-shadow: 0 32px 80px rgba(15, 23, 42, 0.26);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.24s, visibility 0.24s, transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ai-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(260px 160px at 0% 0%, rgba(34, 211, 238, 0.12), transparent 70%),
    var(--panel);
}

.ai-head-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--line-accent);
  border-radius: 14px;
  background: #0a1424;
}

.ai-head-copy {
  min-width: 0;
  flex: 1;
}

.ai-head-copy b {
  display: block;
  font-size: 14px;
}

.ai-head-copy b span {
  margin-left: 4px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.ai-head-copy small {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  color: var(--text-3);
  font-size: 10px;
}

.ai-online {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}

.ai-icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-3);
  transition: 0.2s;
}

.ai-icon-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.ai-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 16px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.ai-msg {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 92%;
}

.ai-msg-bot {
  align-self: flex-start;
}

.ai-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-msg-avatar {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  margin-top: 2px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
}

.ai-bubble {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  background: var(--panel-2);
  color: var(--text-2);
  font-size: 12px;
  line-height: 1.7;
  word-break: break-word;
}

.ai-msg-user .ai-bubble {
  border-color: transparent;
  border-radius: 14px 4px 14px 14px;
  background: var(--accent-gradient);
  color: #fff;
}

.ai-bubble a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ai-msg-user .ai-bubble a {
  color: #fff;
}

.ai-bubble b {
  color: var(--text);
}

.ai-msg-user .ai-bubble b {
  color: #fff;
}

.ai-bubble ul {
  margin: 6px 0 0;
  padding-left: 2px;
}

.ai-bubble li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
  list-style: none;
}

.ai-bubble li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.ai-game-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.ai-game {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  transition: 0.2s;
}

.ai-game:hover {
  border-color: var(--line-accent);
  background: var(--accent-soft);
}

.ai-game img {
  width: 32px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 5px;
  object-fit: cover;
}

.ai-game span {
  min-width: 0;
  flex: 1;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.ai-game small {
  color: var(--text-3);
  font-size: 9px;
}

.ai-game em {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-style: normal;
}

.ai-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 4px 2px;
}

.ai-typing i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-3);
  animation: aiTyping 1s infinite;
}

.ai-typing i:nth-child(2) { animation-delay: 0.15s; }
.ai-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.35; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 12px 10px;
}

.ai-quick button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text-2);
  font-size: 10px;
  transition: 0.2s;
}

.ai-quick button:hover {
  border-color: var(--line-accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.ai-form {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 12px;
  padding: 5px 5px 5px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.ai-form:focus-within {
  border-color: var(--line-accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.ai-form input {
  min-width: 0;
  flex: 1;
  border: 0;
  background: none;
  color: var(--text);
  font-size: 12px;
  outline: none;
}

.ai-form input::placeholder {
  color: var(--text-3);
}

.ai-send {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--accent-gradient);
  color: #fff;
}

.ai-foot {
  padding: 7px 12px 11px;
  color: var(--text-3);
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

html[data-theme="light"] .ai-launcher {
  border-color: rgba(37, 99, 235, 0.28);
  background: linear-gradient(145deg, #eaf6ff, #ffffff);
  box-shadow: 0 16px 44px rgba(37, 99, 235, 0.18), 0 0 0 6px rgba(37, 99, 235, 0.05);
}

html[data-theme="light"] .ai-head-avatar {
  background: #eef7ff;
}

html[data-theme="light"] .ai-bubble {
  background: #f4f9ff;
}

html[data-theme="light"] .ai-msg-user .ai-bubble {
  border-color: transparent;
  background: var(--accent-gradient);
  color: #fff;
}

html[data-theme="light"] .ai-msg-user .ai-bubble b {
  color: #fff;
}

html[data-theme="light"] .ai-bubble b {
  color: var(--text);
}

@media (max-width: 860px) {
  .ai-launcher {
    right: 14px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    width: 66px;
    height: 66px;
    border-radius: 22px;
  }

  .ai-launcher img {
    width: 52px;
    height: 52px;
  }

  .ai-launcher-badge {
    width: 23px;
    height: 23px;
    font-size: 8px;
  }

  .ai-launcher-tip {
    display: none;
  }

  .ai-panel {
    right: 12px;
    bottom: calc(168px + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    max-width: 390px;
    height: min(62vh, 500px);
    max-height: calc(100vh - 190px);
    border-radius: 18px;
  }

  body[data-page="game-detail"] .ai-panel {
    bottom: calc(168px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 620px) {
  .ai-panel {
    bottom: calc(164px + env(safe-area-inset-bottom));
    height: min(64vh, 480px);
  }

  .ai-head {
    padding: 10px 12px;
  }

  .ai-messages {
    padding: 13px 12px;
  }

  .ai-foot {
    font-size: 8.5px;
  }
}

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 66vh;
  padding: 60px 0;
  text-align: center;
}

.error-code {
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(100px, 20vw, 220px);
  font-weight: 900;
  letter-spacing: -0.08em;
  line-height: 0.9;
  -webkit-text-stroke: 1px rgba(var(--accent-rgb), 0.35);
  background: linear-gradient(180deg, rgba(var(--accent-rgb), 0.12), transparent 75%);
  -webkit-background-clip: text;
  background-clip: text;
}

.error-page h1 {
  margin: 6px 0 10px;
  font-size: 26px;
}

.error-page p {
  max-width: 440px;
  margin: 0 auto 24px;
  color: var(--text-3);
  font-size: 13px;
}

.error-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
}

/* ---------------- Reveal ---------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

.js .reveal-delay-1 { transition-delay: 0.06s; }
.js .reveal-delay-2 { transition-delay: 0.12s; }
.js .reveal-delay-3 { transition-delay: 0.18s; }
.js .reveal-delay-4 { transition-delay: 0.24s; }

/* ---------------- Typography & icon refinement ---------------- */
body {
  font-size: 16px;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.topbar,
.topbar-links button {
  font-size: 12.5px;
}

.nav-link {
  font-size: 14.5px;
}

.header-feedback,
.auth-trigger {
  height: 42px;
  font-size: 13px;
}

.search-trigger {
  height: 42px;
  font-size: 13.5px;
}

.search-trigger kbd {
  font-size: 10.5px;
}

.btn {
  font-size: 15px;
}

.btn-sm {
  height: 38px;
  font-size: 13.5px;
}

.btn-lg {
  height: 52px;
  font-size: 15.5px;
}

.btn-icon,
.theme-toggle {
  width: 42px;
  height: 42px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
}

.section-sub {
  font-size: 14px;
}

.section-title small {
  font-size: 11.5px;
}

.section-kicker {
  font-size: 12px;
}

.hero-sub {
  font-size: 15.5px;
}

.hero-tag {
  font-size: 11.5px;
}

.stat-label {
  font-size: 12.5px;
}

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

.dock-item {
  font-size: 11px;
}

.dock-item .icon {
  width: 22px;
  height: 22px;
}

.card-title {
  font-size: 15px;
}

.card-meta {
  font-size: 12.5px;
}

.card-body {
  padding-top: 11px;
}

.pill {
  font-size: 12px;
}

.search-result .sr-title {
  font-size: 14.5px;
}

.search-result .sr-meta {
  font-size: 12.5px;
}

.search-result .sr-type {
  font-size: 12px;
}

.rank-name,
.gr-title {
  font-size: 13.5px;
}

.rank-meta,
.gr-meta {
  font-size: 11.5px;
}

.news-card-body h3 {
  font-size: 16px;
}

.news-card-body p {
  font-size: 13px;
  line-height: 1.7;
}

.news-meta,
.article-meta {
  font-size: 12px;
}

.article-lead {
  font-size: 15px;
  line-height: 1.8;
}

.article-body {
  font-size: 15.5px;
  line-height: 1.95;
}

.article-body h2 {
  font-size: 22px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.85;
}

.footer-col h3 {
  font-size: 14px;
}

.footer-col a,
.footer-col span,
.footer-col button {
  font-size: 13px;
}

.footer-bottom {
  font-size: 12px;
}

.detail-en {
  font-size: 11.5px;
}

.detail-sub {
  font-size: 15.5px;
  line-height: 1.75;
}

.detail-meta {
  font-size: 13px;
}

.facts-head h2 {
  font-size: 17px;
}

.facts-kicker {
  font-size: 10px;
}

.facts-list dt {
  font-size: 12px;
}

.facts-list dd {
  font-size: 13px;
}

.facts-foot {
  font-size: 11.5px;
}

.prose {
  font-size: 15.5px;
  line-height: 1.95;
}

.block-head h2 {
  font-size: 21px;
}

.block-head .hint {
  font-size: 12px;
}

.gallery-caption b {
  font-size: 13px;
}

.gallery-caption span {
  font-size: 11px;
}

.gallery-count b {
  font-size: 20px;
}

.gallery-hint,
.gallery-note {
  font-size: 12px;
}

.gallery-thumb-index {
  font-size: 9px;
}

.notice-badge {
  font-size: 11px;
}

.notice-title {
  font-size: 14px;
}

.notice-hint {
  font-size: 11px;
}

.notice-body {
  font-size: 13.5px;
  line-height: 1.9;
}

.howto-item p {
  font-size: 13.5px;
}

.req-table {
  font-size: 13px;
}

.side-card h3 {
  font-size: 14px;
}

.side-card p,
.side-card .side-list a {
  font-size: 12.5px;
}

.review-score span,
.review-summary-label,
.review-good,
.review-rating > span,
.review-rating > b {
  font-size: 12px;
}

.comment-meta {
  font-size: 11.5px;
}

.comment-meta b {
  font-size: 13px;
}

.comment-text {
  font-size: 14px;
  line-height: 1.85;
}

.modal-head h2 {
  font-size: 20px;
}

.modal-head p,
.modal-option .mo-sub,
.modal-note {
  font-size: 12px;
}

.modal-option .mo-title {
  font-size: 14px;
}

.ai-bubble {
  font-size: 13px;
}

.ai-quick button {
  font-size: 11px;
}

.ai-form input {
  font-size: 13px;
}

.ai-game span {
  font-size: 12px;
}

.ai-game small,
.ai-game em {
  font-size: 10.5px;
}

.ai-foot {
  font-size: 10.5px;
}

.card-platform .icon {
  width: 12px;
  height: 12px;
}

.side-card .side-list .icon {
  width: 14px;
  height: 14px;
}

.review-star .icon {
  width: 16px;
  height: 16px;
}

.stat-value,
.rank-score,
.gr-score,
.gallery-count,
.review-score,
.detail-meta b,
.site-pv b,
.footer-status b {
  font-variant-numeric: tabular-nums;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1240px) {
  .wrap {
    width: min(100% - 40px, var(--max-w));
  }

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

  .game-grid.cols-5 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

  .hero-main,
  .hero-side {
    height: 500px;
  }

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

  .browser-mock {
    width: 300px;
    left: 0;
  }

  .rank-panel {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
  }

  .detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 28px;
  }
}

@media (max-width: 1200px) {
  .detail-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }

  .detail-facts {
    display: none;
  }
}

@media (max-width: 1080px) {
  .main-nav {
    gap: 0;
  }

  .nav-link {
    padding: 0 10px;
    font-size: 13px;
  }

  .search-trigger {
    width: 160px;
  }

  .search-trigger kbd {
    display: none;
  }

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

  .hero-main {
    height: 470px;
  }

  .hero-side {
    display: none;
  }

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

  .path-card {
    grid-template-columns: minmax(0, 1fr) 300px;
    min-height: 268px;
  }

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

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

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

  .rank-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .rank-aside {
    min-height: 220px;
  }

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

  .news-side-list {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
  }

  .news-row {
    flex-direction: column;
  }

  .news-row img {
    width: 100%;
    height: 120px;
  }

  .faq-teaser {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .footer-top .footer-col:last-child {
    display: none;
  }

  .catalog {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
  }

  .detail-grid {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 26px;
  }

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

  .sticky-side {
    position: static;
  }

  .detail-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .detail-side .play-card {
    grid-row: span 2;
  }

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

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

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

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

  .article-side .sticky-side {
    position: static;
  }

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

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

  .podium-card:first-child {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 62px;
  }

  .topbar {
    display: none;
  }

  .wrap {
    width: min(100% - 32px, var(--max-w));
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .search-trigger {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 11px;
  }

  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding-top: 14px;
  }

  .hero-main {
    height: 440px;
    border-radius: 20px;
  }

  .hero-content {
    width: 100%;
    padding: 30px;
    pointer-events: auto;
  }

  .hero-slide-link {
    display: none;
  }

  .hero-title {
    font-size: clamp(30px, 6vw, 44px);
  }

  .hero-sub {
    font-size: 13.5px;
  }

  .hero-dots {
    left: 30px;
    bottom: 18px;
  }

  .hero-controls {
    right: 18px;
    bottom: 16px;
  }

  .hero-index {
    display: none;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section {
    margin-top: 48px;
  }

  .section-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .section-head .section-action {
    margin-left: 0;
    width: 100%;
  }

  .section-head .tabs {
    margin-left: 0;
    max-width: 100%;
    overflow-x: auto;
  }

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

  .path-copy {
    padding: 22px;
  }

  .path-copy h3 {
    font-size: 21px;
  }

  .path-copy p {
    font-size: 12px;
  }

  .browser-mock {
    width: 280px;
    top: 54px;
  }

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

  .game-grid,
  .game-grid.cols-5,
  .game-grid.cols-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .news-row {
    flex-direction: row;
  }

  .news-row img {
    width: 116px;
    height: 78px;
  }

  .cta-banner {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .cta-side {
    justify-self: start;
  }

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

  .footer-top .footer-brand {
    grid-column: span 2;
  }

  .footer-top .footer-col:last-child {
    display: block;
  }

  .catalog {
    grid-template-columns: 1fr;
    padding-top: 22px;
  }

  .filter-panel {
    display: none;
  }

  .mobile-filter-btn {
    display: inline-flex;
  }

  .catalog-toolbar {
    flex-wrap: wrap;
  }

  .catalog-search {
    flex: 1 1 100%;
  }

  .detail-grid {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }

  .detail-cover {
    border-radius: 14px;
  }

  .detail-info h1 {
    font-size: clamp(28px, 5vw, 42px);
  }

  .detail-sub {
    font-size: 12.5px;
  }

  .detail-layout {
    padding-top: 28px;
  }

  .detail-actions .btn {
    display: none;
  }

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

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

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

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

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

  .faq-side {
    position: static;
  }

  .faq-side .sticky-side {
    position: static;
  }

  .faq-cats {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .faq-cat {
    padding: 7px 10px;
  }

  .faq-cat .count {
    margin-left: 2px;
  }

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

  .podium-card:first-child {
    grid-column: auto;
  }

  .podium-card {
    min-height: 200px;
  }

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

  .game-rank-table {
    grid-template-columns: 1fr;
  }

  .platform-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .platform-head-row {
    display: none;
  }

  .platform-row {
    display: grid;
    grid-template-columns: 46px minmax(150px, 1.3fr) 64px 80px 70px;
    align-items: center;
    min-width: 640px;
    border-radius: 12px;
    border: 1px solid var(--line);
    margin-bottom: 6px;
  }

  .platform-row td {
    border: 0;
    padding: 11px 8px;
  }

  .platform-row td:nth-child(4),
  .platform-row td:nth-child(5) {
    display: none;
  }

  .mobile-dock {
    display: flex;
  }

  body {
    padding-bottom: 84px;
  }

  .site-footer {
    margin-top: 52px;
  }

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

  .detail-layout {
    padding-bottom: 40px;
  }

  .mobile-playbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(80px + env(safe-area-inset-bottom));
    z-index: 85;
    display: flex;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 16px;
    background: rgba(12, 16, 10, 0.92);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .mobile-playbar .btn {
    flex: 1;
    height: 42px;
    font-size: 12.5px;
  }

  body[data-page="game-detail"] {
    padding-bottom: 92px;
  }

  body[data-page="game-detail"] .mobile-dock {
    display: none;
  }

  body[data-page="game-detail"] .mobile-playbar {
    bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 95;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .hero-main {
    height: 470px;
    border-radius: 18px;
  }

  .hero-content {
    padding: 24px 22px;
  }

  .hero-kicker {
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-sub {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 16px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .hero-meta {
    gap: 6px 10px;
    margin-bottom: 18px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn {
    height: 42px;
    padding: 0 16px;
    font-size: 12.5px;
  }

  .hero-controls {
    display: none;
  }

  .hero-dots {
    left: 22px;
    bottom: 14px;
  }

  .hero-dot {
    width: 14px;
  }

  .hero-dot.is-active {
    width: 26px;
  }

  .stat {
    padding: 13px 14px;
    gap: 10px;
  }

  .stat-icon {
    width: 32px;
    height: 32px;
  }

  .stat-value {
    font-size: 19px;
  }

  .stat-label {
    font-size: 10px;
  }

  .section {
    margin-top: 42px;
  }

  .section-title {
    font-size: 24px;
  }

  .section-sub {
    font-size: 12px;
  }

  .game-grid,
  .game-grid.cols-5,
  .game-grid.cols-4,
  .game-grid.cols-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }

  .card-cover {
    border-radius: 13px;
  }

  .card-hover {
    opacity: 1;
    transform: none;
  }

  .card-platform {
    display: none;
  }

  .card-action {
    height: 29px;
    padding: 0 8px;
    font-size: 10px;
  }

  .card-action.is-primary {
    flex: 1;
  }

  .card-title {
    font-size: 13px;
  }

  .card-meta {
    font-size: 10px;
  }

  .card-meta .sep,
  .card-meta span:last-child {
    display: none;
  }

  .play-paths {
    gap: 10px;
  }

  .path-card {
    display: block;
    min-height: 0;
  }

  .path-copy {
    padding: 22px 22px 12px;
  }

  .path-visual {
    height: 240px;
  }

  .browser-mock {
    width: 260px;
    left: 50%;
    top: 20px;
    transform: translateX(-50%) rotate(-2deg);
  }

  .phone-mock {
    top: 18px;
    width: 128px;
  }

  .qr-float {
    right: 18px;
    bottom: 18px;
  }

  .genre-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .genre-card {
    min-height: 72px;
    padding: 12px;
    gap: 9px;
  }

  .genre-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .genre-name {
    font-size: 12.5px;
  }

  .genre-name em {
    display: none;
  }

  .genre-count {
    font-size: 9.5px;
  }

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

  .rank-main {
    padding: 16px;
  }

  .rank-panel-head {
    flex-wrap: wrap;
  }

  .rank-panel-head .tabs {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

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

  .rank-aside {
    padding: 16px;
  }

  .news-feature {
    min-height: 320px;
  }

  .news-feature-content {
    padding: 20px;
  }

  .news-row {
    padding: 9px;
  }

  .news-row img {
    width: 96px;
    height: 68px;
  }

  .faq-teaser {
    padding: 22px;
    border-radius: 18px;
  }

  .faq-teaser-copy h2 {
    font-size: 27px;
  }

  .cta-banner {
    margin-top: 42px;
    padding: 24px;
    border-radius: 20px;
  }

  .cta-copy h2 {
    font-size: 30px;
  }

  .cta-side {
    width: 100%;
  }

  .cta-side img {
    width: 76px;
    height: 76px;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding-top: 34px;
  }

  .footer-top .footer-brand {
    grid-column: span 2;
  }

  .footer-top .footer-col:last-child {
    display: block;
  }

  .footer-col {
    display: block;
  }

  .footer-col:first-of-type {
    display: block;
  }

  .footer-bottom {
    font-size: 10px;
  }

  .catalog {
    padding-bottom: 48px;
  }

  .catalog-toolbar {
    gap: 7px;
  }

  .sort-select {
    height: 40px;
    font-size: 11.5px;
  }

  .mobile-filter-btn {
    height: 40px;
  }

  .results-line {
    flex-wrap: wrap;
  }

  .page-hero-inner {
    padding: 24px 0 30px;
  }

  .page-title {
    font-size: 34px;
  }

  .page-desc {
    font-size: 12.5px;
  }

  .detail-hero-inner {
    padding-top: 18px;
    padding-bottom: 26px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .detail-cover {
    width: 148px;
    aspect-ratio: 3 / 4;
    margin-top: 10px;
  }

  .detail-info h1 {
    font-size: 34px;
  }

  .detail-info .eyebrow {
    white-space: nowrap;
  }

  .detail-info .eyebrow-en {
    display: none;
  }

  .detail-sub {
    margin: 8px 0;
  }

  .detail-meta {
    gap: 4px 12px;
    margin-bottom: 14px;
  }

  .detail-actions {
    gap: 7px;
  }

  .detail-actions .btn {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font-size: 12px;
  }

  .detail-section {
    margin-top: 28px;
  }

  .gallery-toolbar {
    gap: 8px;
  }

  .gallery-hint {
    margin-left: auto;
    font-size: 10px;
  }

  .gallery-arrow {
    width: 34px;
    height: 34px;
  }

  .gallery-thumb-index {
    top: 4px;
    left: 4px;
    min-width: 18px;
    height: 15px;
    font-size: 7px;
  }

  .gallery-caption {
    right: 12px;
    bottom: 10px;
    left: 12px;
  }

  .gallery-caption b {
    font-size: 11px;
  }

  .gallery-note {
    font-size: 10px;
  }

  .req-table {
    font-size: 11px;
  }

  .req-table th,
  .req-table td {
    padding: 8px 9px;
  }

  .req-table tbody th {
    width: 72px;
  }

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

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

  .detail-side .play-card {
    grid-row: auto;
  }

  .article-page {
    padding-top: 20px;
  }

  .article-head h1 {
    font-size: 27px;
  }

  .article-body {
    font-size: 14px;
    line-height: 1.95;
  }

  .article-body h2 {
    font-size: 19px;
  }

  .article-cover img {
    aspect-ratio: 16 / 10;
  }

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

  .faq-page {
    padding-top: 22px;
  }

  .faq-item summary {
    padding: 14px 42px 14px 14px;
  }

  .faq-q {
    font-size: 13px;
  }

  .faq-answer {
    padding: 0 14px 15px 39px;
    font-size: 12.5px;
  }

  .faq-cta {
    flex-wrap: wrap;
  }

  .faq-cta .btn {
    width: 100%;
    margin-left: 0;
  }

  .rank-page {
    padding-top: 24px;
  }

  .podium-card {
    min-height: 180px;
    padding: 18px;
  }

  .rank-method {
    padding: 16px;
  }

  .search-page-form input {
    height: 52px;
    padding-right: 92px;
    font-size: 13px;
  }

  .search-page-form button {
    top: 7px;
    height: 38px;
    padding: 0 14px;
    font-size: 12px;
  }

  .modal {
    border-radius: 16px;
  }

  .toast {
    bottom: 90px;
  }

  .page-btn {
    min-width: 34px;
    height: 34px;
    font-size: 11px;
  }
}

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

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

/* ============================================================
   Blue gradient accent 鈥?shared by both themes
   ============================================================ */
:root {
  --accent-gradient: linear-gradient(135deg, #22d3ee 0%, #3b82f6 55%, #1d4ed8 100%);
}

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

.skip-link {
  background: var(--accent-gradient);
  color: #fff;
}

.btn-primary,
.btn-primary:hover {
  background: var(--accent-gradient);
  color: #fff;
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 14px 34px rgba(var(--accent-rgb), 0.32);
}

.hero-arrow:hover {
  border-color: transparent;
  background: var(--accent-gradient);
  color: #fff;
}

.tab.is-active,
.tab[aria-selected="true"] {
  background: var(--accent-gradient);
  color: #fff;
}

.browser-play {
  background: var(--accent-gradient);
  color: #fff;
}

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

.card-action:hover,
.card-action.is-primary {
  border-color: transparent;
  background: var(--accent-gradient);
  color: #fff;
}

.card-action.is-primary:hover {
  background: var(--accent-gradient);
  filter: brightness(1.08);
}

.dock-item.dock-play {
  background: var(--accent-gradient);
  color: #fff;
}

.page-btn.is-active {
  border-color: transparent;
  background: var(--accent-gradient);
  color: #fff;
}

.news-cat,
.news-cat.cat-news {
  background: var(--accent-gradient);
  color: #fff;
}

.cta-banner {
  border-color: rgba(96, 165, 250, 0.3);
  background:
    radial-gradient(600px 300px at 90% 10%, rgba(59, 130, 246, 0.26), transparent 62%),
    linear-gradient(120deg, #0b1e3a 0%, #091426 46%, #070d19 100%);
}

.cta-copy h2,
.cta-copy p {
  color: #f2f7ff;
}

.cta-banner .eyebrow {
  color: #7dd3fc;
}

.cta-copy p {
  color: #b6c4da;
}

.cta-banner .btn-ghost,
.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.cta-banner .btn-ghost:hover,
.hero .btn-ghost:hover {
  border-color: rgba(165, 232, 255, 0.6);
  background: rgba(96, 165, 250, 0.18);
  color: #fff;
}

@media (max-width: 1240px) {
  .header-feedback {
    display: none;
  }
}

@media (max-width: 1080px) {
  .auth-trigger {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .auth-label {
    display: none;
  }

  .auth-avatar {
    width: 28px;
    height: 28px;
  }

  .header-cta {
    display: none;
  }
}

@media (max-width: 620px) {
  .auth-modal,
  .feedback-modal {
    width: calc(100vw - 24px);
  }

  .form-field textarea {
    min-height: 96px;
  }
}

html[data-theme="light"] {
  --bg: #f5f8fd;
  --bg-2: #ffffff;
  --bg-3: #edf3fb;
  --panel: #ffffff;
  --panel-2: #f6f9fe;
  --panel-3: #eaf1fa;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.16);
  --line-accent: rgba(37, 99, 235, 0.24);
  --text: #0d1929;
  --text-2: #37475e;
  --text-3: #5b6c83;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-3: #60a5fa;
  --accent-rgb: 37, 99, 235;
  --accent-soft: rgba(37, 99, 235, 0.08);
  --accent-glow: rgba(37, 99, 235, 0.18);
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 55%, #1d4ed8 100%);
  --header-bg: rgba(255, 255, 255, 0.86);
  --header-bg-scrolled: rgba(255, 255, 255, 0.97);
  --glass: rgba(255, 255, 255, 0.9);
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 36px rgba(15, 23, 42, 0.08);
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="light"] body {
  background:
    radial-gradient(1100px 700px at 82% -8%, rgba(59, 130, 246, 0.11), transparent 62%),
    radial-gradient(900px 520px at -8% 42%, rgba(34, 211, 238, 0.07), transparent 62%),
    var(--bg);
  color: var(--text);
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

html[data-theme="light"] ::-webkit-scrollbar-track {
  background: #edf3fb;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: #b7c7dc;
  border-color: #edf3fb;
}

html[data-theme="light"] .topbar {
  border-color: var(--line);
  background: #ffffff;
  color: var(--text-2);
}

html[data-theme="light"] .topbar-links button {
  color: var(--text-2);
}

html[data-theme="light"] .site-header {
  background: var(--header-bg);
  border-color: var(--line);
}

html[data-theme="light"] .site-header.is-scrolled {
  background: var(--header-bg-scrolled);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .nav-link:hover {
  background: rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .search-trigger {
  border-color: var(--line);
  background: #f3f7fd;
  color: var(--text-3);
}

html[data-theme="light"] .search-trigger:hover {
  border-color: var(--line-strong);
  background: #eaf1fa;
  color: var(--text-2);
}

html[data-theme="light"] .search-trigger kbd {
  border-color: var(--line);
  color: var(--text-3);
}

html[data-theme="light"] .theme-toggle {
  border-color: var(--line);
  background: #f3f7fd;
  color: var(--text-2);
}

html[data-theme="light"] .hero-side {
  background:
    radial-gradient(400px 220px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), transparent 40%),
    var(--panel);
}

html[data-theme="light"] .hero-meta {
  color: #dbe7f7;
}

html[data-theme="light"] .hero-tag {
  color: #e2e8f0;
}

html[data-theme="light"] .hero .hero-sub {
  color: #dbe7f7;
}

html[data-theme="light"] .hero .hero-en {
  color: rgba(255, 255, 255, 0.58);
}

html[data-theme="light"] .top-item:hover,
html[data-theme="light"] .game-row:hover,
html[data-theme="light"] .rank-row:hover,
html[data-theme="light"] .search-result:hover,
html[data-theme="light"] .search-result.is-focus {
  background: rgba(37, 99, 235, 0.055);
}

html[data-theme="light"] .top-play {
  border-color: var(--line);
  color: var(--text-3);
}

html[data-theme="light"] .filter-link:hover {
  background: rgba(37, 99, 235, 0.055);
}

html[data-theme="light"] .filter-chip {
  background: #f6f9fe;
}

html[data-theme="light"] .faq-mini details {
  background: #f8fbff;
}

html[data-theme="light"] .faq-mini details[open] {
  background: rgba(37, 99, 235, 0.035);
}

html[data-theme="light"] .site-footer {
  border-color: var(--line);
  background: #ffffff;
}

html[data-theme="light"] .footer-status {
  border-color: var(--line);
  color: var(--text-2);
}

html[data-theme="light"] .mobile-dock,
html[data-theme="light"] .mobile-playbar {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .dock-play {
  border-color: #fff;
}

html[data-theme="light"] .page-hero {
  background:
    radial-gradient(700px 320px at 78% -20%, rgba(59, 130, 246, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.54), transparent);
}

html[data-theme="light"] .page-hero::before {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
}

html[data-theme="light"] .filter-tip,
html[data-theme="light"] .play-card,
html[data-theme="light"] .faq-cta,
html[data-theme="light"] .cta-side {
  background: var(--panel);
}

html[data-theme="light"] .play-card {
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    var(--panel);
}

html[data-theme="light"] .play-option {
  background: #f7faff;
}

html[data-theme="light"] .play-option:hover {
  background: rgba(37, 99, 235, 0.045);
}

html[data-theme="light"] .req-table thead th {
  background: #f4f8fe;
}

html[data-theme="light"] .req-table tbody th {
  background: rgba(15, 23, 42, 0.025);
}

html[data-theme="light"] .prose {
  color: #40516a;
}

html[data-theme="light"] .article-body {
  color: #334155;
}

html[data-theme="light"] .article-body blockquote {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.06), transparent);
}

html[data-theme="light"] .news-feature p,
html[data-theme="light"] .news-feature .news-meta {
  color: #dbe7f7;
}

html[data-theme="light"] .news-feature h3,
html[data-theme="light"] .news-feature h3 a {
  color: #fff;
}

html[data-theme="light"] .podium-card {
  background: var(--panel);
  background:
    radial-gradient(300px 200px at 100% 0%, rgba(37, 99, 235, 0.1), transparent 70%),
    var(--panel);
}

html[data-theme="light"] .podium-card.is-first {
  background:
    radial-gradient(400px 260px at 100% 0%, rgba(37, 99, 235, 0.13), transparent 70%),
    linear-gradient(160deg, #eef6ff, var(--panel));
}

html[data-theme="light"] .podium-card:nth-child(2) .podium-rank b {
  color: #94a3b8;
}

html[data-theme="light"] .article-body h2 {
  color: var(--text);
}

html[data-theme="light"] .article-body li {
  color: var(--text-2);
}

html[data-theme="light"] .tag-cloud a {
  background: #f8fbff;
}

html[data-theme="light"] .empty-state {
  background: rgba(15, 23, 42, 0.015);
}

html[data-theme="light"] .filter-drawer-panel,
html[data-theme="light"] .mobile-drawer {
  background: #ffffff;
}

html[data-theme="light"] .drawer-nav a:hover,
html[data-theme="light"] .drawer-nav a.is-active {
  background: var(--accent-soft);
}

html[data-theme="light"] .search-panel {
  background: #ffffff;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.22);
}

html[data-theme="light"] .search-result img {
  background: var(--panel-2);
}

html[data-theme="light"] .search-panel-foot {
  color: var(--text-3);
}

html[data-theme="light"] .modal {
  background: #ffffff;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.22);
}

html[data-theme="light"] .modal-option {
  background: #f8fbff;
}

html[data-theme="light"] .modal-option:hover {
  background: var(--accent-soft);
}

html[data-theme="light"] .toast {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .detail-hero .detail-info h1 {
  color: #fff;
}

html[data-theme="light"] .detail-hero .detail-meta,
html[data-theme="light"] .detail-hero .detail-meta span {
  color: #cbd5e1;
}

html[data-theme="light"] .detail-hero .detail-meta b {
  color: #fff;
}

html[data-theme="light"] .detail-hero .detail-meta .icon {
  color: #94a3b8;
}

html[data-theme="light"] .detail-hero .detail-badges .pill {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

html[data-theme="light"] .detail-hero .detail-actions .btn-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

html[data-theme="light"] .detail-hero .breadcrumbs {
  color: #94a3b8;
}

html[data-theme="light"] .detail-hero .breadcrumbs .current {
  color: #e2e8f0;
}

html[data-theme="light"] .detail-hero .eyebrow {
  color: #7dd3fc;
}

html[data-theme="light"] .rank-aside {
  background:
    radial-gradient(300px 220px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 70%),
    rgba(15, 23, 42, 0.01);
}


/* Final review-card overrides (kept after legacy comment rules) */
.comment-item {
  margin-bottom: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.comment-avatar {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

.comment-meta {
  gap: 7px;
  margin-top: 3px;
  font-size: 10px;
}

.comment-text {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-wrap;
  word-break: break-word;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.comment-text.is-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}

html[data-theme="light"] .comment-item {
  background: #fff;
}

@media (max-width: 620px) {
  .comment-item {
    padding: 14px;
  }

  .comment-avatar {
    width: 34px;
    height: 34px;
  }
}

/* Final mobile readability pass */
@media (max-width: 620px) {
  body {
    font-size: 15.5px;
  }

  .card-title {
    font-size: 14.5px;
  }

  .card-meta {
    font-size: 11.5px;
  }

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

  .article-body {
    font-size: 15px;
    line-height: 1.95;
  }

  .detail-sub {
    font-size: 14.5px;
  }

  .detail-meta {
    font-size: 12.5px;
  }

  .notice-body {
    font-size: 13px;
  }

  .comment-meta {
    font-size: 11.5px;
  }

  .comment-meta b {
    font-size: 13px;
  }

  .comment-text {
    font-size: 14px;
    line-height: 1.85;
  }

  .footer-col a,
  .footer-col span,
  .footer-col button {
    font-size: 13px;
  }

  .mobile-playbar .btn {
    font-size: 13.5px;
  }
}

/* Keep the final comment styles readable after legacy overrides */
.comment-meta {
  font-size: 11.5px;
}

.comment-meta b {
  font-size: 13px;
}

.comment-text {
  font-size: 14px;
  line-height: 1.85;
}

/* ---------------- Larger type pass for descriptions, titles and labels ---------------- */
.section-title {
  font-size: clamp(28px, 2.4vw, 34px);
}

.section-sub {
  font-size: 15.5px;
}

.section-kicker {
  font-size: 12.5px;
}

.section-title small {
  font-size: 12px;
}

.block-head h2 {
  font-size: 24px;
}

.block-head .hint {
  font-size: 12.5px;
}

.card-title {
  font-size: 16px;
}

.card-meta {
  font-size: 13px;
}

.news-card-body h3 {
  font-size: 17px;
}

.news-card-body p {
  font-size: 14px;
}

.article-lead {
  font-size: 16px;
}

.article-body {
  font-size: 17px;
  line-height: 1.9;
}

.article-body h2 {
  font-size: 24px;
}

.article-body li {
  font-size: 15px;
}

.detail-en {
  font-size: 12px;
}

.detail-sub {
  font-size: 17px;
  line-height: 1.75;
}

.detail-meta {
  font-size: 14px;
}

.facts-kicker {
  font-size: 11px;
}

.facts-head h2 {
  font-size: 18px;
}

.facts-list dt {
  font-size: 13px;
}

.facts-list dd {
  font-size: 14px;
}

.facts-foot {
  font-size: 12.5px;
}

.prose {
  font-size: 17px;
  line-height: 1.9;
}

.prose h3 {
  font-size: 18px;
}

.notice-badge {
  font-size: 12px;
}

.notice-title {
  font-size: 15px;
}

.notice-hint {
  font-size: 12px;
}

.notice-body {
  font-size: 15px;
  line-height: 1.9;
}

.howto-item p {
  font-size: 15px;
}

.req-table {
  font-size: 14px;
}

.side-card h3 {
  font-size: 15px;
}

.side-card p,
.side-card .side-list a {
  font-size: 13.5px;
}

.review-summary-label,
.review-good,
.review-rating > span,
.review-rating > b {
  font-size: 13px;
}

.comment-meta {
  font-size: 12.5px;
}

.comment-meta b {
  font-size: 14px;
}

.comment-text {
  font-size: 15px;
  line-height: 1.85;
}

.metric-row,
.article-meta,
.news-meta {
  font-size: 13px;
}

.search-result .sr-title {
  font-size: 15px;
}

.search-result .sr-meta {
  font-size: 13px;
}

.search-result .sr-type {
  font-size: 12.5px;
}

.rank-name,
.gr-title {
  font-size: 14.5px;
}

.rank-meta,
.gr-meta {
  font-size: 12.5px;
}

.footer-desc {
  font-size: 14px;
}

.footer-col h3 {
  font-size: 15px;
}

.footer-col a,
.footer-col span,
.footer-col button {
  font-size: 13.5px;
}

.footer-bottom {
  font-size: 12.5px;
}

.pill {
  font-size: 12.5px;
}

.hero-sub {
  font-size: 16.5px;
}

.hero-tag {
  font-size: 12px;
}

.stat-label {
  font-size: 13px;
}

.modal-option .mo-title {
  font-size: 15px;
}

.modal-head p,
.modal-option .mo-sub,
.modal-note {
  font-size: 13px;
}

.ai-bubble {
  font-size: 14px;
}

.ai-quick button {
  font-size: 12px;
}

.ai-form input {
  font-size: 14px;
}

.ai-game span {
  font-size: 13px;
}

.ai-game small,
.ai-game em {
  font-size: 11.5px;
}

.ai-foot {
  font-size: 11px;
}

.topbar,
.topbar-links button {
  font-size: 13px;
}

.nav-link {
  font-size: 15px;
}

.header-feedback,
.auth-trigger {
  font-size: 13.5px;
}

.search-trigger {
  font-size: 14px;
}

.btn {
  font-size: 15.5px;
}

.btn-sm {
  font-size: 14px;
}

.btn-lg {
  font-size: 16px;
}

/* ---------------- TapTap-style media stage ---------------- */
.media-showcase {
  margin-top: 0;
}

.media-stage {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #05080f;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.media-pane {
  position: absolute;
  inset: 0;
  display: none;
}

.media-pane.is-active {
  display: block;
}

.media-pane-video video {
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}

.media-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #000;
  cursor: zoom-in;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.media-shot.is-active {
  opacity: 1;
  pointer-events: auto;
}

.media-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-count {
  position: absolute;
  top: 16px;
  left: 16px;
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.58);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.media-count b {
  color: #fff;
  font-size: 14px;
}

.media-arrow {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(5, 10, 18, 0.58);
  color: #fff;
  opacity: 0;
  transform: translateY(-50%);
  backdrop-filter: blur(10px);
  transition: opacity 0.2s ease, background 0.2s ease;
}

.media-arrow:hover {
  background: rgba(5, 10, 18, 0.78);
}

.media-arrow-prev {
  left: 14px;
}

.media-arrow-next {
  right: 14px;
}

.media-stage:hover .media-arrow,
.media-arrow:focus-visible {
  opacity: 1;
}

.media-expand {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(5, 10, 18, 0.58);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity 0.2s ease;
}

.media-stage:hover .media-expand {
  opacity: 1;
}

.media-tabs {
  position: absolute;
  left: 50%;
  bottom: 64px;
  z-index: 5;
  display: flex;
  gap: 4px;
  width: max-content;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(6, 12, 22, 0.46);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px) saturate(140%);
  transform: translateX(-50%);
  transition: background 0.2s ease;
}

.media-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
  transition: background 0.2s ease, color 0.2s ease;
}

.media-tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.media-tab.is-active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.media-tab span {
  opacity: 0.7;
  font-family: var(--font-mono);
  font-size: 11px;
}

.media-tab .icon {
  width: 15px;
  height: 15px;
}

.media-stage.is-single .media-arrow,
.media-stage.is-single .media-count {
  display: none;
}

html[data-theme="light"] .media-stage {
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

@media (max-width: 620px) {
  .media-stage {
    border-radius: 13px;
  }

  .media-count {
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .media-count b {
    font-size: 12px;
  }

  .media-arrow {
    width: 36px;
    height: 36px;
    opacity: 1;
  }

  .media-arrow-prev {
    left: 8px;
  }

  .media-arrow-next {
    right: 8px;
  }

  .media-expand {
    display: none;
  }

  .media-tabs {
    bottom: 52px;
    padding: 3px;
  }

  .media-tab {
    padding: 7px 12px;
    font-size: 12.5px;
  }
}

/* ---------------- Vertical screenshot stack, article style ---------------- */
.screenshot-stack {
  display: grid;
  gap: 16px;
}

.screenshot-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  cursor: zoom-in;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.screenshot-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.screenshot-item:hover {
  border-color: var(--line-accent);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.screenshot-item:hover img {
  transform: scale(1.012);
}

.screenshot-zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(8, 13, 22, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(5px);
  backdrop-filter: blur(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.screenshot-item:hover .screenshot-zoom,
.screenshot-item:focus-visible .screenshot-zoom {
  opacity: 1;
  transform: none;
}

.screenshot-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

html[data-theme="light"] .screenshot-item {
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .screenshot-item:hover {
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

@media (max-width: 620px) {
  .screenshot-stack {
    gap: 12px;
  }

  .screenshot-item {
    border-radius: 13px;
  }

  .screenshot-zoom {
    display: none;
  }
}

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

  .section-title {
    font-size: 28px;
  }

  .section-sub {
    font-size: 14.5px;
  }

  .card-title {
    font-size: 15.5px;
  }

  .card-meta {
    font-size: 12.5px;
  }

  .detail-sub {
    font-size: 16px;
  }

  .detail-meta {
    font-size: 13.5px;
  }

  .block-head h2 {
    font-size: 22px;
  }

  .prose {
    font-size: 16px;
  }

  .notice-body {
    font-size: 14px;
  }

  .howto-item p {
    font-size: 14.5px;
  }

  .comment-meta {
    font-size: 12px;
  }

  .comment-text {
    font-size: 15px;
  }

  .article-body {
    font-size: 16px;
  }

  .article-lead {
    font-size: 15.5px;
  }

  .footer-col a,
  .footer-col span,
  .footer-col button {
    font-size: 13.5px;
  }

  .mobile-playbar .btn {
    font-size: 14px;
  }
}

/* ---------------- Mobile detail header: cover left, copy right ---------------- */
@media (max-width: 620px) {
  .detail-hero-inner {
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .detail-grid {
    grid-template-columns: 108px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 4px;
    align-items: start;
  }

  .detail-cover {
    grid-column: 1;
    grid-row: 1 / span 4;
    width: 108px;
    height: 100%;
    min-height: 130px;
    margin-top: 0;
    border-radius: 12px;
    aspect-ratio: auto;
    align-self: stretch;
  }

  .detail-cover .rating {
    transform: scale(0.82);
    transform-origin: top left;
  }

  .detail-info {
    display: contents;
  }

  .detail-info > .eyebrow {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 2px;
    font-size: 10px;
    letter-spacing: 0.06em;
    white-space: normal;
  }

  .detail-info > .eyebrow::before {
    width: 14px;
  }

  .detail-info > h1 {
    grid-column: 2;
    grid-row: 2;
    margin-top: 1px;
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .detail-en {
    grid-column: 2;
    grid-row: 3;
    margin-top: 0;
    font-size: 9px;
    letter-spacing: 0.16em;
  }

  .detail-sub {
    grid-column: 2;
    grid-row: 4;
    display: -webkit-box;
    overflow: hidden;
    margin: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .detail-badges {
    grid-column: 1 / -1;
    grid-row: 5;
    flex-wrap: wrap;
    overflow: visible;
    gap: 4px;
    margin: 7px 0 6px;
    padding-bottom: 0;
  }

  .detail-badges .pill {
    flex: 0 0 auto;
    gap: 4px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .detail-badges .icon {
    width: 12px;
    height: 12px;
  }

  .detail-meta {
    grid-column: 1 / -1;
    grid-row: 6;
    gap: 3px 9px;
    margin-bottom: 5px;
    font-size: 11.5px;
  }

  .detail-meta .icon {
    width: 13px;
    height: 13px;
  }

  .detail-actions {
    display: none;
  }

  .detail-info > .vote-panel {
    grid-column: 1 / -1;
    grid-row: 7;
    margin-top: 4px;
    padding: 8px 10px;
  }

  .vote-label {
    font-size: 11px;
  }

  .vote-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .vote-hint {
    display: none;
  }

  /* Smaller media switch buttons on phones */
  .media-tabs {
    bottom: 44px;
    gap: 2px;
    padding: 2px;
  }

  .media-tab {
    gap: 4px;
    padding: 5px 9px;
    font-size: 11px;
  }

  .media-tab .icon {
    width: 13px;
    height: 13px;
  }

  .media-tab span {
    font-size: 10px;
  }
}

/* ---------------- Mobile detail CTA ---------------- */
@media (max-width: 860px) {
  .mobile-playbar {
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(96, 165, 250, 0.26);
    border-radius: 18px;
    background: rgba(7, 13, 24, 0.94);
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.5),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
  }

  body[data-page="game-detail"] .mobile-playbar {
    bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 95;
  }

  .playbar-btn {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 9px;
    min-width: 0;
    height: 54px;
    padding: 0 12px;
    border-radius: 13px;
    border: 1px solid transparent;
    transition: transform 0.15s ease, filter 0.15s ease;
  }

  .playbar-btn:active {
    transform: scale(0.99);
  }

  .playbar-play {
    background: linear-gradient(135deg, #06b6d4 0%, #2563eb 64%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.42);
  }

  .playbar-download {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fbff;
  }

  .playbar-ico {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.16);
  }

  .playbar-ico .icon {
    width: 18px;
    height: 18px;
  }

  .playbar-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
    text-align: left;
    line-height: 1.12;
  }

  .playbar-text b {
    overflow: hidden;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .playbar-text small {
    overflow: hidden;
    color: currentColor;
    font-size: 9.5px;
    font-weight: 500;
    opacity: 0.76;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

html[data-theme="light"] .mobile-playbar {
  border-color: rgba(37, 99, 235, 0.18);
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.16),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

html[data-theme="light"] .playbar-download {
  border-color: rgba(37, 99, 235, 0.16);
  background: #eef4ff;
  color: #16243b;
}

html[data-theme="light"] .playbar-download .playbar-ico {
  background: #dbeafe;
  color: #2563eb;
}

@media (max-width: 360px) {
  .playbar-text small {
    display: none;
  }

  .playbar-text b {
    font-size: 13px;
  }
}

/* ---------------- Tag categories ---------------- */
.catalog-tag-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 14px;
  padding: 9px 12px;
  border: 1px solid var(--line-accent);
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--text-2);
  font-size: 13px;
}

.catalog-tag-note span {
  color: var(--text-3);
}

.catalog-tag-note b {
  color: var(--text);
  font-size: 14px;
}

.catalog-tag-note a {
  margin-left: auto;
  color: var(--accent);
  font-weight: 600;
}

.filter-link.filter-more {
  color: var(--accent);
  font-weight: 600;
}

.filter-link.filter-more .icon {
  margin-left: auto;
}

.tag-filter-list {
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.tag-filter-list::-webkit-scrollbar {
  width: 5px;
}

.tag-filter-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--line-strong);
}

.tag-index-wrap {
  padding: 10px 0 64px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.tag-cloud-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.tag-cloud-item:hover {
  border-color: var(--line-accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.tag-cloud-item b {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

@media (max-width: 620px) {
  .catalog-tag-note {
    font-size: 12px;
  }

  .tag-index-wrap {
    padding-bottom: 44px;
  }

  .tag-cloud {
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
  }

  .tag-cloud-item {
    padding: 7px 10px;
    font-size: 12.5px;
  }

  .tag-filter-list {
    max-height: 58vh;
  }
}

/* ---------------- iOS: H5 only ---------------- */
html[data-os="ios"] [data-download],
html[data-os="ios"] [data-app-open],
html[data-os="ios"] .qr-float,
html[data-os="ios"] .path-apk,
html[data-os="ios"] .dock-play,
html[data-os="ios"] .header-cta,
html[data-os="ios"] .playbar-download,
html[data-os="ios"] .card-action[data-download] {
  display: none !important;
}

html[data-os="ios"] .topbar-links [data-app-open] + .topbar-divider {
  display: none !important;
}

html[data-os="ios"] .path-h5 {
  grid-column: 1 / -1;
}

html[data-os="ios"] .playbar-play {
  flex: 1 1 100%;
}

html[data-os="ios"] .detail-actions .btn-primary {
  flex: 1 1 auto;
}

/* ---------------- Desktop detail actions ---------------- */
@media (min-width: 861px) {
  .detail-actions {
    align-items: center;
    gap: 12px;
  }

  .detail-actions .btn-lg {
    height: 58px;
    padding: 0 28px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
  }

  .detail-actions .btn-lg .icon {
    width: 20px;
    height: 20px;
  }

  .detail-actions .btn-primary {
    min-width: 188px;
    box-shadow:
      0 12px 30px rgba(37, 99, 235, 0.32),
      inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  }

  .detail-actions .btn-ghost {
    min-width: 166px;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.07);
  }

  .detail-actions .detail-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: auto;
    height: 58px;
    padding: 0 15px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.045);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

  .detail-actions .detail-action:hover {
    border-color: rgba(125, 211, 252, 0.46);
    background: rgba(125, 211, 252, 0.12);
    color: #fff;
  }

  .detail-actions .detail-action .icon {
    width: 19px;
    height: 19px;
  }

  .detail-actions .detail-action.is-active {
    border-color: rgba(244, 114, 182, 0.48);
    background: rgba(244, 114, 182, 0.14);
    color: #f9a8d4;
  }
}

@media (min-width: 861px) and (max-width: 1080px) {
  .detail-actions .btn-lg {
    height: 52px;
    padding: 0 18px;
    font-size: 14.5px;
  }

  .detail-actions .btn-primary,
  .detail-actions .btn-ghost {
    min-width: 0;
  }

  .detail-actions .detail-action {
    width: 52px;
    height: 52px;
    padding: 0;
  }

  .detail-actions .detail-action span {
    display: none;
  }
}/* ---------------- Tag view hot chart ---------------- */
.hot-rank-page {
  padding-top: 22px;
}

.hot-rank-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
  padding: 26px 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(620px 220px at 88% 10%, rgba(var(--accent-rgb), 0.16), transparent 68%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 58%),
    var(--panel);
}
.hot-rank-intro h2 {
  margin: 5px 0 6px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.04em;
}
.hot-rank-intro p {
  max-width: 620px;
  color: var(--text-2);
  font-size: 13px;
}
.hot-rank-intro-stats {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
}
.hot-rank-intro-stats div {
  min-width: 78px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.16);
  text-align: center;
}
.hot-rank-intro-stats b {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 21px;
  line-height: 1.1;
}
.hot-rank-intro-stats span {
  color: var(--text-3);
  font-size: 10px;
}

.hot-rank-tabs-wrap {
  position: sticky;
  top: 10px;
  z-index: 8;
  margin-bottom: 16px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
}
.hot-rank-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
.hot-rank-tabs .tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
}
.hot-rank-tabs .tab b {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
}
.hot-rank-tabs .tab:hover {
  background: var(--panel-2);
  color: var(--text);
}
.hot-rank-tabs .tab.is-active {
  border-color: var(--line-accent);
  background: rgba(var(--accent-rgb), 0.13);
  color: var(--accent);
}
.hot-rank-tabs .tab.is-active b {
  color: var(--accent);
}

.hot-rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}
.hot-rank-main {
  min-width: 0;
}
.hot-rank-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}
.hot-rank-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.hot-rank-panel-head h2 {
  margin-top: 3px;
  font-size: 23px;
}
.hot-rank-count {
  color: var(--text-3);
  font-size: 11px;
  white-space: nowrap;
}

.hot-podium {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.hot-podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 48%),
    var(--panel-2);
  transition: transform 0.2s, border-color 0.2s;
}
.hot-podium-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-accent);
}
.hot-podium-1 {
  border-color: rgba(251, 191, 36, 0.36);
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.12), transparent 55%), var(--panel-2);
}
.hot-podium-2 {
  border-color: rgba(203, 213, 225, 0.3);
}
.hot-podium-3 {
  border-color: rgba(251, 146, 60, 0.28);
}
.hot-podium-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 8px;
}
.hot-podium-rank {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hot-podium-1 .hot-podium-rank { color: #fbbf24; }
.hot-podium-2 .hot-podium-rank { color: #cbd5e1; }
.hot-podium-3 .hot-podium-rank { color: #fb923c; }
.hot-podium-views {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
}
.hot-podium-cover {
  overflow: hidden;
  border-radius: 9px;
  aspect-ratio: 3 / 4;
  background: var(--bg);
}
.hot-podium-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}
.hot-podium-card:hover .hot-podium-cover img {
  transform: scale(1.04);
}
.hot-podium-name {
  overflow: hidden;
  margin-top: 9px;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-podium-tags {
  display: flex;
  gap: 4px;
  overflow: hidden;
  margin-top: 6px;
}
.hot-podium-tags span {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(var(--accent-rgb), 0.09);
  color: var(--text-3);
  font-size: 9px;
}
.hot-podium-score {
  margin-top: 7px;
  color: #fbbf24;
  font-family: var(--font-mono);
  font-size: 11px;
}

.hot-rank-list {
  border-top: 1px solid var(--line);
}
.hot-rank-row {
  display: grid;
  grid-template-columns: 34px 52px minmax(0, 1fr) 86px 18px;
  gap: 11px;
  align-items: center;
  padding: 9px 7px;
  border-bottom: 1px solid var(--line);
  transition: background 0.18s;
}
.hot-rank-row:last-child { border-bottom: 0; }
.hot-rank-row:hover { background: var(--panel-2); }
.hot-row-rank {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: center;
}
.hot-rank-row:nth-child(1) .hot-row-rank,
.hot-rank-row:nth-child(2) .hot-row-rank,
.hot-rank-row:nth-child(3) .hot-row-rank { color: var(--accent); }
.hot-rank-row img {
  width: 52px;
  height: 68px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--panel-2);
}
.hot-row-main { min-width: 0; }
.hot-row-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hot-row-tags {
  display: flex;
  gap: 4px;
  overflow: hidden;
  margin-top: 5px;
}
.hot-row-tags span {
  flex: 0 0 auto;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-3);
  font-size: 9px;
}
.hot-row-views {
  text-align: right;
}
.hot-row-views b {
  display: block;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 12px;
}
.hot-row-views span {
  color: var(--text-3);
  font-size: 9px;
}
.hot-row-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}
.hot-rank-row:hover .hot-row-arrow { color: var(--accent); }
.hot-rank-empty {
  padding: 30px;
  color: var(--text-3);
  text-align: center;
}
.hot-rank-foot {
  padding-top: 12px;
  color: var(--text-3);
  font-size: 10px;
}

.hot-rank-side {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hot-rank-side-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.hot-rank-side-card h3 {
  margin: 3px 0 10px;
  font-size: 15px;
}
.hot-rank-side-card ol {
  margin: 0;
  padding-left: 16px;
  color: var(--text-2);
  font-size: 11px;
  line-height: 1.9;
}
.hot-rank-tag-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.hot-rank-tag-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-2);
  font-size: 10px;
}
.hot-rank-tag-links a:hover { border-color: var(--line-accent); color: var(--accent); }
.hot-rank-tag-links b { color: var(--text-3); font-family: var(--font-mono); font-size: 9px; }
.hot-rank-cta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line-accent);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.14), transparent 70%), var(--panel);
  color: var(--text);
}
.hot-rank-cta span { color: var(--accent); font-size: 10px; }
.hot-rank-cta b { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.hot-rank-cta:hover { border-color: var(--accent); }

@media (max-width: 950px) {
  .hot-rank-layout { grid-template-columns: 1fr; }
  .hot-rank-side { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hot-rank-cta { grid-column: span 2; }
}

@media (max-width: 620px) {
  .hot-rank-intro { align-items: flex-start; flex-direction: column; padding: 20px; }
  .hot-rank-intro-stats { width: 100%; }
  .hot-rank-intro-stats div { flex: 1; }
  .hot-rank-tabs-wrap { top: 6px; }
  .hot-rank-panel { padding: 13px; }
  .hot-rank-panel-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .hot-podium { gap: 6px; }
  .hot-podium-card { padding: 7px; }
  .hot-podium-name { font-size: 11px; }
  .hot-rank-row { grid-template-columns: 26px 42px minmax(0, 1fr) 60px 14px; gap: 7px; }
  .hot-rank-row img { width: 42px; height: 56px; }
  .hot-row-title { font-size: 12px; }
  .hot-row-views b { font-size: 10px; }
  .hot-rank-side { grid-template-columns: 1fr; }
  .hot-rank-cta { grid-column: auto; }
}


/* ---------------- Article detail refinement ---------------- */
.article-layout {
  min-width: 0;
}
.article-layout > article {
  min-width: 0;
  max-width: 100%;
}
.article-head h1 {
  width: 100%;
  max-width: 100%;
  font-size: clamp(22px, 2.1vw, 30px);
  line-height: 1.28;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
}
.article-lead {
  max-width: 820px;
  overflow-wrap: anywhere;
}
.article-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: var(--panel);
}
.article-cover img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 480px;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 10px;
}
.article-body {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}
.article-body img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 540px;
  margin: 24px auto;
  object-fit: contain;
  border-radius: 10px;
}
.article-body figure {
  max-width: 100%;
  margin: 24px auto;
  text-align: center;
}
.article-body figcaption {
  margin-top: 8px;
  color: var(--text-3);
  font-size: 11px;
}
.article-body table {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}
.article-body pre,
.article-body code {
  max-width: 100%;
  overflow-x: auto;
}
.article-side {
  min-width: 0;
}

@media (max-width: 700px) {
  .article-head h1 {
    font-size: clamp(24px, 7vw, 34px);
    line-height: 1.25;
  }
  .article-cover {
    padding: 6px;
  }
  .article-cover img {
    max-height: 300px;
  }
  .article-body img {
    max-height: 360px;
    margin: 18px auto;
  }
}
