.mini-badges, .skill-icon, table td, table th {
	vertical-align: middle;
}

h1, h2 {
	line-height: 1.3;
}

.ach-inline-rarity, .pi-remaining, table td {
	font-variant-numeric: tabular-nums;
}

.bg-layer2.p-6.rounded-lg.border-2.border-border-dark {
	box-shadow: 0 0 15px 0 #710b8b;
}

:root[data-theme=light] {
	--color-bg-surface: #f8f2e6;
	--color-bg-layer: #ffffff;
	--color-bg-layer2: #f4e7d7;
	--color-bg-elevated-1: #ffffff;
	--color-bg-elevated-2: #fef3e8;
	--color-bg-elevated-3: #f9e7d6;
	--color-bg-header: #31160f;
	--color-border: #e5c49b;
	--color-border-dark: #c08d4f;
	--color-border-light: #f4dcc0;
	--color-foreground: #24130d;
	--color-muted: #7b6553;
	--color-accent: #f97316;
	--color-accent-hover: #ea580c;
	--color-gold: #f4d35e;
	--color-input: #ffffff;
	--color-danger: #dc2626;
	--color-success: #16a34a;
	--root-font-scale: 1;
	--body-font-scale: 1;
	--shadow-sm: 0 10px 30px rgba(49,22,15,0.08), inset 0 1px 0 rgba(255,255,255,0.4);
	--shadow-md: 0 24px 40px rgba(49,22,15,0.12);
	--shadow-lg: 0 40px 70px rgba(49,22,15,0.15);
}

:root[data-theme=dark] {
	--color-bg-surface: #0f0a06;
	--color-bg-layer: #1b120c;
	--color-bg-layer2: #24140d;
	--color-bg-elevated-1: #20130c;
	--color-bg-elevated-2: #29180f;
	--color-bg-elevated-3: #311f13;
	--color-bg-header: #150c07;
	--color-border: #3f2716;
	--color-border-dark: #5c351c;
	--color-border-light: #70492a;
	--color-foreground: #f8e9d7;
	--color-muted: #b9a593;
	--color-accent: #ff7a45;
	--color-accent-hover: #ff6a2d;
	--color-gold: #f4d35e;
	--color-input: #22130b;
	--color-danger: #ff6b6b;
	--color-success: #51cf66;
	--root-font-scale: 1;
	--body-font-scale: 1;
	--shadow-sm: 0 12px 30px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
	--shadow-md: 0 30px 50px rgba(0,0,0,0.35);
	--shadow-lg: 0 48px 90px rgba(0,0,0,0.45);
}

html {
	font-size: clamp(16px,1.2vw + .4rem,19px);
}

body {
	font-family: 'Inter', sans-serif;
	font-size: clamp(1rem,.5vw + .95rem,1.18rem);
	line-height: 1.7;
	background: var(--color-bg-surface);
	background-image: radial-gradient(1200px circle at 8% -10%, rgba(244,211,94,0.12), transparent 55%), radial-gradient(900px circle at 85% 0%, rgba(255,122,69,0.14), transparent 60%), linear-gradient(180deg, rgba(20,12,7,0.5) 0%, transparent 42%);
	min-height: 100vh;
	position: relative;
	overflow-x: hidden;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(1600px circle at 15% 20%, rgba(244,211,94,0.05), transparent 60%), radial-gradient(1200px circle at 85% 15%, rgba(255,122,69,0.08), transparent 58%), radial-gradient(900px circle at 50% 0%, rgba(102,72,38,0.18), transparent 75%);
	opacity: .9;
	z-index: -1;
}

td.text-left {
}

button.username-link {
	color: #ffffff;
}

h1 {
	font-size: 32px;
}

h2 {
	font-size: 24px;
}

.nav-pill {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .45rem 1.05rem;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .02em;
	user-select: none;
	text-decoration: none;
	color: var(--color-muted);
	position: relative;
	overflow: hidden;
	transition: color .2s, transform .2s;
}

.nav-pill:hover {
	color: var(--color-foreground);
	transform: translateY(-1px);
}

.nav-pill.active {
	color: var(--color-foreground);
	transform: translateY(-1px);
}

.nav-pill::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(120deg, rgba(244,211,94,0.18), rgba(255,122,69,0.12));
	opacity: 0;
	transition: opacity .25s, box-shadow .25s;
	z-index: -1;
}

.nav-pill:hover::before {
	opacity: .45;
}

.nav-pill.active::before {
	opacity: .65;
	box-shadow: 0 0 0 1px rgba(244,211,94,0.35), 0 18px 30px rgba(0,0,0,0.25);
}

#searchSuggest button, .icon-button, .progress-toggle button:not(.active):hover, .skill-name, .text-foreground, .username-link, [data-tooltip]::after, input[type=number], input[type=text], select, table th {
	color: var(--color-foreground);
}

.container-wrap {
	max-width: 1600px;
	padding: 0 1.5rem;
}

.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;
}

.is-hidden {
	display: none !important;
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	flex-wrap: wrap;
}

.header-brand {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	min-width: 200px;
}

.header-subcopy {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .6rem;
	font-size: .78rem;
	color: var(--color-muted);
}

.header-subtitle {
	font-size: .82rem;
	color: var(--color-muted);
}

.header-nav {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .75rem;
	justify-content: center;
}

.header-tools {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.header-search {
	position: relative;
}

.header-search input {
	min-width: 240px;
	padding-right: 2.75rem;
}

.chip {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .3rem .75rem;
	border-radius: 999px;
	background: rgba(255,255,255,0.05);
	color: var(--color-muted);
	font-size: .7rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	display: inline-flex;
	align-items: center;
	gap: .25rem;
	padding: .25rem .5rem;
	border: 1px solid var(--color-border);
	background: var(--color-bg-layer);
	color: var(--color-muted);
	border-radius: 999px;
	font-size: .75rem;
	font-weight: 600;
}

.chip--live {
	background: linear-gradient(120deg, rgba(255,122,69,0.3), rgba(244,211,94,0.3));
	color: var(--color-foreground);
	font-weight: 600;
}

.chip-dot {
	width: .45rem;
	height: .45rem;
	border-radius: 999px;
	background: #ff6a2d;
	box-shadow: 0 0 0 4px rgba(255,106,45,0.25);
	animation: livePulse 1.6s infinite;
}

.hero {
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
	position: relative;
	overflow: hidden;
	isolation: isolate;
}

.hero::before {
	content: "";
	position: absolute;
	inset: -35% 45% auto -30%;
	height: 140%;
	background: radial-gradient(circle, rgba(255,122,69,0.22) 0%, rgba(20,12,7,0) 58%);
	pointer-events: none;
	opacity: .35;
}

.hero-atmosphere {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.hero-orb {
	position: absolute;
	width: clamp(220px,32vw,420px);
	height: clamp(220px,32vw,420px);
	border-radius: 50%;
	filter: blur(0px);
	opacity: .45;
	mix-blend-mode: screen;
}

.hero-orb--north {
	top: -40%;
	right: -18%;
	background: radial-gradient(circle, rgba(255,122,69,0.4), rgba(255,122,69,0));
}

.hero-orb--south {
	bottom: -45%;
	left: -8%;
	background: radial-gradient(circle, rgba(244,211,94,0.35), rgba(244,211,94,0));
}

.hero-gridlines {
	position: absolute;
	inset: 0;
	background-image: linear-gradient(transparent 75%, rgba(244,211,94,0.08) 75%), linear-gradient(90deg, transparent 75%, rgba(244,211,94,0.06) 75%);
	background-size: 100% 40px, 40px 100%;
	opacity: .18;
	mix-blend-mode: soft-light;
}

.hero-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 2rem;
}

.hero-copy {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	max-width: 36rem;
	position: relative;
	z-index: 1;
}

.hero-kicker {
	text-transform: uppercase;
	letter-spacing: .22em;
	font-size: .7rem;
	color: var(--color-muted);
}

.hero-title {
	margin: 0;
	font-size: clamp(2.2rem,3.2vw,3rem);
	line-height: 1.05;
}

.hero-subtitle {
	font-size: 1rem;
	color: var(--color-muted);
}

.hero-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
}

.hero-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .75rem;
	margin-top: .5rem;
}

.hero-controls {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: flex-end;
	position: relative;
	z-index: 1;
}

.field {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	min-width: 200px;
}

.field-label {
	font-size: .75rem;
	text-transform: uppercase;
	letter-spacing: .12em;
	color: var(--color-muted);
}

.hero-metrics {
	display: grid;
	gap: 1.1rem;
	grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
	position: relative;
	z-index: 1;
}

.hero-metric {
	padding: 1rem 1.2rem;
	border-radius: 1.1rem;
	border: 1px solid rgba(244,211,94,0.2);
	background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,122,69,0.08) 55%, rgba(20,12,7,0.85));
	backdrop-filter: blur(16px);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 18px 40px rgba(0,0,0,0.35);
	display: flex;
	flex-direction: column;
	gap: .4rem;
	min-width: 0;
	position: relative;
	overflow: hidden;
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.hero-metric::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top right, rgba(244,211,94,0.22), transparent 55%);
	opacity: .6;
	pointer-events: none;
	z-index: 0;
}

.hero-metric:hover {
	transform: translateY(-3px);
	border-color: rgba(244,211,94,0.4);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), 0 24px 55px rgba(0,0,0,0.45);
}

.hero-metric > * {
	position: relative;
	z-index: 1;
}

.hero-metric__label {
	font-size: .7rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--color-muted);
}

.hero-metric__value {
	font-size: clamp(1.4rem,2vw,1.9rem);
	font-weight: 700;
	display: flex;
	align-items: baseline;
	gap: .45rem;
	color: var(--color-foreground);
}

.hero-metric__delta {
	font-size: .85rem;
	color: var(--color-muted);
	font-weight: 500;
}

.hero-metric__meta {
	font-size: .8rem;
	color: var(--color-muted);
}

.hero-spotlight {
	display: flex;
	flex-direction: column;
	gap: .65rem;
	padding: 1.25rem 1.5rem;
	border-radius: 1.2rem;
	border: 1px solid rgba(244,211,94,0.18);
	background: linear-gradient(130deg, rgba(255,122,69,0.12), rgba(20,12,7,0));
	position: relative;
	z-index: 1;
	transition: border-color .25s ease, box-shadow .25s ease;
	backdrop-filter: blur(12px);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 14px 28px rgba(0,0,0,0.28);
}

