@charset "UTF-8";
/*
 * 课堂互动游戏工具箱 · 暖阳卡通游戏展架风（v2 生产正式版）
 * 严格遵循统一美术规范：深海军蓝 #192E42 + 黄绿 #D9F779 + 青蓝 #60D1EF + 暖橙 #FFAC70
 */

:root {
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --ink: #192E42;
  --ink-soft: #2D4A63;
  --green: #D9F779;
  --green-edge: #93B536;
  --cyan: #60D1EF;
  --cyan-edge: #2896B8;
  --orange: #FFAC70;
  --orange-edge: #D47A3A;
  --coral: #EF7872;
  --cream: #FFFDF7;

  --bg-page: #F8F4E8;
  --bg-pattern: radial-gradient(circle at 12% 8%, rgba(96, 209, 239, 0.22) 0, transparent 36%),
                radial-gradient(circle at 88% 6%, rgba(255, 172, 112, 0.22) 0, transparent 34%),
                linear-gradient(180deg, #E3F3FF 0%, #F5F7EE 240px, #FAF5E8 100%);
  --surface: #FFFDF7;
  --surface-soft: #F1EFE4;
  --surface-pill: #FFFFFF;
  --text-main: #192E42;
  --text-sub: #47627A;
  --text-muted: #6C8396;
  --border-card: #192E42;
  --border-soft: #D6DFDC;
  --card-depth: #C9D6DE;
  --topbar-bg: #192E42;
  --topbar-edge: #0E1D2B;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html[data-theme="theater"] {
  --bg-page: #132537;
  --bg-pattern: radial-gradient(circle at 15% 5%, rgba(96, 209, 239, 0.14) 0, transparent 40%),
                radial-gradient(circle at 85% 8%, rgba(255, 172, 112, 0.12) 0, transparent 38%),
                linear-gradient(180deg, #172D42 0%, #122334 50%, #0E1C2A 100%);
  --surface: #1D354D;
  --surface-soft: #26435F;
  --surface-pill: #233E58;
  --text-main: #F7F5EA;
  --text-sub: #BDD1E2;
  --text-muted: #89A5BD;
  --border-card: #0B1622;
  --border-soft: #315170;
  --card-depth: #0A1520;
  --topbar-bg: #102030;
  --topbar-edge: #08121C;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--bg-pattern);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.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;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 100;
  background: var(--green);
  color: var(--ink);
  font-weight: 800;
  padding: 12px 16px;
  border: 2px solid var(--ink);
  border-radius: 10px;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(rgba(25, 46, 66, 0.055) 1.2px, transparent 1.2px);
  background-size: 24px 24px;
}
html[data-theme="theater"] .ambient-bg {
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1.2px, transparent 1.2px);
}

/* 顶部深海军蓝卡通门梁 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--topbar-bg);
  border-bottom: 3px solid var(--topbar-edge);
  box-shadow: 0 4px 0 rgba(14, 29, 43, 0.14);
}
.topbar-inner {
  max-width: 1460px;
  margin: 0 auto;
  min-height: 68px;
  padding: 8px 24px;
  display: grid;
  grid-template-columns: auto minmax(200px, 460px) 1fr;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #FFFDF7;
  white-space: nowrap;
}
.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--green);
  border: 2px solid #0E1D2B;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 3px 0 #7C9D29;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 0.25s var(--spring);
}
.brand:hover .brand-badge { transform: rotate(-6deg) scale(1.06); }
.brand-badge svg { width: 28px; height: 28px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 16px; font-weight: 900; letter-spacing: 0.3px; }
.brand-text em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: 1.4px; color: var(--green); margin-top: 2px; }

.search-bar {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  background: #FFFDF7;
  border: 2px solid #0E1D2B;
  box-shadow: inset 0 2px 0 rgba(25, 46, 66, 0.06), 0 3px 0 #0E1D2B;
  color: var(--ink);
  transition: border-color 0.18s;
}
.search-bar:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(217, 247, 121, 0.35), 0 3px 0 #0E1D2B;
}
.search-ico { width: 18px; height: 18px; color: #5A768E; flex: none; margin-right: 9px; }
.search-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.search-bar input::placeholder { color: #7C95A8; font-weight: 500; }
.kbd-hint {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
  background: #EAF2F8;
  color: #46647D;
  border: 1.5px solid #C6D8E6;
  margin-left: 8px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.icon-pill, .ghost-pill, .accent-pill {
  height: 38px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform 0.15s var(--spring), box-shadow 0.12s ease, background 0.15s;
}
.icon-pill, .ghost-pill {
  color: #FFFDF7;
  background: #284661;
  border: 2px solid #0E1D2B;
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.14), 0 3px 0 #0E1D2B;
}
.icon-pill:hover, .ghost-pill:hover { background: #335879; transform: translateY(-1px); }
.icon-pill:active, .ghost-pill:active { transform: translateY(2px); box-shadow: 0 1px 0 #0E1D2B; }

.accent-pill {
  background: var(--green);
  color: var(--ink);
  border: 2px solid #0E1D2B;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 3px 0 var(--green-edge);
}
.accent-pill svg { width: 15px; height: 15px; }
.accent-pill:hover { background: #E8FF9A; transform: translateY(-1px); }
.accent-pill:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-edge); }

/* 账号动态导航区完美融入顶栏 */
.account-slot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFFDF7;
  font-size: 13px;
  font-weight: 700;
}
.account-slot:empty { display: none; }
.account-slot a, .account-slot button {
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  color: #FFFDF7;
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.account-slot a:hover, .account-slot button:hover {
  background: rgba(217, 247, 121, 0.2);
  border-color: var(--green);
  color: var(--green);
}
.account-slot [data-account-nickname] {
  color: var(--green);
  font-weight: 800;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 主内容容器 */
.page-shell {
  max-width: 1460px;
  margin: 0 auto;
  padding: 18px 24px 44px;
}

.hero-strip {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: #FFF3CC;
  color: #6B4506;
  border: 1.5px solid #E5BE67;
  margin-bottom: 6px;
}
html[data-theme="theater"] .hero-pill {
  background: rgba(255, 243, 204, 0.14);
  color: #FFE08A;
  border-color: rgba(255, 224, 138, 0.35);
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 900;
  line-height: 1.2;
}
.hero-copy p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.5;
}

.scene-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.scene-label { font-size: 12px; font-weight: 800; color: var(--text-muted); }
.scene-chip {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  background: var(--surface);
  color: var(--text-main);
  border: 1.5px solid var(--border-soft);
  box-shadow: 0 2px 0 rgba(25, 46, 66, 0.08);
  transition: transform 0.18s var(--spring), background 0.15s, border-color 0.15s;
}
.scene-chip:hover { transform: translateY(-2px); border-color: var(--ink); }
.scene-chip[aria-pressed="true"] {
  background: var(--orange);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 1.5px 0 rgba(255, 255, 255, 0.55), 0 3px 0 var(--ink);
}

/* 顶部横向玩法展板 */
.filter-dock {
  background: var(--surface);
  border: 2px solid var(--border-card);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 4px 0 var(--card-depth);
  margin-bottom: 16px;
}

.play-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  border-bottom: 2px dashed var(--border-soft);
  scrollbar-width: none;
}
.play-rail::-webkit-scrollbar { display: none; }

