/* Prevent horizontal scrollbar on main content only; do not set on html/body so fixed nav is not clipped */
.GAME-page { padding-bottom: 40px; overflow-x: hidden; }
.GAME-body #back-to-top { display: none !important; }
.GAME-main { margin: 0 auto; max-width: 1010px; width: 100%; padding: 0 20px; box-sizing: border-box; }
@media (max-width: 1020px) { .GAME-main { padding: 0 12px; } }

.GAME-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; margin: 8px 0; font-size: 14px; color: var(--text-secondary); }
.GAME-page .home-page-cols { padding-top: 8px; }
.GAME-page .GAME-breadcrumb { margin: 0 0 4px; line-height: 1.35; }
.GAME-page .GAME-breadcrumb + .GAME-player-wrap { margin-top: 12px; }
.GAME-breadcrumb a { color: #fbbf24; text-decoration: none; transition: color .2s ease; }
.GAME-breadcrumb a:hover { color: #fde68a; text-decoration: underline; }
.GAME-breadcrumb .sep { margin: 0 6px; color: rgba(255,255,255,0.38); }
.GAME-breadcrumb .current { color: rgba(255,255,255,0.92); }

.GAME-player-wrap { position: relative; margin: 24px 0; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 8px 32px rgba(0,0,0,.25); }
.GAME-player-inner { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; background: var(--bg); }
/* Mobile: taller play area (aligned with homepage .resp-iframe) */
@media (max-width: 767px) {
  .GAME-player-inner { padding-bottom: 140%; }
}
.GAME-iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; display: block; }
#game-play.internal-fullscreen-section {
  position: fixed !important; inset: 0 !important; width: 100vw !important; height: 100vh !important; height: 100dvh !important;
  z-index: 2147483600 !important; margin: 0 !important; border-radius: 0 !important; max-width: none !important;
  padding: 0 !important; background: var(--bg) !important; overflow: visible !important; box-shadow: none !important;
}
#game-play.internal-fullscreen-section .GAME-player-inner {
  position: absolute !important; left: 0; right: 0; top: 0; bottom: var(--controls-h, 96px);
  padding-bottom: 0 !important; height: auto !important; z-index: 1; overflow: hidden;
}
#game-play.internal-fullscreen-section .GAME-toolbar {
  position: absolute !important; left: 0; right: 0; bottom: 0; z-index: 2147483601;
  height: auto; min-height: 0;
  padding: .75rem 1rem;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.55) 100%);
  border-top: none; box-shadow: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; box-sizing: border-box;
}
#gameExpand.active,
#game-play.internal-fullscreen-section #gameExpand {
  background: linear-gradient(135deg, #f59e0b, #ff3b3b) !important;
  color: #111 !important;
  border-color: transparent !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.25) !important;
}
#gameExpand.active svg,
#game-play.internal-fullscreen-section #gameExpand svg { color: #111 !important; }
html.internal-fs .GAME-float-nav { display: none !important; }

.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; background: rgba(8, 13, 26, 0.45); }
.GAME-tap-hint-inner { display: inline-flex; align-items: center; gap: 10px; color: #f5f5f5; font-size: 15px; font-weight: 600; padding: 12px 20px; border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; background: rgba(30, 41, 67, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 12px 36px rgba(0,0,0,0.5); }
.GAME-tap-hint-icon { width: 22px; height: 22px; flex-shrink: 0; }
html[data-theme="light"] .GAME-tap-hint.is-visible { background: rgba(0, 0, 0, 0.28); }
html[data-theme="light"] .GAME-tap-hint-inner { background: rgba(255, 255, 255, 0.96); color: #111827; border-color: rgba(0,0,0,0.12); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }

.GAME-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0)); background: var(--surface); border-top: 1px solid var(--card-border); box-sizing: border-box; }
.GAME-toolbar-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); 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: var(--card-bg); border: 1px solid var(--card-border); border-radius: 8px; color: var(--text); cursor: pointer; transition: background .2s, color .2s; }
.GAME-toolbar-btn:hover { background: var(--surface); color: var(--accent); }
.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; }
.GAME-toolbar-btn .surprise-me-icon rect { fill: none; stroke: currentColor; }
.GAME-toolbar-btn .surprise-me-icon circle { fill: currentColor; stroke: none; }
@keyframes surprise-pulse { 0%, 100% { transform: scale(0.94); opacity: 0.9; } 50% { transform: scale(1.12); opacity: 1; } }
#surprise-me-btn.is-loading { opacity: 0.7; pointer-events: none; }
.GAME-icon-expand { width: 20px; height: 20px; }
.GAME-icon-expand path { fill: currentColor; }
@media (max-width: 768px) {
  #gameFullscreen { display: none !important; }
}

