/* MAF Database: a dark port of psxdatabase.com for Mine and Fight. Spec: design/DESIGN.md */

@font-face {
	font-family: "Poppins Fallback";
	src: local("Arial");
	size-adjust: 112%;
	ascent-override: 105%;
	descent-override: 35%;
	line-gap-override: 10%;
}

/* ---------- Tokens ---------- */

:root {
	color-scheme: dark;

	/* surfaces [psx: page #f3f4f7, cards #fff] */
	--bg: #121419;
	--surface: #1a1d24;
	--surface-2: #20242c;
	--surface-3: #272c35;
	--inset: #121419;

	/* lines */
	--border: #2b3039;
	--border-strong: #3a414d;
	--border-input: #5e6775;

	/* text */
	--text-strong: #eceef2;
	--text: #b9bfc9;
	--text-muted: #8d95a3;
	--text-faint: #6c7482; /* non-text only */

	/* accents */
	--link: #8f9cff;
	--link-hover: #b6beff;
	--focus: #8f9cff;
	--badge: #22466b;
	--badge-text: #ffffff;
	--brand-light: #8ea2c2;

	/* currencies */
	--coin: #f2c14e;
	--coin-edge: #a8740f;
	--coin-tint: #3a3220;
	--gem: #be78ff;
	--gem-edge: #5d2a9c;
	--gem-tint: #2e2440;
	--slate-tint: #2a3140;

	/* editor demand and trend */
	--good: #5fd38a;
	--warn: #e6c14a;
	--bad: #ff7a7a;

	/* rarity: hues from the game's RarityConfig art, lightened to pass AA */
	--r-common: #b9bdc5;
	--r-uncommon: #8fdc3a;
	--r-rare: #3cb0f2;
	--r-epic: #c06bff;
	--r-legendary: #f2a623;
	--r-mythic: #f2678c;
	--r-secret: #cfa8ff;
	--r-secret-fill: #64229e;
	--r-secret-line: #9a5be0;
	--r-secret-ink: #f3eaff;
	--on-rarity: #111317;

	/* radii */
	--radius-card: 15px;
	--radius-tile: 12px;
	--radius-btn: 10px;
	--radius-badge: 7px;
	--radius-pill: 999px;

	/* elevation */
	--shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35);
	--shadow-pop: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-strong);

	/* spacing */
	--s-1: 4px;
	--s-2: 8px;
	--s-3: 12px;
	--s-4: 16px;
	--s-5: 20px;
	--s-6: 24px;
	--s-7: 30px;
	--s-8: 40px;
	--s-9: 60px;

	/* type and layout */
	--font: "Poppins", "Poppins Fallback", system-ui, sans-serif;
	--sidebar-w: 260px;
	--page-pad: 20px;
	--topbar-h: 75px;
	--sticky-top: calc(var(--page-pad) + var(--topbar-h) + 22px);
	--row-inset: 33px;
	--grid-inset: 18px;
	--tile-box: 136px;

	/* motion and layers */
	--t-fast: 120ms;
	--t-med: 180ms;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--z-topbar: 20;
	--z-dropdown: 30;
	--z-scrim: 40;
	--z-drawer: 50;
}

@media (max-width: 1359px) {
	:root { --sidebar-w: 240px; }
}

@media (max-width: 759px) {
	:root {
		--page-pad: 16px;
		--topbar-h: 64px;
		--row-inset: 2px;
		--grid-inset: 0px;
		--tile-box: 88px;
	}
}

/* ---------- Base ---------- */

* { box-sizing: border-box; }

html {
	background: var(--bg);
	scrollbar-gutter: stable;
	scrollbar-color: var(--border-strong) var(--bg);
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 14px/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
:focus:not(:focus-visible) { outline: none; }
h1[tabindex="-1"]:focus { outline: none; }
::selection { background: rgba(143, 156, 255, 0.35); color: var(--text-strong); }

h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; }
img { display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.num { font-variant-numeric: tabular-nums; }
.strong { color: var(--text-strong); font-weight: 500; }
.muted { color: var(--text-muted); }

.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;
}

