/*
 * The Alchemy guide (/guides/alchemy). The page body is its own; the header, footer, fonts and colours are the
 * site's (landing.css, navigation.css). Mobile first: one column at phone widths, two from 760px, the full layout
 * from 1080px. Gold is the one accent for "do this": the Start button, step numbers and actions.
 */

:root {
	--alc-gold: var(--gold-hi);
	--alc-slot: #0d0a15;
	--alc-slot-line: rgba(143, 85, 223, 0.26);
	--alc-card: rgba(21, 16, 34, 0.78);
	--alc-yes: #7cd992;
	--alc-no: #f08a7e;
	--alc-max: 1120px;
	--alc-pad: 16px;
}

.alchemy-guide { font-size: 16px; }

.alc-skip {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 120;
	transform: translateY(-160%);
	border: 1px solid var(--line-strong);
	border-radius: 7px;
	background: var(--void-2);
	color: var(--text);
	padding: 10px 14px;
	text-decoration: none;
}

.alc-skip:focus { transform: translateY(0); }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.alc-main a,
.alc-hero a.alc-quiet {
	color: var(--purple-hi);
	text-decoration: none;
	border-bottom: 1px solid rgba(178, 140, 242, 0.4);
}

.alc-main a:hover,
.alc-main a:focus-visible,
.alc-hero a.alc-quiet:hover,
.alc-hero a.alc-quiet:focus-visible {
	color: var(--text);
	border-bottom-color: var(--text);
}

:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ------------------------------------------------------------------ sprites */

/* Item sprites are 48x32 and only ever drawn at whole multiples, hard-edged like the game. */
.alc-sprite {
	display: block;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
	max-width: none;
}

.alc-slot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	background: var(--alc-slot);
	border: 1px solid var(--alc-slot-line);
	border-radius: 8px;
	box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.55);
}

.alc-slot-1x { width: 56px; height: 40px; }
.alc-slot-2x { width: 108px; height: 76px; border-radius: 12px; }
.alc-slot-out { border-color: rgba(226, 192, 130, 0.65); box-shadow: inset 0 0 14px rgba(226, 192, 130, 0.12), 0 0 18px rgba(226, 192, 130, 0.12); }

/* ------------------------------------------------------------------ hero */

.alc-hero {
	position: relative;
	z-index: 1;
	max-width: var(--alc-max);
	margin: 0 auto;
	padding: 26px var(--alc-pad) 18px;
	display: grid;
	gap: 22px;
}

.alc-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	color: var(--purple-hi);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.alc-skill-icon { width: 34px; height: 34px; image-rendering: pixelated; }

.alc-title {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(48px, 13vw, 92px);
	line-height: 1;
	margin-top: 10px;
	letter-spacing: 0.01em;
	text-shadow: 0 4px 32px rgba(143, 85, 223, 0.4);
}

.alc-sub {
	margin-top: 12px;
	max-width: 34ch;
	color: var(--text);
	font-size: 19px;
	line-height: 1.45;
}

.alc-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 22px;
	margin-top: 22px;
}

.alc-start { font-size: 20px; padding: 14px 34px; }

.alc-quiet { font-weight: 600; font-size: 15px; }

.alc-facts {
	list-style: none;
	display: grid;
	gap: 8px;
	margin-top: 22px;
}

.alc-facts li {
	display: flex;
	gap: 10px;
	align-items: baseline;
	font-size: 15px;
}

