/* Shared styles for the hub pages (home, about, posts, privacy, terms). Games keep their own styles. */
:root {
  --bg: #07090a;
  --panel: #0d1210;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e7ebe9;
  --muted: #9aa5a0;
  --accent: #00e070;
  --accent-soft: rgba(0, 224, 112, 0.12);
  --purple: #a855f7;
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 700; margin-top: 2.25rem; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.35rem; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.muted { color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.6rem; }

/* header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(7, 9, 10, 0.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--text); font-weight: 800; font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.logo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: linear-gradient(135deg, var(--purple), var(--accent)); font-size: 1rem; }
.site-header nav { display: flex; gap: 1.1rem; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav a { color: var(--muted); font-size: 0.93rem; font-weight: 500; }
.site-header nav a:hover { color: var(--text); text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.8rem 1.35rem; border-radius: 10px; font-weight: 700; font-size: 0.98rem; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #04110a; }
.btn-primary:hover { background: #3af08f; text-decoration: none; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.22); text-decoration: none; }

/* hero */
.hero { padding: 4.5rem 0 3rem; border-bottom: 1px solid var(--line); background: radial-gradient(ellipse at top, rgba(0,224,112,0.10), transparent 60%), radial-gradient(ellipse at 80% 0%, rgba(168,85,247,0.12), transparent 50%); }
.hero h1 { max-width: 16ch; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; margin-bottom: 1.75rem; }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* sections and cards */
section.block { padding: 3rem 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); transition: border-color 0.15s, transform 0.15s; }
.card:hover { border-color: rgba(0,224,112,0.45); transform: translateY(-2px); text-decoration: none; }
.card .tag { font-size: 0.75rem; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.card .meta { color: var(--muted); font-size: 0.9rem; }
.card .more { margin-top: auto; padding-top: 0.5rem; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.game-card { border-color: rgba(0,224,112,0.3); background: linear-gradient(160deg, rgba(168,85,247,0.10), rgba(0,224,112,0.06) 60%, var(--panel)); }
.faq details { border-bottom: 1px solid var(--line); padding: 0.95rem 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0.6rem 0 0; color: var(--muted); }

/* article pages */
main.page { flex: 1; padding: 3rem 0 4rem; }
.article { max-width: 46rem; margin: 0 auto; }
.article h1 { margin-bottom: 0.4rem; }
.article h2 { margin-top: 2.2rem; }
.draft { border: 1px solid rgba(250, 204, 21, 0.35); background: rgba(250, 204, 21, 0.06); padding: 0.8rem 1rem; border-radius: 10px; color: #fde68a; font-size: 0.95rem; }
.back { display: inline-block; margin-top: 2rem; font-weight: 600; }

/* posts */
.post-list { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.date { color: var(--purple); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; }

/* footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2.5rem 0 1.5rem; background: #050707; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1.6fr repeat(3, 1fr); }
.footer-grid strong { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-grid a { display: block; color: var(--muted); font-size: 0.92rem; margin-bottom: 0.35rem; }
.footer-grid p { color: var(--muted); font-size: 0.92rem; margin: 0; max-width: 30ch; }
.copy { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }

@media (max-width: 720px) {
  .site-header .nav { height: auto; padding: 0.8rem 1.25rem; flex-wrap: wrap; }
  .site-header nav { gap: 0.9rem; justify-content: flex-start; }
  .hero { padding: 3rem 0 2.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

/* game cards with screenshots */
.game-card { padding: 0; overflow: hidden; }
.game-card .thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #05080a; border-bottom: 1px solid var(--line); }
.game-card .body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.1rem 1.25rem 1.25rem; flex: 1; }

/* what's new */
.news { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.news li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.news li:last-child { border-bottom: 0; }
.news time { color: var(--purple); font-size: 0.85rem; font-weight: 700; padding-top: 0.1rem; }
.news strong { display: block; color: var(--text); }
.news span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 560px) { .news li { grid-template-columns: 1fr; gap: 0.2rem; } }
.grid > * { min-width: 0; }
.game-card .thumb { width: 100%; max-width: 100%; height: auto; }

/* music and settings sections */
.steps .step { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 0.4rem; }
.callout { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.25rem; padding: 1.25rem 1.4rem; border: 1px solid rgba(168,85,247,0.35); border-radius: var(--radius); background: linear-gradient(120deg, rgba(168,85,247,0.10), rgba(0,224,112,0.05)); }
.callout h3 { margin-bottom: 0.25rem; }
.callout .meta { margin: 0; max-width: 60ch; }