.hero-spotlight--inline {
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
}

.hero-spotlight.is-active {
	border-color: rgba(244,211,94,0.4);
	box-shadow: 0 18px 35px rgba(0,0,0,0.35);
}

.hero-spotlight__label {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	text-transform: uppercase;
	letter-spacing: .18em;
	font-size: .68rem;
	color: var(--color-muted);
}

.hero-spotlight__label i {
	color: var(--color-accent);
}

.hero-spotlight__content {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	font-size: 1rem;
	color: var(--color-foreground);
}

.hero-spotlight__content span:first-child {
	font-weight: 600;
	font-size: clamp(1.05rem,1.8vw,1.25rem);
}

.hero-spotlight__meta {
	font-size: .85rem;
	color: var(--color-muted);
}

.hero--compact .hero-title {
	font-size: clamp(1.9rem,2.6vw,2.45rem);
}

.hero--compact .hero-grid {
	gap: 1.5rem;
}

.hero--compact .hero-metrics {
	grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
}

.hero-podium-wrap {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	position: relative;
	z-index: 1;
}

.hero-podium-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem;
	flex-wrap: wrap;
	color: var(--color-muted);
	font-size: .85rem;
}

.hero-podium-title {
	margin: 0;
	font-size: 1.15rem;
	color: var(--color-foreground);
}

.hero-podium {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
	grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
}

.hero-podium li {
	border-radius: 1rem;
	border: 1px solid rgba(244,211,94,0.22);
	background: rgba(255,255,255,0.06);
	padding: 1.1rem 1.2rem;
	display: flex;
	flex-direction: column;
	gap: .6rem;
	min-height: 180px;
	position: relative;
	overflow: hidden;
}

.hero-podium li:nth-child(1) {
	border-color: rgba(244,211,94,0.45);
	background: linear-gradient(160deg, rgba(244,211,94,0.25), rgba(255,255,255,0.06));
}

.hero-podium li:nth-child(2) {
	border-color: rgba(188,198,214,0.35);
	background: linear-gradient(160deg, rgba(188,198,214,0.18), rgba(255,255,255,0.05));
}

.hero-podium li:nth-child(3) {
	border-color: rgba(205,127,50,0.35);
	background: linear-gradient(160deg, rgba(205,127,50,0.22), rgba(255,255,255,0.05));
}

.hero-podium li::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 20%, rgba(255,122,69,0.18), transparent 65%);
	opacity: .5;
	pointer-events: none;
}

.hero-podium li:hover {
	transform: translateY(-3px);
	box-shadow: 0 25px 40px rgba(0,0,0,0.35);
}

.hero-podium-rank {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--color-gold);
}

.hero-podium-name {
	display: flex;
	align-items: center;
	gap: .45rem;
	flex-wrap: wrap;
}

.hero-podium-meta {
	font-size: .8rem;
	color: var(--color-muted);
}

.hero-podium-empty {
	text-align: center;
	color: var(--color-muted);
}

.hero-ticker {
	border-radius: 999px;
	border: 1px solid rgba(244,211,94,0.2);
	background: rgba(255,255,255,0.04);
	overflow: hidden;
	position: relative;
}

.hero-ticker::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(20,12,7,0.95) 0%, rgba(20,12,7,0) 20%, rgba(20,12,7,0) 80%, rgba(20,12,7,0.95) 100%);
	pointer-events: none;
}

.ticker-track {
	display: inline-flex;
	align-items: center;
	gap: 2rem;
	padding: .45rem 0;
	animation: tickerScroll var(--ticker-duration,24s) linear infinite;
	will-change: transform;
}

.ticker-item {
	white-space: nowrap;
	font-size: .85rem;
	color: var(--color-muted);
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: 0 1.5rem;
}

.ticker-item strong {
	color: var(--color-foreground);
}

.ticker-meta {
	font-size: .75rem;
	color: var(--color-muted);
}

.hero-ticker.paused .ticker-track, .hero-ticker.ticker--static .ticker-track {
	animation: none;
	justify-content: center;
}

.hero-ticker.ticker--static .ticker-track {
	gap: 1.25rem;
}

.hero-ticker.ticker--static .ticker-item {
	padding-inline: 2rem;
}

.grid-auto-fit, .skills-grid {
	display: grid;
	gap: .75rem;
}

.skills-grid {
	grid-template-columns: repeat(auto-fit, minmax(260px,1fr));
}

.grid-auto-fit {
	grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
}

.main-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: start;
}

.home-widgets-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
}

.home-widget-card {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.home-widget-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
}

.home-widget-body {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.home-widget-meta {
	font-size: .75rem;
	color: var(--color-muted);
}

.on-rise-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.on-rise-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
}

.on-rise-item-main {
	display: flex;
	flex-direction: column;
	gap: .25rem;
}

.on-rise-name-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: .5rem;
}

.on-rise-delta {
	font-weight: 600;
	color: var(--color-success);
	font-variant-numeric: tabular-nums;
}

.on-rise-meta {
	font-size: .8rem;
	color: var(--color-muted);
	font-variant-numeric: tabular-nums;
}

.on-rise-empty {
	font-size: .9rem;
	color: var(--color-muted);
}

.weekly-rarest {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.weekly-rarest-heading {
	display: flex;
	align-items: center;
	gap: .75rem;
}

.weekly-rarest-icon {
	font-size: 1.5rem;
}

.weekly-rarest-title {
	font-weight: 600;
}

.weekly-rarest-desc {
	font-size: .85rem;
	color: var(--color-muted);
}

.weekly-rarest-stats {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	font-size: .85rem;
}

.weekly-rarest-line {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem;
	align-items: baseline;
}

.weekly-rarest-rarity {
	font-weight: 600;
}

.weekly-rarest-pct {
	font-size: .75rem;
	color: var(--color-muted);
}

.weekly-rarest-unlocks {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .35rem;
	font-size: .85rem;
}

.weekly-rarest-player {
	display: flex;
	align-items: center;
	gap: .5rem;
}

.weekly-rarest-player time {
	font-size: .75rem;
	color: var(--color-muted);
}

.weekly-rarest-empty {
	font-size: .9rem;
	color: var(--color-muted);
}

.home-trends-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: .5rem;
}

.home-trend-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .5rem;
	font-size: .9rem;
}

.home-trend-label {
	color: var(--color-muted);
}

.home-trend-value {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
}

.trend-delta {
	font-size: .75rem;
	color: var(--color-muted);
}

.trend-delta.positive {
	color: var(--color-success);
}

.trend-delta.negative {
	color: var(--color-danger);
}

.watchlist-card {
	display: flex;
	flex-direction: column;
	gap: .75rem;
}

.watchlist-actions {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	align-items: center;
	font-size: .75rem;
	color: var(--color-muted);
}

.watchlist-list {
	list-style: none;
	margin: 0 auto;
	font-size: .9rem;
	display: grid;
	justify-content: center;
	align-items: baseline;
	justify-items: stretch;
}

.watchlist-empty {
	font-size: .85rem;
	color: var(--color-muted);
}

.watchlist-player {
	display: flex;
	gap: .4em;
	padding: 1em;
	border-top-width: thin;
}

.watchlist-player-top {
	display: flex;
	justify-content: space-evenly;
	flex-wrap: nowrap;
	flex-direction: column;
}

.watchlist-rank {
	font-size: .75rem;
	color: var(--color-muted);
}

.watchlist-reason {
	font-size: .75rem;
	color: var(--color-muted);
}

.watchlist-more {
	font-size: .75rem;
	color: var(--color-muted);
}

.watchlist-badge {
	font-size: .7rem;
	padding: .15rem .6rem;
	border-radius: 999px;
	background: rgba(255,255,255,.08);
	color: var(--color-muted);
}

.watchlist-status {
	font-size: .75rem;
	color: var(--color-muted);
}

.watchlist-meta {
	font-size: .75rem;
	color: var(--color-muted);
}

.watchlist-delta {
	font-size: .75rem;
	font-weight: 600;
	color: var(--color-success);
}

.watchlist-tag {
	font-size: .7rem;
	padding: .1rem .45rem;
	border-radius: 999px;
	background: rgba(255,255,255,.12);
	color: var(--color-accent);
	text-transform: uppercase;
	letter-spacing: .02em;
}

.sidebar {
	position: static;
}

.osrs-header, .osrs-table, .pi-bar, .progress-item, .skill-info, .skill-row, .toast, .username-link, [data-tooltip], table th {
	position: relative;
}

.card {
	background: var(--color-bg-elevated-1);
	background-image: linear-gradient(160deg, rgba(255,122,69,0.08), transparent 55%), linear-gradient(0deg, var(--color-bg-elevated-1), var(--color-bg-elevated-1));
	border-radius: 1.25rem;
	border: 1px solid rgba(244,211,94,0.16);
	box-shadow: var(--shadow-sm);
	padding: 1.5rem 1.75rem;
	transition: box-shadow .25s ease, transform .25s ease;
	position: relative;
	isolation: isolate;
	display: none;
}

#searchSuggest, .card:hover, .skill-row.clickable:hover, .toast {
	box-shadow: var(--shadow-lg);
}

.btn, .btn-sm, .btn-sm:active, .btn:active, .icon-button, .meta-badge, .osrs-table, .skill-rank, .skill-row, [data-tooltip]::after {
	box-shadow: var(--shadow-sm);
}

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.breadcrumb-sep {
	opacity: .6;
}

.collapse summary {
	list-style: none;
	display: flex;
	align-items: center;
}

.collapse summary::-webkit-details-marker {
	display: none;
}

.summary ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

[data-tooltip]::after {
	cursor: help;
	position: relative;
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translate(-50%,.5rem);
	white-space: pre-line;
	background: var(--color-bg-layer2);
	padding: .5rem .75rem;
	font-size: .75rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
	z-index: 100;
	border: 1px solid var(--color-border);
	box-shadow: var(--shadow-md);
	max-width: 250px;
	text-align: center;
	line-height: 1.4;
}

[data-tooltip]:hover::after {
	opacity: 1;
}

.osrs-header::after, .osrs-table::before, .skill-row::before, .toast::before, .username-link::after, th.sortable::after {
	content: "";
}

.osrs-header::after, .osrs-table::before, .skill-row::before, .toast::before, .username-link::after {
	position: absolute;
}