.alc-facts span {
	flex: 0 0 76px;
	color: var(--muted);
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.alc-recipe {
	align-self: center;
	justify-self: center;
	padding: 18px 16px 16px;
	border: 1px solid var(--line);
	border-radius: 16px;
	background: radial-gradient(260px 160px at 50% 40%, rgba(143, 85, 223, 0.16), transparent 70%), var(--alc-card);
	text-align: center;
}

.alc-recipe-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.alc-recipe .alc-slot-2x { width: 86px; height: 70px; }
.alc-recipe .alc-sprite { width: 72px; height: 48px; }

.alc-op {
	font-family: var(--display);
	font-size: 26px;
	color: var(--alc-gold);
	width: 18px;
	text-align: center;
}

.alc-recipe figcaption {
	margin-top: 12px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.5;
}

/* Benefit chips: two across on a phone, four across on a wide screen. */
.alc-benefits {
	position: relative;
	z-index: 1;
	max-width: var(--alc-max);
	margin: 6px auto 0;
	padding: 0 var(--alc-pad);
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.alc-benefit {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--alc-card);
	color: var(--text);
	text-decoration: none;
	transition: border-color 120ms ease, transform 120ms ease;
}

.alc-benefit:hover,
.alc-benefit:focus-visible { border-color: var(--line-strong); transform: translateY(-1px); }

.alc-benefit-art { display: flex; gap: 6px; }
.alc-benefit-art .alc-slot-2x { width: 100%; max-width: 108px; }
.alc-benefit-art .alc-slot-2x + .alc-slot-2x { display: none; }

.alc-benefit-text { display: grid; gap: 4px; }
.alc-benefit-text strong { font-size: 16px; line-height: 1.25; }
.alc-benefit-text span { color: var(--muted); font-size: 14px; line-height: 1.4; }

/* ------------------------------------------------------------------ section bar */

.alc-bar {
	position: sticky;
	top: 0;
	z-index: 30;
	margin-top: 22px;
	background: rgba(11, 8, 18, 0.9);
	-webkit-backdrop-filter: blur(9px);
	backdrop-filter: blur(9px);
	border-top: 1px solid var(--line);
	border-bottom: 1px solid var(--line);
}

.alc-bar-inner {
	max-width: var(--alc-max);
	margin: 0 auto;
	padding: 9px var(--alc-pad);
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}

.alc-bar-inner::-webkit-scrollbar { display: none; }

.alc-chip {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: rgba(21, 16, 34, 0.6);
	color: var(--muted);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}

.alc-chip:hover,
.alc-chip:focus-visible { border-color: var(--line-strong); color: var(--text); }

.alc-chip.is-active {
	border-color: var(--alc-gold);
	color: #221503;
	background: var(--alc-gold);
}

.alc-chip-sm { min-height: 34px; padding: 0 13px; font-size: 13px; }

/* ------------------------------------------------------------------ sections */

.alc-main {
	position: relative;
	z-index: 1;
	max-width: var(--alc-max);
	margin: 0 auto;
	padding: 0 var(--alc-pad);
	outline: none;
}

.alc-section {
	padding-top: 48px;
	scroll-margin-top: 58px;
}

.alc-section [id] { scroll-margin-top: 70px; }

.alc-head { margin-bottom: 20px; }

.alc-kicker {
	color: var(--purple-hi);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.alc-h2 {
	font-family: var(--display);
	font-weight: 400;
	font-size: clamp(34px, 8vw, 50px);
	line-height: 1.08;
	margin-top: 6px;
}

.alc-lede {
	margin-top: 8px;
	max-width: 60ch;
	color: var(--muted);
	font-size: 17px;
}

.alc-h3 {
	font-size: 19px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--text);
}

.alc-h4 {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
	margin-top: 4px;
}

.alc-sub-h { margin: 30px 0 12px; }

.alc-card {
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--alc-card);
}

.alc-points {
	list-style: none;
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.alc-points li {
	position: relative;
	padding-left: 18px;
	line-height: 1.5;
}

.alc-points li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.62em;
	width: 7px;
	height: 7px;
	border-radius: 2px;
	transform: rotate(45deg);
	background: var(--purple);
}

.alc-do {
	color: var(--alc-gold);
	font-weight: 600;
}

.alc-yes { color: var(--alc-yes); font-weight: 600; }
.alc-no { color: var(--alc-no); font-weight: 600; }

.alc-note {
	margin-top: 12px;
	color: var(--muted);
	font-size: 14px;
}

.alc-icon-list {
	list-style: none;
	display: grid;
	gap: 8px;
	margin-top: 12px;
}

.alc-icon-list li {
	display: flex;
	align-items: center;
	gap: 12px;
	line-height: 1.4;
}

.alc-grid-2 {
	display: grid;
	gap: 14px;
	margin-top: 14px;
}

/* ------------------------------------------------------------------ get started */

.alc-start-grid { display: flex; flex-direction: column; gap: 16px; }

.alc-steps {
	list-style: none;
	display: grid;
	gap: 12px;
	counter-reset: none;
}

.alc-step {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	grid-template-areas: "n title" "n art" "body body";
	gap: 6px 12px;
	padding: 16px;
	border: 1px solid var(--line);
	border-radius: 14px;
	background: var(--alc-card);
}

