/*
 * Avalon MU "dark fantasy" layout (2026-11-17). Loaded after avalon.css, which keeps styling WebEngine's pages.
 * Obsidian background, gold + ember accents, Cinzel display type, Manrope text.
 */
:root {
	--av-bg: #07090e;
	--av-bg-2: #0b0e15;
	--av-surface: #10141d;
	--av-surface-2: #161b26;
	--av-line: rgba(232, 214, 170, .08);
	--av-line-2: rgba(232, 214, 170, .16);
	--av-text: #ece6d8;
	--av-muted: #9a978f;
	--av-brass: #d9b166;
	--av-brass-2: #a97b34;
	--av-ember: #d2553a;
	--av-ember-2: #7a1f14;
	--av-good: #6fdc9a;
	--av-f-display: "Cinzel", "Cormorant Garamond", Georgia, serif;
	--av-header-h: 68px;
	--av-max: 1200px;
}

html { scroll-padding-top: calc(var(--av-header-h) + 12px); }
body {
	background:
		radial-gradient(1200px 600px at 80% -10%, rgba(210, 85, 58, .10), transparent 60%),
		radial-gradient(1000px 700px at 10% -20%, rgba(217, 177, 102, .08), transparent 60%),
		var(--av-bg) !important;
}
.av-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--av-brass); color: #1b1407 !important; }
.av-skip:focus { left: 12px; }

/* ---------- header ---------- */
.av-header {
	position: sticky; top: 0; z-index: 60; height: var(--av-header-h);
	background: rgba(7, 9, 14, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
	border-bottom: 1px solid var(--av-line);
}
.av-header-inner { max-width: var(--av-max); height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 22px; }
.av-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--av-text) !important; text-decoration: none !important; flex: none; }
.av-brand-mark { color: var(--av-brass); display: inline-flex; filter: drop-shadow(0 0 10px rgba(217, 177, 102, .35)); }
.av-brand-name { font-family: var(--av-f-display); font-weight: 800; font-size: 20px; letter-spacing: .06em; }
.av-brand-name b { color: var(--av-brass); font-weight: 800; }
.av-nav { flex: 1; min-width: 0; }
.av-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; justify-content: center; }
.av-nav a {
	display: block; padding: 10px 14px; border-radius: 8px; color: var(--av-muted) !important; text-decoration: none !important;
	font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; position: relative;
}
.av-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--av-brass), var(--av-ember)); transform: scaleX(0); transition: transform .2s ease; }
.av-nav a:hover, .av-nav a[aria-current="page"] { color: var(--av-text) !important; }
.av-nav a:hover::after, .av-nav a[aria-current="page"]::after { transform: scaleX(1); }
.av-account { display: flex; align-items: center; gap: 12px; flex: none; }
.av-account-link { color: var(--av-muted) !important; font-weight: 700; font-size: 13px; text-decoration: none !important; }
.av-account-link:hover { color: var(--av-text) !important; }
.av-lang .webengine-language-switcher { margin: 0; position: static; }
.av-nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--av-line-2); background: transparent; padding: 10px; flex-direction: column; justify-content: space-between; }
.av-nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--av-text); transition: transform .2s, opacity .2s; }
.av-nav-open .av-nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.av-nav-open .av-nav-toggle span:nth-child(2) { opacity: 0; }
.av-nav-open .av-nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- buttons ---------- */
.av-btn-sm { min-height: 36px !important; padding: 0 14px !important; font-size: 12px !important; }
.av-btn-lg { min-height: 50px !important; padding: 0 26px !important; font-size: 13.5px !important; }
.av-btn-ghost { background: transparent !important; border-color: transparent !important; color: var(--av-muted) !important; }
.av-btn-ghost:hover { color: var(--av-text) !important; border-color: var(--av-line-2) !important; }
.av-btn-primary, .btn-primary {
	background: linear-gradient(180deg, #f0d495 0%, var(--av-brass) 48%, var(--av-brass-2) 100%) !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 10px 28px rgba(217, 177, 102, .22), 0 0 0 1px rgba(0, 0, 0, .4) !important;
}

/* ---------- hero ---------- */
.av-hero-wrap { position: relative; overflow: hidden; border-bottom: 1px solid var(--av-line); }
.av-hero-wrap.is-home { padding: clamp(56px, 9vw, 110px) 16px 36px; }
.av-hero-wrap.is-compact { padding: 22px 16px; }
.av-hero-bg {
	position: absolute; inset: 0; pointer-events: none;
	background:
		radial-gradient(60% 80% at 50% 0%, rgba(217, 177, 102, .16), transparent 70%),
		radial-gradient(40% 60% at 85% 30%, rgba(210, 85, 58, .16), transparent 70%),
		radial-gradient(40% 60% at 15% 40%, rgba(70, 110, 160, .12), transparent 70%),
		linear-gradient(180deg, #0d1018 0%, var(--av-bg) 100%);
}
.av-hero-bg::before {
	/* rune circle */
	content: ""; position: absolute; left: 50%; top: 50%; width: min(900px, 120vw); aspect-ratio: 1; transform: translate(-50%, -54%);
	border-radius: 50%; opacity: .22;
	background:
		repeating-conic-gradient(from 0deg, rgba(217, 177, 102, .5) 0 1deg, transparent 1deg 15deg),
		radial-gradient(circle, transparent 54%, rgba(217, 177, 102, .55) 54.3%, transparent 54.8%, transparent 62%, rgba(217, 177, 102, .35) 62.2%, transparent 62.6%);
	-webkit-mask: radial-gradient(circle, transparent 50%, #000 52%, #000 64%, transparent 66%);
	mask: radial-gradient(circle, transparent 50%, #000 52%, #000 64%, transparent 66%);
	animation: av-spin 240s linear infinite;
}
.av-hero-bg::after {
	/* embers */
	content: ""; position: absolute; inset: 0; opacity: .5;
	background-image:
		radial-gradient(2px 2px at 12% 70%, rgba(255, 170, 90, .9), transparent),
		radial-gradient(1.5px 1.5px at 28% 40%, rgba(255, 200, 120, .8), transparent),
		radial-gradient(2px 2px at 64% 76%, rgba(255, 150, 80, .8), transparent),
		radial-gradient(1.5px 1.5px at 78% 30%, rgba(255, 210, 140, .7), transparent),
		radial-gradient(2px 2px at 90% 62%, rgba(255, 160, 90, .8), transparent);
	animation: av-rise 14s linear infinite;
}
@keyframes av-spin { to { transform: translate(-50%, -54%) rotate(360deg); } }
@keyframes av-rise { from { transform: translateY(20px); opacity: .1; } 30% { opacity: .55; } to { transform: translateY(-60px); opacity: 0; } }

.av-hero-inner { position: relative; max-width: var(--av-max); margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.av-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--av-brass); }
.av-hero-title {
	margin: 0; font-family: var(--av-f-display); font-weight: 800; line-height: .95; letter-spacing: .04em;
	font-size: clamp(52px, 10vw, 112px); color: var(--av-text);
	text-shadow: 0 2px 0 rgba(0, 0, 0, .6), 0 18px 60px rgba(0, 0, 0, .6);
}
.av-hero-title span { background: linear-gradient(180deg, #f6dfa6, var(--av-brass) 55%, var(--av-brass-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.av-hero-lead { margin: 0; max-width: 620px; color: #c7c1b3; font-size: clamp(15px, 1.6vw, 18px); line-height: 1.6; text-wrap: balance; }
.av-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

.av-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 860px; margin-top: 26px; }
.is-compact .av-tiles { margin-top: 0; max-width: none; }
.av-tile {
	text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 14px 18px; border-radius: 14px;
	background: linear-gradient(180deg, rgba(22, 27, 38, .85), rgba(16, 20, 29, .85)); border: 1px solid var(--av-line);
	box-shadow: 0 14px 40px rgba(0, 0, 0, .35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); min-width: 0;
}
.av-tile-label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--av-muted); }
.av-tile-value { font-family: var(--av-f-display); font-size: 26px; font-weight: 700; color: var(--av-text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.av-tile-sub { font-size: 13px; color: var(--av-muted); }
.av-tile-event { border-color: rgba(217, 177, 102, .28); background: radial-gradient(120% 140% at 100% 0%, rgba(210, 85, 58, .16), transparent 60%), linear-gradient(180deg, rgba(22, 27, 38, .9), rgba(16, 20, 29, .9)); }
.av-meter { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 4px; }
.av-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3fb877, var(--av-good)); }
.av-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--av-muted); }
.av-dot.is-live { background: var(--av-good); box-shadow: 0 0 0 0 rgba(111, 220, 154, .6); animation: av-pulse 2s infinite; }
.av-live { color: var(--av-good); font-weight: 800; }
@keyframes av-pulse { 70% { box-shadow: 0 0 0 8px rgba(111, 220, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(111, 220, 154, 0); } }

/* ---------- content ---------- */
#container.av-content, main#container { max-width: var(--av-max) !important; padding-block: 28px 32px !important; }
#content.av-content { display: block; }
#content.av-content.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
#content.av-content > .av-main, #content.av-content > .av-aside { min-width: 0; padding: 0; float: none; width: auto; }

/* user panel menu (sidebar card, home card, overview) */
.av-ucp { padding: 0; overflow: hidden; }
.av-ucp-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--av-line);
	background: radial-gradient(140% 140% at 0% 0%, rgba(217, 177, 102, .14), transparent 60%); }
.av-ucp-avatar { width: 42px; height: 42px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
	font-family: var(--av-f-display); font-weight: 800; font-size: 18px; color: #1b1407; background: linear-gradient(160deg, #f0d495, var(--av-brass-2)); }
.av-ucp-who { display: flex; flex-direction: column; min-width: 0; }
.av-ucp-who b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-ucp-nav { list-style: none; margin: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.av-ucp-nav a, .av-ucp-logout {
	display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--av-text) !important;
	text-decoration: none !important; font-weight: 600; font-size: 14px; transition: background .15s, color .15s;
}
.av-ucp-nav a .av-ico, .av-ucp-logout .av-ico { color: var(--av-brass); flex: none; opacity: .9; }
.av-ucp-nav a:hover { background: rgba(217, 177, 102, .08); }
.av-ucp-nav a[aria-current="page"] { background: linear-gradient(90deg, rgba(217, 177, 102, .16), rgba(217, 177, 102, .03)); box-shadow: inset 2px 0 0 var(--av-brass); }
.av-ucp-logout { margin: 0 8px 8px; color: var(--av-muted) !important; border-top: 1px solid var(--av-line); border-radius: 0 0 10px 10px; padding-top: 12px; }
.av-ucp-logout:hover { color: var(--av-text) !important; }
.av-ucp-logout .av-ico { color: var(--av-muted); }
/* the home page's account card uses the same list */
.av-card.panel-usercp .av-ucp-nav { padding: 0; }

/* user panel overview tiles */
.av-ucp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 10px 0 24px; }
.av-ucp-tile { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line);
	color: var(--av-text) !important; text-decoration: none !important; transition: border-color .15s, transform .15s, background .15s; }
