/* PS5-ECAM's site. Colours from the launcher's tokens (port/ui/tokens.json): its inks, and each side's
   colour, the Wii U's blue, the 3DS's gold, the DS's green and the Switch's red. */

@font-face { font-family: "Lexend"; src: url("fonts/Lexend-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/Lexend-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("fonts/Lexend-SemiBold.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #f6f8fc;
  --bg-2: #eef2f9;
  --surface: #ffffff;
  --surface-2: #f2f5fa;
  --line: rgba(10, 15, 27, 0.09);
  --line-2: rgba(10, 15, 27, 0.15);
  --text: #0a0f1b;
  --text-2: rgba(10, 15, 27, 0.72);
  --text-3: rgba(10, 15, 27, 0.55);
  --link: #1a63d1;
  --wiiu: #1f6fe0;
  --n3ds: #9a6400;
  --nds: #2c7f1b;
  --nx: #c81f2c;
  --wiiu-soft: rgba(90, 169, 255, 0.14);
  --n3ds-soft: rgba(244, 182, 63, 0.16);
  --nds-soft: rgba(126, 217, 87, 0.16);
  --nx-soft: rgba(242, 67, 79, 0.12);
  --primary-1: #3d8ef5;
  --primary-2: #1f66d6;
  --primary-shadow: rgba(31, 102, 214, 0.28);
  --code: rgba(10, 15, 27, 0.06);
  --shadow: 0 1px 2px rgba(10, 15, 27, 0.05), 0 10px 30px -12px rgba(10, 15, 27, 0.12);
  --glow: 0.55;
  --grid: rgba(10, 15, 27, 0.05);
  --nav: rgba(246, 248, 252, 0.78);
  --focus: #1f66d6;
  --discord: #5865f2;
  --discord-2: #4651d6;
  --kofi: #ff5e5b;
  --radius: 20px;
  --radius-sm: 12px;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05070d;
    --bg-2: #0a0f1b;
    --surface: #0b1120;
    --surface-2: #111827;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #f5f7fb;
    --text-2: rgba(245, 247, 251, 0.74);
    --text-3: rgba(245, 247, 251, 0.54);
    --link: #7dbbff;
    --wiiu: #5aa9ff;
    --n3ds: #f4b63f;
    --nds: #7ed957;
    --nx: #ff6b75;
    --wiiu-soft: rgba(90, 169, 255, 0.1);
    --n3ds-soft: rgba(244, 182, 63, 0.09);
    --nds-soft: rgba(126, 217, 87, 0.08);
    --nx-soft: rgba(242, 67, 79, 0.09);
    --primary-shadow: rgba(47, 127, 232, 0.4);
    --code: rgba(255, 255, 255, 0.07);
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -20px rgba(0, 0, 0, 0.6);
    --glow: 1;
    --grid: rgba(255, 255, 255, 0.035);
    --nav: rgba(5, 7, 13, 0.72);
    --focus: #ffffff;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #05070d;
  --bg-2: #0a0f1b;
  --surface: #0b1120;
  --surface-2: #111827;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f7fb;
  --text-2: rgba(245, 247, 251, 0.74);
  --text-3: rgba(245, 247, 251, 0.54);
  --link: #7dbbff;
  --wiiu: #5aa9ff;
  --n3ds: #f4b63f;
  --nds: #7ed957;
  --nx: #ff6b75;
  --wiiu-soft: rgba(90, 169, 255, 0.1);
  --n3ds-soft: rgba(244, 182, 63, 0.09);
  --nds-soft: rgba(126, 217, 87, 0.08);
  --nx-soft: rgba(242, 67, 79, 0.09);
  --primary-shadow: rgba(47, 127, 232, 0.4);
  --code: rgba(255, 255, 255, 0.07);
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 20px 40px -20px rgba(0, 0, 0, 0.6);
  --glow: 1;
  --grid: rgba(255, 255, 255, 0.035);
  --nav: rgba(5, 7, 13, 0.72);
  --focus: #ffffff;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Lexend", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
b, strong { font-weight: 600; color: var(--text); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
p { margin: 0; }
code, kbd { font-family: var(--mono); }
code { font-size: 0.86em; background: var(--code); border-radius: 6px; padding: 0.1em 0.38em; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

/* Top bar */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.06rem; letter-spacing: 0.01em; }
.brand-mark { width: 28px; height: 28px; }
.nav-links { display: none; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 0.92rem; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover { color: var(--text); background: var(--code); }
.nav-actions { display: flex; gap: 6px; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--text-2); cursor: pointer; padding: 0; }
.icon-btn:hover { color: var(--text); background: var(--code); }
.icon-btn svg { width: 18px; height: 18px; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-links + .nav-actions { margin-left: 8px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font: 600 0.98rem/1.2 "Lexend", system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.primary { color: #fff; border-color: transparent; background: linear-gradient(180deg, var(--primary-1), var(--primary-2)); box-shadow: 0 10px 24px -10px var(--primary-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.primary:hover { box-shadow: 0 14px 30px -10px var(--primary-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }
.btn.wide { width: 100%; }
.btn.on-color { background: #fff; color: var(--discord-2); border-color: transparent; }
.btn.kofi { background: var(--kofi); color: #fff; border-color: transparent; box-shadow: 0 10px 24px -12px rgba(255, 94, 91, 0.55); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 9vw, 112px) 0 clamp(48px, 8vw, 96px); border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 20%, transparent 75%); }
.hero-bg::after { content: ""; position: absolute; left: 50%; top: 42%; width: min(1100px, 140vw); height: 620px; transform: translate(-50%, -50%); opacity: var(--glow); filter: blur(30px);
  background:
    radial-gradient(closest-side at 28% 34%, rgba(90, 169, 255, 0.34), transparent),
    radial-gradient(closest-side at 70% 30%, rgba(244, 182, 63, 0.24), transparent),
    radial-gradient(closest-side at 32% 74%, rgba(126, 217, 87, 0.2), transparent),
    radial-gradient(closest-side at 72% 72%, rgba(242, 67, 79, 0.24), transparent); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.lockup { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-mark { width: clamp(112px, 30vw, 172px); height: auto; aspect-ratio: 1; filter: drop-shadow(0 18px 40px rgba(10, 15, 27, 0.28)); animation: breathe 4.8s ease-in-out infinite; }
.wordmark { width: min(86vw, 560px); aspect-ratio: 1071 / 214; background: var(--text); -webkit-mask: url("wordmark.png") center / contain no-repeat; mask: url("wordmark.png") center / contain no-repeat; }
.tagline { margin-top: 14px; color: var(--text-2); font-weight: 500; font-size: clamp(1rem, 0.9rem + 0.7vw, 1.4rem); letter-spacing: 0.005em; }
.lede { max-width: 720px; margin-top: 30px; color: var(--text-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }
.lede a { color: var(--text); text-decoration-color: var(--line-2); }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 20px; color: var(--text-3); font-size: 0.88rem; }
.hero-meta span:empty { display: none; }
@media (min-width: 760px) {
  .lockup { flex-direction: row; gap: 34px; text-align: left; }
  .lockup-text { display: flex; flex-direction: column; align-items: flex-start; }
  .wordmark { width: clamp(360px, 44vw, 560px); }
}
@keyframes breathe { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
.eyebrow { color: var(--text-3); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2, .community h2 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); letter-spacing: -0.02em; }
.section-lede { margin-top: 14px; color: var(--text-2); font-size: 1.05rem; }
.sub-head { font-size: 1.3rem; margin: clamp(44px, 6vw, 64px) 0 16px; }
.fine { color: var(--text-3); font-size: 0.92rem; margin-top: 14px; }

/* Systems */
.systems { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .systems { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .systems { grid-template-columns: repeat(4, 1fr); } }
.system { --c: var(--wiiu); --soft: var(--wiiu-soft); position: relative; overflow: hidden; padding: 22px; border-radius: var(--radius); background: linear-gradient(180deg, var(--soft), transparent 55%), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.system::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); opacity: 0.9; }
.system.n3ds { --c: var(--n3ds); --soft: var(--n3ds-soft); }
.system.nds { --c: var(--nds); --soft: var(--nds-soft); }
.system.nx { --c: var(--nx); --soft: var(--nx-soft); }
.system header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.system .pane { width: 52px; height: 52px; flex: none; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.18)); }
.system h3 { font-size: 1.18rem; }
.emu { color: var(--text-3); font-size: 0.85rem; margin-top: 2px; }
.emu a { color: var(--c); font-weight: 600; text-decoration: none; }
.emu a:hover { text-decoration: underline; }
.system dl { margin: 0; display: grid; gap: 4px; }
.system dt { color: var(--c); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 10px; }
.system dt:first-child { margin-top: 0; }
.system dd { margin: 0; color: var(--text-2); font-size: 0.93rem; line-height: 1.55; }
.system code { font-size: 0.8em; }

.perks { list-style: none; margin: clamp(28px, 4vw, 40px) 0 0; padding: 0; display: grid; gap: 1px; grid-template-columns: 1fr; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); }
@media (min-width: 680px) { .perks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perks li { background: var(--surface); padding: 22px; }
.perks h3 { font-size: 1rem; margin-bottom: 6px; }
.perks p { color: var(--text-2); font-size: 0.92rem; }

/* Latest release */
.release-section { background: linear-gradient(180deg, var(--bg-2), var(--bg) 70%); }
.release-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; color: var(--text-3); font-size: 0.95rem; }
.release-sub time:empty { display: none; }
.source { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.82rem; }
.source::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.source.live::before { background: #3dd6a3; box-shadow: 0 0 0 4px rgba(61, 214, 163, 0.18); }
.source.baked::before { background: #ffb547; }
.release-card { display: grid; gap: 0; grid-template-columns: 1fr; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
@media (min-width: 960px) { .release-card { grid-template-columns: 320px minmax(0, 1fr); } }
.release-side { padding: 22px; border-bottom: 1px solid var(--line); }
@media (min-width: 960px) {
  .release-side { border-bottom: 0; border-right: 1px solid var(--line); }
  .release-side-inner { position: sticky; top: 88px; }
}
.release-side .btn { font-size: 0.95rem; }
.facts { margin: 18px 0 0; display: grid; gap: 14px; }
.facts dt { color: var(--text-3); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; color: var(--text); }
.facts dd:empty::after, .facts code:empty::after { content: "–"; color: var(--text-3); }
.sha dd { display: flex; align-items: flex-start; gap: 10px; }
.sha code { flex: 1; min-width: 0; font-size: 0.78rem; line-height: 1.5; padding: 8px 10px; word-break: break-all; }
.copy { flex: none; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); border-radius: 999px; padding: 6px 12px; font: 500 0.8rem "Lexend", system-ui, sans-serif; cursor: pointer; }
.copy:hover { color: var(--text); background: var(--code); }
.update-note { margin-top: 16px; color: var(--text-2); font-size: 0.9rem; }
.update-note:empty { display: none; }
.update-note p + p { margin-top: 8px; }
.side-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-size: 0.92rem; }
.notes-wrap { position: relative; min-width: 0; padding: 8px 22px 22px; }
@media (min-width: 640px) { .notes-wrap { padding: 12px 34px 30px; } }
.notes { position: relative; }
.notes.collapsed { max-height: 760px; overflow: hidden; }
.notes.collapsed::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; background: linear-gradient(180deg, transparent, var(--surface)); pointer-events: none; }
.notes.plain { white-space: pre-wrap; font-size: 0.92rem; color: var(--text-2); }
.notes-more { display: flex; justify-content: center; padding-top: 18px; }
.notes-more[hidden] { display: none; }

/* Release notes as GitHub writes them */
.prose { color: var(--text-2); font-size: 0.98rem; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose h1, .prose h2 { color: var(--text); font-size: 1.35rem; margin: 34px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }
.prose > h1:first-child, .prose > h2:first-child { border-top: 0; padding-top: 14px; }
.prose h3 { color: var(--text); font-size: 1.08rem; margin: 26px 0 10px; display: flex; align-items: center; gap: 10px; }
.prose h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--wiiu); flex: none; }
.prose h3:nth-of-type(4n + 2)::before { background: var(--n3ds); }
.prose h3:nth-of-type(4n + 3)::before { background: var(--nds); }
.prose h3:nth-of-type(4n + 4)::before { background: var(--nx); }
.prose h4 { color: var(--text); font-size: 1rem; margin: 20px 0 8px; }
.prose p { margin: 12px 0; }
.prose ul, .prose ol { margin: 10px 0; padding-left: 1.3em; }
.prose li { margin: 6px 0; padding-left: 2px; }
.prose li::marker { color: var(--text-3); }
.prose blockquote { margin: 14px 0; padding: 4px 16px; border-left: 3px solid var(--line-2); color: var(--text-3); }
.prose pre { background: var(--code); border-radius: var(--radius-sm); padding: 14px 16px; overflow-x: auto; font-size: 0.86rem; }
.prose pre code { background: none; padding: 0; }
.prose img { height: auto; border-radius: var(--radius-sm); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.prose .table-wrap { overflow-x: auto; margin: 14px 0; }
.prose table { border-collapse: collapse; font-size: 0.9rem; min-width: 100%; }
.prose th, .prose td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 600; }

/* Install */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; position: relative; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 12px; color: #fff; font-weight: 600; font-size: 1.05rem; background: linear-gradient(180deg, #5aa9ff, #2f7fe8); }
.steps li:nth-child(2)::before { background: linear-gradient(180deg, #f4b63f, #d9961b); }
.steps li:nth-child(3)::before { background: linear-gradient(180deg, #7ed957, #4caf38); }
.steps li:nth-child(4)::before { background: linear-gradient(180deg, #f2434f, #c81f2c); }
.steps h3 { font-size: 1.05rem; margin-bottom: 8px; }
.steps p { color: var(--text-2); font-size: 0.93rem; }

.games { border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.games-row { display: grid; gap: 6px 20px; grid-template-columns: 1fr; padding: 16px 20px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.93rem; }
.games-row:first-child { border-top: 0; }
.games-head { display: none; color: var(--text-3); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; background: var(--surface-2); }
@media (min-width: 760px) {
  .games-row { grid-template-columns: 150px minmax(0, 220px) minmax(0, 1fr); align-items: center; }
  .games-head { display: grid; padding-top: 12px; padding-bottom: 12px; }
}
.sys { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.sys svg { width: 26px; height: 26px; }

.callouts { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 28px; }
@media (min-width: 860px) { .callouts { grid-template-columns: 1fr 1fr; } }
.callout { padding: 22px; border-radius: var(--radius); border: 1px dashed var(--line-2); }
.callout h3 { font-size: 1.02rem; margin-bottom: 8px; }
.callout p { color: var(--text-2); font-size: 0.93rem; }

/* Controls */
.controls { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .controls { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .controls { grid-template-columns: repeat(3, 1fr); } }
.controls li { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 0.95rem; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.plus { color: var(--text-3); font-weight: 600; }
.key { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; font: 600 0.84rem "Lexend", system-ui, sans-serif; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: 0 2px 0 var(--line-2); }
.key.shoulder { border-radius: 14px 14px 8px 8px; min-width: 52px; }
.key.pad { border-radius: 10px 10px 18px 18px; padding: 0 16px; font-size: 0.8rem; }
.key.options { border-radius: 999px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0 14px; }
.key.face { width: 40px; min-width: 40px; padding: 0; border-radius: 50%; }
.key.face svg { width: 18px; height: 18px; fill: none; stroke-width: 2.4; stroke-linecap: round; }
.key.cross svg { stroke: #6f9cf5; }
.key.circle svg { stroke: #f2626b; }

/* Discord and support */
.community { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 960px) { .community { grid-template-columns: 1.25fr 1fr; } }
.discord, .support { border-radius: 24px; padding: clamp(24px, 4vw, 40px); }
.discord { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgba(255, 255, 255, 0.16), transparent 50%), linear-gradient(160deg, var(--discord), var(--discord-2)); }
.discord .eyebrow { color: rgba(255, 255, 255, 0.72); }
.discord h2 { color: #fff; }
.discord ul { margin: 20px 0 26px; padding: 0; list-style: none; display: grid; gap: 12px; }
.discord li { position: relative; padding-left: 22px; color: rgba(255, 255, 255, 0.86); font-size: 0.96rem; }
.discord li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 3px; background: #fff; opacity: 0.8; }
.discord b { color: #fff; }
.discord .fine { color: rgba(255, 255, 255, 0.75); }
.discord .fine a { color: #fff; }
.support { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.support > p { color: var(--text-2); margin: 12px 0 22px; }
.paypal { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.93rem; }
.qr { flex: none; background: #fff; border-radius: 14px; padding: 6px; border: 1px solid var(--line); }
.qr img { width: 92px; height: 92px; }

/* Docs */
.doc-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .doc-grid { grid-template-columns: repeat(3, 1fr); } }
.doc { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color 0.15s ease, transform 0.15s ease; }
.doc:hover { border-color: var(--line-2); transform: translateY(-1px); }
.doc > b { color: var(--text); display: flex; align-items: center; justify-content: space-between; }
.doc > b::after { content: "→"; color: var(--text-3); font-weight: 400; transition: transform 0.15s ease; }
.doc:hover > b::after { transform: translateX(3px); color: var(--text); }
.doc span { color: var(--text-2); font-size: 0.9rem; }
.doc span b { color: var(--text-2); }

/* Credits */
.founders { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .founders { grid-template-columns: 1fr 1.6fr; } }
.person { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.person img { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); }
.founder { padding: 24px; box-shadow: var(--shadow); }
.founder img { width: 64px; height: 64px; }
.person h3, .person h4 { font-size: 1.06rem; }
.person h3 a, .person h4 a { color: var(--text); text-decoration: none; }
.person h3 a:hover, .person h4 a:hover { text-decoration: underline; }
.person p { color: var(--text-2); font-size: 0.92rem; margin-top: 6px; }
.role { display: inline-block; margin-top: 6px; padding: 2px 10px; border-radius: 999px; font-size: 0.75rem !important; font-weight: 600; letter-spacing: 0.06em; color: var(--text) !important; background: linear-gradient(90deg, var(--wiiu-soft), var(--n3ds-soft), var(--nds-soft), var(--nx-soft)); border: 1px solid var(--line); }
.bio { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.bio li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 0.92rem; line-height: 1.5; }
.bio li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border-radius: 3px; background: var(--wiiu); }
.bio li:nth-child(4n + 2)::before { background: var(--n3ds); }
.bio li:nth-child(4n + 3)::before { background: var(--nds); }
.bio li:nth-child(4n + 4)::before { background: var(--nx); }
.people { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 18px; }
@media (min-width: 860px) { .people { grid-template-columns: 1fr 1fr; } }
.built-on { margin: 0; padding: 0; list-style: none; columns: 1; column-gap: 40px; color: var(--text-2); font-size: 0.92rem; }
@media (min-width: 860px) { .built-on { columns: 2; } }
.built-on li { break-inside: avoid; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 56px; color: var(--text-3); font-size: 0.88rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-top p { flex: 1 1 320px; color: var(--text-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.license { padding-top: 26px; display: grid; gap: 12px; max-width: 900px; }
.license h2 { font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.license a { color: var(--text-2); }

/* Appearing as they come into view (only with JavaScript, and never with reduced motion) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mark { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .doc { transition: none; }
}
@media print {
  .nav, .hero-bg, .cta, .notes-more { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  .notes.collapsed { max-height: none; }
  .notes.collapsed::after { display: none; }
}