.feather {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

.cur { width: 14px; height: 14px; flex: none; display: inline-block; vertical-align: -2px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Page shell ---------- */

.page {
	padding: 0 var(--page-pad) var(--page-pad);
	max-width: 1880px;
	margin: 0 auto;
}

.topbar-wrap {
	position: sticky;
	top: 0;
	z-index: var(--z-topbar);
	background: var(--bg);
	padding-top: var(--page-pad);
}

.topbar {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	height: var(--topbar-h);
	padding: 0 25px;
	background: var(--surface);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
}

.layout {
	display: grid;
	grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
	gap: 32px;
	margin-top: 22px;
	align-items: start;
}

.layout.is-collapsed { grid-template-columns: minmax(0, 1fr); }
.layout.is-collapsed .sidebar { display: none; }

main { min-width: 0; }

.icon-btn {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	flex: none;
	border: 0;
	border-radius: var(--radius-btn);
	background: none;
	color: var(--text);
	cursor: pointer;
	transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.icon-btn:hover { color: var(--text-strong); background: var(--surface-2); }
.icon-btn .feather { width: 22px; height: 22px; }

/* ---------- Brand ---------- */

.brand {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 6px 10px;
	border-radius: var(--radius-btn);
	white-space: nowrap;
	flex: none;
}

.brand-mark {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #2a6fd6;
	box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.35);
	flex: none;
}

.brand-word { font-size: 15px; letter-spacing: 0.28em; line-height: 1; }
.brand-word b { font-weight: 600; color: var(--text-strong); }
.brand-word span { font-weight: 400; color: var(--brand-light); }

/* ---------- Stat pills ---------- */

.stat-pill {
	display: flex;
	align-items: center;
	height: 45px;
	padding: 0 14px;
	background: var(--inset);
	border: 2px solid var(--border);
	border-radius: 15px;
	white-space: nowrap;
	color: var(--text);
	flex: none;
}
.stat-pill strong { color: var(--text-strong); font-weight: 500; margin-left: 4px; }
.stat-pill .countdown { display: inline-block; min-width: 92px; }

@media (max-width: 1299px) {
	.topbar .stat-reset { display: none; }
}

/* ---------- Search ---------- */

.search {
	position: relative;
	margin-left: auto;
	display: flex;
	width: min(674px, 48%);
	height: 42px;
}

.search input {
	flex: 1;
	min-width: 0;
	width: 100%;
	height: 100%;
	padding: 0 44px 0 15px;
	background: var(--inset);
	border: 1px solid var(--border-input);
	border-right: 0;
	border-radius: var(--radius-btn) 0 0 var(--radius-btn);
	color: var(--text-strong);
	font-size: 14px;
	-webkit-appearance: none;
	appearance: none;
}
.search input::placeholder { color: var(--text-muted); }
.search input:focus { outline: none; border-color: var(--link); }
.search input:focus-visible { outline: none; }
.search input::-webkit-search-cancel-button { display: none; }

.search-field { position: relative; flex: 1; min-width: 0; display: flex; }

.search kbd {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	font: 500 11px/1 var(--font);
	color: var(--text-muted);
	border: 1px solid var(--border-strong);
	border-radius: 5px;
	padding: 4px 6px;
	pointer-events: none;
}
.search.has-text kbd { display: none; }

.search-btn {
	display: flex;
	align-items: center;
	gap: 6px;
	height: 100%;
	padding: 0 20px;
	background: none;
	border: 1px solid var(--border-input);
	border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
	color: var(--text);
	font: 500 14px var(--font);
	cursor: pointer;
	transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.search-btn:hover { color: var(--text-strong); background: var(--surface-2); }
.search-btn .feather { width: 18px; height: 18px; }

.search-list {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	min-width: 360px;
	background: var(--surface);
	border-radius: var(--radius-btn);
	box-shadow: var(--shadow-pop);
	padding: 6px;
	z-index: var(--z-dropdown);
}
.search-list[hidden] { display: none; }

.search-option {
	display: flex;
	align-items: center;
	gap: 12px;
	height: 48px;
	padding: 0 12px;
	border-radius: 8px;
	cursor: pointer;
	color: var(--text);
}
.search-option[aria-selected="true"] { background: var(--surface-2); }
.search-option .art-box { width: 32px; height: 32px; }
.search-option .opt-text { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.search-option .opt-name { font-size: 14px; font-weight: 500; color: var(--text-strong); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-option .opt-meta { font-size: 12px; color: var(--text-muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-option .opt-value { display: flex; align-items: center; gap: 6px; font: 500 13px var(--font); color: var(--text-strong); white-space: nowrap; }

.search-empty { padding: 14px; font-size: 13px; color: var(--text-muted); }

.search-foot {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
	padding: 10px 12px 4px;
	border-top: 1px solid var(--border);
	font-size: 12px;
	color: var(--text-muted);
}

/* ---------- Sidebar and drawer ---------- */

.sidebar {
	position: sticky;
	top: var(--sticky-top);
	max-height: calc(100vh - var(--sticky-top) - 20px);
	overflow: auto;
	background: var(--surface);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: 28px 15px 30px;
	scrollbar-width: thin;
}

.drawer-close { display: none; position: absolute; top: 12px; right: 12px; }
.drawer-stats { display: none; }

.side-label {
	font-size: 13px;
	color: var(--text-muted);
	padding: 0 15px;
	margin: 0 0 6px;
}

.nav + .side-label { margin-top: 14px; }

.nav-row {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	height: 45px;
	padding: 0 15px;
	border: 0;
	border-radius: var(--radius-btn);
	background: none;
	color: var(--text);
	font-size: 14px;
	text-align: left;
	cursor: pointer;
	transition: color var(--t-fast) var(--ease);
}
.nav-row .feather { color: var(--text-muted); transition: color var(--t-fast) var(--ease); }
.nav-row:hover, .nav-row:hover .feather { color: var(--text-strong); }
.nav-row[aria-current="page"] { color: var(--text-strong); font-weight: 500; }
.nav-row[aria-current="page"] .feather { color: var(--link); }
.nav-row .game-icon { width: 22px; height: 22px; margin: -1px; object-fit: contain; flex: none; }
.nav-row .chev { width: 16px; height: 16px; margin-left: auto; transition: transform var(--t-fast) var(--ease); }
.nav-row[aria-expanded="true"] .chev { transform: rotate(90deg); }

.nav-more[hidden] { display: none; }
.nav-more .nav-row { height: 36px; padding-left: 51px; font-size: 13.5px; }

.count {
	margin-left: auto;
	font: 500 11px/1 var(--font);
	color: var(--text-muted);
	background: var(--surface-2);
	border-radius: var(--radius-badge);
	padding: 6px 9px;
}

.side-links { padding: 0 15px; font-size: 13px; line-height: 20px; }
.side-links li + li { margin-top: 4px; }
.side-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.side-links a:hover { color: var(--text-strong); }
.side-links .feather { width: 12px; height: 12px; }

.side-foot {
	padding: 0 15px;
	margin-top: 26px;
	font-size: 11.5px;
	color: var(--text-muted);
	line-height: 1.7;
}

.scrim {
	position: fixed;
	inset: 0;
	background: rgba(6, 7, 9, 0.6);
	z-index: var(--z-scrim);
}
.scrim[hidden] { display: none; }

@media (max-width: 1199px) {
	.layout, .layout.is-collapsed { grid-template-columns: minmax(0, 1fr); }
	.layout.is-collapsed .sidebar { display: block; }

	.sidebar {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(300px, 86vw);
		max-height: none;
		border-radius: 0 15px 15px 0;
		box-shadow: var(--shadow-pop);
		z-index: var(--z-drawer);
		padding-top: 64px;
		transform: translateX(-100%);
		visibility: hidden;
		transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
	}
	.sidebar.is-open {
		transform: none;
		visibility: visible;
		transition: transform var(--t-med) var(--ease);
	}
	.drawer-close { display: grid; }
}

@media (max-width: 759px) {
	.drawer-stats { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
	.drawer-stats .stat-pill { width: 100%; }
}

/* ---------- Head row and title badge ---------- */

.head-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 var(--row-inset);
	margin-top: 30px;
}
.page-wiki .head-row { padding: 0; }

.title-badge {
	display: inline-block;
	margin: 0;
	background: var(--badge);
	color: var(--badge-text);
	font: 500 15px/1 var(--font);
	padding: 7px 12px;
	border-radius: var(--radius-badge);
}

.head-note { font-size: 12px; color: var(--text-muted); }

/* ---------- Filter buttons ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

.chip-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 500 12px/18px var(--font);
	padding: 3px 10px;
	border-radius: var(--radius-btn);
	border: 1px solid var(--border);
	background: none;
	color: var(--text);
	cursor: pointer;
	white-space: nowrap;
	transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.chip-btn:hover { border-color: var(--border-strong); color: var(--text-strong); }
.chip-btn[aria-pressed="true"] {
	color: var(--rc, var(--link));
	border-color: var(--rc, var(--link));
	background: color-mix(in srgb, var(--rc, var(--link)) 12%, transparent);
}
.chip-btn.label, .chip-btn.label:hover { color: var(--link); border-color: rgba(143, 156, 255, 0.55); cursor: default; }
.chip-btn .n { color: var(--text-muted); }
.chip-btn[aria-pressed="true"] .n { color: inherit; opacity: 0.8; }
.chip-btn .egg-glyph { width: 16px; height: 16px; }

.sub-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 var(--row-inset);
	margin-top: 14px;
}
.sub-row .filters { justify-content: flex-start; }

.list-tools { display: flex; align-items: center; gap: 12px; }

/* ---------- Sort select and view toggle ---------- */

.sort { display: inline-flex; align-items: center; font-size: 12px; color: var(--text-muted); }
.select-wrap { position: relative; display: inline-flex; }
.select-wrap .feather { position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; transform: translateY(-50%); pointer-events: none; color: var(--text-muted); }

.sort select {
	font: 500 12px var(--font);
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border-input);
	border-radius: var(--radius-btn);
	height: 26px;
	padding: 0 26px 0 10px;
	margin-left: 6px;
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
}
.sort select:hover { border-color: var(--text-muted); color: var(--text-strong); }
.sort select:focus { outline: none; border-color: var(--link); }
.sort select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

.toggle {
	display: inline-flex;
	gap: 2px;
	padding: 2px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-btn);
}
.toggle button {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 22px;
	padding: 0 8px;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--text);
	font: 500 12px var(--font);
	cursor: pointer;
}
.toggle button:hover { color: var(--text-strong); }
.toggle button[aria-pressed="true"] { background: var(--surface-3); color: var(--text-strong); }
.toggle .feather { width: 14px; height: 14px; }

/* ---------- Result line ---------- */

.result-line {
	padding: 0 var(--row-inset);
	margin-top: 12px;
	font-size: 12px;
	color: var(--text-muted);
}
.result-line .sep { margin: 0 6px; color: var(--text-faint); }

.link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: var(--link);
	cursor: pointer;
}
.link:hover { color: var(--link-hover); }

/* ---------- Value grid and tiles ---------- */

.grid {
	margin: 22px 0 0;
	padding: 0 var(--grid-inset);
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 26px 12px;
}

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	min-width: 0;
	--rc: var(--r-common);
}

.tile-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	color: inherit;
	border-radius: var(--radius-tile);
	padding: 2px 4px 0;
}
.tile-link:hover { color: inherit; }
.tile-link::after { content: ""; position: absolute; inset: 0 0 44px 0; }
.tile-link:focus-visible { outline: none; }
.tile-link:focus-visible::after { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-tile); }

