/* FayeSeraphine.com. Tokens match the games' own UI. */

@font-face {
	font-family: "Nunito";
	src: url("../fonts/nunito-latin-wght-normal.woff2") format("woff2");
	font-weight: 200 1000;
	font-display: swap;
}

:root {
	color-scheme: dark;
	--bg:            #0e0d12;
	--surface:       #18161d;
	--surface-2:     #211e28;
	--surface-3:     #2b2733;
	--border:        #34303d;
	--border-strong: #4c4658;
	--text:          #efecf4;
	--text-muted:    #b3acc0;
	--text-faint:    #857e92;
	--accent:        #b794ff;
	--accent-ink:    #170f26;
	--pink:          #ff7ad9;
	--gold:          #f0c96e;
	--brand:         linear-gradient(90deg, #d9c4ff 0%, #f3a6e6 60%, #ff8fd2 100%);
	--focus:         0 0 0 2px var(--bg), 0 0 0 4px var(--accent);

	--font:    "Nunito", "Segoe UI", system-ui, sans-serif;
	--fs-xs:   12px;
	--fs-sm:   14px;
	--fs-md:   16px;
	--fs-body: 17px;
	--fs-lg:   20px;
	--fs-xl:   28px;

	--sp-1: 4px;
	--sp-2: 8px;
	--sp-3: 12px;
	--sp-4: 16px;
	--sp-5: 24px;
	--sp-6: 32px;
	--sp-7: 48px;
	--sp-8: 72px;

	--radius-sm: 6px;
	--radius:    10px;
	--radius-lg: 14px;
	--radius-xl: 20px;

	--page: 1040px;
	--narrow: 760px;
	--gutter: var(--sp-5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 var(--fs-body)/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: none; box-shadow: var(--focus); }
h1, h2, h3, p, ol { margin: 0; }
h3 { font-size: var(--fs-xl); font-weight: 900; line-height: 1.15; letter-spacing: -0.01em; }
.vd-wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.vd-narrow { max-width: var(--narrow); }
.vd-skip { position: absolute; left: -9999px; }
.vd-skip:focus { left: var(--sp-4); top: var(--sp-4); z-index: 100; background: var(--surface); padding: var(--sp-2) var(--sp-4); border-radius: var(--radius); }

/* ---------- Header ---------- */
.vd-header {
	position: sticky; top: 0; z-index: 20;
	background: rgba(14, 13, 18, 0.8);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(52, 48, 61, 0.6);
}
.vd-header .vd-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); min-height: 64px; }
.vd-logo { display: flex; align-items: center; gap: var(--sp-3); color: var(--text); text-decoration: none; font-weight: 800; font-size: var(--fs-lg); white-space: nowrap; }
.vd-logo img { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); }
.vd-nav { display: flex; gap: var(--sp-1); }
.vd-nav a {
	color: var(--text-muted); text-decoration: none; font-weight: 700; font-size: var(--fs-sm);
	padding: var(--sp-2) var(--sp-3); border-radius: var(--radius); white-space: nowrap;
}
.vd-nav a:hover { color: var(--text); background: var(--surface-2); }

/* ---------- Buttons ---------- */
.vd-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.vd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
	min-height: 48px; padding: 0 var(--sp-5);
	font: 800 var(--fs-md) var(--font); text-decoration: none; white-space: nowrap;
	border-radius: 999px; border: 1px solid transparent; cursor: pointer;
	transition: transform 120ms ease, border-color 120ms ease;
}
.vd-btn:hover { transform: translateY(-1px); }
.vd-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.vd-btn-primary { background: var(--brand); color: var(--accent-ink); }
.vd-btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.vd-btn-ghost:hover { border-color: var(--accent); }
.vd-btn svg { width: 18px; height: 18px; flex: none; }
.vd-btn-ghost svg { color: var(--gold); width: 16px; height: 16px; }

/* ---------- Intro: banner and links ---------- */
.vd-intro { padding: var(--sp-6) 0 var(--sp-7); }
.vd-banner { margin-bottom: var(--sp-5); }
.vd-banner img { width: 100%; border-radius: var(--radius-xl); border: 1px solid var(--border); }
.vd-lede { font-size: var(--fs-lg); color: var(--text-muted); text-align: center; margin-bottom: var(--sp-5); }
.vd-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-3); }
.vd-link {
	display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
	padding: var(--sp-4) var(--sp-5); border-radius: var(--radius-lg);
	background: var(--surface); border: 1px solid var(--border);
	color: var(--text); text-decoration: none;
	transition: transform 120ms ease, border-color 120ms ease;
}
.vd-link:hover { transform: translateY(-2px); border-color: var(--accent); }
.vd-link span { display: grid; line-height: 1.35; }
.vd-link b { font-size: var(--fs-lg); font-weight: 800; }
.vd-link small { font-size: var(--fs-sm); color: var(--text-muted); }
.vd-link svg { width: 20px; height: 20px; flex: none; color: var(--text-faint); }
.vd-link-primary { border-color: rgba(255, 122, 217, 0.5); background: linear-gradient(135deg, rgba(255, 122, 217, 0.14), var(--surface) 70%); }
.vd-link-primary svg { color: var(--pink); }

