/* MemoriaRO website theme - matches the in-game Memoria HUD: night-sky navy, frosted glass, icy blue + gold.
   Used by every page (landing, register, bond, donate). Fonts: Cinzel (headings) + Inter (body). */
:root {
	--bg0: #070d1c; --bg1: #0e1a33; --bg2: #13234a;
	--glass: rgba(10, 18, 38, .85); --glass-soft: rgba(12, 22, 46, .62);
	--line: rgba(120, 190, 255, .3); --line-soft: rgba(120, 190, 255, .14);
	--ice: #6fb7ff; --ice2: #9fd4ff; --frost: #dcefff;
	--gold: #ffd27f; --gold2: #e0a640;
	--text: #e8f0fb; --muted: #a3b5cf; --dim: #7f93b3;
	--good: #6ee3a1; --bad: #ff8a8a; --warn: #ffd27f;
	--r: 18px; --r-sm: 12px;
	--shadow: 0 24px 60px rgba(0, 0, 0, .45);
	--head: Cinzel, Georgia, 'Times New Roman', serif;
	--body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
	margin: 0; color: var(--text); font: 16px/1.6 var(--body); overflow-x: hidden;
	background-color: var(--bg0);
	background-image:
		radial-gradient(1100px 600px at 85% -10%, rgba(111, 183, 255, .16), transparent 60%),
		radial-gradient(900px 600px at -10% 30%, rgba(74, 144, 240, .10), transparent 60%),
		radial-gradient(800px 500px at 110% 75%, rgba(224, 166, 64, .07), transparent 60%),
		linear-gradient(180deg, var(--bg0) 0%, var(--bg1) 45%, var(--bg0) 100%);
	background-attachment: fixed;
}
/* faint drifting stars behind everything */
body::before {
	content: ''; position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .5;
	background-image:
		radial-gradient(1px 1px at 20px 30px, #cfe9ff, transparent 60%),
		radial-gradient(1px 1px at 120px 80px, #9fd4ff, transparent 60%),
		radial-gradient(1.5px 1.5px at 200px 160px, #ffffff, transparent 60%),
		radial-gradient(1px 1px at 60px 190px, #ffd27f, transparent 60%),
		radial-gradient(1px 1px at 260px 40px, #cfe9ff, transparent 60%);
	background-size: 300px 220px;
	animation: drift 160s linear infinite;
}
@keyframes drift { to { transform: translate3d(300px, 220px, 0); } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ice2); text-underline-offset: 3px; }
a:hover { color: var(--frost); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--frost); letter-spacing: .4px; line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
code { font: 600 .92em ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--gold); background: rgba(255, 210, 127, .08); padding: 1px 6px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--gold); color: #241600; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.ice { color: var(--ice2); }
.gold-text {
	background: linear-gradient(100deg, #ffe7b0 0%, var(--gold) 30%, #fff4d6 50%, var(--gold2) 70%, #ffe7b0 100%);
	background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
	animation: shimmer 9s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn, button.small {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
	font: 700 16px/1.1 var(--body); letter-spacing: .2px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
	transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-gold {
	color: #2a1a00; background: linear-gradient(180deg, #ffe7b3 0%, var(--gold) 45%, var(--gold2) 100%);
	box-shadow: 0 8px 24px rgba(224, 166, 64, .35), inset 0 1px 0 rgba(255, 255, 255, .7);
}
.btn-gold:hover { color: #2a1a00; box-shadow: 0 10px 32px rgba(255, 210, 127, .5), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-ice {
	color: #fff; background: linear-gradient(180deg, #8ccaff 0%, #3f86ea 55%, #2556c4 100%); text-shadow: 0 1px 1px rgba(0, 0, 0, .35);
	box-shadow: 0 8px 24px rgba(74, 144, 240, .35), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-ice:hover { color: #fff; box-shadow: 0 10px 32px rgba(111, 183, 255, .5), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost, .btn.ghost, button.ghost {
	color: var(--frost); background: rgba(111, 183, 255, .08); border-color: var(--line);
}
.btn-ghost:hover, .btn.ghost:hover, button.ghost:hover { color: #fff; background: rgba(111, 183, 255, .16); border-color: var(--ice); }
.btn-lg { padding: 16px 34px; font-size: 18px; }
.btn-sm, .btn.small, button.small { padding: 9px 16px; font-size: 14px; }
.btn-block { width: 100%; }
button.small:not(.ghost) { color: #fff; background: linear-gradient(180deg, #8ccaff, #3f86ea 55%, #2556c4); }
button:disabled, .btn[aria-disabled=true] { opacity: .55; cursor: default; transform: none; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(7, 13, 28, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line-soft); }
.nav.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.nav-in { max-width: 1320px; margin: 0 auto; padding: 10px 24px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--frost); font: 700 21px var(--head); letter-spacing: .5px; margin-right: auto; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 10px rgba(111, 183, 255, .6)); }
.brand b { color: var(--gold); font-weight: 700; }
.nav-menu { display: flex; align-items: center; gap: 4px; }
.nav-menu > a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; padding: 8px 11px; border-radius: 10px; }
.nav-menu > a:not(.btn):hover, .nav-menu > a[aria-current=page] { color: var(--frost); background: rgba(111, 183, 255, .1); }
.nav-menu .btn { margin-left: 6px; }
.nav-group { position: relative; }
.nav-group summary { color: var(--muted); cursor: pointer; list-style: none; font-weight: 600; font-size: 14.5px; padding: 8px 11px; border-radius: 10px; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary { display: inline-flex; align-items: center; }
.nav-group summary::after { content: ''; width: 6px; height: 6px; margin: -3px 0 0 9px; border: solid var(--ice2); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease; }
.nav-group[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.nav-group[open] summary, .nav-group summary:hover { color: var(--frost); background: rgba(111, 183, 255, .1); }
.nav-group summary:focus-visible { outline: 2px solid var(--ice2); outline-offset: 2px; }
.nav-submenu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 220px; padding: 8px; display: grid; gap: 2px; background: linear-gradient(180deg, #0e1a33, #0a1326); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.45), inset 0 1px 0 rgba(190,228,255,.06); transform-origin: 24px 0; }
/* invisible bridge over the gap so the menu stays open while the mouse moves down into it */
.nav-submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-group[open] .nav-submenu { animation: navDrop .18s ease-out; }
@keyframes navDrop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.nav-submenu a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 11px; border-radius: 9px; transition: color .15s, background-color .15s; }
.nav-submenu a:hover, .nav-submenu a:focus-visible, .nav-submenu a[aria-current=page] { color: var(--frost); background: rgba(111,183,255,.1); outline: none; }
@media (prefers-reduced-motion: reduce) { .nav-group[open] .nav-submenu { animation: none; } .nav-group summary::after { transition: none; } }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(111, 183, 255, .08); cursor: pointer; position: relative; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 12px; width: 20px; height: 2px; background: var(--frost); border-radius: 2px; transition: transform .2s, opacity .2s; content: ''; }
.nav-toggle span { top: 21px; } .nav-toggle span::before { top: -6px; left: 0; } .nav-toggle span::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded=true] span { background: transparent; }
.nav-toggle[aria-expanded=true] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded=true] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1180px) {
	.nav-toggle { display: inline-block; }
	.nav-menu {
		position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px;
		background: #070d1c; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
		max-height: calc(100vh - 64px); overflow-y: auto;
	}
	.nav:not(.open) .nav-menu { display: none; }
	.nav-menu > a:not(.btn) { font-size: 16px; padding: 12px 14px; }
	.nav-menu .btn { margin: 8px 0 0; }
	.nav-group summary { font-size: 16px; padding: 12px 14px; }
	.nav-submenu { position: static; min-width: 0; margin: 0 0 6px 12px; padding: 4px 8px; background: rgba(111,183,255,.04); box-shadow: none; }
	.nav-submenu a { font-size: 15px; padding: 9px 12px; }
}
@media (max-width: 420px) { .brand span { font-size: 18px; } .nav-in { gap: 10px; padding: 8px 16px; } .nav-play { padding: 9px 13px; } }

/* ---------- class gallery ---------- */
.page.class-page { max-width: 1180px; }
.class-intro { max-width: 760px; margin: 0 auto 34px; text-align: center; color: var(--muted); }
.class-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.class-card { overflow: hidden; }
.class-art { min-height: 170px; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 68%, var(--class-glow, rgba(111,183,255,.38)), transparent 52%), linear-gradient(145deg, var(--class-bg, #172744), #090f20 72%); border-bottom: 1px solid var(--line-soft); }
.class-art::before, .class-art::after { content: ''; position: absolute; border: 1px solid rgba(230,242,255,.2); border-radius: 50%; width: 142px; height: 142px; transform: rotate(-22deg) scaleX(.7); }
.class-art::after { width: 110px; height: 110px; transform: rotate(35deg) scaleX(.7); border-color: rgba(239,199,115,.25); }
.class-sigil { z-index: 1; display: grid; place-items: center; width: 88px; height: 88px; color: #f5e3b5; font: 700 48px var(--head); text-shadow: 0 3px 22px var(--class-glow, #6fb7ff); filter: drop-shadow(0 5px 12px rgba(0,0,0,.65)); }
.class-card-body { padding: 19px 20px 21px; }
.class-card h2 { margin: 0 0 6px; font: 700 22px var(--head); }
.class-card p { color: var(--muted); margin: 8px 0 13px; }
.class-path { color: var(--ice2); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.class-feature { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(220px, .8fr) 1.2fr; border-color: rgba(239,199,115,.42); }
.class-feature .class-art { min-height: 250px; border: 0; border-right: 1px solid rgba(239,199,115,.2); }
.class-feature .class-sigil { font-size: 74px; width: 120px; height: 120px; }
.class-feature .class-card-body { align-self: center; padding: 28px clamp(22px, 4vw, 48px); }
.class-feature h2 { font-size: clamp(26px, 3vw, 38px); }
.class-badge { display: inline-flex; padding: 6px 10px; border: 1px solid rgba(239,199,115,.5); border-radius: 999px; color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.class-note { margin: 26px auto 0; max-width: 900px; color: var(--muted); font-size: 14px; }
.class-page .class-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.glass.job-family { overflow: hidden; background: radial-gradient(120% 70% at 50% 100%, var(--class-glow, rgba(111,183,255,.3)), transparent 60%), linear-gradient(160deg, var(--class-bg, #172744), #090f20 75%); }
.family-head { padding: 22px 24px 0; text-align: center; }
.family-head h2 { margin: 4px 0 6px; }
.family-head p { color: var(--muted); margin: 0 auto; max-width: 460px; font-size: 14.5px; }
.job-pairs { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 6px; padding: 14px 16px 20px; }
.job-pair { margin: 0; text-align: center; }
.pair-art { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 0; height: 200px; }
.pair-art::after { content: ''; position: absolute; left: 50%; bottom: 10px; width: 170px; height: 26px; transform: translateX(-50%); border-radius: 50%;
	background: radial-gradient(closest-side, var(--class-glow, rgba(111,183,255,.4)), transparent); z-index: 0; }
.pair-art img { position: relative; z-index: 1; width: 120px; height: auto; margin: 0 -14px; image-rendering: pixelated; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .5)); }
.job-pair figcaption b { display: block; font: 700 17px var(--head); color: var(--gold); }
.job-pair figcaption span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.class-page .class-feature { grid-template-columns: minmax(240px, .8fr) 1.2fr; align-items: center; }
.class-page .class-feature .family-head { text-align: left; padding: 26px clamp(22px, 4vw, 44px); }
.class-page .class-feature .family-head p { max-width: none; margin: 10px 0; }
.job-family.expanded { margin-top: 20px; }
.job-family.expanded .job-pairs { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
/* Classes page carousel: chibi pairs popping out of pastel cards (native scroll-snap, no per-frame JS) */
.class-carousel { position: relative; min-width: 0; }
.class-page { --art-h: clamp(190px, 31vh, 320px); --pop: calc(var(--art-h) * -.29); }
.page-head.class-head { padding: 18px 24px 0; }
.page-head.class-head h1 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 2px; }
.page-head.class-head .eyebrow { margin-bottom: 2px; max-width: none; }
.page-head.class-head .class-sub { font-size: 15px; max-width: 820px; }
.cc-track { position: relative; z-index: 1; display: flex; gap: 22px; margin: 0; padding: calc(var(--pop) * -1) 16px 14px; scroll-padding-inline: 16px; list-style: none; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; }
.cc-track::-webkit-scrollbar { display: none; }
.cc-track:focus-visible { box-shadow: inset 0 0 0 2px var(--ice2); border-radius: 18px; }
.cc-slide { flex: 0 0 min(340px, 84vw); scroll-snap-align: start; }
.cc-card { position: relative; display: flow-root; height: 100%; padding: 0 20px 14px; border-radius: 28px; text-align: center; color: #2c2540;
	background: radial-gradient(120% 80% at 50% 0%, #fff 0%, transparent 55%), var(--pastel, #e8e4ff); box-shadow: 0 18px 40px rgba(0, 0, 0, .35), inset 0 0 0 3px rgba(255, 255, 255, .55); }
.cc-art { display: block; width: 112%; max-width: none; height: var(--art-h); margin: var(--pop) -6% 0; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 10px 12px rgba(40, 30, 70, .28)); }
.cc-body h2 { margin: 2px 0 4px; font: 700 22px var(--head); color: #2c2540; }
.cc-family { margin: 10px 0 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(44, 37, 64, .62); }
.cc-path { margin: 0; font-size: 13px; line-height: 1.55; color: rgba(44, 37, 64, .8); }
.cc-ingame { display: inline-flex; align-items: flex-end; gap: 2px; margin-top: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; background: rgba(255, 255, 255, .55); }
.cc-ingame img { width: 26px; height: 42px; object-fit: contain; image-rendering: pixelated; }
.cc-ingame span { align-self: center; margin-left: 6px; font-size: 11px; font-weight: 700; color: rgba(44, 37, 64, .7); }
.cc-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 2px; padding: 0 16px; }
.cc-arrow { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: rgba(16, 30, 60, .8); color: var(--frost); font-size: 26px; line-height: 1; cursor: pointer; transition: transform .15s; }
.cc-arrow:hover { transform: scale(1.08); border-color: var(--gold); }
.cc-dots { flex: 0 1 420px; display: flex; flex-wrap: nowrap; justify-content: center; gap: 2px; min-width: 0; }
.cc-dots button { flex: 0 1 20px; min-width: 11px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.cc-dots button::before { content: ''; display: block; width: 8px; height: 8px; margin: auto; border-radius: 50%; background: rgba(220, 239, 255, .3); transition: transform .2s; }
.cc-dots button[aria-current="true"]::before { background: var(--gold); transform: scale(1.35); }
.class-druid-note { max-width: 900px; margin: 34px auto 0; padding: 26px clamp(20px, 4vw, 40px); text-align: center; }
.class-druid-note h2 { margin: 12px 0 8px; font: 700 clamp(22px, 3vw, 30px) var(--head); }
.class-druid-note p { color: var(--muted); margin: 0 0 16px; }
/* Classes carousel effects: transform/opacity only; the float and sparkles run on the current card alone */
.class-carousel::before { content: ''; position: absolute; left: 50%; top: 40px; width: min(900px, 120%); height: 420px; transform: translateX(-50%); border-radius: 50%;
	background: radial-gradient(closest-side, var(--cc-glow, #e8e4ff), transparent); opacity: .16; pointer-events: none; }
.cc-card { overflow: visible; transition: transform .35s cubic-bezier(.2, .8, .3, 1.2); }
.cc-card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
	box-shadow: 0 26px 50px rgba(0, 0, 0, .45), 0 0 0 3px rgba(255, 255, 255, .7), 0 0 34px var(--pastel); }
.cc-card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; overflow: hidden;
	background: linear-gradient(115deg, rgba(255, 255, 255, .5) 0%, transparent 32%, transparent 68%, rgba(255, 255, 255, .28) 100%); opacity: 0; transition: opacity .35s; }
.cc-slide:hover .cc-card { transform: translateY(-8px); }
.cc-slide:hover .cc-card::before { opacity: 1; }
.cc-slide:hover .cc-card::after { opacity: 1; }
.cc-art { transition: transform .4s cubic-bezier(.2, .8, .3, 1.3); }
.cc-slide:hover .cc-art { transform: scale(1.05) translateY(-6px); }
.cc-slide.is-active .cc-art { animation: cc-float 4.5s ease-in-out infinite; }
.cc-spark { position: absolute; width: 14px; height: 14px; pointer-events: none; opacity: 0; color: #fff;
	background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9)); }
.cc-spark:nth-child(1) { top: 8%; left: 10%; } .cc-spark:nth-child(2) { top: 22%; right: 8%; width: 10px; height: 10px; color: #fff4c2; }
.cc-spark:nth-child(3) { top: 52%; left: 6%; width: 9px; height: 9px; } .cc-spark:nth-child(4) { top: 4%; right: 26%; width: 11px; height: 11px; color: #ffe6f4; }
.cc-slide.is-active .cc-spark { animation: cc-twinkle 2.6s ease-in-out infinite; }
.cc-slide.is-active .cc-spark:nth-child(2) { animation-delay: .7s; } .cc-slide.is-active .cc-spark:nth-child(3) { animation-delay: 1.4s; } .cc-slide.is-active .cc-spark:nth-child(4) { animation-delay: 2s; }
.cc-sparks { position: absolute; inset: -60px 0 auto; height: 300px; pointer-events: none; z-index: 2; }
.cc-slide { animation: cc-in .6s cubic-bezier(.2, .8, .3, 1.1) both; }
.cc-slide:nth-child(2) { animation-delay: .08s; } .cc-slide:nth-child(3) { animation-delay: .16s; } .cc-slide:nth-child(4) { animation-delay: .24s; }
.cc-ingame img { transition: transform .25s; } .cc-ingame:hover img { transform: translateY(-4px); } .cc-ingame:hover img + img { transition-delay: .06s; }
.cc-arrow:active { transform: scale(.94); }
@keyframes cc-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes cc-twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 45% { opacity: 1; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.6) rotate(90deg); } }
@keyframes cc-in { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@media (hover: none) { .cc-slide:hover .cc-card, .cc-slide:hover .cc-art { transform: none; } .cc-slide:hover .cc-card::after, .cc-slide:hover .cc-card::before { opacity: 0; } }
@media (max-width: 560px) { .cc-track { padding-inline: calc((100% - min(340px, 84vw)) / 2); gap: 14px; } .cc-slide { scroll-snap-align: center; } }
@media (max-width: 820px) { .class-page .class-grid { grid-template-columns: 1fr; } .class-page .class-feature .family-head { text-align: center; } }
@media (max-width: 820px) { .class-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .class-feature { grid-template-columns: 1fr; } .class-feature .class-art { min-height: 190px; border-right: 0; border-bottom: 1px solid rgba(239,199,115,.2); } }
@media (max-width: 560px) { .class-grid { grid-template-columns: 1fr; } .class-feature { grid-column: auto; } }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px var(--body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--ice2); margin-bottom: 12px; }
.eyebrow::before, .eyebrow::after { content: ''; width: 22px; height: 1px; background: linear-gradient(90deg, transparent, var(--ice)); }
.eyebrow::after { transform: scaleX(-1); }
.section-head h2 { font-size: clamp(30px, 4.2vw, 46px); }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 0; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.card { background: linear-gradient(180deg, rgba(16, 30, 60, .82), rgba(9, 16, 34, .88)); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 26px; position: relative; }
.card:hover { border-color: var(--line); }
.divider { height: 1px; max-width: 1200px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--line), transparent); }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero-art { position: relative; width: 100%; aspect-ratio: 1672 / 941; max-height: 860px; overflow: hidden; background: #0b1530; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-art::after { content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(7, 13, 28, .18) 0%, rgba(7, 13, 28, .08) 30%, rgba(7, 13, 28, .22) 68%, rgba(7, 13, 28, .86) 100%); }
.particles { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.hero { --crest: min(869px, 77vw, 96vh); display: grid; }
.hero-art, .hero-main { grid-area: 1 / 1; }
.hero-art { aspect-ratio: auto; max-height: none; min-height: calc(100svh - 62px); }
.hero-main { position: relative; z-index: 2; width: 100%; align-self: center; padding-top: calc(var(--crest) * .145 + 20px); padding-bottom: 20px; }
.hero-card { position: relative; z-index: 2; max-width: 963px; margin: 0 auto; padding: calc(var(--crest) * .188 + 12px) 48px 26px; text-align: center; background: rgba(5, 10, 24, .68); border: 1px solid rgba(120, 190, 255, .2); border-radius: 24px; box-shadow: 0 18px 60px rgba(0, 0, 0, .26); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.hero-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
	background: linear-gradient(135deg, rgba(255, 210, 127, .35), rgba(111, 183, 255, .08) 35%, rgba(111, 183, 255, .08) 65%, rgba(159, 212, 255, .35));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hero-crest { position: absolute; z-index: 4; top: calc(var(--crest) * -.145); left: 50%; transform: translateX(-50%); width: var(--crest); height: auto; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .68)); pointer-events: none; }
.hero h1 { font-size: clamp(28px, min(3.4vw, 5.4vh), 44px); margin-bottom: 14px; }
.hero .eyebrow { margin-bottom: 12px; }
.hero .lead { font-size: clamp(13.5px, 1.05vw, 15px); color: var(--muted); max-width: none; margin: 0 auto 24px; line-height: 1.65; }
.hero .lead strong { color: var(--frost); }
.status { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px 10px; padding: 6px 12px; border-radius: 999px;
	background: rgba(4, 9, 20, .82); border: 1px solid var(--line); font-size: 13px; color: var(--muted); margin-bottom: 11px; }
.status b { color: var(--frost); font-weight: 700; }
.status .sep { width: 1px; height: 14px; background: var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dim); display: inline-block; flex: none; }
.dot.up { background: var(--good); box-shadow: 0 0 0 0 rgba(110, 227, 161, .6); animation: pulse 2.2s infinite; }
.dot.down { background: var(--bad); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(110, 227, 161, 0); } 100% { box-shadow: 0 0 0 0 rgba(110, 227, 161, 0); } }
.status .state { color: var(--frost); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 13px; }
.hero .cta .btn-lg { padding: 13px 28px; font-size: 16px; }
.hero-card .countdown { margin: 0 auto 18px; padding: 12px 18px; }
.hero-card .status { margin-bottom: 20px; }
.hero-card .cta { margin-bottom: 0; gap: 14px; }
.hero-card .rates { margin-top: 22px; gap: 8px; }
.hero-card .rates li { padding: 7px 4px 6px; }
.hero-card .rates b { font-size: clamp(18px, 1.8vw, 22px); }
.hero-card .rates span { font-size: 10.5px; letter-spacing: .8px; margin-top: 2px; }
.hero-card .nextup { margin-top: 14px; padding-top: 12px; }
.rates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.rates li { padding: 7px 6px 6px; border-radius: 12px; background: rgba(7, 14, 31, .64); border: 1px solid var(--line-soft); }
.rates b { display: block; font: 700 clamp(22px, 2.6vw, 30px)/1.1 var(--head); color: var(--gold); }
.rates span { display: block; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.blessing-banner { display: inline-flex; align-items: center; gap: 8px; margin: -10px auto 18px; padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
	color: #2a1a00; background: linear-gradient(90deg, #ffe7b3, var(--gold)); box-shadow: 0 0 24px rgba(255, 210, 127, .35); }
.nextup { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 13px; color: var(--muted); }
.nextup b { color: var(--frost); }
.nextup .soon { color: var(--gold); font-weight: 700; }
.discord-float { position: fixed; z-index: 30; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 0; padding: 6px; border: 1px solid rgba(207, 233, 255, .42); border-radius: 999px; color: #fff; background: linear-gradient(135deg, #5865f2, #3657c8); box-shadow: 0 10px 32px rgba(22, 39, 125, .42); animation: guild-float 3.4s ease-in-out infinite; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.discord-float:hover { animation-play-state: paused; border-color: rgba(207, 233, 255, .8); box-shadow: 0 14px 38px rgba(22, 39, 125, .58); }
.discord-float:focus-within { outline: 3px solid var(--ice2); outline-offset: 4px; }
.discord-toggle { display: grid; place-items: center; width: 50px; height: 50px; flex: none; padding: 12px; border: 0; border-radius: 50%; color: #fff; background: transparent; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.discord-toggle:hover { transform: scale(1.08); background: rgba(255, 255, 255, .14); }
.discord-toggle:focus-visible { outline: none; }
.discord-toggle svg { display: block; width: 28px; height: 28px; }
.discord-invite { display: block; max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; color: #fff; font-weight: 700; text-decoration: none; transition: max-width .28s ease, opacity .2s ease, padding .28s ease; }
.discord-invite:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.discord-float.is-open .discord-invite { max-width: 300px; padding: 0 16px 0 8px; opacity: 1; }
.discord-float.is-open .discord-toggle { background: rgba(255, 255, 255, .12); }
@keyframes guild-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- steps ---------- */
.steps-layout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: center; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.step::before { counter-increment: step; content: counter(step); width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
	font: 700 26px var(--head); color: #2a1a00; background: linear-gradient(180deg, #ffe7b3, var(--gold) 50%, var(--gold2)); box-shadow: 0 8px 22px rgba(224, 166, 64, .3); }
.step h3 { font-size: 20px; margin: 4px 0 6px; }
.step p { color: var(--muted); margin: 0 0 10px; }
.step .btn { margin-top: 2px; }
.kit { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.kit span { font-size: 12.5px; padding: 3px 10px; border-radius: 999px; background: rgba(111, 183, 255, .08); border: 1px solid var(--line-soft); color: var(--frost); }
.portrait { position: relative; display: flex; justify-content: center; }
.portrait::before { content: ''; position: absolute; left: 10%; right: 10%; bottom: 4%; height: 70%; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(111, 183, 255, .35), transparent); filter: blur(10px); }
.portrait img { position: relative; max-height: 520px; width: auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .55)); }
.portrait figcaption { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); width: max-content; max-width: 92%; text-align: center; padding: 10px 16px; font-size: 14px; }
.portrait figcaption b { display: block; font-family: var(--head); color: var(--gold); font-size: 15.5px; }

/* ---------- at a glance ---------- */
.glance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.glance h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; margin-bottom: 14px; }
.glance h3 svg { width: 26px; height: 26px; color: var(--gold); flex: none; }
.facts { margin: 0; display: grid; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; color: var(--frost); text-align: right; }
.facts dd.hl { color: var(--gold); }
/* World in numbers (#scale) */
.scale { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.scale li { padding: 22px 24px; }
.scale b { display: block; font: 700 clamp(28px, 3.2vw, 38px)/1.1 var(--head); color: var(--gold); }
.scale span { display: block; margin-top: 8px; font: 700 12.5px var(--body); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
@media (max-width: 960px) { .scale { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 420px) { .scale li { padding: 18px; } .scale span { letter-spacing: 1px; } }
/* Classic vs remastered slider (#remastered). --pos is set by home.js only while dragging; no animation. */
.compare { position: relative; max-width: 1100px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.compare-top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--gold); pointer-events: none; }
.compare-line::after { content: '\2039\00a0\203A'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--glass); border: 2px solid var(--gold); color: var(--gold); font: 700 20px/1 var(--body); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-range:focus-visible + .compare-line, .compare:focus-within .compare-line::after { outline: 2px solid var(--frost); outline-offset: 2px; }
.compare-tag { position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-soft); font: 700 12px var(--body); letter-spacing: 1.6px; text-transform: uppercase; color: var(--frost); pointer-events: none; }
.compare-tag-l { left: 14px; }
.compare-tag-r { right: 14px; color: var(--gold); }
.compare-note { text-align: center; margin: 14px 0 0; font-size: 14px; }
@media (max-width: 420px) { .compare-tag { top: 10px; padding: 4px 9px; font-size: 10.5px; } .compare-tag-l { left: 10px; } .compare-tag-r { right: 10px; } }

/* ---------- features (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.feat { grid-column: span 2; display: flex; flex-direction: column; overflow: hidden; }
.feat.wide { grid-column: span 6; }
.feat.big { grid-column: span 3; min-height: 440px; padding-right: 47%; }
.feat.big .art { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: 46%; object-fit: contain; object-position: bottom right; pointer-events: none;
	filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .6)); }
.feat.big::after { content: ''; position: absolute; right: 0; bottom: 0; width: 55%; height: 80%; background: radial-gradient(closest-side, rgba(111, 183, 255, .18), transparent); pointer-events: none; }
.feat.big.goldglow::after { background: radial-gradient(closest-side, rgba(255, 210, 127, .2), transparent); }
.feat h3 { font-size: 22px; margin-bottom: 10px; }
.feat p { color: var(--muted); }
.feat ul { margin: 0 0 6px; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 15px; }
.feat li { padding-left: 22px; position: relative; color: var(--text); }
.feat li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--ice); box-shadow: 0 0 8px var(--ice); }
.feat .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: var(--gold);
	background: linear-gradient(180deg, rgba(255, 210, 127, .16), rgba(255, 210, 127, .04)); border: 1px solid rgba(255, 210, 127, .3); }
.feat .icon svg { width: 26px; height: 26px; }
.tagline { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.feat .more { margin-top: auto; padding-top: 12px; font-size: 14px; color: var(--dim); }
.feat-photo { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; }
.feat-shot { margin: 0; }
.feat-shot img { display: block; width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--line); }
.feat-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--dim); }
@media (max-width: 960px) { .feat-photo { grid-template-columns: 1fr; gap: 18px; } }
/* mini visuals */
.cal { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin: 4px 0 14px; }
.cal i { aspect-ratio: 1; border-radius: 5px; background: rgba(111, 183, 255, .14); border: 1px solid var(--line-soft); }
.cal i.on { background: linear-gradient(180deg, #8ccaff, #3f86ea); border-color: transparent; }
.cal i.chest { background: linear-gradient(180deg, #ffe7b3, var(--gold2)); box-shadow: 0 0 12px rgba(255, 210, 127, .7); border-color: transparent; }
.auras { display: flex; gap: 22px; justify-content: center; margin: 6px 0 16px; }
.aura { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 700 13px/1.2 var(--body); color: var(--frost); position: relative; }
.aura b { display: block; font: 700 20px var(--head); }
.aura.frost { background: radial-gradient(circle, rgba(159, 212, 255, .28) 30%, transparent 70%); box-shadow: 0 0 30px rgba(111, 183, 255, .5), inset 0 0 20px rgba(159, 212, 255, .5); border: 1px solid rgba(159, 212, 255, .6); }
.aura.celestial { background: radial-gradient(circle, rgba(255, 210, 127, .28) 30%, transparent 70%); box-shadow: 0 0 30px rgba(255, 210, 127, .5), inset 0 0 20px rgba(255, 231, 179, .5); border: 1px solid rgba(255, 210, 127, .7); }
.aura.frost b { color: var(--ice2); } .aura.celestial b { color: var(--gold); }
.aura::before { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px dashed currentColor; opacity: .35; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chat { display: grid; gap: 8px; margin: 2px 0 14px; font-size: 14px; }
.chat div { padding: 8px 12px; border-radius: 12px; max-width: 92%; }
.chat .in { background: rgba(111, 183, 255, .1); border: 1px solid var(--line-soft); }
.chat .out { background: rgba(255, 210, 127, .1); border: 1px solid rgba(255, 210, 127, .25); justify-self: end; }
.chat small { display: block; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 1px; }
.path { display: flex; align-items: center; gap: 0; margin: 4px 0 16px; }
.path span { flex: 1; text-align: center; font: 700 13px var(--head); color: var(--frost); padding: 8px 0; border-radius: 10px; background: rgba(111, 183, 255, .1); border: 1px solid var(--line-soft); }
.path span:last-child { background: rgba(255, 210, 127, .14); border-color: rgba(255, 210, 127, .4); color: var(--gold); }
.path i { width: 14px; height: 2px; background: var(--line); flex: none; }
.games { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.games span { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 210, 127, .08); border: 1px solid rgba(255, 210, 127, .25); color: #ffe7b3; }

/* ---------- plaza ---------- */
.plaza { display: grid; grid-template-columns: 1fr 1.25fr; gap: 30px; align-items: center; overflow: hidden; }
.plaza-art img { width: 100%; max-width: 560px; margin: 0 auto; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)); }
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.services li { padding: 12px 14px; border-radius: 12px; background: rgba(111, 183, 255, .05); border: 1px solid var(--line-soft); font-size: 14.5px; color: var(--muted); }
.services b { display: block; color: var(--frost); font-size: 15px; }

/* ---------- events ---------- */
.events-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-title h3 { margin: 0; font-size: 21px; }
.clock { font-size: 14px; color: var(--muted); }
.clock b { color: var(--frost); font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 560px; overflow-y: auto; padding-right: 4px; }
.timeline li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 11px 14px; border-radius: 12px; background: rgba(111, 183, 255, .04); border: 1px solid var(--line-soft); }
.timeline time { font: 700 17px var(--head); color: var(--frost); font-variant-numeric: tabular-nums; }
.timeline .ev-name { font-weight: 700; }
.timeline .ev-note { display: block; font-size: 13px; color: var(--muted); }
.timeline .when { font-size: 13px; font-weight: 700; color: var(--ice2); white-space: nowrap; }
.timeline li.past { opacity: .45; }
.timeline li.past .when { color: var(--dim); font-weight: 500; }
.timeline li.live { border-color: rgba(110, 227, 161, .6); background: rgba(110, 227, 161, .08); }
.timeline li.live .when { color: var(--good); }
.timeline li.next { border-color: rgba(255, 210, 127, .55); background: rgba(255, 210, 127, .07); }
.timeline li.next .when { color: var(--gold); }
.tag { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; margin-right: 6px; vertical-align: 2px; }
.tag-palaro { background: rgba(255, 138, 196, .16); color: #ffb3d9; }
.tag-hunt { background: rgba(159, 212, 255, .16); color: var(--ice2); }
.tag-exp { background: rgba(110, 227, 161, .16); color: var(--good); }
.tag-boss { background: rgba(255, 138, 138, .16); color: #ffb0b0; }
.tag-woe { background: rgba(255, 210, 127, .16); color: var(--gold); }
.tag-feature { background: rgba(159, 212, 255, .16); color: var(--ice2); }
.tag-event { background: rgba(255, 138, 196, .16); color: #ffb3d9; }
.tag-fix { background: rgba(110, 227, 161, .16); color: var(--good); }
.tag-update { background: rgba(255, 210, 127, .16); color: var(--gold); }
.upnext { text-align: center; padding: 30px 26px; }
.upnext .label { font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--ice2); font-weight: 700; }
.upnext h3 { font-size: 28px; margin: 8px 0 4px; }
.upnext .where { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.count { display: flex; justify-content: center; gap: 10px; }
.count div { min-width: 70px; padding: 10px 6px; border-radius: 12px; background: rgba(7, 13, 28, .7); border: 1px solid var(--line); }
.count b { display: block; font: 700 30px/1 var(--head); color: var(--gold); font-variant-numeric: tabular-nums; }
.count span { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.weekly { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; text-align: left; }
.weekly li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14.5px; }
.weekly li:last-child { border: 0; }
.weekly span { color: var(--muted); text-align: right; }
.tzline { font-size: 13px; color: var(--dim); margin-top: 12px; }

/* ---------- WoE ---------- */
.woe-top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; margin-bottom: 22px; }
.woe-next { text-align: center; padding: 34px 26px; background:
	radial-gradient(500px 220px at 50% 0%, rgba(255, 210, 127, .14), transparent 70%), linear-gradient(180deg, rgba(16, 30, 60, .85), rgba(9, 16, 34, .9)); }
.woe-next.live { border-color: rgba(255, 138, 138, .7); box-shadow: 0 0 40px rgba(255, 138, 138, .2); }
.woe-next .label { font-size: 12.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.woe-next h3 { font-size: 30px; margin: 8px 0 6px; }
.woe-next p { color: var(--muted); }
.woe-sched { display: grid; gap: 14px; }
.woe-sched .card { padding: 20px 22px; }
.woe-sched h4 { font-size: 18px; margin: 0 0 2px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.woe-sched h4 span { font: 700 14px var(--body); color: var(--gold); }
.woe-sched p { margin: 0; color: var(--muted); font-size: 14.5px; }
.realms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.realm { padding: 18px 20px; }
.realm summary { list-style: none; cursor: default; margin: 0 0 10px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.realm summary::-webkit-details-marker { display: none; }
.realm summary h4 { font-size: 17px; margin: 0; }
.realm summary small { font: 600 12px var(--body); color: var(--dim); letter-spacing: 1px; text-transform: uppercase; text-align: right; }
.realm summary small b { color: var(--gold); }
.castles { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.castles li { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 6px 10px; border-radius: 8px; background: rgba(111, 183, 255, .04); }
.castles .owner { font-weight: 700; color: var(--gold); text-align: right; }
.castles .owner.none { color: var(--dim); font-weight: 500; font-style: italic; }
.woe-note { text-align: center; color: var(--muted); margin: 18px 0 0; font-size: 15px; }

/* ---------- hall of fame ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.tabs button { font: 700 14.5px var(--body); color: var(--muted); padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-soft); background: rgba(111, 183, 255, .05); cursor: pointer; }
.tabs button:hover { color: var(--frost); border-color: var(--line); }
.tabs button[aria-selected=true] { color: #2a1a00; background: linear-gradient(180deg, #ffe7b3, var(--gold) 50%, var(--gold2)); border-color: transparent; }
.fame-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: stretch; margin-bottom: 22px; }
.mvp-card { display: flex; flex-direction: column; min-height: 0; }
.mvp-card .mvp-list { flex: 1; max-height: 460px; overflow-y: auto; padding-right: 4px; align-content: start; scrollbar-width: thin; }
.mvp-foot { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--muted); }
.live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #ff8a8a; box-shadow: 0 0 8px rgba(255, 138, 138, .7); vertical-align: 1px; }
.founders-wide { margin-bottom: 22px; }
.founders-wide .panel-title { align-items: flex-start; }
.founders-wide .panel-title .hint { margin: 6px 0 0; max-width: 640px; }
.chip-tag:empty { display: none; }
.chip-tag { flex: none; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255, 210, 127, .35); background: rgba(255, 210, 127, .08); color: var(--gold); font-size: 12.5px; font-weight: 700; letter-spacing: .4px; }
.fame { display: grid; grid-template-columns: 1.1fr 1fr; gap: 26px; align-items: center; padding: 30px; }
.fame-desc { grid-column: 1 / -1; margin: -8px 0 0; color: var(--muted); font-size: 14.5px; text-align: center; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 10px; align-items: end; }
.podium .spot { text-align: center; }
.podium .crest { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font: 700 18px var(--head); color: #0b1530;
	background: linear-gradient(180deg, #dcefff, #8fb5dd); box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); }
.podium .p1 .crest { width: 66px; height: 66px; font-size: 22px; background: linear-gradient(180deg, #fff1cc, var(--gold) 50%, var(--gold2)); box-shadow: 0 0 26px rgba(255, 210, 127, .55); }
.podium .p3 .crest { background: linear-gradient(180deg, #ffd9b3, #c98b55); }
.podium .pname { font-weight: 800; color: var(--frost); font-size: 15px; overflow-wrap: anywhere; line-height: 1.25; }
.podium .pjob { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; min-height: 1.3em; }
.podium .block { border-radius: 12px 12px 4px 4px; display: grid; place-items: center; padding: 10px 4px; border: 1px solid var(--line-soft);
	background: linear-gradient(180deg, rgba(159, 212, 255, .22), rgba(111, 183, 255, .05)); }
.podium .block b { font: 700 24px var(--head); color: var(--frost); }
.podium .block span { font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.podium .p1 .block { height: 150px; background: linear-gradient(180deg, rgba(255, 210, 127, .35), rgba(224, 166, 64, .06)); border-color: rgba(255, 210, 127, .45); }
.podium .p1 .block b { color: var(--gold); }
.podium .p2 .block { height: 112px; }
.podium .p3 .block { height: 88px; background: linear-gradient(180deg, rgba(255, 190, 140, .22), rgba(201, 139, 85, .05)); }
.podium .empty .crest { background: rgba(111, 183, 255, .12); color: var(--dim); box-shadow: none; }
.podium .empty .pname { color: var(--dim); font-weight: 600; }
.podium .portrait-wrap { position: relative; width: min(100%, 144px); margin-left: auto; margin-right: auto; display: flex; align-items: flex-end; justify-content: center; margin-bottom: 6px; }
.podium .sitter { width: 100%; height: auto; image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
.ranklist { list-style: none; margin: 0; padding: 0; counter-reset: rk 3; display: grid; gap: 6px; }
.ranklist li { counter-increment: rk; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(111, 183, 255, .04); border: 1px solid var(--line-soft); font-size: 14.5px; }
.ranklist li::before { content: counter(rk); font: 700 14px var(--head); color: var(--muted); text-align: center; }
.ranklist .rn { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranklist .rj { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.ranklist .rv { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.ranklist li.ghost { opacity: .4; }
.ranklist li.open-spots { counter-increment: none; grid-template-columns: 30px 1fr; background: none; border-style: dashed; color: var(--muted); }
.ranklist li.open-spots::before { content: '+'; color: var(--gold); }
.ranklist li.open-spots .rn { font-weight: 600; }
.event-bar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.event-pick select { appearance: none; -webkit-appearance: none; min-width: 190px; padding: 8px 34px 8px 14px; border-radius: 999px; border: 1px solid var(--line);
	background: #0d172a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffd27f' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--frost); font: 600 14px var(--body); cursor: pointer; }
.event-pick select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: #0d172a; }
.seg button { padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: 600 13px var(--body); cursor: pointer; }
.seg button[aria-pressed="true"] { background: rgba(255, 210, 127, .16); color: var(--gold); }
.event-latest { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.event-latest h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.event-latest ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; font-size: 13.5px; }
.event-latest b { color: var(--frost); }
.event-latest small { color: var(--muted); margin-left: 6px; }
.founders .hint { margin: 2px 0 14px; font-size: 13px; }
.founders-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.founders-list li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 10px;
	background: rgba(111, 183, 255, .04); border: 1px solid var(--line-soft); }
.founders-list li.claimed { background: rgba(255, 210, 127, .07); border-color: rgba(255, 210, 127, .35); }
.founders-list img { width: 40px; height: 44px; object-fit: contain; object-position: center bottom; image-rendering: pixelated; }
.founders-list .fr-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(111, 183, 255, .08); color: var(--dim); font-size: 18px; }
.founders-list .claimed .fr-icon { color: var(--gold); background: rgba(255, 210, 127, .12); }
.founders-list .fr-text { min-width: 0; line-height: 1.3; }
.founders-list .fr-title { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.founders-list b { display: block; color: var(--dim); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.founders-list .claimed b { color: var(--gold); }
.founders-list small { color: var(--muted); font-size: 12px; }
/* wide rows: milestones as equal tiles, Founders as member cards */
.race-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.race-grid li { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; padding: 18px 12px 16px; border-radius: 14px; transition: border-color .2s, transform .2s; }
.race-grid li:hover { transform: translateY(-2px); border-color: var(--line); }
.race-grid .fr-icon { width: 46px; height: 46px; font-size: 20px; }
.race-grid img { width: 46px; height: 52px; }
.race-grid b { max-width: 100%; }
.club-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.club-grid li { padding: 10px 14px; border-radius: 14px; grid-template-columns: 52px 1fr; }
.club-grid img { width: 52px; height: 58px; }
.club-grid .fr-icon { width: 46px; height: 46px; }
.fame-empty { grid-column: 1 / -1; text-align: center; padding: 20px 10px 6px; }
.fame-empty .big { font: 700 26px var(--head); color: var(--frost); margin-bottom: 6px; }
.fame-empty p { color: var(--muted); max-width: 440px; margin: 0 auto 16px; }
.mvp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mvp-list li { padding: 10px 12px; border-radius: 10px; background: rgba(255, 138, 138, .05); border: 1px solid rgba(255, 138, 138, .18); font-size: 14px; }
.mvp-list b { color: #ffc2c2; }
.mvp-list small { display: block; color: var(--muted); font-size: 12.5px; }
.mvp-empty { text-align: center; color: var(--muted); padding: 16px 8px; font-size: 14.5px; }
.mvp-empty b { display: block; font-family: var(--head); font-size: 18px; color: var(--frost); margin-bottom: 4px; }

/* ---------- meter / donate promo ---------- */
.support { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.meter-big .total { font: 700 clamp(30px, 4vw, 42px)/1.1 var(--head); color: var(--gold); }
.meter-big .total small { font: 600 15px var(--body); color: var(--muted); }
.meter { height: 16px; border-radius: 999px; background: rgba(7, 13, 28, .8); border: 1px solid var(--line); overflow: hidden; margin: 16px 0 8px; }
.meter > div { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #3f86ea, var(--ice2), #fff1cc); box-shadow: 0 0 16px rgba(159, 212, 255, .7); transition: width 1s ease; }
.goals { position: relative; height: 20px; font-size: 12.5px; color: var(--muted); }
.goals span { position: absolute; top: 0; white-space: nowrap; }
.goals .hit { color: var(--good); }
.goal-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.goal-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; background: rgba(111, 183, 255, .05); border: 1px solid var(--line-soft); font-size: 14.5px; }
.goal-list li b { font-family: var(--head); color: var(--frost); }
.goal-list li.hit { border-color: rgba(110, 227, 161, .5); }
.goal-list li.hit b { color: var(--good); }
.promo { background: radial-gradient(500px 300px at 100% 0%, rgba(255, 210, 127, .16), transparent 70%), linear-gradient(180deg, rgba(16, 30, 60, .85), rgba(9, 16, 34, .9)); display: flex; flex-direction: column; }
.promo h3 { font-size: 26px; }
.promo p { color: var(--muted); }
.bless-steps { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; gap: 10px; }
.bless-steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.bless-steps svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 2px; }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tiers span { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; background: rgba(255, 210, 127, .1); border: 1px solid rgba(255, 210, 127, .3); color: #ffe7b3; }
.promo .actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.promo .fine { font-size: 13px; color: var(--dim); margin: 14px 0 0; }

/* ---------- news ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news article { display: flex; flex-direction: column; }
.news .meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); margin-bottom: 10px; }
.news h3 { font-size: 19px; margin-bottom: 8px; line-height: 1.3; }
.news p { color: var(--muted); font-size: 15px; margin: 0; white-space: pre-line; }
.news article:first-child { grid-column: span 2; background: radial-gradient(600px 260px at 0% 0%, rgba(111, 183, 255, .14), transparent 70%), linear-gradient(180deg, rgba(16, 30, 60, .82), rgba(9, 16, 34, .88)); }
.news article:first-child h3 { font-size: 24px; }
.news article:first-child p { font-size: 16px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.faq details { border-radius: 14px; border: 1px solid var(--line-soft); background: rgba(12, 22, 46, .7); }
.faq details[open] { border-color: var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 50px 18px 20px; font-weight: 700; color: var(--frost); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 26px var(--body); color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* ---------- final CTA ---------- */
.final { text-align: center; padding: 56px 24px; overflow: hidden; position: relative;
	background: radial-gradient(600px 260px at 50% 0%, rgba(255, 210, 127, .18), transparent 70%), linear-gradient(180deg, rgba(16, 30, 60, .9), rgba(9, 16, 34, .92)); }
.final h2 { font-size: clamp(28px, 4vw, 42px); }
.final p { color: var(--muted); font-size: 17px; max-width: 600px; margin: 0 auto 24px; }

/* ---------- footer ---------- */
.footer { margin-top: 40px; padding: 56px 0 28px; border-top: 1px solid var(--line-soft); background: rgba(5, 9, 20, .7); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; max-width: 340px; margin: 12px 0 16px; }
.footer nav { display: flex; flex-direction: column; gap: 8px; }
.footer h3 { font-size: 14px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--gold); margin: 6px 0 6px; font-family: var(--body); }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.footer nav a:hover { color: var(--frost); }
.footer-note { font-size: 13.5px; color: var(--dim); }
.footer-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; font-size: 13px; color: var(--dim); }
.footer-legal p { margin: 0; }

/* ---------- sub-pages ---------- */
.page-head { text-align: center; padding: 56px 24px 36px; position: relative; }
.page-head img { width: 84px; height: 84px; margin: 0 auto 10px; filter: drop-shadow(0 0 16px rgba(111, 183, 255, .6)); }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); margin-bottom: 8px; }
.page-head p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto; }
.page { max-width: 860px; margin: 0 auto; padding: 0 24px 40px; }
.page.narrow { max-width: 560px; }
.form-card { padding: 30px; }
.form-card + .form-card, .form-card + .section-sub, .section-sub + .form-card { margin-top: 22px; }
.form-card h2, .section-sub h2 { font-size: 22px; margin: 0 0 6px; }
.section-sub { margin-top: 34px; }
label { display: block; margin: 16px 0 7px; font-size: 14px; font-weight: 600; color: var(--muted); }
input, select, textarea {
	width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(5, 10, 22, .75); color: var(--text); font: inherit;
	transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover { border-color: rgba(159, 212, 255, .5); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(111, 183, 255, .25); }
input[type=file] { padding: 10px; }
input[type=date] { color-scheme: dark; }
select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, var(--ice2) 50%), linear-gradient(135deg, var(--ice2) 50%, transparent 50%);
	background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hint { font-size: 13px; color: var(--dim); margin-top: 6px; }
.form-card .btn-block { margin-top: 24px; }
.msg { margin-top: 14px; min-height: 1.5em; text-align: center; font-size: 14.5px; }
.msg.bad, .bad { color: var(--bad); } .msg.good, .good { color: var(--good); } .warn { color: var(--warn); }
.notice { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; font-size: 14.5px; background: rgba(63, 134, 234, .14); border: 1px solid rgba(111, 183, 255, .45); }
.notice.warn { background: rgba(255, 210, 127, .1); border-color: rgba(255, 210, 127, .45); color: var(--warn); }
.notice b { color: var(--frost); }
.box { margin-top: 18px; padding: 18px; border-radius: 14px; background: rgba(5, 10, 22, .55); border: 1px solid var(--line-soft); }
.box h3 { font-size: 17px; margin: 0 0 6px; }
.copyrow { display: flex; gap: 8px; margin-top: 10px; }
.copyrow input { flex: 1; min-width: 0; font-size: 14px; padding: 9px 12px; }
.share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.code { font: 700 26px/1.2 var(--head); color: var(--gold); letter-spacing: 3px; text-align: center; margin: 6px 0; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--dim); font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
.scroll { overflow-x: auto; }
.st { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: rgba(111, 183, 255, .1); white-space: nowrap; }
.st.approved, .st.active { color: var(--good); } .st.rejected { color: var(--bad); } .st.pending, .st.flagged { color: var(--warn); }
.alt { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--muted); }
.alt a { font-weight: 700; text-decoration: none; }
.alt a:hover { text-decoration: underline; }
.alt a + a::before { content: '·'; color: var(--dim); margin: 0 10px; display: inline-block; }
.perks { padding: 0; margin: 6px 0; list-style: none; display: grid; gap: 10px; font-size: 15px; color: var(--muted); }
.perks li { padding-left: 24px; position: relative; }
.perks li::before { content: ''; position: absolute; left: 5px; top: .62em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); }
.perks b { color: var(--frost); }
.pkgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pkg { position: relative; margin: 0; color: var(--text); font-weight: 500; }
.pkg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pkg span { display: block; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line-soft); background: rgba(5, 10, 22, .6); text-align: center; cursor: pointer; font-size: 14px; transition: border-color .15s, background .15s; }
.pkg span:hover { border-color: var(--line); }
.pkg b { display: block; font: 700 19px var(--head); color: var(--gold); }
.pkg input:checked + span { border-color: var(--gold); background: rgba(255, 210, 127, .08); box-shadow: 0 0 0 3px rgba(255, 210, 127, .18); }
.pkg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.pkg small { display: block; margin-top: 2px; font-size: 12px; color: var(--good); }
.rate { margin: -2px 0 12px; }
.custom { margin-top: 10px; }
.custom input { margin-top: 6px; }
.youget { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(5, 10, 22, .6); border: 1px solid var(--line-soft); font-size: 14.5px; }
.youget b { color: var(--gold); font-size: 16px; }
.qr { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.qr img { width: 220px; height: 220px; border-radius: 12px; background: #fff; object-fit: contain; }
.qr .amount { font: 700 26px var(--head); color: var(--gold); }
.methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stepnum { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; margin-right: 10px; font: 700 16px var(--head); color: #2a1a00;
	background: linear-gradient(180deg, #ffe7b3, var(--gold) 50%, var(--gold2)); vertical-align: 3px; }
.milestones td:first-child { font-weight: 700; color: var(--frost); }
.milestones td { color: var(--muted); }

/* register: split layout */
.split { max-width: 1160px; margin: 40px auto 20px; padding: 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; }
.split-art { position: relative; border-radius: var(--r) 0 0 var(--r); overflow: hidden; min-height: 640px; border: 1px solid var(--line); border-right: 0; }
.split-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 3% 50%; }
.split-art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7, 13, 28, .1) 0%, rgba(7, 13, 28, .35) 45%, rgba(7, 13, 28, .95) 100%); }
.split-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 34px; }
.split-copy h2 { font-size: 32px; margin-bottom: 10px; }
.split-copy .perks { color: #c9d7ea; }
.split-form { border-radius: 0 var(--r) var(--r) 0; padding: 40px 40px 32px; }
.split-form h1 { font-size: 32px; margin-bottom: 4px; }
.split-form .sub { color: var(--muted); margin-bottom: 18px; }
.done-head { text-align: center; }
.done-head svg { width: 64px; height: 64px; color: var(--good); margin: 0 auto 8px; display: block; }

.notfound { max-width: 520px; margin: 18vh auto; text-align: center; padding: 0 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
	.feat.big { grid-column: span 6; }
	.feat { grid-column: span 3; }
	.feat.wide { grid-column: span 6; }
	.realms { grid-template-columns: repeat(2, 1fr); }
	.fame-layout { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
	.section { padding: 72px 0; }
	.steps-layout, .events-layout, .woe-top, .support, .plaza { grid-template-columns: 1fr; }
	.portrait img { max-height: 420px; }
	.glance { grid-template-columns: 1fr 1fr; }
	.glance .card:last-child { grid-column: span 2; }
	.news { grid-template-columns: 1fr 1fr; }
	.faq { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: span 2; }
	.split { grid-template-columns: 1fr; }
	.split-art { min-height: 380px; border-radius: var(--r) var(--r) 0 0; border-right: 1px solid var(--line); border-bottom: 0; }
	.split-form { border-radius: 0 0 var(--r) var(--r); }
	.plaza-art img { max-width: 440px; }
}
@media (max-width: 700px) {
	.wrap { padding: 0 16px; }
	.section { padding: 60px 0; }
	.section-head { margin-bottom: 32px; }
	.section-head p { font-size: 16px; }
	.hero { display: block; }
	.hero-art { aspect-ratio: 1672 / 941; min-height: 0; }
	.hero-main { margin-top: -24px; padding: 0 16px; }
	.hero { --crest: min(438px, 100vw); }
	.hero-card { margin: 0; padding: 90px 18px 22px; background: rgba(5, 10, 24, .84); border-color: var(--line-soft); border-radius: 18px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
	.hero-crest { top: -60px; }
	.rates { grid-template-columns: repeat(6, 1fr); gap: 8px; }
	.rates li { grid-column: span 2; }
	.rates li:nth-child(4), .rates li:nth-child(5) { grid-column: span 3; }
	.portrait img { max-height: 340px; }
	.realm summary { cursor: pointer; margin: 0; }
	.realm[open] summary { margin-bottom: 10px; }
	.realm summary::after { content: '+'; color: var(--gold); font-size: 20px; line-height: 1; margin-left: 4px; }
	.realm[open] summary::after { content: '–'; }
	.rates span { font-size: 10.5px; letter-spacing: .6px; }
	.cta .btn { flex: 1 1 100%; }
	.status { border-radius: 16px; padding: 10px 14px; font-size: 13.5px; }
	.status .sep { display: none; }
	.discord-float { right: 14px; bottom: 14px; }
	.discord-float.is-open .discord-invite { max-width: min(64vw, 250px); padding-right: 12px; font-size: 13px; }
	.glance, .bento, .news, .realms { grid-template-columns: 1fr; }
	.glance .card:last-child, .news article:first-child { grid-column: auto; }
	.feat, .feat.big, .feat.wide { grid-column: auto; }
	.feat.big { min-height: 0; padding-right: 26px; padding-bottom: 300px; }
	.feat.big .art { height: 300px; max-width: 80%; right: 50%; transform: translateX(50%); }
	.feat.big::after { width: 100%; height: 300px; }
	.card { padding: 22px 18px; }
	.services { grid-template-columns: 1fr; }
	.fame { grid-template-columns: 1fr; padding: 22px 16px; }
	.timeline li { grid-template-columns: 54px 1fr; }
	.timeline .when { grid-column: 2; }
	.count div { min-width: 60px; }
	.count b { font-size: 24px; }
	.footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
	.page-head { padding: 40px 16px 26px; }
	.page { padding: 0 16px 30px; }
	.form-card { padding: 22px 18px; }
	.split { padding: 0 16px; margin-top: 20px; }
	.split-art { min-height: 0; }
	.split-art > img { position: relative; height: 210px; object-position: 0% 30%; }
	.split-art::after { bottom: auto; height: 210px; background: linear-gradient(180deg, rgba(7, 13, 28, 0) 50%, rgba(10, 18, 38, .95) 100%); }
	.split-copy { position: relative; padding: 4px 18px 22px; background: rgba(10, 18, 38, .95); }
	.split-copy h2 { font-size: 24px; }
	.split-copy .perks { font-size: 14px; gap: 6px; }
	.split-form { padding: 26px 18px; }
	.goal-list li { grid-template-columns: 1fr; gap: 2px; }
	.footer-legal { flex-direction: column; }
}
@media (max-width: 420px) { .row, .methods { grid-template-columns: 1fr; } .podium .block b { font-size: 20px; } }

@media (prefers-reduced-motion: reduce) {
	.discord-float { animation: none; }
	.discord-invite { transition: none; }
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Ko-fi payment box (donate page) */
.kofi-steps { margin: 10px 0 14px; padding-left: 18px; line-height: 1.6; }
.qr-hint { width: 220px; min-height: 220px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 18px; border: 2px dashed rgba(255,255,255,.18); border-radius: 12px; color: var(--muted, #9aa5c2); font-size: 14px; line-height: 1.5; }
.qr-hint[hidden] { display: none; }

/* Player guide */
.guide-page { max-width: 1040px; }
.guide-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 14px 18px; margin-bottom: 18px; }
.guide-index a { color: var(--frost); font-size: 14px; font-weight: 600; }
.guide-section { padding: clamp(20px, 4vw, 34px); margin: 16px 0; scroll-margin-top: 90px; }
.guide-section h2 { font-size: clamp(23px, 3vw, 30px); margin: 0 0 14px; }
.guide-section h3 { color: var(--frost); font: 700 17px var(--body); margin: 2px 0 8px; }
.guide-section p, .guide-section li { color: var(--muted); line-height: 1.7; }
.guide-section p { margin: 8px 0 14px; }
.guide-section .eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; margin: 0 0 6px; text-transform: uppercase; }
.guide-section a { color: var(--ice2); }
.guide-section code { color: var(--frost); white-space: nowrap; }
.guide-steps { list-style: none; counter-reset: guide; margin: 18px 0; padding: 0; display: grid; gap: 12px; }
.guide-steps li { counter-increment: guide; display: grid; grid-template-columns: 42px 1fr; gap: 0 12px; align-items: start; }
.guide-steps li::before { content: counter(guide, decimal-leading-zero); color: var(--gold); font: 700 15px var(--body); padding-top: 2px; }
.guide-steps b { color: var(--frost); }
.guide-steps span { grid-column: 2; }
.guide-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.guide-columns p { margin: 0; }
.guide-note { border-left: 3px solid var(--gold); padding: 8px 14px; background: rgba(255,255,255,.035); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14px; }
.guide-section details { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.guide-section details summary { cursor: pointer; color: var(--frost); font-weight: 700; }
.guide-section details p { margin-bottom: 0; }
@media (max-width: 700px) { .guide-columns { grid-template-columns: 1fr; } .guide-index { justify-content: flex-start; gap: 8px 14px; } }

/* Episode and World Tree quest walkthroughs */
.quest-guide-page { max-width: 1040px; }
.quest-search { padding: 20px 24px; margin-bottom: 18px; }
.quest-search label { display: block; color: var(--frost); font-weight: 700; margin-bottom: 8px; }
.quest-search input { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; color: var(--text); background: rgba(4, 10, 24, .8); font: 500 16px var(--body); }
.quest-search input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.quest-search .guide-note { margin: 12px 0 0; }
.quest-earlier { margin: 24px 0 0; padding: 18px 22px; }
.quest-earlier > summary { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; cursor: pointer; list-style: none; }
.quest-earlier > summary::-webkit-details-marker { display: none; }
.quest-earlier > summary::after { content: '+'; color: var(--gold); font-size: 23px; font-weight: 700; margin-left: 2px; }
.quest-earlier[open] > summary::after { content: '−'; }
.quest-earlier > summary .eyebrow { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.quest-earlier > summary #quest-earlier-title { color: var(--text); font-family: var(--head); font-size: clamp(19px, 2.6vw, 25px); font-weight: 700; }
.quest-earlier-hint { color: var(--muted); font-size: 13px; margin-left: auto; }
.quest-earlier[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 16px; padding-bottom: 14px; }
.quest-earlier > .guide-note { max-width: 900px; line-height: 1.65; }
.quest-earlier-groups { display: grid; gap: 14px; margin-top: 16px; }
.quest-earlier-group { padding: clamp(18px, 3vw, 26px); }
.quest-earlier-group h3 { color: var(--frost); font-size: 20px; margin: 0 0 8px; }
.quest-earlier-group > .guide-note { line-height: 1.6; margin: 0 0 14px; }
.quest-earlier-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.quest-earlier-card { border: 1px solid var(--line); border-radius: var(--r-sm); background: rgba(4, 10, 24, .48); padding: 15px; }
.quest-earlier-card h4 { color: var(--text); font-size: 16px; line-height: 1.4; margin: 0 0 7px; }
.quest-earlier-card p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.quest-earlier-card .quest-coverage-status { color: var(--gold); font-size: 12px; font-weight: 700; margin-top: 10px; }
.quest-earlier [hidden], .quest-earlier-card[hidden] { display: none; }
.quest-routes { display: grid; gap: 16px; }
.quest-route { padding: clamp(20px, 4vw, 32px); }
.quest-route h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 14px; }
.quest-route > .eyebrow { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; margin: 0 0 6px; text-transform: uppercase; }
.quest-route-info p { color: var(--muted); line-height: 1.6; margin: 7px 0; }
.quest-route-info .guide-note { font-size: 14px; border-left: 3px solid var(--gold); padding: 8px 12px; background: rgba(255,255,255,.035); }
.quest-arcs { display: grid; gap: 8px; margin: 18px 0; }
.quest-arc { border: 1px solid var(--line-soft); border-radius: var(--r-sm); background: rgba(4,10,24,.32); }
.quest-arc summary { cursor: pointer; padding: 13px 16px; color: var(--frost); font-weight: 700; }
.quest-arc[open] summary { border-bottom: 1px solid var(--line-soft); }
.quest-step-list { margin: 0; padding: 12px 20px 16px 52px; color: var(--muted); }
.quest-step-list li { padding: 4px 0 4px 5px; line-height: 1.6; scroll-margin-top: 80px; }
.quest-step-list li::marker { color: var(--gold); font-weight: 700; }
.quest-step-list li[hidden] { display: none; }
.quest-optional { border-top: 1px solid var(--line-soft); margin: 14px 0 0; padding-top: 14px; color: var(--muted); line-height: 1.65; }
.quest-route[hidden] { display: none; }
@media (max-width: 700px) { .quest-search { padding: 18px; } .quest-earlier { padding: 16px; } .quest-earlier-hint { flex-basis: 100%; margin-left: 0; } .quest-step-list { padding-left: 42px; } }

/* Grand Opening countdown (js/countdown.js) + vote page */
.countdown { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; max-width: 980px; margin: 18px auto 0; padding: 14px 18px; text-align: center; }
.countdown .cd-label { font: 700 15px var(--body); color: var(--gold); letter-spacing: .4px; }
.countdown .cd-time { font: 600 18px var(--body); color: var(--frost); font-variant-numeric: tabular-nums; }
.countdown .cd-time b { font-size: 22px; color: #fff; }
.countdown .cd-note { font-size: 14px; color: var(--ice2); }
.countdown .btn { animation: cd-blink 1.4s ease-in-out infinite; will-change: opacity, transform; }
.countdown .btn:hover { animation-play-state: paused; }
@keyframes cd-blink { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { .countdown .btn { animation: none; } }
.vote-list { display: grid; gap: 10px; margin-top: 16px; }
.vote-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: var(--r-sm); }

/* Home hero on short laptop screens: keep the whole card on the first screen */
@media (min-width: 701px) and (max-height: 1000px) {
	.hero { --crest: min(869px, 77vw, 86vh); }
	.hero h1 { font-size: clamp(24px, min(3.4vw, 4.4vh), 44px); margin-bottom: 8px; }
	.hero .eyebrow { margin-bottom: 4px; }
	.hero .lead { font-size: 14px; line-height: 1.55; }
	.hero .cta .btn-lg { padding: 11px 26px; }
	.hero-card .rates span { margin-top: 1px; }
	.hero-card .nextup { margin-top: 10px; padding-top: 8px; }
	.hero-main { align-self: start; padding-top: calc(var(--crest) * .145 - 1px); padding-bottom: 6px; }
	.hero-card { padding-bottom: 16px; }
	.hero-card .rates { margin-top: 14px; }
	.hero-card .rates li { padding: 5px 4px 4px; }
	.hero .lead { max-width: 800px; margin-bottom: 14px; }
	.hero-card .countdown { margin-bottom: 14px; padding: 8px 18px; }
	.hero-card .status { margin-bottom: 14px; }
	/* whole card on the first screen with the bigger crest (owner 2026-10-24): tighter rows, nothing removed */
	.hero-card { padding-top: calc(var(--crest) * .17 + 8px); padding-bottom: 20px; }
	.hero h1 { font-size: clamp(22px, min(3.2vw, 4vh), 40px); margin-bottom: 6px; line-height: 1.12; }
	.hero .lead { font-size: 14px; line-height: 1.5; margin-bottom: 14px; }
	.hero .cta .btn-lg { padding: 9px 24px; font-size: 15px; }
	.hero-card .rates { margin-top: 14px; gap: 7px; }
	.hero-card .rates li { padding: 4px 4px 3px; }
	.hero-card .rates b { font-size: clamp(17px, 1.6vw, 20px); }
	.hero-card .rates span { font-size: 10px; letter-spacing: .6px; line-height: 1.3; }
	.hero-card .nextup { margin-top: 12px; padding-top: 9px; font-size: 12.5px; }
}

/* ---------- Founders' Race promo (owner 2026-10-24): gold on glass; only transform animates, off for reduced motion ---------- */
.founders-promo .fp-card { position: relative; overflow: hidden; padding: 34px 36px 30px; border-radius: 24px; text-align: center;
	background: linear-gradient(160deg, rgba(58, 38, 8, .72), rgba(10, 18, 38, .9) 65%); border: 1px solid rgba(255, 210, 127, .5);
	box-shadow: 0 0 40px rgba(255, 190, 90, .16), var(--shadow); }
.founders-promo .fp-shine { position: absolute; inset: 0; pointer-events: none; transform: translateX(-120%);
	background: linear-gradient(105deg, transparent 40%, rgba(255, 236, 190, .14) 50%, transparent 60%); animation: fp-sweep 7s ease-in-out 1s infinite; }
@keyframes fp-sweep { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.founders-promo .fp-eyebrow { color: var(--gold); letter-spacing: .2em; }
.founders-promo h2 { font-size: clamp(28px, 3.8vw, 44px); margin: 4px 0 10px; }
.fp-gold { background: linear-gradient(180deg, #fff3d0, #ffd27f 50%, #d99a2b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fp-lead { max-width: 720px; margin: 0 auto 20px; color: var(--muted); font-size: 17px; }
.fp-lead b { color: var(--text); }
.fp-live { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto 22px; }
.fp-live div { min-width: 170px; padding: 10px 16px; border-radius: var(--r-sm); background: rgba(255, 210, 127, .07); border: 1px solid rgba(255, 210, 127, .3); }
.fp-live small { display: block; color: var(--dim); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.fp-live b { font-family: var(--head); font-size: 20px; color: var(--gold); font-variant-numeric: tabular-nums; }
.fp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; text-align: left; margin-bottom: 22px; }
.fp-item { padding: 16px 18px; border-radius: var(--r-sm); background: var(--glass-soft); border: 1px solid var(--line-soft); }
.fp-item h3 { margin: 0 0 6px; font-size: 17px; color: var(--gold); }
.fp-item p { margin: 0; color: var(--muted); font-size: 14.5px; }
.fp-records { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 14.5px; color: var(--text); }
.fp-records li::before { content: '\2726  '; color: var(--gold); }
.fp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 860px) { .fp-grid { grid-template-columns: 1fr; } .founders-promo .fp-card { padding: 26px 18px 22px; } }
@media (prefers-reduced-motion: reduce) { .founders-promo .fp-shine { animation: none; } }
.fp-item .fp-teaser { margin-top: 8px; color: var(--gold); font-size: 14px; }

/* Memory Bond: picture guide on /bond (layout only, no animation) */
.bv .bv-card { margin-top: 14px; display: grid; gap: 16px; }
.bv-card h3 { margin: 0; font-family: var(--head); font-size: 20px; color: var(--frost); display: flex; align-items: center; gap: 10px; text-wrap: balance; }
.bv-card > p { margin: 0; color: var(--muted); font-size: 15px; }
.bv-card > p b { color: var(--frost); }
.bv-card .perks { margin: 0; font-size: 14px; }
.bv-card .hint { margin: 0; }
.bv-step { flex: none; width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; font-family: var(--body); font-weight: 800; font-size: 14px; color: var(--bg0); background: var(--gold); }
.bv-duo { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; }
.bv-person { display: grid; justify-items: center; gap: 6px; }
.bv-role { font-size: 13px; color: var(--muted); font-weight: 600; }
.bv-link { display: grid; justify-items: center; gap: 8px; min-width: 0; }
.bv-code { font-family: ui-monospace, Menlo, monospace; font-weight: 700; color: var(--gold); background: rgba(255, 210, 127, .1); border: 1px solid rgba(255, 210, 127, .35); padding: 5px 12px; border-radius: 999px; font-size: 14px; }
.bv-arrow { position: relative; width: 100%; height: 3px; background: var(--gold2); border-radius: 2px; }
.bv-arrow::after { content: ''; position: absolute; right: -1px; top: -5px; border: 6.5px solid transparent; border-left: 10px solid var(--gold2); border-right: 0; }
.bv-road, .bv-ranks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
/* example characters: in-game sprites from tools/build-bond-sprites.mjs, shown at native pixel size */
.bv-sp { display: block; width: 64px; height: 108px; image-rendering: pixelated; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .45)); }
.bv-sp-m { filter: drop-shadow(0 0 6px rgba(255, 210, 127, .7)) drop-shadow(0 6px 4px rgba(0, 0, 0, .45)); }
.bv-sp-lg { width: 96px; height: 162px; }
.bv-tiers { display: grid; gap: 10px; }
.bv-tier { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: center; padding: 8px 18px 8px 12px; border-radius: var(--r-sm); background: rgba(110, 227, 161, .06); border: 1px solid rgba(110, 227, 161, .22); }
.bv-tier.bv-max { border-color: var(--good); background: rgba(110, 227, 161, .11); }
.bv-crew { display: flex; align-items: flex-end; width: max-content; padding: 0 4px 6px; background: radial-gradient(50% 12px at 50% calc(100% - 8px), rgba(111, 183, 255, .18), transparent); }
.bv-crew .bv-sp + .bv-sp { margin-left: -30px; }
.bv-crew .bv-sp-m { margin-right: 8px; }
.bv-gain { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who pct" "bar pct"; column-gap: 18px; row-gap: 8px; align-items: center; }
.bv-who { grid-area: who; font-weight: 700; color: var(--frost); font-size: 15px; }
.bv-who em { font-style: normal; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--gold); background: rgba(255, 210, 127, .12); border: 1px solid rgba(255, 210, 127, .3); white-space: nowrap; }
.bv-meter { grid-area: bar; height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-soft); overflow: hidden; }
.bv-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3fae78, var(--good)); }
.bv-gain b { grid-area: pct; font-size: 26px; color: var(--good); white-space: nowrap; font-variant-numeric: tabular-nums; }
.bv-legend { margin: 0; font-size: 13px; color: var(--dim); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.bv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bv-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--ice); }
.bv-key-m { background: var(--gold); }
.bv-lv { display: grid; gap: 8px; align-content: start; text-align: center; padding: 12px 8px; border-radius: var(--r-sm); border: 1px solid var(--line-soft); background: var(--glass-soft); }
.bv-lv > b { font-family: var(--head); font-size: 20px; color: var(--frost); }
.bv-lv > small { font-size: 12px; color: var(--dim); }
.bv-got { border-radius: 10px; padding: 6px; font-size: 14px; font-weight: 700; line-height: 1.35; }
.bv-got em { display: block; font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.bv-got-a { background: rgba(111, 183, 255, .12); color: var(--ice2); }
.bv-got-m { background: rgba(255, 210, 127, .12); color: var(--gold); }
.bv-bonus { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r-sm); background: rgba(255, 210, 127, .08); border: 1px solid rgba(255, 210, 127, .3); }
.bv-bonus b { flex: none; font-size: 28px; color: var(--gold); }
.bv-bonus p { margin: 0; color: var(--muted); font-size: 15px; }
.bv-rank { display: grid; justify-items: center; gap: 4px; text-align: center; }
.bv-rank span { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: var(--gold); border: 2px solid var(--gold2); background: rgba(255, 210, 127, .08); }
.bv-rank b { font-family: var(--head); color: var(--frost); font-size: 16px; }
.bv-rank small { font-size: 12px; color: var(--dim); }
.bv-top3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bv-top3 div { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--glass-soft); border: 1px solid var(--line-soft); }
.bv-top3 span { font-size: 12px; color: var(--dim); }
.bv-top3 b { color: var(--ice2); font-variant-numeric: tabular-nums; }
.bv-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bv-rules p { margin: 0; padding: 12px 14px 12px 40px; border-radius: var(--r-sm); font-size: 14px; color: var(--text); position: relative; }
.bv-rules p::before { position: absolute; left: 14px; top: 11px; font-weight: 800; }
.bv-yes { background: rgba(110, 227, 161, .08); border: 1px solid rgba(110, 227, 161, .25); }
.bv-yes::before { content: '✓'; color: var(--good); }
.bv-no { background: rgba(255, 138, 138, .08); border: 1px solid rgba(255, 138, 138, .25); }
.bv-no::before { content: '✕'; color: var(--bad); }
.bv-sub { margin: 6px 0 0; font-size: 15px; }
.bv-faq { display: flex; flex-direction: column; gap: 8px; }
.bv-faq details { border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--r-sm); background: rgba(255, 255, 255, .03); }
.bv-faq summary { padding: 12px 14px; font-weight: 600; cursor: pointer; }
.bv-faq details[open] summary { color: var(--gold, #ffd27f); }
.bv-faq details p { margin: 0; padding: 0 14px 14px; }
/* bold words inside a bonus box stay text size (".bv-bonus b" is the big number) */
.bv-bonus p b { font-size: inherit; color: var(--frost); }
/* small line icons (inline SVG, currentColor) */
.bv-ic { display: inline-grid; flex: none; width: 24px; height: 24px; align-self: center; color: var(--gold); }
.bv-ic svg { width: 100%; height: 100%; }
/* "Hunt together": fight scenes with EXP labels (monsters from tools/build-bond-sprites.mjs) */
/* the ground is the real Prontera field texture (prt_fild08's meadow tiles) */
.bv-scene { display: flex; align-items: flex-end; justify-content: space-around; gap: 10px; flex-wrap: wrap; padding: 40px 14px 12px; border-radius: var(--r-sm); border: 1px solid rgba(0, 0, 0, .6); background: radial-gradient(ellipse at 50% 55%, transparent 55%, rgba(6, 10, 18, .55)), url('/img/bond/field_patch.png') 50% 62% / 240px auto no-repeat, url('/img/bond/field_grass.png') 0 0 / 140px repeat, #4c6a2c; }
.bv-scene figure { position: relative; margin: 0; display: grid; justify-items: center; gap: 6px; }
.bv-scene figure::before { content: ''; position: absolute; left: 50%; bottom: 22px; width: 48px; height: 13px; margin-left: -24px; border-radius: 50%; background: rgba(0, 0, 0, .38); }
.bv-scene .bv-mobfig::before { width: 68px; margin-left: -34px; }
.bv-scene .bv-sp, .bv-scene .bv-mob { position: relative; filter: none; }
.bv-scene .bv-sp-m { filter: drop-shadow(0 0 5px rgba(255, 210, 127, .75)); }
/* in-game style text: white with a black outline */
.bv-scene figcaption, .bv-pop, .bv-dmg { color: #fff; font-weight: 700; white-space: nowrap; text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000; }
.bv-scene figcaption { font-size: 13px; }
.bv-scene figcaption b { color: #ffe27a; }
.bv-pop { position: absolute; left: 50%; top: -30px; transform: translateX(-50%); color: #ffe27a; font-size: 14px; }
.bv-pop.bv-own { color: #9fd4ff; }
.bv-pop.bv-guide { top: -12px; color: #7dffb0; font-size: 13px; }
.bv-dmg { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); font-size: 20px; font-weight: 800; text-align: center; }
/* two hits on one monster: mentor's on the mentor's side (left), apprentice's on the right */
.bv-dmg:has(+ .bv-d2) { left: 12%; }
.bv-dmg.bv-d2 { left: 88%; }
/* who made the hit, in that player's colour */
.bv-dmg small { display: block; font-size: 11px; font-weight: 700; }
.bv-by-m { color: #ffe27a; }
.bv-by-a { color: #9fd4ff; }
.bv-center { text-align: center; }
.bv-mob { display: block; image-rendering: pixelated; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .45)); }
.bv-xp { display: inline-block; max-width: 170px; padding: 3px 10px; border-radius: 999px; border: 1px solid rgba(110, 227, 161, .3); background: rgba(110, 227, 161, .12); color: var(--good); font-size: 13px; font-weight: 800; text-align: center; }
.bv-xp-kill { color: var(--gold); background: rgba(255, 210, 127, .12); border-color: rgba(255, 210, 127, .35); }
.bv-xp-own { color: var(--ice2); background: rgba(111, 183, 255, .12); border-color: rgba(111, 183, 255, .3); }
.bv-split { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }
.bv-eq { font-size: 13px; color: var(--dim); }
.bv-checks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bv-checks span { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.bv-checks .bv-ic { width: 18px; height: 18px; color: inherit; }
.bv-ok { color: var(--good); background: rgba(110, 227, 161, .08); border: 1px solid rgba(110, 227, 161, .25); }
.bv-bad { color: var(--bad); background: rgba(255, 138, 138, .08); border: 1px solid rgba(255, 138, 138, .25); }
.bv-top3 .bv-ic { width: 22px; height: 22px; }
/* rules: every rule with a small picture */
.bv-vis > div { position: relative; display: grid; gap: 8px; padding: 12px 14px 14px; border-radius: var(--r-sm); }
.bv-vis > div::before { position: absolute; right: 12px; top: 10px; font-weight: 800; }
.bv-vis > .bv-wide { grid-column: 1 / -1; }
.bv-vis p { padding: 0; }
.bv-vis p::before { content: none; }
.bv-pic { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 76px; }
.bv-pic .bv-sp { width: 45px; height: 76px; }
.bv-pic em { align-self: center; padding: 2px 8px; border-radius: 999px; border: 1px solid rgba(255, 210, 127, .3); background: rgba(255, 210, 127, .12); color: var(--gold); font-size: 12px; font-style: normal; font-weight: 700; }
@media (max-width: 700px) {
	.bv-road, .bv-ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.bv-tier { grid-template-columns: 1fr; gap: 8px; padding: 10px 14px 14px; }
	.bv-crew { margin: 0 auto; }
	.bv-gain b { font-size: 22px; }
	.bv-sp-lg { width: 64px; height: 108px; }
	.bv-rules, .bv-top3 { grid-template-columns: 1fr; }
	.bv-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Exclusive costumes coming soon (owner 2026-10-25) */
.xc-promo{text-align:center}
.xc-promo h2{margin:.2em 0 .3em}
.xc-eyebrow{color:#e6c8ff;letter-spacing:.3em}
.xc-soon{display:inline-block;vertical-align:middle;margin-left:.4em;padding:.25em .9em;font-size:.45em;letter-spacing:.25em;text-transform:uppercase;color:#2a1240;background:linear-gradient(#fff1ff,#e6b8ff 55%,#c48aff);border-radius:999px;box-shadow:0 0 18px #c070ff99}
.xc-lead{max-width:640px;margin:0 auto 1.4em;opacity:.9}
.xc-art img{display:block;width:100%;max-width:1000px;height:auto;margin:0 auto;border-radius:16px;box-shadow:0 0 0 1px #ffffff1a,0 18px 50px #7a3cff40,0 0 80px #2fffb81f}
.xc-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1000px;margin:22px auto 0;text-align:left}
.xc-item{padding:16px 18px;border-radius:14px;background:#ffffff08;border:1px solid #ffffff14}
.xc-item h3{margin:0 0 6px;font-size:1.05rem}
.xc-item p{margin:0;font-size:.92rem;opacity:.85}
.xc-a{box-shadow:inset 0 2px 0 #b046ff}.xc-a h3{color:#d9a8ff}
.xc-b{box-shadow:inset 0 2px 0 #ff9cf0}.xc-b h3{color:#ffd0f6}
.xc-c{box-shadow:inset 0 2px 0 #2fffb8}.xc-c h3{color:#9dffd9}
.xc-note{margin-top:18px;font-size:.9rem;opacity:.75}
@media (max-width:760px){.xc-grid{grid-template-columns:1fr}}

/* Halloween 2026 (owner 2026-10-25; remove after Nov 9) */
.hw-promo{text-align:center}
.hw-eyebrow{color:#ffcf6a;letter-spacing:.25em}
.hw-orange{background:linear-gradient(#fff3b0,#ffb43a 45%,#ff6a00);-webkit-background-clip:text;color:transparent}
.hw-lead{max-width:640px;margin:0 auto 1.4em;opacity:.9}
.hw-art img{display:block;width:100%;max-width:1000px;height:auto;margin:0 auto;border-radius:16px;box-shadow:0 0 0 1px #ffffff1a,0 18px 50px #ff7a1a40,0 0 80px #8a2cff26}
.hw-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:1000px;margin:22px auto 0;text-align:left}
.hw-item{padding:16px 18px;border-radius:14px;background:#ffffff08;border:1px solid #ffffff14;box-shadow:inset 0 2px 0 #ff9a3a}
.hw-item h3{margin:0 0 6px;font-size:1.05rem;color:#ffcf6a}
.hw-item p{margin:0;font-size:.92rem;opacity:.85}
.hw-g{box-shadow:inset 0 2px 0 #7dff9a}.hw-g h3{color:#a8ffbf}
.hw-actions{margin-top:20px}
@media (max-width:760px){.hw-grid{grid-template-columns:1fr}}

/* Rally Hour (/rally): one screen - hero clock on top, meter / booking / invite in three columns.
   Animations are transform/opacity only (glow orbs, live dot, meter fill, button sheen). */
.rally { position: relative; max-width: 1240px; margin: 0 auto; padding: 22px 24px 8px; }
.rally-glow { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.rally-glow i { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(70px); opacity: .32; will-change: transform; animation: rally-orb 14s ease-in-out infinite alternate; }
.rally-glow i:nth-child(1) { left: 5%; top: 0; background: #2f6bff; }
.rally-glow i:nth-child(2) { right: 8%; top: 40px; background: #e0a640; opacity: .22; animation-duration: 18s; }
.rally-glow i:nth-child(3) { left: 40%; bottom: -200px; background: #7b4dff; opacity: .2; animation-duration: 22s; }
@keyframes rally-orb { to { transform: translate3d(60px, 40px, 0) scale(1.15); } }

.rally-hero { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; margin-bottom: 20px; }
.rally-title .eyebrow { margin-bottom: 4px; }
.rally-title h1 { font-family: var(--head); font-size: clamp(40px, 5.4vw, 68px); line-height: 1; margin: 0 0 10px; letter-spacing: 1px; text-shadow: 0 0 40px rgba(255, 210, 127, .25); }
.rally-title p { margin: 0; color: var(--muted); font-size: 16.5px; max-width: 520px; }
.rally-title p b { color: var(--frost); }

.rally-clock { padding: 16px 24px 14px; text-align: center; min-width: 400px; border-color: rgba(255, 210, 127, .35); box-shadow: var(--shadow), 0 0 50px rgba(255, 210, 127, .12); }
.rc-state { display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 12.5px var(--body); letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }
.rc-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--ice); }
.rc-dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: rally-ping 1.6s ease-out infinite; will-change: transform, opacity; }
@keyframes rally-ping { to { transform: scale(3); opacity: 0; } }
.rally-live .rc-dot { background: #ff5a6e; }
.rally-live .rc-state { color: #ff8a98; }
.rc-time { display: flex; justify-content: center; gap: 10px; margin: 8px 0 10px; }
.rc-time span { display: flex; flex-direction: column; align-items: center; min-width: 92px; padding: 8px 6px 4px; border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); border: 1px solid var(--line-soft); }
.rc-time b { font: 800 46px/1 var(--body); color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(111, 183, 255, .55); }
.rc-time small { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); margin-top: 3px; }
.rc-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13.5px; color: var(--ice2); }
.rc-stats b { color: var(--gold); font-size: 15px; }

.rally-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 18px; align-items: stretch; }
.rally-card { padding: 20px 22px; display: flex; flex-direction: column; }
.rally-card h2 { font-size: 20px; margin: 0 0 2px; }
.rally-card .rc-sub { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.rally-card label { margin: 10px 0 5px; font-size: 13px; }
.rally-card label small { font-weight: 500; color: var(--dim); }
.rally-card .hint { margin: auto 0 0; padding-top: 10px; font-size: 12.5px; }

.rm-bar { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-bottom: 12px; }
.rm-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--ice), var(--gold)); transform-origin: left; transform: scaleX(0); transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.rm-tiers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.rm-tiers li { display: flex; justify-content: space-between; align-items: center; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(255, 255, 255, .02); opacity: .55; }
.rm-tiers b { font: 800 18px var(--body); color: var(--gold); }
.rm-tiers span { font-size: 13px; color: var(--ice2); }
.rm-tiers li.on { opacity: 1; border-color: rgba(255, 210, 127, .7); background: linear-gradient(90deg, rgba(255, 210, 127, .16), rgba(255, 210, 127, .03)); }
.rm-tiers li.next { opacity: 1; border-style: dashed; border-color: var(--ice); }
.rm-tiers li.next::after { content: 'next'; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--ice); margin-left: 8px; }

.rally-rewards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 2px; }
.rr { padding: 10px 12px; border-radius: 12px; text-align: center; font-size: 13px; color: var(--muted); line-height: 1.3; background: rgba(111, 183, 255, .08); border: 1px solid var(--line-soft); }
.rr b { font: 800 26px var(--body); color: var(--frost); }
.rr small { color: var(--dim); font-size: 12px; }
.rr-plus { background: rgba(255, 210, 127, .09); border-color: rgba(255, 210, 127, .35); }
.rr-plus b { color: var(--gold); }
.rally-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rally-go { position: relative; overflow: hidden; margin-top: 14px; font-size: 16px; }
.rally-go::after { content: ''; position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-120%); animation: rally-sheen 3.2s ease-in-out infinite; will-change: transform; }
@keyframes rally-sheen { 60%, 100% { transform: translateX(320%); } }
.rally-card .msg { min-height: 0; margin-top: 8px; }

.rally-card textarea { width: 100%; resize: none; font-size: 13.5px; line-height: 1.45; }
.rally-actions { display: flex; gap: 10px; margin-top: 10px; }
.rally-actions .btn { flex: 1; }
.rally-steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: st; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--muted); }
.rally-steps li { counter-increment: st; display: flex; align-items: center; gap: 10px; }
.rally-steps li::before { content: counter(st); flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 800 12px var(--body); color: #2a1a00; background: var(--gold); }

@media (prefers-reduced-motion: reduce) { .rally-glow i, .rc-dot::after, .rally-go::after { animation: none; } }
@media (max-width: 1020px) {
	.rally-hero { grid-template-columns: 1fr; text-align: center; gap: 16px; }
	.rally-title p { margin: 0 auto; }
	.rally-clock { min-width: 0; }
	.rally-grid { grid-template-columns: 1fr 1fr; }
	.rally-grid > form { grid-column: 1 / -1; order: -1; }
}
@media (max-width: 640px) {
	.rally { padding: 16px 16px 8px; }
	.rally-grid { grid-template-columns: 1fr; }
	.rc-time span { min-width: 70px; }
	.rc-time b { font-size: 36px; }
}

/* Live World (/world): reuses the Rally page frame (.rally, .rally-card, .rally-glow); lists scroll inside their cards
   so the page stays one screen on a laptop. */
.world-dot { display: inline-block; background: #ff5a6e; }
.world-hero { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; margin-bottom: 18px; }
.world-stats { display: grid; grid-template-columns: repeat(3, 150px); gap: 12px; }
.ws { display: flex; flex-direction: column; align-items: center; padding: 14px 10px; text-align: center; }
.ws b { white-space: nowrap; font: 800 26px/1.15 var(--body); color: #fff; text-shadow: 0 0 18px rgba(111, 183, 255, .55); font-variant-numeric: tabular-nums; }
.ws span { font-size: 12.5px; color: var(--ice2); margin-top: 4px; }
.world-grid { display: grid; grid-template-columns: 1.35fr 1fr .95fr; gap: 18px; height: min(520px, calc(100vh - 290px)); min-height: 380px; }
.world-grid > .rally-card, .world-side > .rally-card { min-height: 0; }
.world-side { display: grid; grid-template-rows: 1fr 1fr; gap: 18px; min-height: 0; }
.world-players, .world-feed, .world-mvps { flex: 1; min-height: 0; overflow-y: auto; margin: 0; padding: 0 4px 0 0; list-style: none; scrollbar-width: thin; }
.world-players { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; align-content: start; }
.wp { display: flex; flex-direction: column; align-items: center; padding: 6px 4px 8px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); text-align: center; min-width: 0; }
.wp img { width: 64px; height: 64px; object-fit: contain; image-rendering: auto; }
.wp-ph { width: 64px; height: 64px; display: grid; place-items: center; color: var(--gold); font-size: 24px; }
.wp b { font-size: 12.5px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--frost); }
.wp small { font-size: 11px; color: var(--dim); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.world-empty { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; padding: 18px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.world-empty b { color: var(--frost); font-size: 15px; }
.wf { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: start; padding: 8px 2px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; color: var(--muted); animation: wf-in .5s ease-out both; }
.wf b { color: var(--frost); }
.wf em { font-style: normal; font-weight: 700; color: var(--gold); }
.wf small { color: var(--dim); font-size: 11.5px; }
.wf-mvp em { color: #ff9aa8; }
.wf time { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
.wf-i { font-size: 16px; line-height: 1.2; }
@keyframes wf-in { from { opacity: 0; transform: translateY(-6px); } }
.wm { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 6px; border-radius: 10px; border: 1px solid var(--line-soft); overflow: hidden; font-size: 12.5px; }
.wm div { display: flex; flex-direction: column; min-width: 0; }
.wm b { color: var(--frost); font-size: 13.5px; }
.wm small { color: var(--dim); }
.wm span { color: var(--ice2); white-space: nowrap; font-weight: 600; }
.wm i { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--ice), var(--gold)); transform-origin: left; }
.wm-window { border-color: rgba(255, 210, 127, .6); }
.wm-window span { color: var(--gold); }
.wm-up { border-color: rgba(255, 110, 130, .6); }
.wm-up span { color: #ff9aa8; }
.world-events { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; list-style: none; margin: 0; padding: 0 4px 0 0; display: flex; flex-direction: column; gap: 2px; }
.world-events li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.world-events li div { display: flex; flex-direction: column; min-width: 0; }
.world-events b { color: var(--frost); font-size: 13.5px; }
.world-events small { color: var(--dim); }
.world-events span { color: var(--ice2); white-space: nowrap; text-align: right; }
.world-events li.live span { color: #ff9aa8; font-weight: 800; }
@media (prefers-reduced-motion: reduce) { .wf { animation: none; } }
@media (max-width: 1100px) {
	.world-hero { grid-template-columns: 1fr; text-align: center; }
	.world-stats { grid-template-columns: repeat(3, 1fr); }
	.world-grid { grid-template-columns: 1fr 1fr; height: auto; }
	.world-grid > .rally-card { max-height: 460px; }
	.world-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}
@media (max-width: 680px) {
	.world-grid, .world-side { grid-template-columns: 1fr; }
	.ws b { font-size: 22px; }
}

/* Live camera (/world): 16:9 picture of the game, refreshed every 15 s; click = full size */
.world-main { display: grid; grid-template-rows: auto 1fr; gap: 14px; min-height: 0; }
.world-main > .rally-card { min-height: 0; }
.world-main:has(> .world-cam[hidden]) { grid-template-rows: 1fr; }
.world-cam[hidden] { display: none; }
.world-main .world-players { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.world-main .wp img, .world-main .wp-ph { width: 48px; height: 48px; }
.world-cam { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; overflow: hidden; cursor: zoom-in; border-color: rgba(255, 110, 130, .55); background: #050a18; font: inherit; color: inherit; }
.world-cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.world-cam img:not([src]) { visibility: hidden; }
.cam-badge { position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(160, 20, 40, .85); font: 800 11.5px var(--body); letter-spacing: 1.4px; color: #fff; }
.cam-badge i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.cam-badge i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #fff; animation: rally-ping 1.6s ease-out infinite; }
.cam-label { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 8px; background: rgba(5, 10, 24, .75); font-size: 13px; font-weight: 600; color: var(--frost); }
.cam-off { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 10, 24, .7); color: var(--muted); font-size: 14px; }
.cam-off[hidden] { display: none; }
.world-cam.off { border-color: var(--line); }
.world-cam.off .cam-badge { background: rgba(60, 70, 90, .85); }
.world-cam.off .cam-badge i::after { animation: none; }
.world-cam.big { position: fixed; z-index: 100; inset: 50% auto auto 50%; width: min(96vw, 1280px); transform: translate(-50%, -50%); cursor: zoom-out; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .75); }
@media (prefers-reduced-motion: reduce) { .cam-badge i::after { animation: none; } }