.tile-head {
	height: 56px;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 2px;
}

.tile-name {
	font: 500 15px/18px var(--font);
	color: var(--text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	overflow-wrap: anywhere;
	transition: color var(--t-fast) var(--ease);
}
.tile-link:hover .tile-name { color: var(--text-strong); }

.tile-rarity, .rarity { font: 500 12px/16px var(--font); color: var(--rc); }

.tile-icon {
	position: relative;
	width: var(--tile-box);
	height: var(--tile-box);
	margin-top: 10px;
	display: grid;
	place-items: center;
}
.tile-icon > img, .tile-icon > .art { width: 100%; height: 100%; object-fit: contain; transition: transform var(--t-fast) var(--ease); }
.tile-link:hover .tile-icon > img, .tile-link:hover .tile-icon > .art { transform: translateY(-3px); }

.tile-icon.is-crystal { place-items: end center; }
.tile-icon.is-crystal > img { width: calc(var(--tile-box) * var(--s)); height: calc(var(--tile-box) * var(--s)); }

.tier-badge {
	position: absolute;
	right: 4px;
	bottom: 0;
	font: 600 11px/1 var(--font);
	color: var(--text-strong);
	background: var(--inset);
	border: 1px solid var(--oc, var(--border-strong));
	border-radius: var(--radius-badge);
	padding: 4px 6px;
	letter-spacing: 0.04em;
}

.tile-value {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	font: 500 13px/18px var(--font);
	color: var(--text-strong);
	white-space: nowrap;
}
.tile-value .none { font-size: 12px; font-weight: 400; color: var(--text-muted); }

.fav {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	height: 34px;
	padding: 0 18px;
	margin-top: 10px;
	font: 500 12px var(--font);
	color: var(--text);
	background: none;
	border: 1px solid var(--border);
	border-radius: var(--radius-btn);
	cursor: pointer;
	white-space: nowrap;
	transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.fav .feather { width: 13px; height: 13px; }
.fav:hover { border-color: var(--border-strong); color: var(--text-strong); }
.fav[aria-pressed="true"] { color: var(--coin); border-color: rgba(242, 193, 78, 0.45); }
.fav[aria-pressed="true"] .feather { fill: var(--coin); stroke: var(--coin); }
.fav.icon-only { width: 28px; height: 28px; padding: 0; margin: 0; border-color: transparent; }
.fav.icon-only .feather { width: 15px; height: 15px; }
.fav.icon-only:hover { border-color: var(--border-strong); }

.btn-outline { margin-top: 0; }
.btn-outline[disabled] { color: var(--text-faint); border-color: var(--border); cursor: not-allowed; }

/* Mini tiles (related items) */
.grid.mini { margin-top: 0; padding: 0; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 18px 10px; --tile-box: 96px; }
.grid.mini .tile-link::after { inset: 0; }
.grid.mini .tile-head { height: 50px; }
.grid.mini .tile-name { font-size: 13px; line-height: 16px; }

@media (max-width: 759px) {
	.grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 8px; }
	.tile-head { height: 50px; }
	.tile-name { font-size: 13px; line-height: 16px; }
	.tile-rarity { font-size: 11px; line-height: 14px; }
	.tile-value { font-size: 12px; gap: 4px; }
	.tile-value .cur { width: 12px; height: 12px; }
	.tile-link::after { inset: 0 0 40px 0; }
	.fav { height: 30px; padding: 0 10px; font-size: 11.5px; }
	.fav .feather { width: 12px; height: 12px; }
	.grid.mini { grid-template-columns: repeat(3, minmax(0, 1fr)); --tile-box: 80px; }
}

/* ---------- Art: icon boxes and drawn fallbacks ---------- */

.art-box { position: relative; display: grid; place-items: center; flex: none; }
.art-box > img { width: 100%; height: 100%; object-fit: contain; }
.art { display: grid; place-items: center; }
.art svg { width: 100%; height: 100%; }
.art.glyph svg { width: 82%; height: 82%; }
.art.drawn svg { width: 84%; height: 84%; }

.art.weapon {
	border-radius: 50%;
	background: color-mix(in srgb, var(--c) 16%, var(--surface));
	border: 1.5px solid color-mix(in srgb, var(--c) 45%, transparent);
	color: var(--c);
	width: 76%;
	height: 76%;
}
.art.weapon svg { width: 55%; height: 55%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tile-icon > .art.weapon { width: 76%; height: 76%; }

.art.mono {
	width: 100%;
	height: 100%;
	border-radius: 10px;
	background: color-mix(in srgb, var(--c) 18%, var(--surface));
	border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
	color: var(--mono-ink, var(--c));
	font-weight: 600;
	font-size: calc(var(--box, 40px) * 0.34);
	line-height: 1;
	letter-spacing: 0.02em;
}
.art.mono.small { border-radius: 8px; }

/* ---------- Cards ---------- */

.card {
	background: var(--surface);
	border-radius: var(--radius-card);
	box-shadow: var(--shadow-card);
	padding: 30px;
	min-width: 0;
}
.card-title { margin: 0 0 22px; font: 500 15px/1.4 var(--font); color: var(--text-strong); }
.card-title.center { text-align: center; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 22px; }
.card-head .card-title { margin: 0; }
.card-sub { font-size: 13px; color: var(--text-muted); margin: -14px 0 18px; }
.card-note { font-size: 12px; color: var(--text-muted); margin-top: 16px; }
.card p + p { margin-top: 14px; }

.page-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 27px; margin-top: 22px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px; }

@media (max-width: 1099px) {
	.two-col { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 759px) {
	.card { padding: 22px 18px; }
}

/* ---------- Tables ---------- */

.table-card { overflow: clip; }
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }

table { width: 100%; border-collapse: collapse; }
th {
	text-align: left;
	font: 500 13px var(--font);
	color: var(--text-muted);
	padding: 0 16px 12px;
	border-bottom: 1px solid var(--border);
	white-space: nowrap;
	vertical-align: bottom;
}
td { padding: 10px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color var(--t-fast) var(--ease); }
tbody tr:hover { background: var(--surface-2); }
th.r, td.r { text-align: right; white-space: nowrap; }
th.c, td.c { text-align: center; }
td.icon-cell, th.icon-cell { width: 68px; padding-right: 0; }
td.fav-cell, th.fav-cell { width: 44px; padding-right: 0; }
td .art-box { width: 36px; height: 36px; }
tfoot td { color: var(--text-strong); font-weight: 500; border-top: 1px solid var(--border-strong); border-bottom: 0; }
.sticky-head thead th { position: sticky; top: calc(var(--page-pad) + var(--topbar-h)); background: var(--surface); z-index: 1; box-shadow: inset 0 -1px 0 var(--border); }

.cell-cur { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.cell-sub { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.cell-desc { font-size: 13px; color: var(--text); }

.name-link { color: var(--text-strong); font-weight: 500; }
.name-link:hover { color: var(--link-hover); }
@media (min-width: 760px) {
	td .name-link { white-space: nowrap; }
}
.row-link::after { content: ""; position: absolute; inset: 0; }
.has-row-link { position: relative; }
.has-row-link .fav { position: relative; z-index: 1; }

tr[data-target], tr.is-current {
	background: color-mix(in srgb, var(--link) 10%, transparent);
	box-shadow: inset 2px 0 0 var(--link);
}

.th-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
.th-btn:hover, th[aria-sort="ascending"] .th-btn, th[aria-sort="descending"] .th-btn { color: var(--text-strong); }
.th-btn .feather { width: 13px; height: 13px; opacity: 0; }
th[aria-sort="descending"] .th-btn .feather { opacity: 1; }
th[aria-sort="ascending"] .th-btn .feather { opacity: 1; transform: rotate(180deg); }
th.r .th-btn { flex-direction: row-reverse; }

.ore-chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-right: 10px;
	white-space: nowrap;
	font: 500 13px var(--font);
	color: var(--text-strong);
	vertical-align: middle;
}
.ore-chip .art-box { width: 20px; height: 20px; }
a.ore-chip:hover { color: var(--link-hover); }

.mini-chips { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.out-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font: 500 13px/1 var(--font);
	color: var(--text);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	padding: 6px 11px;
	white-space: nowrap;
	transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
a.out-pill:hover { color: var(--text-strong); border-color: var(--border-strong); }
.out-pill .art-box { width: 18px; height: 18px; }
.out-pill.small { font-size: 12px; padding: 4px 9px; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }

@media (max-width: 759px) {
	.col-opt { display: none; }
	td, th { padding-left: 6px; padding-right: 6px; }
	td .art-box { width: 28px; height: 28px; }
	td.icon-cell, th.icon-cell { width: 40px; }
}

/* ---------- Item page ---------- */

.crumbs { margin: 8px 0 14px; font-size: 12px; color: var(--text-muted); }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--text-strong); }
.crumbs .sep { margin: 0 6px; color: var(--text-faint); }
.crumbs .here { color: var(--text-strong); }

.item-layout {
	display: grid;
	grid-template-columns: 350px minmax(0, 1fr);
	gap: 27px;
	align-items: start;
}
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 27px; min-width: 0; }