/* ---------- Sections ---------- */
.vd-section { padding: var(--sp-8) 0; border-top: 1px solid var(--border); }
.vd-heading { font-size: var(--fs-xl); font-weight: 900; line-height: 1.2; margin-bottom: var(--sp-5); }

/* ---------- Games ----------
   A card is as tall as its cover: the cover sets the row's height, and the body beside it
   (title, tabs, the open tab, Last updated) fits in that, the open tab scrolling if it must. */
.vd-games { display: grid; gap: var(--sp-5); }
.vd-game {
	display: grid; grid-template-columns: 480px minmax(0, 1fr);
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
	overflow: hidden;
}
.vd-game-art { width: 100%; aspect-ratio: 840 / 667; object-fit: cover; }
.vd-game-body {
	height: 0; min-height: 100%; min-width: 0;
	display: flex; flex-direction: column; gap: var(--sp-3);
	padding: var(--sp-5) var(--sp-5) 0;
}
.vd-game-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.vd-game-head h3 { font-size: var(--fs-xl); line-height: 1.2; }
.vd-game-body p { color: var(--text-muted); font-size: var(--fs-md); }
.vd-game-body p.vd-game-tagline { color: var(--pink); font-weight: 700; font-style: italic; }

.vd-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.vd-chip {
	display: inline-block;
	font-size: var(--fs-xs); font-weight: 800; line-height: 1;
	padding: 6px var(--sp-2); border-radius: 999px;
	background: var(--surface-3); color: var(--text-muted); text-decoration: none;
}

/* ---------- A game's tabs: About, Play free, Full version (and Updates, from Last updated) ---------- */
.vd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vd-tabs { display: flex; gap: var(--sp-1); padding: var(--sp-1); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; flex: none; }
.vd-tab {
	flex: 1 1 0; min-height: 36px; padding: 0 var(--sp-3); border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
	font: 800 var(--fs-sm) var(--font); color: var(--text-muted); background: transparent;
}
.vd-tab:hover { color: var(--text); }
.vd-tab[aria-expanded="true"] { background: var(--brand); color: var(--accent-ink); }
.vd-tab-panels { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.vd-tab-panel { display: grid; gap: var(--sp-3); align-content: start; }
.vd-tab-panel[hidden] { display: none; }
.vd-tab-panel b { color: var(--text); }

.vd-row {
	display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
	padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-lg);
	background: var(--surface-2); border: 1px solid var(--border-strong);
	color: var(--text); text-decoration: none; transition: border-color 120ms ease;
}
.vd-row:hover { border-color: var(--accent); }
.vd-row span { display: grid; line-height: 1.35; }
.vd-row b { font-size: var(--fs-md); font-weight: 800; }
.vd-row small { font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); }
.vd-row svg { width: 20px; height: 20px; flex: none; color: var(--accent); }

.vd-steps { padding-left: 0; margin: 0; list-style: none; counter-reset: step; display: grid; gap: var(--sp-2); }
.vd-steps[hidden] { display: none; }
.vd-steps > li {
	counter-increment: step; position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
	min-height: 40px; padding-left: 34px; font-size: var(--fs-md); color: var(--text-muted);
}
.vd-steps > li::before {
	content: counter(step); position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%;
	display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 900; color: var(--accent-ink); background: var(--brand);
}
.vd-steps .vd-btn { flex: none; min-width: 112px; }
.vd-btn-sm { min-height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.vd-unlock { display: flex; gap: var(--sp-2); width: 100%; }
.vd-unlock input {
	flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 0 var(--sp-4);
	font: 700 var(--fs-sm) var(--font); color: var(--text);
	background: var(--bg); border: 1px solid var(--border-strong); border-radius: 999px;
}
.vd-unlock input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.vd-unlock-msg:empty { display: none; }
.vd-game-body p.vd-unlock-msg { font-size: var(--fs-sm); color: var(--pink); }
.vd-full-open { display: grid; gap: var(--sp-3); }
.vd-full-open[hidden] { display: none; }

.vd-game-updates { list-style: none; padding: 0 var(--sp-2) 0 0; margin: 0; display: grid; }
.vd-game-updates li { display: grid; grid-template-columns: 128px 1fr; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--border); }
.vd-game-updates li:first-child { padding-top: 0; }
.vd-game-updates time { color: var(--text-faint); font-size: var(--fs-sm); font-weight: 700; padding-top: 1px; }
.vd-game-updates p { font-size: var(--fs-md); color: var(--text) !important; }