.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 { font-size: 17px; line-height: 1.7; color: var(--text-secondary); }

.GAME-newgames { margin: 40px 0 0; padding: 32px 0 8px; border-top: 1px solid var(--card-border); }
.GAME-newgames-heading {
  font-family: Outfit, Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: inherit;
  /* 颜色交给内部 .h2-gradient，勿写死 color，否则会白字盖住红金渐变 */
  margin: 0 0 1.5rem;
  letter-spacing: normal;
  text-align: center;
}
@media (min-width: 640px) {
  .GAME-newgames-heading { font-size: 1.875rem; line-height: 2.25rem; }
}
.GAME-newgames-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; max-width: 100%; width: 100%; min-width: 0; box-sizing: border-box; }
.GAME-newgames--under-ad { margin: 0 0 22px; padding: 0; border-top: 0; width: 100%; }
.ad-leaderboard-slot + .GAME-newgames--under-ad { margin-top: 0; }
.GAME-newgames-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.GAME-newgames-grid--6 .GAME-newgames-item { border-radius: 10px; }
.GAME-newgames-grid--6 .GAME-newgames-img-inner { border-radius: 10px 10px 0 0; }
.GAME-newgames-grid--6 .GAME-newgames-label {
  display: block;
  flex: 0 0 30px;
  min-height: 30px;
  height: 30px;
  line-height: 30px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid var(--card-border);
  border-radius: 0 0 10px 10px;
  box-sizing: border-box;
  background: var(--card-bg);
}
@media (max-width: 900px)  { .GAME-newgames-grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 520px)  { .GAME-newgames-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
.GAME-newgames-item {
  display: flex; flex-direction: column; width: 100%; min-width: 0;
  text-decoration: none; color: inherit;
  border-radius: 14px; overflow: visible;
  background: var(--card-bg); border: 1px solid var(--card-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.22s ease;
}
.GAME-newgames-item:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 32px rgba(0,0,0,0.22); }
.GAME-newgames-img-wrap {
  position: relative; display: block; width: 100%; aspect-ratio: 1;
  overflow: visible; background: var(--surface); flex-shrink: 0;
}
.GAME-newgames-img-inner {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 14px 14px 0 0;
}
.GAME-new-badge {
  position: absolute; top: -6px; right: -6px; z-index: 2;
  background: #16a34a;
  color: #fff;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(22,163,74,0.55);
  line-height: 1.2;
  pointer-events: none;
}
.GAME-newgames-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.GAME-newgames-item:hover .GAME-newgames-img { transform: scale(1.06); }
.GAME-newgames-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.42);
  opacity: 0; transition: opacity 0.22s ease;
}
.GAME-newgames-item:hover .GAME-newgames-overlay { opacity: 1; }
.GAME-newgames-play {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: #fff;
  padding: 6px 14px; border: 1.5px solid rgba(255,255,255,0.75);
  border-radius: 100px; background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
}
.GAME-newgames-play::before { content: "Play now"; }
.GAME-newgames-label {
  display: block;
  width: 100%;
  min-width: 0;
  height: 30px;
  line-height: 30px;
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 0 0 14px 14px;
  border-top: 1px solid var(--card-border);
  background: var(--card-bg);
  box-sizing: border-box;
}
.GAME-newgames-name {
  font-size: 12px; font-weight: 700; color: var(--text);
  line-height: 30px; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; text-align: left; width: 100%;
}
@media (max-width: 900px)  { .GAME-newgames-grid { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
@media (max-width: 700px)  { .GAME-newgames-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; } }
@media (max-width: 480px)  { .GAME-newgames-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; } }
@media (max-width: 360px)  { .GAME-newgames-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; } }