.item-card { text-align: center; position: sticky; top: var(--sticky-top); }
.item-card h1 { margin: 0 0 16px; font: 500 16px/1.4 var(--font); color: var(--text-strong); }

.rarity-pill {
	display: inline-block;
	font: 600 13px/1 var(--font);
	color: var(--on-rarity);
	background: var(--rc);
	border-radius: var(--radius-pill);
	padding: 6px 12px;
}
.rarity-pill.secret { background: var(--r-secret-fill); color: var(--r-secret-ink); border: 1px solid var(--r-secret-line); padding: 5px 11px; }

.chips { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 6px; }
.chip {
	font: 500 13px/1 var(--font);
	color: var(--text-muted);
	background: var(--inset);
	border: 1px solid var(--border);
	border-radius: var(--radius-pill);
	padding: 6px 12px;
	white-space: nowrap;
}
.chip b { font-weight: 500; color: var(--text-strong); }
.chip.editor { border-style: dashed; border-color: var(--border-strong); }
.chip b.good { color: var(--good); }
.chip b.warn { color: var(--warn); }
.chip b.bad { color: var(--bad); }

.big-art { position: relative; width: 240px; height: 240px; margin: 22px auto 10px; display: grid; place-items: center; }
.big-art > img, .big-art > .art { width: 100%; height: 100%; object-fit: contain; }
.big-art.is-crystal { place-items: end center; }
.big-art.is-crystal > img { width: calc(240px * var(--s)); height: calc(240px * var(--s)); }
.big-art > .art.weapon { width: 76%; height: 76%; }
.big-art .tier-badge { font-size: 13px; padding: 5px 8px; }