.play-tab {
  flex: none;
  height: 38px;
  padding: 0 14px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-sub);
  background: var(--surface-soft);
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s var(--spring);
}
.play-tab .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--tab-accent, var(--cyan));
  border: 1.5px solid var(--ink);
}
.play-tab:hover { color: var(--text-main); transform: translateY(-1px); border-color: var(--border-soft); }
.play-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--green);
  border-color: var(--ink);
  box-shadow: 0 3px 0 rgba(25, 46, 66, 0.25);
}
html[data-theme="theater"] .play-tab[aria-selected="true"] {
  background: var(--green);
  color: var(--ink);
  border-color: #0B1622;
}
.play-tab .count {
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(25, 46, 66, 0.1);
}
.play-tab[aria-selected="true"] .count { background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
html[data-theme="theater"] .play-tab[aria-selected="true"] .count { background: rgba(25, 46, 66, 0.16); color: var(--ink); }

.subfilter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
}
.subfilter-groups {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-group-label { font-size: 12px; font-weight: 800; color: var(--text-muted); margin-right: 2px; }
.chip-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
  background: transparent;
  border: 1.5px solid transparent;
  transition: all 0.15s ease;
}
.chip-btn:hover { background: var(--surface-soft); color: var(--text-main); }
.chip-btn[aria-pressed="true"] {
  background: #DFF6FF;
  color: var(--ink);
  border-color: var(--cyan-edge);
}
html[data-theme="theater"] .chip-btn[aria-pressed="true"] {
  background: rgba(96, 209, 239, 0.22);
  color: #FFFFFF;
  border-color: var(--cyan);
}

