/* ── GAME PAGE ─────────────────────────────────────────── */
.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; }

[data-theme="light"] { --ink-faint:#aaaaaa; }
[data-theme="dark"]  { --ink-faint:#57534e; }

/* ── LAYOUT ── */
.gp-layout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 20px 40px;
}
.gp-main { flex: 1; min-width: 0; }
.gp-sidebar {
  width: 244px;
  flex-shrink: 0;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  scrollbar-width: none;
  border-left: var(--border);
  padding-left: 16px;
}
.gp-sidebar::-webkit-scrollbar { display: none; }

/* ── GAME FRAME ── */
.gp-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: calc(78vh * 16 / 9);
  margin: 0 auto 24px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.45);
}

/* play cover — pointer-events:none, only play-btn is clickable */
.play-cover { position: absolute; inset: 0; pointer-events: none; }
.play-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.play-veil {
  position: absolute; inset: 0;
  background: linear-gradient(170deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.55) 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
  transition: background .2s;
}
.play-cover:hover .play-veil {
  background: linear-gradient(170deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,.65) 100%);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(249,115,22,.6); }
  60%       { box-shadow: 0 0 0 22px rgba(249,115,22,0); }
}
.play-btn {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent); border: 3px solid rgba(255,255,255,.9);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  animation: pulse 2.4s ease-out infinite;
  transition: transform .15s, background .15s;
  pointer-events: auto;
}
.play-btn:hover { transform: scale(1.1); background: #ea580c; }
.play-label {
  font-size: 11px; font-weight: 900; color: rgba(255,255,255,.75);
  letter-spacing: .12em; text-transform: uppercase;
}


/* game title — branded gradient strip above play button */
.play-title {
  align-self: stretch;
  padding: 14px 48px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(15,8,2,.18) 22%,
    rgba(15,8,2,.18) 78%,
    transparent 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(249,115,22,.2);
  border-bottom: 1px solid rgba(249,115,22,.2);
  font-size: 2rem; font-weight: 900;
  color: #fff;
  text-align: center;
  text-shadow: 0 0 32px rgba(249,115,22,.45), 0 2px 10px rgba(0,0,0,.8);
  letter-spacing: -.3px; line-height: 1.3;
  pointer-events: none;
}

/* iframe + floating fullscreen */
.gp-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: none;
}
.fs-btn {
  position: absolute; bottom: 10px; right: 10px; z-index: 20;
  width: 30px; height: 30px; border-radius: 6px;
  background: rgba(0,0,0,.55); border: none;
  color: rgba(255,255,255,.75); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .2s, background .15s, color .15s; opacity: 0;
}
.gp-frame.playing:hover .fs-btn { opacity: 1; }
.fs-btn:hover { background: var(--accent); color: #fff; opacity: 1 !important; }

.focus-hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 20; pointer-events: none;
  background: rgba(0,0,0,.62); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 14px; border-radius: 20px;
  white-space: nowrap;
  animation: hint-in .3s ease both, hint-fade 3s ease 2s forwards;
}
@keyframes hint-in   { from { opacity:0; transform: translateX(-50%) translateY(6px); } to { opacity:1; transform: translateX(-50%) translateY(0); } }
@keyframes hint-fade { to { opacity: 0; } }

/* ── SEO LEFT COLUMN ── */
#seo-col {
  background: var(--surface);
  border: var(--border);
  border-radius: 12px;
  padding: 4px 24px 24px;
}

