/* ------------------------------------------------------------------ */
/* BiteArcade — game portal theme                                      */
/* ------------------------------------------------------------------ */
:root {
  --bg: #0e0e14;
  --bg-2: #15151f;
  --card: #1b1b27;
  --card-2: #232333;
  --text: #ececf2;
  --muted: #9a9ab0;
  --accent: #7c5cff;
  --accent-2: #00d4ff;
  --border: #2a2a3a;
  --radius: 14px;
  --wrap: 1180px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); padding: 8px 14px; border-radius: 8px; z-index: 50; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(14, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: .2px; }
.logo-mark { flex: none; }
.search { flex: 1; max-width: 460px; }
.search input {
  width: 100%; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: 15px;
}
.search input:focus { outline: none; border-color: var(--accent); }
.nav { display: flex; gap: 18px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--accent-2); }

/* hero */
.hero { padding: 46px 0 14px; background: radial-gradient(1100px 380px at 50% -120px, rgba(124, 92, 255, .25), transparent); }
.hero h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; }
.hero h1 .muted { font-weight: 600; font-size: .55em; display: block; margin-top: 6px; }
.lede { color: var(--muted); max-width: 720px; font-size: 17px; }

/* chips */
.chips-wrap { padding-top: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 15px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); font-weight: 600; font-size: 14px; transition: .15s;
}
.chip span { color: var(--muted); font-weight: 500; margin-left: 4px; }
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip.active span { color: rgba(255,255,255,.8); }

/* grid + cards */
.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.card { display: block; transition: transform .15s; }
.card:hover { transform: translateY(-4px); }
.card-thumb {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden;
  background: var(--card-2); box-shadow: var(--shadow);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-cat {
  position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 700;
  background: rgba(0,0,0,.55); padding: 3px 8px; border-radius: 999px; backdrop-filter: blur(4px);
}
.card-play {
  position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(transparent, rgba(124,92,255,.35)); opacity: 0; transition: .15s;
}
.card:hover .card-play { opacity: 1; }
.card-title { font-size: 15px; font-weight: 600; margin: 9px 2px 0; }

/* rails / sections */
.rail { margin: 34px 0; }
.rail-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.rail-head h2 { font-size: 22px; font-weight: 800; }
.more { color: var(--accent-2); font-weight: 600; font-size: 14px; }
.more:hover { text-decoration: underline; }

/* page heads */
.page-head { padding: 34px 0 8px; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a:hover { color: var(--accent-2); }
.filter, .page-head .filter { margin-top: 14px; }
.filter input {
  width: 100%; max-width: 420px; height: 42px; padding: 0 16px; border-radius: 10px;
  background: var(--card); border: 1px solid var(--border); color: var(--text); font-size: 15px;
}
.filter input:focus { outline: none; border-color: var(--accent); }
.no-results { padding: 30px 0; }

/* game page */
.game-layout { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 24px 0 60px; }
@media (min-width: 1000px) { .game-layout { grid-template-columns: 1fr 300px; } }
.game-main h1 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.player { position: relative; width: 100%; padding-bottom: var(--ratio, 70%); border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.player-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-demo { padding-bottom: 56%; }
.player-demo-inner {
  position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 6px; padding: 24px;
  background: linear-gradient(135deg, #1a1730, #232333);
}
.player-demo-badge { justify-self: center; font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--accent-2); border: 1px solid var(--accent-2); border-radius: 999px; padding: 3px 10px; }
.player-demo-inner h3 { font-size: 20px; margin-top: 8px; }
.player-demo-inner p { color: var(--muted); max-width: 460px; margin: 0 auto; }
.player-demo-inner code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.player-bar { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: #fff;
  border: 0; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.game-info { margin-top: 26px; }
.game-info h2 { font-size: 18px; margin-top: 22px; }
.game-info p { color: #c7c7d6; max-width: 720px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tag { font-size: 12px; background: var(--card); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; color: var(--muted); }
.game-aside h2 { font-size: 16px; margin-bottom: 12px; }
.game-aside .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

/* prose / legal */
.prose { padding: 34px 0 60px; max-width: 760px; }
.prose h1 { font-size: 32px; font-weight: 900; }
.prose h2 { font-size: 19px; margin-top: 26px; }
.prose p, .prose li { color: #c7c7d6; }
.prose a { color: var(--accent-2); }
.prose a:hover { text-decoration: underline; }

/* ad slot */
.ad-slot { margin: 24px 0; min-height: 90px; display: grid; place-items: center; border: 1px dashed var(--border); border-radius: 10px; }

/* footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); margin-top: 40px; padding: 36px 0 24px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; }
.footer-inner .muted { max-width: 420px; margin: 10px 0 0; font-size: 14px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.foot-links a:hover { color: var(--accent-2); }
.copyright { margin-top: 26px; font-size: 13px; }

@media (max-width: 620px) {
  .nav { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
}

/* game facts table + faq (SEO content blocks) */
.game-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2px 24px; margin: 18px 0 6px; max-width: 720px; }
.game-facts > div { display: flex; gap: 10px; align-items: baseline; border-bottom: 1px solid var(--border); padding: 8px 0; }
.game-facts dt { color: var(--muted); font-size: 13px; font-weight: 700; min-width: 80px; }
.game-facts dd { margin: 0; font-size: 14px; color: #c7c7d6; }
.game-facts dd a { color: var(--accent-2); }
.faq { max-width: 720px; margin-top: 8px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; background: var(--card); margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 11px 14px; font-weight: 600; font-size: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--accent-2); font-weight: 800; margin-right: 9px; }
.faq details[open] summary::before { content: "\2212"; }
.faq details p { margin: 0; padding: 0 14px 13px; color: #c7c7d6; font-size: 14px; max-width: none; }
.game-aside .more { display: inline-block; margin-top: 12px; }
