/* 与首页 main.max-w-7xl（px-4 / sm:px-6 / lg:px-8）同宽同边距 */
.games-header-inner { box-sizing: border-box; }

.GAME-page { padding-bottom: 40px; }
.GAME-main,
.GAMES-main {
  margin-left: auto;
  margin-right: auto;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 40rem) {
  .GAME-main,
  .GAMES-main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 64rem) {
  .GAME-main,
  .GAMES-main {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.GAME-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; margin: 8px 0 6px; font-size: 13px; color: var(--text-secondary); }
.GAME-breadcrumb a { color: var(--brand-yellow); text-decoration: none; }
.GAME-breadcrumb a:hover { text-decoration: underline; }
.GAME-breadcrumb .sep { margin: 0 5px; color: var(--text-secondary); }
.GAME-breadcrumb .current { color: #6b7280; }

/* iframe 播放区：与首页 .card 一致 */
.GAME-player-wrap { position: relative; margin: 6px 0 16px; border-radius: 14px; overflow: hidden; background: var(--card-bg); border: 1px solid var(--card-border); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.GAME-player-inner { position: relative; width: 100%; padding-bottom: 67%; height: 0; background: var(--bg); overflow: hidden; }
.GAME-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  border-radius: 0;
  overflow: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.GAME-player-wrap,
.GAME-player-inner,
.GAME-iframe {
  overflow: hidden !important;
}
.GAME-iframe::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.GAME-player-wrap.is-expanded { position: fixed; inset: 0; z-index: 9999; margin: 0; border-radius: 0; max-width: none; width: 100vw; height: 100vh; height: 100dvh; }
.GAME-player-wrap.is-expanded .GAME-player-inner { position: absolute; top: 0; left: 0; right: 0; bottom: 48px; padding-bottom: 0; height: auto; z-index: 1; }
.GAME-player-wrap.is-expanded .GAME-toolbar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 2; height: 48px; min-height: 48px; padding: 0 14px; padding-bottom: env(safe-area-inset-bottom, 0); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card-bg); box-shadow: 0 -2px 12px rgba(0,0,0,.35); box-sizing: border-box; border-top: 1px solid var(--card-border); }
body.GAME-body:has(.GAME-player-wrap.is-expanded) { overflow: hidden; }

.GAME-tap-hint { display: none; position: absolute; inset: 0; z-index: 8; align-items: center; justify-content: center; pointer-events: none; }
.GAME-tap-hint.is-visible { display: flex; }
.GAME-tap-hint-inner { display: inline-flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 15px; padding: 10px 18px; border: 1px solid var(--card-border); border-radius: 10px; background: var(--card-bg); }

.GAME-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 14px; padding-bottom: calc(7px + env(safe-area-inset-bottom, 0)); background: var(--card-bg); border-top: 1px solid var(--card-border); box-sizing: border-box; }
.GAME-toolbar-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--heading-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.GAME-toolbar-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.GAME-toolbar-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; background: rgba(59,211,128,.12); border: 1px solid rgba(59,211,128,0.4); border-radius: 8px; color: var(--text-secondary); cursor: pointer; transition: background .2s, color .2s; }
.GAME-toolbar-btn--labeled { width: auto; min-width: 40px; padding: 0 12px; gap: 6px; }
.GAME-toolbar-btn__label { font-size: 13px; font-weight: 600; white-space: nowrap; line-height: 1; color: currentColor; }
.GAME-toolbar-btn .game-favorite-btn__label { color: currentColor; }
.GAME-toolbar-btn.game-favorite-btn.is-favorited:not(:hover) .game-favorite-btn__label { color: #3bd380; }
[data-theme="light"] .GAME-toolbar-btn.game-favorite-btn.is-favorited:not(:hover) .game-favorite-btn__label { color: #1ea85e; }
.GAME-toolbar-btn.game-favorite-btn.is-favorited:not(:hover) .favorite-icon--on { color: #3bd380; }
[data-theme="light"] .GAME-toolbar-btn.game-favorite-btn.is-favorited:not(:hover) .favorite-icon--on { color: #1ea85e; }
.GAME-toolbar-btn:hover,
.GAME-toolbar-btn:hover .GAME-toolbar-btn__label,
.GAME-toolbar-btn:hover .game-favorite-btn__label,
.GAME-toolbar-btn:hover .favorite-icon,
.GAME-toolbar-btn:hover .favorite-icon--on,
.GAME-toolbar-btn:hover .favorite-icon--off,
.GAME-toolbar-btn:hover svg,
.GAME-toolbar-btn:hover .surprise-me-icon {
  color: #ffffff;
}
.GAME-toolbar-btn:hover { background: var(--brand-yellow); border-color: #0d2818; }
.GAME-toolbar-btn:hover svg,
.GAME-toolbar-btn:hover .favorite-icon--off { fill: none; stroke: currentColor; }
.GAME-toolbar-btn:hover .favorite-icon--on,
.GAME-toolbar-btn:hover svg:not(.favorite-icon--off) { fill: currentColor; stroke: currentColor; }
.GAME-toolbar-btn svg { width: 20px; height: 20px; fill: currentColor; }
.GAME-toolbar-btn .surprise-me-icon { width: 20px; height: 20px; animation: surprise-pulse 1.8s ease-in-out infinite; }
@keyframes surprise-pulse { 0%, 100% { transform: scale(0.94); opacity: 0.9; } 50% { transform: scale(1.12); opacity: 1; } }
.GAME-icon-expand { width: 20px; height: 20px; }
.GAME-icon-expand path { fill: currentColor; }
@media (max-width: 768px) {
  #gameFullscreen { display: none !important; }
  .GAME-toolbar-btn--labeled { width: 40px; padding: 0; gap: 0; }
  .GAME-toolbar-btn--labeled .GAME-toolbar-btn__label,
  .GAME-toolbar-btn--labeled .game-favorite-btn__label { display: none; }
  .GAME-player-inner { padding-bottom: 128%; }
}
@media (max-width: 480px) {
  .GAME-player-inner { padding-bottom: 128%; }
}

.GAME-intro-title { font-size: 28px; font-weight: 700; color: var(--text); text-align: center; margin: 0 0 20px; letter-spacing: 0.02em; line-height: 1.25; }
.GAME-intro-img-wrap { text-align: center; margin: 0 0 20px; }
.GAME-intro-img-wrap img { display: block; max-width: 100%; height: auto; border-radius: 10px; margin-left: auto; margin-right: auto; }
.GAME-intro-video-wrap { margin: 0 auto 20px; max-width: 720px; width: 100%; }
.GAME-intro-video-wrap.GAME-video-wrap { margin-top: 0; }
.GAME-intro-video-wrap .GAME-video-inner { margin-left: auto; margin-right: auto; }
.GAME-intro { font-size: 17px; line-height: 1.7; color: var(--text-secondary); }
.GAME-intro a.game-official-link {
  color: #3bd380 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
.GAME-intro a.game-official-link:hover {
  color: #3bd380 !important;
  text-decoration: underline !important;
}
[data-theme="light"] .GAME-intro a.game-official-link,
[data-theme="light"] .GAME-intro a.game-official-link:hover {
  color: #1ea85e !important;
}

.GAME-newgames { margin: 40px 0 0; padding: 32px 0 8px; border-top: 1px solid var(--card-border); }
.GAME-newgames-heading { font-size: 24px; font-weight: 700; color: var(--text); margin: 0 0 28px; letter-spacing: 0.03em; text-align: center; }
/* Similar-game tiles use .GAMES-grid / .GAMES-card from games.css (same as list page: 5 per row on desktop). */
.GAME-newgames .GAMES-grid { margin-bottom: 0; width: 100%; }
@media (max-width: 768px) { .GAME-newgames-heading { font-size: 20px; margin-bottom: 20px; } }

.GAME-content { margin-top: 40px; }
.GAME-article { background: var(--card-bg); border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,.15); padding: 32px 36px; margin-bottom: 24px; border: 1px solid var(--card-border); }
.GAME-article h1 { font-size: 26px; font-weight: 700; color: var(--text); margin: 0 0 20px; line-height: 1.3; }
.GAME-article h2 { font-size: 20px; font-weight: 600; color: var(--text); margin: 28px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--card-border); }
.GAME-article h3 { font-size: 17px; font-weight: 600; color: var(--text); margin: 20px 0 8px; }
.GAME-article p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--text-secondary); }
.GAME-article ul, .GAME-article ol { margin: 12px 0; padding-left: 24px; }
.GAME-article li { margin: 6px 0; line-height: 1.6; color: var(--text-secondary); }

.GAME-steps { margin: 24px 0; }
.GAME-step { display: flex; gap: 16px; margin-bottom: 20px; padding: 20px; background: rgba(255,159,28,.08); border-radius: 10px; border-left: 4px solid var(--brand-yellow); }
.GAME-step-num { flex-shrink: 0; width: 36px; height: 36px; background: var(--brand-yellow); color: #0E1A16; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.GAME-step-body { text-align: left; }
.GAME-step .GAME-step-img-wrap { display: block; width: fit-content; max-width: 100%; margin-bottom: 12px; margin-left: 0; margin-right: auto; border-radius: 12px !important; overflow: hidden !important; }
.GAME-step .GAME-step-img-wrap img { display: block; max-width: 600px; width: 100%; height: auto; max-height: 400px; object-fit: contain; border-radius: 12px !important; }
@media (max-width: 768px) { .GAME-step .GAME-step-img-wrap img { max-width: min(360px, 90vw); } }
.GAME-step-body h3 { margin: 0 0 6px; font-size: 17px; }
.GAME-step-body-content { font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
.GAME-step-body-content p { margin: 0 0 10px; }
.GAME-step-body-content p:last-child { margin-bottom: 0; }
.GAME-tile-tag,
.GAME-hint-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 700;
  line-height: 1.45;
  vertical-align: baseline;
}
.GAME-tile-green { background: #538d4e; color: #fff; }
.GAME-tile-yellow { background: #b59f3b; color: #fff; }
.GAME-tile-gray { background: #3a3a3c; color: #fff; }
.GAME-tile-orange { background: #f5793a; color: #fff; }
.GAME-hint-cold { background: #60a5fa; color: #fff; }
.GAME-hint-warm { background: #fbbf24; color: #1a1a1a; }
.GAME-hint-hot { background: #f97316; color: #fff; }
.GAME-hint-close { background: #ef4444; color: #fff; }
[data-theme="light"] .GAME-tile-gray { background: #787c7e; color: #fff; }

.GAME-control-block { margin: 14px 0 18px; padding: 14px 16px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px; }
.GAME-control-block:last-child { margin-bottom: 0; }
.GAME-control-title { display: inline-flex; align-items: center; font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 10px; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 0 6px 12px; border-left: 4px solid var(--brand-yellow); border-radius: 0 6px 6px 0; background: rgba(255,159,28,.12); }
.GAME-control-title.GAME-control-title--pc { border-left-color: #60a5fa; background: rgba(96,165,250,.12); }
.GAME-control-title.GAME-control-title--mobile { border-left-color: #34d399; background: rgba(52,211,153,.12); }
.GAME-control-title .GAME-control-title-icon { margin-right: 8px; font-size: 16px; line-height: 1; opacity: .9; }
.GAME-control-row { margin: 8px 0; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.GAME-control-row .GAME-key { vertical-align: middle; }
.GAME-key { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; padding: 5px 10px; margin: 0 4px; font-size: 13px; font-weight: 700; font-family: inherit; color: #1f2937; background: linear-gradient(180deg, #eef1f5 0%, #e0e4ea 100%); border: 1px solid #c5cad3; border-radius: 6px; box-shadow: 0 1px 0 rgba(255,255,255,.8), 0 2px 4px rgba(0,0,0,.12); line-height: 1.2; }
.GAME-key.GAME-key--arrow { font-size: 14px; padding: 5px 8px; min-width: 26px; }
.GAME-key.GAME-key--space { min-width: 56px; padding: 5px 12px; }
.GAME-faq { margin: 24px 0; }
.GAME-faq-item { border: 1px solid var(--card-border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; background: var(--card-bg); }
.GAME-faq-h { display: contents; }
.GAME-faq-q { width: 100%; padding: 16px 44px 16px 18px; text-align: left; font-size: 16px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.04); border: none; cursor: pointer; position: relative; }
.GAME-faq-q::after { content: ''; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid var(--text-secondary); transition: transform .2s; }
.GAME-faq-item.is-open .GAME-faq-q::after { transform: translateY(-50%) rotate(180deg); }
.GAME-faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.GAME-faq-a-inner { padding: 0 0 16px; font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.GAME-faq-item.is-open .GAME-faq-a { max-height: 400px; }
.GAME-section { margin-top: 32px; }
.GAME-video-wrap { margin-top: 24px; }
.GAME-video-wrap h2 { font-size: 18px; font-weight: 600; color: var(--text); margin: 0 0 12px; }
.GAME-video-wrap .GAME-video-inner { position: relative; width: 100%; max-width: 720px; padding-bottom: 56.25%; height: 0; border-radius: 10px; overflow: hidden; background: #111; }
.GAME-video-wrap .GAME-video-inner iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.GAME-video-poster { position: absolute; inset: 0; margin: 0; padding: 0; border: none; background: #111; cursor: pointer; width: 100%; height: 100%; }
.GAME-video-thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.GAME-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 50px;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: #ff0000;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.GAME-video-play svg { width: 26px; height: 26px; margin-left: 4px; fill: currentColor; }
.GAME-video-play:hover {
  background: #d90000;
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.42);
}
.GAME-float-nav { position: fixed; right: 20px; bottom: 20px; z-index: 9998; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
.GAME-float-nav.visible { opacity: 1; visibility: visible; }
.GAME-float-nav-toc-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 48px; height: 48px; padding: 0; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 50%; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.GAME-float-nav-toc-btn span { display: block; width: 14px; height: 1.5px; background: var(--text); border-radius: 1px; }
.GAME-float-nav-toc-dropdown { position: absolute; bottom: 100%; right: 0; margin-bottom: 2px; min-width: 220px; padding: 10px 0; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,.3); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; }
.GAME-float-nav-toc:hover .GAME-float-nav-toc-dropdown { opacity: 1; visibility: visible; pointer-events: auto; }
.GAME-float-nav-toc { position: relative; }
.GAME-float-nav-toc-dropdown a { display: block; padding: 10px 18px; font-size: 14px; color: var(--text); text-decoration: none; }
.GAME-float-nav-toc-dropdown a:hover { background: rgba(255,255,255,.08); color: var(--text); }
.GAME-float-nav-top { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); border-radius: 50%; color: #fff; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.GAME-float-nav-top svg { width: 18px; height: 18px; }