.osrs-header::after, .osrs-table::before, .toast::before {
	right: 0;
}

.osrs-header::after, .osrs-table::before, .toast::before, .username-link::after {
	left: 0;
}

.badge, .btn, .btn-sm, .skill-rank, table th {
	text-transform: none;
}

.achievement-badge, .achievement-category h5, .filter-bar label, table th {
	text-transform: uppercase;
}

.progress-item .pi-head, .text-capitalize {
	text-transform: capitalize;
}

.badge, .skill-rank {
	background: 0 0;
	border-radius: 0;
	border: 0;
	font-size: .75em;
}

#searchSuggest, .bg-layer, .icon-button, .meta-badge, .osrs-table, .progress-item, input[type=number], input[type=text], select {
	background: var(--color-bg-layer);
}

#searchSuggest button, .btn, .btn-sm, .icon-button, .nav-pill, .skill-icon, .skill-row, .username-link, input[type=number], input[type=text], select, tbody tr {
	transition: .2s;
}

.badge, .btn, .btn-sm, .nav-pill, .skill-rank, table th {
	letter-spacing: 0;
}

.btn-sm:active, .btn:active {
	transform: translateY(0);
}

.achievement-inline-card:hover, .btn-sm:hover, .btn:hover, .icon-button:hover, .skill-row.clickable:active {
	transform: translateY(-1px);
}

.btn-sm:hover, .btn:hover, .icon-button:hover, .osrs-header, .osrs-table, .skill-row.clickable:active, .skill-row:hover {
	box-shadow: var(--shadow-md);
}

#searchSuggest, .osrs-table, .skill-row, .toast {
	overflow: hidden;
}

.btn, .btn-sm, .icon-button, input[type=number], input[type=text], select {
	border-radius: .375rem;
}

.icon-button, .nav-pill, .nav-pills, .skill-info, .skill-row, .skill-stats {
	display: flex;
	align-items: center;
}

.meta-badge, .mini-badge, .mini-badges, .tier-badge {
	display: inline-flex;
}

.badge, .skill-rank, .skill-xp, .text-muted {
	color: var(--color-muted);
}

.text-accent, .username-link:hover {
	color: var(--color-accent);
}

.btn, .btn-sm, .skill-name, .skill-xp, table td, table th {
	font-size: .8em;
}

.meta-badges {
	gap: .5rem;
	margin-top: .25rem;
}

.meta-badge {
	align-items: center;
	padding: .15rem .4rem;
	border: 1.5px solid var(--color-border);
	color: var(--color-muted);
	border-radius: .375rem;
	line-height: 1;
}

.tier-badge {
	align-items: center;
	gap: .25rem;
	margin-left: .5rem;
	padding: .1rem .4rem;
	border-radius: .4rem;
	font-size: .7rem;
	font-weight: 700;
	letter-spacing: .02em;
	border: 1px solid var(--color-border);
	background: var(--color-bg-layer2);
}

.tier-badge::before {
	content: '★';
	opacity: .9;
}

.tier-badge.tier--icon-only {
	width: 1.25rem;
	height: 1.25rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
}

.tier-badge.tier--icon-only .tier-svg {
	width: .9rem;
	height: .9rem;
	display: block;
}

.tier-svg--grandmaster {
	color: gold;
	filter: drop-shadow(0 0 3px rgba(255,215,0,.5));
}

.tier-svg--master {
	color: #ffb300;
}

.tier-svg--diamond {
	color: #7dd3fc;
}

.top-player-row .tier-badge[data-tooltip]::after {
	white-space: normal;
}

.tier-badge.tier--mini {
	width: 0.95rem;
	height: 0.95rem;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: .58rem;
	font-weight: 700;
	border-radius: 3px;
	letter-spacing: .25px;
	line-height: 1;
	border: 1px solid var(--color-border-light);
	background: var(--color-bg-layer2);
	position: relative;
	z-index: 20;
	position: relative;
}

.tier-badge.tier--mini::before {
	display: none;
	content: none;
}

.tier-badge.tier--mini.tier-grandmaster {
	border-color: gold;
	color: gold;
	visibility: hidden;
}

.tier-badge.tier--mini.tier-master {
	border-color: #ffb300;
	color: #ffb300;
}

.tier-badge.tier--mini.tier-diamond {
	border-color: #38bdf8;
	color: #38bdf8;
}

.tier-badge.tier--mini .tier-mini-letter {
	display: block;
}

.top-player-row .tier-badge.tier--mini {
}

.tier-badge.tier--mini:hover {
	z-index: 6000;
}

.tier-badge.tier--mini[data-tooltip]::after {
	z-index: 6500;
	pointer-events: none;
}

.top-player-row .tier-badge.tier--mini[data-tooltip]::after {
	z-index: 6600;
}

.tier-badge.tier--icon-only::before {
	content: '★';
	font-size: .8rem;
	line-height: 1;
}

.mini-badge--highlight, .tier-badge.tier-grandmaster {
	color: gold;
	border-color: #e6c200;
	background: linear-gradient(135deg, rgba(255,215,0,.12), transparent);
}

.tier-badge.tier-master {
	color: #ffb300;
	border-color: #cc8f00;
	background: linear-gradient(135deg, rgba(255,179,0,.12), transparent);
}

.tier-badge.tier-diamond {
	color: #7dd3fc;
	border-color: #38bdf8;
	background: linear-gradient(135deg, rgba(125,211,252,.12), transparent);
}

.tier-badge.tier-platinum {
	color: #e5e7eb;
	border-color: #cbd5e1;
	background: linear-gradient(135deg, rgba(229,231,235,.12), transparent);
}

.tier-badge.tier-gold {
	color: #f59e0b;
	border-color: #d97706;
	background: linear-gradient(135deg, rgba(245,158,11,.12), transparent);
}

.tier-badge.tier-silver {
	color: #c0c7d1;
	border-color: #9aa4b2;
	background: linear-gradient(135deg, rgba(192,199,209,.12), transparent);
}

.tier-badge.tier-bronze {
	color: #cd7f32;
	border-color: #b26a29;
	background: linear-gradient(135deg, rgba(205,127,50,.12), transparent);
}

.mini-badges {
	gap: .35rem;
	margin-left: .5rem;
	flex-wrap: wrap;
}

.leaderboard-table td:nth-child(2) {
	margin: 0 auto;
}

.leaderboard-table td:nth-child(2) .username-link {
	margin-right: .1rem;
}

.leaderboard-table td:nth-child(2) .tier-badge, .leaderboard-table td:nth-child(2) .mini-badges {
	align-content: stretch;
	display: inline;
	font-size: smaller;
}

.achievements-inline-grid {
	gap: .75rem;
	display: grid;
	margin-top: .75rem;
	justify-items: stretch;
}

.mini-badge {
	align-items: center;
	padding: .075rem .35rem;
	border-radius: .35rem;
	font-size: .68rem;
	font-weight: 700;
	color: var(--color-muted);
	border: 1px solid var(--color-border);
	background: rgba(0,0,0,.06);
}

.leaderboard-table .mini-badge {
	display: none;
}

.meta-badge--muted {
	opacity: .7;
	font-weight: 400;
}

.user-achievements {
	border-top: 1px solid var(--color-border);
	padding-top: 1rem;
	margin-top: 1rem;
}

.achievement-inline-card {
	display: flex;
	align-items: center;
	gap: .5rem;
	padding: .5rem .75rem;
	background: var(--color-bg-layer2);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	transition: .2s;
	cursor: help;
	position: relative;
	overflow: hidden;
	white-space: normal;
}

.cursor-pointer, .icon-button, tbody tr.clickable {
	cursor: pointer;
}

.achievement-inline-card::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--color-border);
	transition: background .2s;
}