.av-ucp-tile:hover { border-color: rgba(217, 177, 102, .45); transform: translateY(-2px); background: var(--av-surface-2); }
.av-ucp-tile-ico { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px;
	color: var(--av-brass); background: rgba(217, 177, 102, .08); border: 1px solid rgba(217, 177, 102, .2); }
.av-ucp-tile b { font-size: 16px; }
.av-ucp-tile span:last-child { color: var(--av-muted); font-size: 13px; }
.av-aside { position: sticky; top: calc(var(--av-header-h) + 16px); }
.page-title { font-family: var(--av-f-display) !important; letter-spacing: .03em; }
.page-title::after { background: linear-gradient(90deg, rgba(217, 177, 102, .6), rgba(210, 85, 58, .25) 40%, transparent) !important; }
.panel, .av-panel, .av-tile, .av-srv, .av-vip, .av-acc { border-color: var(--av-line) !important; }

/* section heading used by Avalon pages */
.av-h2 { display: flex; align-items: center; gap: 14px; font-family: var(--av-f-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; letter-spacing: .03em; margin: 0 0 14px; }
.av-h2::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--av-line-2), transparent); }
.av-h2 a { margin-left: auto; order: 2; font-family: var(--av-f-body); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--av-muted) !important; text-decoration: none !important; }
.av-h2 a:hover { color: var(--av-brass) !important; }

/* ---------- home ---------- */
.av-home { display: flex; flex-direction: column; gap: 34px; }
.av-home-top { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.av-news { display: grid; gap: 12px; }
.av-news-card {
	display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px;
	background: var(--av-surface); border: 1px solid var(--av-line); color: var(--av-text) !important; text-decoration: none !important;
	transition: border-color .15s, transform .15s, background .15s;
}
.av-news-card:hover { border-color: rgba(217, 177, 102, .45); transform: translateY(-2px); background: var(--av-surface-2); }
.av-news-date { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; border-radius: 10px; background: rgba(217, 177, 102, .08); border: 1px solid rgba(217, 177, 102, .2); }
.av-news-date b { font-family: var(--av-f-display); font-size: 24px; line-height: 1; color: var(--av-brass); }
.av-news-date span { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--av-muted); }
.av-news-title { font-weight: 700; font-size: 16px; line-height: 1.35; }
.av-news-meta { font-size: 12px; color: var(--av-muted); letter-spacing: .06em; text-transform: uppercase; font-weight: 700; }
.av-news-card.is-featured { grid-template-columns: minmax(0, 1fr); padding: 22px; background: radial-gradient(120% 140% at 100% 0%, rgba(217, 177, 102, .14), transparent 60%), var(--av-surface); border-color: rgba(217, 177, 102, .3); }
.av-news-card.is-featured .av-news-title { font-family: var(--av-f-display); font-size: 24px; }

.av-side-stack { display: flex; flex-direction: column; gap: 16px; }
.av-card { background: var(--av-surface); border: 1px solid var(--av-line); border-radius: 16px; padding: 18px; min-width: 0; }
.av-card-title { font-family: var(--av-f-display); font-size: 18px; font-weight: 700; letter-spacing: .04em; margin: 0 0 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.av-card-title a { font-family: var(--av-f-body); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--av-muted) !important; }
.av-card form .form-group { margin-bottom: 10px; }
.av-card .btn { width: 100%; }
.av-card-note { margin: 10px 0 0; font-size: 13px; color: var(--av-muted); }

/* event list */
.av-events { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.av-ev { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .02); border: 1px solid transparent; }
.av-ev-name { display: flex; flex-direction: column; font-weight: 700; font-size: 14px; min-width: 0; }
.av-ev-name small { font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--av-muted); }
.av-ev-time { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--av-text); white-space: nowrap; }
.av-ev.is-soon { border-color: rgba(217, 177, 102, .35); background: rgba(217, 177, 102, .06); }
.av-ev.is-soon .av-ev-time { color: var(--av-brass); }
.av-ev.is-running { border-color: rgba(111, 220, 154, .35); background: rgba(111, 220, 154, .06); }
.av-ev.is-empty { justify-content: center; color: var(--av-muted); }

/* feature strip */
.av-features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.av-feature { position: relative; padding: 20px 18px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line); overflow: hidden; }
.av-feature::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--av-brass), var(--av-ember), transparent); opacity: .8; }
.av-feature b { display: block; font-family: var(--av-f-display); font-size: 26px; color: var(--av-brass); line-height: 1.1; }
.av-feature span { display: block; font-weight: 700; margin-top: 4px; }
.av-feature p { margin: 6px 0 0; font-size: 13px; color: var(--av-muted); }

/* rankings tables on home */
.av-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.av-rank { width: 100%; border-collapse: collapse; }
.av-rank td { padding: 9px 8px; border-bottom: 1px solid var(--av-line); vertical-align: middle; }
.av-rank tr:last-child td { border-bottom: 0; }
.av-rank .av-rank-pos { width: 34px; font-family: var(--av-f-display); font-weight: 800; color: var(--av-muted); text-align: center; }
.av-rank tr:nth-child(1) .av-rank-pos { color: #f0cf7e; }
.av-rank tr:nth-child(2) .av-rank-pos { color: #cfd6dc; }
.av-rank tr:nth-child(3) .av-rank-pos { color: #d39a62; }
.av-rank .av-rank-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.av-rank .av-rank-sub { display: block; font-size: 12px; color: var(--av-muted); }

/* CTA band */
.av-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 28px; border-radius: 18px;
	background: radial-gradient(120% 200% at 0% 0%, rgba(217, 177, 102, .18), transparent 55%), radial-gradient(120% 200% at 100% 100%, rgba(210, 85, 58, .18), transparent 55%), var(--av-surface-2);
	border: 1px solid rgba(217, 177, 102, .28); }
.av-cta h3 { margin: 0; font-family: var(--av-f-display); font-size: clamp(22px, 3vw, 30px); }
.av-cta p { margin: 4px 0 0; color: var(--av-muted); }
.av-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- events page ---------- */
.av-events-page { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.av-timetable { width: 100%; border-collapse: collapse; font-size: 14px; }
.av-timetable td { padding: 7px 6px; border-bottom: 1px solid var(--av-line); vertical-align: top; }
.av-timetable td:first-child { font-weight: 700; white-space: nowrap; padding-right: 14px; }
.av-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.av-chips span { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: 12px; font-variant-numeric: tabular-nums; color: var(--av-muted); }

/* ---------- market ---------- */
.av-stat-link { text-decoration: none !important; color: var(--av-text) !important; border-color: rgba(217, 177, 102, .3) !important; }
.av-stat-link:hover { border-color: var(--av-brass) !important; }
.av-stat-link b { font-size: 18px !important; color: var(--av-brass); }
.av-market-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 10px; padding: 12px; border-radius: 14px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-market-filters input[type=search] { flex: 1 1 200px; min-height: 38px; }
.av-market-filters select { min-height: 38px; width: auto; }
.av-check { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px; color: var(--av-text); font-weight: 600; }
.av-check input { min-height: 0 !important; width: 16px; height: 16px; }
.av-market-count { margin: 4px 2px 10px; font-size: 13px; }
.av-market-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.av-market-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 12px; border-radius: 14px; text-align: center;
	background: var(--av-surface); border: 1px solid var(--av-line); transition: border-color .15s, transform .15s; min-width: 0; }
.av-market-card:hover { border-color: rgba(217, 177, 102, .45); transform: translateY(-2px); }
.av-market-card.is-credits { background: radial-gradient(120% 90% at 50% 0%, rgba(217, 177, 102, .10), transparent 60%), var(--av-surface); }
.av-market-pic { height: 96px; display: flex; align-items: center; justify-content: center; }
.av-market-pic .avi-item { width: 72px; height: 88px; position: relative; }
.av-market-card h3 { margin: 0; font-family: var(--av-f-body); font-size: 14px; font-weight: 700; line-height: 1.3; min-height: 36px; overflow: hidden; }
.av-market-price { margin: 0; font-family: var(--av-f-display); font-size: 18px; font-weight: 700; color: var(--av-brass); }
.av-market-seller { margin: 0; font-size: 12px; color: var(--av-muted); }
.av-market-card form { margin: 4px 0 0; }
.av-pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 16px 0; }
.av-pager a { min-width: 36px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--av-line-2); text-align: center; color: var(--av-muted) !important; text-decoration: none !important; font-weight: 700; }
.av-pager a[aria-current="page"], .av-pager a:hover { background: var(--av-brass); border-color: var(--av-brass); color: #1b1407 !important; }
.av-bank-actions { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.av-sell-form input[type=number] { width: 96px !important; min-height: 30px !important; padding: 2px 8px !important; }
.av-sell-form select { min-height: 30px !important; padding: 2px 6px !important; width: auto; }

/* ---------- forum topics ---------- */
.av-topics { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.av-topics a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .02); border: 1px solid var(--av-line);
	color: var(--av-text) !important; text-decoration: none !important; transition: border-color .15s, background .15s; }
.av-topics a:hover { border-color: rgba(217, 177, 102, .45); background: rgba(217, 177, 102, .05); }
.av-topics b { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.av-topics small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--av-brass); }
.av-topics span { font-size: 12px; color: var(--av-muted); }
.av-topics-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.av-forum-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }

/* ---------- bank ---------- */
.av-bank-zen { margin-bottom: 16px; }
.av-bank-zen .av-srv-row { gap: 16px; }
.av-bank-form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.av-bank-form input[type=number] { width: 150px; min-height: 36px; }
.av-bank-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.av-bank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 620px; overflow: auto; }
.av-bank-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; background: rgba(255, 255, 255, .02); border: 1px solid var(--av-line); }
.av-bank-item .avi-item { width: 48px; height: 48px; position: relative; }
.av-bank-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) { .av-bank-cols { grid-template-columns: minmax(0, 1fr); } }
.av-orders { margin-top: 16px; }
.av-table-wrap { overflow-x: auto; }
.av-orders-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.av-orders-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--av-muted); padding: 6px 10px; border-bottom: 1px solid var(--av-line-2); }
.av-orders-table td { padding: 9px 10px; border-bottom: 1px solid var(--av-line); vertical-align: middle; }
.av-orders-table tr:last-child td { border-bottom: 0; }
.av-nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--av-muted); }