.alc-step-n {
	grid-area: n;
	font-family: var(--display);
	font-size: 46px;
	line-height: 0.9;
	color: var(--alc-gold);
	text-align: center;
	text-shadow: 0 2px 18px rgba(226, 192, 130, 0.25);
}

.alc-step-title { grid-area: title; align-self: center; }
.alc-step-title q { quotes: "\201C" "\201D"; color: var(--alc-gold); }

.alc-step-body { grid-area: body; min-width: 0; }

.alc-step-art {
	grid-area: art;
	display: flex;
	gap: 8px;
}

.alc-step-art .alc-slot-2x { width: 64px; height: 46px; border-radius: 10px; }
.alc-step-art .alc-sprite { width: 48px; height: 32px; }

.alc-goals {
	list-style: none;
	display: grid;
	gap: 8px;
	margin-top: 10px;
}

.alc-goals li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.alc-lv {
	flex: 0 0 auto;
	min-width: 38px;
	padding: 3px 6px;
	border: 1px solid rgba(226, 192, 130, 0.5);
	border-radius: 8px;
	color: var(--alc-gold);
	font-weight: 600;
	font-size: 14px;
	text-align: center;
}

.alc-more { margin-top: 12px; font-weight: 600; }

/* On a phone the map and the kit list come before the steps, so pin 1 is on screen before step 1 names it. */
.alc-start-side { display: grid; gap: 16px; align-content: start; order: -1; }

.alc-bring .alc-icon-list span { font-size: 15px; }

/* ------------------------------------------------------------------ maps */

.alc-map { margin: 0; padding: 12px; }

.alc-map-frame {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	border: 1px solid rgba(0, 0, 0, 0.6);
	line-height: 0;
}

.alc-map-frame img { width: 100%; height: auto; }
.alc-map-lum .alc-map-frame { width: fit-content; max-width: 100%; margin: 0 auto; }
.alc-map-lum .alc-map-frame img { width: auto; max-width: 100%; image-rendering: pixelated; }

.alc-map figcaption { margin-top: 12px; line-height: 1.4; }

.alc-pin,
.alc-pin-key {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--alc-gold);
	color: #221503;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
	border: 2px solid #221503;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.alc-pin { position: absolute; transform: translate(-50%, -50%); }

.alc-pin-bank { background: var(--purple-hi); }

.alc-legend {
	list-style: none;
	display: grid;
	gap: 8px;
	margin-top: 10px;
	font-size: 15px;
}

.alc-legend li { display: flex; align-items: center; gap: 10px; }

.alc-map-world { margin: 0 auto 16px; max-width: 640px; }

.alc-mark {
	position: absolute;
	transform: translate(-50%, -50%);
	display: inline-flex;
	align-items: center;
	gap: 5px;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
}

.alc-mark i {
	display: block;
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	transform: rotate(45deg);
	background: var(--alc-gold);
	border: 2px solid #221503;
}

.alc-mark span {
	padding: 3px 6px;
	border-radius: 6px;
	background: rgba(11, 8, 18, 0.85);
	color: var(--text);
	font-size: 12px;
	font-weight: 600;
}