.variants { display: flex; justify-content: center; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.variant {
	width: 46px;
	height: 46px;
	border-radius: var(--radius-btn);
	border: 1px solid var(--border);
	background: var(--inset);
	padding: 3px;
	cursor: pointer;
	transition: border-color var(--t-fast) var(--ease);
}
.variant img { width: 40px; height: 40px; object-fit: contain; }
.variant:hover { border-color: var(--border-strong); }
.variant[aria-pressed="true"] { border-color: var(--text-strong); }
.variant-label { font-size: 12px; color: var(--text-muted); margin: -8px 0 16px; }
.item-card .fav { height: 36px; margin-top: 4px; }
.edited-line { display: block; margin-top: 10px; font-size: 11px; color: var(--text-muted); }
.edited-line a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.edited-line a:hover { color: var(--text-strong); }

@media (max-width: 1359px) {
	.item-layout { grid-template-columns: 330px minmax(0, 1fr); }
}
@media (max-width: 1199px) {
	.item-layout { grid-template-columns: 320px minmax(0, 1fr); }
}
@media (max-width: 899px) {
	.item-layout { grid-template-columns: minmax(0, 1fr); }
	.item-card { position: static; }
}
@media (max-width: 759px) {
	.big-art { width: 180px; height: 180px; }
	.big-art.is-crystal > img { width: calc(180px * var(--s)); height: calc(180px * var(--s)); }
}

/* Values card */

.values { display: flex; flex-wrap: wrap; gap: 26px 48px; padding: 4px; }
.value { display: flex; align-items: center; gap: 16px; min-width: 0; }
.swatch {
	width: 48px;
	height: 48px;
	border-radius: var(--radius-btn);
	display: grid;
	place-items: center;
	flex: none;
	color: var(--text-strong);
}
.swatch .cur { width: 26px; height: 26px; }
.swatch .art-box { width: 30px; height: 30px; }
.swatch.coin { background: var(--coin-tint); }
.swatch.gem { background: var(--gem-tint); }
.swatch.chain { background: var(--slate-tint); }
.swatch.robux { background: var(--surface-3); font: 600 13px var(--font); }
.swatch.xp { background: var(--surface-3); font: 600 12px var(--font); }
.swatch.slate { background: var(--slate-tint); }
.swatch.ore, .tier-swatch {
	background: color-mix(in srgb, var(--oc) 22%, var(--surface-2));
	border: 1px solid color-mix(in srgb, var(--oc) 55%, var(--surface-2));
}
.value-label { font-size: 12px; line-height: 16px; color: var(--text-muted); }
.value-amount {
	display: flex;
	align-items: center;
	gap: 6px;
	font: 500 24px/1.25 var(--font);
	color: var(--text-strong);
	white-space: nowrap;
}
.value-amount .cur { width: 18px; height: 18px; }
.value-sub { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.values-line { font-size: 14px; text-align: center; }

@media (max-width: 759px) {
	.values { flex-direction: column; gap: 18px; }
}

/* Tier strip */
.tier-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tier-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 10px 6px;
	border: 1px solid transparent;
	border-radius: var(--radius-btn);
	color: var(--text);
	text-align: center;
	transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.tier-link:hover { color: var(--text-strong); background: var(--surface-2); }
.tier-link[aria-current="page"] { border-color: var(--border-strong); }
.tier-swatch {
	width: 44px;
	height: 44px;
	border-radius: var(--radius-btn);
	display: grid;
	place-items: center;
	font: 600 15px var(--font);
	color: var(--text-strong);
}
.tier-link[aria-current="page"] .tier-swatch { outline: 2px solid var(--text-strong); outline-offset: 2px; }
.tier-meta { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.tier-amount { display: flex; align-items: center; gap: 6px; font: 500 20px/1.2 var(--font); color: var(--text-strong); white-space: nowrap; }
.tier-amount .cur { width: 16px; height: 16px; }
.tier-amount.none { font-size: 16px; color: var(--text-muted); }
.tier-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-muted); }

@media (max-width: 759px) {
	.tier-strip { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.tier-link { flex-direction: row; justify-content: flex-start; gap: 14px; text-align: left; padding: 8px 10px; }
	.tier-link .tier-amount { margin-left: auto; }
}

/* Strata bar */
.strata { margin-top: 22px; }
.strata-label { font-size: 12px; color: var(--text-muted); }
.strata-bar { display: flex; gap: 2px; height: 10px; border-radius: 4px; overflow: hidden; margin-top: 8px; }
.strata-bar a { flex: 1; background: var(--oc); opacity: 0.22; transition: opacity var(--t-fast) var(--ease); border-radius: 0; }
.strata-bar a:hover { opacity: 0.6; }
.strata-bar a:focus-visible { opacity: 0.6; outline-offset: 1px; }
.strata-bar a[aria-current="page"] { opacity: 1; }
.strata-ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--text-muted); }

