:root {
  --max: 1720px;
  --header-height: 84px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); font-family: var(--font-body); overflow-x: hidden; }
::selection { color: #0b0903; background: var(--accent); }
a { color: inherit; text-decoration: none; }
button, input, summary { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.page-noise { position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitchTiles'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
.cursor-glow { position: fixed; width: 430px; height: 430px; z-index: -1; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); background: radial-gradient(circle, var(--cursor-glow), transparent 67%); }

.site-header { position: fixed; inset: 0 0 auto; z-index: 90; height: var(--header-height); padding: 0 max(24px, calc((100vw - var(--max)) / 2)); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 38px; background: var(--header-bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 38px rgba(0,0,0,.4); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 46px; filter: drop-shadow(0 0 16px var(--accent-glow)); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-family: var(--font-display); font-size: 18px; letter-spacing: .16em; }
.brand-copy small { margin-top: 6px; color: var(--accent-soft); font-size: 9px; font-weight: 850; letter-spacing: .42em; }
.main-nav { justify-self: center; display: flex; align-items: stretch; gap: 22px; height: 100%; }
.main-nav a { position: relative; display: grid; place-items: center; color: var(--nav-text); font-size: 14px; font-weight: 780; letter-spacing: .045em; transition: color .2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: -1px; width: 0; height: 2px; transform: translateX(-50%); background: linear-gradient(90deg, var(--accent), var(--accent-soft)); box-shadow: 0 0 15px var(--accent); transition: width .22s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--text-strong); }
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.nav-dropdown { position: relative; height: 100%; display: flex; align-items: stretch; }
.nav-dropdown-trigger { gap: 7px; }
.nav-dropdown-trigger span { color: var(--accent-soft); font-size: 9px; transition: transform .2s ease; }
.nav-dropdown.active > .nav-dropdown-trigger { color: var(--text-strong); }
.nav-dropdown.active > .nav-dropdown-trigger::after { width: 100%; }
.nav-submenu { position: absolute; z-index: 95; top: calc(100% - 1px); left: 50%; width: 185px; padding: 8px; display: grid; border: 1px solid var(--line-bright); background: var(--header-bg-solid); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease; }
.nav-submenu a { min-height: 38px; padding: 0 12px; justify-content: start; color: var(--text-soft); font-size: 11.5px; letter-spacing: .045em; }
.nav-submenu a::after { display: none; }
.nav-submenu a:hover { color: var(--text-strong); background: var(--row-hover); }
.nav-dropdown:hover .nav-submenu, .nav-dropdown:focus-within .nav-submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-dropdown:hover .nav-dropdown-trigger span, .nav-dropdown:focus-within .nav-dropdown-trigger span { transform: rotate(180deg); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.link-button { border: 0; padding: 9px; background: none; cursor: pointer; color: var(--text-soft); font-size: 13px; font-weight: 750; }
.link-button:hover { color: var(--accent-soft); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; }
.menu-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; margin: 4px auto; background: var(--text-strong); transition: .2s ease; }
.language-picker { position: relative; }
.language-picker summary { min-height: 38px; min-width: 118px; padding: 0 13px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); color: var(--text-soft); background: var(--panel); cursor: pointer; list-style: none; font-size: 11px; font-weight: 800; letter-spacing: .02em; }
.language-picker summary::-webkit-details-marker { display: none; }
.language-picker summary::after { content: "▾"; margin-inline-start: 9px; color: var(--accent-soft); }
.language-picker[open] summary { border-color: var(--line-bright); color: var(--text-strong); }
.language-menu { position: absolute; top: calc(100% + 10px); inset-inline-end: 0; min-width: 170px; padding: 7px; border: 1px solid var(--line-bright); background: var(--header-bg-solid); box-shadow: var(--shadow); }
.language-menu form { margin: 0; }
.language-menu button { width: 100%; min-height: 40px; padding: 0 12px; border: 0; text-align: start; color: var(--text-soft); background: transparent; cursor: pointer; font-size: 12px; }
.language-menu button:hover, .language-menu button.active { color: var(--text-strong); background: var(--row-hover); }

.button { min-height: 48px; padding: 0 24px; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; gap: 12px; color: var(--text-strong); background: transparent; cursor: pointer; font-size: 12px; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: transform .2s ease, filter .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.12); }
.button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.button-sm { min-height: 38px; padding: 0 18px; background: var(--button-small-bg); border-color: var(--button-border); }
.button-primary { background: var(--button-primary-bg); border-color: var(--button-border-strong); box-shadow: var(--button-shadow); }
.button-ghost { border-color: var(--line-bright); background: var(--button-ghost-bg); }
.button-outline { border-color: var(--line-bright); }
.button.large { min-height: 62px; min-width: 225px; }
.button small { display: block; opacity: .72; font-size: 9px; font-weight: 650; letter-spacing: .08em; }
.button.full { width: 100%; }
.play-icon { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; font-size: 8px; }

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; color: var(--accent-soft); font-size: 11px; font-weight: 850; letter-spacing: .22em; text-transform: uppercase; }
.eyebrow > span { width: 34px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); box-shadow: 0 0 8px var(--accent); }
.eyebrow.centered { justify-content: center; }
em { color: transparent; font-style: normal; -webkit-text-stroke: 1px var(--outline-text); text-shadow: 0 0 26px var(--accent-glow-soft); }

.home-dashboard { position: relative; min-height: 1560px; padding: calc(var(--header-height) + 48px) max(18px, calc((100vw - var(--max)) / 2)) 90px; display: grid; grid-template-columns: 310px minmax(420px, 1fr) 350px; gap: 24px; align-items: start; overflow: hidden; isolation: isolate; }
.home-dashboard::before { content: ""; position: absolute; inset: 0; z-index: -6; background: var(--dashboard-bg); }
.home-dashboard::after { content: ""; position: absolute; inset: auto 0 0; height: 240px; z-index: -2; background: linear-gradient(transparent, var(--bg)); }
.dashboard-grid { position: absolute; inset: 0; z-index: -5; opacity: .2; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 76px 76px; mask-image: linear-gradient(to bottom, transparent, black 13%, black 82%, transparent); transform: perspective(640px) rotateX(67deg) translateY(470px) scale(1.9); }
.hero-aura { position: absolute; z-index: -4; border-radius: 50%; filter: blur(10px); }
.aura-one { width: 720px; height: 720px; right: 20%; top: 4%; background: radial-gradient(circle, var(--aura-one), transparent 68%); animation: breathe 7s ease-in-out infinite; }
.aura-two { width: 430px; height: 430px; left: 30%; top: 34%; background: radial-gradient(circle, var(--aura-two), transparent 67%); }
.left-rail, .right-rail { display: grid; gap: 18px; align-content: start; align-self: start; margin-top: 0; }
.center-stage { align-self: start; margin-top: 0; }
.center-stage { min-width: 0; position: sticky; top: calc(var(--header-height) + 32px); }
.hero-panel { min-height: 760px; padding: 76px 62px 56px; position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border: 1px solid var(--line); background: var(--hero-panel-bg); box-shadow: var(--shadow); clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); }
.hero-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hero-ornament); opacity: .65; }
.hero-panel::after { content: ""; position: absolute; inset: 20px; border: 1px solid var(--line); pointer-events: none; }
.silkroad-seal { position: absolute; inset-inline-end: 7%; top: 8%; width: 145px; height: 145px; display: grid; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--accent-soft); background: radial-gradient(circle, var(--panel-glow), transparent 68%); opacity: .7; box-shadow: 0 0 65px var(--accent-glow-soft); }
.silkroad-seal::before, .silkroad-seal::after { content: ""; position: absolute; inset: 14px; border: 1px dashed var(--line); border-radius: 50%; }
.silkroad-seal::after { inset: 33px; border-style: solid; }
.silkroad-seal span { font-family: var(--font-display); font-size: 54px; text-shadow: 0 0 22px var(--accent); }
.hero-panel h1, .section-heading h2, .world-copy h2, .download-content h2, .page-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: .92; letter-spacing: -.045em; text-transform: uppercase; }
.hero-panel h1 { max-width: 800px; font-size: clamp(66px, 6.2vw, 108px); text-shadow: 0 10px 40px rgba(0,0,0,.56); }
.hero-text { max-width: 650px; margin: 28px 0 32px; color: var(--text-soft); font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 54px; display: flex; gap: 45px; }
.hero-meta div { display: grid; gap: 4px; padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
.hero-meta strong { font-family: var(--font-display); font-size: 23px; color: var(--text-strong); }
.hero-meta span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.route-line { margin-top: 58px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.route-line i { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line-bright), transparent); }