/* The circle's diamond sits on the spot; its name hangs to the right. */
.alc-mark-circle, .alc-mark-blot { transform: translate(-7px, -50%); }
.alc-mark-blot i { background: var(--alc-no); }
.alc-mark-flip { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -50%); }
.alc-mark-rock { transform: translate(-50%, -50%); }
.alc-mark-rock i { width: 10px; height: 10px; border-radius: 50%; transform: none; background: #e9e4d8; border-color: #3b3346; }
.alc-mark-town i { display: none; }
.alc-mark-town span { background: none; color: #fff; font-weight: 600; font-size: 11px; text-shadow: 0 1px 2px #000, 0 0 4px #000; padding: 0; }

.alc-map-key {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 14px;
	color: var(--muted);
}

.alc-map-key li { display: flex; align-items: center; gap: 8px; }

.alc-key-circle, .alc-key-rock, .alc-key-wild { display: inline-block; width: 12px; height: 12px; }
.alc-key-circle { transform: rotate(45deg); background: var(--alc-gold); border: 2px solid #221503; }
.alc-key-rock { border-radius: 50%; background: #e9e4d8; border: 2px solid #3b3346; }
.alc-key-wild { background: #6b4a2a; border: 1px solid #a37a4c; border-radius: 3px; }

/* ------------------------------------------------------------------ why train */

.alc-benefit-list { display: grid; gap: 14px; }

.alc-why {
	display: grid;
	gap: 14px;
	scroll-margin-top: 70px;
}

.alc-why-art {
	display: flex;
	gap: 8px;
}

/* On a phone the card's art is a short row above its heading, sprites at 1x. */
.alc-why-art .alc-slot-2x { width: 64px; height: 46px; border-radius: 10px; }
.alc-why-art .alc-sprite { width: 48px; height: 32px; }

.alc-why-body { min-width: 0; }

.alc-why .alc-icon-list li span { font-size: 15px; }

.alc-cols { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

.alc-staffs {
	list-style: none;
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

.alc-staff {
	display: grid;
	gap: 10px;
	padding: 12px;
	border: 1px solid rgba(143, 85, 223, 0.18);
	border-radius: 12px;
	background: rgba(11, 8, 18, 0.45);
}

.alc-staff-art { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }

.alc-duals { list-style: none; display: grid; gap: 2px; margin-top: 4px; color: var(--muted); font-size: 15px; }
.alc-duals b { display: inline-block; min-width: 26px; color: var(--alc-gold); font-weight: 600; }
.alc-staff-art .alc-slot-1x { width: 56px; height: 40px; }

.alc-lv-tag {
	display: inline-block;
	margin-left: 4px;
	padding: 1px 7px;
	border: 1px solid rgba(226, 192, 130, 0.5);
	border-radius: 999px;
	color: var(--alc-gold);
	font-size: 12px;
	font-weight: 600;
	vertical-align: 2px;
	white-space: nowrap;
}

.alc-staff-does { margin-top: 4px; }
.alc-staff-recipe { margin-top: 4px; color: var(--muted); font-size: 14px; }
.alc-xp { color: var(--purple-hi); font-weight: 600; white-space: nowrap; }

.alc-stats {
	margin-top: 8px;
	padding: 6px 10px;
	border-radius: 8px;
	background: rgba(143, 85, 223, 0.12);
	color: var(--muted);
	font-size: 14px;
	line-height: 1.6;
}

.alc-stats b { color: var(--text); font-weight: 600; }

/* ------------------------------------------------------------------ training */

.alc-bands {
	list-style: none;
	display: grid;
	gap: 10px;
	margin-top: 14px;
}

.alc-band {
	display: grid;
	grid-template-columns: 62px auto minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--alc-card);
}

.alc-band-lv {
	font-family: var(--display);
	font-size: 22px;
	color: var(--alc-gold);
	text-align: center;
	line-height: 1.1;
}

.alc-band strong { display: block; }

.alc-rate {
	display: block;
	color: var(--alc-yes);
	font-weight: 600;
	font-size: 15px;
}

.alc-why-line { display: block; color: var(--muted); font-size: 14px; }

.alc-band-late { border-color: rgba(226, 192, 130, 0.45); }

.alc-compare {
	list-style: none;
	margin-top: 12px;
	display: grid;
	gap: 4px;
	font-size: 15px;
}

.alc-compare li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 80px 80px;
	gap: 8px;
	padding: 6px 8px;
	border-radius: 7px;
	background: rgba(11, 8, 18, 0.45);
}

.alc-compare b { text-align: right; font-weight: 600; }
.alc-compare-head { color: var(--muted); font-size: 13px; background: none !important; }
.alc-compare-head b { font-weight: 600; }

.alc-risk { border-color: rgba(240, 138, 126, 0.45); }

.alc-tiles {
	list-style: none;
	display: grid;
	gap: 10px;
}

.alc-tiles li {
	display: grid;
	gap: 4px;
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--alc-card);
}

.alc-tiles strong {
	font-family: var(--display);
	font-weight: 400;
	font-size: 28px;
	color: var(--alc-gold);
}

.alc-tiles span { color: var(--muted); }

/* ------------------------------------------------------------------ circles */

.alc-circles { display: grid; gap: 14px; }

.alc-circle-art { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.alc-where { color: var(--muted); margin-top: 2px; }

.alc-facts-dl { display: grid; gap: 6px; margin-top: 12px; }

.alc-facts-dl div {
	display: grid;
	grid-template-columns: 112px minmax(0, 1fr);
	gap: 10px;
	padding-top: 6px;
	border-top: 1px solid rgba(143, 85, 223, 0.14);
	font-size: 15px;
}

.alc-facts-dl dt { color: var(--muted); font-size: 13px; padding-top: 1px; }

.alc-circle-risk { border-color: rgba(240, 138, 126, 0.5); }

/* ------------------------------------------------------------------ reference */

.alc-ref-index { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }

.alc-ref { margin-top: 28px; }

/* Folds: the reference blocks and level bands. Open by default; alchemy-guide.js folds them on a phone. */
.alc-fold > summary {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
	padding: 6px 0;
	cursor: pointer;
	list-style: none;
}

.alc-fold > summary::-webkit-details-marker { display: none; }

.alc-fold-meta { color: var(--muted); font-size: 14px; }

.alc-fold-hint {
	margin-left: auto;
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--alc-gold);
	font-size: 13px;
	font-weight: 600;
}

.alc-fold-hint::before { content: "Show"; }
.alc-fold[open] > summary .alc-fold-hint::before { content: "Hide"; }
.alc-fold-hint::after {
	content: "";
	width: 7px;
	height: 7px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}
.alc-fold[open] > summary .alc-fold-hint::after { transform: translateY(2px) rotate(-135deg); }

.alc-level-band { margin-top: 10px; padding: 4px 14px 8px; border: 1px solid var(--line); border-radius: 14px; background: rgba(21, 16, 34, 0.45); }
.alc-level-band .alc-levels { margin-top: 6px; }

.alc-ref-lede { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 70ch; }

.alc-table-wrap { margin-top: 12px; }

.alc-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 15px;
}

.alc-table th,
.alc-table td { text-align: left; vertical-align: middle; }

.alc-named {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
}

.alc-table td > .alc-slot { margin-right: 8px; vertical-align: middle; }

.alc-inputs { display: inline-flex; flex-wrap: wrap; gap: 6px; }

.alc-qty {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.alc-qty b { font-weight: 600; }

/* Phone: every row is a card, every cell carries its column's label. */
@media (max-width: 759px) {
	.alc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
	.alc-table, .alc-table tbody, .alc-table th, .alc-table td { display: block; }
	.alc-table tr {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px 14px;
		margin-bottom: 10px;
		padding: 12px;
		border: 1px solid var(--line);
		border-radius: 12px;
		background: var(--alc-card);
	}
	.alc-table th[scope="row"] { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid rgba(143, 85, 223, 0.16); }
	.alc-table td.alc-wide { grid-column: 1 / -1; }
	.alc-table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 2px;
		color: var(--muted);
		font-size: 12px;
	}
}

.alc-details {
	margin-top: 12px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--alc-card);
}

.alc-details summary {
	cursor: pointer;
	padding: 14px 16px;
	font-weight: 600;
	color: var(--alc-gold);
	min-height: 44px;
}

.alc-pieces {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 8px;
	padding: 0 12px 12px;
}

.alc-pieces li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}

.alc-pieces b { color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ------------------------------------------------------------------ levels */

.alc-levels {
	list-style: none;
	display: grid;
	gap: 0;
	border-left: 2px solid rgba(143, 85, 223, 0.35);
	margin-left: 30px;
}

.alc-level {
	position: relative;
	display: grid;
	grid-template-columns: 70px minmax(0, 1fr);
	gap: 10px;
	padding: 12px 0 12px 0;
	margin-left: -31px;
}

.alc-level-n {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.alc-level-n b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 40px;
	border: 1px solid rgba(226, 192, 130, 0.55);
	border-radius: 10px;
	background: var(--void);
	font-family: var(--display);
	font-weight: 400;
	font-size: 24px;
	color: var(--alc-gold);
}

.alc-level-n span { color: var(--faint); font-size: 11px; white-space: nowrap; }

.alc-level ul {
	list-style: none;
	display: grid;
	gap: 6px;
	padding: 2px 0 0;
}

.alc-level li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	line-height: 1.35;
}

/* ------------------------------------------------------------------ secrets */

.alc-riddles,
.alc-pages {
	list-style: none;
	display: grid;
	gap: 10px;
	margin-top: 12px;
}

.alc-riddles li {
	display: flex;
	gap: 12px;
	align-items: flex-start;
}

.alc-riddles div { display: grid; gap: 3px; }

.alc-riddles q,
.alc-page-t q {
	quotes: "\201C" "\201D";
	font-style: italic;
	color: var(--text);
}

.alc-riddles span { color: var(--muted); font-size: 14px; }

.alc-pages { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.alc-page {
	display: grid;
	grid-template-columns: auto auto minmax(0, 1fr);
	align-items: center;
	gap: 8px;
	padding: 9px 10px;
	border-radius: 10px;
	background: rgba(11, 8, 18, 0.5);
	font-size: 14px;
}

.alc-page-n { color: var(--muted); font-weight: 600; white-space: nowrap; }
.alc-page-open { border: 1px solid rgba(124, 217, 146, 0.35); }

#book-pages { margin-top: 14px; }

/* ------------------------------------------------------------------ faq */

.alc-faq { display: grid; gap: 10px; }

.alc-qa {
	padding: 14px 16px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--alc-card);
}

.alc-qa dt { font-weight: 600; font-size: 17px; }
.alc-qa dd { margin-top: 4px; color: var(--muted); }

.alchemy-guide [data-voidscape-footer] { margin-top: 56px; }

/* ------------------------------------------------------------------ wider screens */

@media (min-width: 560px) {
	.alc-benefit-art .alc-slot-2x + .alc-slot-2x { display: inline-flex; }
	.alc-benefit-art .alc-slot-2x { width: 84px; height: 62px; }
	.alc-benefit-art .alc-sprite { width: 48px; height: 32px; }
}

@media (min-width: 760px) {
	:root { --alc-pad: 28px; }
	.alchemy-guide { font-size: 17px; }
	.alc-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; padding-top: 40px; }
	.alc-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; }
	.alc-facts li { flex-direction: column; gap: 2px; }
	.alc-facts span { flex: none; }
	.alc-recipe { padding: 26px 24px 22px; }
	.alc-recipe .alc-slot-2x { width: 116px; height: 86px; }
	.alc-recipe .alc-sprite { width: 96px; height: 64px; }
	.alc-op { font-size: 32px; width: 26px; }
	.alc-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.alc-step { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "n title art" "n body art"; padding: 18px 18px 18px 14px; }
	.alc-step-n { font-size: 56px; }
	.alc-step-art { flex-direction: column; }
	.alc-step-art .alc-slot-2x { width: 108px; height: 76px; border-radius: 12px; }
	.alc-step-art .alc-sprite { width: 96px; height: 64px; }
	.alc-why { grid-template-columns: 120px minmax(0, 1fr); align-items: start; }
	.alc-why-art { flex-direction: column; align-items: flex-start; }
	.alc-why-art .alc-slot-2x { width: 108px; height: 76px; border-radius: 12px; }
	.alc-why-art .alc-sprite { width: 96px; height: 64px; }
	.alc-why-body .alc-points, .alc-why-body .alc-icon-list { max-width: 78ch; }
	.alc-staffs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.alc-staff { grid-template-columns: auto minmax(0, 1fr); gap: 12px; }
	.alc-staff-art { max-width: 116px; }
	.alc-circles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.alc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.alc-table th, .alc-table td { padding: 10px 12px; border-bottom: 1px solid rgba(143, 85, 223, 0.16); }
	.alc-table thead th { color: var(--muted); font-size: 13px; font-weight: 600; border-bottom-color: var(--line); white-space: nowrap; }
	.alc-table tbody tr:hover { background: rgba(143, 85, 223, 0.06); }
	.alc-table-wrap { border: 1px solid var(--line); border-radius: 14px; background: var(--alc-card); padding: 4px 6px; overflow-x: auto; }
	.alc-band { grid-template-columns: 78px auto minmax(0, 1fr); }
	.alc-levels { columns: 2; column-gap: 40px; display: block; border-left: 0; margin-left: 0; }
	.alc-level { break-inside: avoid; margin-left: 0; }
}

@media (min-width: 1080px) {
	.alc-benefits { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
	.alc-start-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
	.alc-start-side { position: sticky; top: 74px; order: 0; }
	.alc-circles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.alc-bar-inner { justify-content: center; }
	.alc-section { padding-top: 64px; }
	.alc-benefit { flex-direction: row; align-items: center; }
	.alc-benefit-art .alc-slot-2x + .alc-slot-2x { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.alc-benefit, .alc-chip { transition: none; }
	.alc-benefit:hover { transform: none; }
}
