/* Free The Vibe: shared styles for every site + forum. Themes switch via <body data-theme>. */
:root {
  --bg: #07040d;
  --bg2: #110a22;
  --panel: rgba(255, 255, 255, 0.05);
  --panel2: rgba(255, 255, 255, 0.085);
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.24);
  --text: #f6f2ff;
  --muted: #bdb3d6;
  --dim: #8f85a8;
  --accent: #ff3ec8;
  --accent2: #22e4ff;
  --accent3: #8b5cff;
  --grad: linear-gradient(100deg, #ff3ec8 0%, #8b5cff 50%, #22e4ff 100%);
  --glow: 0 0 24px rgba(255, 62, 200, 0.35), 0 0 48px rgba(34, 228, 255, 0.18);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 18px 50px -18px rgba(0, 0, 0, 0.75);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  --display: 'Unbounded', 'Segoe UI', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Code', Consolas, monospace;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1180px;
  /* Form fields: lifted off the page so they're always visible. */
  --field: color-mix(in srgb, var(--text) 7%, var(--bg));
  --field-hover: color-mix(in srgb, var(--text) 10%, var(--bg));
  --field-line: color-mix(in srgb, var(--text) 26%, transparent);
  color-scheme: dark;
}
body[data-theme='games'] { --accent: #22e4ff; --accent2: #8b5cff; --grad: linear-gradient(100deg, #22e4ff, #8b5cff); }
body[data-theme='music'] { --accent: #ff3ec8; --accent2: #ffb84d; --grad: linear-gradient(100deg, #ff3ec8 0%, #ff7a59 55%, #ffb84d 100%); }
body[data-theme='nightwave'] {
  --bg: #070a1a; --bg2: #0d1336; --accent: #7ae8ff; --accent2: #9b7bff; --accent3: #9b7bff;
  --text: #eef4ff; --muted: #b3bfe0; --dim: #7c87b0;
  --grad: linear-gradient(100deg, #7ae8ff, #9b7bff);
  --glow: 0 0 22px rgba(120, 220, 255, 0.45), 0 0 45px rgba(150, 90, 255, 0.35);
  --display: 'Cinzel Decorative', 'Cinzel', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font);
  font-feature-settings: 'cv11', 'ss01', 'ss03'; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
body::before { /* ambient glow */
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(56rem 38rem at 8% -12%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 62%),
    radial-gradient(48rem 38rem at 100% 112%, color-mix(in srgb, var(--accent2) 16%, transparent), transparent 62%),
    radial-gradient(40rem 30rem at 85% 10%, color-mix(in srgb, var(--accent3) 9%, transparent), transparent 70%);
}
body::after { /* fine dot texture, fades out down the page */
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
}
::selection { background: color-mix(in srgb, var(--accent) 45%, transparent); color: #fff; }
main { flex: 1; }
img, iframe, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.15s; }
a:hover { color: var(--text); }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5vw, 3.7rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ── Network bar + header ─────────────────────────────────────────────── */
.netbar { background: rgba(0, 0, 0, 0.6); border-bottom: 1px solid var(--line); font-size: 0.76rem; color: var(--dim); }
.netbar .wrap { display: flex; gap: 18px; align-items: center; height: 32px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.netbar a { color: var(--muted); text-decoration: none; font-weight: 500; }
.netbar a:hover, .netbar a[aria-current] { color: var(--text); }
.netbar a[aria-current] { box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 7px; padding-top: 9px; }
.netbar .net-label { color: var(--dim); letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.64rem; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 40; backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid var(--line); }
.site-header::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); opacity: 0.35; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 1.06rem; letter-spacing: -0.01em; min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px var(--line), 0 6px 18px -6px color-mix(in srgb, var(--accent) 60%, transparent); }
.brand span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand:hover { color: var(--text); }
.nav { margin-left: auto; display: flex; gap: 2px; align-items: center; }
.nav a { position: relative; color: var(--muted); text-decoration: none; padding: 8px 13px; border-radius: 10px; font-weight: 600; font-size: 0.93rem; transition: color 0.15s, background 0.15s; }
.nav a:hover { color: var(--text); background: var(--panel2); }
.nav a[aria-current='page'] { color: var(--text); }
.nav a[aria-current='page']::after { content: ''; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #0a0612; background: var(--grad); }
.nav-toggle { display: none; margin-left: auto; background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; padding: 10px 16px 18px; background: color-mix(in srgb, var(--bg2) 96%, transparent); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav a[aria-current='page']::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
}

/* ── Buttons, badges ──────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font: 700 0.98rem/1.2 var(--font); letter-spacing: 0.005em; text-decoration: none; cursor: pointer; border: 1px solid var(--line-strong); background: var(--panel2); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, filter 0.2s; }
.btn:hover { transform: translateY(-1px); color: var(--text); background: rgba(255, 255, 255, 0.13); border-color: color-mix(in srgb, var(--accent) 55%, var(--line-strong)); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--grad); border: 0; color: #0a0612; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, var(--glow); }
.btn-primary:hover { color: #0a0612; background: var(--grad); filter: brightness(1.08) saturate(1.05); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, var(--glow), 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-sm { padding: 7px 14px; font-size: 0.85rem; }
.btn[disabled], .btn[aria-disabled='true'] { opacity: 0.5; cursor: not-allowed; transform: none; filter: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.badge-alt { border-color: color-mix(in srgb, var(--accent2) 55%, transparent); color: var(--accent2); background: color-mix(in srgb, var(--accent2) 12%, transparent); }
.eyebrow { font-size: 0.76rem; font-weight: 800; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.center .eyebrow, .section-head.center .eyebrow { justify-content: center; }

/* ── Sections, hero, cards ────────────────────────────────────────────── */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.028) 15%, rgba(255, 255, 255, 0.028) 85%, transparent); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.lede { font-size: clamp(1.06rem, 2vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.hero { position: relative; padding: clamp(68px, 12vw, 148px) 0 clamp(56px, 9vw, 112px); overflow: hidden; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 56ch; margin-bottom: 30px; }
.hero-grid { position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1; opacity: 0.55; pointer-events: none;
  background: linear-gradient(transparent 0, var(--bg) 95%), repeating-linear-gradient(90deg, color-mix(in srgb, var(--accent3) 35%, transparent) 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, color-mix(in srgb, var(--accent3) 35%, transparent) 0 1px, transparent 1px 40px);
  transform: perspective(500px) rotateX(58deg); transform-origin: bottom; mask-image: linear-gradient(transparent, #000 60%); }
.hero-sun { position: absolute; right: -6rem; top: 2rem; width: min(46vw, 520px); aspect-ratio: 1; border-radius: 50%; z-index: -1; opacity: 0.55; filter: blur(1px) drop-shadow(0 0 60px color-mix(in srgb, var(--accent) 40%, transparent));
  background: repeating-linear-gradient(180deg, transparent 0 18px, var(--bg) 18px 24px), var(--grad); mask-image: linear-gradient(#000 40%, transparent 85%); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
/* Cards: soft gradient border (lighter at the top) and a deep shadow. */
.card {
  position: relative; border-radius: var(--radius); padding: 24px; border: 1px solid transparent;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg2) 72%, transparent), color-mix(in srgb, var(--bg) 82%, transparent)) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.05) 60%, rgba(255, 255, 255, 0.08)) border-box;
  box-shadow: var(--shadow);
  transition: transform 0.25s cubic-bezier(.2, .8, .2, 1), box-shadow 0.25s, background 0.25s;
}
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-lg), 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg2) 85%, transparent), color-mix(in srgb, var(--bg) 85%, transparent)) padding-box,
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 80%, transparent), rgba(255, 255, 255, 0.06) 55%, color-mix(in srgb, var(--accent2) 55%, transparent)) border-box;
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card-media { margin: -24px -24px 18px; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; overflow: hidden; aspect-ratio: 920/430; background: #000; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(.2, .8, .2, 1); }
a.card:hover .card-media img { transform: scale(1.04); }
.card .arrow { color: var(--accent); font-weight: 700; display: inline-block; transition: transform 0.2s; }
a.card:hover .arrow { transform: translateX(3px); }
.site-card { padding: 28px; min-height: 210px; display: flex; flex-direction: column; }
.site-card .tag { margin-top: auto; padding-top: 14px; color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.site-card .icon { font-size: 1.8rem; margin-bottom: 10px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-list li { padding-left: 28px; position: relative; color: var(--muted); }
.feature-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 12px; height: 12px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
.split { display: grid; gap: 40px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.callout { position: relative; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent2) 10%, transparent)), color-mix(in srgb, var(--bg2) 60%, transparent); border-radius: calc(var(--radius) + 6px); padding: clamp(26px, 4vw, 46px); box-shadow: var(--shadow-lg); }

/* ── Forms ────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
label { display: grid; gap: 7px; font-weight: 600; font-size: 0.92rem; color: var(--text); }
label .hint { font-weight: 400; color: var(--muted); font-size: 0.82rem; opacity: 0.85; }
input:not([type]), input[type='text'], input[type='email'], input[type='password'], input[type='url'], input[type='search'], input[type='number'], input[type='tel'], input[type='date'], input[type='datetime-local'], input[type='time'], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--field); border: 1px solid var(--field-line); border-radius: var(--radius-sm); padding: 12px 14px; min-height: 48px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) inset; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; }
input:not([type]):hover, input[type='text']:hover, input[type='email']:hover, input[type='password']:hover, input[type='url']:hover, input[type='search']:hover, input[type='number']:hover, input[type='tel']:hover, select:hover, textarea:hover { background: var(--field-hover); border-color: color-mix(in srgb, var(--text) 38%, transparent); }
::placeholder { color: var(--dim); opacity: 1; }
select { appearance: none; padding-right: 40px; cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }
select option { background: var(--bg2); color: var(--text); }
textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--field-hover); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
input:user-invalid, textarea:user-invalid { border-color: #ff7b8f; }
input:-webkit-autofill { -webkit-text-fill-color: var(--text); -webkit-box-shadow: 0 0 0 100px var(--field-hover) inset; caret-color: var(--text); }
input[type='checkbox'], input[type='radio'] { accent-color: var(--accent); width: 18px; height: 18px; cursor: pointer; }
/* Checkbox + sentence: the box sits in a gutter so the text (and any links) wrap as normal prose. */
.check { display: block; position: relative; padding-left: 30px; font-weight: 400; color: var(--muted); line-height: 1.5; cursor: pointer; }
.check > input[type='checkbox'], .check > input[type='radio'] { position: absolute; left: 0; top: 1px; margin: 0; }
.check a { font-weight: 600; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }
.form-status { min-height: 1.4em; font-weight: 600; margin: 0; }
.form-status.ok { color: #6dffb3; }
.form-status.err { color: #ff8b9d; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--field-line); background: var(--field); border-radius: 999px; cursor: pointer; font-weight: 600; transition: border-color 0.15s, background 0.15s; }
.segmented label:hover { border-color: color-mix(in srgb, var(--text) 38%, transparent); }
.segmented input { accent-color: var(--accent); margin: 0; }
.segmented label:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* ── Media ────────────────────────────────────────────────────────────── */
.embed { border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); }
.embed iframe { display: block; width: 100%; border: 0; }
.ratio-16x9 { aspect-ratio: 16/9; }
.ratio-16x9 iframe { height: 100%; }
.placeholder { display: grid; place-items: center; text-align: center; padding: 24px; color: var(--muted); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 12px, transparent 12px 24px), #05060f; }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gallery button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #000; cursor: zoom-in; aspect-ratio: 16/9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gallery button:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(2, 3, 10, 0.94); display: none; place-items: center; padding: 16px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 86vh; width: auto; border-radius: 10px; box-shadow: 0 20px 80px #000; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, 0.1); color: #fff; border: 1px solid var(--line); border-radius: 999px; width: 46px; height: 46px; font-size: 1.4rem; cursor: pointer; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; }
.lightbox .lb-next { right: 16px; top: 50%; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { position: relative; border-top: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--bg2) 55%, #000), #030106); padding: 56px 0 32px; margin-top: 48px; color: var(--muted); font-size: 0.92rem; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--grad); opacity: 0.4; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.site-footer h4 { font-family: var(--font); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--dim); font-size: 0.84rem; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { display: inline-flex; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.82rem; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.socials a:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }

/* ── Prose (blog posts, legal) ────────────────────────────────────────── */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose img { border-radius: 10px; margin: 1.5em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 3px solid var(--accent); color: var(--muted); }
.prose code { font-family: var(--mono); background: var(--panel2); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
.prose pre { background: #000; border: 1px solid var(--line); padding: 16px; border-radius: 10px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin: 0.3em 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.post-meta { color: var(--dim); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags a { font-size: 0.78rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; }
.tags a:hover { border-color: var(--accent); color: var(--text); }
.post-list { display: grid; gap: 16px; }
.post-list .card h3 { font-family: var(--font); font-weight: 800; font-size: 1.3rem; }

/* ── Forum ────────────────────────────────────────────────────────────── */
.forum-main { padding: 28px 0 60px; }
.crumbs { font-size: 0.88rem; color: var(--dim); margin-bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.forum-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.forum-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0; }
.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: color-mix(in srgb, var(--bg2) 60%, transparent); box-shadow: var(--shadow); }
.list-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 16px 18px; border-top: 1px solid var(--line); align-items: center; }
.list-row:first-child { border-top: 0; }
.list-row { transition: background 0.15s; }
.list-row:hover { background: rgba(255, 255, 255, 0.04); }
.list-row .title { font-weight: 700; font-size: 1.04rem; color: var(--text); text-decoration: none; }
.list-row .title:hover { color: var(--accent); }
.list-row .desc { color: var(--muted); font-size: 0.9rem; margin: 2px 0 0; }
.list-row .stats { text-align: right; color: var(--dim); font-size: 0.84rem; white-space: nowrap; }
.list-row .stats b { color: var(--text); font-size: 1rem; }
.list-empty { padding: 28px; text-align: center; color: var(--muted); }
@media (max-width: 600px) { .list-row { grid-template-columns: 1fr; } .list-row .stats { text-align: left; } }
.pill { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; margin-right: 6px; vertical-align: 2px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); }
.pill-pin { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.pill-staff { color: #ffd166; border-color: rgba(255, 209, 102, 0.5); }
.pill-hidden { color: #ff7b8f; border-color: rgba(255, 123, 143, 0.5); }
.post { display: grid; grid-template-columns: 150px 1fr; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--bg2) 60%, transparent); margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow); }
.post.is-hidden { opacity: 0.6; border-style: dashed; }
.post-author { padding: 18px; border-right: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); text-align: center; font-size: 0.85rem; color: var(--dim); }
.post-author a { color: var(--text); font-weight: 700; text-decoration: none; display: block; margin-top: 8px; word-break: break-word; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 0 auto; background: var(--grad); display: grid; place-items: center; font-weight: 800; color: #0a0612; font-size: 1.4rem; }
.avatar-sm { width: 28px; height: 28px; font-size: 0.8rem; display: inline-grid; vertical-align: middle; margin: 0 6px 0 0; }
.post-body { padding: 18px 22px; min-width: 0; }
.post-meta-row { display: flex; justify-content: space-between; gap: 10px; color: var(--dim); font-size: 0.82rem; margin-bottom: 10px; flex-wrap: wrap; }
.post-content { overflow-wrap: anywhere; }
.post-content p:last-child { margin-bottom: 0; }
.post-content blockquote { margin: 0.8em 0; padding: 2px 14px; border-left: 3px solid var(--accent); color: var(--muted); }
.post-content pre { background: #000; padding: 12px; border-radius: 8px; overflow-x: auto; }
.post-content code { font-family: var(--mono); font-size: 0.9em; }
.post-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.post-actions form { display: inline; margin: 0; }
.react { font: inherit; font-size: 0.9rem; background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.react.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, transparent); }
.react:disabled { cursor: default; }
.linkish { font: inherit; font-size: 0.82rem; background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px 6px; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--text); }
.post-actions .spacer { flex: 1; }
@media (max-width: 640px) {
  .post { grid-template-columns: 1fr; }
  .post-author { display: flex; align-items: center; gap: 10px; text-align: left; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .post-author .avatar { width: 32px; height: 32px; margin: 0; font-size: 0.9rem; }
  .post-author a { margin: 0; }
}
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin: 18px 0; }
.pager a, .pager span { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); font-size: 0.9rem; transition: border-color 0.15s, color 0.15s; }
.pager a:hover { border-color: var(--accent); color: var(--text); }
.pager span.cur { background: var(--accent); border-color: var(--accent); color: #0a0612; font-weight: 800; }
.notice { padding: 14px 18px 14px 20px; border-radius: 12px; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--panel2); margin-bottom: 18px; }
.notice.warn { border-color: rgba(255, 209, 102, 0.45); border-left-color: #ffd166; background: rgba(255, 209, 102, 0.08); }
.notice.err { border-color: rgba(255, 123, 143, 0.5); border-left-color: #ff7b8f; background: rgba(255, 123, 143, 0.09); }
.notice.ok { border-color: rgba(109, 255, 179, 0.45); border-left-color: #6dffb3; background: rgba(109, 255, 179, 0.08); }
.login-box { max-width: 460px; margin: clamp(24px, 6vw, 64px) auto; text-align: center; padding: clamp(26px, 5vw, 40px); overflow: hidden; box-shadow: var(--shadow-lg), 0 0 120px -40px color-mix(in srgb, var(--accent) 45%, transparent); }
.login-box::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); }
.login-box h1 { font-size: clamp(1.6rem, 4vw, 2rem); margin-bottom: 8px; }
.login-box > p.muted:first-of-type { margin-bottom: 24px; }
.login-box .btn { width: 100%; margin-top: 10px; }
.login-box .form .btn-primary { margin-top: 6px; padding: 14px 22px; font-size: 1rem; }
.login-box .cf-turnstile { min-height: 65px; }
.btn-discord { background: #5865f2; border-color: #5865f2; }
.btn-google { background: #fff; color: #1f1f1f; border-color: #fff; }
.btn-google:hover { color: #1f1f1f; background: #f1f1f1; }
.btn-steam { background: #171a21; border-color: #2a475e; }
.userbox { display: flex; align-items: center; gap: 8px; }
.userbox form { margin: 0; }
.admin-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-tabs a { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; transition: color 0.15s, border-color 0.15s; }
.admin-tabs a:hover { color: var(--text); border-color: var(--line-strong); }
.admin-tabs a[aria-current='page'] { background: var(--panel2); color: var(--text); border-color: var(--accent); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.data th, table.data td { padding: 10px 12px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { border-top: 0; color: var(--dim); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.08em; background: rgba(0, 0, 0, 0.25); }
table.data form { display: inline; }
details.box { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: color-mix(in srgb, var(--bg2) 55%, transparent); margin-bottom: 12px; }
details.box summary { cursor: pointer; font-weight: 700; }
.composer textarea { min-height: 180px; }
.md-help { font-size: 0.8rem; color: var(--dim); }
.search-hit { padding: 16px 18px; border-top: 1px solid var(--line); }
.search-hit:first-child { border-top: 0; }
.search-hit mark { background: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--text); border-radius: 3px; padding: 0 2px; }

/* ── Nightwave specifics ──────────────────────────────────────────────── */
.nw-hero { position: relative; min-height: min(92vh, 860px); display: grid; align-items: end; padding: 120px 0 72px; overflow: hidden; isolation: isolate; }
.nw-hero > picture, .nw-hero > img { position: absolute; inset: 0; z-index: -2; }
.nw-hero > picture img, .nw-hero > img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.nw-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 70% 15%, rgba(140, 90, 255, 0.3), transparent 55%), linear-gradient(180deg, rgba(7, 10, 26, 0.15) 0%, rgba(7, 10, 26, 0.55) 55%, var(--bg) 100%); }
.nw-logo { width: min(640px, 92%); margin: 0 0 6px -2%; filter: drop-shadow(0 6px 30px rgba(0, 0, 0, 0.7)); }
.nw-tag { font-family: 'Inter', sans-serif; font-weight: 900; letter-spacing: 0.32em; text-transform: uppercase; color: #b8a6ff; font-size: clamp(0.85rem, 2vw, 1.1rem); margin-bottom: 18px; text-shadow: 0 2px 10px #000; }
.nw-hero .lede { color: #dbe4ff; text-shadow: 0 2px 12px #000; max-width: 56ch; }
.land { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); min-height: 280px; display: flex; align-items: flex-end; padding: 22px; isolation: isolate; }
.land img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 0.5s; }
.land::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(5, 7, 20, 0.92)); }
.land:hover img { transform: scale(1.05); }
.land h3 { font-family: 'Cinzel', Georgia, serif; font-weight: 700; font-size: 1.35rem; margin-bottom: 4px; }
.land p { margin: 0; color: #cbd6f5; font-size: 0.92rem; }
.reqs { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.reqs dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 0.93rem; }
.reqs dt { color: var(--dim); }
.reqs dd { margin: 0; }
.steam-widget { width: 100%; max-width: 646px; height: 190px; border: 0; border-radius: 10px; }

/* ── Music specifics ──────────────────────────────────────────────────── */
.artist { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; padding: clamp(22px, 4vw, 40px); }
.artist-art { border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); aspect-ratio: 1; }
.artist-art img { width: 100%; height: 100%; object-fit: cover; }
.artist h2 { margin-bottom: 6px; }
.manifesto { font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.55; }
.manifesto strong { color: var(--text); }
.ai-human { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 28px; }
.ai-human .card { text-align: center; }
.ai-human .big { font-family: var(--display); font-size: 2rem; display: block; margin-bottom: 6px; }
.spoiler { background: #000; color: transparent; border-radius: 4px; padding: 0 4px; cursor: pointer; }
.spoiler:hover, .spoiler:focus { color: inherit; background: var(--panel2); }

/* ── Hearth & Haggle (cozy idle crafter) ─────────────────────────────── */
body[data-theme='hearth'] {
  --bg: #13241a; --bg2: #1b3324; --accent: #f2c14e; --accent2: #7fc98f; --accent3: #c98a3a;
  --text: #fbf3e2; --muted: #d7cbb0; --dim: #a59a80;
  --grad: linear-gradient(100deg, #f7d77a, #e0a43c);
  --glow: 0 0 24px rgba(242, 193, 78, 0.35);
  --display: 'Lora', Georgia, serif;
}
body[data-theme='hearth']::before {
  background: radial-gradient(60rem 40rem at 15% -10%, rgba(242, 193, 78, 0.16), transparent 60%), radial-gradient(50rem 40rem at 100% 100%, rgba(127, 201, 143, 0.14), transparent 60%);
}
.hh-hero { display: grid; gap: 40px; align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.hh-icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45); margin-bottom: 18px; }
.hh-art { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); border: 1px solid var(--line); }
.hh-shots { display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: min(240px, 62vw); overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.hh-shots button { scroll-snap-align: start; aspect-ratio: 9/16; border-radius: 18px; }
.hh-shots img { border-radius: 18px; }
.play-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #555; border-radius: 12px; padding: 10px 18px; text-decoration: none; font-weight: 700; }
.play-badge small { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.04em; opacity: 0.8; }
.play-badge:hover { color: #fff; border-color: var(--accent); }
.play-badge.soon { cursor: default; opacity: 0.85; }

/* ── FTV Play / Dawn of Eden (moss, rust, dawn) ──────────────────────── */
body[data-theme='play'] {
  --bg: #0b110d; --bg2: #121c15; --accent: #f2b35b; --accent2: #7ddc8a; --accent3: #d26a43;
  --text: #ecf1e7; --muted: #b0bdae; --dim: #7a8a76;
  --grad: linear-gradient(100deg, #f2b35b, #f7d38a 45%, #7ddc8a);
  --glow: 0 0 26px rgba(242, 179, 91, 0.35);
  --display: 'Fraunces', Georgia, serif;
}
body[data-theme='play']::before {
  background: radial-gradient(60rem 40rem at 10% -10%, rgba(242, 179, 91, 0.16), transparent 60%), radial-gradient(50rem 40rem at 100% 110%, rgba(125, 220, 138, 0.14), transparent 60%);
}
.eden-hero { position: relative; padding: clamp(70px, 12vw, 150px) 0 clamp(50px, 8vw, 100px); overflow: hidden; isolation: isolate; }
.eden-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 55%; z-index: -1; background: repeating-linear-gradient(90deg, transparent 0 46px, rgba(125, 220, 138, 0.06) 46px 48px), linear-gradient(transparent, var(--bg)); mask-image: linear-gradient(transparent, #000 70%); }
.eden-sun { position: absolute; left: 50%; bottom: -40%; width: min(130vw, 1200px); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; z-index: -2; background: radial-gradient(circle, rgba(247, 211, 138, 0.55), rgba(242, 179, 91, 0.25) 35%, transparent 62%); }
.eden-hero h1 { max-width: none; font-size: clamp(2.6rem, 8vw, 5.4rem); letter-spacing: -0.01em; }
.eden-terminal { font-family: ui-monospace, 'Cascadia Code', Consolas, monospace; background: #050806; border: 1px solid #2a3b30; border-radius: 14px; padding: 18px; color: #cfe3cf; font-size: 0.9rem; line-height: 1.7; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); overflow-x: auto; }
.eden-terminal .r { color: #f2b35b; font-weight: 700; }
.eden-terminal .c { color: #ef6a6a; }
.eden-terminal .g { color: #7ddc8a; }
.eden-terminal .y { color: #ffd27a; }
.eden-terminal .p { color: #9a9; }
.class-card .role { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent2); font-weight: 800; }
.game-tile { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.game-tile .art { min-height: 240px; background: radial-gradient(circle at 50% 120%, rgba(247, 211, 138, 0.6), rgba(242, 179, 91, 0.2) 35%, transparent 60%), linear-gradient(180deg, #13261a, #0b110d); display: grid; place-items: center; font-family: 'Fraunces', serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; color: #f7e3b8; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.game-tile .art b { color: var(--accent); }
.game-tile .art-zenestria { background: radial-gradient(circle at 70% 18%, rgba(226, 232, 255, 0.55), rgba(160, 170, 220, 0.12) 12%, transparent 30%), radial-gradient(ellipse at 50% 130%, rgba(110, 50, 140, 0.55), transparent 60%), linear-gradient(180deg, #11121c, #050507); font-family: 'Cinzel', 'Fraunces', serif; color: #d9d4e6; text-align: center; }
.game-tile .art-zenestria span { display: grid; gap: 4px; letter-spacing: 0.08em; }
.game-tile .art-zenestria b { display: block; font-size: 0.42em; letter-spacing: 0.35em; text-transform: uppercase; color: #a98fd0; }
.game-tile .body { padding: 26px; }
@media (max-width: 720px) { .game-tile { grid-template-columns: 1fr; } .game-tile .art { min-height: 160px; } }
/* ── Dawn of Eden homepage ── */
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.eden-hero2 { padding-top: clamp(40px, 7vw, 90px); }
.eden-hero-grid { display: grid; gap: clamp(28px, 5vw, 60px); align-items: center; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.eden-hero2 h1 { font-size: clamp(2.8rem, 7.4vw, 5.6rem); line-height: 1; margin: 6px 0 14px; text-shadow: 0 8px 40px rgba(242, 179, 91, 0.25); }
.eden-trust { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.eden-trust li::before { content: '✓ '; color: var(--accent2); font-weight: 800; }
.eden-devices { position: relative; min-height: 340px; }
.eden-laptop { border-radius: 14px; overflow: hidden; border: 1px solid #2a3b30; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 6px rgba(255, 255, 255, 0.03); transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; }
.eden-laptop img { display: block; width: 100%; height: auto; }
.eden-phone { position: absolute; right: -6px; bottom: -34px; width: min(200px, 34%); border-radius: 26px; overflow: hidden; border: 6px solid #0a0f0b; outline: 1px solid #2f4234; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); aspect-ratio: 390 / 600; }
.eden-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.eden-counts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: clamp(44px, 6vw, 70px) 0 0; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: color-mix(in srgb, var(--panel) 70%, transparent); }
.eden-counts div { text-align: center; }
.eden-counts dt { font-family: var(--display); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--accent); line-height: 1.1; }
.eden-counts dd { margin: 0; color: var(--dim); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; }
.eden-gallery { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 18px; margin: 0 -4px; scrollbar-width: thin; }
.eden-shot { flex: none; width: 250px; margin: 0; scroll-snap-align: start; }
.eden-shot.wide { width: min(620px, 86vw); }
.eden-shot img { display: block; width: 100%; height: 360px; object-fit: cover; object-position: top; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4); }
.eden-shot figcaption { margin-top: 10px; color: var(--muted); font-size: 0.88rem; }
.eden-classes { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.eden-class { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; border: 1px solid color-mix(in srgb, var(--c) 40%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 12%, var(--panel)), var(--panel) 65%); }
.eden-class .crest { flex: none; width: 54px; height: 62px; filter: drop-shadow(0 4px 12px color-mix(in srgb, var(--c) 35%, transparent)); }
.eden-class .crest .bg { fill: color-mix(in srgb, var(--c) 28%, #0b0f0c); }
.eden-class .crest .rim { fill: none; stroke: var(--c); stroke-width: 5; }
.eden-class h3 { margin: 0; }
.eden-class .role { color: var(--c); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.eden-class p { margin: 6px 0 0; font-size: 0.92rem; }
.eden-road { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.eden-road::before { content: ''; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--accent2), var(--accent) 60%, var(--accent3)); opacity: 0.6; }
.eden-road li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 12px 0; }
.eden-road .step { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--bg2); border: 2px solid var(--accent); font-family: var(--display); font-weight: 800; color: var(--accent); }
.eden-road h3 { margin: 8px 0 4px; }
.eden-road p { margin: 0; max-width: 70ch; }
.eden-features { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.eden-features .ic { line-height: 0; display: block; margin-bottom: 10px; color: var(--accent2); }
.eden-class .crest .gl { color: var(--c); }
.eden-features h3 { margin: 0 0 6px; }
.eden-post { text-decoration: none; color: inherit; display: grid; gap: 6px; }
.eden-post time { color: var(--dim); font-size: 0.82rem; }
.eden-post h3 { margin: 0; }
.eden-post .more { color: var(--accent); font-weight: 700; font-size: 0.9rem; }
.eden-post:hover { border-color: var(--accent); transform: translateY(-2px); }
.eden-faq-wrap { max-width: 860px; }
.eden-faq { display: grid; gap: 10px; }
.eden-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 14px 18px; }
.eden-faq summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; }
.eden-faq details p { margin: 10px 0 0; }
@media (max-width: 900px) {
  .eden-hero-grid { grid-template-columns: 1fr; }
  .eden-devices { min-height: 0; margin: 10px 16px 30px 0; }
  .eden-laptop { transform: none; }
  .eden-counts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eden-shot { width: 210px; }
  .eden-shot img { height: 300px; }
}
/* ── Dawn of Eden news (homepage carousel + news pages) ── */
.eden-news { padding: 6px 0 10px; }
.eden-news-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.eden-news-head a { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 0.92rem; }
.eden-news-track { position: relative; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); min-height: clamp(260px, 34vw, 380px); }
.eden-news-slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); text-decoration: none; color: inherit; opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0.6s; }
.eden-news-slide.on { opacity: 1; visibility: visible; position: relative; }
.eden-news-slide img { width: 100%; height: 100%; max-height: 380px; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; display: block; } /* a tall phone shot can't stretch the carousel */
.eden-news-slide .cap { display: grid; align-content: center; gap: 8px; padding: clamp(20px, 3.5vw, 40px); background: linear-gradient(90deg, color-mix(in srgb, var(--panel) 40%, transparent), var(--panel) 30%); }
.eden-news-slide h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.15; }
.eden-news-slide p { margin: 0; color: var(--muted); }
.eden-news-slide time { color: var(--dim); font-size: 0.85rem; }
.eden-news-slide .badge, .news-lead .badge, .news-card .badge { justify-self: start; }
.eden-news-slide .more { color: var(--accent); font-weight: 800; }
.eden-news-slide:hover h2 { color: var(--accent); }
.eden-news-ctl { position: absolute; right: 14px; bottom: 12px; display: flex; align-items: center; gap: 8px; z-index: 2; }
.eden-news-ctl > button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg2) 85%, transparent); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.eden-news-ctl .dots { display: flex; gap: 6px; }
.eden-news-ctl .dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; }
.eden-news-ctl .dots button.on { background: var(--accent); width: 22px; border-radius: 99px; }
.news-wrap { max-width: 1000px; }
.news-lead { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; border-radius: 20px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--panel); text-decoration: none; color: inherit; margin-bottom: 26px; }
.news-lead img { width: 100%; height: 100%; max-height: 420px; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.news-lead > div { display: grid; align-content: center; gap: 8px; padding: clamp(18px, 3vw, 32px); }
.news-lead h2 { margin: 0; }
.news-lead time, .news-card time { color: var(--dim); font-size: 0.85rem; }
.news-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.news-card { display: grid; gap: 6px; align-content: start; padding: 0 0 16px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); text-decoration: none; color: inherit; }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top left; }
.news-card > :not(img) { margin-left: 16px; margin-right: 16px; }
.news-card h3 { margin: 4px 0 0; }
.news-card:hover, .news-lead:hover { border-color: var(--accent); }
.news-cover { margin: 0 0 28px; }
.news-cover img { width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); }
@media (max-width: 800px) {
  .eden-news-slide, .news-lead { grid-template-columns: 1fr; }
  .eden-news-slide img { height: 190px; }
  .eden-news-slide .cap { background: var(--panel); padding-bottom: 58px; }
  .news-lead img { height: 200px; }
}
/* ── Dawn of Eden devlog ── */
.devlog-hero { padding: clamp(40px, 7vw, 80px) 0 10px; }
.devlog-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: 4px 0 12px; }
.devlog-wrap { max-width: 900px; }
.devlog-latest .badge { justify-self: start; }
.devlog-latest { display: grid; gap: 8px; padding: clamp(22px, 4vw, 34px); border-radius: 20px; text-decoration: none; color: inherit; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--panel)), var(--panel) 60%); margin-bottom: 34px; transition: transform 0.2s, border-color 0.2s; }
.devlog-latest:hover { transform: translateY(-2px); border-color: var(--accent); }
.devlog-latest time, .devlog-timeline time { color: var(--dim); font-size: 0.85rem; }
.devlog-latest h2 { margin: 0; font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
.devlog-latest ul, .devlog-timeline ul { margin: 4px 0 0; padding-left: 1.2em; color: var(--muted); font-size: 0.93rem; display: grid; gap: 4px; }
.devlog-read { color: var(--accent); font-weight: 800; margin-top: 6px; }
.devlog-timeline { list-style: none; margin: 0; padding: 0 0 0 26px; position: relative; display: grid; gap: 26px; }
.devlog-timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.devlog-timeline li { position: relative; }
.devlog-timeline .dot { position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg2); border: 3px solid var(--accent2); }
.devlog-timeline h3 { margin: 4px 0 6px; }
.devlog-timeline h3 a { color: inherit; text-decoration: none; }
.devlog-timeline h3 a:hover { color: var(--accent); }
.devlog-timeline p { margin: 0; }
.devlog-play { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.devlog-play h3 { margin: 0 0 4px; }
.devlog-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.devlog-nav a { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; background: var(--panel); }
.devlog-nav a:hover { border-color: var(--accent); }
.devlog-nav .next { text-align: right; }
.devlog-nav small { color: var(--dim); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.prose th { color: var(--text); }
/* Account pages */
.account-wrap { max-width: 980px; margin: 0 auto; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 0.85rem; margin: 18px 0 12px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.oauth-stack { display: grid; gap: 8px; }
.oauth-stack .btn { width: 100%; margin: 0; }

/* Hub: featured game */
.hub-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; padding: 0; overflow: hidden; }
.hub-feature-art { background: #000; min-height: 260px; }
.hub-feature-art img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 0.5s cubic-bezier(.2, .8, .2, 1); }
a.hub-feature:hover .hub-feature-art img { transform: scale(1.03); }
.hub-feature-body { display: grid; align-content: center; gap: 10px; padding: clamp(24px, 4vw, 44px); }
.hub-feature-body .badge { justify-self: start; }
.hub-feature-body h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.hub-feature-body p { margin: 0; }
@media (max-width: 860px) { .hub-feature { grid-template-columns: 1fr; } .hub-feature-art { min-height: 0; aspect-ratio: 16/9; } }

/* FTV Apps (apps.freethevibe.com): neon handheld-console look. */
body[data-theme='apps'] {
  --bg: #0d0b1a; --bg2: #17142b; --accent: #39ff9c; --accent2: #ff4fd8; --accent3: #ffc23d;
  --text: #ece8ff; --muted: #b6aee0; --dim: #8079ad;
  --grad: linear-gradient(100deg, #39ff9c, #4fc3ff 50%, #ff4fd8);
  --glow: 0 0 24px rgba(57, 255, 156, 0.35), 0 0 48px rgba(255, 79, 216, 0.18);
  --display: 'Press Start 2P', ui-monospace, monospace;
}
body[data-theme='apps']::before {
  background: radial-gradient(60rem 40rem at 0% -10%, rgba(57, 255, 156, 0.13), transparent 60%), radial-gradient(50rem 40rem at 100% 100%, rgba(255, 79, 216, 0.13), transparent 60%);
}
body[data-theme='apps'] h1, body[data-theme='apps'] h2, body[data-theme='apps'] h3 { line-height: 1.35; letter-spacing: 0; }
body[data-theme='apps'] .prose h2 { font-size: clamp(0.9rem, 2.2vw, 1.1rem); margin-top: 2em; }
body[data-theme='apps'] .prose h3 { font-size: 0.85rem; }