.side-widget, .right-widget { position: relative; overflow: visible; border: 1px solid var(--widget-border); background: var(--widget-bg); box-shadow: 0 18px 55px rgba(0,0,0,.35); }
.side-widget::before, .right-widget::before { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(255,255,255,.018); }
.widget-title, .right-widget-title { min-height: 58px; padding: 0 16px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--widget-border); background: var(--widget-title-bg); }
.widget-title h2, .right-widget-title h2 { margin: 0; color: var(--widget-title-text); font-family: var(--font-display); font-size: 15px; letter-spacing: .09em; text-transform: uppercase; }
.widget-title-icon, .fortress-mark { color: var(--accent); text-shadow: 0 0 14px var(--accent-glow); font-size: 18px; }
.widget-title-tabs { flex-wrap: wrap; padding-block: 10px; }
.widget-title-tabs h2 { flex: 1; }
.mini-tabs { display: flex; gap: 4px; }
.mini-tabs button { min-width: 46px; height: 26px; padding: 0 8px; border: 1px solid var(--line); color: var(--muted); background: var(--panel); cursor: pointer; font-size: 9px; font-weight: 900; }
.mini-tabs button.active { color: var(--text-strong); border-color: var(--line-bright); background: var(--tab-active-bg); box-shadow: inset 0 -2px 0 var(--accent); }
.widget-wide-tabs { width: 100%; min-height: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--widget-border); background: rgba(1, 10, 15, .62); }
.widget-wide-tabs button { position: relative; min-width: 0; height: 40px; padding: 0 10px; border: 0; border-inline-end: 1px solid var(--widget-border); color: var(--muted); background: linear-gradient(180deg, rgba(10, 33, 44, .72), rgba(3, 15, 21, .84)); cursor: pointer; font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; transition: color .18s ease, background .18s ease, box-shadow .18s ease; }
.widget-wide-tabs button:last-child { border-inline-end: 0; }
.widget-wide-tabs button::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: transparent; box-shadow: none; transition: .18s ease; }
.widget-wide-tabs button:hover { color: var(--text-strong); background: var(--row-hover); }
.widget-wide-tabs button.active { color: var(--text-strong); background: linear-gradient(180deg, rgba(246,206,137,0.24), rgba(23,19,9,0.92)); box-shadow: inset 0 0 22px rgba(255,228,185,0.08); }
.widget-wide-tabs button.active::after { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.widget-scroll { max-height: 350px; padding: 8px 10px 10px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-bright) transparent; }
.widget-empty-note { margin:0; padding:28px 14px; color:var(--log-subtext); font-size:11px; line-height:1.7; text-align:center; }
.log-row { min-height: 64px; padding: 9px 6px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.log-row:last-child { border-bottom: 0; }
.log-row:hover { background: var(--row-hover); }
.round-icon { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; color: var(--text-strong); background: var(--avatar-bg); box-shadow: inset 0 0 14px rgba(255,255,255,.04), 0 0 14px var(--accent-glow-soft); font-size: 10px; font-weight: 900; }
.unique-icon { border-color: var(--gold-line); color: var(--gold); background: var(--unique-icon-bg); }
.item-icon { color: var(--accent-soft); }
.chat-icon { color: var(--success); cursor: help; }
.chat-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.battle-icon { color: var(--danger-soft); }
.log-copy { min-width: 0; display: grid; gap: 4px; }
.log-copy strong { overflow: hidden; color: var(--text-strong); font-size: 11px; font-weight: 850; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.log-copy small { overflow: hidden; color: var(--log-subtext); font-size: 9px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.chat-row { min-height: 72px; }
.chat-row .log-copy strong { white-space: normal; }
.item-icon[data-tooltip]::after { content: attr(data-tooltip); position: absolute; z-index: 30; inset-inline-start: calc(100% + 10px); top: 50%; width: 250px; height: 40px; padding: 0 12px; display: flex; align-items: center; border: 1px solid var(--line-bright); color: var(--text-strong); background: var(--tooltip-bg); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-50%) translateX(-5px); pointer-events: none; font-size: 9px; line-height: 1.25; transition: .18s ease; }
.item-icon[data-tooltip]:hover::after, .item-icon[data-tooltip]:focus-visible::after { opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.right-widget-title { justify-content: center; min-height: 70px; }
.right-widget-title h2 { font-size: 20px; letter-spacing: .06em; }
.server-card { padding-bottom: 22px; }
.capacity-block { padding: 26px 20px 24px; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.capacity-dial { position: relative; width: 205px; aspect-ratio: 1; display: grid; place-items: center; }
.capacity-ring { width: 100%; overflow: visible; filter: drop-shadow(0 0 14px var(--accent-glow-soft)); }
.capacity-track, .capacity-value, .capacity-halo, .capacity-spark { fill: none; }
.capacity-track, .capacity-value { stroke-width: 8; }
.capacity-track { stroke: var(--gauge-track); }
.capacity-value { stroke: var(--capacity-color, var(--accent)); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; filter: drop-shadow(0 0 7px var(--capacity-glow, var(--accent-glow))); transition: stroke .35s ease, filter .35s ease; }
.capacity-halo { stroke: var(--capacity-halo, rgba(255,177,167,0.15)); stroke-width: 1.6; stroke-dasharray: 1.5 5; transform-origin: 60px 60px; animation: capacityOrbit 12s linear infinite; }
.capacity-spark { stroke: var(--capacity-spark, rgba(255,219,214,0.52)); stroke-width: 2; stroke-linecap: round; stroke-dasharray: .8 11; transform: rotate(-90deg); transform-origin: 60px 60px; animation: capacitySpark 4.8s linear infinite; }
.capacity-hand { vector-effect: non-scaling-stroke; transform-origin: 60px 60px; stroke-linecap: round; }
.capacity-hand-current { stroke: var(--capacity-color, var(--accent)); stroke-width: 2.8; filter: drop-shadow(0 0 6px var(--capacity-glow, var(--accent-glow))); transform: rotate(0deg); }
.capacity-hand-cap { fill: var(--capacity-color, var(--accent)); stroke: rgba(255,255,255,0.72); stroke-width: 1.2; filter: drop-shadow(0 0 5px var(--capacity-glow, var(--accent-glow))); }
.capacity-ratio { position: absolute; z-index: 2; left: 50%; top: 61%; transform: translate(-50%,-50%); min-width: 116px; padding: 7px 9px 6px; display: flex; align-items: baseline; justify-content: center; gap: 2px; border: 1px solid rgba(255,255,255,.09); color: var(--text-strong); background: rgba(5,12,15,.72); box-shadow: 0 8px 24px rgba(0,0,0,.26), inset 0 0 14px rgba(255,255,255,.025); backdrop-filter: blur(5px); font-family: var(--font-display); font-size: 19px; font-weight: 900; letter-spacing: .025em; line-height: 1; }
.capacity-ratio i { color: var(--muted); font-style: normal; font-size: 13px; }
@keyframes capacityOrbit { to { transform: rotate(360deg); } }
@keyframes capacitySpark { to { stroke-dashoffset: -100; } }
@media (prefers-reduced-motion: reduce) { .capacity-halo, .capacity-spark { animation: none; } }
.capacity-tone-cyan { --capacity-color:#fad3a0; --capacity-glow:rgba(250,211,160,0.72); --capacity-halo:rgba(250,211,160,0.22); --capacity-spark:rgba(255,255,255,0.68); }
.capacity-tone-gold { --capacity-color:#ff8b79; --capacity-glow:rgba(255,139,121,0.68); --capacity-halo:rgba(255,139,121,0.22); --capacity-spark:rgba(255,194,183,0.7); }
.capacity-tone-red { --capacity-color:#f93c58; --capacity-glow:rgba(249,60,88,0.72); --capacity-halo:rgba(249,60,88,0.22); --capacity-spark:rgba(255,112,127,0.72); }
.job-distribution-legend { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-bottom:9px; }
.job-legend-item { min-width:0; padding:7px 7px 6px; display:grid; gap:4px; justify-items:center; border:1px solid rgba(255,255,255,.08); background:rgba(255,255,255,.025); }
.job-legend-name { min-width:0; display:flex; align-items:center; justify-content:center; gap:5px; }
.job-legend-name strong { overflow:hidden; color:var(--text-strong); font-size:8px; font-weight:900; letter-spacing:.045em; text-transform:uppercase; text-overflow:ellipsis; white-space:nowrap; }
.job-legend-item > span:last-child { color:var(--muted); font-size:9px; font-weight:900; }
.job-legend-thief { border-color:rgba(241,253,195,0.22); }
.job-legend-trader { border-color:rgba(66,191,112,0.22); }
.job-legend-hunter { border-color:rgba(251,215,160,0.26); }
.live-battle-tabs .live-tab-buttons button span { margin-inline-end:8px; }
.distribution-block { padding: 20px; border-bottom: 1px solid var(--line); }
.distribution-block:last-child { border-bottom: 0; }
.distribution-block h3 { margin: 0 0 13px; color: var(--widget-title-text); font-family: var(--font-display); font-size: 14px; letter-spacing: .12em; text-align: center; }
.segmented-distribution { width: 100%; min-height: 38px; display: flex; overflow: hidden; box-sizing: border-box; border: 1px solid rgba(255,255,255,.08); background: var(--gauge-track); box-shadow: inset 0 0 16px rgba(0,0,0,.35); }
.distribution-segment { flex: 0 0 var(--segment-width); width: var(--segment-width); min-width: 0; min-height: 38px; padding: 0 10px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 7px; color: #ffffff; border-inline-end: 1px solid rgba(255,255,255,.15); text-shadow: 0 1px 2px rgba(0,0,0,.65); }
.distribution-segment:last-child { border-inline-end: 0; }
.segment-label { min-width: 0; display: flex; align-items: center; gap: 6px; }
.segment-name { overflow: hidden; font-size: 9px; font-weight: 900; letter-spacing: .045em; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; }
.segment-percent { flex: 0 0 auto; font-size: 10px; font-weight: 950; letter-spacing: .02em; }
.job-icon { width: 16px; height: 16px; flex: 0 0 16px; object-fit: contain; filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255,255,255,0.32)); }
.race-chinese { background: linear-gradient(90deg, #fd2a19, #ff7365); }
.race-european { background: linear-gradient(90deg, #f4d266, #f9e2a3); }

.discord-card { overflow: hidden; background:#0d0908; }
.discord-title { justify-content: flex-start; min-height: 60px; padding-inline: 18px; background:linear-gradient(90deg, rgba(190,76,107,0.18), rgba(16,13,7,0.95)); }
.discord-title h2 { font-family: var(--font-body); font-size: 14px; font-weight: 900; letter-spacing: .12em; }
.discord-mark { color: #fffffd; font-size: 20px; text-shadow: 0 0 14px rgba(253,249,205,0.6); }
.discord-body { padding: 18px; }
.discord-brand-row { display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; gap: 12px; }
.discord-logo { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #ffffff; background: #fdf9cd; box-shadow: 0 0 22px rgba(253,249,205,0.26); font-weight: 950; font-size: 22px; }
.discord-brand-row div:last-child { min-width: 0; display: grid; gap: 4px; }
.discord-brand-row strong { overflow: hidden; color: var(--text-strong); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.discord-brand-row small { color: var(--muted); font-size: 9px; }
.discord-stats { margin: 16px 0; padding: 12px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-block: 1px solid var(--line); }
.discord-stats span { color: var(--muted); font-size: 9px; }
.discord-stats strong { color: var(--text-strong); font-size: 11px; }
.discord-online-dot { width: 7px; height: 7px; margin-inline-end: 5px; display: inline-block; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }
.discord-join { min-height: 38px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,253,0.35); color: #fffcfc; background: rgba(253,249,205,0.15); font-size: 10px; font-weight: 850; }
.discord-join:hover { background: rgba(253,249,205,0.24); border-color: rgba(255,255,253,0.65); }
.discord-join.disabled { opacity: .5; pointer-events: none; }

.fortress-card { border-color: var(--fortress-border); }
.fortress-title { border-bottom-color: var(--fortress-border); }
.fortress-title h2 { color: var(--fortress-title); }
.fortress-list { padding: 15px; }
.fortress-row { min-height: 67px; margin-bottom: 10px; padding: 9px 10px; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--fortress-row-bg); }
.fortress-row:last-child { margin-bottom: 0; }
.fortress-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 2px solid var(--fortress-icon-line); border-radius: 50%; color: var(--text-strong); background: var(--fortress-icon-bg); box-shadow: 0 0 12px rgba(0,0,0,.45); font-size: 17px; }
.fortress-icon-1 { color: #ff6375; }
.fortress-icon-2 { color: #ff9989; }
.fortress-icon-3 { color: #fff5dd; }
.fortress-icon-4 { color: #fefffc; }
.fortress-copy { min-width: 0; display: grid; gap: 3px; }
.fortress-copy strong { overflow: hidden; color: var(--text-strong); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.fortress-copy small { color: var(--gold); font-size: 10px; }
.fortress-copy small.empty-owner { color: var(--log-subtext); font-style: italic; }
.tax-badge { min-width: 40px; padding: 4px 6px; border: 1px solid var(--success-line); color: var(--success); background: var(--success-bg); text-align: center; font-size: 10px; font-weight: 900; }
.fortress-card .tax-badge { color: #8ff1b0; border-color: rgba(105,237,150,0.7); background: rgba(55,187,101,0.18); box-shadow: inset 0 0 12px rgba(93,235,141,0.08), 0 0 13px rgba(93,235,141,0.12); text-shadow: 0 0 8px rgba(115,238,156,0.45); }

.ranking-page { max-width: 1320px; }
.ranking-tabs { margin: -28px 0 28px; display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); background: var(--panel); }
.ranking-tabs a { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 8px; border-inline-end: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.ranking-tabs a:last-child { border-inline-end: 0; }
.ranking-tabs a:hover, .ranking-tabs a.active { color: var(--text-strong); background: var(--tab-active-bg); box-shadow: inset 0 -2px 0 var(--accent); }
.tab-media-icon { width: 18px; height: 18px; flex: 0 0 18px; object-fit: contain; filter: drop-shadow(0 0 7px rgba(253,145,131,0.2)); }
.ranking-tabs a.active .tab-media-icon, .live-side-menu a.active .tab-media-icon { filter: brightness(1.18) drop-shadow(0 0 8px rgba(255,163,152,0.36)); }
.ranking-generic .generic-head, .ranking-generic .generic-row { grid-template-columns: 80px 1.4fr 1fr .8fr .8fr; }
.ranking-value { align-self: center; color: var(--text-soft); font-size: 11px; font-weight: 750; }

.live-logs-page { max-width: 1320px; display: grid; grid-template-columns: 230px minmax(0,1fr); align-items: start; gap: 24px; }
.live-side-menu { position: sticky; top: calc(var(--header-height) + 24px); border: 1px solid var(--widget-border); background: var(--widget-bg); box-shadow: 0 18px 55px rgba(0,0,0,.3); }
.live-side-menu h2 { margin: 0; min-height: 66px; padding: 0 18px; display: flex; align-items: center; border-bottom: 1px solid var(--line); color: var(--text-strong); font-family: var(--font-display); font-size: 15px; letter-spacing: .08em; }
.live-side-menu a { min-height: 51px; padding: 0 15px 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.live-side-menu a:last-child { border-bottom: 0; }
.live-side-menu a b { color: var(--accent); font-size: 18px; }
.live-menu-label { min-width: 0; display: flex; align-items: center; gap: 10px; }
.live-menu-label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-side-menu a:hover, .live-side-menu a.active { color: var(--text-strong); background: var(--row-hover); box-shadow: inset 3px 0 0 var(--accent); }
.live-content-panel { min-width: 0; min-height: 670px; padding: 28px; border: 1px solid var(--widget-border); background: var(--widget-bg); box-shadow: 0 18px 55px rgba(0,0,0,.3); }
.live-page-heading { margin-bottom: 22px; }
.live-page-heading .eyebrow { margin-bottom: 9px; }
.live-page-heading h2 { margin: 0; color: var(--text-strong); font-family: var(--font-display); font-size: 28px; letter-spacing: .04em; }
.live-log-list { display: grid; }
.live-log-row { min-height: 68px; padding: 10px 8px; display: grid; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.live-log-row:last-child { border-bottom: 0; }
.live-log-row:hover { background: var(--row-hover); }
.live-log-row > div { min-width: 0; display: grid; gap: 5px; }
.live-log-row strong { overflow: hidden; color: var(--text-strong); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.live-log-row small { overflow: hidden; color: var(--log-subtext); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.live-wide-tabs { border-top: 1px solid var(--line); }
.live-tab-buttons { display: flex; gap: 6px; padding: 14px 0; }
.live-tab-buttons button { min-width: 84px; height: 34px; border: 1px solid var(--line); color: var(--muted); background: var(--panel); cursor: pointer; font-size: 10px; font-weight: 900; }
.live-tab-buttons button.active { color: var(--text-strong); border-color: var(--line-bright); background: var(--tab-active-bg); box-shadow: inset 0 -2px 0 var(--accent); }
.market-icon { width: 42px; font-size: 8px; color: var(--gold); border-color: var(--gold-line); }

.section { position: relative; max-width: 1440px; margin: 0 auto; padding: 110px 24px; }
.section-heading { margin-bottom: 44px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h2 { font-size: clamp(46px, 5.2vw, 78px); }
.text-link { color: var(--text-soft); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.text-link span { color: var(--accent); }
.news-grid { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 20px; }
.news-card { border: 1px solid var(--line); background: var(--panel); overflow: hidden; }
.news-visual { min-height: 210px; position: relative; display: grid; place-items: center; border-bottom: 1px solid var(--line); }
.news-card.featured .news-visual { min-height: 285px; }
.news-tag { position: absolute; inset-inline-start: 16px; top: 16px; padding: 7px 9px; border: 1px solid var(--line-bright); color: var(--text-strong); background: rgba(0,0,0,.42); font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.visual-symbol { color: var(--visual-symbol); font-size: 74px; text-shadow: 0 0 35px var(--accent-glow); }
.news-body { padding: 25px; }
.news-body time, .card-kicker { color: var(--accent-soft); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.news-body h3 { margin: 10px 0 12px; font-family: var(--font-display); font-size: 24px; }
.news-body p { margin: 0; color: var(--text-soft); font-size: 12px; line-height: 1.75; }
.news-body a, .content-card a { display: inline-block; margin-top: 18px; color: var(--accent-soft); font-size: 10px; font-weight: 850; }

.home-news-panel { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(155deg, rgba(13,11,10,0.96), rgba(8,8,6,0.96)); box-shadow: var(--shadow); }
.home-news-header { min-height: 72px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(249,117,104,0.08), transparent 55%); }
.home-news-header > div { min-width: 0; display: grid; gap: 5px; }
.home-news-kicker { color: var(--accent-soft); font-size: 8px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.home-news-header h2 { margin: 0; color: var(--text-strong); font-family: var(--font-display); font-size: 24px; letter-spacing: .025em; text-transform: uppercase; }
.home-news-header > a { flex: 0 0 auto; color: var(--text-soft); font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.home-news-header > a span { color: var(--accent); }
.home-news-layout { min-height: 352px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 2fr); }
.home-news-feature { position: relative; min-height: 352px; overflow: hidden; border-inline-end: 1px solid var(--line); color: inherit; isolation: isolate; }
.home-news-feature::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(3,8,10,.02) 18%, rgba(5,9,10,.42) 48%, rgba(3,3,2,0.96) 100%), linear-gradient(90deg, transparent 50%, rgba(5,8,9,.18)); }
.home-news-feature > img { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; transition: transform .45s ease, filter .45s ease; }
.home-news-feature:hover > img { transform: scale(1.035); filter: saturate(1.08) brightness(1.04); }
.news-category { display:inline-flex; width:max-content; min-height:26px; padding:0 10px; align-items:center; border:1px solid rgba(255,255,255,.18); color:#ffffff; background:rgba(5,9,10,.78); box-shadow:0 0 14px rgba(0,0,0,.18); font-size:10px; font-weight:950; letter-spacing:.11em; text-transform:uppercase; }
.news-category-event { border-color:rgba(255,138,122,0.5); color:#ffbbb0; background:rgba(189,17,0,0.74); }
.news-category-maintenance { border-color:rgba(250,217,168,0.46); color:#fffdfb; background:rgba(7,51,59,.74); }
.news-category-announcement { border-color:rgba(255,255,255,0.42); color:#ffffff; background:rgba(56,23,27,0.72); }
.home-news-feature > .news-category { position:absolute; z-index:2; inset-inline-start:18px; top:18px; }
.home-news-feature-copy { position:absolute; inset:auto 22px 22px; z-index:2; }
.home-news-feature-copy time { color:var(--accent-soft); font-size:8px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.home-news-feature-copy h3 { max-width:650px; margin:8px 0 9px; color:#ffffff; font-family:var(--font-display); font-size:clamp(25px,2.2vw,36px); line-height:1.02; }
.home-news-feature-copy p { max-width:640px; margin:0; color:rgba(253,244,236,0.75); font-size:10px; line-height:1.62; }
.home-news-feature-copy strong { display:inline-block; margin-top:13px; color:var(--accent-soft); font-size:8px; letter-spacing:.08em; text-transform:uppercase; }
.home-news-recent { min-width:0; display:grid; grid-template-rows:auto repeat(5, minmax(0,1fr)); background:rgba(2,10,13,.36); }
.home-news-recent-title { min-height:42px; padding:0 14px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); color:var(--muted); font-size:8px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.home-news-recent-title b { color:var(--accent); font-family:var(--font-display); font-size:15px; }
.home-news-row { min-width:0; padding:9px 12px; display:grid; grid-template-columns:24px minmax(0,1fr) 18px; align-items:center; gap:8px; border-bottom:1px solid var(--line); color:inherit; transition:background .18s ease; }
.home-news-row:last-child { border-bottom:0; }
.home-news-row:hover { background:var(--row-hover); }
.home-news-index { color:rgba(255,255,255,0.25); font-family:var(--font-display); font-size:12px; }
.home-news-row-copy { min-width:0; display:grid; grid-template-columns:auto 1fr; align-items:center; gap:4px 7px; }
.home-news-row-copy .news-category { min-height:24px; padding-inline:8px; font-size:9px; }
.home-news-row-copy strong { min-width:0; overflow:hidden; color:var(--text-strong); font-size:12px; line-height:1.32; text-overflow:ellipsis; white-space:nowrap; }
.home-news-row-copy time { grid-column:1 / -1; color:var(--muted); font-size:9px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.home-news-arrow { color:var(--accent); font-size:12px; opacity:.58; transition:transform .18s ease, opacity .18s ease; }
.home-news-row:hover .home-news-arrow { opacity:1; transform:translate(2px,-2px); }
.news-page-card { scroll-margin-top: calc(var(--header-height) + 24px); }
.news-page-card > .news-category { position:absolute; z-index:2; inset-inline-end:15px; top:15px; }
.news-page-card.selected-news { border-color:var(--line-bright); box-shadow:0 0 0 1px var(--line-bright), 0 0 34px var(--accent-glow-soft); }

.world-section { min-height: 760px; padding: 105px max(24px, calc((100vw - 1320px) / 2)); display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 80px; background: var(--world-bg); border-block: 1px solid var(--line); }
.world-copy h2 { font-size: clamp(55px, 6vw, 88px); }
.world-copy > p:not(.eyebrow) { max-width: 600px; margin: 25px 0 31px; color: var(--text-soft); line-height: 1.8; }
.class-orbit { position: relative; width: min(550px, 100%); aspect-ratio: 1; justify-self: center; border: 1px solid var(--orbit-line); border-radius: 50%; box-shadow: 0 0 0 55px var(--ring-shadow-1), 0 0 0 110px var(--ring-shadow-2); }
.class-orbit::before { content: ""; position: absolute; inset: 15%; border: 1px dashed var(--orbit-line); border-radius: 50%; animation: spin 38s linear infinite; }
.class-node { position: absolute; z-index: 2; width: 105px; border: 0; display: grid; justify-items: center; gap: 8px; color: var(--muted); background: none; cursor: pointer; }
.class-node span { width: 62px; height: 62px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); font-size: 24px; }
.class-node b { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.class-node:hover, .class-node.active { color: var(--text-strong); }
.class-node.active span { border-color: var(--accent); box-shadow: 0 0 26px var(--accent-glow); }
.class-node:nth-child(1) { left: 50%; top: -5%; transform: translateX(-50%); }
.class-node:nth-child(2) { right: -5%; top: 50%; transform: translateY(-50%); }
.class-node:nth-child(3) { left: 50%; bottom: -5%; transform: translateX(-50%); }
.class-node:nth-child(4) { left: -5%; top: 50%; transform: translateY(-50%); }
.class-core { position: absolute; inset: 29%; display: grid; place-items: center; align-content: center; border: 1px solid var(--line-bright); border-radius: 50%; text-align: center; background: var(--core-bg); box-shadow: 0 0 50px var(--accent-glow-soft); }
.class-core img { width: 55px; }
.class-core strong { margin-top: 10px; font-family: var(--font-display); font-size: 20px; }
.class-core p { max-width: 160px; margin: 8px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }

.ranking-wrap { border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.ranking-head, .ranking-row { display: grid; grid-template-columns: 80px 1.3fr 1fr 100px 130px; align-items: center; }
.ranking-head { min-height: 48px; color: var(--muted); background: var(--table-head); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.ranking-head > span, .ranking-row > span, .player-cell { padding: 0 18px; }
.ranking-row { min-height: 72px; border-top: 1px solid var(--line); }
.ranking-row:hover { background: var(--row-hover); }
.rank { color: var(--muted); font-family: var(--font-display); font-size: 18px; }
.rank.top { color: var(--gold); }
.player-cell { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; background: var(--avatar-bg); font-weight: 850; }
.player-cell div { display: grid; gap: 3px; }
.player-cell strong { font-size: 12px; }
.player-cell small { color: var(--muted); font-size: 8px; }
.class-cell, .level-cell { color: var(--text-soft); font-size: 11px; }
.power-cell { color: var(--accent-soft); font-size: 12px; font-weight: 850; }

.download-section { position: relative; min-height: 650px; padding: 105px 24px; display: grid; place-items: center; overflow: hidden; text-align: center; background: var(--download-bg); border-top: 1px solid var(--line); }
.download-section::before, .download-section::after { content: ""; position: absolute; width: 640px; height: 640px; border: 1px solid var(--orbit-line); border-radius: 50%; box-shadow: 0 0 0 70px var(--ring-shadow-1), 0 0 0 140px var(--ring-shadow-2); }
.download-light { position: absolute; top: -30%; width: 380px; height: 130%; transform: rotate(13deg); background: linear-gradient(90deg, transparent, var(--download-beam), transparent); filter: blur(16px); }
.download-section::before,.download-section::after,.download-light { pointer-events:none; }
.download-content { position: relative; z-index:1; max-width: 790px; }
.download-crest { width: 90px; margin: 0 auto 20px; filter: drop-shadow(0 0 22px var(--accent-glow)); }
.download-content h2 { font-size: clamp(52px, 6.2vw, 86px); }
.download-content p:not(.eyebrow) { max-width: 630px; margin: 22px auto 30px; color: var(--text-soft); line-height: 1.75; }
.download-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.requirements { margin-top: 29px; display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.requirements i { width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }

.page-hero { position: relative; min-height: 390px; padding: calc(var(--header-height) + 92px) max(24px, calc((100vw - 1320px) / 2)) 70px; display: flex; align-items: end; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--page-hero-bg); }
.page-hero-grid { position: absolute; inset: 0; z-index: -1; opacity: .2; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, black, transparent 90%); }
.page-hero-copy { max-width: 830px; }
.page-hero h1 { font-size: clamp(56px, 7vw, 94px); }
.page-hero p:last-child { max-width: 680px; margin: 23px 0 0; color: var(--text-soft); line-height: 1.8; }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.content-card { padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.content-card .icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 20px; border: 1px solid var(--line-bright); color: var(--accent-soft); background: var(--panel-strong); font-size: 23px; }
.content-card h2, .content-card h3 { margin: 10px 0 12px; font-family: var(--font-display); }
.content-card p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.75; }
.news-page-grid { grid-template-columns: repeat(3, 1fr); }
.download-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; }
.download-panel, .requirements-panel { padding: 35px; border: 1px solid var(--line); background: var(--panel); }
.download-panel h2, .requirements-panel h2 { margin: 0 0 15px; font-family: var(--font-display); font-size: 29px; }
.download-panel p, .requirements-panel p { color: var(--text-soft); line-height: 1.7; }
.spec-list { margin: 24px 0 0; display: grid; gap: 0; }
.spec-list div { padding: 14px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.spec-list span { color: var(--muted); font-size: 11px; }
.spec-list strong { font-size: 12px; text-align: end; }

.site-footer { position: relative; border-top: 1px solid var(--footer-line); background: var(--footer-bg); }
.footer-shell { max-width: 1320px; margin: 0 auto; padding: 68px 24px 48px; display: grid; grid-template-columns: minmax(270px, 1.5fr) repeat(4, 1fr); gap: 38px; }
.footer-brand { display: flex; align-items: flex-start; gap: 18px; }
.footer-brand img { width: 64px; filter: drop-shadow(0 0 16px var(--accent-glow-soft)); }
.footer-brand div { display: grid; gap: 10px; }
.footer-brand strong { color: var(--text-strong); font-family: var(--font-display); font-size: 23px; letter-spacing: .025em; }
.footer-brand span { max-width: 300px; color: var(--footer-muted); font-size: 14px; line-height: 1.75; }
.footer-column { display: grid; align-content: start; gap: 13px; }
.footer-column h2 { margin: 0 0 10px; color: var(--footer-heading); font-family: var(--font-display); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; }
.footer-column a, .footer-column button { width: max-content; border: 0; padding: 0; color: var(--footer-link); background: none; cursor: pointer; font-size: 14px; line-height: 1.55; }
.footer-column a:hover, .footer-column button:hover { color: var(--accent-soft); }
.footer-sponsors { min-width:0; text-align:center; }
.footer-sponsor-link { width:100%!important; max-width:100%; display:flex; justify-content:center; align-items:center; margin:0 auto; }
.footer-sponsor-link img { display:block; width:auto; height:auto; max-width:min(220px,100%); max-height:50px; object-fit:contain; object-position:center; border:0; background:transparent; }
.footer-bottom { max-width: 1320px; margin: 0 auto; padding: 23px 24px 30px; display: flex; justify-content: space-between; gap: 34px; border-top: 1px solid var(--footer-line); }
.footer-bottom p { max-width: 620px; margin: 0; color: var(--footer-muted); font-size: 12px; line-height: 1.65; }

.modal, .trailer-modal { width: min(460px, calc(100% - 30px)); border: 1px solid var(--line-bright); padding: 0; color: var(--text); background: var(--modal-bg); box-shadow: 0 30px 110px rgba(0,0,0,.78), 0 0 50px var(--accent-glow-soft); clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.modal::backdrop, .trailer-modal::backdrop { background: rgba(3,2,1,0.85); backdrop-filter: blur(8px); }
.modal-close { position: absolute; inset-inline-end: 14px; top: 10px; z-index: 2; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 28px; }
.modal-mark { height: 120px; display: grid; place-items: center; background: var(--modal-mark-bg); border-bottom: 1px solid var(--line); }
.modal-mark img { width: 70px; }
.modal-panel { padding: 30px; }
.modal-panel h2 { margin: 7px 0 24px; font-family: var(--font-display); font-size: 28px; }
.modal-panel form { display: grid; gap: 16px; }
.modal-panel label { display: grid; gap: 7px; color: var(--text-soft); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.modal-panel input { width: 100%; height: 46px; padding: 0 13px; border: 1px solid var(--line); outline: 0; color: var(--text-strong); background: var(--input-bg); }
.modal-panel input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.switch-panel { width: 100%; margin-top: 18px; border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; }
.switch-panel strong { color: var(--accent-soft); }
.trailer-modal { width: min(900px, calc(100% - 30px)); }
.trailer-placeholder { min-height: 500px; padding: 30px; display: grid; place-items: center; align-content: center; text-align: center; background: var(--trailer-bg); }
.trailer-rune { width: 100px; height: 100px; display: grid; place-items: center; border: 1px solid var(--line-bright); border-radius: 50%; font-family: var(--font-display); font-size: 54px; text-shadow: 0 0 25px var(--accent); box-shadow: 0 0 50px var(--accent-glow-soft); }
.trailer-placeholder span { margin-top: 22px; font-size: 11px; font-weight: 900; letter-spacing: .3em; }
.trailer-placeholder p { color: var(--muted); font-size: 12px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .72s ease, transform .72s ease; }
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .22s; }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .75; } }
@keyframes spin { to { transform: rotate(360deg); } }

html[dir="rtl"] .item-icon[data-tooltip]::after { inset-inline-start: auto; inset-inline-end: calc(100% + 10px); }

@media (max-width: 1440px) {
  .home-dashboard { grid-template-columns: 285px minmax(390px, 1fr) 320px; gap: 16px; }
  .hero-panel { padding-inline: 45px; }
  .widget-title h2 { font-size: 13px; }
}

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto auto 1fr; gap: 16px; }
  .menu-toggle { display: block; order: 3; justify-self: end; }
  .header-actions { order: 2; }
  .main-nav { position: fixed; inset: var(--header-height) 0 auto; height: auto; padding: 15px 24px 25px; display: grid; gap: 0; background: var(--mobile-nav-bg); border-bottom: 1px solid var(--line); transform: translateY(-140%); transition: transform .28s ease; }
  .main-nav.open { transform: none; }
  .main-nav a { min-height: 48px; justify-content: start; }
  .main-nav a::after { left: 0; transform: none; }
  .nav-dropdown { height: auto; display: grid; }
  .nav-dropdown-trigger { min-height: 48px; }
  .nav-dropdown-trigger span { margin-inline-start: auto; }
  .nav-submenu { position: static; width: 100%; padding: 0 0 8px 14px; display: grid; border: 0; border-inline-start: 1px solid var(--line); background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .nav-submenu a { min-height: 36px; font-size: 9px; }
  .nav-dropdown:hover .nav-submenu, .nav-dropdown:focus-within .nav-submenu { transform: none; }

  .home-dashboard { min-height: auto; grid-template-columns: 1fr 350px; }
  .left-rail { grid-column: 1 / -1; order: 3; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .center-stage { position: static; order: 1; }
  .right-rail { order: 2; }
  .hero-panel { min-height: 720px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; }
  .world-section { grid-template-columns: 1fr; }
  .world-copy { text-align: center; justify-self: center; }
  .world-copy .eyebrow { justify-content: center; }
  .footer-shell { grid-template-columns: 1.25fr repeat(4, 1fr); gap: 25px; }
}

@media (max-width: 820px) {
  :root { --header-height: 70px; }
  .site-header { padding-inline: 14px; grid-template-columns: auto 1fr auto; }
  .brand img { width: 39px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 7px; }
  .header-actions { justify-self: end; }
  .header-actions .link-button, .header-actions .button-sm { display: none; }
  .language-picker summary { min-width: 98px; padding-inline: 9px; font-size: 9px; }
  .menu-toggle { order: initial; }
  .home-dashboard { padding: calc(var(--header-height) + 24px) 14px 70px; display: flex; flex-direction: column; }
  .center-stage, .right-rail, .left-rail { width: 100%; }
  .center-stage { order: 1; }
  .right-rail { order: 2; grid-template-columns: 1fr; }
  .left-rail { order: 3; display: grid; grid-template-columns: 1fr; }
  .hero-panel { min-height: 650px; padding: 55px 28px 42px; }
  .hero-panel h1 { font-size: clamp(52px, 13vw, 78px); }
  .silkroad-seal { width: 100px; height: 100px; opacity: .45; }
  .silkroad-seal span { font-size: 38px; }
  .hero-actions .button { width: 100%; }
  .hero-meta { justify-content: space-between; gap: 14px; }
  .hero-meta div { padding-inline-start: 10px; }
  .route-line { font-size: 7px; }
  .item-icon[data-tooltip]::after { inset-inline-start: 0; top: calc(100% + 8px); transform: none; }
  .item-icon[data-tooltip]:hover::after, .item-icon[data-tooltip]:focus-visible::after { transform: none; }
  .section { padding: 82px 18px; }
  .section-heading { align-items: flex-start; }
  .section-heading .text-link { display: none; }
  .section-heading h2, .world-copy h2, .download-content h2 { font-size: 45px; }
  .news-grid, .news-page-grid, .content-grid { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: auto; display: block; }
  .news-card.featured .news-visual, .news-visual { min-height: 220px; }
  .home-news-layout { grid-template-columns: 1fr; }
  .home-news-feature { min-height: 330px; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .home-news-header { align-items: flex-start; }
  .home-news-header h2 { font-size: 21px; }
  .home-news-header > a { display:none; }
  .home-news-row-copy strong { white-space: normal; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; }
  .world-section { padding: 85px 18px; gap: 70px; }
  .class-orbit { width: 340px; }
  .class-node { width: 80px; }
  .class-node span { width: 45px; height: 45px; }
  .class-node b { font-size: 8px; }
  .class-core { inset: 28%; }
  .class-core img { width: 40px; }
  .class-core p { display: none; }
  .ranking-tabs { grid-template-columns: repeat(3, 1fr); }
  .ranking-tabs a:nth-child(3) { border-inline-end: 0; }
  .live-logs-page { grid-template-columns: 1fr; }
  .live-side-menu { position: static; display: grid; grid-template-columns: repeat(2, 1fr); }
  .live-side-menu h2 { grid-column: 1 / -1; }
  .live-side-menu a { border-inline-end: 1px solid var(--line); }
  .live-content-panel { padding: 20px 14px; }
  .ranking-wrap { overflow-x: auto; }
  .ranking-head, .ranking-row { min-width: 680px; }
  .download-actions .button { width: 100%; }
  .requirements { flex-wrap: wrap; }
  .page-hero { min-height: 340px; padding: calc(var(--header-height) + 74px) 18px 55px; }
  .page-hero h1 { font-size: 54px; }
  .download-layout { grid-template-columns: 1fr; }
  .footer-shell { grid-template-columns: 1fr 1fr; gap: 38px 28px; padding: 48px 18px 35px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding-inline: 18px; flex-direction: column; gap: 8px; }
  .trailer-placeholder { min-height: 330px; }
}

@media (max-width: 480px) {
  .site-header { grid-template-columns: auto 1fr auto; gap: 8px; }
  .brand-copy strong { max-width: 140px; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
  .language-picker summary { min-width: 84px; font-size: 8px; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); }
  .hero-meta strong { font-size: 18px; }
  .hero-meta span { font-size: 8px; }
  .capacity-dial { width: 180px; }
  .footer-shell { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .fortress-row { grid-template-columns: 38px minmax(0, 1fr) auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* v9: item tooltips are rendered in a viewport-level portal to avoid widget clipping. */
.item-icon[data-tooltip]::after { display: none !important; }


/* Ranking tabs share the same animated top-three podium. */
/* v22: MMORPG-style Hall of Champions. All ranking tabs share this top-three showcase. */
.ranking-hall {
  --hall-accent: #fa8273;
  --hall-accent-rgb: 219,169,79;
  position: relative;
  margin: 0 0 30px;
  padding: 24px 24px 32px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(var(--hall-accent-rgb),.26);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(var(--hall-accent-rgb),.10) 50%, transparent 50.2%),
    radial-gradient(ellipse at 50% -10%, rgba(var(--hall-accent-rgb),.18), transparent 42%),
    linear-gradient(180deg, rgba(21,15,13,0.94), rgba(6,5,5,0.985));
  box-shadow: 0 28px 80px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.025);
}
.ranking-hall::before,
.ranking-hall::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.ranking-hall::before {
  inset: 0;
  opacity: .42;
  background-image:
    linear-gradient(30deg, transparent 48%, rgba(255,255,255,.018) 49%, rgba(255,255,255,.018) 51%, transparent 52%),
    linear-gradient(-30deg, transparent 48%, rgba(255,255,255,.014) 49%, rgba(255,255,255,.014) 51%, transparent 52%);
  background-size: 52px 90px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}
.ranking-hall::after {
  width: 660px;
  height: 660px;
  left: 50%;
  top: -468px;
  transform: translateX(-50%);
  border: 1px solid rgba(var(--hall-accent-rgb),.13);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(var(--hall-accent-rgb),.018), 0 0 0 88px rgba(var(--hall-accent-rgb),.012);
}
.podium-mode-guild { --hall-accent: #f77d7e; --hall-accent-rgb: 214,135,93; }
.podium-mode-union { --hall-accent: #f6edda; --hall-accent-rgb: 137,182,201; }
.podium-mode-unique { --hall-accent: #f7fbe8; --hall-accent-rgb: 185,145,215; }
.podium-mode-honor { --hall-accent: #fca494; --hall-accent-rgb: 227,199,113; }
.podium-mode-job { --hall-accent: #80ca9b; --hall-accent-rgb: 129,201,154; }
.ranking-hall-aura { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ranking-hall-aura i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: rgba(var(--hall-accent-rgb),.72); box-shadow: 0 0 11px rgba(var(--hall-accent-rgb),.7); animation: hallDust 7s ease-in-out infinite; }
.ranking-hall-aura i:nth-child(1) { left: 18%; top: 38%; animation-delay: -.5s; }
.ranking-hall-aura i:nth-child(2) { left: 51%; top: 22%; width: 3px; height: 3px; animation-delay: -2.8s; }
.ranking-hall-aura i:nth-child(3) { right: 17%; top: 43%; animation-delay: -4.6s; }
.ranking-hall-header { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; margin: 0 auto 22px; text-align: center; }
.ranking-hall-header > div > span { display: block; color: var(--hall-accent); font-size: 8px; font-weight: 900; letter-spacing: .21em; text-transform: uppercase; }
.ranking-hall-header strong { display: block; margin-top: 4px; color: #ffecdf; font-family: var(--font-display); font-size: clamp(23px, 3vw, 36px); line-height: 1; letter-spacing: .045em; text-shadow: 0 8px 30px rgba(0,0,0,.6); }
.ranking-hall-header small { display: block; margin-top: 7px; color: #a98675; font-size: 9px; letter-spacing: .06em; }
.hall-ornament { position: relative; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--hall-accent-rgb),.56)); }
.hall-ornament::after { content: "◆"; position: absolute; right: -5px; top: 50%; color: var(--hall-accent); font-size: 9px; transform: translateY(-52%) rotate(45deg); }
.hall-ornament.mirror { transform: scaleX(-1); }

.ranking-podium-v22 {
  position: relative;
  z-index: 2;
  margin: 0;
  display: grid;
  grid-template-columns: .9fr 1.16fr .9fr;
  align-items: end;
  gap: 16px;
  perspective: 1200px;
}
.ranking-podium-card {
  --podium-accent: #ed5d5b;
  --podium-accent-rgb: 184,117,69;
  --podium-edge: rgba(237,93,91,0.42);
  position: relative;
  min-width: 0;
  min-height: 356px;
  padding: 28px 20px 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--podium-edge);
  background:
    linear-gradient(145deg, rgba(var(--podium-accent-rgb),.10), transparent 32%),
    radial-gradient(circle at 50% 22%, rgba(var(--podium-accent-rgb),.16), transparent 32%),
    linear-gradient(180deg, rgba(23,18,16,0.98), rgba(6,5,5,0.995));
  box-shadow: 0 24px 55px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.03);
  transform-origin: 50% 100%;
  animation: podiumEnterV22 .82s cubic-bezier(.18,.84,.22,1) var(--podium-delay,0s) both;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.ranking-podium-card.place-1 {
  --podium-accent: #ff9f90;
  --podium-accent-rgb: 240,198,100;
  --podium-edge: rgba(255,159,144,0.66);
  min-height: 430px;
  padding-top: 22px;
  background:
    linear-gradient(135deg, rgba(255,159,144,0.11), transparent 33%),
    radial-gradient(circle at 50% 16%, rgba(255,159,144,0.25), transparent 36%),
    linear-gradient(180deg, rgba(36,20,15,0.99), rgba(7,5,5,0.995));
  box-shadow: 0 32px 85px rgba(0,0,0,.44), 0 0 46px rgba(252,122,105,0.095), inset 0 1px 0 rgba(255,255,255,.055);
}
.ranking-podium-card.place-2 { --podium-accent: #fdfbe0; --podium-accent-rgb: 215,225,234; --podium-edge: rgba(253,251,224,0.42); }
.ranking-podium-card.place-3 { --podium-accent: #f57170; --podium-accent-rgb: 207,132,82; --podium-edge: rgba(245,113,112,0.46); }
.ranking-podium-card:hover { transform: translateY(-6px); border-color: rgba(var(--podium-accent-rgb),.75); box-shadow: 0 34px 78px rgba(0,0,0,.44), 0 0 36px rgba(var(--podium-accent-rgb),.10); }
.ranking-podium-card.place-1:hover { transform: translateY(-8px) scale(1.008); }
.ranking-podium-card::before { content: ""; position: absolute; inset: 8px; pointer-events: none; border: 1px solid rgba(var(--podium-accent-rgb),.105); clip-path: polygon(0 0,28% 0,31% 2px,69% 2px,72% 0,100% 0,100% 100%,72% 100%,69% calc(100% - 2px),31% calc(100% - 2px),28% 100%,0 100%); }
.ranking-podium-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(112deg, transparent 18%, rgba(255,255,255,.065) 44%, transparent 61%); transform: translateX(-135%); animation: podiumSheenV22 5.8s ease-in-out calc(var(--podium-delay,0s) + 1.1s) infinite; }
.podium-glow { position: absolute; z-index: 0; width: 230px; height: 230px; top: -112px; left: 50%; transform: translateX(-50%); border-radius: 50%; background: rgba(var(--podium-accent-rgb),.22); filter: blur(42px); opacity: .42; animation: podiumPulseV22 3.8s ease-in-out infinite alternate; }
.place-1 .podium-glow { width: 300px; height: 300px; top: -138px; opacity: .55; }
.podium-rank-ghost { position: absolute; z-index: 0; right: 10px; bottom: -20px; color: rgba(var(--podium-accent-rgb),.045); font-family: Georgia,serif; font-size: 150px; font-weight: 900; line-height: 1; user-select: none; }
.place-1 .podium-rank-ghost { right: 4px; bottom: -27px; font-size: 204px; color: rgba(255,159,144,0.055); }
.podium-card-runes { position: absolute; inset: 0; pointer-events: none; }
.podium-card-runes i { position: absolute; width: 34px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--podium-accent-rgb),.45)); }
.podium-card-runes i:nth-child(1) { top: 19px; left: 17px; transform: rotate(45deg); transform-origin: left; }
.podium-card-runes i:nth-child(2) { top: 19px; right: 17px; transform: rotate(-45deg); transform-origin: right; }
.podium-card-runes i:nth-child(3) { bottom: 25px; left: 15px; transform: rotate(-45deg); transform-origin: left; }
.podium-card-runes i:nth-child(4) { bottom: 25px; right: 15px; transform: rotate(45deg); transform-origin: right; }
.podium-crown { position: relative; z-index: 3; height: 43px; display: flex; align-items: center; gap: 8px; color: #ffab9d; text-shadow: 0 0 19px rgba(255,171,157,0.33); animation: crownHover 3.1s ease-in-out infinite; }
.podium-crown b { font-family: Georgia,serif; font-size: 31px; font-weight: 400; line-height: 1; }
.podium-crown span { color: rgba(255,171,157,0.55); font-size: 7px; }
.podium-medal-stage { position: relative; z-index: 3; width: 156px; height: 92px; display: flex; align-items: center; justify-content: center; }
.place-1 .podium-medal-stage { height: 104px; margin-top: -4px; }
.podium-medal { position: relative; z-index: 2; width: 70px; height: 82px; object-fit: contain; filter: drop-shadow(0 10px 15px rgba(0,0,0,.45)) drop-shadow(0 0 12px rgba(var(--podium-accent-rgb),.13)); animation: medalFloatV22 3.2s ease-in-out calc(var(--podium-delay,0s) + .4s) infinite; }
.place-1 .podium-medal { width: 88px; height: 100px; }
.medal-wing { position: absolute; z-index: 1; top: 50%; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--podium-accent-rgb),.52)); }
.medal-wing::before,.medal-wing::after { content: ""; position: absolute; right: 2px; width: 38px; height: 1px; background: inherit; transform-origin: right; }
.medal-wing::before { transform: rotate(16deg); }.medal-wing::after { transform: rotate(-16deg); }
.medal-wing.left { left: 0; transform: translateY(-50%); }.medal-wing.right { right: 0; transform: translateY(-50%) scaleX(-1); }
.podium-portrait-frame { position: relative; z-index: 2; width: 94px; height: 94px; margin-top: -14px; display: grid; place-items: center; border: 1px solid rgba(var(--podium-accent-rgb),.28); border-radius: 50%; background: radial-gradient(circle,rgba(var(--podium-accent-rgb),.08),transparent 64%); box-shadow: 0 0 0 7px rgba(0,0,0,.15),0 0 0 8px rgba(var(--podium-accent-rgb),.07); }
.podium-portrait-frame::before { content: ""; position: absolute; inset: -7px; border: 1px dashed rgba(var(--podium-accent-rgb),.18); border-radius: 50%; animation: portraitOrbit 17s linear infinite; }
.place-1 .podium-portrait-frame { width: 116px; height: 116px; margin-top: -8px; box-shadow: 0 0 0 9px rgba(0,0,0,.16),0 0 0 10px rgba(255,159,144,0.08),0 0 32px rgba(255,159,144,0.12); }
.podium-avatar { width: 68px; height: 68px; display: grid; place-items: center; border: 1px solid rgba(var(--podium-accent-rgb),.62); border-radius: 50%; color: #fff4eb; background: radial-gradient(circle at 35% 24%, rgba(255,255,255,.15), rgba(var(--podium-accent-rgb),.08) 33%, rgba(4,3,3,0.92) 72%), var(--avatar-bg); box-shadow: inset 0 0 22px rgba(0,0,0,.25),0 0 24px rgba(var(--podium-accent-rgb),.11); font-family: var(--font-display); font-size: 28px; font-weight: 900; }
.place-1 .podium-avatar { width: 84px; height: 84px; font-size: 35px; }
.podium-copy { position: relative; z-index: 2; width: 100%; margin-top: 20px; text-align: center; }
.podium-kicker { display: inline-flex; align-items: center; min-height: 22px; padding: 0 10px; border: 1px solid rgba(var(--podium-accent-rgb),.22); color: var(--podium-accent); background: rgba(var(--podium-accent-rgb),.045); font-size: 7px; font-weight: 950; letter-spacing: .18em; text-transform: uppercase; }
.place-1 .podium-kicker { color: #ffcdc5; border-color: rgba(255,159,144,0.37); background: rgba(255,159,144,0.075); }
.podium-copy strong { display: block; width: 100%; margin-top: 9px; overflow: hidden; color: #fff1e7; font-family: var(--font-display); font-size: 25px; line-height: 1.1; letter-spacing: .015em; text-overflow: ellipsis; text-shadow: 0 7px 20px rgba(0,0,0,.55); white-space: nowrap; }
.place-1 .podium-copy strong { font-size: 34px; color: #fff2e8; text-shadow: 0 8px 25px rgba(0,0,0,.6),0 0 18px rgba(255,159,144,0.1); }
.podium-category { display: block; margin-top: 5px; color: #a07865; font-size: 7px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.podium-stats { position: relative; z-index: 2; width: 100%; margin-top: 20px; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border-top: 1px solid rgba(var(--podium-accent-rgb),.13); border-bottom: 1px solid rgba(var(--podium-accent-rgb),.075); background: rgba(0,0,0,.10); }
.podium-stats div { min-width: 0; padding: 11px 7px 12px; text-align: center; border-inline-end: 1px solid rgba(var(--podium-accent-rgb),.075); }
.podium-stats div:last-child { border-inline-end: 0; }
.podium-stats span { display: block; overflow: hidden; color: #9f7864; font-size: 7px; font-weight: 850; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.podium-stats b { display: block; margin-top: 5px; overflow: hidden; color: #fad6be; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.place-1 .podium-stats b { color: #ffddd9; }
.podium-pedestal { position: absolute; z-index: 3; left: 50%; bottom: -1px; width: 116px; height: 31px; transform: translateX(-50%); display: grid; place-items: center; clip-path: polygon(15% 0,85% 0,100% 100%,0 100%); border-top: 1px solid rgba(var(--podium-accent-rgb),.44); background: linear-gradient(180deg,rgba(var(--podium-accent-rgb),.15),rgba(0,0,0,.45)); }
.place-1 .podium-pedestal { width: 154px; height: 36px; background: linear-gradient(180deg,rgba(255,159,144,0.22),rgba(51,31,12,.75)); }
.podium-pedestal span { color: var(--podium-accent); font-family: Georgia,serif; font-size: 16px; font-weight: 900; }.place-1 .podium-pedestal span { font-size: 20px; color: #ffc8bf; }
.podium-pedestal i { position: absolute; top: 0; left: 15%; width: 70%; height: 1px; background: linear-gradient(90deg,transparent,rgba(var(--podium-accent-rgb),.7),transparent); box-shadow: 0 0 12px rgba(var(--podium-accent-rgb),.24); }

@keyframes podiumEnterV22 { from { opacity: 0; transform: translateY(44px) rotateX(5deg) scale(.96); } to { opacity: 1; transform: translateY(0) rotateX(0) scale(1); } }
@keyframes podiumSheenV22 { 0%,72% { transform: translateX(-135%); opacity: 0; } 80% { opacity: 1; } 100% { transform: translateX(135%); opacity: 0; } }
@keyframes podiumPulseV22 { from { opacity: .29; transform: translateX(-50%) scale(.88); } to { opacity: .62; transform: translateX(-50%) scale(1.13); } }
@keyframes medalFloatV22 { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-7px) rotate(1deg); } }
@keyframes crownHover { 0%,100% { transform: translateY(0); filter: brightness(1); } 50% { transform: translateY(-5px); filter: brightness(1.14); } }
@keyframes portraitOrbit { to { transform: rotate(360deg); } }
@keyframes hallDust { 0%,100% { opacity: .12; transform: translateY(28px) scale(.6); } 42% { opacity: .8; } 60% { opacity: .42; transform: translateY(-32px) scale(1); } }

@media (max-width: 900px) {
  .ranking-hall { padding-inline: 16px; }
  .ranking-podium-v22 { gap: 10px; }
  .ranking-podium-card { min-height: 338px; padding-inline: 13px; }
  .ranking-podium-card.place-1 { min-height: 402px; }
  .podium-copy strong { font-size: 21px; }.place-1 .podium-copy strong { font-size: 28px; }
  .podium-stats span { font-size: 6px; }.podium-stats b { font-size: 9px; }
}
@media (max-width: 760px) {
  .ranking-hall { padding: 20px 12px 24px; }
  .ranking-hall-header { grid-template-columns: 36px 1fr 36px; gap: 8px; margin-bottom: 16px; }
  .ranking-hall-header strong { font-size: 25px; }
  .ranking-hall-header small { font-size: 8px; }
  .ranking-podium-v22 { grid-template-columns: 1fr; gap: 12px; }
  .ranking-podium-card,.ranking-podium-card.place-1 { min-height: 0; padding: 20px 16px 35px; }
  .ranking-podium-card.place-1 { order: -1; }
  .podium-crown { height: 34px; }.podium-crown b { font-size: 26px; }
  .podium-medal-stage,.place-1 .podium-medal-stage { height: 76px; }
  .podium-medal,.place-1 .podium-medal { width: 64px; height: 75px; }
  .podium-portrait-frame,.place-1 .podium-portrait-frame { width: 84px; height: 84px; margin-top: -8px; }
  .podium-avatar,.place-1 .podium-avatar { width: 62px; height: 62px; font-size: 26px; }
  .podium-copy { margin-top: 14px; }.podium-copy strong,.place-1 .podium-copy strong { font-size: 24px; }
  .podium-rank-ghost,.place-1 .podium-rank-ghost { font-size: 130px; bottom: -18px; }
}
@media (max-width: 480px) {
  body[data-page="ranking"] .page-hero h1 { font-size: 43px; letter-spacing: -.055em; }
}


/* v31 contact, download readability and authenticated ticket center */
.submenu-social-mark { width:22px; height:22px; display:grid; place-items:center; border:1px solid var(--line-bright); color:var(--accent-soft); background:var(--panel-strong); font-family:var(--font-display); font-size:10px; font-weight:900; }
.header-user-link { max-width:124px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--accent-soft); font-size:12px; font-weight:850; }
.header-logout-form { margin:0; }
.download-panel .button-primary.large { margin-top:20px; min-height:68px; min-width:270px; flex-direction:column; gap:4px; color:#0f0908; font-size:15px; font-weight:950; line-height:1.1; text-shadow:0 1px rgba(255,255,255,.2); }
.download-panel .button-primary.large small { color:#ad120b; opacity:1; font-size:10.5px; font-weight:850; letter-spacing:.1em; }

.ticket-section { padding-top:62px; }
.ticket-account-strip { max-width:1320px; margin:0 auto 22px; padding:16px 18px; display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:20px; border:1px solid var(--line); background:linear-gradient(90deg,var(--panel),var(--panel-strong)); }
.ticket-account-strip > div { display:grid; gap:4px; }
.ticket-account-strip span { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.ticket-account-strip strong { color:var(--text-strong); font-family:var(--font-display); font-size:18px; }
.ticket-layout { max-width:1320px; margin:0 auto; display:grid; grid-template-columns:360px minmax(0,1fr); gap:22px; }
.ticket-sidebar,.ticket-main { border:1px solid var(--line); background:var(--panel); box-shadow:var(--shadow); }
.ticket-sidebar { align-self:start; overflow:hidden; }
.ticket-sidebar-heading { min-height:58px; padding:0 17px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); color:var(--text-soft); font-size:10px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.ticket-sidebar-heading b { color:var(--accent); font-family:var(--font-display); font-size:18px; }
.ticket-empty { margin:0; padding:28px 18px; color:var(--muted); font-size:12px; line-height:1.7; }
.ticket-list-item { padding:16px 17px; display:grid; gap:8px; border-bottom:1px solid var(--line); transition:background .18s ease,border-color .18s ease; }
.ticket-list-item:hover,.ticket-list-item.active { background:var(--row-hover); box-shadow:inset 3px 0 var(--accent); }
.ticket-list-item strong { overflow:hidden; color:var(--text-strong); font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.ticket-list-item small { display:flex; justify-content:space-between; gap:10px; color:var(--muted); font-size:9px; }
.ticket-status { width:max-content; min-height:22px; padding:0 8px; display:inline-flex; align-items:center; border:1px solid var(--line-bright); font-size:8px; font-weight:950; letter-spacing:.1em; text-transform:uppercase; }
.ticket-status-open { color:#7be6af; border-color:rgba(123,230,175,0.33); background:rgba(36,132,85,0.15); }
.ticket-status-closed { color:#d0bbb0; background:rgba(255,255,255,.035); }
.ticket-main { min-height:590px; }
.ticket-create,.ticket-detail { padding:34px; }
.ticket-create h2,.ticket-detail h2 { margin:0; font-family:var(--font-display); font-size:clamp(30px,4vw,48px); }
.ticket-create > p:not(.eyebrow) { max-width:700px; color:var(--text-soft); font-size:13px; line-height:1.75; }
.ticket-create form,.ticket-reply-form { margin-top:28px; display:grid; gap:18px; }
.ticket-form-grid { display:grid; grid-template-columns:1fr .6fr; gap:16px; }
.ticket-create label,.ticket-reply-form label { display:grid; gap:8px; color:var(--muted); font-size:10px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.ticket-create input,.ticket-create select,.ticket-create textarea,.ticket-reply-form textarea { width:100%; border:1px solid var(--line-bright); outline:0; padding:13px 14px; color:var(--text-strong); background:var(--input-bg); font:500 13px/1.55 var(--font-body); text-transform:none; letter-spacing:normal; resize:vertical; }
.ticket-create input:focus,.ticket-create select:focus,.ticket-create textarea:focus,.ticket-reply-form textarea:focus { border-color:var(--accent); box-shadow:0 0 0 2px var(--accent-glow-soft); }
.ticket-form-actions { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.ticket-form-actions small { max-width:560px; color:var(--muted); font-size:10px; line-height:1.6; }
.ticket-detail-header { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; padding-bottom:24px; border-bottom:1px solid var(--line); }
.ticket-detail-header p { margin:8px 0 7px; color:var(--muted); font-size:10px; letter-spacing:.08em; }
.ticket-detail-header > time { color:var(--muted); font-size:10px; }
.ticket-thread { padding:26px 0; display:grid; gap:14px; }
.ticket-message { max-width:88%; padding:16px 18px; border:1px solid var(--line); background:var(--panel-strong); }
.ticket-message-user { justify-self:end; border-color:var(--line-bright); }
.ticket-message-support { justify-self:start; box-shadow:inset 3px 0 var(--accent); }
.ticket-message > div { display:flex; align-items:center; justify-content:space-between; gap:18px; }
.ticket-message strong { color:var(--accent-soft); font-size:10px; letter-spacing:.06em; }
.ticket-message time { color:var(--muted); font-size:9px; }
.ticket-message p { margin:10px 0 0; color:var(--text); font-size:13px; line-height:1.75; }
.ticket-close-form { margin-top:14px; text-align:end; }
.ticket-close-form button { border:0; padding:8px 0; color:#ec5d65; background:none; cursor:pointer; font-size:10px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.ticket-closed-note { margin-top:18px; padding:16px; border:1px solid var(--line); color:var(--muted); background:rgba(255,255,255,.025); font-size:12px; }

@media (max-width:1180px){
  .main-nav { gap:16px; }
  .main-nav a { font-size:13px; }
}
@media (max-width:820px){
  .nav-submenu a { font-size:10.5px; }
  .ticket-account-strip { grid-template-columns:1fr auto; }
  .ticket-account-strip .button { grid-column:1 / -1; width:100%; }
  .ticket-layout { grid-template-columns:1fr; }
  .ticket-form-grid { grid-template-columns:1fr; }
  .ticket-create,.ticket-detail { padding:22px 16px; }
  .ticket-detail-header { display:grid; }
  .ticket-message { max-width:96%; }
  .ticket-form-actions { align-items:stretch; flex-direction:column; }
  .ticket-form-actions .button { width:100%; }
}

/* v32 account / registration settings */
#account-modal { max-height: calc(100vh - 30px); overflow-y: auto; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.field-label-row small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: none; }
.switch-panel-forgot { margin-top: 8px; }
.account-help { margin: -8px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.account-policy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 4px; }
.account-policy { display: block; padding: 9px 10px; border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.018); font-size: 9px; font-weight: 850; letter-spacing: .05em; text-align: center; text-transform: uppercase; }
.account-policy.active { border-color: var(--success-line); color: #9bf3bd; box-shadow: inset 0 0 18px rgba(95,236,151,0.045); }
.account-policy-closed { margin: 15px 0 0; border-color: var(--danger-line); color: var(--text-soft); }
.registration-confirm-note { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid var(--success-line); background: rgba(52,168,96,0.06); }
.registration-confirm-note strong { color: #a3f4c2; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.registration-confirm-note span { color: var(--muted); font-size: 10px; line-height: 1.55; }
@media (max-width: 520px) {
  .account-policy-grid { grid-template-columns: 1fr; }
  .modal-panel { padding: 24px 20px; }
}

/* v34 account verification */
.verification-code-input { font: 900 22px/1 var(--font-mono, Consolas, monospace); letter-spacing: .32em; text-align: center; }
.verification-resend-form { margin-top: 8px; }
.verification-resend-form .switch-panel { width: 100%; }


/* v36 direct AccountDb auth / account feedback / register captcha */
.account-feedback { margin: 14px 30px 0; padding: 12px 14px; border: 1px solid var(--line); color: var(--text-strong); background: rgba(4,12,16,.82); font-size: 12px; line-height: 1.55; box-shadow: inset 0 0 22px rgba(255,255,255,.025); }
.account-feedback-error { border-color: var(--danger-line); box-shadow: inset 0 0 22px rgba(255,61,89,0.05); }
.account-feedback-success { border-color: var(--success-line); color: #fff4d7; box-shadow: inset 0 0 22px rgba(95,236,151,0.05); }
.register-captcha { display: grid; gap: 9px; padding: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.16); }
.register-captcha-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--text-soft); font-size: 10px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.register-captcha img { display:block; width:100%; max-width:270px; height:auto; aspect-ratio:270/74; object-fit:contain; justify-self:center; border:1px solid rgba(255,236,203,0.18); border-radius:7px; background:#0f0d08; }
.captcha-refresh { border: 0; padding: 0; color: var(--accent-soft); background: transparent; cursor: pointer; font: inherit; text-transform: none; letter-spacing: 0; }
.captcha-refresh:hover { text-decoration: underline; }
.modal-panel button[aria-busy="true"] { opacity: .65; cursor: wait; }
@media (max-width:520px){ .account-feedback { margin-inline:20px; } }

/* v38 reliable account modal, profile center and balance widgets */
#account-modal { transition: width .2s ease; }
#account-modal[data-active-panel="register"] { width:min(900px,calc(100% - 30px)); }
#account-modal[data-active-panel="register"] .modal-mark { height:86px; }
#account-modal[data-active-panel="register"] .modal-mark img { width:58px; }
#register-panel form { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 18px; }
#register-panel form > .register-captcha,
#register-panel form > .registration-confirm-note,
#register-panel form > .button.full { grid-column:1 / -1; }
#register-panel .register-captcha { min-width:0; grid-template-columns:minmax(0,270px) minmax(0,1fr); justify-content:center; align-items:center; }
#register-panel .register-captcha input { width:100%; min-width:0; box-sizing:border-box; }
#account-modal { box-sizing:border-box; max-height:calc(100dvh - 24px); overflow-x:hidden; }
#register-panel .register-captcha-head { flex-wrap:wrap; }
#register-panel .register-captcha-head { grid-column:1 / -1; }
#register-panel .register-captcha img { min-width:0; }
.account-feedback { position:relative; z-index:4; }

.account-icon { width:20px; height:20px; flex:0 0 20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.account-balance-widget { overflow:hidden; }
.account-balance-title { justify-content:flex-start; min-height:62px; }
.account-balance-title .account-icon { color:var(--accent); filter:drop-shadow(0 0 8px var(--accent-glow)); }
.account-balance-title h2 { font-size:17px; }
.account-balance-list { margin:0; padding:9px 17px 12px; }
.account-balance-list > div { min-height:43px; display:flex; align-items:center; justify-content:space-between; gap:18px; border-bottom:1px solid var(--line); }
.account-balance-list > div:last-child { border-bottom:0; }
.account-balance-list dt { color:var(--muted); font-size:10px; font-weight:850; letter-spacing:.055em; text-transform:uppercase; }
.account-balance-list dd { margin:0; color:var(--text-strong); font-family:var(--font-display); font-size:16px; font-weight:800; letter-spacing:.025em; }
.account-balance-warning { margin:0 16px 13px; color:var(--danger-soft); font-size:9px; line-height:1.5; }
.account-balance-link { min-height:48px; padding:0 16px; display:flex; align-items:center; gap:10px; border-top:1px solid var(--line-bright); color:var(--accent-soft); background:linear-gradient(90deg,rgba(250,128,114,0.11),rgba(250,128,114,0.025)); font-size:10px; font-weight:900; letter-spacing:.07em; text-transform:uppercase; transition:background .18s ease,color .18s ease; }
.account-balance-link:hover { color:var(--text-strong); background:rgba(250,128,114,0.14); }
.account-balance-link .account-icon { width:17px; height:17px; flex-basis:17px; }
.account-balance-link b { margin-inline-start:auto; color:var(--accent); font-size:17px; }

.profile-section { padding-top:62px; }
.profile-session-strip { max-width:1320px; margin:0 auto 22px; padding:16px 18px; display:grid; grid-template-columns:1.35fr repeat(3,minmax(145px,.65fr)); align-items:center; gap:18px; border:1px solid var(--line); background:linear-gradient(90deg,var(--panel),var(--panel-strong)); box-shadow:var(--shadow); }
.profile-session-strip > div { min-width:0; display:grid; gap:5px; }
.profile-session-strip span { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.12em; text-transform:uppercase; }
.profile-session-strip strong { overflow:hidden; color:var(--text-strong); font-family:var(--font-display); font-size:17px; text-overflow:ellipsis; white-space:nowrap; }
.profile-session-primary { grid-template-columns:42px minmax(0,1fr); align-items:center; }
.profile-session-primary > .account-icon { width:40px; height:40px; padding:9px; border:1px solid var(--line-bright); color:var(--accent-soft); background:var(--panel-strong); }
.profile-session-state strong { display:flex; align-items:center; gap:7px; color:#a3f4c2; }
.profile-session-state i { width:7px; height:7px; border-radius:50%; background:#6fd797; box-shadow:0 0 10px rgba(111,215,151,0.7); }
.profile-layout { max-width:1320px; margin:0 auto; display:grid; grid-template-columns:330px minmax(0,1fr); align-items:start; gap:22px; }
.profile-sidebar { display:grid; gap:18px; align-self:start; }
.profile-menu { overflow:hidden; border:1px solid var(--line); background:var(--panel); box-shadow:var(--shadow); }
.profile-menu-title { min-height:53px; padding:0 17px; display:flex; align-items:center; border-bottom:1px solid var(--line); color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.profile-menu a { min-height:54px; padding:0 15px; display:grid; grid-template-columns:22px minmax(0,1fr) auto; align-items:center; gap:11px; border-bottom:1px solid var(--line); color:var(--text-soft); font-size:11px; font-weight:800; transition:background .18s ease,color .18s ease,box-shadow .18s ease; }
.profile-menu a:last-child { border-bottom:0; }
.profile-menu a:hover,.profile-menu a.active { color:var(--text-strong); background:var(--row-hover); box-shadow:inset 3px 0 var(--accent); }
.profile-menu a .account-icon { width:18px; height:18px; color:var(--accent-soft); }
.profile-menu a b { color:var(--muted); font-size:18px; }
.profile-main { min-width:0; min-height:620px; border:1px solid var(--line); background:var(--panel); box-shadow:var(--shadow); }
.profile-panel { min-height:618px; padding:42px; }
.profile-panel h2 { margin:0; color:var(--text-strong); font-family:var(--font-display); font-size:clamp(34px,4.5vw,56px); line-height:1; }
.profile-panel-intro { max-width:720px; margin:17px 0 0; color:var(--text-soft); font-size:13px; line-height:1.8; }
.profile-information-grid { margin:34px 0 0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.profile-information-grid > div { min-height:94px; padding:18px; display:grid; align-content:center; gap:8px; border:1px solid var(--line); background:var(--panel-strong); }
.profile-information-grid dt { color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.1em; text-transform:uppercase; }
.profile-information-grid dd { min-width:0; margin:0; overflow-wrap:anywhere; color:var(--text-strong); font-family:var(--font-display); font-size:18px; }
.profile-security-grid { margin-top:34px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.profile-security-grid > div { min-height:160px; padding:22px; display:grid; align-content:center; justify-items:start; gap:10px; border:1px solid var(--line); background:var(--panel-strong); }
.profile-security-grid .account-icon { width:30px; height:30px; color:var(--accent-soft); }
.profile-security-grid span { color:var(--muted); font-size:10px; font-weight:900; letter-spacing:.09em; text-transform:uppercase; }
.profile-security-grid strong { padding:6px 9px; border:1px solid var(--line); font-size:9px; letter-spacing:.08em; text-transform:uppercase; }
.profile-security-grid strong.verified { color:#a3f4c2; border-color:var(--success-line); }
.profile-security-grid strong.pending { color:var(--danger-soft); border-color:var(--danger-line); }
.profile-coming-soon,.donate-panel { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; }
.profile-coming-soon > .account-icon,.donate-panel > .account-icon { width:52px; height:52px; margin-bottom:24px; color:var(--accent); filter:drop-shadow(0 0 15px var(--accent-glow)); }
.donate-panel .button { margin-top:26px; }
.donate-safety-note { max-width:720px; margin-top:27px; padding:15px 17px; display:flex; align-items:flex-start; gap:12px; border:1px solid var(--success-line); color:var(--text-soft); background:var(--success-bg); font-size:11px; line-height:1.65; }
.donate-safety-note .account-icon { width:19px; height:19px; color:#a3f4c2; }

@media (max-width:900px){
  #account-modal[data-active-panel="register"] { width:min(720px,calc(100% - 24px)); }
  .profile-session-strip { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .profile-layout { grid-template-columns:1fr; }
  .profile-sidebar { grid-template-columns:minmax(260px,.8fr) minmax(320px,1.2fr); }
  .profile-main { min-height:0; }
  .profile-panel { min-height:520px; }
}
@media (max-width:680px){
  #account-modal[data-active-panel="register"] { width:calc(100% - 18px); }
  #account-modal[data-active-panel="register"] .modal-mark { height:70px; }
  #register-panel form { grid-template-columns:1fr; }
  #register-panel form > .register-captcha,#register-panel form > .registration-confirm-note,#register-panel form > .button.full { grid-column:auto; }
  #register-panel .register-captcha { grid-template-columns:1fr; }
  #register-panel .register-captcha-head { grid-column:auto; }
  .profile-session-strip { grid-template-columns:1fr; }
  .profile-sidebar { grid-template-columns:1fr; }
  .profile-information-grid,.profile-security-grid { grid-template-columns:1fr; }
  .profile-panel { min-height:460px; padding:30px 20px; }
  .profile-panel h2 { font-size:36px; }
}

/* Character cards use the supplied transparent artwork without an extra card frame. */
.profile-characters-panel { min-height:460px; }
.profile-characters-panel h2 { font-size:clamp(26px,3vw,38px); }
.account-character-grid { margin-top:32px; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,350px),1fr)); gap:30px 20px; align-items:start; }
.account-character { width:100%; max-width:550px; margin:0; justify-self:center; min-width:0; container-type:inline-size; }
.character-artwork { position:relative; display:block; width:100%; isolation:isolate; }
.character-window { position:relative; z-index:2; display:block; width:100%; height:auto; }
.character-portrait { position:absolute; z-index:1; left:7.1%; top:10.3%; width:20.9%; height:69%; border-radius:50%; overflow:hidden; display:grid; place-items:center; background:#040404; }
.character-portrait img { display:block; width:100%; height:100%; object-fit:cover; object-position:center top; }
.character-portrait > .account-icon { width:50%; height:50%; color:var(--muted); }
.character-name { position:absolute; z-index:3; top:11%; left:33%; right:5%; margin:0; display:flex; align-items:center; justify-content:center; gap:.3em; color:#fff1e6; font-size:14px; font-size:clamp(10px,3.15cqi,17px); font-weight:750; line-height:1.3; text-shadow:0 2px 3px #000000; }
.character-name > .character-name-text { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.character-name > small { flex:none; color:#ffd5b6; font-size:.85em; }
.character-job { margin:-6px 0 0; margin:-2cqi 0 0; color:var(--text-soft); font-size:14px; line-height:1.5; text-align:center; }
.character-detail-link { border-radius:14px; transition:filter .18s ease; }
.character-detail-link:hover { filter:brightness(1.13); }
.character-detail-link:focus-visible { outline:2px solid var(--accent); outline-offset:5px; }
.character-hwan { position:absolute; inset:0; z-index:3; pointer-events:none; }
.hwan-orb { position:absolute; width:3.7%; height:12.3%; transform:translate(-50%,-50%); }
/* Slots are numbered from the bottom of the original 550x175 artwork. */
.hwan-orb-1 { left:12.64%; top:81.14%; }
.hwan-orb-2 { left:8.09%; top:71.71%; }
.hwan-orb-3 { left:4.91%; top:57.14%; }
.hwan-orb-4 { left:4.36%; top:39.43%; }
.hwan-orb-5 { left:6.82%; top:22.86%; }
.character-job strong { display:inline-flex; align-items:center; gap:4px; color:var(--accent-soft); font-weight:650; }
.character-race-badge { position:absolute; z-index:4; left:26.8%; top:73.7%; transform:translate(-50%,-50%); display:grid; place-items:center; width:24px; height:24px; color:#fce2cd; background:transparent; border:0; border-radius:0; box-shadow:none; }
.character-race-badge > .account-icon { width:24px; height:24px; flex-basis:24px; stroke-width:1.7; }
.character-job-icon > .account-icon { width:16px; height:16px; flex-basis:16px; stroke-width:2; }
.character-resource { position:absolute; z-index:3; left:33.7%; right:5.8%; height:18.3%; display:flex; align-items:center; justify-content:center; color:#ffffff; font:900 clamp(10px,3.1cqi,17px)/1 Arial,sans-serif; letter-spacing:.06em; font-variant-numeric:tabular-nums; text-shadow:0 1px 2px #000000,0 0 3px #000000; direction:ltr; pointer-events:none; }
.character-resource-hp { top:34.9%; }
.character-resource-mp { top:57.1%; }
.character-masteries { display:flex; align-items:center; justify-content:center; gap:6px; min-height:24px; margin:6px 0 0; }
.character-mastery-button { display:grid; place-items:center; flex:none; width:24px; min-width:24px; max-width:24px; height:24px; min-height:24px; padding:0; border:0; box-shadow:inset 0 0 0 1px #976f58; background:linear-gradient(135deg,#302c1c,#151310); color:#c3a490; opacity:1; cursor:default; }
.character-mastery-button > .account-icon { width:24px; height:24px; flex-basis:24px; }
.character-job-icon { display:inline-grid; place-items:center; width:16px; height:16px; flex:none; color:#cfaf9c; }
.character-list-message { margin:28px 0 0; color:var(--text-soft); font-size:13px; line-height:1.7; }
.password-flow label .recovery-unavailable-note { display:block; color:var(--accent-soft); font-size:11px; font-weight:500; line-height:1.65; letter-spacing:normal; text-transform:none; }
.password-flow input:disabled { opacity:.65; cursor:not-allowed; }
.password-flow [data-recovery-submit]:disabled { opacity:.5; cursor:not-allowed; }

/* v39 session, shared account shell and verification flows */
#account-modal[data-active-panel="forgot"] { width:min(560px,calc(100% - 30px)); }
.profile-session-strip { grid-template-columns:1.35fr repeat(4,minmax(125px,.62fr)); }
.profile-session-primary > div { min-width:0; display:grid; gap:7px; }
.profile-session-primary > div span,.profile-session-primary > div strong { display:block; }
.account-balance-actions { display:grid; grid-template-columns:1fr 1fr; border-top:1px solid var(--line-bright); }
.account-balance-actions .account-balance-link { min-width:0; padding:0 10px; justify-content:center; border-top:0; text-align:center; letter-spacing:.035em; }
.account-balance-actions .account-balance-link + .account-balance-link { border-inline-start:1px solid var(--line-bright); }
.account-balance-actions .account-balance-link span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.profile-security-panel { min-height:0; }
.profile-security-grid > div > small { color:var(--text-soft); font-size:11px; overflow-wrap:anywhere; }
.verification-status-row { width:100%; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.verification-status-row form { margin:0; }
.inline-verify-button { min-height:30px; padding:0 10px; border:1px solid var(--line-bright); color:var(--accent-soft); background:rgba(250,128,114,0.07); cursor:pointer; font-size:9px; font-weight:900; letter-spacing:.05em; text-transform:uppercase; }
.inline-verify-button:hover { color:var(--text-strong); border-color:var(--accent); }
.ticket-notification-preference { width:100%; margin-top:9px; padding-top:9px; border-top:1px solid var(--line); }
.ticket-notification-preference form,.ticket-notification-preference label { display:block; margin:0; }
.ticket-notification-preference label { color:var(--text-soft); font-size:10px; line-height:1.45; cursor:pointer; }
.ticket-notification-preference input[type="checkbox"] { width:15px; height:15px; margin:0 7px 0 0; vertical-align:-3px; accent-color:var(--accent); }
.ticket-notification-preference small { color:var(--muted); font-size:10px; line-height:1.45; }
.contact-verification-box { margin-top:14px; padding:18px; display:grid; grid-template-columns:minmax(210px,1fr) minmax(270px,.8fr); align-items:center; gap:18px; border:1px solid var(--line-bright); background:var(--panel-strong); }
.contact-verification-box > div { display:flex; align-items:flex-start; gap:12px; }
.contact-verification-box > div > .account-icon { color:var(--accent); }
.contact-verification-box strong { color:var(--text-strong); font-size:12px; }
.contact-verification-box p { margin:5px 0 0; color:var(--muted); font-size:10px; line-height:1.55; }
.contact-verification-box > form:not(.contact-resend) { display:grid; grid-template-columns:minmax(130px,1fr) auto; gap:9px; }
.contact-verification-box input { min-width:0; height:42px; border:1px solid var(--line-bright); color:var(--text-strong); background:var(--input-bg); }
.contact-verification-box .button { min-height:42px; padding-inline:15px; }
.contact-resend { grid-column:2; margin-top:-11px; text-align:end; }
.contact-resend button { border:0; color:var(--accent-soft); background:none; cursor:pointer; font-size:9px; font-weight:850; }

.password-change-card { margin-top:26px; padding:25px; border:1px solid var(--line); background:linear-gradient(135deg,var(--panel-strong),rgba(0,0,0,.08)); }
.password-change-card h3 { margin:7px 0 0; color:var(--text-strong); font-family:var(--font-display); font-size:27px; }
.password-change-card > p:not(.eyebrow) { max-width:680px; margin:11px 0 0; color:var(--text-soft); font-size:12px; line-height:1.7; }
.password-flow { margin-top:20px; }
.password-flow form { display:grid; gap:14px; }
.password-flow label { display:grid; gap:7px; color:var(--text-soft); font-size:10px; font-weight:850; letter-spacing:.07em; text-transform:uppercase; }
.password-flow label > span { display:flex; justify-content:space-between; gap:10px; }
.password-flow label small { color:var(--muted); font-size:9px; text-transform:none; }
.password-flow input:not([type="radio"]) { width:100%; height:46px; padding:0 13px; border:1px solid var(--line-bright); outline:0; color:var(--text-strong); background:var(--input-bg); }
.password-flow input:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--focus-ring); }
.password-flow .account-help { margin:0 0 14px; }
.recovery-method-summary { margin-bottom:16px; display:flex; flex-wrap:wrap; gap:8px; }
.recovery-method-summary span { padding:8px 10px; border:1px solid var(--success-line); color:#a3f4c2; background:var(--success-bg); font-size:9px; font-weight:850; letter-spacing:.05em; text-transform:uppercase; }
.recovery-methods { margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; border:0; }
.recovery-methods legend { margin-bottom:8px; color:var(--muted); font-size:9px; font-weight:900; letter-spacing:.08em; text-transform:uppercase; }
.recovery-method-option { position:relative; display:block!important; cursor:pointer; }
.recovery-method-option input { position:absolute; opacity:0; pointer-events:none; }
.recovery-method-option > span { min-height:48px; padding:9px!important; display:flex!important; align-items:center; justify-content:center!important; gap:7px!important; border:1px solid var(--line); color:var(--muted); background:rgba(255,255,255,.018); text-align:center; }
.recovery-method-option input:checked + span { color:var(--text-strong); border-color:var(--accent); background:rgba(250,128,114,0.1); box-shadow:inset 0 0 20px var(--accent-glow-soft); }
.recovery-method-option .account-icon { width:17px; height:17px; color:var(--accent-soft); }
.secret-question-text { padding:11px 12px; border-inline-start:3px solid var(--accent); color:var(--text-strong); background:rgba(255,255,255,.025); font-size:12px; line-height:1.5; text-transform:none; }
.security-inline-note { padding:12px 13px; border:1px solid var(--line); color:var(--text-soft); font-size:11px; line-height:1.6; }
.security-inline-note-error { border-color:var(--danger-line); }
.password-flow-restart { margin-top:9px; }
.password-flow-restart button { width:max-content; border:0; padding:0; color:var(--accent-soft); background:none; cursor:pointer; font-size:9px; font-weight:850; }

.profile-ticket-main { padding:18px; }
.profile-ticket-main .ticket-account-strip { max-width:none; margin:0 0 18px; }
.profile-ticket-workspace { max-width:none; grid-template-columns:minmax(220px,285px) minmax(0,1fr); gap:18px; }
.profile-ticket-workspace .ticket-main { min-height:540px; }
.profile-ticket-workspace .ticket-create,.profile-ticket-workspace .ticket-detail { padding:28px; }
.profile-ticket-workspace .ticket-create h2,.profile-ticket-workspace .ticket-detail h2 { font-size:clamp(27px,3vw,42px); }

@media (max-width:1180px){
  .profile-session-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .profile-ticket-workspace { grid-template-columns:1fr; }
}
@media (max-width:760px){
  #account-modal[data-active-panel="forgot"] { width:calc(100% - 18px); }
  .profile-session-strip { grid-template-columns:1fr; }
  .contact-verification-box { grid-template-columns:1fr; }
  .contact-resend { grid-column:1; margin-top:0; }
  .recovery-methods { grid-template-columns:1fr; }
  .profile-ticket-main { padding:10px; }
  .profile-ticket-workspace .ticket-create,.profile-ticket-workspace .ticket-detail { padding:22px 15px; }
}
@media (max-width:520px){
  .contact-verification-box > form:not(.contact-resend) { grid-template-columns:1fr; }
  .account-balance-actions { grid-template-columns:1fr; }
  .account-balance-actions .account-balance-link + .account-balance-link { border-inline-start:0; border-top:1px solid var(--line-bright); }
}

/* Shared Hwan glow for full character cards and the portrait column. */
.hwan-tone-pink { --hwan-glow:#efffe1; --hwan-mist:rgba(206,250,170,0.376); }
.hwan-tone-blue { --hwan-glow:#fff0d4; --hwan-mist:rgba(246,220,150,0.439); }
.hwan-full > img { filter:drop-shadow(0 0 2px var(--hwan-glow)) drop-shadow(0 0 5px var(--hwan-mist)); animation:hwan-soft-glow 3.6s ease-in-out infinite; }
@keyframes hwan-soft-glow {
  0%,100% { filter:drop-shadow(0 0 2px var(--hwan-glow)) drop-shadow(0 0 4px var(--hwan-mist)); }
  50% { filter:drop-shadow(0 0 3px var(--hwan-glow)) drop-shadow(0 0 7px var(--hwan-mist)); }
}
@media (prefers-reduced-motion:reduce) { .hwan-full > img { animation:none; } }

.character-job-image { display:block; width:16px; height:16px; flex:none; image-rendering:pixelated; }

/* Real mastery and compact job information, shared by account cards and character detail. */
.character-name-job { display:inline-flex; align-items:center; justify-content:center; gap:4px; flex:none; white-space:nowrap; font-size:.8em; line-height:1.3; }
.character-name-job small { font-size:inherit; }
.character-name-job .character-job-image { width:16px; height:16px; }
.character-masteries { flex-wrap:wrap; gap:8px; }
.character-mastery-icon { position:relative; display:block; width:24px; height:24px; flex:none; }
.character-mastery-icon > img,.character-mastery-icon > .account-icon { display:block; width:24px; height:24px; }
.character-mastery-level { position:absolute; right:-2px; bottom:-3px; min-width:12px; padding:0 1px; border-radius:2px; background:rgba(12,8,9,0.875); color:#ff9b86; font:900 9px/1.15 Arial,sans-serif; text-shadow:1px 1px #000000,-1px -1px #000000; text-align:center; }

.character-race-image { display:block; width:24px; height:24px; max-width:none; image-rendering:pixelated; }

/* Account list: start beside the portrait rim, immediately below the artwork bars. */
.account-character > .character-masteries { position:relative; z-index:4; width:67%; min-height:0; flex-direction:row; flex-wrap:wrap; align-items:flex-start; justify-content:flex-start; gap:8px; margin:-3.2% 0 0 33%; }
.account-character .character-name-job { margin-inline-start:.65em; }
.account-character .character-mastery-icon,
.account-character .character-mastery-icon > img,
.account-character .character-mastery-icon > .account-icon { width:32px; height:32px; }
.account-character .character-mastery-level { right:0; bottom:0; font-size:11px; }
.account-character .character-race-badge,
.account-character .character-race-badge > .account-icon,
.account-character .character-race-image { width:32px; height:32px; flex-basis:32px; }
.account-character .character-name-race { position:static; transform:none; display:inline-flex; align-items:center; justify-content:center; flex:none; width:32px; height:32px; margin:0; background:transparent; border:0; border-radius:0; box-shadow:none; color:#fce2cd; }
.account-character .character-name-race img,.account-character .character-name-race > .account-icon { display:block; width:32px; height:32px; flex-basis:32px; }

/* Account cards keep the supplied portrait behind the transparent status bars. */
.account-character .character-portrait { z-index:1; pointer-events:none; }
.account-character .character-window { z-index:2; }
.account-character .character-name { top:7%; left:32%; right:3%; min-height:23%; gap:.42em; line-height:1.05; }
.account-character .character-name-text { text-shadow:0 2px 3px #000000,0 0 4px #000000; }

/* Playtime badges are informative controls, never decorative links. */
.playtime-badge { position:relative; display:inline-grid; place-items:center; flex:none; color:var(--accent-soft); cursor:help; }
.playtime-badge img { display:block; width:40px; height:40px; object-fit:contain; }
.playtime-badge-header { width:28px; height:28px; margin-inline-start:3px; }
.playtime-badge-header img { width:28px; height:28px; }
.playtime-badge-character { margin:8px auto 4px; }
.playtime-badge-character img { width:40px; height:40px; }


/* V92: account login/register/forgot logo is deliberately 3x the former mark. */
#account-modal .modal-mark{height:250px;padding:18px;box-sizing:border-box}
#account-modal .modal-mark img{width:210px;max-width:72vw;max-height:214px;object-fit:contain}
#account-modal[data-active-panel="register"] .modal-mark{height:214px}
#account-modal[data-active-panel="register"] .modal-mark img{width:174px;max-width:62vw}
@media(max-width:520px){#account-modal .modal-mark{height:205px}#account-modal .modal-mark img{width:180px}#account-modal[data-active-panel="register"] .modal-mark{height:185px}#account-modal[data-active-panel="register"] .modal-mark img{width:156px}}


/* V95 - Account modal usability, grouped registration and contact readability. */
.modal-panel label{font-size:12px}
.modal-panel input{font-size:14px}
.modal-panel .switch-panel{font-size:12px}
#register-panel{font-size:14px}
#register-panel form{grid-template-columns:1fr;gap:16px}
#register-panel .register-group{min-width:0;margin:0;padding:17px 18px 18px;border:1px solid var(--line);background:rgba(255,255,255,.018);display:grid;gap:14px 16px}
#register-panel .register-group legend{padding:0 9px;color:var(--accent-soft);font-size:12px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}
#register-panel .register-group-account{grid-template-columns:repeat(3,minmax(0,1fr))}
#register-panel .register-group-password,#register-panel .register-group-secret{grid-template-columns:repeat(2,minmax(0,1fr))}
#register-panel label{font-size:13px;letter-spacing:.075em}
#register-panel input{font-size:15px}
#register-panel .field-label-row small{font-size:9px}
.field-validation-error{display:block;margin-top:1px;color:#ff7885;font-size:11px!important;font-weight:750!important;letter-spacing:.015em!important;line-height:1.45;text-transform:none!important}
.field-validation-error[hidden]{display:none!important}
#register-panel input[aria-invalid]{border-color:#f05e68;box-shadow:0 0 0 2px rgba(240,94,104,0.14)}
.nav-contact-dropdown .nav-submenu a{font-size:13px}
@media(max-width:680px){
 #register-panel .register-group-account,#register-panel .register-group-password,#register-panel .register-group-secret{grid-template-columns:1fr}
 #register-panel .register-group{padding:15px 13px}
 .nav-contact-dropdown .nav-submenu a{font-size:12px}
}