.vd-game-updated {
	flex: none; display: flex; align-items: center; gap: var(--sp-2);
	margin: 0 calc(-1 * var(--sp-5)); padding: var(--sp-3) var(--sp-5);
	border: 0; border-top: 1px solid var(--border); cursor: pointer; text-align: left;
	font: 700 var(--fs-sm) var(--font); color: var(--text-muted); background: var(--surface-2);
}
.vd-game-updated:hover, .vd-game-updated[aria-expanded="true"] { color: var(--text); background: var(--surface-3); }
.vd-game-updated b { color: var(--text); }
.vd-game-updated svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
.vd-game-updated-more { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-weight: 800; }
.vd-game-updated > span:not(.vd-game-updated-more) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@media (max-width: 1100px) { .vd-more-label { display: none; } }
.vd-game-updated[aria-expanded="true"] .vd-game-updated-more svg { transform: rotate(90deg); }

/* ---------- Mirror downloads ---------- */
.vd-dl {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-3);
	padding: var(--sp-3) var(--sp-4); border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--border);
}
.vd-dl-label small { font-size: var(--fs-sm); font-weight: 700; color: var(--text-muted); }
.vd-dl-link img { width: 20px; height: 20px; flex: none; }
.vd-dl-label { display: grid; font-size: var(--fs-md); font-weight: 800; color: var(--text); line-height: 1.35; }
.vd-dl-hosts { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.vd-dl-link {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--sp-3);
	font-size: var(--fs-sm); font-weight: 800; color: var(--text); text-decoration: none;
	border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border-strong);
	transition: border-color 120ms ease;
}
.vd-dl-link:hover { border-color: var(--accent); }
.vd-dl-link svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- About ---------- */
.vd-about { display: grid; grid-template-columns: 160px 1fr; gap: var(--sp-6); align-items: start; }
.vd-about img { border-radius: 50%; border: 1px solid var(--border-strong); aspect-ratio: 1; object-fit: cover; }
.vd-about-copy { display: grid; gap: var(--sp-3); }
.vd-about-copy .vd-heading { margin-bottom: 0; }
.vd-about-copy p { color: var(--text-muted); font-size: var(--fs-md); }

/* ---------- Footer ---------- */
.vd-footer { border-top: 1px solid var(--border); padding: var(--sp-7) 0; color: var(--text-faint); font-size: var(--fs-sm); }
.vd-footer .vd-wrap { display: grid; gap: var(--sp-4); }
.vd-footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-4); align-items: center; }
.vd-footer nav { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.vd-footer a { color: var(--text-muted); text-decoration: none; font-weight: 700; }
.vd-footer a:hover { color: var(--text); }
.vd-badge18 {
	display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	border: 2px solid var(--pink); color: var(--pink); font-weight: 900; font-size: var(--fs-xs);
}

/* ---------- Age gate ---------- */
.vd-gated body { overflow: hidden; }
.vd-gated .vd-page { filter: blur(18px); pointer-events: none; user-select: none; }
.vd-gate {
	position: fixed; inset: 0; z-index: 1000;
	display: grid; place-items: center; padding: var(--sp-4);
	background: rgba(8, 7, 11, 0.72);
}
.vd-gate-card {
	width: 100%; max-width: 480px; display: grid; gap: var(--sp-4); text-align: center; justify-items: center;
	padding: var(--sp-6); border-radius: var(--radius-xl);
	background: var(--surface); border: 1px solid var(--border-strong);
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}
.vd-gate-card h2 { font-size: var(--fs-xl); }
.vd-gate-card p { color: var(--text-muted); font-size: var(--fs-md); }
.vd-gate-card .vd-actions { justify-content: center; margin-top: var(--sp-2); }
.vd-gate-card .vd-badge18 { width: 56px; height: 56px; font-size: var(--fs-lg); }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
	/* Too narrow for the cover beside the text: the cover on top, and the body as tall as it needs. */
	.vd-game { grid-template-columns: 1fr; }
	.vd-game-body { height: auto; min-height: 0; }
	.vd-tab-panels { overflow: visible; }
}
@media (max-width: 720px) {
	:root { --gutter: var(--sp-4); --sp-8: 48px; }
	.vd-nav a:not(:first-child) { display: none; }
	.vd-intro { padding-top: var(--sp-4); }
	.vd-banner { margin-bottom: var(--sp-4); }
	.vd-lede { font-size: var(--fs-md); }
	.vd-game-body { padding: var(--sp-4) var(--sp-4) 0; }
	.vd-game-updated { margin: 0 calc(-1 * var(--sp-4)); padding: var(--sp-3) var(--sp-4); }
	.vd-steps > li { flex-wrap: wrap; min-width: 0; }
	.vd-steps > li > span { flex: 1 1 160px; }
	.vd-steps .vd-btn { min-width: 0; }
	.vd-unlock { min-width: 0; }
	.vd-game-updates li { grid-template-columns: 1fr; gap: var(--sp-1); }
	.vd-about { grid-template-columns: 1fr; gap: var(--sp-4); }
	.vd-about img { max-width: 112px; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