.achievement-inline-card:hover {
	background: var(--color-bg-layer2);
	border-color: var(--color-border-light);
	box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

h3.font-bold.text-foreground {
	display: flex;
	flex-direction: column;
	align-content: stretch;
	justify-content: center;
	align-items: center;
	padding-bottom: 1em;
}

.ach-inline-icon {
	font-size: 1.1rem;
	flex-shrink: 0;
	width: 1.5rem;
	text-align: center;
}

.ach-inline-content {
	flex: 1;
	min-width: 0;
}

.ach-inline-name {
	font-weight: 500;
	font-size: .8rem;
	color: var(--color-foreground);
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
}

.ach-inline-rarity {
	font-size: .7rem;
	color: var(--color-muted);
}

.achievement-inline-card.ach-mythic::before {
	background: linear-gradient(45deg,#ff6b6b,orange);
}

.achievement-inline-card.ach-mythic .ach-inline-name {
	color: #ff6b6b;
	font-weight: 600;
}

.achievement-inline-card.ach-legendary::before {
	background: linear-gradient(45deg,#a855f7,#ec4899);
}

.achievement-inline-card.ach-legendary .ach-inline-name {
	color: #a855f7;
	font-weight: 600;
}

.achievement-inline-card.ach-epic::before {
	background: linear-gradient(45deg,#3b82f6,#06b6d4);
}

.achievement-inline-card.ach-epic .ach-inline-name {
	color: #3b82f6;
	font-weight: 500;
}

.achievement-inline-card.ach-rare::before {
	background: linear-gradient(45deg,#10b981,#059669);
}

.achievement-inline-card.ach-rare .ach-inline-name {
	color: #10b981;
	font-weight: 500;
}

.achievement-inline-card.ach-common::before {
	background: var(--color-border-light);
}

#searchSuggest button, .nav-pill, .toast {
	font-weight: 600;
}

table th {
	font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	font-size: .75rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	font-weight: 600;
	background: linear-gradient(120deg, rgba(255,122,69,0.12), rgba(244,211,94,0.12));
	border-bottom: 1px solid rgba(244,211,94,0.25);
	color: var(--color-muted);
}

.btn, .btn-sm {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .02em;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
	text-decoration: none;
}

.btn {
	padding: .65rem 1.5rem;
	background: linear-gradient(120deg, rgba(255,122,69,0.95), rgba(244,211,94,0.95));
	color: #1e0c06;
	box-shadow: 0 24px 40px rgba(255,122,69,0.25);
}

.btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 30px 50px rgba(255,122,69,0.28);
}

.btn-primary {
	color: #1e0c06;
}

.btn-ghost {
	background: rgba(255,255,255,0.04);
	color: var(--color-foreground);
	box-shadow: none;
	border: 1px solid rgba(244,211,94,0.25);
}

.btn-ghost:hover {
	background: rgba(255,122,69,0.12);
}

.btn-sm {
	padding: .45rem 1rem;
	font-size: .75rem;
	border-radius: .85rem;
	background: rgba(255,122,69,0.14);
	color: var(--color-foreground);
	border: 1px solid rgba(244,211,94,0.28);
}

.btn-sm:hover {
	background: rgba(255,122,69,0.2);
}

.icon-button {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(244,211,94,0.25);
	background: rgba(255,255,255,0.04);
	color: var(--color-foreground);
	cursor: pointer;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.icon-button:hover {
	transform: translateY(-2px);
	background: rgba(255,122,69,0.16);
	box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

#searchSuggest, .skill-row, .toast {
	border: 1px solid rgba(244,211,94,0.18);
}

input[type=number], input[type=text], select, .btn-input {
	padding: .6rem .9rem;
	font-size: .9rem;
	font-weight: 500;
	border-radius: .8rem;
	border: 1px solid rgba(244,211,94,0.25);
	background: rgba(255,255,255,0.06);
	box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
	color: var(--color-foreground);
	transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-input:focus, input[type=number]:focus, input[type=text]:focus, select:focus {
	outline: none;
	border-color: rgba(255,122,69,0.5);
	box-shadow: 0 0 0 3px rgba(255,122,69,0.2);
	background: rgba(255,255,255,0.1);
}

#searchSuggest button {
	width: 100%;
	text-align: left;
	padding: .75rem 1rem;
	border: none;
	background: 0 0;
}

#searchSuggest button.active, #searchSuggest button:hover {
	background: linear-gradient(90deg, var(--color-accent) 0, var(--color-accent-hover) 100%);
	color: #fff;
	transform: translateX(4px);
}

.nav-pills {
	display: flex;
	gap: .5rem;
	margin-bottom: 1.5rem;
	flex-direction: row;
	flex-wrap: nowrap;
}

.username-link {
	font-weight: 800;
	text-decoration: none;
}

.username-link+.tier-badge {
	margin-left: .4rem;
	vertical-align: middle;
	visibility: hidden;
}

.username-link:hover {
	text-shadow: 0 1px 2px rgba(200,16,46,.3);
}

.username-link::after {
	bottom: -2px;
	width: 0;
	height: 2px;
	background: var(--color-accent);
	transition: width .2s;
}

.ach-body, .left-stack>*, .username-link:hover::after {
	width: 100%;
}

.osrs-header {
	background: linear-gradient(140deg, rgba(20,12,7,0.92), rgba(39,21,12,0.9));
	border: 1px solid rgba(244,211,94,0.22);
	border-radius: 1.5rem;
	box-shadow: 0 28px 55px rgba(0,0,0,0.45);
	backdrop-filter: blur(14px) saturate(140%);
	margin: 1.5rem 0 2rem;
	position: relative;
	overflow: hidden;
}

.osrs-header .header-inner {
	position: relative;
	z-index: 1;
}

.header-ambient {
	position: absolute;
	inset: 0;
	overflow: hidden;
	opacity: .8;
	pointer-events: none;
}

.header-ambient__orb {
	position: absolute;
	width: clamp(220px,35vw,360px);
	height: clamp(220px,35vw,360px);
	background: radial-gradient(circle, rgba(244,211,94,0.32), rgba(244,211,94,0));
	filter: blur(0px);
	opacity: .65;
}

.header-ambient__orb--left {
	top: -40%;
	left: -15%;
}

.header-ambient__orb--right {
	bottom: -35%;
	right: -10%;
	background: radial-gradient(circle, rgba(255,122,69,0.32), rgba(255,122,69,0));
}

.osrs-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at top left, rgba(255,122,69,0.18), transparent 60%);
	pointer-events: none;
	opacity: .7;
}

.osrs-table {
	border: 1px solid rgba(244,211,94,0.22);
	overflow: hidden;
	width: 100%;
	min-width: fit-content;
	border-radius: 1.25rem;
	max-width: clamp(1100px,95vw,1550px);
	margin: 0 auto 2.5rem;
	background: linear-gradient(170deg, rgba(255,122,69,0.08), transparent 60%), var(--color-bg-elevated-1);
	box-shadow: var(--shadow-md);
}

.osrs-table.home-leaderboard {
	max-width: clamp(1500px,98vw,2100px);
}

.osrs-table.full-width {
	max-width: none;
	width: 100%;
}

.osrs-table table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	table-layout: auto;
	font-size: .95rem;
}

.table-scroll {
	overflow-x: auto;
	max-height: none;
}

.leaderboard-table thead th {
	position: static;
	box-shadow: none;
}

table td, table th {
	padding: .8rem 1rem;
	border-bottom: 1px solid rgba(244,211,94,0.18);
	white-space: nowrap;
	line-height: 1.5;
}

.leaderboard-table td:first-child, .leaderboard-table th:first-child {
	width: 60px;
	text-align: center;
}

.leaderboard-table td:nth-child(4), .leaderboard-table th:nth-child(4) {
	width: 170px;
	text-align: right;
}

.leaderboard-table td:nth-child(5), .leaderboard-table th:nth-child(5) {
	width: 140px;
	text-align: right;
}

.leaderboard-table td:nth-child(2), .leaderboard-table th:nth-child(2) {
	width: auto;
}

th.sortable {
	user-select: text;
	transition: none;
}

th.sortable::after {
	margin: 0;
}

table tbody tr:nth-child(2n) {
	background: rgba(255,255,255,0.04);
}

table tbody tr:hover {
	background: linear-gradient(90deg, rgba(255,122,69,0.14) 0%, rgba(244,211,94,0.12) 100%);
	border-color: rgba(255,122,69,0.35);
	transform: translateX(1px);
}

tbody tr.rank-1 {
	background: linear-gradient(90deg, rgba(255,215,0,.15), transparent 70%);
}

tbody tr.rank-2 {
	background: linear-gradient(90deg, rgba(192,192,192,.15), transparent 70%);
}

tbody tr.rank-3 {
	background: linear-gradient(90deg, rgba(205,127,50,.15), transparent 70%);
}

tbody tr.rank-1 td:first-child, tbody tr.rank-2 td:first-child, tbody tr.rank-3 td:first-child {
	font-weight: 800;
}

tbody tr.overall-row {
	background: linear-gradient(90deg, rgba(255,215,0,.08), transparent 70%);
	border-top: 2px solid var(--color-border-dark);
}

.progress-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
	gap: 1rem;
}

.progress-item {
	border: 1px solid var(--color-border);
	padding: .65rem .6rem .55rem;
	border-radius: .55rem;
	font-size: .65rem;
	background: linear-gradient(145deg, var(--color-bg-elevated-2) 0%, var(--color-bg-layer2) 140%);
	box-shadow: 0 0 0 1px rgba(0,0,0,.25), var(--shadow-sm);
}

.progress-item .pi-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 4px;
	margin-bottom: 4px;
	font-weight: 600;
}

.pi-bar-wrap {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.pi-bar {
	background: var(--color-bg-layer2);
	height: 6px;
	border-radius: 4px;
	overflow: hidden;
}

.pi-fill {
	background: linear-gradient(90deg, var(--color-accent) 0, var(--color-accent-hover) 100%);
	height: 100%;
	transition: width .4s;
}

.pi-avg-marker {
	position: absolute;
	top: -2px;
	width: 2px;
	height: 10px;
	background: var(--color-gold);
	box-shadow: 0 0 4px rgba(0,0,0,.4);
}

.pi-meta-row {
	margin-top: 4px;
	display: flex;
	justify-content: flex-end;
	font-size: .55rem;
	opacity: .75;
}

.pi-level {
	font-size: .6rem;
	color: var(--color-accent);
}

.achievement-badge {
	background: linear-gradient(135deg, var(--color-gold) 10%, var(--color-accent) 90%);
	color: #1a1208;
	padding: .25rem .5rem;
	border-radius: .4rem;
	font-size: .55rem;
	font-weight: 700;
	box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.3);
	letter-spacing: .5px;
}

.achievement-card.rarity-common, .achievement-category>div:first-child:hover {
	background: linear-gradient(135deg, var(--color-bg-layer) 0, var(--color-bg-layer2) 100%);
}

.achievement-category {
	border: none;
	background: 0 0;
	padding: 0;
	border-radius: 0;
	box-shadow: none;
	animation: .3s fadeIn;
	margin: 0;
}

.achievement-category+.achievement-category {
	border-top: 1px solid var(--color-border);
	margin-top: 0;
}

.achievement-category>div:first-child {
	padding: 1rem 1.25rem .75rem;
	background: linear-gradient(135deg, var(--color-bg-layer2) 0, var(--color-bg-layer) 100%);
	display: flex;
	align-items: center;
	gap: .75rem;
	cursor: pointer;
	transition: background .2s;
}

.achievement-category h5 {
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .05em;
	color: var(--color-foreground);
	opacity: .9;
	margin: 0;
	flex-grow: 1;
}

.achievement-grid {
	display: inline-flex;
	gap: 1rem;
	padding: 1.25rem;
	background: var(--color-bg-surface);
	transition: .3s cubic-bezier(.4,0,.2,1);
	opacity: 1;
	overflow: auto;
	justify-content: start;
	background: #080808b8;
	text-wrap-style: balance;
	margin: 0 auto;
	text-wrap: auto;
	flex-wrap: wrap;
}

.achievement-grid.collapsed {
	max-height: 0;
	opacity: 0;
	padding-top: 0;
	padding-bottom: 0;
}

.achievement-card {
	display: flex;
	flex-direction: row;
	align-items: center;
	text-align: left;
	padding: 1.2rem .95rem 1.15rem;
	background: linear-gradient(150deg, var(--color-bg-elevated-1) 0, var(--color-bg-layer2) 110%);
	border: 1px solid var(--color-border);
	border-radius: 14px;
	box-shadow: 0 0 0 1px rgba(0,0,0,.25), var(--shadow-sm);
	transition: all 0.35s cubic-bezier(.4,.2,.2,1);
	cursor: default;
	overflow: hidden;
	min-height: auto;
	font-size: .875rem;
	line-height: 1.4;
}

.achievement-card:hover {
	transform: translateY(-5px) scale(1.01);
	box-shadow: 0 10px 28px -4px rgba(0,0,0,.45), 0 0 0 1px rgba(0,0,0,.35);
}