.subfilter-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-sub);
}
.reset-btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  background: var(--surface-soft);
  color: var(--text-main);
  transition: opacity 0.15s, background 0.15s;
}
.reset-btn:disabled { opacity: 0.4; cursor: default; }
.reset-btn:not(:disabled):hover { background: var(--orange); color: var(--ink); }

/* 4 列 2 行「实体卡通游戏卡盒」网格 */
.game-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  background: var(--surface);
  border: 2px solid var(--border-card);
  box-shadow: 0 5px 0 var(--card-depth), 0 10px 20px -10px rgba(25, 46, 66, 0.18);
  overflow: hidden;
  transition: transform 0.22s var(--spring), box-shadow 0.22s ease;
}
.game-card::before {
  content: "";
  display: block;
  height: 5px;
  background: var(--card-accent, var(--cyan));
  border-bottom: 1.5px solid var(--border-card);
}
.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 9px 0 var(--card-depth), 0 18px 28px -10px rgba(25, 46, 66, 0.26);
}

.card-cover {
  position: relative;
  display: block;
  margin: 8px 8px 0;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #192E42;
  border: 2px solid var(--border-card);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.game-card:hover .card-cover img { transform: scale(1.05); }

.cover-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
  color: var(--ink);
  background: var(--card-accent, var(--green));
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px 0 rgba(25, 46, 66, 0.35);
}

.cover-play-hint {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(25, 46, 66, 0.24);
  opacity: 0;
  transition: opacity 0.18s ease;
  pointer-events: none;
}
.cover-play-hint span {
  padding: 7px 15px;
  border-radius: 10px;
  background: var(--green);
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  border: 2px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 3px 0 var(--ink);
  transform: translateY(6px) scale(0.94);
  transition: transform 0.24s var(--spring);
}
.game-card:hover .cover-play-hint { opacity: 1; }
.game-card:hover .cover-play-hint span { transform: translateY(0) scale(1); }

.card-body {
  padding: 12px 13px 13px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-title { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.3; }
.card-bank-dot {
  flex: none;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text-sub);
}
.card-bank-dot.is-custom { background: #E2F8E8; color: #166534; }
html[data-theme="theater"] .card-bank-dot.is-custom { background: rgba(110, 231, 183, 0.18); color: #7CF2C2; }

.card-tagline {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-sub);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-soft);
  color: var(--text-sub);
}
.tag-pill.is-q { background: #FFF0DB; color: #8A4309; }
.tag-pill.is-p { background: #E3F6FC; color: #12566F; }
html[data-theme="theater"] .tag-pill.is-q { background: rgba(255, 172, 112, 0.2); color: #FFD0A6; }
html[data-theme="theater"] .tag-pill.is-p { background: rgba(96, 209, 239, 0.2); color: #9CE8FC; }

.card-actions {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1.5px dashed var(--border-soft);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
}
.detail-btn {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-sub);
  background: var(--surface-soft);
  border: 1.5px solid var(--border-soft);
  transition: all 0.15s ease;
}
.detail-btn:hover { color: var(--text-main); border-color: var(--ink); background: var(--surface-pill); }

.play-btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  background: var(--green);
  border: 2px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 3px 0 var(--green-edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
}
.play-btn:hover {
  background: #E8FF9A;
  transform: translateY(-1px);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.7), 0 4px 0 var(--green-edge);
}
.play-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-edge); }