/* ---------- footer ---------- */
.av-footer { max-width: none !important; margin-top: 0 !important; padding: 0 !important; border-top: 1px solid var(--av-line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .35)); }
.av-footer-inner { max-width: var(--av-max); margin: 0 auto; padding: 44px 16px 24px; }
.av-footer-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.av-footer-brand p { margin: 12px 0; max-width: 360px; color: var(--av-muted); }
.av-footer-col { display: flex; flex-direction: column; gap: 8px; }
.av-footer-col h4 { margin: 0 0 6px; font-family: var(--av-f-display); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--av-text); }
.av-footer-col a { color: var(--av-muted) !important; text-decoration: none !important; font-size: 14px; }
.av-footer-col a:hover { color: var(--av-brass) !important; }
.av-social { display: flex; gap: 10px; }
.av-social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--av-line-2); opacity: .8; }
.av-social a:hover { opacity: 1; border-color: var(--av-brass); }
.av-footer-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--av-line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--av-muted); }
.av-footer-bottom p { margin: 0; }
.av-powered, .av-powered a { color: var(--av-muted) !important; opacity: .7; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
	.av-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.av-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.av-nav-toggle { display: inline-flex; order: 3; }
	.av-account { margin-left: auto; }
	.av-account .av-lang { display: none; }
	.av-nav { position: fixed; inset: var(--av-header-h) 0 auto 0; background: rgba(7, 9, 14, .97); border-bottom: 1px solid var(--av-line); padding: 8px 16px 16px; transform: translateY(-120%); transition: transform .25s ease; z-index: -1; }
	.av-nav-open .av-nav { transform: none; }
	.av-nav ul { flex-direction: column; }
	.av-nav a { padding: 14px 8px; font-size: 14px; }
	.av-home-top, .av-boards, .av-content.has-sidebar { grid-template-columns: minmax(0, 1fr); }
	.av-aside { position: static; }
}
@media (max-width: 640px) {
	.av-tiles { grid-template-columns: minmax(0, 1fr); }
	.av-features { grid-template-columns: minmax(0, 1fr); }
	.av-footer-grid { grid-template-columns: minmax(0, 1fr); }
	.av-account .av-btn { display: none; }
	.av-brand-name { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	.av-hero-bg::before, .av-hero-bg::after, .av-dot.is-live { animation: none !important; }
}
/* ---------- market round 2 (filters, table, item page) ---------- */
.av-mkt-filter { display: flex; flex-direction: column; gap: 12px; margin: 4px 0 10px; padding: 14px; border-radius: 14px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-mkt-filter fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.av-mkt-filter legend { margin: 0 0 6px; padding: 0; border: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--av-muted); }
.av-mkt-classes { display: flex; flex-wrap: wrap; gap: 6px; }
.av-mkt-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 6px; }
.av-mkt-cats legend { grid-column: 1 / -1; }
.av-mkt-filter fieldset label { margin: 0; cursor: pointer; font-weight: 600; }
.av-mkt-filter fieldset input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.av-mkt-filter fieldset label span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--av-line-2); background: rgba(255, 255, 255, .02); color: var(--av-text); font-size: 13px; transition: border-color .15s, background .15s; }
.av-mkt-classes label span { border-radius: 999px; }
.av-mkt-filter fieldset label span em { font-style: normal; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--av-muted); }
.av-mkt-filter fieldset label:hover span { border-color: rgba(217, 177, 102, .45); }
.av-mkt-filter fieldset input:checked + span { background: var(--av-brass); border-color: var(--av-brass); color: #1b1407; }
.av-mkt-filter fieldset input:checked + span em { color: #1b1407; }
.av-mkt-filter fieldset input:focus-visible + span { outline: 2px solid var(--av-brass); outline-offset: 2px; }
.av-mkt-opts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.av-mkt-opts input[type=search] { flex: 1 1 200px; min-height: 38px; }
.av-mkt-opts select { min-height: 38px; width: auto; }
.av-mkt-table td { vertical-align: middle; }
.av-mkt-table th a { color: inherit !important; }
.av-mkt-cell { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.av-mkt-cell .avi-item { width: 44px; height: 44px; flex: 0 0 44px; position: relative; }
.av-mkt-cell a { font-weight: 700; }
.av-mkt-price { color: var(--av-text) !important; font-weight: 700; }
.av-mkt-price.is-credits { color: var(--av-brass) !important; }
.av-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.av-tag { padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 700; background: rgba(255, 255, 255, .06); color: var(--av-muted); }
.av-tag-exc { background: rgba(111, 220, 154, .12); color: var(--av-good); }
.av-tag-anc { background: rgba(80, 160, 255, .14); color: #8ec5ff; }
.av-small { font-size: 12px; margin: 6px 0 0; }
.av-mkt-detail { display: grid; grid-template-columns: 160px minmax(0, 1fr) minmax(240px, 300px); gap: 20px; align-items: start; padding: 18px; border-radius: 14px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-mkt-detail-pic { display: flex; justify-content: center; padding: 16px; border-radius: 12px; background: radial-gradient(circle at 50% 40%, rgba(217, 177, 102, .12), transparent 70%); }
.av-mkt-detail-pic .avi-item { width: 110px; height: 140px; position: relative; }
.av-mkt-detail-info h2 { margin: 0 0 10px; font-family: var(--av-f-display); font-size: 22px; }
.av-mkt-lines { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.6; }
.av-mkt-buybox { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--av-bg-2); border: 1px solid var(--av-line-2); }
.av-mkt-bigprice { margin: 0; font-family: var(--av-f-display); font-size: 24px; font-weight: 700; color: var(--av-brass); }
.av-mkt-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.av-mkt-facts dt { color: var(--av-muted); font-weight: 600; }
.av-mkt-facts dd { margin: 0; }
.av-mkt-comment { margin: 0; padding: 8px 12px; border-left: 3px solid var(--av-brass); background: rgba(217, 177, 102, .06); font-size: 13px; font-style: italic; overflow-wrap: anywhere; }
.av-mkt-buybox form { margin: 0; }
.av-mkt-buy { width: 100%; }
.av-mkt-copy { align-self: flex-start; }
.av-mkt-slots { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.av-mkt-slots .av-stat { min-width: 160px; }
.av-mkt-slotbuy { display: flex; align-items: center; margin: 0; }
.av-mkt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.av-mkt-stats .av-stat b { font-size: 20px; }
.av-mkt-stats .av-stat small { color: var(--av-muted); font-size: 12px; }
.av-tabs-sm a { padding: 5px 11px; font-size: 12px; }
.av-pager span { padding: 6px 4px; color: var(--av-muted); }
.av-sell-form input[type=text] { width: 150px !important; min-height: 30px !important; padding: 2px 8px !important; }
section.av-card + section.av-card { margin-top: 16px; }
@media (max-width: 900px) { .av-mkt-detail { grid-template-columns: minmax(0, 1fr); } }
.av-mkt-lots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.av-mkt-lots section.av-card + section.av-card { margin-top: 0; }
.av-mkt-lotform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--av-line); }
.av-mkt-lotform label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; font-size: 13px; }
.av-mkt-lotform input[type=number] { width: 160px; min-height: 34px; }
@media (max-width: 900px) { .av-mkt-lots { grid-template-columns: minmax(0, 1fr); } }
/* character market + market orders (website-market-6.sql) */
.av-mkt-char { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
.av-mkt-charstats { grid-template-columns: repeat(2, auto 1fr); max-width: 560px; }
.av-mkt-gear { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.av-mkt-gear li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; background: var(--av-bg-2); border: 1px solid var(--av-line); font-size: 13px; min-width: 0; }
.av-mkt-gear li > div { min-width: 0; overflow-wrap: anywhere; }
.av-mkt-gear .avi-item { flex: none; }
.av-mkt-lotform input[type=text], .av-mkt-lotform select { min-height: 34px; max-width: 100%; }
.av-mkt-orders ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.av-mkt-orders li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
@media (max-width: 900px) { .av-mkt-char, .av-mkt-charstats { grid-template-columns: minmax(0, 1fr); } .av-mkt-charstats { grid-template-columns: auto 1fr; } }
.av-mkt-bidform { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.av-mkt-bidform label { margin: 0; font-size: 12px; font-weight: 700; color: var(--av-muted); }
.av-mkt-bidform input[type=number] { min-height: 38px; }
.av-mkt-bids { list-style: none; margin: 4px 0 0; padding: 8px 0 0; border-top: 1px solid var(--av-line); display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.av-mkt-bids li { display: flex; justify-content: space-between; gap: 8px; }
.av-mkt-bids li:first-child b { color: var(--av-brass); }
.av-mkt-bids span { color: var(--av-muted); font-size: 12px; }
.av-sell-form .av-sell-buyout { display: none; width: 140px !important; min-height: 30px !important; padding: 2px 8px !important; }
.av-sell-form:has(option[value^="auction"]:checked) .av-sell-buyout { display: inline-block; }
/* ---------- UI fixes 2026-11-19 ---------- */
/* body as a column: the footer sits at the bottom on short pages */
body { display: flex; flex-direction: column; min-height: 100vh; }
body > main#container { flex: 1 0 auto; width: 100%; }
body > .av-header, body > .av-hero-wrap, body > .av-footer { flex: none; }
/* primary buttons: avalon.css "button.btn" is more specific than ".btn-primary" and made them dark */
button.btn-primary, input.btn-primary, a.btn-primary, .btn.btn-primary, button.av-btn-primary, a.av-btn-primary {
	color: #1b1407 !important; border-color: transparent !important;
	background: linear-gradient(180deg, #f0d495 0%, var(--av-brass) 48%, var(--av-brass-2) 100%) !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 10px 28px rgba(217, 177, 102, .22), 0 0 0 1px rgba(0, 0, 0, .4) !important;
}
button.btn-primary:hover, input.btn-primary:hover, a.btn-primary:hover, a.av-btn-primary:hover { color: #1b1407 !important; filter: brightness(1.06); }
button.btn-primary:disabled, input.btn-primary:disabled { filter: grayscale(.6) brightness(.7); cursor: not-allowed; }
/* cards in grids keep one top line (the "card after card" margin is only for stacked cards) */
.av-boards > .av-card, .av-events-page > .av-card, .av-mkt-lots > .av-card, .av-home-top .av-card + .av-card { margin-top: 0; }
/* the hero's brighter "MU" */
.av-hero-title span { background: linear-gradient(180deg, #fff1c9 0%, #f0d495 38%, var(--av-brass) 70%, #b98a45 100%); -webkit-background-clip: text; background-clip: text; }
/* inner pages: a slim status strip aligned with the content instead of three tall tiles */
.av-hero-wrap.is-compact { padding: 12px 16px; }
.is-compact .av-hero-inner { max-width: calc(var(--av-max) - 32px); }
.is-compact .av-tile { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 12px; box-shadow: none; }
.is-compact .av-tile-value { font-size: 18px; }
.is-compact .av-tile-sub { font-size: 12px; text-align: right; }
.is-compact .av-tile .av-meter { display: none; }
.is-compact .av-tile-event .av-tile-label { flex: none; }
.is-compact .av-tile-event { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; }
.is-compact .av-tile-event .av-tile-value { text-align: center; }
/* readable tables (".92rem" was 9px: Bootstrap's root font size is 10px) */
.av-gi-table { font-size: 14px; }
.av-gi-table th, .av-gi-table td { padding: 7px 10px; }
.av-info .av-acc-static + .av-acc-static { margin-top: 16px; }
/* inline code (Bootstrap's pink) */
code { background: rgba(217, 177, 102, .1); color: var(--av-brass); border-radius: 5px; padding: 1px 6px; font-size: .9em; }
/* titles with a link wrap on phones */
.av-card-title { flex-wrap: wrap; }
.av-lead { font-size: 16px; color: #c7c1b3; max-width: 760px; margin: 0 0 18px; }
.av-empty { max-width: 760px; }
.av-empty p { color: var(--av-muted); margin: 0 0 14px; }
/* downloads list (WebEngine panels) */
.panel-downloads .panel-title { font-family: var(--av-f-display) !important; font-size: 18px !important; letter-spacing: .04em; margin-bottom: 8px; }
.panel-downloads .table td { vertical-align: middle; border-color: var(--av-line) !important; font-size: 14px; }
.download-description { color: var(--av-muted); font-size: 13px; }
/* donation */
.av-donate-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.av-pay-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-bottom: 12px; }
.av-pay { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line);
	color: var(--av-text) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.av-pay:hover { border-color: rgba(217, 177, 102, .45); transform: translateY(-2px); }
.av-pay img { width: 52px; height: 52px; object-fit: contain; flex: none; }
.av-pay b { display: block; font-size: 17px; }
.av-pay small { color: var(--av-muted); font-size: 13px; }
@media (max-width: 900px) { .av-donate-steps { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
	.av-hero-wrap.is-compact { padding: 10px 16px; }
	.is-compact .av-tiles { gap: 6px; }
	.is-compact .av-tile:not(.av-tile-event) { display: none; }
}
body > .av-footer { width: 100%; }
.av-hero-title span { text-shadow: none; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .55)) drop-shadow(0 14px 40px rgba(0, 0, 0, .45)); }
.is-compact .av-tiles { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.7fr); }
body > .av-footer, body > main#container { width: 100% !important; }
.is-compact .av-tile:not(.av-tile-event) .av-tile-sub { display: none; }
@media (max-width: 640px) {
	.is-compact .av-tiles { grid-template-columns: minmax(0, 1fr); }
	.is-compact .av-tile-event { grid-template-columns: auto minmax(0, 1fr); row-gap: 2px; }
	.is-compact .av-tile-event .av-tile-value { text-align: right; }
	.is-compact .av-tile-event .av-tile-sub { grid-column: 1 / -1; text-align: left; }
}
/* ---------- guide (Info page) ---------- */
.av-guide { margin-top: 34px; display: flex; flex-direction: column; gap: 16px; }
.av-guide .av-h2 { margin-bottom: 0; }
.av-guide-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.av-guide-nav a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--av-line-2); color: var(--av-text) !important; text-decoration: none !important; font-weight: 700; font-size: 13px; }
.av-guide-nav a:hover { border-color: var(--av-brass); background: rgba(217, 177, 102, .08); }
.av-guide section { scroll-margin-top: calc(var(--av-header-h) + 16px); }
.av-guide-table td { vertical-align: top; }
.av-guide-table td:first-child { white-space: nowrap; }
.av-droplist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.av-droplist li { line-height: 1.45; }
.av-chance { display: inline-block; padding: 0 6px; border-radius: 6px; background: rgba(217, 177, 102, .12); color: var(--av-brass); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.av-more { display: inline; }
.av-more summary { display: inline; cursor: pointer; color: var(--av-brass); font-weight: 600; }
.av-more[open] summary { margin-right: 4px; }
.av-guide-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.av-guide-box { padding: 12px 14px; border-radius: 12px; background: var(--av-bg-2); border: 1px solid var(--av-line); min-width: 0; }
.av-guide-box h4 { margin: 0 0 6px; font-family: var(--av-f-display); font-size: 15px; letter-spacing: .03em; color: var(--av-text); }
.av-guide-events { display: grid; grid-template-columns: minmax(160px, 220px) minmax(0, 1fr); gap: 8px 18px; margin: 0; font-size: 14px; }
.av-guide-events dt { font-weight: 700; color: var(--av-text); }
.av-guide-events dd { margin: 0; color: var(--av-muted); }
@media (max-width: 640px) { .av-guide-events { grid-template-columns: minmax(0, 1fr); } .av-guide-events dd { margin-bottom: 8px; } .av-guide-table td:first-child { white-space: normal; } }
/* referral page */
.av-ref-copy { display: flex; gap: 8px; flex-wrap: wrap; }
.av-ref-copy input { flex: 1 1 260px; min-height: 42px; padding: 0 12px; border-radius: 10px; background: #0b0f17; border: 1px solid var(--av-line-2); color: var(--av-text); font-size: 14px; }
.av-ref-link { margin-bottom: 24px; }
.av-ref-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; margin-bottom: 24px; }
.av-card-title .av-muted { font-family: var(--av-f-body); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
/* achievement medals (profile) */
.av-medal-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0 0 12px; padding: 12px 14px; border-radius: 12px;
	background: radial-gradient(120% 140% at 0% 0%, rgba(217, 177, 102, .14), transparent 60%), var(--av-bg-2); border: 1px solid rgba(217, 177, 102, .25); }
.av-medal-sum > b { font-family: var(--av-f-display); font-size: 26px; color: var(--av-brass); line-height: 1; }
.av-medal-sum > span { font-weight: 700; }
.av-medal-tier { color: var(--av-good); }
.av-medal-sum small { color: var(--av-muted); font-size: 12px; }
.av-medal-how { flex-basis: 100%; }
.av-pips { display: inline-flex; gap: 3px; margin-left: 8px; vertical-align: middle; }
.av-pips i { width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 9px; font-weight: 800;
	border: 1px solid var(--av-line-2); color: var(--av-muted); background: rgba(255, 255, 255, .03); }
.av-pips i.is-on { background: linear-gradient(160deg, #f0d495, var(--av-brass-2)); border-color: transparent; color: #1b1407; }

/* ---------- 2026-11-20 ---------- */
/* primary buttons keep their gold on hover (avalon.css ".av-btn:hover" made the background dark, text stayed dark) */
a.av-btn.av-btn-primary:hover, a.av-btn.av-btn-primary:focus-visible, button.btn.btn-primary:hover, a.btn.btn-primary:hover, input.btn.btn-primary:hover {
	background: linear-gradient(180deg, #f6deA4 0%, #e2bd72 48%, var(--av-brass) 100%) !important; color: #1b1407 !important; border-color: transparent !important;
}
/* sidebar: space between the account card and the download card */
.av-aside { display: flex; flex-direction: column; gap: 16px; }
.av-aside > * { margin: 0 !important; }
/* home: market | news | account + events */
.av-home-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr) minmax(0, 1.05fr); grid-template-areas: "market news side"; }
.av-home-3 > .av-home-market { grid-area: market; }
.av-home-3 > .av-home-news { grid-area: news; }
.av-home-3 > .av-side-stack { grid-area: side; }
@media (max-width: 1180px) { .av-home-3 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); grid-template-areas: "news side" "market side"; } }
@media (max-width: 900px) { .av-home-3 { grid-template-columns: minmax(0, 1fr); grid-template-areas: "news" "side" "market"; } }
.av-mini-market { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.av-mini-market a { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 12px 8px 8px; border-radius: 12px;
	background: var(--av-surface); border: 1px solid var(--av-line); color: var(--av-text) !important; text-decoration: none !important; transition: border-color .15s, background .15s; }
.av-mini-market a:hover { border-color: rgba(217, 177, 102, .45); background: var(--av-surface-2); }
.av-mini-market .avi-item { width: 52px; height: 52px; pointer-events: none; }
.av-mini-market-txt { display: flex; flex-direction: column; min-width: 0; }
.av-mini-market-txt b { font-size: 14px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.av-mini-market-txt span { font-size: 13px; font-weight: 700; color: var(--av-brass); font-variant-numeric: tabular-nums; }
.av-mini-market-txt span.is-credits { color: #8fd3ff; }
/* tabs (Info page) */
.av-tabbar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 4px; margin: 0 0 18px; border-radius: 14px; background: var(--av-surface); border: 1px solid var(--av-line);
	position: sticky; top: calc(var(--av-header-h) + 8px); z-index: 5; }
.av-tabbar a { flex: none; padding: 9px 16px; border-radius: 10px; font-weight: 700; font-size: 14px; color: var(--av-muted) !important; text-decoration: none !important; white-space: nowrap; transition: background .15s, color .15s; }
.av-tabbar a:hover { color: var(--av-text) !important; background: rgba(255, 255, 255, .04); }
.av-tabbar a[aria-selected="true"] { color: #1b1407 !important; background: linear-gradient(180deg, #f0d495, var(--av-brass)); }
.av-tabbed:not(.is-js) .av-tabpanel + .av-tabpanel { margin-top: 28px; }
.av-tabpanel[hidden] { display: none !important; }
.av-tabpanel .av-panel-title { margin-top: 0; }
.av-filter { width: 100%; max-width: 520px; min-height: 42px; padding: 0 14px; margin: 0 0 14px; border-radius: 10px; background: #0b0f17; border: 1px solid var(--av-line-2); color: var(--av-text); font-size: 14px; }
.av-filter:focus { outline: none; border-color: var(--av-brass); }
.av-empty-filter { color: var(--av-muted); }
.av-cmds { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 10px; }
.av-cmd { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--av-bg-2); border: 1px solid var(--av-line); }
.av-cmd code { align-self: flex-start; font-size: 13px; }
.av-cmd b { color: var(--av-text); }
.av-cmd span { color: var(--av-muted); font-size: 14px; line-height: 1.5; }
.av-bosses { display: flex; flex-direction: column; gap: 8px; }
.av-boss { border-radius: 12px; background: var(--av-bg-2); border: 1px solid var(--av-line); }
.av-boss[open] { border-color: rgba(217, 177, 102, .35); }
.av-boss > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) auto 16px; gap: 12px; align-items: center; padding: 12px 14px; }
.av-boss > summary::-webkit-details-marker { display: none; }
.av-boss > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--av-brass); border-bottom: 2px solid var(--av-brass); transform: rotate(45deg); transition: transform .15s; justify-self: end; }
.av-boss[open] > summary::after { transform: rotate(-135deg); }
.av-boss-meta { color: var(--av-muted); font-size: 13.5px; }
.av-boss-time { font-size: 12px; font-weight: 700; color: var(--av-brass); white-space: nowrap; }
.av-boss > .av-droplist { padding: 0 14px 14px; }
@media (max-width: 640px) { .av-boss > summary { grid-template-columns: minmax(0, 1fr) auto 16px; } .av-boss-meta { grid-column: 1 / 2; grid-row: 2; } }
details.av-guide-box > summary { cursor: pointer; font-family: var(--av-f-display); font-size: 15px; font-weight: 700; color: var(--av-text); list-style: none; }
details.av-guide-box > summary::-webkit-details-marker { display: none; }
details.av-guide-box > summary::before { content: "+"; display: inline-block; width: 18px; color: var(--av-brass); }
details.av-guide-box[open] > summary::before { content: "\2212"; }
details.av-guide-box[open] > summary { margin-bottom: 6px; }
details.av-guide-box { align-self: start; }
/* rules and legal pages */
.av-legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.av-legal-tabs a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--av-line-2); color: var(--av-muted) !important; text-decoration: none !important; font-weight: 700; font-size: 13px; }
.av-legal-tabs a:hover { color: var(--av-text) !important; border-color: var(--av-brass); }
.av-legal-tabs a[aria-current="page"] { color: #1b1407 !important; background: linear-gradient(180deg, #f0d495, var(--av-brass)); border-color: transparent; }
.av-legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.av-legal-toc { position: sticky; top: calc(var(--av-header-h) + 16px); padding: 16px 18px; border-radius: 14px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-legal-toc b { display: block; margin-bottom: 8px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--av-muted); }
.av-legal-toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.av-legal-toc a { color: var(--av-text) !important; }
.av-legal-toc a:hover { color: var(--av-brass) !important; }
.av-legal-body { max-width: 780px; font-size: 15px; line-height: 1.7; color: #d6d1c4; }
.av-legal-body section { scroll-margin-top: calc(var(--av-header-h) + 16px); padding: 18px 0; border-top: 1px solid var(--av-line); }
.av-legal-body h2 { font-family: var(--av-f-display); font-size: 21px; margin: 0 0 10px; color: var(--av-text); }
.av-legal-body h2 span { color: var(--av-brass); margin-right: 4px; }
.av-legal-body ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.av-legal-body b { color: var(--av-text); }
.av-legal-date { margin: 0 0 8px; font-size: 13px; color: var(--av-muted); }
.av-legal-intro { margin-bottom: 8px; }
.av-legal-contact { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--av-bg-2); border: 1px solid var(--av-line); font-size: 14px; }
@media (max-width: 860px) { .av-legal { grid-template-columns: minmax(0, 1fr); } .av-legal-toc { position: static; } }
/* account forms (forgot password, password, e-mail, two-step login, confirmations) */
.av-form-card { max-width: 560px; padding: 24px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-form-title { font-family: var(--av-f-display); font-size: 22px; margin: 0 0 8px; color: var(--av-text); }
.av-form { display: flex; flex-direction: column; gap: 14px; margin: 14px 0; }
.av-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--av-muted); letter-spacing: .02em; }
.av-form input[type=text], .av-form input[type=email], .av-form input[type=password], .av-form input[type=number], .av-form select, .av-form textarea {
	min-height: 44px; padding: 10px 14px; border-radius: 10px; background: #0b0f17; border: 1px solid var(--av-line-2); color: var(--av-text); font-size: 15px; font-weight: 500; }
.av-form textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.av-form input:focus, .av-form select:focus, .av-form textarea:focus { outline: none; border-color: var(--av-brass); box-shadow: 0 0 0 3px rgba(217, 177, 102, .15); }
.av-form .btn { align-self: flex-start; width: auto; min-width: 200px; }
.av-form-inline { margin: 6px 0 0; font-size: 13px; color: var(--av-muted); }
.av-linkbtn { background: none; border: 0; padding: 0; color: var(--av-brass); font-weight: 700; cursor: pointer; font-size: 13px; }
.av-linkbtn:hover { text-decoration: underline; }
.av-sec-status { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; margin-bottom: 14px; border: 1px solid var(--av-line); background: var(--av-bg-2); }
.av-sec-status b { font-size: 16px; }
.av-sec-status span { color: var(--av-muted); font-size: 14px; line-height: 1.5; }
.av-sec-status.is-on { border-color: rgba(111, 220, 154, .35); background: rgba(111, 220, 154, .06); }
.av-sec-status.is-on b { color: var(--av-good); }
.av-sec-links { display: flex; gap: 16px; padding: 0; margin: 12px 0 0; list-style: none; font-weight: 700; font-size: 14px; }
.av-boss > summary { grid-template-columns: minmax(170px, 260px) minmax(0, 1fr) auto 16px; }
/* achievements (user panel) */
.av-legal-tabs small { opacity: .7; font-weight: 600; margin-left: 2px; }
.av-ach-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
.av-ach-sum { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 16px; border: 1px solid rgba(217, 177, 102, .3);
	background: radial-gradient(120% 140% at 0% 0%, rgba(217, 177, 102, .16), transparent 60%), var(--av-surface); }
.av-ach-sum > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.av-ach-sum b { font-family: var(--av-f-display); font-size: 34px; line-height: 1; color: var(--av-brass); }
.av-ach-sum b small { font-size: 15px; color: var(--av-muted); font-family: var(--av-f-body); }
.av-ach-sum em { font-style: normal; color: var(--av-good); font-weight: 700; }
.av-ach-sum > div > small { color: var(--av-muted); font-size: 12.5px; }
.av-ach-medal { flex: none; width: 76px; height: 76px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
	font-family: var(--av-f-display); font-size: 30px; font-weight: 800; color: #1b1407; background: radial-gradient(circle at 35% 30%, #fff1c9, #e2bd72 45%, #9c7334); box-shadow: 0 0 0 4px rgba(217, 177, 102, .2), 0 10px 30px rgba(0, 0, 0, .4); }
.av-ach-next { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--av-muted); }
.av-ach-next .av-meter i { background: linear-gradient(90deg, var(--av-brass-2), #f0d495); }
.av-ach-tiers { padding: 16px 18px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-ach-tiers h3 { margin: 0 0 10px; font-family: var(--av-f-display); font-size: 16px; }
.av-ach-tiers ol { list-style: none; margin: 0 0 10px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; }
.av-ach-tiers li { display: flex; flex-direction: column; align-items: center; padding: 6px 4px; border-radius: 10px; border: 1px solid var(--av-line); background: var(--av-bg-2); font-size: 12px; color: var(--av-muted); }
.av-ach-tiers li b { font-family: var(--av-f-display); font-size: 16px; color: var(--av-text); }
.av-ach-tiers li em { font-style: normal; font-weight: 800; color: var(--av-text); }
.av-ach-tiers li.is-on { border-color: rgba(217, 177, 102, .5); background: rgba(217, 177, 102, .1); }
.av-ach-tiers li.is-on em { color: var(--av-good); }
.av-ach-tiers p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--av-muted); }
.av-ach-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.av-ach-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-ach-seg button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; font-weight: 700; font-size: 13px; color: var(--av-muted); cursor: pointer; }
.av-ach-seg button[aria-pressed="true"] { background: rgba(217, 177, 102, .16); color: var(--av-text); }
.av-ach-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.av-ach { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 14px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-ach[hidden] { display: none; }
.av-ach.is-done { border-color: rgba(111, 220, 154, .35); }
.av-ach header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.av-ach h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--av-text); }
.av-ach p { margin: 0; font-size: 13px; color: var(--av-muted); line-height: 1.45; }
.av-ach-bar { position: relative; height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .06); margin: 4px 0; }
.av-ach-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--av-brass-2), #f0d495); }
.av-ach.is-done .av-ach-bar i { background: linear-gradient(90deg, #3fb877, var(--av-good)); }
.av-ach-bar span { position: absolute; top: -3px; width: 2px; height: 14px; background: rgba(255, 255, 255, .35); border-radius: 1px; }
.av-ach-bar .m1 { left: var(--s1); } .av-ach-bar .m2 { left: var(--s2); }
.av-ach footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; font-size: 13px; color: var(--av-muted); }
.av-ach footer b { color: var(--av-text); font-variant-numeric: tabular-nums; }
.av-ach-reward { color: var(--av-brass); font-weight: 700; }
.av-ach-reward.is-paid { color: var(--av-good); }
@media (max-width: 860px) { .av-ach-top { grid-template-columns: minmax(0, 1fr); } }
/* referral */
.av-ref { display: flex; flex-direction: column; gap: 16px; }
.av-ref > .av-card { margin: 0; }
.av-ref-how { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.55; color: #d6d1c4; }
.av-ref-how b { color: var(--av-text); }
.av-ref-code { font-family: Consolas, monospace; font-size: 15px; letter-spacing: .08em; color: var(--av-brass); }
.av-ref-table th, .av-ref-table td { text-align: center; }
.av-ref-table tbody th { text-align: left; white-space: nowrap; }
.av-ref-table b { color: var(--av-brass); }
.av-stars { display: inline-flex; gap: 2px; font-style: normal; }
.av-stars i { font-style: normal; color: rgba(255, 255, 255, .18); font-size: 15px; }
.av-stars i.is-on { color: #f0c96a; }
.av-ref-mine { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--av-bg-2); border: 1px solid var(--av-line); }
.av-ref-link { margin-bottom: 0; }
.av-ref-copy .btn { width: auto !important; flex: none; min-width: 140px; }
/* downloads / buy credits steps */
.av-dl, .av-buy { display: flex; flex-direction: column; gap: 26px; }
.av-dl-step .av-h2 { margin-bottom: 14px; }
.av-dl-num { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; color: #1b1407; background: linear-gradient(160deg, #f0d495, var(--av-brass-2)); }
.av-dl-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.av-dl-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-dl-card h3 { margin: 0; font-family: var(--av-f-display); font-size: 18px; color: var(--av-text); }
.av-dl-card > p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--av-muted); }
.av-dl-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--av-bg-2); border: 1px solid var(--av-line-2); color: var(--av-text) !important; text-decoration: none !important; transition: border-color .15s, background .15s; margin-top: auto; }
.av-dl-file:hover { border-color: var(--av-brass); background: rgba(217, 177, 102, .06); }
.av-dl-file.is-primary { border-color: rgba(217, 177, 102, .45); background: radial-gradient(120% 140% at 0% 0%, rgba(217, 177, 102, .14), transparent 60%), var(--av-bg-2); }
.av-dl-file.is-soon { grid-template-columns: minmax(0, 1fr); border-style: dashed; opacity: .8; }
.av-dl-ico { width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--av-brass); background: rgba(217, 177, 102, .1); }
.av-dl-txt { display: flex; flex-direction: column; min-width: 0; }
.av-dl-txt small { color: var(--av-muted); font-size: 12.5px; }
.av-dl-size { font-size: 12px; font-weight: 700; color: var(--av-muted); white-space: nowrap; }
.av-dl-older summary { margin-top: 4px; font-size: 13px; }
.av-dl-older .av-dl-file { margin-top: 8px; }
.av-dl-soft { display: flex; flex-direction: column; gap: 10px; }
.av-dl-softitem { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 16px; border-radius: 14px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-dl-softitem b { color: var(--av-text); font-size: 15px; }
.av-dl-softitem p { margin: 4px 0 0; color: var(--av-muted); font-size: 13.5px; max-width: 640px; }
.av-dl-softlinks { display: flex; flex-wrap: wrap; gap: 8px; }
.av-dl-ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; color: #d6d1c4; }
.av-dl-list { display: flex; flex-direction: column; gap: 8px; }
/* packages */
.av-pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.av-pkg { position: relative; margin: 0; cursor: pointer; font-weight: 400; }
.av-pkg input { position: absolute; opacity: 0; pointer-events: none; }
.av-pkg-body { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 12px 16px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line-2); text-align: center; transition: border-color .15s, transform .15s, background .15s; height: 100%; }
.av-pkg:hover .av-pkg-body { border-color: rgba(217, 177, 102, .5); transform: translateY(-2px); }
.av-pkg input:checked + .av-pkg-body { border-color: var(--av-brass); background: radial-gradient(120% 120% at 50% 0%, rgba(217, 177, 102, .2), transparent 70%), var(--av-surface-2); box-shadow: 0 0 0 1px var(--av-brass), 0 14px 34px rgba(0, 0, 0, .35); }
.av-pkg input:focus-visible + .av-pkg-body { outline: 2px solid var(--av-brass); outline-offset: 2px; }
.av-pkg-body b { font-family: var(--av-f-display); font-size: 26px; color: var(--av-text); line-height: 1.1; }
.av-pkg-body small { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--av-muted); }
.av-pkg-calc { font-size: 11.5px; color: var(--av-good); min-height: 16px; }
.av-pkg-body strong { margin-top: 6px; font-size: 18px; color: var(--av-brass); }
.av-pkg-bonus { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; font-style: normal; font-size: 11px; font-weight: 800; color: #0f2a1a; background: var(--av-good); white-space: nowrap; }
.av-pkg.is-best .av-pkg-bonus { color: #1b1407; background: linear-gradient(180deg, #f6dea4, var(--av-brass)); }
.av-buy-pay { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-buy-sum { display: flex; flex-direction: column; gap: 2px; }
.av-buy-sum > span { color: var(--av-muted); font-size: 13px; }
.av-buy-sum > b { font-family: var(--av-f-display); font-size: 28px; color: var(--av-text); }
.av-buy-sum small { color: var(--av-muted); margin-top: 4px; }
.av-buy-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 420px; }
.av-buy-actions .btn { min-width: 220px; }
.av-buy-actions .av-hint { text-align: right; margin: 0; }
@media (max-width: 640px) { .av-buy-actions { align-items: stretch; } .av-buy-actions .av-hint { text-align: left; } }
/* support tickets */
.av-support-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.av-support-head .av-lead { margin: 0; max-width: 640px; }
.av-form-wide { max-width: 760px; }
.av-form-row { display: flex; flex-wrap: wrap; gap: 10px; }
.av-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.av-thread { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.av-msg { padding: 12px 14px; border-radius: 12px; background: var(--av-bg-2); border: 1px solid var(--av-line); max-width: 88%; }
.av-msg.is-staff { align-self: flex-end; border-color: rgba(217, 177, 102, .35); background: radial-gradient(120% 140% at 100% 0%, rgba(217, 177, 102, .1), transparent 60%), var(--av-bg-2); }
.av-msg header { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: 13px; }
.av-msg header b { color: var(--av-text); }
.av-msg.is-staff header b { color: var(--av-brass); }
.av-msg time { color: var(--av-muted); }
.av-msg > div { font-size: 14.5px; line-height: 1.6; color: #d6d1c4; word-wrap: break-word; }
.av-tstatus { font-family: var(--av-f-body); font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--av-line-2); color: var(--av-muted); white-space: nowrap; }
.av-tstatus.is-answered { color: var(--av-good); border-color: rgba(111, 220, 154, .4); }
.av-tstatus.is-open { color: var(--av-brass); border-color: rgba(217, 177, 102, .4); }
/* vote */
.av-vote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-bottom: 18px; }
.av-vote { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-vote h3 { margin: 0; font-family: var(--av-f-display); font-size: 18px; color: var(--av-text); }
.av-vote p { margin: 0; color: var(--av-muted); font-size: 14px; }
.av-vote p b { color: var(--av-brass); }
.av-vote small { color: var(--av-muted); font-size: 12px; }
.av-vote-wait { color: var(--av-text) !important; font-weight: 700; }
.av-buy + .av-donate-steps, form.av-buy + .av-donate-steps { margin-top: 26px; }
.av-tabbar { scroll-behavior: smooth; }
/* ---- 2026-11-20: detailed drop tables (Info page) */
.av-drop-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.av-drop-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--av-muted); padding: 6px 10px; border-bottom: 1px solid var(--av-line-2); white-space: nowrap; }
.av-drop-table td { padding: 8px 10px; border-bottom: 1px solid var(--av-line); vertical-align: top; line-height: 1.45; }
.av-drop-table tr:last-child td { border-bottom: 0; }
.av-drop-opts { font-size: 12.5px; color: var(--av-text); min-width: 170px; }
.av-drop-maps { font-size: 12.5px; color: var(--av-muted); min-width: 120px; max-width: 220px; }
.av-drop-table .av-muted, .av-drop-opts .av-muted { color: var(--av-muted); font-size: 12px; }
.av-dk { display: inline-block; padding: 0 6px; border-radius: 5px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.av-dk-excellent { background: rgba(78, 228, 78, .12); color: #6be86b; }
.av-dk-ancient { background: rgba(92, 200, 255, .12); color: #7fd3ff; }
.av-dk-socket { background: rgba(199, 146, 234, .14); color: #d3a8f0; }
.av-dk-exc { color: #6be86b; font-weight: 700; }
.av-dk-anc { color: #7fd3ff; font-weight: 700; }
.av-times { color: var(--av-brass); }
.av-boxlink { color: var(--av-brass); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.av-boxlink:hover { color: #f0d495; }
.av-boss > .av-table-wrap { padding: 0 6px 6px; }
.av-boss > .av-hint { padding: 0 14px 12px; margin: 0; }
details.av-guide-box[open] { grid-column: 1 / -1; }
.av-flash { animation: av-flash 1.8s ease-out; }
@keyframes av-flash { 0%, 30% { box-shadow: 0 0 0 2px var(--av-brass); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .av-flash { animation: none; outline: 2px solid var(--av-brass); } }
/* ---- captcha and agreement (login / register) */
.av-captcha { display: flex; flex-direction: column; gap: 6px; margin: 2px 0; }
.av-captcha-label { font-size: 13px; color: var(--av-muted); }
.av-captcha-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.av-captcha-row img { border-radius: 8px; border: 1px solid var(--av-line-2); background: #10141d; }
.av-captcha-row input { width: 130px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--av-line-2); background: var(--av-bg-2); color: var(--av-text); font-size: 18px; letter-spacing: .25em; text-transform: uppercase; font-family: Consolas, monospace; }
.av-captcha-new { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--av-line-2); background: var(--av-surface); color: var(--av-brass); font-size: 20px; cursor: pointer; }
.av-captcha-new:hover { background: var(--av-surface-2); }
label.av-captcha input { margin-top: 6px; width: 120px; }
.av-agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; line-height: 1.5; color: var(--av-text); cursor: pointer; }
.av-agree input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--av-brass); }
.av-agree a { color: var(--av-brass); }
/* ---- servers box and statistics */
.av-servers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.av-servers a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--av-bg-2); border: 1px solid var(--av-line); color: var(--av-text); text-decoration: none; }
.av-servers a:hover { border-color: var(--av-line-2); background: var(--av-surface-2); }
.av-servers b { flex: 1; font-family: var(--av-f-display); font-size: 15px; }
.av-srv-online { font-size: 13px; font-weight: 700; color: var(--av-brass); white-space: nowrap; }
.av-srv-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; background: var(--av-muted); }
.av-srv-dot.is-up { background: var(--av-good); box-shadow: 0 0 0 3px rgba(111, 220, 154, .15); }
.av-srv-dot.is-down { background: var(--av-ember); }
.av-stats { display: flex; flex-direction: column; gap: 16px; }
.av-stats .av-card { margin: 0; }
/* ---- shop (2026-11-20) */
.av-shop { display: flex; flex-direction: column; gap: 22px; }
.av-shop-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; padding: 26px; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, rgba(217,177,102,.16), rgba(16,20,29,.96) 55%); border: 1px solid var(--av-line-2); }
.av-shop-kicker, .av-shop-label { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--av-brass); }
.av-shop-hero h1 { margin: 4px 0 8px; font-family: var(--av-f-display); font-size: 44px; line-height: 1.05; color: var(--av-text); text-transform: uppercase; letter-spacing: .03em; }
.av-shop-hero p { margin: 0 0 12px; color: var(--av-muted); max-width: 520px; }
.av-shop-balance { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 10px; }
.av-shop-balance > span { display: flex; flex-direction: column; padding: 8px 14px; border-radius: 12px; background: var(--av-bg-2); border: 1px solid var(--av-line-2); }
.av-shop-balance small { font-size: 11px; color: var(--av-muted); text-transform: uppercase; letter-spacing: .08em; }
.av-shop-balance b { font-family: var(--av-f-display); font-size: 20px; color: var(--av-brass); }
.av-shop-perks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--av-muted); }
.av-shop-perks li::before { content: "\2713"; color: var(--av-good); margin-right: 6px; font-weight: 800; }
.av-shop-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-content: center; }
.av-shop-tile { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 12px 14px; border-radius: 14px; background: var(--av-bg-2); border: 1px solid var(--av-line-2); color: var(--av-text); text-decoration: none; }
.av-shop-tile:hover { border-color: rgba(217,177,102,.5); text-decoration: none; color: var(--av-text); }
.av-shop-tile b { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.av-shop-tile small { color: var(--av-brass); font-weight: 700; }
.av-shop-nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border-radius: 14px; background: var(--av-surface); border: 1px solid var(--av-line); position: sticky; top: calc(var(--av-header-h) + 6px); z-index: 5; }
.av-shop-nav a { padding: 7px 14px; border-radius: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--av-muted); text-decoration: none; }
.av-shop-nav a:hover { background: var(--av-bg-2); color: var(--av-text); }
.av-shop-paybar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: flex-end; font-size: 13px; color: var(--av-muted); }
.av-shop-paybar label { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--av-text); cursor: pointer; }
.av-shop-paybar input { accent-color: var(--av-brass); }
.av-shop-sec h2 { margin: 2px 0 4px; font-family: var(--av-f-display); font-size: 28px; text-transform: uppercase; letter-spacing: .03em; color: var(--av-text); }
.av-shop-sec > .av-muted { margin: 0 0 14px; }
.av-shop-grid { display: grid; gap: 12px; }
.av-shop-grid-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.av-shop-grid-3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.av-shop-grid-5 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.av-shop-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-shop-card:hover { border-color: var(--av-line-2); }
.av-shop-card h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--av-text); }
.av-shop-card p { margin: 2px 0 0; font-size: 12.5px; color: var(--av-muted); line-height: 1.45; }
.av-shop-card-text { flex: 1; }
.av-shop-card-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.av-shop-price b { font-family: var(--av-f-display); font-size: 20px; color: var(--av-text); }
.av-shop-price small { font-size: 11px; font-weight: 800; color: var(--av-brass); }
.av-shop-pic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: radial-gradient(circle, rgba(217,177,102,.14), rgba(217,177,102,.02)); border: 1px solid var(--av-line); }
.av-shop-pic img { max-width: 52px; max-height: 52px; object-fit: contain; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.av-shop-item .av-shop-pic { width: 100%; height: 86px; }
.av-shop-bundle { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; background: linear-gradient(110deg, rgba(217,177,102,.10), var(--av-surface) 45%); }
.av-shop-bundle .av-shop-card-buy { flex-direction: column; align-items: flex-end; }
.av-shop-buy { display: flex; align-items: center; gap: 6px; margin: 0; }
.av-shop-qty { display: inline-flex; align-items: center; border: 1px solid var(--av-line-2); border-radius: 999px; overflow: hidden; }
.av-shop-qty button { width: 28px; height: 28px; border: 0; background: var(--av-bg-2); color: var(--av-brass); font-weight: 800; cursor: pointer; }
.av-shop-qty input { width: 38px; height: 28px; border: 0; background: transparent; color: var(--av-text); text-align: center; font-weight: 700; -moz-appearance: textfield; }
.av-shop-qty input::-webkit-inner-spin-button, .av-shop-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.av-shop-vip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--av-text); }
.av-shop-vip ul li::before { content: "+"; color: var(--av-brass); font-weight: 800; margin-right: 6px; }
.av-shop-vip-prices { display: flex; flex-wrap: wrap; gap: 8px; }
.av-shop-vip-prices span { padding: 6px 10px; border-radius: 10px; background: var(--av-bg-2); border: 1px solid var(--av-line-2); }
.av-shop-vip-prices b { color: var(--av-brass); }
.av-shop-vip-prices small { color: var(--av-muted); }
.av-shop-steps ol { list-style: none; counter-reset: s; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.av-shop-steps li { counter-increment: s; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 14px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-shop-steps li::before { content: counter(s); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(217,177,102,.15); color: var(--av-brass); font-weight: 800; }
.av-shop-steps li span { font-size: 13px; color: var(--av-muted); }
@media (max-width: 860px) { .av-shop-hero { grid-template-columns: 1fr; } .av-shop-hero h1 { font-size: 34px; } .av-shop-bundle { grid-template-columns: 64px minmax(0, 1fr); } .av-shop-bundle .av-shop-card-buy { grid-column: 1 / -1; flex-direction: row; align-items: center; } }
@media (max-width: 520px) { .av-shop-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* ---- battle pass (2026-11-20) */
.av-bp { display: flex; flex-direction: column; gap: 18px; }
.av-bp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: 18px; background: linear-gradient(135deg, rgba(217,177,102,.10), rgba(16,20,29,.95) 55%); border: 1px solid var(--av-line-2); }
.av-bp-head-main { display: flex; gap: 16px; align-items: center; }
.av-bp-emblem { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: radial-gradient(circle, rgba(217,177,102,.25), rgba(217,177,102,.05)); color: var(--av-brass); border: 1px solid rgba(217,177,102,.35); flex: 0 0 auto; }
.av-bp-head h1 { margin: 0; font-family: var(--av-f-display); font-size: 32px; letter-spacing: .04em; color: var(--av-brass); text-transform: uppercase; }
.av-bp-badges { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--av-muted); }
.av-bp-badges li { display: inline-flex; align-items: center; gap: 6px; }
.av-bp-badges .av-ico { color: var(--av-brass); }
.av-bp-how { max-width: 420px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--av-line-2); background: var(--av-bg-2); font-size: 13.5px; }
.av-bp-how summary { cursor: pointer; font-weight: 700; color: var(--av-text); }
.av-bp-how ol { margin: 10px 0 4px; padding-left: 18px; color: var(--av-muted); line-height: 1.5; }
.av-bp-status { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-bp-status > .av-muted { grid-column: 1 / 3; margin: 0; }
.av-bp-level { display: flex; flex-direction: column; align-items: center; min-width: 74px; padding: 8px 12px; border-radius: 12px; background: var(--av-bg-2); border: 1px solid rgba(217,177,102,.35); }
.av-bp-level span, .av-bp-level small { font-size: 11px; color: var(--av-muted); text-transform: uppercase; letter-spacing: .08em; }
.av-bp-level b { font-family: var(--av-f-display); font-size: 30px; line-height: 1.1; color: var(--av-brass); }
.av-bp-progress-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 6px; color: var(--av-muted); }
.av-bp-progress-top b { color: var(--av-text); }
.av-bp-bar { height: 10px; }
.av-bp-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.av-bp-pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.av-bp-pill.is-on { background: linear-gradient(90deg, #a97b34, #d9b166); color: #1b1407; }
.av-bp-h2 { margin: 6px 0 0; font-family: var(--av-f-display); font-size: 24px; letter-spacing: .04em; color: var(--av-text); text-transform: uppercase; }
.av-bp-track { display: grid; grid-auto-flow: column; grid-auto-columns: 150px; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.av-bp-col { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 14px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-bp-col.is-reached { border-color: rgba(217,177,102,.45); }
.av-bp-col form { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.av-bp-col-head { display: flex; justify-content: space-between; align-items: baseline; }
.av-bp-col-head b { font-family: var(--av-f-display); font-size: 20px; color: var(--av-text); }
.av-bp-col.is-reached .av-bp-col-head b { color: var(--av-brass); }
.av-bp-col-head small { font-size: 11.5px; color: var(--av-muted); }
.av-bp-reward { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 86px; padding: 9px; border-radius: 10px; font-size: 12.5px; line-height: 1.35; }
.av-bp-free { background: var(--av-bg-2); border: 1px solid var(--av-line-2); }
.av-bp-reward.av-bp-premium { background: linear-gradient(160deg, rgba(217,177,102,.16), rgba(217,177,102,.04)); border: 1px solid rgba(217,177,102,.35); }
.av-bp-reward.is-locked { opacity: .6; }
.av-bp-reward.is-ready { box-shadow: 0 0 0 1px var(--av-brass); }
.av-bp-reward-name { color: var(--av-text); font-weight: 600; }
.av-bp-done { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--av-good); }
.av-bp-lock { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--av-brass); }
.av-bp-legend { margin-top: -6px; }
.av-bp-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; border: 1px solid var(--av-line-2); background: var(--av-bg-2); }
.av-bp-key.is-premium { background: rgba(217,177,102,.4); border-color: rgba(217,177,102,.6); }
.av-bp-tasks-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.av-bp-tasks-head .av-filter { max-width: 280px; margin: 0; }
.av-bp-cats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--av-line); }
.av-bp-cats button { background: none; border: 0; padding: 4px 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--av-muted); cursor: pointer; border-bottom: 2px solid transparent; }
.av-bp-cats button small { color: var(--av-muted); font-weight: 600; }
.av-bp-cats button.is-active, .av-bp-cats button:hover { color: var(--av-text); border-bottom-color: var(--av-brass); }
.av-bp-group h3 { margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px solid rgba(217,177,102,.4); font-family: var(--av-f-display); font-size: 19px; color: var(--av-text); }
.av-bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.av-bp-task { position: relative; display: flex; justify-content: space-between; gap: 10px; min-height: 104px; padding: 14px; border-radius: 12px; background: var(--av-surface); border: 1px solid var(--av-line); overflow: hidden; }
.av-bp-task.is-done { border-color: rgba(111,220,154,.4); }
.av-bp-task-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.av-bp-pts { font-family: var(--av-f-display); font-size: 22px; color: #f0c45a; }
.av-bp-task h4 { margin: 0; font-size: 14px; color: var(--av-text); }
.av-bp-task p { margin: 0; font-size: 12px; color: var(--av-muted); line-height: 1.4; }
.av-bp-task-prog { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--av-muted); }
.av-bp-task.is-done .av-bp-task-prog span { color: var(--av-good); }
.av-bp-task-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: radial-gradient(circle, rgba(217,177,102,.18), rgba(217,177,102,.03)); color: var(--av-brass); flex: 0 0 auto; align-self: center; }
.av-bp-task[hidden], .av-bp-group[hidden], .av-bp-more[hidden] { display: none; }
.av-bp-more { grid-column: 1 / -1; justify-self: center; margin-top: 4px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--av-line-2); background: var(--av-bg-2); color: var(--av-text); font-weight: 700; font-size: 13px; cursor: pointer; }
@media (max-width: 720px) { .av-bp-status { grid-template-columns: auto minmax(0, 1fr); } .av-bp-buy { grid-column: 1 / -1; align-items: stretch; } .av-bp-head h1 { font-size: 26px; } }
/* account security: IP binding */
.av-ipbind { margin-top: 18px; }
.av-ipbind-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.av-ipbind-list code { display: inline-block; padding: 5px 10px; border-radius: 8px; background: var(--av-bg-2); border: 1px solid var(--av-line-2); color: var(--av-brass); font-size: 14px; }
.av-ipbind-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.av-ipbind-actions .btn { white-space: normal; text-align: left; }
/* home: events above the market, news excerpts (2026-11-20) */
.av-home-events { margin-bottom: 18px; }
.av-home-events .av-events { gap: 6px; }
.av-news-excerpt { display: block; margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--av-muted); font-family: var(--av-f-body); font-weight: 400; letter-spacing: 0; text-transform: none; }
.av-news-card.is-featured .av-news-excerpt { font-size: 14.5px; }
.av-news-more { display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--av-brass); }
.av-news-card:hover .av-news-more { color: #f0d495; }
/* quests (Info tab, User CP) */
.av-quest-table td:first-child { width: 44px; }
.av-quest-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin-bottom: 14px; }
.av-quest-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-quest-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.av-quest-card h3 { margin: 0; font-family: var(--av-f-display); font-size: 19px; color: var(--av-text); }
.av-quest-card p { margin: 0; font-size: 14px; line-height: 1.5; }
.av-quest-card footer { font-size: 13px; padding-top: 8px; border-top: 1px solid var(--av-line); }
.av-quest-card footer b { color: var(--av-brass); }
.av-quest-total { height: 5px; }
.av-quest-progress { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13px; }
.av-quest-progress .av-classbar { height: 10px; }
.av-quest-ready { color: var(--av-good); font-weight: 600; }
.av-quest-take { color: var(--av-brass); }
.av-quest-card code, .av-hint code { padding: 1px 6px; border-radius: 5px; background: var(--av-bg-2); color: var(--av-brass); }
/* WebEngine's centred forms (login, register, ...) use the full width on phones */
@media (max-width: 767px) {
	.col-xs-8.col-xs-offset-2 { width: 100%; margin-left: 0; float: none; padding-left: 0; padding-right: 0; }
	.col-xs-8.col-xs-offset-2 .form-horizontal .form-group { margin-left: 0; margin-right: 0; }
	.col-xs-8.col-xs-offset-2 .form-horizontal [class*="col-sm-"] { padding-left: 0; padding-right: 0; }
}
.av-stats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line); }
.av-stats-head h2 { margin: 0; font-family: var(--av-f-display); font-size: 26px; color: var(--av-text); }
.av-stats-head p { margin: 2px 0 0; }
.av-stats-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; border: 1px solid var(--av-line-2); }
.av-stats-status.is-up { color: var(--av-good); }
.av-stats-status.is-down { color: var(--av-ember); }
.av-stats-tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)) !important; }
.av-stats-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.av-classbars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.av-classbars li { display: grid; grid-template-columns: minmax(110px, 180px) minmax(0, 1fr) 90px; align-items: center; gap: 10px; font-size: 14px; }
.av-classbar { height: 8px; border-radius: 99px; background: var(--av-bg-2); overflow: hidden; }
.av-classbar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--av-brass-2), var(--av-brass)); }
.av-classbar-num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }
.av-classbar-num small { color: var(--av-muted); font-weight: 400; }
@media (max-width: 560px) { .av-classbars li { grid-template-columns: 1fr 80px; } .av-classbar { grid-column: 1 / -1; grid-row: 2; } }
/* ---- shop round 2: class start packs, cart (2026-11-20) */
.av-shop-more { margin: 10px 0 0; font-size: 13px; color: var(--av-muted); }
.av-shop-hero .av-shop-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.av-shop-nav { align-items: center; }
.av-shop-nav-pay { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; padding: 0 8px; font-size: 12px; color: var(--av-muted); }
.av-shop-nav-pay label { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 800; color: var(--av-text); cursor: pointer; }
.av-shop-nav-pay input, .av-cart-pay input { accent-color: var(--av-brass); margin: 0; }
.av-pack-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.av-pack-tab { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 14px; background: var(--av-surface); border: 1px solid var(--av-line); color: var(--av-muted); font-weight: 700; font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.av-pack-tab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--av-line-2); }
.av-pack-tab:hover { color: var(--av-text); border-color: var(--av-line-2); }
.av-pack-tab.is-active { color: var(--av-text); background: linear-gradient(180deg, rgba(217,177,102,.14), var(--av-surface)); border-color: rgba(217,177,102,.6); }
.av-pack-tab.is-active img { border-color: var(--av-brass); }
.av-pack { display: grid; grid-template-columns: minmax(0, 36%) minmax(0, 1fr); border-radius: 18px; background: var(--av-surface); border: 1px solid var(--av-line-2); }
.av-pack[hidden], .av-pack-tier-body[hidden] { display: none; }
.av-pack-art { position: relative; min-height: 340px; border-radius: 18px 0 0 18px; overflow: hidden; background: var(--av-bg-2); }
.av-pack-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% center; }
.av-pack-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,9,14,0) 55%, rgba(7,9,14,.9)), linear-gradient(90deg, rgba(7,9,14,0) 70%, rgba(16,20,29,.85)); }
.av-pack-art b { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; text-align: center; font-family: var(--av-f-display); font-size: 22px; letter-spacing: .08em; text-transform: uppercase; color: var(--av-text); }
.av-pack-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; min-width: 0; }
.av-pack-body h3 { margin: 0; font-family: var(--av-f-display); font-size: 26px; letter-spacing: .04em; text-transform: uppercase; color: var(--av-text); }
.av-pack-tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.av-pack-tier { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-radius: 12px; background: var(--av-bg-2); border: 1px solid var(--av-line-2); color: var(--av-text); font-weight: 800; cursor: pointer; text-align: left; }
.av-pack-tier:hover { border-color: rgba(217,177,102,.45); }
.av-pack-tier.is-active { border-color: var(--av-brass); background: linear-gradient(90deg, rgba(217,177,102,.12), var(--av-bg-2)); }
.av-pack-label { display: block; margin: 2px 0 -4px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--av-muted); }
.av-pack-tier-body { display: flex; flex-direction: column; gap: 12px; }
.av-pack-gear { display: grid; grid-template-columns: repeat(3, minmax(0, 1.15fr)) repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, 76px); grid-template-areas: "main armor off helm wings pendant" "main armor off gloves pants boots"; gap: 8px; }
.av-pack-slot { position: relative; display: grid; place-items: center; border-radius: 12px; background: radial-gradient(circle at 50% 45%, rgba(217,177,102,.13), rgba(7,9,14,.35) 70%); border: 1px solid var(--av-line); outline: 0; }
.av-pack-slot:hover, .av-pack-slot:focus-visible { border-color: rgba(217,177,102,.55); }
.av-pack-slot img { max-width: 80%; max-height: 80%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0,0,0,.6)); }
.av-pack-slot small { position: absolute; left: 6px; bottom: 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--av-muted); opacity: .8; }
.av-pack-slot i { padding: 4px; font-size: 11px; font-style: normal; text-align: center; color: var(--av-muted); }
.av-pack-slot.is-empty { background: none; border-style: dashed; opacity: .55; }
.av-pack-slot.is-main { grid-area: main; } .av-pack-slot.is-armor { grid-area: armor; } .av-pack-slot.is-off { grid-area: off; }
.av-pack-slot.is-helm { grid-area: helm; } .av-pack-slot.is-wings { grid-area: wings; } .av-pack-slot.is-pendant { grid-area: pendant; }
.av-pack-slot.is-gloves { grid-area: gloves; } .av-pack-slot.is-pants { grid-area: pants; } .av-pack-slot.is-boots { grid-area: boots; }
.av-pack-extras { display: flex; flex-wrap: wrap; gap: 8px; }
.av-pack-extra { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--av-bg-2); border: 1px solid var(--av-line); outline: 0; }
.av-pack-extra:hover, .av-pack-extra:focus-visible { border-color: rgba(217,177,102,.55); }
.av-pack-extra img { max-width: 40px; max-height: 40px; object-fit: contain; }
.av-pack-extra b { position: absolute; right: 4px; bottom: 2px; font-size: 11px; color: var(--av-text); text-shadow: 0 1px 2px #000; }
.av-pack-desc { margin: 0; font-size: 13px; color: var(--av-muted); }
.av-pack-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--av-line); font-size: 12.5px; }
.av-pack [data-tip]:hover::after, .av-pack [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); z-index: 20; width: max-content; max-width: 240px; padding: 6px 10px; border-radius: 8px; background: #0b0e15; border: 1px solid rgba(217,177,102,.45); color: var(--av-text); font-size: 12px; font-weight: 600; line-height: 1.35; text-align: center; pointer-events: none; box-shadow: 0 8px 20px rgba(0,0,0,.5); }
/* cart */
.av-cart-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: linear-gradient(90deg, #c39448, #e3c27a); color: #1b1407; font-weight: 800; box-shadow: 0 10px 28px rgba(0,0,0,.5); cursor: pointer; }
.av-cart-fab[hidden], .av-cart[hidden], .av-cart-shade[hidden], .av-cart-toast[hidden], .av-cart-note[hidden], .av-cart-empty[hidden] { display: none; }
.av-cart-fab b { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #1b1407; color: #e3c27a; font-size: 12px; }
.av-cart-fab-sum { font-size: 13px; opacity: .85; }
.av-cart-fab.is-bump { animation: av-bump .35s ease; }
@keyframes av-bump { 40% { transform: scale(1.08); } }
.av-cart-shade { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.55); }
.av-cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; display: flex; flex-direction: column; width: min(420px, 100%); background: var(--av-bg, #0b0e15); border-left: 1px solid var(--av-line-2); box-shadow: -20px 0 40px rgba(0,0,0,.5); }
.av-cart header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--av-line); }
.av-cart h2 { margin: 0; font-family: var(--av-f-display); font-size: 22px; letter-spacing: .04em; text-transform: uppercase; color: var(--av-text); }
.av-cart-x { width: 36px; height: 36px; border: 1px solid var(--av-line-2); border-radius: 10px; background: var(--av-bg-2); color: var(--av-text); font-size: 22px; line-height: 1; cursor: pointer; }
.av-cart-lines { list-style: none; margin: 0; padding: 10px 14px; overflow-y: auto; flex: 1; }
.av-cart-lines li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 6px; border-bottom: 1px solid var(--av-line); }
.av-cart-pic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--av-bg-2); }
.av-cart-pic img { max-width: 34px; max-height: 34px; object-fit: contain; }
.av-cart-name { font-size: 13.5px; font-weight: 700; color: var(--av-text); line-height: 1.3; }
.av-cart-name small { display: block; font-weight: 600; color: var(--av-muted); }
.av-cart-lines .av-shop-qty span { min-width: 28px; text-align: center; font-weight: 800; color: var(--av-text); }
.av-cart-del { border: 0; background: none; color: var(--av-muted); font-size: 20px; cursor: pointer; padding: 0 4px; }
.av-cart-del:hover { color: #ff8a8a; }
.av-cart-empty { margin: 0; padding: 20px; }
.av-cart footer { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px 20px; border-top: 1px solid var(--av-line); background: var(--av-surface); }
.av-cart-pay { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--av-muted); }
.av-cart-pay label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 700; color: var(--av-text); cursor: pointer; }
.av-cart-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--av-muted); }
.av-cart-total b { font-family: var(--av-f-display); font-size: 26px; color: var(--av-text); }
.av-cart-total small { font-size: 12px; color: var(--av-brass); }
.av-cart-note { margin: 0; font-size: 12.5px; color: #ffb27a; }
.av-cart-bal { margin: 0; font-size: 12.5px; }
.av-cart-bal b { color: var(--av-text); }
.av-cart form { margin: 0; }
.av-cart-clear { align-self: center; border: 0; background: none; color: var(--av-muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.av-cart-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); padding: 10px 18px; border-radius: 12px; background: #0b0e15; border: 1px solid rgba(217,177,102,.5); color: var(--av-text); font-size: 13.5px; font-weight: 600; box-shadow: 0 10px 28px rgba(0,0,0,.5); }
body.av-cart-open { overflow: hidden; }
@media (max-width: 980px) { .av-pack-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 110px; overflow-x: auto; padding-bottom: 6px; } }
@media (max-width: 860px) {
	.av-pack { grid-template-columns: 1fr; }
	.av-pack-art { min-height: 200px; border-radius: 18px 18px 0 0; }
	.av-pack-art::after { background: linear-gradient(180deg, rgba(7,9,14,0) 45%, rgba(7,9,14,.9)); }
	.av-pack-body { padding: 18px 16px; }
	.av-pack-gear { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 96px 70px 70px; grid-template-areas: "main armor off" "helm wings pendant" "gloves pants boots"; }
	.av-shop-nav-pay { margin-left: 0; }
}
@media (max-width: 520px) { .av-pack-tiers { grid-template-columns: 1fr; } .av-cart-fab { right: 12px; bottom: 12px; } .av-cart-fab-sum { display: none; } }
/* Info -> Events timetable: live and next start times (2026-11-20) */
.av-timetable .av-tt-state { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 600; color: var(--av-muted); white-space: nowrap; }
.av-timetable tr.is-running td:first-child { color: var(--av-text); }
.av-timetable tr.is-running { background: linear-gradient(90deg, rgba(111,220,154,.08), transparent 60%); }
.av-chips span.is-live { background: rgba(111,220,154,.18); color: #b8f5cf; box-shadow: inset 0 0 0 1px rgba(111,220,154,.7); animation: av-pulse 1.6s ease-in-out infinite; }
.av-chips span.is-next { box-shadow: inset 0 0 0 1px var(--av-brass); color: var(--av-brass); }
@keyframes av-pulse { 50% { box-shadow: inset 0 0 0 1px rgba(111,220,154,.7), 0 0 0 4px rgba(111,220,154,.14); } }
@media (prefers-reduced-motion: reduce) { .av-chips span.is-live { animation: none; } }
/* Buy Credits: card (Stripe) and PayPal (2026-11-20) */
.av-buy-methods { display: flex; flex-wrap: wrap; gap: 10px; }
.av-buy-card { display: inline-flex; align-items: center; gap: 8px; }
.av-buy-redirect { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; border-radius: 16px; background: var(--av-surface); border: 1px solid var(--av-line-2); }
.av-buy-redirect p { margin: 0; color: var(--av-text); }
