
:root {
  --bg: #0a0e17;
  --bg-2: #101624;
  --card: #151c2e;
  --card-2: #1a2340;
  --border: #243049;
  --text: #e8ecf5;
  --muted: #8b96ad;
  --accent: #f6821f;
  --accent-2: #ffb25e;
  --green: #4ade80;
  --radius: 14px;
  --shadow: 0 10px 32px rgba(0,0,0,.45);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  background-image:
    radial-gradient(900px 400px at 80% -10%, rgba(246,130,31,.09), transparent 60%),
    radial-gradient(700px 380px at 10% 0%, rgba(56,130,246,.08), transparent 60%);
  background-repeat: no-repeat;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,14,23,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-weight: 800; font-size: 19px; letter-spacing: .3px; display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #d97706);
  font-weight: 800; font-size: 15px; color: #fff;
  box-shadow: 0 3px 12px rgba(246,130,31,.35);
}
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--muted); font-size: 14px; font-weight: 700;
  padding: 8px 14px; border-radius: 8px; transition: .2s;
}
.nav-links a:hover { color: var(--text); background: var(--card-2); }

/* Breadcrumb */
.breadcrumb { padding: 22px 0 4px; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--accent-2); }
.breadcrumb span { color: var(--muted); }

/* Hero */
.game-hero { padding: 26px 0 8px; }
.game-title-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.game-title-row h1 { font-size: 30px; font-weight: 800; letter-spacing: .2px; }
.game-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tag {
  font-size: 12px; font-weight: 700; color: var(--accent-2);
  background: rgba(246,130,31,.1); border: 1px solid rgba(246,130,31,.25);
  padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .5px;
}

/* Game frame */
.frame-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); background: #000;
  box-shadow: var(--shadow);
}
.frame-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.frame-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } }
.frame-btns { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); background: var(--card-2); color: var(--text);
  font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 9px;
  cursor: pointer; transition: .2s; font-family: inherit;
}
.btn:hover { border-color: var(--accent); color: var(--accent-2); }
.btn-play {
  background: linear-gradient(135deg, var(--accent), #d97706); color: #fff; border: none;
  padding: 9px 22px; font-size: 14px; box-shadow: 0 4px 16px rgba(246,130,31,.3);
}
.btn-play:hover { filter: brightness(1.1); color: #fff; }
.iframe-holder { position: relative; width: 100%; }
#iframehtml5 { display: block; width: 100%; height: 560px; background: #000; border: 0; }
@media (max-width: 800px) { #iframehtml5 { height: 420px; } }
@media (max-width: 520px) { #iframehtml5 { height: 320px; } }
.force_full_screen { position: fixed !important; inset: 0 !important; width: 100% !important; height: 100% !important; z-index: 99998; }

/* Related games */
.section { margin-top: 34px; }
.section-title { font-size: 20px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-title::before { content: ''; width: 4px; height: 22px; border-radius: 2px; background: linear-gradient(var(--accent), #d97706); }
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 14px;
}
.related-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.related-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 10px 26px rgba(0,0,0,.4); }
.related-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.related-card .rc-title {
  font-size: 13.5px; font-weight: 700; padding: 10px 12px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* SEO content */
.seo-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow);
}
.seo-card h2 { font-size: 21px; font-weight: 800; margin: 26px 0 10px; }
.seo-card h2:first-child { margin-top: 0; }
.seo-card h3 { font-size: 17px; font-weight: 700; margin: 22px 0 8px; color: var(--accent-2); }
.seo-card p { color: #c3cbdc; margin-bottom: 12px; }
.seo-card ul, .seo-card ol { padding-left: 22px; margin-bottom: 12px; }
.seo-card li { margin-bottom: 6px; color: #c3cbdc; }
.seo-card strong { color: var(--text); }

/* Footer */
.site-footer { margin-top: 46px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { padding: 28px 0; text-align: center; color: var(--muted); font-size: 14px; }
.footer-links { margin-top: 12px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--accent-2); font-weight: 700; }
.footer-links a:hover { text-decoration: underline; }

/* Skip link + focus */
.skip-link { position: absolute; top: -50px; left: 16px; background: var(--accent); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 1000; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
