/* Elyndral's website: one stylesheet for every page. Dark ember, Cinzel titles, Inter text. */
:root {
	--bg: #0d0a08; --bg2: #120e0b; --panel: #19130f; --panel2: #221a14; --panel3: #2c2219;
	--ink: #f6ede3; --muted: #b6a797; --faint: #85776a; --line: #352a21; --line2: #4a3a2d;
	--ember: #f97316; --ember2: #fb923c; --ember3: #fdba74; --ember-ink: #1c0d03; --gold: #fcd34d;
	--ok: #86efac; --bad: #fca5a5;
	--radius: 12px; --radius-s: 8px;
	--shadow: 0 18px 50px rgba(0, 0, 0, .5);
	--head: 64px;
	color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; white-space: nowrap;
	font: 800 .95rem/1 Inter, sans-serif; letter-spacing: .04em; text-transform: uppercase;
	background: linear-gradient(#fb923c, #ea580c); color: var(--ember-ink); padding: 15px 26px; min-height: 48px;
	border: 0; border-radius: var(--radius-s); box-shadow: 0 3px 0 #9a3412, 0 10px 28px rgba(249, 115, 22, .22);
	transition: transform .08s, box-shadow .08s, filter .15s; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 #9a3412; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.small { padding: 10px 16px; min-height: 40px; font-size: .8rem; box-shadow: 0 2px 0 #9a3412; }
.btn.big { padding: 19px 34px; font-size: 1.05rem; }
.btn.ghost { background: rgba(255, 255, 255, .06); color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.btn.ghost:hover { background: rgba(255, 255, 255, .12); }
.btn.block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--ember2); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------ the bar across the top */
header.site { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); }
/* (the frosted glass on a layer of its own: on the bar itself it would trap the phone menu inside it) */
header.site::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(13, 10, 8, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
body.menu-open header.site::before { background: var(--bg); }
header.site .bar { display: flex; align-items: center; gap: 20px; height: var(--head); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 1.2rem Cinzel, serif; letter-spacing: .08em; flex-shrink: 0; }
.logo img { width: 30px; height: 30px; image-rendering: pixelated; border-radius: 6px; }
.beta { font: 800 .66rem Inter, sans-serif; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ember-ink); background: var(--ember2); padding: 3px 7px; border-radius: 4px; margin-left: -8px; }
.menu-btn { display: none; background: none; border: 0; color: var(--ink); padding: 8px; margin-left: -8px; cursor: pointer; border-radius: 8px; }
nav.main { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.group { position: relative; }
.group-btn, nav.main > a { display: flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--ink); font: 600 .95rem Inter, sans-serif; padding: 10px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; opacity: .88; }
.group-btn:hover, nav.main > a:hover, .group.open .group-btn { opacity: 1; background: rgba(255, 255, 255, .06); }
.group-btn svg { transition: transform .2s; }
.group.open .group-btn svg { transform: rotate(180deg); }
.drop { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: var(--panel); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; display: none; }
.group.open .drop { display: block; }
.drop a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.drop a:hover { background: var(--panel3); }
.drop a small { display: block; color: var(--faint); font-size: .8rem; }
.menu-account { display: none; }
.head-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.profile { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line2); font-weight: 600; font-size: .92rem; }
.profile:hover { background: rgba(255, 255, 255, .06); }
.face { width: 28px; height: 28px; border-radius: 6px; background: var(--panel3); image-rendering: pixelated; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.face canvas { width: 100%; height: 100%; image-rendering: pixelated; }

@media (max-width: 900px) {
	header.site .bar { gap: 8px; }
	.menu-btn { display: block; }
	.logo { font-size: 1.05rem; gap: 8px; }
	.beta { margin-left: 0; font-size: .6rem; padding: 2px 5px; }
	.logo img { width: 26px; height: 26px; }
	.profile { display: none; }
	.head-right .btn { padding: 10px 14px; min-height: 40px; font-size: .75rem; }
	nav.main {
		position: fixed; inset: var(--head) 0 0 0; margin: 0; background: var(--bg); flex-direction: column; align-items: stretch;
		gap: 0; padding: 12px 20px 32px; overflow-y: auto; transform: translateX(-100%); transition: transform .25s ease; visibility: hidden;
	}
	body.menu-open nav.main { transform: none; visibility: visible; }
	.group { border-bottom: 1px solid var(--line); }
	.group-btn { width: 100%; justify-content: space-between; font: 700 1.15rem Inter, sans-serif; padding: 18px 4px; opacity: 1; border-radius: 0; }
	.group-btn:hover, .group.open .group-btn { background: none; }
	.drop { position: static; display: none; min-width: 0; background: none; border: 0; box-shadow: none; padding: 0 0 12px; }
	.drop a { padding: 12px 8px; font-size: 1.02rem; }
	.menu-account { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
	.menu-account .who { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 1.05rem; }
	.menu-account .face { width: 40px; height: 40px; }
}
@media (max-width: 380px) { .logo span { display: none; } }
@media (max-width: 520px) { .tab { font-size: .84rem; } }

/* ------------------------------------------------------------------ type and sections */
section { padding: 96px 0; }
.kicker { color: var(--ember2); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: .78rem; margin: 0 0 12px; }
h2 { font: 900 clamp(1.85rem, 4.2vw, 2.75rem)/1.12 Cinzel, serif; margin: 0 0 16px; letter-spacing: .02em; }
h3 { font-size: 1.2rem; margin: 0 0 8px; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 62ch; margin: 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.band { background: linear-gradient(180deg, var(--bg), var(--bg2) 15%, var(--bg2) 85%, var(--bg)); }
.section-head { margin-bottom: 40px; }
code { font: .88em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel3); padding: 2px 6px; border-radius: 4px; }

/* fade in as they come into view (none for people who'd rather not have motion) */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rise.in { opacity: 1; transform: none; }
/* (screenshots of the whole page: ?shot) */
.shots .rise { opacity: 1; transform: none; transition: none; }
.shots .hero { min-height: 760px; }
.shots header.site { position: relative; }
.shots nav.main { transition: none; }
@media (prefers-reduced-motion: reduce) { .rise { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } nav.main { transition: none; } }

/* ------------------------------------------------------------------ the hero */
.hero { position: relative; min-height: calc(100svh - var(--head)); display: grid; place-items: center; text-align: center; padding: 72px 20px 120px; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(13,10,8,.15), rgba(13,10,8,.55) 70%), linear-gradient(180deg, rgba(13,10,8,.35) 0%, rgba(13,10,8,.1) 40%, rgba(13,10,8,.75) 85%, var(--bg) 100%); }
.hero .inner { position: relative; z-index: 1; max-width: 780px; }
.hero h1 { font: 900 clamp(3.2rem, 12vw, 7.5rem)/.95 Cinzel, serif; letter-spacing: .06em; margin: 0; text-shadow: 0 4px 0 rgba(0,0,0,.3), 0 14px 44px rgba(0,0,0,.65); }
.hero .tag { font-size: clamp(1.08rem, 2.6vw, 1.4rem); margin: 20px auto 32px; max-width: 32ch; text-shadow: 0 2px 14px rgba(0,0,0,.85); }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero .fine { margin: 18px 0 0; font-size: .88rem; color: #eadfd2; text-shadow: 0 1px 8px #000; }

/* the facts across the bottom of the hero */
.facts { position: relative; z-index: 2; margin-top: -76px; }
.facts .row { display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(25, 19, 15, .92); border: 1px solid var(--line2); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fact { padding: 22px 24px; display: flex; gap: 14px; align-items: center; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact svg { color: var(--ember2); flex-shrink: 0; }
.fact b { display: block; font-size: 1.05rem; }
.fact span { color: var(--muted); font-size: .88rem; }
@media (max-width: 900px) {
	.facts .row { grid-template-columns: 1fr 1fr; }
	.fact:nth-child(3) { border-left: 0; }
	.fact:nth-child(n+3) { border-top: 1px solid var(--line); }
	.fact { padding: 16px; gap: 10px; }
	.fact svg { width: 24px; height: 24px; }
	.fact b { font-size: .95rem; }
	.fact span { font-size: .8rem; }
}

/* ------------------------------------------------------------------ worlds */
.worlds { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.world-tabs { display: flex; flex-direction: column; gap: 6px; }
.world-tab { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px; color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.world-tab img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.world-tab b { display: block; font-size: .98rem; }
.world-tab small { color: var(--faint); }
.world-tab:hover { background: var(--panel2); }
.world-tab[aria-selected="true"] { border-color: var(--ember); background: var(--panel2); box-shadow: inset 3px 0 0 var(--ember); }
.world { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.world .pic { position: relative; aspect-ratio: 16 / 8; }
.world .pic img { width: 100%; height: 100%; object-fit: cover; }
.world .pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(25,19,15,.95)); }
.world .pic h3 { position: absolute; left: 28px; bottom: 18px; z-index: 1; margin: 0; font: 900 clamp(1.6rem, 3.4vw, 2.3rem) Cinzel, serif; text-shadow: 0 2px 12px #000; }
.world .body { padding: 8px 28px 28px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
.world .body p { color: var(--muted); margin: 0 0 14px; }
.world h4 { margin: 0 0 8px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ember2); }
.world ul { margin: 0; padding: 0; list-style: none; }
.world li { padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .94rem; }
.world li b { color: var(--ink); }
.boss { margin-top: 16px; background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--radius-s); padding: 14px 16px; }
.boss b { display: block; font: 900 1.1rem Cinzel, serif; color: var(--ember3); }
.boss span { color: var(--muted); font-size: .9rem; }
@media (max-width: 900px) {
	.worlds { grid-template-columns: 1fr; gap: 16px; }
	.world-tabs { flex-direction: row; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 6px; scrollbar-width: none; }
	.world-tabs::-webkit-scrollbar { display: none; }
	.world-tab { flex-direction: column; align-items: flex-start; gap: 8px; min-width: 132px; scroll-snap-align: start; }
	.world-tab img { width: 100%; height: 64px; }
	.world-tab small { display: none; }
	.world-tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--ember); }
	.world .pic { aspect-ratio: 16 / 10; }
	.world .pic h3 { left: 18px; }
	.world .body { grid-template-columns: 1fr; padding: 4px 18px 20px; gap: 8px; }
}

/* ------------------------------------------------------------------ features */
.feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.feature + .feature { margin-top: 96px; }
.feature.flip { grid-template-columns: 1fr 1.2fr; }
.feature.flip .shot { order: 2; }
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--muted); }
.ticks li::before { content: ""; width: 18px; height: 18px; flex-shrink: 0; margin-top: 3px; border-radius: 50%; background: rgba(249,115,22,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fb923c' stroke-width='3.5'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.pillar svg { color: var(--ember2); margin-bottom: 14px; }
.pillar p { margin: 0; color: var(--muted); }
@media (max-width: 900px) {
	section { padding: 64px 0; }
	.feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; }
	.feature.flip .shot { order: 0; }
	.feature + .feature { margin-top: 64px; }
	.pillars { grid-template-columns: 1fr; }
	.pillar { padding: 22px; }
}

/* ------------------------------------------------------------------ news */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.post time { color: var(--ember2); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.post h3 { margin: 0; font-size: 1.12rem; }
.post p { margin: 0; color: var(--muted); font-size: .94rem; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.post.open p { -webkit-line-clamp: unset; display: block; }
.post .more { align-self: flex-start; margin-top: auto; font-size: .88rem; }
.news-all { margin-top: 28px; text-align: center; }
@media (max-width: 900px) {
	.news { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 8px; gap: 14px; scrollbar-width: none; }
	.news::-webkit-scrollbar { display: none; }
	.post { min-width: 84%; scroll-snap-align: start; }
	.news.all { display: grid; overflow: visible; margin: 0; padding: 0; }
	.news.all .post { min-width: 0; }
}

/* ------------------------------------------------------------------ call to action band */
.cta-band { text-align: center; padding: 88px 0; background: radial-gradient(ellipse at center, rgba(249,115,22,.16), transparent 65%), var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band h2 { margin-bottom: 12px; }
.cta-band .btn { margin-top: 24px; }

/* ------------------------------------------------------------------ footer */
footer.site { padding: 56px 0 40px; color: var(--muted); font-size: .92rem; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
footer.site h4 { color: var(--ink); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--ember2); }
footer.site .logo { color: var(--ink); margin-bottom: 12px; }
footer.site .base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: var(--faint); font-size: .84rem; }
footer.site .disclaimer { margin: 14px 0 0; color: var(--faint); font-size: .78rem; max-width: 70ch; }
@media (max-width: 900px) {
	footer.site .cols { grid-template-columns: 1fr 1fr; }
	footer.site .about { grid-column: 1 / -1; }
}

/* ------------------------------------------------------------------ cards and forms (Get Elyndral, Your account) */
.page-head { padding-top: 64px; padding-bottom: 24px; }
.page-head h1 { font: 900 clamp(2.1rem, 5vw, 3.2rem)/1.1 Cinzel, serif; margin: 0 0 10px; }
.page { padding-top: 24px; padding-bottom: 96px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card + .card { margin-top: 18px; }
.card h2 { font-size: 1.5rem; }
.auth { max-width: 440px; margin: 0 auto; }
.tabs { display: flex; gap: 4px; margin: -6px 0 20px; border-bottom: 1px solid var(--line); }
.tab { flex: 1; white-space: nowrap; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font: 700 .92rem Inter, sans-serif; padding: 10px 4px 12px; cursor: pointer; }
.tab[aria-selected="true"] { color: var(--ink); border-color: var(--ember); }
form.stack { display: flex; flex-direction: column; gap: 14px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--muted); }
label.field small { font-weight: 400; color: var(--faint); }
input[type=text], input[type=email], input[type=password], input:not([type]) { font: 1rem Inter, sans-serif; padding: 12px 14px; min-height: 48px; border-radius: var(--radius-s); border: 1px solid var(--line2); background: var(--bg); color: var(--ink); width: 100%; }
input:focus { outline: 2px solid var(--ember); border-color: transparent; }
.ts { min-height: 65px; }
.msg { min-height: 1.3em; margin: 0; font-size: .92rem; }
.msg.bad { color: var(--bad); }
.msg.good { color: var(--ok); }
.note { background: var(--panel2); border: 1px solid var(--line2); border-left: 3px solid var(--ember); border-radius: var(--radius-s); padding: 14px 16px; color: var(--muted); font-size: .94rem; }
.note b { color: var(--ink); }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.platform { display: flex; flex-direction: column; gap: 12px; }
.platform.mine { border-color: var(--ember); box-shadow: 0 0 0 3px rgba(249,115,22,.2); }
.platform .badge { align-self: flex-start; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--ember-ink); background: var(--ember2); padding: 4px 8px; border-radius: 4px; display: none; }
.platform.mine .badge { display: block; }
.platform h3 { font-size: 1.35rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.platform .size { color: var(--muted); font-size: .9rem; margin: 0; }
details { color: var(--muted); font-size: .92rem; }
summary { cursor: pointer; color: var(--ink); font-weight: 600; padding: 4px 0; }
details ol { margin: 8px 0 0; padding-left: 1.2em; }
details li + li { margin-top: 4px; }
.servers-dl { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.more-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 48px; }
.link-card { text-decoration: none; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s; }
.link-card + .link-card { margin-top: 0; }
.link-card:hover { border-color: var(--ember); }
.link-card b { font-size: 1.05rem; }
.link-card b::after { content: " →"; color: var(--ember2); }
.link-card span { color: var(--muted); font-size: .9rem; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
thead th { color: var(--muted); font-weight: 600; }
.wide { overflow-x: auto; }
.phone-only { display: none; }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.spec { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px; }
.spec h3 { margin: 0 0 10px; font-size: 1.1rem; }
.tier + .tier { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.tier span { display: block; font-weight: 700; font-size: .9rem; color: var(--ember3); margin-bottom: 4px; }
.tier small { color: var(--faint); font-weight: 400; }
.tier ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: .92rem; }
.tier li + li { margin-top: 2px; }
@media (max-width: 900px) {
	.platforms, .specs, .more-links { grid-template-columns: 1fr; }
	.phone-only { display: block; }
}

.account { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }
.me { text-align: center; }
.me .face { width: 72px; height: 144px; margin: 0 auto 14px; border-radius: 10px; background: radial-gradient(ellipse at center 70%, rgba(249,115,22,.18), transparent 70%); }
.me h2 { font-size: 1.6rem; margin-bottom: 4px; word-break: break-word; }
.me .btn { margin-top: 18px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: var(--panel3); }
.status.good { color: var(--ok); }
.status.bad { color: var(--bad); }
.presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.preset { background: var(--panel2); border: 2px solid var(--line); border-radius: var(--radius-s); padding: 8px; cursor: pointer; color: var(--muted); font: 600 .8rem Inter, sans-serif; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.preset canvas { width: 40px; height: 80px; image-rendering: pixelated; }
.preset[aria-pressed="true"] { border-color: var(--ember); color: var(--ink); }
@media (max-width: 900px) {
	.account { grid-template-columns: 1fr; }
	.presets { grid-template-columns: repeat(3, 1fr); }
}

/* ------------------------------------------------------------------ article pages (guide, worlds, mods, help, legal) */
.doc-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; }
.toc { position: sticky; top: calc(var(--head) + 24px); display: flex; flex-direction: column; font-size: .92rem; }
.toc b { color: var(--faint); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.toc a { text-decoration: none; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); color: var(--muted); }
.toc a:hover { color: var(--ink); border-color: var(--ember); }
.doc { min-width: 0; }
.narrow-doc { max-width: 780px; }
.doc section { padding: 0; margin-bottom: 56px; }
.doc h2 { font: 900 clamp(1.5rem, 3.4vw, 2rem)/1.2 Cinzel, serif; margin: 0 0 14px; }
.doc h3 { font-size: 1.12rem; margin: 28px 0 8px; }
.doc p, .doc li { color: #ddd1c4; }
.doc a { color: var(--ember2); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li + li { margin-top: 6px; }
.doc table { margin: 14px 0; font-size: .94rem; display: block; overflow-x: auto; }
.doc th { color: var(--faint); font-weight: 700; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; }
.doc .shot { margin: 18px 0; }
.doc .shot img { aspect-ratio: auto; }
.doc .muted { color: var(--faint); }
kbd { display: inline-block; min-width: 1.8em; text-align: center; font: 700 .82em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); background: var(--panel2); border: 1px solid var(--line2); border-bottom-width: 3px; border-radius: 5px; padding: 1px 6px; }
.tip { background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--ember); border-radius: var(--radius-s); padding: 14px 18px; margin: 18px 0; }
.tip b { color: var(--gold); }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 13px 16px 13px 56px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); margin-top: 10px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--ember); color: var(--ember-ink); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.armour { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 14px 0; }
.armour > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.armour img { width: 100%; image-rendering: pixelated; margin-bottom: 10px; border-radius: 6px; }
.armour p { margin: 0; }
.armour span { color: var(--faint); font-size: .9em; }
.next-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.next-pages .link-card + .link-card { margin-top: 0; }
.news.all { display: grid; grid-template-columns: 1fr; max-width: 780px; }
.news.all .post p { -webkit-line-clamp: unset; display: block; }
@media (max-width: 900px) {
	.doc-layout { grid-template-columns: 1fr; gap: 20px; }
	.toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; }
	.toc b { width: 100%; margin: 0; }
	.toc a { border: 1px solid var(--line2); border-radius: 999px; padding: 6px 12px; font-size: .86rem; }
	.armour, .next-pages { grid-template-columns: 1fr; }
	.doc table.controls th:nth-child(3), .doc table.controls td:nth-child(3) { display: none; }
}