.achievement-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--color-accent);
}

.achievement-card.rarity-mythic::before {
	background: linear-gradient(90deg,#ff6b6b,#ff4757);
}

.achievement-card.rarity-legendary::before {
	background: linear-gradient(90deg,#a855f7,#e84393);
}

.achievement-card.rarity-epic::before {
	background: linear-gradient(90deg,#3b82f6,#06b6d4);
}

.achievement-card.rarity-rare::before {
	background: linear-gradient(90deg,#10b981,#059669);
}

.achievement-card.rarity-common::before {
	background: linear-gradient(90deg,#6b7280,#4b5563);
}

.achievement-card.owned {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 1px rgba(200,16,46,.2), var(--shadow-sm);
}

.achievement-card.owned::before {
	background: linear-gradient(90deg, var(--color-gold) 0, var(--color-accent) 100%);
}

.ach-icon {
	font-size: 2rem;
	line-height: 1;
	margin-bottom: .75rem;
	text-shadow: 0 2px 4px rgba(0,0,0,.3);
	display: block;
}

.ach-title {
	font-weight: 700;
	font-size: .875rem;
	color: var(--color-foreground);
	margin-bottom: .5rem;
	line-height: 1.2;
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
}

.ach-desc {
	display: none;
	color: var(--color-muted);
	font-size: .75rem;
	line-height: 1.3;
	margin-bottom: .75rem;
	white-space: normal;
	font-size: 0.6rem;
	color: var(--color-muted);
	text-align: right;
	margin: 0 auto;
}

.achievement-card.achievement-skill::before {
	background: linear-gradient(90deg,#ffb347,gold);
}

.achievement-card.achievement-rank::before {
	background: linear-gradient(90deg,#52b69a,#b5e48c);
}

.achievement-card.achievement-account::before {
	background: linear-gradient(90deg,#8e72ff,#c9b6ff);
}

.achievement-card.achievement-playstyle::before {
	background: linear-gradient(90deg,#ff5d8f,#ffafcc);
}

.achievement-card.achievement-performance::before {
	background: linear-gradient(90deg,#4c8bf5,#a1c4fd);
}

.achievement-card.achievement-activity::before {
	background: linear-gradient(90deg,#a18cd1,#fbc2eb);
}

.achievement-card.rarity-mythic {
	background: linear-gradient(135deg, rgba(255,215,0,.1) 0, var(--color-bg-layer2) 100%);
	border-color: gold;
	box-shadow: 0 0 20px rgba(255,215,0,.3), var(--shadow-sm);
}

.achievement-card.rarity-legendary {
	background: linear-gradient(135deg, rgba(255,165,0,.08) 0, var(--color-bg-layer2) 100%);
	border-color: orange;
	box-shadow: 0 0 15px rgba(255,165,0,.2), var(--shadow-sm);
}

.achievement-card.rarity-epic {
	background: linear-gradient(135deg, rgba(128,0,128,.08) 0, var(--color-bg-layer2) 100%);
	border-color: #96c;
	box-shadow: 0 0 10px rgba(153,102,204,.2), var(--shadow-sm);
}

.achievement-card.rarity-rare {
	background: linear-gradient(135deg, rgba(0,100,200,.06) 0, var(--color-bg-layer2) 100%);
	border-color: #0064c8;
}

.achievement-card[data-prevalence]::after {
	content: attr(data-prevalence);
	position: absolute;
	bottom: .75rem;
	left: 50%;
	transform: translateX(-50%);
	font-size: .625rem;
	background: linear-gradient(135deg, rgba(0,0,0,.8), rgba(0,0,0,.6));
	color: #fff;
	padding: .25rem .5rem;
	border-radius: 12px;
	font-weight: 600;
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,.1);
	text-align: center;
	min-width: 3rem;
}

.achievement-skill {
	background: linear-gradient(135deg,gold 0,#ffb347 100%);
}

.achievement-rank {
	background: linear-gradient(135deg,#b5e48c 0,#52b69a 100%);
}

.achievement-account {
	background: linear-gradient(135deg,#c9b6ff 0,#8e72ff 100%);
}

.achievement-style {
	background: linear-gradient(135deg,#ffafcc 0,#ff5d8f 100%);
}

.achievement-performance {
	background: linear-gradient(135deg,#a1c4fd 0,#4c8bf5 100%);
}

.achievement-activity {
	background: linear-gradient(135deg,#fbc2eb 0,#a18cd1 100%);
}

.achievement-badge[data-tooltip]::after {
	font-size: .65rem;
	max-width: 220px;
	white-space: normal;
	line-height: 1.2;
}

.insights-grid {
	display: flex;
	gap: 1rem;
	justify-content: center;
	flex-direction: row;
	flex-wrap: nowrap;
}

.insight-card {
	background: linear-gradient(150deg, var(--color-bg-elevated-2) 0, var(--color-bg-layer2) 120%);
	border: 1px solid var(--color-border);
	border-radius: 14px;
	padding: 1.05rem 1.05rem .95rem;
	box-shadow: 0 0 0 1px rgba(0,0,0,.25), var(--shadow-sm);
	position: relative;
	padding-top: 1.15rem;
	height: -webkit-fill-available;
	margin: 0 auto;
	width: -webkit-fill-available;
}

.insight-title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 .75rem 0;
	color: var(--color-foreground);
}

.insight-title--section {
	font-size: 1.05rem;
	letter-spacing: .5px;
}

.insight-card--top-players .top-players-list {
	gap: .65rem;
	margin: 0 auto;
}

.top-player-row {
	grid-template-columns: 30px minmax(0,1fr) 135px;
	align-items: center;
	column-gap: .5rem;
	position: relative;
}

.top-player-row .insight-user {
	overflow: hidden;
	display: flex;
	align-items: center;
	min-width: 0;
}

.top-player-row .insight-user .username-link {
	white-space: nowrap;
	overflow: visible;
	text-overflow: unset;
	max-width: none;
}

.top-player-row .tier-badge.tier--icon-only {
	margin-left: .4rem;
}

.top-player-row .tier-badge {
	flex-shrink: 0;
	margin-left: .35rem;
	padding: .12rem .5rem;
	font-size: .58rem;
	letter-spacing: .5px;
}

.top-player-row .insight-bar-wrap {
	min-width: 120px;
}

.top-player-row .insight-rank {
	text-align: left;
	font-size: .55rem;
	font-weight: 700;
	opacity: .45;
	letter-spacing: .5px;
	padding-left: .15rem;
	display: flex;
	align-items: center;
	line-height: 1;
}

.top-player-row .insight-rank::after {
	content: '.';
	margin-left: 1px;
	opacity: .6;
}

.top-player-row:hover .insight-rank {
	opacity: .6;
}

.top-player-row .insight-user button.username-link {
	font-weight: 600;
	font-size: .8rem;
}

.insight-card--top-players .insight-bar-wrap {
	height: 12px;
	border-radius: 4px;
}

.insight-card--top-players .insight-bar-label {
	font-size: .55rem;
}

.insight-list .insight-row {
	margin-bottom: 2px;
	display: flex;
	justify-content: center;
	align-items: baseline;
	flex-direction: row;
	flex-wrap: wrap;
}

.insight-list .insight-row+.insight-row {
	margin-top: 2px;
}

.insight-card--top-players .top-player-row {
	padding: 2px 4px;
	border-radius: 6px;
	display: inline-grid;
	scale: 1.1;
	border-right: antiquewhite;
}

.insight-card--top-players .top-player-row:hover {
	background: var(--color-bg-layer2);
}

.most-common-list .most-common-row, .rarest-list .rarest-row {
	grid-template-columns: 42px 1fr 130px;
	align-items: start;
}

.most-common-row .insight-icon, .rarest-row .insight-icon {
	font-size: 1rem;
	width: 1.75rem;
	text-align: left;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,.25));
}

.most-common-row .ach-name, .rarest-row .ach-name {
	font-weight: 700;
	font-size: .75rem;
}

.most-common-row .ach-desc, .rarest-row .ach-desc {
	font-size: .62rem;
	line-height: 1.25;
}

.most-common-row .insight-bar-wrap, .rarest-row .insight-bar-wrap {
	height: 12px;
	border-radius: 5px;
	background: var(--color-bg-layer);
}

.most-common-row .insight-bar, .rarest-row .insight-bar {
	background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
}

.rarest-row .insight-bar {
	background: linear-gradient(90deg, var(--color-gold) 0%, var(--color-accent) 100%);
}

.most-common-row .insight-bar-label, .rarest-row .insight-bar-label {
	font-size: .55rem;
	font-weight: 600;
}

.rarest-list .rarest-row+.rarest-row {
	position: relative;
}

.rarest-list .rarest-row+.rarest-row::before {
	content: "";
	position: absolute;
	top: -4px;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--color-border) 40%, var(--color-border) 60%, transparent);
	opacity: .4;
}

.insight-bar-wrap.zero {
	background: repeating-linear-gradient(45deg, var(--color-bg-layer2) 0 6px, var(--color-bg-layer) 6px 12px);
}

.insight-bar-wrap.zero .insight-bar {
	background: linear-gradient(90deg, var(--color-accent) 0, var(--color-accent-hover) 100%);
	opacity: .35;
}

.insight-bar-wrap {
	border-radius: 6px;
	margin: 0 auto;
	width: 100%;
	background: color-mix(in srgb, var(--color-bg-layer2) 70%, #000 10%);
	position: relative;
	background: var(--color-bg-layer2);
	border: 1px solid var(--color-border);
	height: 16px;
	border-radius: 6px;
	overflow: hidden;
}

.insight-bar {
	border-radius: 6px;
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 0%;
	background: linear-gradient(90deg,#f3ec00 0,#433821 100%);
}

.rarest-row .insight-icon {
	color: var(--color-gold);
}

section#insightsContainer h3.insight-title {
	font-size: 1.05rem;
}

.insight-list {
	display: grid;
}

.insight-row {
	gap: .5rem;
}

.insight-rank {
	font-weight: 800;
	text-align: center;
}

.insight-user, .insight-ach {
	display: flex;
	align-items: center;
	gap: .4rem;
	min-width: 0;
}

.insight-icon {
	max-height: 1.1em;
}

.ach-name {
	font-weight: 600;
	font-size: .85rem;
	color: var(--color-foreground);
}

.insight-bar-label {
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	font-size: .7rem;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,.5);
}

.insight-chips {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.matrix {
	display: flex;
	gap: 0;
	border: 1px solid var(--color-border-dark);
	border-radius: 8px;
	overflow: hidden;
	flex-direction: column;
	flex-wrap: wrap;
	align-items: stretch;
}

.matrix-row {
	display: grid;
	grid-template-columns: 180px repeat(var(--matrix-cols,8), 1fr);
}

.matrix-header {
	background: linear-gradient(135deg, var(--color-bg-layer2), var(--color-bg-layer));
	position: sticky;
	top: 0;
	z-index: 1;
}

.matrix-cell {
	border-bottom: 1px solid var(--color-border);
	border-right: 1px solid var(--color-border);
	min-height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: .75rem;
}

.matrix-cell.fixed {
	justify-content: flex-start;
	padding: 0 .5rem;
	background: var(--color-bg-layer2);
	position: sticky;
	left: 0;
	z-index: 2;
}

.matrix-cell.cell--corner {
	background: var(--color-bg-layer2);
	font-weight: 700;
}

.matrix-ach {
	font-size: 1rem;
}

.matrix-prev {
	font-size: .65rem;
	color: var(--color-muted);
}

.matrix-cell.hit {
	background: rgba(16,185,129,.35);
	box-shadow: inset 0 0 0 1px rgba(16,185,129,.4);
}

.matrix-cell.miss {
	background: rgba(107,114,128,.15);
}

.matrix-cell.superseded {
	background: repeating-linear-gradient(45deg, rgba(234,179,8,.25) 0, rgba(234,179,8,.25) 6px, rgba(107,114,128,.15) 6px, rgba(107,114,128,.15) 12px);
	box-shadow: inset 0 0 0 1px rgba(234,179,8,.4);
	position: relative;
}

.matrix-cell.superseded::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(234,179,8,.18), rgba(0,0,0,0));
	pointer-events: none;
}

.matrix-legend {
	display: flex;
	align-items: center;
	gap: .5rem;
	color: var(--color-muted);
	font-size: .8rem;
	margin-top: .5rem;
}

.legend-swatch {
	width: 16px;
	height: 10px;
	display: inline-block;
	border-radius: 4px;
	border: 1px solid var(--color-border);
}

.legend-swatch.hit {
	background: rgba(16,185,129,.6);
	border-color: rgba(16,185,129,.7);
}

.legend-swatch.miss {
	background: rgba(107,114,128,.25);
}

.legend-swatch.superseded {
	background: linear-gradient(135deg, rgba(234,179,8,.5), rgba(107,114,128,.25));
	border-color: rgba(234,179,8,.6);
}

.ach-catalog {
	border: 1px solid var(--color-border);
	border-radius: 10px;
	overflow: hidden;
	background: var(--color-bg-layer);
}

.ach-catalog__summary {
	cursor: pointer;
	padding: .75rem 1rem;
	font-weight: 700;
	border-bottom: 1px solid var(--color-border);
	background: linear-gradient(135deg, var(--color-bg-header) 0, rgba(63,34,22,.9) 100%);
	color: var(--color-foreground);
}

.filter-bar label {
	font-size: .55rem;
	font-weight: 600;
	letter-spacing: .5px;
	color: var(--color-muted);
}

.progress-legend .pl-swatch {
	display: inline-block;
	width: 14px;
	height: 6px;
	border-radius: 4px;
}

.pl-swatch--you {
	background: linear-gradient(90deg, var(--color-accent) 0, var(--color-accent-hover) 100%);
}

.pl-swatch--avg {
	background: var(--color-gold);
	opacity: .8;
}

.progress-toggle {
	display: inline-flex;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	overflow: hidden;
}

.progress-toggle button {
	background: var(--color-bg-layer);
	border: 0;
	padding: 4px 10px;
	font-size: .6rem;
	font-weight: 600;
	cursor: pointer;
	color: var(--color-muted);
	transition: .2s;
}

.progress-toggle button.active {
	background: var(--color-accent);
	color: #fff;
}

.skill-row {
	padding: 1rem;
	background: linear-gradient(140deg, var(--color-bg-elevated-1) 0, var(--color-bg-layer2) 130%);
	box-shadow: 0 0 0 1px rgba(0,0,0,.3), var(--shadow-sm);
	border-radius: .65rem;
	position: relative;
	display: flex;
	align-items: center;
	padding: .5rem 1rem;
	border: 1px solid var(--color-border-dark);
	border-radius: .75rem;
	background: linear-gradient(135deg, var(--color-bg-elevated-1), var(--color-bg-layer2));
	box-shadow: 0 0 0 1px rgba(0,0,0,.35), var(--shadow-sm);
	color: var(--color-foreground);
	transition: color .2s, border-color .2s, transform .2s;
}

.skill-row, .skill-row.clickable, th.sortable {
	cursor: default;
}

.skill-row:hover {
	border-color: var(--color-border-dark);
	transform: translateY(-2px);
}

.skill-row.clickable:hover {
	color: #fff;
	transform: translateY(-3px);
	border-color: var(--color-accent);
}

.skill-row::before {
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent 0, rgba(200,16,46,.1) 50%, transparent 100%);
	transition: left .3s;
}

.skill-row:hover::before {
	left: 100%;
}

.skill-row.clickable:hover .skill-level, .skill-row.clickable:hover .skill-rank, .skill-row.clickable:hover .skill-xp {
	color: rgba(255,255,255,.95);
}

.skill-row.clickable:hover .skill-icon {
	transform: scale(1.1);
	filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)) brightness(1.1);
}

.skill-info {
	flex: 1;
	justify-content: space-between;
	min-width: 0;
	z-index: 1;
}

.skill-icon {
	width: 20px;
	height: 20px;
	margin-right: .75rem;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
	display: inline-block;
	filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}

.skill-icon--sm {
	width: 18px;
	height: 18px;
	margin-right: 6px;
}

section.flex.flex-col.gap-6 {
	display: grid;
	align-content: space-around;
	justify-items: stretch;
}

.skill-icon--xs {
	width: 16px;
	height: 16px;
	margin-right: 4px;
}

.skill-name, .skill-rank {
	font-family: 'Courier New', Courier, monospace;
	font-weight: 600;
	font-size: 0.9rem;
}

.skill-stats {
	gap: 1rem;
	font-size: .85em;
	flex-wrap: wrap;
}

.skill-level {
	font-weight: 700;
	color: #fafafa;
	font-size: .9em;
	text-shadow: 0 1px 2px rgba(200,16,46,.3);
}

.skill-rank {
	font-weight: 400;
	white-space: nowrap;
	padding: 0;
}

.skill-xp {
	font-weight: 800;
	font-family: 'Courier New', Courier, monospace;
	font-size: .85em;
}

.badge {
	padding: 0;
	font-weight: 500;
	box-shadow: none;
	text-shadow: none;
}

.toast {
	background: linear-gradient(140deg, var(--color-bg-elevated-2) 0, var(--color-bg-layer2) 120%);
	padding: .85rem 1.05rem;
	font-size: .85em;
	animation: .3s ease-out slideInRight;
	box-shadow: 0 0 0 1px rgba(0,0,0,.35), var(--shadow-md);
	border-radius: .75rem;
}

.surface-contrast {
	background: var(--color-bg-layer2);
}

.surface-elevated {
	background: var(--color-bg-elevated-1);
}

.surface-elevated-2 {
	background: var(--color-bg-elevated-2);
}

.surface-elevated-3 {
	background: var(--color-bg-elevated-3);
}

.elevation-0 {
	box-shadow: none !important;
}

.elevation-1 {
	box-shadow: var(--shadow-sm), 0 0 0 1px rgba(0,0,0,.25) !important;
}

.elevation-2 {
	box-shadow: var(--shadow-md), 0 0 0 1px rgba(0,0,0,.3) !important;
}

.elevation-3 {
	box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,.35) !important;
}

.card-section-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--color-border-dark) 40%, var(--color-border-dark) 60%, transparent);
	margin: .85rem 0;
	opacity: .6;
}

.stack-group {
	position: relative;
}

.stack-group::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid var(--color-border-dark);
	border-radius: .9rem;
	pointer-events: none;
	opacity: .55;
}

aside.sidebar.card {
	padding-top: 1.25rem;
	padding-bottom: 1.25rem;
}

aside.sidebar.card nav>a, aside.sidebar.card summary {
	font-weight: 600;
}

nav.breadcrumb {
	padding: .6rem .85rem;
	background: linear-gradient(120deg, var(--color-bg-elevated-2) 0, var(--color-bg-layer) 130%);
	border: 1px solid var(--color-border-dark);
	border-radius: .65rem;
	box-shadow: 0 0 0 1px rgba(0,0,0,.35), var(--shadow-sm);
}

nav.breadcrumb+.main-grid, nav.breadcrumb+.space-y-8 {
	margin-top: 1.25rem;
}

.ring-accent {
	box-shadow: 0 0 0 3px rgba(200,16,46,.25) !important;
}

.toast--error {
	border-color: var(--color-danger);
}

.min-w-32 {
	min-width: 8rem;
	min-width: 8rem;
}

.toast::before {
	top: 0;
	height: 3px;
	background: var(--color-accent);
}

.bg-surface {
	background: var(--color-bg-surface);
	background: var(--color-bg-surface);
}

.bg-layer2, .icon-button:hover {
	background: var(--color-bg-layer2);
}

.text-danger {
	color: var(--color-danger);
}

.text-gold {
	color: var(--color-gold);
}

.border-border {
	border-color: var(--color-border);
	border-color: var(--color-border);
}

.bg-input {
	background: var(--color-input);
	background: var(--color-input);
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: 0 0;
}

::-webkit-scrollbar-thumb {
	background: var(--color-bg-layer2);
	border-radius: 8px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--color-bg-layer);
}

.btn-sm:focus, .btn:focus, .icon-button:focus, .nav-pill:focus, input:focus, select:focus {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(200,16,46,.25);
}

input[type=number]:focus, input[type=text]:focus, select:focus {
	border-color: var(--color-accent);
	box-shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 0 3px rgba(200,16,46,0.1);
	background: var(--color-input);
}

footer.site-footer {
	font-size: .65em;
	line-height: 1.25;
	padding: .5rem;
}

footer.site-footer .mt-2 {
	margin-top: .25rem;
}

.left-stack {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
}

.left-stack-extras {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.achievements-left-card, .primary-header-card {
	max-width: 100%;
}

.achievements-expand-toggle {
	padding: 6px 12px;
	border-radius: 4px;
	transition: .2s;
	user-select: none;
}

.achievements-expand-toggle:hover {
	background-color: var(--color-bg-layer);
	color: var(--color-accent);
	cursor: pointer;
}

.select-none {
	user-select: none;
}

.hidden {
	display: none;
}

.transition-colors {
	transition-property: color;
}

.duration-200 {
	transition-duration: .2s;
}

.hover\:text-accent:hover {
	color: var(--color-accent);
	color: var(--color-accent);
}

.featured-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 1rem;
	justify-content: center;
	align-items: stretch;
}

.flex-center {
	display: flex;
	align-items: center;
	justify-content: center;
}

.flex-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.flex-col {
	display: flex;
	flex-direction: column;
}

.flex-wrap {
	display: flex;
	flex-wrap: wrap;
}

.gap-1 {
	gap: 0.25rem;
}

.gap-2 {
	gap: 0.5rem;
}

.gap-3 {
	gap: 0.75rem;
}

.gap-4 {
	gap: 1rem;
}

.gap-6 {
	gap: 1.5rem;
}

.gap-8 {
	gap: 2rem;
}

.flex-items-center {
	display: flex;
	align-items: center;
}

.flex-items-center.gap-1 {
	gap: 0.25rem;
}

.flex-items-center.gap-2 {
	gap: 0.5rem;
}

.flex-items-center.gap-3 {
	gap: 0.75rem;
}

.flex-items-center.gap-4 {
	gap: 1rem;
}

.text-xs {
	font-size: 0.75rem;
	line-height: 1.1rem;
}

.text-sm {
	font-size: 0.875rem;
	line-height: 1.25rem;
}

.text-base {
	font-size: 1rem;
	line-height: 1.5rem;
}

.text-lg {
	font-size: 1.125rem;
	line-height: 1.75rem;
}

.text-xl {
	font-size: 1.25rem;
	line-height: 1.75rem;
}

.text-2xl {
	font-size: 1.5rem;
	line-height: 2rem;
}

.font-semibold {
	font-weight: 600;
}

.font-bold {
	font-weight: 700;
}

.font-extrabold {
	font-weight: 800;
}

.text-left {
	text-align: left;
}

.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.p-4 {
	padding: 1rem;
}

.p-6 {
	padding: 1.5rem;
}

.px-4 {
	padding-left: 1rem;
	padding-right: 1rem;
}

.px-5 {
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.px-6 {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.py-2 {
	padding-top: 0.5rem;
	padding-bottom: 0.5rem;
}

.py-4 {
	padding-top: 1rem;
	padding-bottom: 1rem;
}

.mb-4 {
	margin-bottom: 1rem;
}

.w-4 {
	width: 1rem;
}

.w-5 {
	width: 1.25rem;
}

.w-full {
	width: 100%;
}

.h-4 {
	height: 1rem;
}

.h-5 {
	height: 1.25rem;
}

.h-6 {
	height: 1.5rem;
}

.h-10 {
	height: 2.5rem;
}

.relative {
	position: relative;
}

.absolute {
	position: absolute;
}

.rounded {
	border-radius: 0.25rem;
}

.rounded-md {
	border-radius: 0.375rem;
}

.rounded-lg {
	border-radius: 0.5rem;
}

.bg-layer {
	background: var(--color-bg-layer);
}

.bg-layer2 {
	background: var(--color-bg-layer2);
}

.border {
	border: 1px solid var(--color-border);
}

.border-gold {
	border-color: var(--color-gold);
}

.shadow {
	box-shadow: var(--shadow-sm);
}

.shadow-md {
	box-shadow: var(--shadow-md);
}

.shadow-lg {
	box-shadow: var(--shadow-lg);
}

.hover\:text-gold:hover {
	color: var(--color-gold);
}

.w-4.h-4 {
	width: 1rem;
	height: 1rem;
}

.w-5.h-5 {
	width: 1.25rem;
	height: 1.25rem;
}

.btn-input {
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: 0.375rem;
	border: 2px solid var(--color-border);
	background: var(--color-input);
	color: var(--color-foreground);
	transition: 0.2s;
	border: 1px solid var(--color-border);
	background: var(--color-bg-layer);
	transition: border-color .2s, box-shadow .2s, background-color .2s;
}

.btn-input:focus {
	outline: 0;
	border-color: var(--color-accent);
	box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 0 3px rgba(200,16,46,0.1);
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(0,112,243,0.3);
}

.search-suggestions {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background: var(--color-bg-layer);
	border: 1px solid var(--color-border);
	border-radius: 0.375rem;
	box-shadow: var(--shadow-lg);
	max-height: 16rem;
	overflow-y: auto;
	z-index: 20;
}

.tracking-wide {
	letter-spacing: 0.025em;
}

.leading-none {
	line-height: 1;
}

.flex-1 {
	flex: 1;
}

.flex-col.gap-3 {
	gap: 0.75rem;
}

.flex-col.gap-1 {
	gap: 0.25rem;
}

.space-y-4>*+* {
	margin-top: 1rem;
}

.space-y-6>*+* {
	margin-top: 1.5rem;
}

.space-y-1>*+* {
	margin-top: 0.25rem;
}

.mt-2 {
	margin-top: 0.5rem;
}

.mt-4 {
	margin-top: 1rem;
}

.pl-6 {
	padding-left: 1.5rem;
}

.cursor-pointer {
	cursor: pointer;
}

.opacity-50 {
	opacity: 0.5;
}

.opacity-70 {
	opacity: 0.7;
}

.min-h-full {
	min-height: 100%;
}

.bg-dark\/90 {
	background: rgba(0,0,0,0.9);
}

.bg-gold\/50 {
	background: rgba(255,215,0,0.5);
}

.text-white\/90 {
	color: rgba(255,255,255,0.9);
}

.backdrop-blur-sm {
	backdrop-filter: blur(4px);
}

.mini-achievement-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.4rem;
	height: 1.4rem;
	border-radius: 50%;
	font-size: 0.75rem;
	background: var(--color-bg-layer2);
	border: 1.5px solid var(--color-border);
	margin-left: 0.25rem;
	cursor: help;
	transition: all 0.2s ease;
	position: relative;
	z-index: 10;
}

.mini-achievement-badge:hover {
	transform: scale(1.2);
	background: var(--color-accent);
	border-color: var(--color-accent);
	color: white;
	box-shadow: 0 2px 8px rgba(200,16,46,0.3);
}

.mini-achievement-badge[data-tooltip*="Triple Crown"], .mini-achievement-badge[data-tooltip*="Grandmaster"], .mini-achievement-badge[data-tooltip*="Maxed"] {
	box-shadow: 0 0 10px rgba(255,215,0,0.5);
	border-color: var(--color-gold);
	background: linear-gradient(135deg, rgba(255,215,0,0.2), rgba(255,165,0,0.2));
}

.mini-achievement-badge[data-tooltip*="Triple Crown"] {
	background: linear-gradient(135deg, rgba(255,215,0,0.3), rgba(255,165,0,0.3));
}

.mini-achievement-badge[data-tooltip*="Grandmaster"] {
	background: linear-gradient(135deg, rgba(255,215,0,0.4), rgba(255,165,0,0.4));
}

.achievement-progress {
	position: relative;
	display: inline-block;
	margin-left: 0.5rem;
}

.achievement-progress::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--color-accent), var(--color-gold));
	border-radius: 1px;
}