/* 备课横幅 */
.prep-banner {
  margin-top: 24px;
  padding: 20px 24px;
  border-radius: 18px;
  background: #FFF9EB;
  border: 2px solid var(--border-card);
  box-shadow: 0 5px 0 #DFCFA9;
  display: flex;
  align-items: center;
  gap: 20px;
}
html[data-theme="theater"] .prep-banner { background: #1D354D; box-shadow: 0 5px 0 #0A1520; }
.prep-badge {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: var(--orange);
  border: 2px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 3px 0 var(--ink);
  display: grid;
  place-items: center;
  flex: none;
  transform: rotate(-4deg);
}
.prep-badge svg { width: 40px; height: 40px; }
.prep-copy { flex: 1; min-width: 0; }
.prep-copy h2 { margin: 0 0 6px; font-size: 18px; font-weight: 900; }
.prep-copy p { margin: 0; font-size: 13px; color: var(--text-sub); line-height: 1.65; }
.prep-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.orange-btn {
  height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: var(--orange);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.5), 0 3px 0 var(--orange-edge);
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.orange-btn:hover { background: #FFBE8E; transform: translateY(-1px); }
.orange-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--orange-edge); }

.classroom-note {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}
.site-footer {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dashed var(--border-soft);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 52px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 2px dashed var(--border-soft);
}
.empty-art { font-size: 42px; margin-bottom: 10px; }
.empty-state h2 { margin: 0 0 8px; font-size: 20px; }
.empty-state p { margin: 0 0 18px; color: var(--text-sub); font-size: 14px; }

/* 弹窗 */
.modal-card {
  width: min(620px, calc(100vw - 32px));
  max-height: 90dvh;
  padding: 0;
  border: 3px solid var(--border-card);
  border-radius: 22px;
  background: var(--surface);
  color: var(--text-main);
  box-shadow: 0 8px 0 var(--border-card), 0 24px 56px rgba(10, 22, 34, 0.45);
  overflow: auto;
}
.modal-card::backdrop { background: rgba(15, 30, 46, 0.62); backdrop-filter: blur(4px); }
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #FFFDF7;
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform 0.15s, background 0.15s;
}
.modal-close:hover { background: var(--coral); color: #FFFFFF; transform: translateY(-1px); }

.detail-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #192E42;
  border-bottom: 2.5px solid var(--border-card);
  overflow: hidden;
}
.detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-body { padding: 20px 24px 24px; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.detail-head h2 { margin: 0; font-size: 24px; font-weight: 900; }
.detail-sub { margin: 4px 0 0; font-size: 14px; color: var(--text-sub); }
.bank-pill {
  flex: none;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  background: #E2F8E8;
  color: #166534;
}
html[data-theme="theater"] .bank-pill { background: rgba(110, 231, 183, 0.18); color: #7CF2C2; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.detail-desc { margin: 0 0 16px; font-size: 14px; line-height: 1.7; color: var(--text-sub); }
.detail-specs {
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-soft);
  border: 1.5px solid var(--border-soft);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.detail-specs dt { font-size: 11px; font-weight: 800; color: var(--text-muted); margin-bottom: 4px; }
.detail-specs dd { margin: 0; font-size: 13px; font-weight: 800; color: var(--text-main); }
.detail-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

.primary-btn {
  height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  background: var(--green);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.65), 0 3px 0 var(--green-edge);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.primary-btn:hover { background: #E8FF9A; transform: translateY(-1px); }
.primary-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--green-edge); }

.ghost-btn {
  height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  background: var(--surface-soft);
  color: var(--text-main);
  border: 2px solid var(--border-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ghost-btn:hover { border-color: var(--ink); }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  color: var(--cyan-edge);
  margin-bottom: 6px;
}
.help-steps { padding-left: 20px; font-size: 14px; line-height: 1.8; color: var(--text-sub); margin: 12px 0; }
.help-steps li { margin: 10px 0; }
.help-steps strong { color: var(--text-main); }
.storage-note {
  background: var(--surface-soft);
  border: 1.5px solid var(--border-soft);
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 13px;
  margin-top: 14px;
}
.storage-note p { margin: 6px 0 0; color: var(--text-sub); line-height: 1.7; }

@media (max-width: 1180px) {
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .topbar-inner {
    padding: 10px 16px;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }
  .search-bar { grid-column: 1 / -1; order: 3; }
  .brand-text em, .theme-label, .kbd-hint { display: none; }
  .page-shell { padding: 14px 16px 36px; }
  .detail-specs { grid-template-columns: 1fr; }
  .prep-banner { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .game-grid { grid-template-columns: 1fr; gap: 14px; }
  .ghost-pill { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

.footer-icp-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-icp-link:hover {
  color: var(--text-main);
  text-decoration: underline;
}