/* Prose */
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text-strong); font-weight: 500; }
.prose ul { margin: 0 0 14px; padding-left: 18px; list-style: disc; }
.prose li + li { margin-top: 4px; }

/* Chain nav */
.chain { display: flex; justify-content: space-between; gap: 12px; }
.chain-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	border: 1px solid var(--border);
	border-radius: var(--radius-btn);
	padding: 8px 14px 8px 10px;
	color: var(--text);
	background: none;
	transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.chain-link:hover { border-color: var(--border-strong); background: var(--surface-2); color: var(--text); }
.chain-link.next { flex-direction: row-reverse; text-align: right; padding: 8px 10px 8px 14px; margin-left: auto; }
.chain-link .art-box { width: 32px; height: 32px; }
.chain-link .feather { width: 16px; height: 16px; color: var(--text-muted); }
.chain-text { display: flex; flex-direction: column; min-width: 0; }
.chain-dir { font-size: 11px; color: var(--text-muted); line-height: 1.3; }
.chain-name { font: 500 13px/1.35 var(--font); color: var(--text-strong); }
.chain-end { align-self: center; font-size: 13px; color: var(--text-muted); }

@media (max-width: 759px) {
	.chain > * { flex: 1 1 0; }
	.chain-link.next { margin-left: 0; }
}