.mini-achievement-badge[data-tooltip] {
	position: relative;
}

.mini-achievement-badge[data-tooltip]:hover::after {
	content: attr(data-tooltip);
	position: absolute;
	bottom: 100%;
	left: 50%;
	transform: translateX(-50%);
	background: var(--color-bg-layer2);
	color: var(--color-foreground);
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
	font-size: 0.7rem;
	white-space: pre-line;
	text-align: center;
	box-shadow: 0 4px 12px rgba(0,0,0,0.3);
	border: 1px solid var(--color-border);
	z-index: 900;
	min-width: 120px;
	max-width: 200px;
	line-height: 1.3;
	margin-bottom: 0.5rem;
}

.leaderboard-table [data-tooltip]::after {
	top: auto;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0,0,0,0.9);
	color: #fff;
	border: 1px solid rgba(255,255,255,0.15);
	box-shadow: 0 8px 20px rgba(0,0,0,0.5);
	z-index: 0;
	white-space: normal;
}

.leaderboard-table .tier-badge[data-tooltip]:hover::after, .leaderboard-table .mini-badge[data-tooltip]:hover::after, .leaderboard-table .mini-achievement-badge[data-tooltip]:hover::after {
	opacity: 0 !important;
}

.leaderboard-table .mini-achievement-badge[data-tooltip]:hover::after, .leaderboard-table .mini-badge[data-tooltip]:hover::after, .leaderboard-table .tier-badge[data-tooltip]:hover::after {
	background: rgba(0,0,0,0.9);
	color: #fff;
	border-color: rgba(255,255,255,0.15);
	box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

:root[data-theme='light'] {
	--color-bg-surface: #ffffff;
	--color-bg-layer: #f5f5f5;
	--color-bg-layer2: #eaeaea;
	--color-bg-header: rgba(255,255,255,0.8);
	--color-border: #eaeaea;
	--color-border-dark: #d4d4d4;
	--color-border-light: #f5f5f5;
	--color-foreground: #111111;
	--color-muted: #666666;
	--color-accent: #0070f3;
	--color-accent-hover: #0059c1;
	--color-gold: #ffd700;
	--color-input: #ffffff;
	--color-danger: #e5484d;
	--color-success: #2ecc71;
}

:root[data-theme='dark'] {
	--color-bg-surface: #0a0a0a;
	--color-bg-layer: #111111;
	--color-bg-layer2: #1a1a1a;
	--color-bg-header: rgba(0,0,0,0.8);
	--color-border: #333333;
	--color-border-dark: #222222;
	--color-border-light: #444444;
	--color-foreground: #ededed;
	--color-muted: #888888;
	--color-accent: #0070f3;
	--color-accent-hover: #3694ff;
	--color-gold: #eab308;
	--color-input: #1a1a1a;
	--color-danger: #ff6b6b;
	--color-success: #51cf66;
}

.icon-button:focus {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.5);
	backdrop-filter: blur(2px);
}