.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: var(--surface); border-radius: 10px; border-left: 4px solid var(--accent); }
.GAME-step-num { flex-shrink: 0; width: 36px; height: 36px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.GAME-step-img-wrap { margin-bottom: 12px; border-radius: 8px; overflow: hidden; max-width: 100%; }
.GAME-step-img-wrap img { display: block; width: 100%; max-width: 560px; height: auto; }
.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 ul { margin: 8px 0 0; padding-left: 0; list-style: none; }
.GAME-step-body-content li { margin: 6px 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.GAME-tag {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 52px; padding: 3px 10px; border-radius: 4px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #fff; flex-shrink: 0;
}
.GAME-tag--green { background: #538d4e; }
.GAME-tag--yellow { background: #b59f3b; color: #1a1a1a; }
.GAME-tag--grey { background: #3a3a3c; }

.GAME-diffle-examples { display: flex; flex-direction: column; gap: 14px; margin: 14px 0 4px; }
.GAME-diffle-ex { padding: 12px 14px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 10px; }
.GAME-diffle-ex-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 8px; }
.GAME-diffle-ch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 50%; font-size: 15px; font-weight: 700; color: #fff;
}
.GAME-diffle-ch--grey { background: #5c5c62; }
.GAME-diffle-ch--green { background: #5cb85c; }
.GAME-diffle-ch--yellow { background: #d4a72c; color: #1a1a1a; }
.GAME-diffle-ch--white { background: #ececf0; color: #3a3a3e; border: 1px solid rgba(255,255,255,0.22); }
.GAME-diffle-run { display: inline-flex; align-items: stretch; }
.GAME-diffle-run .GAME-diffle-ch { border-radius: 0; width: 32px; }
.GAME-diffle-run .GAME-diffle-ch:first-child { border-radius: 17px 0 0 17px; }
.GAME-diffle-run .GAME-diffle-ch:last-child { border-radius: 0 17px 17px 0; }
.GAME-diffle-run--full .GAME-diffle-ch:first-child { border-radius: 8px 0 0 8px; }
.GAME-diffle-run--full .GAME-diffle-ch:last-child { border-radius: 0 8px 8px 0; }
.GAME-diffle-ex-note { margin: 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }

.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 { font-size: 13px; font-weight: 700; color: var(--text-secondary); margin: 0 0 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.GAME-control-row { margin: 8px 0; font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.GAME-control-row:first-of-type { margin-top: 0; }
.GAME-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 10px;
  margin: 0 3px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text);
  background: linear-gradient(180deg, var(--surface) 0%, var(--card-border) 100%);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  box-shadow: 0 2px 0 rgba(0,0,0,.15), inset 0 1px 0 rgba(255,255,255,.08);
  line-height: 1.2;
}
.GAME-key.GAME-key--arrow { font-size: 14px; padding: 4px 6px; min-width: 24px; }
.GAME-key + .GAME-key { margin-left: 4px; }
.GAME-step-body-content .GAME-control-block + p { margin-top: 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-q { width: 100%; padding: 16px 44px 16px 18px; text-align: left; font-size: 16px; font-weight: 600; color: var(--text); background: var(--surface); 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-section:first-child { margin-top: 0; }

.GAME-content-extra { margin-top: 24px; }
.GAME-content-extra .resp-iframe,
.GAME-content-extra iframe { max-width: 100%; border-radius: 10px; overflow: hidden; }
.GAME-content-extra .resp-iframe { position: relative; width: 100%; padding-top: 56.25%; }
.GAME-content-extra .resp-iframe iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.GAME-video-section { margin-top: 32px; }
.GAME-video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #0b1220;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--card-border);
}
.GAME-video.is-playing { cursor: default; }
.GAME-video-poster {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111827 0%, #0f172a 100%);
}
.GAME-video-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.GAME-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  background: rgba(255, 0, 0, 0.88);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
  pointer-events: none;
}
.GAME-video.is-poster-ready:hover .GAME-video-play { transform: translate(-50%, -50%) scale(1.06); background: rgba(255, 0, 0, 1); }
.GAME-video-play svg { width: 32px; height: 32px; fill: #fff; margin-left: 4px; }
.GAME-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.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; transform: translateY(8px); transition: opacity .25s ease, visibility .25s ease, transform .25s ease; }
.GAME-float-nav.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.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(--surface); 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; transform: translateY(4px); transition: opacity .2s ease, visibility .2s ease, transform .2s ease; pointer-events: none; }
.GAME-float-nav-toc:hover .GAME-float-nav-toc-dropdown { opacity: 1; visibility: visible; transform: translateY(0); 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; transition: background .15s, color .15s; }
.GAME-float-nav-toc-dropdown a:hover { background: var(--surface); color: var(--accent); }
.GAME-float-nav-toc-dropdown a + a { border-top: 1px solid var(--card-border); }
.GAME-float-nav-top { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; background: linear-gradient(145deg, var(--accent) 0%, #d97706 100%); border: none; border-radius: 50%; color: #fff; cursor: pointer; box-shadow: 0 4px 16px rgba(249,115,22,.35); transition: transform .15s; }
.GAME-float-nav-top:hover { opacity: 0.95; }
.GAME-float-nav-top svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .GAME-float-nav { right: 12px; bottom: 12px; } .GAME-float-nav-toc-dropdown { min-width: 200px; } }