/* Stat list (weapon stats) */
.stat-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.stat-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.stat-list dt { color: var(--text-muted); }
.stat-list dd { margin: 0; color: var(--text-strong); font-weight: 500; text-align: right; }
@media (max-width: 759px) {
	.stat-list { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Countdown card ---------- */

.countdown-card { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.countdown-label { font-size: 13px; color: var(--text-muted); }
.countdown-big { display: inline-block; min-width: 200px; font: 500 32px/1.1 var(--font); color: var(--text-strong); margin-top: 4px; }
.countdown-today { font-size: 13px; }
.countdown-today strong { color: var(--text-strong); font-weight: 500; }

/* ---------- Daily reward strip ---------- */

.day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 14px 8px;
	border-radius: var(--radius-btn);
	background: var(--surface-2);
	text-align: center;
	min-width: 0;
}
.day-n { font-size: 12px; color: var(--text-muted); }
.day .art-box { width: 56px; height: 56px; }
.day .reward-cell { flex-direction: column; gap: 8px; font: 500 13px/1.3 var(--font); color: var(--text-strong); }
.day .reward-cell .art-box { width: 56px; height: 56px; }
@media (max-width: 1099px) {
	.day-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 759px) {
	.day-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- FAQ ---------- */

.faq { max-width: 727px; margin: 30px auto 0; }
.faq h1 { font: 500 15px/1.4 var(--font); color: var(--text-strong); margin-bottom: 18px; }
.faq-intro { margin-bottom: 22px; }
.faq details {
	border: 1px solid var(--border);
	border-radius: var(--radius-btn);
	background: var(--surface);
	margin-top: 8px;
}
.faq summary {
	list-style: none;
	padding: 16px 20px;
	font: 400 14px var(--font);
	color: var(--text-strong);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	border-radius: var(--radius-btn);
	transition: color var(--t-fast) var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--link-hover); }
.faq summary .feather { width: 18px; height: 18px; color: var(--text-muted); transition: transform var(--t-fast) var(--ease); }
.faq details[open] summary { color: var(--link); }
.faq details[open] summary .feather { transform: rotate(180deg); color: var(--link); }
.faq-answer { padding: 0 20px 18px; }
.faq-answer table { margin: 4px 0 14px; font-size: 13px; }
.faq-answer td, .faq-answer th { padding-left: 8px; padding-right: 8px; }

/* ---------- Forms (calculator) ---------- */

.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-label { font-size: 12px; color: var(--text-muted); }
.input, .select {
	height: 38px;
	width: 100%;
	background: var(--inset);
	border: 1px solid var(--border-input);
	border-radius: var(--radius-btn);
	padding: 0 12px;
	font-size: 14px;
	color: var(--text-strong);
	-webkit-appearance: none;
	appearance: none;
}
.select { padding-right: 34px; cursor: pointer; }
.input:focus, .select:focus { outline: none; border-color: var(--link); }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.input.num-input { text-align: right; }
.field .select-wrap { display: flex; }
.field .select-wrap .feather { right: 12px; width: 16px; height: 16px; }
.input.small { height: 32px; max-width: 140px; margin-left: auto; }
.how { font-size: 12px; color: var(--text-muted); margin-top: 18px; }
.how strong { color: var(--text); font-weight: 500; }

@media (max-width: 759px) {
	.search input, .input, .select { font-size: 16px; }
}

/* ---------- Empty states ---------- */

.empty { text-align: center; padding: 40px 20px; }
.empty > .feather { width: 28px; height: 28px; color: var(--text-muted); }
.empty-title { margin: 10px 0 4px; font: 500 15px var(--font); color: var(--text-strong); }
.empty p { margin: 0 auto; max-width: 460px; }
.empty .fav { margin-top: 14px; }
.list-empty { margin: 22px var(--grid-inset) 0; }

/* ---------- Footer line ---------- */

.foot-line { margin-top: 60px; text-align: center; font-size: 12px; color: var(--text-muted); }
.foot-line .sep { margin: 0 6px; color: var(--text-faint); }

/* ---------- Top bar: tablet and phone ---------- */

@media (max-width: 1199px) {
	.search { width: min(560px, 52%); }
}

@media (max-width: 759px) {
	.topbar { padding: 0 10px; gap: 4px; }
	.topbar .brand-word, .topbar .stat-pill { display: none; }
	.brand { padding: 6px 4px; }
	.search { width: auto; flex: 1; min-width: 0; margin-left: 4px; position: static; }
	.search kbd { display: none; }
	.search-btn { padding: 0 12px; }
	.search-btn span { display: none; }
	.search-list { left: 0; right: 0; min-width: 0; }
	.search-foot .hint { display: none; }

	.head-row { margin-top: 22px; }
	.head-row .filters, .sub-row .filters {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		justify-content: flex-start;
		margin: 0 calc(-1 * var(--page-pad));
		padding: 2px calc(var(--page-pad) + var(--row-inset));
		width: calc(100% + 2 * var(--page-pad));
	}
	.head-row .filters::-webkit-scrollbar, .sub-row .filters::-webkit-scrollbar { display: none; }
	.sub-row { margin-top: 10px; }
	.list-tools { width: 100%; justify-content: space-between; }
}

/* ---------- Value list extras ---------- */

.head-left { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; min-width: 0; }
.head-count { font-size: 13px; color: var(--text-muted); }
.only-phone { display: none; }
.list-table-wrap { padding: 0 var(--grid-inset); }
.list-table { margin: 22px 0 0; }
.list-table td { padding-top: 8px; padding-bottom: 8px; }
.result-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.result-row .result-line { margin-top: 0; }

@media (max-width: 759px) {
	.only-phone { display: inline; }
	.hide-phone { display: none; }
	.list-table { margin-top: 18px; }
}

.sub-title { margin: 22px 0 10px; font: 500 13px var(--font); color: var(--text-strong); }
.prose + .sub-title { margin-top: 18px; }

/* ---------- Page pieces: hatch, wiki tables, calculator ---------- */

a.chip-btn { text-decoration: none; }
.chip-btn[aria-current="page"] {
	color: var(--link);
	border-color: var(--link);
	background: color-mix(in srgb, var(--link) 12%, transparent);
}
.egg-glyph { display: inline-grid; width: 16px; height: 16px; flex: none; }
.egg-glyph svg { width: 100%; height: 100%; }
.filters.start { justify-content: flex-start; }
.hatch-eggs { padding: 0; }
.hatch-eggs .filters { justify-content: flex-start; }
.hatch-layout, .calc-layout { margin-top: 22px; }
.item-card .item-name { margin: 0 0 16px; font: 500 16px/1.4 var(--font); color: var(--text-strong); }
.big-art.egg-art { width: 200px; height: 200px; }
.big-art.egg-art .art.drawn svg { width: 100%; height: 100%; }
.luck-row { justify-content: center; margin-top: 12px; }

.page-wiki .head-row { padding: 0; }
.page-wiki .head-row .filters { justify-content: flex-start; }

.chip-cell { display: inline-flex; flex-wrap: wrap; gap: 4px 0; }
.reward-cell { display: inline-flex; align-items: center; gap: 10px; }
.reward-cell .art-box { width: 28px; height: 28px; }
.matrix-ore { display: flex; align-items: center; gap: 12px; }
.matrix-ore .art-box { width: 28px; height: 28px; }
.matrix-cell { display: inline-flex; justify-content: flex-end; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; color: var(--text-strong); }
.matrix-cell:hover { background: var(--surface-3); color: var(--text-strong); }
.matrix th:first-child, .matrix td:first-child { min-width: 200px; }

.world-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 22px; }
.world-head .card-title { margin: 0; }
.world-head + .card-sub { margin-top: -12px; }
.boss-row td { background: color-mix(in srgb, var(--r-mythic) 5%, transparent); }

.goals { display: flex; flex-direction: column; gap: 4px; }
.goal .cell-sub { display: block; }
.wrap-table td { vertical-align: top; }
.wrap-table td.icon-cell { vertical-align: middle; }
.area-buildings { margin-bottom: 4px; }
.fp-facts { margin-bottom: 4px; }
.card-note-prose { margin-top: 16px; font-size: 13px; }
.btn-small { height: 30px; padding: 0 14px; }
.tab-row { justify-content: flex-start; }

.calc-form .card-title { margin-bottom: 18px; }
.form-table td { padding-top: 6px; padding-bottom: 6px; }
.form-table .input { height: 32px; max-width: 150px; margin-left: auto; display: block; }
.calc-layout .card-title.center { margin-bottom: 18px; }
sup { font-size: 0.75em; line-height: 0; }

@media (max-width: 759px) {
	.matrix th:first-child, .matrix td:first-child { min-width: 150px; position: sticky; left: 0; background: var(--surface); z-index: 1; }
	.big-art.egg-art { width: 150px; height: 150px; }
	.form-table .input { max-width: 110px; }
}
.result-row { padding: 0 var(--row-inset); margin-top: 12px; }
.result-row .result-line { padding: 0; margin: 0; }

.masonry { columns: 2; column-gap: 27px; }
.masonry > .card { break-inside: avoid; margin-bottom: 27px; }
.masonry > .card:last-child { margin-bottom: 0; }
@media (max-width: 1099px) {
	.masonry { columns: 1; }
}
.two-col.top { align-items: start; }