.modal {
	background: var(--color-bg-layer);
	border: 1px solid var(--color-border);
	border-radius: .5rem;
	padding: 1.5rem;
	max-width: 32rem;
	margin: 10vh auto;
	box-shadow: var(--shadow-lg);
}

.ach-controls {
	background: linear-gradient(135deg, var(--color-bg-layer2), var(--color-bg-layer));
	border: 1px solid var(--color-border);
	padding: .75rem 1rem;
	border-radius: 10px;
	box-shadow: var(--shadow-sm);
}

.ach-controls .view-toggle {
	background: transparent;
	border: 0;
	font-weight: 600;
	cursor: pointer;
	color: var(--color-muted);
	transition: .2s;
}

.ach-controls .view-toggle.active {
	background: var(--color-accent);
	color: #fff;
}

.ach-controls .view-toggle:not(.active):hover {
	background: var(--color-bg-layer2);
	color: var(--color-foreground);
}

.ach-input {
	background: var(--color-bg-layer);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	padding: .45rem .65rem;
	font-size: .75rem;
}

.ach-select {
	background: var(--color-bg-layer);
	border: 1px solid var(--color-border);
	border-radius: 6px;
	padding: .4rem .5rem;
	font-size: .7rem;
}

.ach-checkbox {
	width: 1rem;
	height: 1rem;
	accent-color: var(--color-accent);
}

