/* fightgamezone-style portal — H5 + desktop */
:root {
  --bg-page: #C4DCFF;
  --bg-card: #ffffff;
  --bg-header: linear-gradient(135deg, #0f3460 0%, #16213e 50%, #1a1a2e 100%);
  --accent: #e94560;
  --accent-soft: rgba(233, 69, 96, 0.12);
  --text: #1a2744;
  --text-muted: #5a6b85;
  --star: #f5b301;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 24px rgba(15, 52, 96, 0.08);
  --shadow-hover: 0 14px 36px rgba(15, 52, 96, 0.14);
  --header-h: 56px;
  --maxw: 1200px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: clamp(15px, 2.8vw, 16px);
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-page);
  min-height: 100dvh;
  padding-bottom: calc(24px + var(--safe-bottom));
}

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

.adv {
  width: 100%;
  display: grid;
  place-items: center;
  margin: 5px auto 5px;
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  padding-top: var(--safe-top);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 12px;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}

.header-zone {
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-zone--left {
  justify-content: flex-start;
}

.header-zone--right {
  justify-content: flex-end;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1rem, 4vw, 1.15rem);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  grid-column: 2;
  justify-self: center;
}

.logo--center {
  max-width: 100%;
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  grid-column: 2;
  justify-self: center;
}

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

.header-top > img:first-child {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.header-top > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: clamp(1rem, 4vw, 1.15rem);
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: capitalize;
}

.bg-title {
  width: auto;
  max-width: min(160px, 34vw);
  max-height: 28px;
  object-fit: contain;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  font-size: 0.75rem;
  line-height: 1;
}

.logo-accent {
  color: var(--accent);
  font-weight: 700;
}

/* 左侧快捷菜单按钮 */
.quick-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  flex-shrink: 0;
}

.quick-menu-btn:hover,
.quick-menu-btn:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.quick-menu-btn-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 0 auto;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.quick-menu-btn[aria-expanded="true"] .quick-menu-btn-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.quick-menu-btn[aria-expanded="true"] .quick-menu-btn-bar:nth-child(2) {
  opacity: 0;
}

.quick-menu-btn[aria-expanded="true"] .quick-menu-btn-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 顶部搜索 */
.header-search {
  display: flex;
  align-items: stretch;
  max-width: min(240px, 42vw);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  flex-shrink: 1;
}

.header-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  padding: 8px 4px 8px 12px;
  outline: none;
}

.header-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.header-search-submit {
  width: 40px;
  flex-shrink: 0;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-search-submit:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (min-width: 720px) {
  .bg-title {
    max-width: 190px;
    max-height: 32px;
  }

  .header-search {
    max-width: 280px;
  }

  .header-search-input {
    font-size: 0.9rem;
    padding-left: 14px;
  }
}

/* 顶部搜索按钮 + 浮层（与左侧快捷菜单按钮：同尺寸、透明底、仅图标） */
.header-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.header-search-trigger:hover,
.header-search-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.header-search-trigger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.header-search-trigger-svg {
  display: block;
}

.search-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 195;
  background: rgba(10, 15, 30, 0.42);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.search-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-sheet {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + var(--safe-top));
  z-index: 200;
  padding: 18px clamp(16px, 5vw, 40px) 22px;
  max-height: calc(100dvh - var(--header-h) - var(--safe-top));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #1a2744 0%, #16213e 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease,
    visibility 0.2s;
}

.search-sheet.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.search-sheet-open {
  overflow: hidden;
}

.search-sheet-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  padding: 0 48px 0 0;
  width: 100%;
  box-sizing: border-box;
}

.search-sheet-title {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  letter-spacing: -0.02em;
}

.search-sheet-form {
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto 4px;
}

.search-sheet-input {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  padding: 14px 16px;
  outline: none;
}

.search-sheet-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