.bc {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: 12px; font-weight: 700; color: var(--ink-faint);
  padding: 4px 0 16px;
}
.bc a { color: var(--ink-faint); text-decoration: none; transition: color .15s; }
[data-theme="dark"]  .bc a:hover { color: #fdba74; }
[data-theme="light"] .bc a:hover { color: var(--ink); }
.bc-sep { opacity: .4; }

/* ── SEO SECTIONS ── */
.seo-section { margin-bottom: 32px; }
.seo-h {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 900; color: var(--ink);
  margin-bottom: 14px;
}
.seo-bar { width: 4px; height: 18px; border-radius: 2px; flex-shrink: 0; }

.about-body { display: flex; flex-direction: column; gap: 12px; }
.about-body p { font-size: 16px; color: var(--ink-2); line-height: 1.85; }

.step-list { display: flex; flex-direction: column; gap: 12px; list-style: none; padding: 0; margin: 0; }
.step-item { display: flex; gap: 12px; align-items: flex-start; }
.step-num {
  width: 23px; height: 23px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 900; color: #fff; margin-top: 2px;
}
.step-text { font-size: 15px; color: var(--ink-2); line-height: 1.75; }

.faq-list { border-top: var(--border); }
.faq-item { border-bottom: var(--border); }
.faq-q {
  width: 100%; text-align: left; padding: 14px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  cursor: pointer; background: none; border: none;
  color: var(--ink); font-family: 'Nunito', sans-serif;
}
.faq-q-text { font-size: 15px; font-weight: 700; }
.faq-icon { font-size: 18px; font-weight: 900; color: var(--accent); flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease; }
.faq-item.open .faq-a { max-height: 300px; padding-bottom: 14px; }
.faq-a p { font-size: 15px; color: var(--ink-2); line-height: 1.78; }

/* ── FEATURES ── */
.feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.feat-list li { font-size: 15px; color: var(--ink-2); line-height: 1.6; padding-left: 18px; position: relative; }
.feat-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 900; font-size: 13px; }

/* ── CONTROLS ── */
.ctrl-list { display: flex; flex-direction: column; gap: 8px; }
.ctrl-row { display: flex; align-items: baseline; gap: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.ctrl-label { font-size: 11px; font-weight: 800; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; min-width: 52px; }
.ctrl-mobile { margin-top: 4px; padding-top: 10px; border-top: var(--border); }

/* ── TIPS ── */
.tips-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tips-list li { font-size: 15px; color: var(--ink-2); line-height: 1.78; padding-left: 20px; position: relative; }
.tips-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); font-weight: 900; }

/* ── GAME INFO ── */
.gi-table { display: flex; flex-direction: column; gap: 0; border-top: var(--border); }
.gi-row { display: flex; align-items: center; gap: 16px; padding: 10px 0; border-bottom: var(--border); }
.gi-label { font-size: 12px; font-weight: 800; color: var(--ink-muted); text-transform: uppercase; letter-spacing: .06em; min-width: 110px; flex-shrink: 0; }
.gi-value { font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* ── RELATED GAMES SIDEBAR ── */
.rel-section { margin-bottom: 24px; }
.rel-section:last-child { margin-bottom: 0; }
.rel-head {
  font-size: 13px; font-weight: 900; color: var(--ink);
  padding: 0 0 10px; border-bottom: var(--border); margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.rel-head-icon { font-size: 15px; line-height: 1; }
.rel-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.rel-card {
  position: relative;
  border-radius: 10px; overflow: hidden; text-decoration: none;
  background: var(--surface); border: 2px solid transparent;
  transition: border-color .15s;
}
.rel-card:hover { border-color: var(--accent); }
.rel-thumb {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  background: var(--surface-2);
}
.rel-title {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  background: linear-gradient(transparent, rgba(0,0,0,.82));
  color: #fff; font-size: 11px; font-weight: 800;
  padding: 18px 7px 6px; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transition: opacity .18s;
}
.rel-card:hover .rel-title { opacity: 1; }

/* ── MOBILE ── */
@media (max-width: 900px) {
  .gp-layout { flex-direction: column; gap: 0; padding-bottom: 24px; }
  .gp-sidebar {
    width: 100%; position: static; max-height: none;
    border-left: none; padding-left: 0;
    border-top: var(--border); padding-top: 16px; margin-top: 8px;
  }
  .rel-list { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 640px) {
  .gp-layout { padding: 12px 12px 24px; }
  .gp-frame { aspect-ratio: 4 / 3; }
  .bc { padding: 4px 0 12px; }
  .play-title { font-size: 1.1rem; padding: 12px 14px; }
  .rel-list { grid-template-columns: repeat(3, 1fr); }
}