.ach-table-wrapper {
	overflow-x: auto;
	margin-bottom: 1.5rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	background: linear-gradient(135deg, var(--color-bg-elevated-1), var(--color-bg-layer2));
}

.ach-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .7rem;
}

.ach-table th, .ach-table td {
	padding: .55rem .65rem;
	border-bottom: 1px solid var(--color-border);
	text-align: left;
	line-height: 1.3;
}

.ach-table tbody tr:nth-child(2n) {
	background: rgba(0,0,0,.04);
}

.ach-table tbody tr:hover {
	background: linear-gradient(90deg, rgba(200,16,46,.08), rgba(200,16,46,.03));
}

.ach-icon-inline {
	font-size: 1rem;
	margin-right: .4rem;
}

.rarity-badge {
	display: inline-flex;
	align-items: center;
	font-size: .55rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: .25rem .45rem;
	border-radius: 6px;
	border: 1px solid var(--color-border);
	background: var(--color-bg-layer2);
}

.rarity-badge.rarity-mythic {
	background: linear-gradient(135deg,#ff6b6b,#ff9248);
	color: #fff;
	border-color: #ff6b6b;
}

.rarity-badge.rarity-legendary {
	background: linear-gradient(135deg,#a855f7,#ec4899);
	color: #fff;
	border-color: #a855f7;
}

.rarity-badge.rarity-epic {
	background: linear-gradient(135deg,#3b82f6,#06b6d4);
	color: #fff;
	border-color: #3b82f6;
}

.rarity-badge.rarity-rare {
	background: linear-gradient(135deg,#10b981,#059669);
	color: #fff;
	border-color: #059669;
}

.rarity-badge.rarity-uncommon {
	background: linear-gradient(135deg,#4ade80,#22c55e);
	color: #083619;
	border-color: #16a34a;
}

.rarity-badge.rarity-common {
	background: linear-gradient(135deg,#6b7280,#4b5563);
	color: #fff;
	border-color: #4b5563;
}

.skeleton {
	position: relative;
	overflow: hidden;
	background: var(--color-bg-layer2);
	border-radius: 4px;
}

.skeleton::after {
	content: "";
	position: absolute;
	inset: 0;
	transform: translateX(-100%);
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
	animation: skeleton-shimmer 1.2s infinite;
}

.skeleton-line {
	height: 0.9rem;
	width: 100%;
	margin: 0.2rem 0;
}

.skeleton-line.sm {
	height: 0.7rem;
	width: 60%;
}

.skeleton-avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
}

.banner-container {
	position: relative;
	margin-bottom: 12px;
}

.rare-banner {
	display: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	border: 2px solid rgba(255,215,0,0.35);
	background: linear-gradient(135deg, rgba(255,215,0,0.18), rgba(255,140,0,0.12));
	color: #fffaf0;
	box-shadow: 0 6px 16px rgba(0,0,0,0.25), inset 0 0 24px rgba(255,215,0,0.12);
	animation: bannerPop 320ms ease-out;
}

.rare-banner.active {
	display: flex;
}

.rare-banner .banner-left {
	display: flex;
	align-items: center;
	gap: 12px;
}

.rare-banner .banner-icon {
	font-size: 22px;
	filter: drop-shadow(0 2px 2px rgba(0,0,0,0.4));
}

.rare-banner .banner-text {
	line-height: 1.25;
}

.rare-banner .banner-title {
	font-weight: 800;
	letter-spacing: 0.2px;
}

.rare-banner .banner-meta {
	font-size: 12px;
	opacity: 0.9;
}

.rare-banner .banner-meta .pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(0,0,0,0.25);
	margin-left: 6px;
}

@media (max-width:620px) {
	.top-player-row {
		grid-template-columns: 26px minmax(0,1fr) 110px;
	}

	.top-player-row .insight-bar-wrap {
		min-width: 100px;
	}

	table td, table th {
		white-space: normal;
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(100px);
	}

	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@media (max-width: 1024px) {
	.featured-grid {
		grid-template-columns: repeat(2, minmax(0,1fr));
	}

	.header-inner {
		gap: 1.25rem;
	}

	.header-nav {
		justify-content: flex-start;
	}
}

@media (max-width: 640px) {
	.featured-grid {
		grid-template-columns: 1fr;
	}

	.ach-controls {
		flex-direction: column;
		align-items: stretch;
	}

	.ach-controls>div, .ach-controls label {
		width: 100%;
	}

	.ach-controls .view-toggle {
		flex: 1;
	}
}

@media (max-width: 768px) {
	[data-tooltip]::after {
		max-width: 200px;
		font-size: .7rem;
		left: 0;
		transform: translate(0,.5rem);
	}

	.leaderboard-table [data-tooltip]::after {
		left: 50%;
		transform: translateX(-50%);
		bottom: calc(100% + 6px);
		max-width: 240px;
	}

	.header-inner {
		flex-direction: column;
		align-items: stretch;
	}

	.header-nav {
		justify-content: flex-start;
	}

	.header-tools {
		width: 100%;
		justify-content: space-between;
	}

	.header-search {
		flex: 1;
	}

	.header-search input {
		width: 100%;
		min-width: 0;
	}

	.hero-grid {
		flex-direction: column;
	}

	.hero-actions {
		width: 100%;
	}

	.hero-controls {
		width: 100%;
	}

	.hero-metrics {
		grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
	}

	.hero-spotlight--inline {
		flex-direction: column;
		align-items: flex-start;
		gap: 1rem;
	}

	.osrs-header {
		margin: 1rem 0 1.5rem;
	}
}

@media (max-width:1024px) {
	.achievement-grid {
		grid-template-columns: repeat(auto-fill, minmax(180px,1fr));
		gap: .875rem;
	}

	.osrs-table {
		width: 100%;
	}

	table td, table th {
		padding: .65rem .75rem;
		font-size: .9rem;
	}

	.leaderboard-table td:first-child, .leaderboard-table th:first-child {
		width: 50px;
	}
}

@media (max-width:480px) {
	.achievements-inline-grid {
		grid-template-columns: 1fr;
	}

	.achievement-card {
		padding: .75rem .5rem;
	}
}

@media (max-width:520px) {
	.main-grid {
		gap: 1.25rem;
	}

	.sidebar {
		padding: .75rem !important;
	}

	table td, table th {
		padding: .55rem;
		font-size: .82rem;
	}

	.username-link {
		font-size: .85rem;
	}

	h2 {
		font-size: 1.3rem;
	}

	h3 {
		font-size: 1.15rem;
	}
}

@media (max-width:640px) {
	.achievements-inline-grid {
		grid-template-columns: 1fr 1fr;
	}

	.achievement-grid {
		grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
		gap: .625rem;
	}

	.achievement-card {
		padding: .875rem .625rem;
		font-size: .8125rem;
	}

	.ach-title {
		font-size: .75rem;
	}

	.ach-desc {
		font-size: .6875rem;
	}
}

@media (max-width:768px) {
	.achievements-inline-grid {
		grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
		gap: .5rem;
	}

	.achievement-inline-card {
		padding: .4rem .6rem;
	}

	.ach-inline-name {
		font-size: .75rem;
	}

	.ach-inline-rarity {
		font-size: .65rem;
	}

	.achievement-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
		gap: .75rem;
		padding: 1rem;
	}

	.achievement-card {
		padding: 1rem .75rem;
	}

	.ach-icon {
		font-size: 1.75rem;
		margin-bottom: .625rem;
	}
}

@media (min-width: 768px) {
	.md\:flex-row {
		flex-direction: row;
	}

	.md\:gap-4 {
		gap: 1rem;
	}
}

@media (min-width:1600px) {
	.home-leaderboard table td:nth-child(2), .home-leaderboard table th:nth-child(2) {
		width: 45%;
	}
}

@media (min-width:2000px) {
	.osrs-table.home-leaderboard {
		max-width: 92vw;
	}
}

@media (min-width:640px) {
	.skill-stats {
		gap: 1.25rem;
		flex-wrap: nowrap;
	}
}

@media (min-width:768px) {
	.main-grid {
		grid-template-columns: 220px 1fr;
	}

	table td, table th {
		padding: .85rem 1.05rem;
	}

	.sidebar {
		width: 100%;
	}
}

@media (prefers-reduced-motion:reduce) {
	*, ::after, ::before {
		animation: none !important;
		transition: none !important;
	}
}

@media (max-width: 900px) {
	.ach-table th:nth-child(2), .ach-table td:nth-child(2) {
		display: none;
	}
}

@keyframes skeleton-shimmer {
	100% {
		transform: translateX(100%);
	}
}

@keyframes bannerPop {
	from {
		transform: translateY(-6px) scale(0.99);
		opacity: 0;
	}

	to {
		transform: translateY(0) scale(1);
		opacity: 1;
	}
}

@keyframes livePulse {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}

	50% {
		transform: scale(1.3);
		opacity: .6;
	}
}

@keyframes tickerScroll {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}