/* 与顶栏搜索按钮一致：仅图标、透明底 */
.search-sheet-submit {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.search-sheet-submit:hover,
.search-sheet-submit:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.search-sheet-submit-svg {
  display: block;
}

.search-sheet-close {
  position: absolute;
  top: -2px;
  right: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.search-sheet-close:hover,
.search-sheet-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.search-sheet-categories {
  margin-top: 22px;
  max-width: 100%;
}

.search-sheet-cat-hint {
  display: block;
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

.search-sheet-cat-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}

@media (min-width: 400px) {
  .search-sheet-cat-chips {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

/* 10 个分类：桌面端 5×2 对称排布 */
@media (min-width: 640px) {
  .search-sheet-cat-chips {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.search-sheet-cat-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px 8px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.85rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.15s, border-color 0.15s;
  box-sizing: border-box;
}

.search-sheet-cat-chip:hover,
.search-sheet-cat-chip:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

.search-sheet-cat-chip-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--tile-bg, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.search-sheet-cat-chip-icon-wrap .category-icon-inline {
  width: 16px;
  height: 16px;
  color: #fff;
}

.search-sheet-cat-chip-text {
  flex: 1;
  min-width: 0;
  line-height: 1.2;
  padding-right: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 搜索结果页 */
.search-page-head {
  margin-bottom: 18px;
}

.search-page-kicker {
  margin: 0 0 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.search-page-title {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.search-query-inline {
  color: var(--accent);
  font-weight: 800;
}

.search-results-meta {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.search-empty-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 52, 96, 0.06);
}

.search-empty-icon {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.35;
}

.search-empty-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.search-empty-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.search-results-block {
  margin-bottom: 28px;
}

/* 左侧分类抽屉 */
.quick-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 15, 30, 0.45);
  z-index: 180;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.quick-menu-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.quick-menu-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  z-index: 190;
  background: linear-gradient(180deg, #1a2744 0%, #16213e 100%);
  box-shadow: 12px 0 40px rgba(0, 0, 0, 0.35);
  padding: calc(12px + var(--safe-top)) 0 24px;
  transform: translateX(-105%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.quick-menu-panel.is-open {
  transform: translateX(0);
}

body.quick-menu-open {
  overflow: hidden;
}

.quick-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-menu-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
}

.quick-menu-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.quick-menu-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.quick-menu-nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px calc(20px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.quick-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.15s;
}

.quick-menu-link:hover,
.quick-menu-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.quick-menu-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--tile-bg, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.quick-menu-link-icon .category-icon-mask {
  width: 22px;
  height: 22px;
  background: #fff;
}

.quick-menu-link-icon .category-icon-inline {
  width: 22px;
  height: 22px;
  color: #fff;
}

.quick-menu-link-text {
  flex: 1;
  min-width: 0;
}

/* Main */
.main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 16px;
}

.section {
  padding: 24px 0;
}

.section-head {
  margin-bottom: 18px;
}

.section-title {
  margin: 0 0 6px;
  font-size: clamp(1.35rem, 4.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Game grid — mobile dense, desktop wide */
.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 480px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

@media (min-width: 720px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .game-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1280px) {
  .game-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.game-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.game-card:hover,
.game-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.game-thumb-wrap {
  position: relative;
  aspect-ratio: 1;
  background: linear-gradient(145deg, #dfe8f3 0%, #c5d4e8 100%);
  overflow: hidden;
}

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

.game-body {
  padding: 10px 10px 12px;
}

.game-title {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.35em;
}

@media (min-width: 720px) {
  .game-title {
    font-size: 0.875rem;
  }
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.game-plays {
  font-variant-numeric: tabular-nums;
}

.game-rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--text);
  font-weight: 600;
}

.game-rating .star {
  color: var(--star);
  font-size: 0.85rem;
  line-height: 1;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
}

.btn-load-more {
  min-height: 48px;
  padding: 0 32px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(180deg, #e94560 0%, #c73e54 100%);
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-load-more:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 28px rgba(233, 69, 96, 0.45);
}

.btn-load-more:active {
  transform: scale(0.98);
}

.btn-load-more:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Categories — 两列白卡片：左图标井 + 右标题（对齐参考截图） */
.categories-section .section-title {
  margin-bottom: 6px;
}

.category-section-sub {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.category-scroll-outer {
  margin: 0;
  padding: 0;
}

.category-list--tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.category-tile-item {
  min-width: 0;
}

.category-tile {
  --tile-bg: #4e7cff;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 52, 96, 0.06);
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.category-tile:hover,
.category-tile:focus-visible {
  box-shadow: var(--shadow-hover);
  transform: translateY(-1px);
  outline: none;
}

.category-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.category-icon-wrap {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #eef2f8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.category-tile:hover .category-icon-wrap,
.category-tile:focus-visible .category-icon-wrap {
  background: color-mix(in srgb, var(--tile-bg) 14%, #eef2f8);
}

@supports not (background: color-mix(in srgb, red, blue)) {
  .category-tile:hover .category-icon-wrap,
  .category-tile:focus-visible .category-icon-wrap {
    background: #e8edf5;
  }
}

.category-icon-mask {
  /* legacy: kept for compatibility, but no longer used */
  --icon-url: none;
  width: 26px;
  height: 26px;
  display: block;
  background-color: var(--tile-bg);
  -webkit-mask-image: var(--icon-url);
  mask-image: var(--icon-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.category-icon-inline {
  width: 26px;
  height: 26px;
  display: block;
  color: var(--tile-bg);
}

.category-icon-inline svg {
  width: 100%;
  height: 100%;
  display: block;
}

.category-name {
  flex: 1;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
}

@media (min-width: 480px) {
  .category-list--tiles {
    gap: 14px;
  }

  .category-tile {
    min-height: 68px;
    padding: 14px 16px;
  }

  .category-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 11px;
  }

  .category-name {
    font-size: 0.98rem;
  }
}

/* 游戏详情页 */
.play-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.play-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.play-back:hover {
  text-decoration: underline;
}

.play-frame-wrap {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-height: min(70dvh, 560px);
}

.play-cover {
  width: 100%;
  height: 100%;
  min-height: 280px;
  display: block;
  object-fit: cover;
  background: #0a0f18;
}

.play-frame {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
  display: block;
  background: #0a0f18;
}

.play-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 280px;
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: center;
  padding: 24px;
  background: #0a0f18;
}

.play-title {
  margin: 16px 0 8px;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  font-weight: 700;
}

.play-start-wrap {
  margin: 16px 0 20px;
  display: flex;
  justify-content: center;
}

.play-start-btn {
  min-height: 42px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.play-meta-row {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 20px;
}

.play-info-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.play-info-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 52, 96, 0.06);
}

.play-info-h {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.play-info-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

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

.play-tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  border: 1px solid rgba(233, 69, 96, 0.2);
}

.play-recommend {
  padding-top: 8px;
  padding-bottom: 32px;
}

.play-recommend .section-title {
  margin-bottom: 16px;
}

/* About */
.about-card {
  background: var(--bg-card);
  padding: 20px 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-card p {
  margin: 0 0 12px;
}

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

/* Footer */
.site-footer {
  margin-top: 32px;
  padding: 28px 16px calc(28px + var(--safe-bottom));
  background: #16213e;
  color: rgba(255, 255, 255, 0.65);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-bottom: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

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

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* 页脚二级页（Company / Privacy / Terms） */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 8px 0 32px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.legal-page .legal-updated {
  margin: 0 0 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.legal-page h2 {
  margin: 28px 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.legal-page p,
.legal-page li {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-page ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
}

.legal-page a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.legal-page a:hover {
  text-decoration: underline;
}

/* 分类二级页（参照 interest/list：面包屑 + 色条头图 + 网格 + 更多分类） */
.category-breadcrumb {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4px 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.category-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.category-breadcrumb-sep {
  opacity: 0.45;
  user-select: none;
}

#category-bc-current {
  color: var(--text);
  font-weight: 700;
}

.category-empty-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 52, 96, 0.06);
  max-width: 480px;
  margin: 24px auto;
}

.category-empty-title {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.category-empty-desc {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.category-hero {
  --tile-bg: #4e7cff;
  border-radius: var(--radius);
  margin: 0 0 24px;
  color: #fff;
  box-shadow: 0 12px 40px rgba(15, 52, 96, 0.18);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.14) 0%, transparent 55%), var(--tile-bg);
}

.category-hero-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 18px;
}

@media (min-width: 640px) {
  .category-hero-inner {
    padding: 28px 28px;
    gap: 24px;
  }
}

.category-hero-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

@media (min-width: 640px) {
  .category-hero-icon-wrap {
    width: 88px;
    height: 88px;
  }
}

.category-hero-icon-wrap .category-icon-inline {
  width: 36px;
  height: 36px;
  color: #fff;
}

@media (min-width: 640px) {
  .category-hero-icon-wrap .category-icon-inline {
    width: 44px;
    height: 44px;
  }
}

.category-hero-text {
  min-width: 0;
  flex: 1;
}

.category-hero-title {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 4.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.category-hero-meta {
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.95;
}

.category-hero-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.9;
  max-width: 52ch;
}

.category-games-section {
  padding-top: 0;
}

.category-no-games {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.category-more-section {
  padding-top: 8px;
}

.category-more-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-more-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid rgba(15, 52, 96, 0.08);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.category-more-chip:hover,
.category-more-chip:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  outline: none;
}

.category-more-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--tile-bg, #64748b);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-more-chip-icon .category-icon-inline {
  width: 16px;
  height: 16px;
  color: #fff;
}

.game-grid-loading-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 36px 16px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.game-load-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 16px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.play-no-embed-hint {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.play-no-embed-hint a {
  color: var(--accent);
  font-weight: 600;
}
