:root {
    --bg: #060912;
    --bg-soft: #0b1120;
    --panel: rgba(13, 21, 39, .88);
    --panel-solid: #0e1729;
    --line: rgba(148, 163, 184, .16);
    --text: #f4f7fb;
    --muted: #9aa8bd;
    --primary: #f97316;
    --primary-light: #fb923c;
    --accent: #38bdf8;
    --success: #34d399;
    --danger: #fb7185;
    --radius: 20px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .32);
    --container: 1240px;
    --content-gutter: clamp(24px, 4vw, 76px);
    --sitebar-height: 70px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body { margin: 0; min-width: 0; overflow-x: hidden; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2; background: radial-gradient(circle at 12% 8%, rgba(249, 115, 22, .08), transparent 30%), radial-gradient(circle at 85% 35%, rgba(56, 189, 248, .06), transparent 34%), linear-gradient(180deg, #080d19, var(--bg) 45%); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
button { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.12; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 20px; z-index: 999; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: 8px; }
.skip-link:focus { top: 10px; }
.portal-container { width: 100%; margin-inline: auto; padding-inline: var(--content-gutter); }
.portal-container.narrow { width: min(100%, 1180px); }
.muted { color: var(--muted); }
.is-hidden { display: none !important; }

.site-header {
    --sitebar-hue: 22;
    --sitebar-secondary-hue: 198;
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--sitebar-height);
    overflow: visible;
    isolation: isolate;
    border-bottom: 1px solid hsl(var(--sitebar-hue) 78% 72% / .24);
    background:
        radial-gradient(circle at 16% -80%, rgba(249, 115, 22, .22), transparent 48%),
        radial-gradient(circle at 82% -110%, rgba(56, 189, 248, .16), transparent 44%),
        linear-gradient(180deg, rgba(16, 24, 43, .70), rgba(6, 9, 18, .52));
    box-shadow: inset 0 1px rgba(255, 255, 255, .11), 0 14px 42px rgba(0, 0, 0, .28);
    -webkit-backdrop-filter: blur(24px) saturate(155%);
    backdrop-filter: blur(24px) saturate(155%);
}
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 5%, rgba(255,255,255,.075) 30%, transparent 52%);
}
.site-header::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    pointer-events: none;
    opacity: .78;
    background: linear-gradient(90deg,transparent 0 9%,hsl(var(--sitebar-hue) 76% 58% / .14) 24%,hsl(var(--sitebar-hue) 88% 64% / .78) 38%,hsl(var(--sitebar-secondary-hue) 88% 66% / .32) 48%,transparent 63% 100%);
}
.header-inner { position: relative; z-index: 1; width: 100%; min-height: var(--sitebar-height); display: flex; align-items: center; gap: clamp(24px,3vw,48px); padding-inline: 22px; }
.brand { position: relative; min-width: 112px; display: grid; flex: 0 0 auto; gap: 4px; color: #f8f2e9; text-transform: uppercase; }
.brand strong { font: 800 24px/1 Georgia,"Times New Roman",serif; letter-spacing: -.035em; }
.brand strong span { color: #f1603b; text-shadow: 0 0 18px rgba(241,96,59,.45); }
.brand small { margin: 0; color: #b8aaa0; font-size: 10px; font-weight: 850; letter-spacing: .2em; }
.brand::after { content: ""; position: absolute; right: -18px; top: 2px; width: 1px; height: 35px; background: linear-gradient(transparent,rgba(242,105,55,.55),transparent); }
.main-nav { min-width: 0; display: flex; align-items: center; gap: 5px; margin-right: auto; }
.main-nav a { position: relative; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid transparent; border-radius: 7px; color: rgba(239,234,227,.69); font-size: 13px; font-weight: 820; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; transition: color .2s ease,background .2s ease,border-color .2s ease,transform .2s ease,text-shadow .2s ease; }
.main-nav a::before { content: ""; width: 4px; height: 4px; margin-right: 0; border-radius: 50%; opacity: 0; background: hsl(var(--sitebar-hue) 90% 68%); box-shadow: 0 0 10px hsl(var(--sitebar-hue) 90% 60%); transform: scale(.5); transition: opacity .2s ease,transform .2s ease,margin-right .2s ease; }
.main-nav a::after { content: ""; position: absolute; right: 9px; bottom: 4px; left: 9px; height: 2px; border-radius: 4px; background: linear-gradient(90deg,hsl(var(--sitebar-hue) 78% 55%),hsl(var(--sitebar-secondary-hue) 84% 68%)); box-shadow: 0 0 12px hsl(var(--sitebar-hue) 82% 58% / .52); transform: scaleX(0); transform-origin: left; transition: transform .24s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; border-color: hsl(var(--sitebar-hue) 80% 66% / .18); background: linear-gradient(90deg,transparent,hsl(var(--sitebar-hue) 80% 58% / .075),transparent); text-shadow: 0 0 16px hsl(var(--sitebar-hue) 78% 66% / .38); }
.main-nav a:hover::before, .main-nav a[aria-current="page"]::before { margin-right: 7px; opacity: 1; transform: scale(1); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-tools { min-width: 0; display: flex; align-items: center; gap: 12px; margin-left: auto; }
.online-pill { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.online-pill i, .status-orb i { width: 8px; height: 8px; border-radius: 99px; background: var(--success); box-shadow: 0 0 14px var(--success); }
.online-pill b { color: white; }
.account-chip { display: flex; align-items: center; gap: 9px; max-width: 190px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); }
.account-chip img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }
.account-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.menu-toggle { display: none; width: 42px; height: 42px; margin-left: auto; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 10px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.menu-toggle > span:not(.sr-only) { width: 18px; height: 2px; background: white; border-radius: 2px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 12px; cursor: pointer; font-weight: 800; transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { cursor: not-allowed; opacity: .52; transform: none; }
.button-primary { color: #150a02; background: linear-gradient(135deg, var(--primary-light), var(--primary)); box-shadow: 0 12px 30px rgba(249,115,22,.2); }
.button-ghost { border-color: var(--line); background: rgba(255,255,255,.035); color: white; }
.button-discord { background: #5865f2; color: white; }
.header-tools .button-discord { border-color: rgba(255,118,68,.55); border-radius: 8px; background: linear-gradient(135deg,#e84a2d,#f26b39); box-shadow: 0 8px 22px rgba(224,68,35,.2); font-size: 12px; letter-spacing: .035em; text-transform: uppercase; }
.button-large { min-height: 52px; padding-inline: 26px; }
.button-small { min-height: 36px; padding: 7px 12px; }
.button-full { width: 100%; margin-top: 10px; }
.text-button { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: underline; }

.site-content { min-height: calc(100vh - 300px); padding-top: var(--sitebar-height); }
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--primary-light); font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero { position: relative; min-height: min(900px, calc(100vh - var(--sitebar-height))); display: flex; align-items: center; overflow: hidden; }
.hero-art { position: absolute; inset: 0; background: url("../background.png") center 20% / cover no-repeat; opacity: .58; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,6,13,.96) 3%, rgba(3,6,13,.72) 45%, rgba(3,6,13,.2) 75%), linear-gradient(0deg, var(--bg), transparent 35%); }
.hero-content { position: relative; padding-block: 90px 120px; }
.hero h1 { max-width: 770px; margin-bottom: 24px; font-size: clamp(48px, 7.5vw, 100px); letter-spacing: -.06em; text-transform: uppercase; }
.hero h1 em { display: block; color: var(--primary); font-style: normal; }
.hero-content > p { max-width: 640px; margin-bottom: 30px; color: #c5cede; font-size: clamp(17px, 2vw, 21px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 36px; margin-top: 64px; }
.hero-stats div { display: grid; }
.hero-stats b { font-size: 26px; }
.hero-stats span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.section { padding-block: 84px; }
.section-tinted { border-block: 1px solid var(--line); background: rgba(255,255,255,.018); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.04em; }
.section-heading > a, .panel-heading > a { color: var(--primary-light); font-weight: 700; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card, .info-card, .panel, .pack-card { border: 1px solid var(--line); background: linear-gradient(145deg, rgba(18,29,52,.88), rgba(8,14,27,.9)); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-card { min-height: 230px; padding: 26px; transition: .22s ease; }
.feature-card:hover { transform: translateY(-6px); border-color: rgba(249,115,22,.4); }
.feature-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 40px; border: 1px solid rgba(249,115,22,.3); background: rgba(249,115,22,.08); color: var(--primary-light); border-radius: 14px; font-size: 22px; font-weight: 900; }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin: 0; color: var(--muted); }

.creator-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.creator-card { position: relative; min-height: 210px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); }
.creator-card img { width: 100%; height: 210px; object-fit: cover; transition: transform .35s ease; }
.creator-card:hover img { transform: scale(1.04); }
.creator-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.88)); }
.creator-card span { position: absolute; z-index: 1; left: 18px; bottom: 14px; font-weight: 800; }

.page-hero { position: relative; padding-block: 110px; overflow: hidden; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 80% 30%, rgba(249,115,22,.13), transparent 33%), linear-gradient(135deg, #101a30, #060912 60%); }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.1) 1px, transparent 1px); background-size: 50px 50px; mask-image: linear-gradient(to right, transparent, black); }
.page-hero.compact { padding-block: 75px; }
.page-hero .portal-container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 850px; margin-bottom: 16px; font-size: clamp(42px, 6vw, 76px); letter-spacing: -.055em; }
.page-hero p { max-width: 680px; margin-bottom: 0; color: #b7c2d3; font-size: 18px; }
.split-hero { display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 50px; }
.split-hero .button { margin-top: 24px; }
.download-orb { display: grid; place-items: center; width: 230px; height: 230px; justify-self: end; border: 1px solid rgba(249,115,22,.3); border-radius: 50%; background: radial-gradient(circle, rgba(249,115,22,.2), rgba(249,115,22,.02) 65%); color: var(--primary-light); font-size: 80px; box-shadow: 0 0 80px rgba(249,115,22,.12); }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.news-cover { display: grid; place-items: center; height: 220px; overflow: hidden; background: radial-gradient(circle, rgba(249,115,22,.22), #0d1629); color: rgba(255,255,255,.18); font-size: 42px; font-weight: 900; text-transform: uppercase; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.news-card:hover .news-cover img { transform: scale(1.04); }
.news-card-body { padding: 22px; }
.news-card-body h2, .news-card-body h3 { margin: 10px 0; font-size: 22px; }
.news-card-body p { display: -webkit-box; overflow: hidden; color: var(--muted); -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.news-card-body time { color: #718096; font-size: 13px; }
.tag { display: inline-flex; padding: 5px 9px; border: 1px solid rgba(249,115,22,.25); border-radius: 999px; background: rgba(249,115,22,.08); color: var(--primary-light); font-size: 11px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.filter-bar a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.filter-bar a[aria-current="page"], .filter-bar a:hover { border-color: var(--primary); background: rgba(249,115,22,.1); color: white; }
[data-news-browser] { position: relative; scroll-margin-top: calc(var(--sitebar-height) + 12px); }
[data-news-browser]::before { content: ""; position: absolute; z-index: 4; top: 70px; right: var(--content-gutter); left: var(--content-gutter); height: 2px; border-radius: 99px; opacity: 0; transform: scaleX(.15); background: linear-gradient(90deg,transparent,var(--primary),var(--accent),transparent); transform-origin: left; pointer-events: none; }
[data-news-results] { min-height: 260px; view-transition-name: news-results; transition: opacity .2s ease,translate .2s ease; }
[data-news-browser].is-loading::before { opacity: 1; animation: news-loading-line .7s ease-in-out infinite; }
[data-news-browser].is-loading [data-news-results] { opacity: .48; translate: 0 4px; pointer-events: none; }
::view-transition-old(news-results) { animation: news-results-out .14s ease-in both; }
::view-transition-new(news-results) { animation: news-results-in .24s ease-out both; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 38px; color: var(--muted); }
.pagination a { color: var(--primary-light); }

@keyframes news-loading-line {
    0% { transform: translateX(-18%) scaleX(.15); }
    50% { transform: translateX(45%) scaleX(.52); }
    100% { transform: translateX(118%) scaleX(.15); }
}
@keyframes news-results-out { to { opacity: 0; translate: 0 -5px; } }
@keyframes news-results-in { from { opacity: 0; translate: 0 9px; } }

.article-hero { position: relative; min-height: 620px; display: flex; align-items: flex-end; overflow: hidden; }
.article-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero.no-cover { background: radial-gradient(circle at 70% 20%, rgba(249,115,22,.18), transparent 35%), #0c1425; }
.article-shade { position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 3%, rgba(6,9,18,.7) 55%, rgba(6,9,18,.3)); }
.article-heading { position: relative; padding-block: 110px 70px; }
.article-heading > a { color: #d1d8e4; }
.article-heading .tag { margin-left: 18px; }
.article-heading h1 { max-width: 920px; margin: 24px 0 16px; font-size: clamp(42px, 6vw, 74px); letter-spacing: -.05em; }
.article-heading > p { max-width: 760px; color: #c4ccda; font-size: 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 14px; }
.article-body { max-width: 820px; padding-block: 65px 100px; font-size: 18px; color: #cdd5e1; }
.article-body p { margin-bottom: 1.5em; }
.back-link { display: inline-block; margin-top: 30px; color: var(--primary-light); font-weight: 800; }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.info-card { position: relative; padding: 28px; }
.info-card > span { display: block; margin-bottom: 32px; color: rgba(249,115,22,.46); font-size: 28px; font-weight: 900; }
.info-card h2 { font-size: 21px; }
.info-card p { margin: 0; color: var(--muted); }
.center-action { margin-top: 35px; text-align: center; }

.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-grid article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.steps-grid b { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 28px; border-radius: 12px; background: rgba(249,115,22,.12); color: var(--primary-light); }
.steps-grid p { margin: 0; color: var(--muted); }
.notice { margin-top: 24px; padding: 20px 24px; border: 1px solid rgba(56,189,248,.2); border-radius: 16px; background: rgba(56,189,248,.06); }
.notice p { margin: 6px 0 0; color: var(--muted); }
.payment-notice { margin: 0 0 24px; border-color: rgba(52,211,153,.25); background: rgba(52,211,153,.08); color: #a7f3d0; }

.empty-state { padding: 70px 28px; border: 1px dashed rgba(148,163,184,.24); border-radius: var(--radius); background: rgba(255,255,255,.02); text-align: center; }
.empty-state p { max-width: 580px; margin-inline: auto; color: var(--muted); }
.empty-state .button { margin-top: 15px; }
.empty-icon { display: block; margin-bottom: 20px; color: var(--primary-light); font-size: 48px; font-weight: 900; }
.status-panel { display: grid; grid-template-columns: 70px 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 4px 18px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.status-orb { grid-row: 1 / 3; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(52,211,153,.08); }
.status-orb i { width: 14px; height: 14px; }
.status-panel div:nth-child(2) span, .status-panel small { color: var(--muted); }
.status-panel h2, .status-panel p { margin: 0; }
.status-panel > strong { align-self: end; color: var(--success); font-size: 34px; text-align: right; }
.status-panel > small { align-self: start; text-align: right; }

.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; align-items: start; }
.shop-toolbar { display: grid; grid-template-columns: 1fr 230px; gap: 12px; margin-bottom: 20px; }
input, select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; outline: none; background: rgba(255,255,255,.035); color: white; }
input:focus, select:focus { border-color: rgba(249,115,22,.7); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
select option { background: var(--panel-solid); }
.loading-block { padding: 60px 20px; color: var(--muted); text-align: center; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 18px; }
.product-card { position: relative; display: flex; min-width: 0; min-height: 238px; flex-direction: column; overflow: hidden; border: 1px solid rgba(249,115,22,.16); border-radius: 18px; background: linear-gradient(155deg,rgba(27,20,19,.98),rgba(13,13,18,.98)); box-shadow: 0 14px 32px rgba(0,0,0,.16); transition: border-color .18s ease, box-shadow .18s ease; }
.product-card::before { position: absolute; z-index: 1; top: 0; right: 18px; left: 18px; height: 1px; background: linear-gradient(90deg,transparent,rgba(251,146,60,.38),transparent); content: ""; pointer-events: none; }
.product-card.has-preview:hover { border-color: rgba(249,115,22,.4); box-shadow: 0 18px 42px rgba(0,0,0,.25); }
.product-card-details { display: grid; grid-template-columns: 66px minmax(0,1fr); align-content: start; flex: 1; gap: 14px; min-width: 0; padding: 17px 17px 13px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.product-card-details.is-static { cursor: default; }
.product-card-details:focus-visible { outline: 2px solid var(--primary-light); outline-offset: -3px; }
.product-image { display: grid; place-items: center; width: 66px; height: 66px; overflow: hidden; border: 1px solid rgba(249,115,22,.16); border-radius: 15px; background: radial-gradient(circle,rgba(249,115,22,.11),transparent 68%),#0a0d14; box-shadow: inset 0 0 18px rgba(255,255,255,.025); }
.product-image img { width: 40px; height: 40px; max-width: 40px; max-height: 40px; padding: 0; object-fit: contain; }
.product-placeholder { color: rgba(255,255,255,.2); font-size: 32px; }
.product-summary { min-width: 0; }
.product-summary .tag { max-width: 100%; overflow: hidden; padding: 4px 9px; border-color: rgba(249,115,22,.3); background: rgba(249,115,22,.09); font-size: 10px; letter-spacing: .055em; text-overflow: ellipsis; white-space: nowrap; }
.product-summary h3 { display: -webkit-box; min-height: 42px; margin: 8px 0 3px; overflow: hidden; color: #fff8f0; font-size: 16px; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-summary > p { display: -webkit-box; min-height: 38px; margin: 0; overflow: hidden; color: #a99f9b; font-size: 12px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-limit-summary { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; margin: 0 17px 12px; padding: 10px 11px; border: 1px solid rgba(251,191,36,.15); border-radius: 11px; background: linear-gradient(135deg,rgba(251,191,36,.065),rgba(251,146,60,.025)); }
.product-limit-summary[hidden] { display: none; }
.purchase-limit-chip { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 5px 10px; min-width: 0; padding: 7px 9px; border: 1px solid rgba(251,191,36,.17); border-radius: 8px; background: rgba(8,9,14,.26); color: #f8d795; }
.product-limit-summary .purchase-limit-heading { grid-column: 1 / -1; margin: 0; color: #b8a992; font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.product-limit-summary .purchase-limit-chip { font-size: 10px; }
.product-limit-summary .purchase-limit-chip:only-of-type { grid-column: 1 / -1; }
.purchase-limit-chip span { color: #d5c4a7; font-weight: 700; }
.purchase-limit-chip b { color: #ffe2a8; font-size: 12px; white-space: nowrap; }
.purchase-limit-progress { grid-column: 1 / -1; width: 100%; height: 3px; overflow: hidden; border: 0; border-radius: 99px; background: rgba(255,255,255,.08); appearance: none; }
.purchase-limit-progress::-webkit-progress-bar { border-radius: 99px; background: rgba(255,255,255,.08); }
.purchase-limit-progress::-webkit-progress-value { border-radius: 99px; background: linear-gradient(90deg,#fb923c,#facc15); }
.purchase-limit-progress::-moz-progress-bar { border-radius: 99px; background: linear-gradient(90deg,#fb923c,#facc15); }
.purchase-limit-chip.is-reached { border-color: rgba(251,113,133,.3); background: rgba(251,113,133,.08); }
.purchase-limit-chip.is-reached span, .purchase-limit-chip.is-reached b { color: #fecdd3; }
.purchase-limit-chip.is-unlimited { border-color: rgba(52,211,153,.14); background: rgba(52,211,153,.035); }
.purchase-limit-chip.is-unlimited b { color: #a7f3d0; }
.product-detail-hint { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; color: #ffb46f; font-size: 11px; font-weight: 800; }
.product-detail-hint::after { content: "→"; }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding: 12px 17px 16px; border-top: 1px solid rgba(249,115,22,.1); background: rgba(4,5,9,.2); }
.currency-button { flex: 1; min-width: 100px; min-height: 42px; padding: 9px 12px; border: 1px solid rgba(249,115,22,.34); border-radius: 10px; background: linear-gradient(135deg,rgba(249,115,22,.2),rgba(194,65,12,.12)); color: #fff3e8; cursor: pointer; font-weight: 850; }
.currency-button:hover { border-color: rgba(251,146,60,.72); background: linear-gradient(135deg,rgba(249,115,22,.28),rgba(194,65,12,.18)); }
.currency-button:disabled { border-color: rgba(251,113,133,.2); background: rgba(251,113,133,.055); color: #c9aeb4; cursor: not-allowed; opacity: .78; }
.currency-button.vote { color: #facc15; }
.currency-button.free { border-color: rgba(52,211,153,.34); background: rgba(52,211,153,.09); color: #a7f3d0; }
.shop-modal-open { overflow: hidden; }
body.portal-shell.shop-modal-open .site-content { z-index: 300; }
.shop-product-modal[hidden] { display: none; }
.shop-product-modal { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 20px 28px; }
.shop-product-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(2,6,14,.82); cursor: default; -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.shop-product-dialog { position: relative; display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,420px); width: min(1500px,100%); height: min(900px,calc(100dvh - 40px)); min-height: min(620px,calc(100dvh - 40px)); max-height: calc(100dvh - 40px); overflow: hidden; border: 1px solid rgba(249,115,22,.42); border-radius: 24px; outline: 0; background: #0c1424; box-shadow: 0 32px 100px rgba(0,0,0,.68), 0 0 0 4px rgba(249,115,22,.04); }
.shop-product-close { position: absolute; z-index: 2; top: 14px; right: 14px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(6,9,18,.82); color: white; cursor: pointer; font-size: 27px; line-height: 1; }
.shop-product-close:hover, .shop-product-close:focus-visible { border-color: var(--primary-light); background: rgba(249,115,22,.16); outline: 0; }
.shop-product-gallery { display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; min-width: 0; min-height: 0; overflow: hidden; padding: 28px; border-right: 1px solid var(--line); background: radial-gradient(circle at 50% 35%, rgba(249,115,22,.09), transparent 44%), #080e1a; }
.shop-product-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.shop-product-gallery-heading span { color: var(--primary-light); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.shop-product-gallery-heading strong { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 11px; }
.shop-product-stage { display: grid; place-items: center; width: 100%; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid rgba(148,163,184,.18); border-radius: 16px; background: #050914; contain: layout paint; }
.shop-product-stage img { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.shop-product-caption { margin: 10px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.shop-product-thumbnails[hidden] { display: none; }
.shop-product-thumbnails { display: grid; grid-auto-columns: 82px; grid-auto-flow: column; gap: 8px; max-width: 100%; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: thin; }
.shop-product-caption + .shop-product-thumbnails:not([hidden]) { margin-top: 12px; }
.shop-product-thumbnail { display: grid; place-items: center; height: 62px; overflow: hidden; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); cursor: pointer; }
.shop-product-thumbnail:hover, .shop-product-thumbnail[aria-pressed="true"] { border-color: var(--primary-light); box-shadow: 0 0 0 2px rgba(249,115,22,.12); }
.shop-product-thumbnail.is-unavailable { opacity: .36; }
.shop-product-thumbnail img { width: 100%; height: 100%; object-fit: contain; }
.shop-product-information { display: flex; min-width: 0; min-height: 0; flex-direction: column; align-items: stretch; overflow-y: auto; padding: 64px 32px 30px; }
.shop-product-title-row { display: grid; grid-template-columns: 66px minmax(0,1fr); align-items: center; gap: 16px; padding-right: 42px; }
.shop-product-modal-icon { display: grid; place-items: center; width: 66px; height: 66px; overflow: hidden; border: 1px solid rgba(249,115,22,.24); border-radius: 16px; background: radial-gradient(circle,rgba(249,115,22,.13),transparent 70%),#080e1a; }
.shop-product-modal-icon img { width: 40px; height: 40px; object-fit: contain; }
.shop-product-modal-icon .product-placeholder { font-size: 28px; }
.shop-product-title-row h2 { margin: 9px 0 0; font-size: clamp(27px,2.15vw,34px); }
.shop-product-description { margin: 26px 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); color: #c3ccda; white-space: pre-line; }
.shop-product-limits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; margin: 0 0 22px; padding: 15px; border: 1px solid rgba(251,191,36,.18); border-radius: 14px; background: rgba(251,191,36,.04); }
.shop-product-limits[hidden] { display: none; }
.purchase-limit-heading { grid-column: 1 / -1; margin-bottom: 2px; color: #fff2d2; font-size: 12px; letter-spacing: .075em; text-transform: uppercase; }
.shop-product-limits .purchase-limit-chip { grid-template-columns: 1fr auto; padding: 9px 10px; }
.shop-product-limits .purchase-limit-chip small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.shop-product-purchase { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.shop-product-purchase > span { color: white; font-size: 13px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.shop-product-purchase > p { margin: 3px 0 14px; color: var(--muted); font-size: 13px; }
.shop-product-modal-actions { width: 100%; padding: 0; }
.currency-button.is-modal-purchase { min-height: 48px; border-color: rgba(249,115,22,.36); background: linear-gradient(135deg,rgba(249,115,22,.18),rgba(249,115,22,.07)); color: #fff3e8; }
.cart-panel { position: sticky; top: 94px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(12,20,37,.96); box-shadow: var(--shadow); }
.cart-heading, .panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.cart-heading span, .panel-heading span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.cart-heading h2, .panel-heading h2 { margin: 3px 0 0; }
.cart-heading > b { display: grid; place-items: center; min-width: 32px; height: 32px; border-radius: 99px; background: var(--primary); color: #170a02; }
.balance-box { margin-block: 18px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; }
.cart-lines { display: grid; gap: 8px; max-height: 310px; overflow: auto; }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.035); }
.cart-line span { color: var(--muted); font-size: 12px; }
.cart-line button { grid-row: 1 / 3; grid-column: 2; border: 0; background: transparent; color: var(--danger); cursor: pointer; }
.cart-totals { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.cart-totals p { display: flex; justify-content: space-between; margin: 7px 0; color: var(--muted); }
.cart-totals b { color: white; }

.page-hero.compact.ranking-hero { min-height: 0; padding-block: 30px; border-bottom: 1px solid rgba(249,115,22,.18); background: radial-gradient(circle at 76% 20%,rgba(56,189,248,.1),transparent 30%),linear-gradient(110deg,#11192a,#080a12 68%); }
.ranking-hero-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ranking-hero h1 { margin: 0; font-size: clamp(34px,4vw,48px); }
.ranking-live-state { display: inline-flex; align-items: center; gap: 9px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(6,9,18,.55); color: #cbd5e1; font-size: 12px; white-space: nowrap; }
.ranking-live-state i { width: 9px; height: 9px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 14px rgba(251,191,36,.65); }
.ranking-live-state.is-ready i { background: var(--success); box-shadow: 0 0 14px rgba(52,211,153,.65); }
.ranking-live-state.is-error i { background: var(--danger); box-shadow: 0 0 14px rgba(251,113,133,.6); }
.section.ranking-page { display: grid; gap: 24px; padding-block: 28px 52px; }
.portal-shell[data-page="rating"] .ranking-page > section { padding-block: 0 !important; }
.ranking-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.ranking-kpis article { position: relative; display: flex; min-width: 0; min-height: 76px; align-items: center; justify-content: space-between; gap: 16px; overflow: hidden; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg,rgba(18,29,52,.88),rgba(8,14,27,.94)); }
.ranking-kpis article::after { content: ""; position: absolute; inset: -34px -34px auto auto; width: 82px; height: 82px; border: 1px solid rgba(56,189,248,.1); border-radius: 50%; }
.ranking-kpis span { position: relative; z-index: 1; display: block; color: var(--muted); }
.ranking-kpis span { font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.ranking-kpis strong { position: relative; z-index: 1; display: block; color: #fff; font-size: clamp(26px,2.6vw,34px); line-height: 1; }
.ranking-kpis strong.is-online { color: #6ee7b7; }
.ranking-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.ranking-section-heading { margin-bottom: 12px; }
.ranking-section-heading h2 { margin: 0; font-size: clamp(22px,2.2vw,28px); letter-spacing: -.025em; }
.ranking-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.ranking-podium-card { --podium-color: #cbd5e1; --podium-border: rgba(203,213,225,.42); --podium-glow: rgba(203,213,225,.13); position: relative; display: grid; min-width: 0; min-height: 122px; grid-template-columns: 32px 58px minmax(0,1fr); align-items: center; gap: 13px; overflow: hidden; padding: 16px 18px; border: 1px solid var(--podium-border); border-radius: 15px; background: radial-gradient(circle at 22% 18%,var(--podium-glow),transparent 45%),linear-gradient(145deg,rgba(20,29,45,.98),rgba(8,13,24,.98)); box-shadow: inset 0 1px rgba(255,255,255,.035),0 12px 30px rgba(0,0,0,.16); text-align: left; }
.ranking-podium-card::before { position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg,transparent,var(--podium-color),transparent); content: ""; opacity: .9; }
.ranking-podium-card::after { position: absolute; right: -38px; bottom: -52px; width: 130px; height: 130px; border: 1px solid var(--podium-border); border-radius: 50%; content: ""; opacity: .25; }
.ranking-podium-card.is-rank-1 { --podium-color: #facc15; --podium-border: rgba(250,204,21,.5); --podium-glow: rgba(250,204,21,.19); }
.ranking-podium-card.is-rank-2 { --podium-color: #e2e8f0; --podium-border: rgba(203,213,225,.46); --podium-glow: rgba(203,213,225,.15); }
.ranking-podium-card.is-rank-3 { --podium-color: #fb923c; --podium-border: rgba(251,146,60,.48); --podium-glow: rgba(251,146,60,.17); }
.ranking-podium-medal { position: relative; z-index: 1; display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--podium-border); border-radius: 50%; background: rgba(4,8,16,.78); box-shadow: 0 0 18px var(--podium-glow); color: var(--podium-color); font-size: 13px; font-weight: 950; }
.ranking-podium-avatar, .is-rank-1 .ranking-podium-avatar { position: relative; z-index: 1; display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid var(--podium-border); border-radius: 14px; background: linear-gradient(145deg,var(--podium-glow),rgba(5,10,19,.72)); box-shadow: 0 0 20px var(--podium-glow); color: var(--podium-color); font-size: 22px; font-weight: 900; }
.ranking-podium-avatar .ranking-class-image, .is-rank-1 .ranking-podium-avatar .ranking-class-image { width: 46px; height: 46px; object-fit: contain; }
.ranking-podium-avatar .ranking-class-fallback { width: auto; height: auto; color: inherit; font-size: 22px; }
.ranking-podium-copy { position: relative; z-index: 1; display: grid; min-width: 0; gap: 4px; }
.ranking-podium-card h3 { margin: 0; overflow: hidden; color: #f8fafc; font-size: 17px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.ranking-podium-guild { min-width: 0; overflow: hidden; color: var(--podium-color); font-size: 12px; font-weight: 850; letter-spacing: .045em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.ranking-podium-card .ranking-podium-job { margin: 0; overflow: hidden; color: #cbd5e1; font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.ranking-podium-empty { grid-column: 1 / -1; margin: 0; padding: 30px; border: 1px dashed var(--line); border-radius: 18px; color: var(--muted); text-align: center; }
.ranking-skeleton { height: 112px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(110deg,rgba(255,255,255,.025) 10%,rgba(255,255,255,.055) 25%,rgba(255,255,255,.025) 40%); }
.ranking-explorer { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(8,14,27,.8); box-shadow: 0 18px 48px rgba(0,0,0,.2); }
.ranking-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: rgba(6,9,18,.54); }
.ranking-tabs { display: flex; min-width: 0; gap: 5px; overflow-x: auto; scrollbar-width: thin; }
.ranking-tabs button { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: #b8c4d4; cursor: pointer; font-size: .875rem; font-weight: 800; white-space: nowrap; }
.ranking-tabs button:hover { color: #fff; background: rgba(255,255,255,.035); }
.ranking-tabs button[aria-selected="true"] { border-color: rgba(249,115,22,.28); background: rgba(249,115,22,.1); color: #fff; }
.ranking-tabs b { display: grid; min-width: 24px; height: 24px; place-items: center; padding-inline: 5px; border-radius: 7px; background: rgba(148,163,184,.14); color: #e2e8f0; font-size: .75rem; }
.ranking-tabs button[aria-selected="true"] b { background: rgba(249,115,22,.18); color: #fdba74; }
.ranking-filters { display: flex; gap: 8px; }
.ranking-filters label { position: relative; }
.ranking-filters label::before { position: absolute; z-index: 1; top: 50%; left: 12px; color: #64748b; content: "⌕"; font-size: 18px; line-height: 1; transform: translateY(-50%); pointer-events: none; }
.ranking-filters input, .ranking-filters select { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #0b1323; color: #e5e7eb; }
.ranking-filters input { width: min(29vw,310px); padding: 9px 12px 9px 37px; }
.ranking-filters select { min-width: 150px; padding: 9px 34px 9px 12px; color-scheme: dark; cursor: pointer; }
.ranking-filters input:focus, .ranking-filters select:focus { border-color: rgba(249,115,22,.62); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
.ranking-loading, .ranking-error { margin: 24px; padding: 32px; border: 1px solid var(--line); border-radius: 15px; text-align: center; }
.ranking-loading { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); }
.ranking-loading i { width: 18px; height: 18px; border: 2px solid rgba(56,189,248,.22); border-top-color: var(--accent); border-radius: 50%; }
.ranking-error { border-color: rgba(251,113,133,.25); background: rgba(251,113,133,.045); }
.ranking-error strong { color: #fecdd3; }
.ranking-error p { margin: 5px 0 16px; color: var(--muted); }
.ranking-loading[hidden], .ranking-error[hidden] { display: none; }
.ranking-panel { min-height: 300px; padding: 14px; }
.ranking-panel[hidden] { display: none; }
.ranking-table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(5,9,18,.45); }
.ranking-table-scroll[hidden] { display: none; }
.ranking-table { width: 100%; min-width: 880px; border-collapse: collapse; }
.ranking-player-table { min-width: 1350px; }
.ranking-player-table.is-online { min-width: 1160px; }
.ranking-player-table:not(.is-online) th:first-child,
.ranking-player-table:not(.is-online) td:first-child { position: sticky; left: 0; z-index: 3; width: 58px; background: #0a1220; }
.ranking-player-table:not(.is-online) th:nth-child(2),
.ranking-player-table:not(.is-online) td:nth-child(2) { position: sticky; left: 58px; z-index: 3; min-width: 145px; background: #0a1220; box-shadow: 10px 0 18px -18px rgba(0,0,0,.9); }
.ranking-player-table:not(.is-online) th:first-child,
.ranking-player-table:not(.is-online) th:nth-child(2) { z-index: 5; background: #111b2d; }
.ranking-player-table.is-online th:first-child,
.ranking-player-table.is-online td:first-child { position: sticky; left: 0; z-index: 3; min-width: 210px; background: #0a1220; box-shadow: 10px 0 18px -18px rgba(0,0,0,.9); }
.ranking-player-table.is-online th:first-child { z-index: 5; background: #111b2d; }
.ranking-player-table.is-online th button { padding-inline: 9px; }
.ranking-player-table.is-online td { padding-inline: 9px; }
.ranking-table th { position: sticky; top: 0; z-index: 2; padding: 0; border-bottom: 1px solid var(--line); background: #111b2d; color: #b8c4d4; font-size: .8125rem; font-weight: 900; letter-spacing: .07em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.ranking-table th button { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: flex-start; gap: 7px; padding: 10px 12px; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; letter-spacing: inherit; text-align: left; text-transform: inherit; }
.ranking-table th button:hover, .ranking-table th button:focus-visible, .ranking-table th button.is-active { background: rgba(56,189,248,.055); color: #e2e8f0; outline: 0; }
.ranking-table th button i { position: relative; width: 10px; height: 14px; flex: 0 0 auto; }
.ranking-table th button i::before, .ranking-table th button i::after { position: absolute; left: 2px; color: #536176; font-size: 8px; font-style: normal; line-height: 1; }
.ranking-table th button i::before { top: 0; content: "▲"; }
.ranking-table th button i::after { bottom: 0; content: "▼"; }
.ranking-table th[aria-sort="ascending"] button i::before, .ranking-table th[aria-sort="descending"] button i::after { color: var(--primary-light); text-shadow: 0 0 8px rgba(249,115,22,.45); }
.ranking-table td { padding: 13px 12px; border-bottom: 1px solid rgba(148,163,184,.14); color: #e2e8f0; font-size: .875rem; }
.ranking-table tr:last-child td { border-bottom: 0; }
.ranking-table tbody tr:hover { background: rgba(56,189,248,.035); }
.ranking-rank { width: 58px; }
.ranking-rank > span { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid rgba(148,163,184,.18); border-radius: 9px; color: #94a3b8; font-weight: 900; }
.ranking-rank > .is-top-1 { border-color: rgba(251,191,36,.38); background: rgba(251,191,36,.1); color: #fde68a; }
.ranking-rank > .is-top-2 { border-color: rgba(191,219,254,.3); background: rgba(191,219,254,.07); color: #dbeafe; }
.ranking-rank > .is-top-3 { border-color: rgba(251,146,60,.32); background: rgba(251,146,60,.08); color: #fdba74; }
.ranking-identity { display: flex; min-width: 165px; align-items: center; gap: 10px; }
.ranking-avatar { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid rgba(56,189,248,.2); border-radius: 11px; background: rgba(56,189,248,.08); color: #bae6fd; font-weight: 900; }
.ranking-class-cell { display: flex; min-width: 150px; align-items: center; gap: 9px; }
.ranking-class-cell.is-icon-only { min-width: 52px; justify-content: center; }
.ranking-class-cell strong { color: #e2e8f0; font-size: 13px; white-space: nowrap; }
.ranking-class-visual { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid rgba(56,189,248,.2); border-radius: 11px; background: radial-gradient(circle,rgba(56,189,248,.12),transparent 68%),#08111d; }
.ranking-class-image { width: 34px; height: 34px; object-fit: contain; }
.ranking-class-fallback { display: grid; width: 34px; height: 34px; place-items: center; color: #7dd3fc; font-size: 14px; font-weight: 900; }
.ranking-identity > span:last-child { display: grid; }
.ranking-identity strong { display: inline-flex; align-items: center; gap: 7px; color: #f8fafc; font-size: 14px; }
.ranking-identity small { color: #7f8da3; font-size: 11px; }
.ranking-player-name { min-width: 145px; }
.ranking-player-name strong { color: #f8fafc; font-size: 14px; font-weight: 800; white-space: nowrap; }
.ranking-player-name.is-admin strong { color: #fb923c; text-shadow: 0 0 14px rgba(249,115,22,.28); }
.ranking-online-player-content { display: flex; min-width: 190px; align-items: center; gap: 10px; }
.ranking-online-player-copy { display: grid; min-width: 0; gap: 2px; }
.ranking-online-player-copy small { overflow: hidden; color: #aab7ca; font-size: .75rem; font-weight: 750; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.ranking-online-player-copy strong { overflow: hidden; color: #f8fafc; font-size: .875rem; font-weight: 850; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.ranking-online-player.is-admin .ranking-online-player-copy strong { color: #fb923c; text-shadow: 0 0 14px rgba(249,115,22,.28); }
.ranking-level { color: #bae6fd !important; font-weight: 900; }
.ranking-score { color: #fdba74 !important; font-weight: 900; }
.ranking-danger { color: #fda4af !important; font-weight: 900; }
.ranking-ap { color: #c4b5fd !important; font-weight: 900; }
.ranking-huntaholic { color: #f9a8d4 !important; font-weight: 900; }
.ranking-fz { color: #67e8f9 !important; font-weight: 900; }
.ranking-afk { color: #a7f3d0 !important; font-weight: 900; }
.ranking-gp { color: #fdba74 !important; font-weight: 900; }
.ranking-sp { color: #c4b5fd !important; font-weight: 900; }
.ranking-rupys { color: #fde68a !important; font-weight: 900; }
.ranking-death-date { min-width: 150px; color: #aab7ca !important; white-space: nowrap; }
.ranking-death-victim { min-width: 220px; }
.ranking-death-participant { display: grid; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 9px; }
.ranking-death-participant-copy { display: grid; min-width: 0; gap: 2px; }
.ranking-death-victim strong { color: #f8fafc; font-size: 14px; font-weight: 850; white-space: nowrap; }
.ranking-death-victim small { color: #b8c4d4; font-size: .8125rem; font-weight: 700; }
.ranking-death-class { display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border: 1px solid rgba(56,189,248,.2); border-radius: 10px; background: #08111d; }
.ranking-death-class .ranking-class-image, .ranking-death-class .ranking-class-fallback { width: 30px; height: 30px; }
.ranking-location { min-width: 160px; color: #bae6fd !important; font-weight: 750; }
.ranking-death-type { color: #cbd5e1 !important; white-space: nowrap; }
.ranking-death-type-badge { display: inline-flex; min-height: 30px; align-items: center; justify-content: center; padding: 5px 10px; border: 1px solid rgba(148,163,184,.34); border-radius: 999px; background: rgba(148,163,184,.09); color: #e2e8f0; font-size: .75rem; font-weight: 950; letter-spacing: .06em; }
.ranking-death-type-badge.is-pve { border-color: rgba(249,115,22,.34); background: rgba(249,115,22,.1); color: #fdba74; }
.ranking-death-type-badge.is-duel { border-color: rgba(168,85,247,.34); background: rgba(168,85,247,.1); color: #d8b4fe; }
.ranking-death-type-badge.is-arena { border-color: rgba(56,189,248,.34); background: rgba(56,189,248,.1); color: #7dd3fc; }
.ranking-death-type-badge.is-pk { border-color: rgba(244,63,94,.36); background: rgba(244,63,94,.11); color: #fda4af; }
.ranking-killer { display: inline-grid; min-width: 175px; grid-template-columns: minmax(0,1fr); align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid rgba(148,163,184,.16); border-radius: 10px; background: rgba(148,163,184,.055); }
.ranking-killer.has-class { min-width: 215px; grid-template-columns: auto minmax(0,1fr); }
.ranking-killer-copy { display: grid; min-width: 0; gap: 1px; }
.ranking-killer strong { overflow: hidden; color: #f1f5f9; font-size: .875rem; text-overflow: ellipsis; white-space: nowrap; }
.ranking-killer small { color: #b8c4d4; font-size: .75rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.ranking-killer-class { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid rgba(251,113,133,.24); border-radius: 10px; background: #0b1220; }
.ranking-killer-class .ranking-class-image, .ranking-killer-class .ranking-class-fallback { width: 30px; height: 30px; }
.ranking-killer.is-player { border-color: rgba(251,113,133,.25); background: rgba(251,113,133,.07); }
.ranking-killer.is-player strong { color: #fecdd3; }
.ranking-killer.is-monster { border-color: rgba(249,115,22,.25); background: rgba(249,115,22,.07); }
.ranking-killer.is-monster strong { color: #fed7aa; }
.death-log-filters { display: grid; gap: 16px; margin-bottom: 16px; padding: 18px; border: 1px solid rgba(148,163,184,.28); border-radius: 15px; background: linear-gradient(135deg,rgba(20,32,52,.78),rgba(6,9,18,.76)); box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.death-log-filter-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid rgba(148,163,184,.12); }
.death-log-filter-header > div { display: grid; gap: 2px; }
.death-log-filter-header strong { color: #f8fafc; font-size: 1rem; font-weight: 850; }
.death-log-filter-header span { color: #b8c4d4; font-size: .875rem; line-height: 1.5; }
.death-log-filter-groups { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.death-log-filter-group { display: grid; min-width: 0; gap: 15px; padding: 16px; border: 1px solid rgba(148,163,184,.26); border-radius: 12px; background: rgba(4,9,18,.52); }
.death-log-filter-group-title { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid rgba(148,163,184,.1); }
.death-log-filter-group-title strong { color: #f1f5f9; font-size: .9375rem; font-weight: 850; }
.death-log-filter-group-title span { color: #aeb9c9; font-size: .8125rem; line-height: 1.45; }
.death-log-filter-group-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: end; gap: 10px; }
.death-log-filter-field { display: grid; min-width: 0; gap: 7px; }
.death-log-filter-label { color: #c3cbd7; font-size: .8125rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.death-log-filter-field > input, .death-log-filter-field > select { width: 100%; height: 48px; min-height: 48px; padding: 10px 13px; border: 1px solid rgba(148,163,184,.48); border-radius: 11px; outline: 0; background: #080f1c; color: #f1f5f9; color-scheme: dark; font-size: 1rem; line-height: 1.5; }
.death-log-filter-field > select { padding-right: 34px; cursor: pointer; }
.death-log-filter-field > input::placeholder { color: #9eabbd; opacity: 1; }
.death-log-filter-field > input:focus, .death-log-filter-field > select:focus { border-color: rgba(249,115,22,.62); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
.death-log-filter-field .defiant-select-trigger { box-sizing: border-box; height: 48px; min-height: 0; padding-block: 8px; border-color: rgba(148,163,184,.48); border-radius: 11px; background-color: #080f1c; color: #f1f5f9; font-size: 1rem; }
.death-log-filter-reset { min-height: 44px; padding: 9px 15px; border: 1px solid rgba(253,186,116,.52); border-radius: 9px; background: rgba(249,115,22,.12); color: #fed7aa; cursor: pointer; font-size: .875rem; font-weight: 850; }
.death-log-filter-reset:hover, .death-log-filter-reset:focus-visible { border-color: rgba(249,115,22,.48); background: rgba(249,115,22,.14); color: #fff; outline: 0; }
.ranking-empty { padding: 55px 24px; border: 1px dashed rgba(148,163,184,.2); border-radius: 15px; background: rgba(5,9,18,.34); text-align: center; }
.ranking-empty[hidden] { display: none; }
.ranking-empty > span { display: grid; width: 58px; height: 58px; margin: 0 auto 16px; place-items: center; border: 1px solid rgba(249,115,22,.24); border-radius: 18px; background: rgba(249,115,22,.07); color: #fb923c; font-size: 25px; }
.ranking-empty h3 { margin-bottom: 7px; font-size: 20px; }
.ranking-empty p { max-width: 520px; margin: 0 auto; color: var(--muted); }
.ranking-card-kicker { display: inline-block; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ranking-dungeon-records { padding: 4px; }
.ranking-dungeon-records-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 4px 4px 18px; }
.ranking-dungeon-records-heading span { color: #aab7ca; font-size: .75rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.ranking-dungeon-records-heading h2 { margin: 5px 0 0; color: #f8fafc; font-size: clamp(1.65rem,3vw,2.35rem); }
.ranking-dungeon-records-heading > strong { color: #cbd5e1; font-size: .875rem; }
.ranking-record-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.ranking-record-card { --record-accent: #e8c768; position: relative; min-width: 0; overflow: hidden; border: 1px solid color-mix(in srgb,var(--record-accent) 42%,#334155); border-radius: 20px; background: #08111d; box-shadow: 0 16px 44px rgba(0,0,0,.2); isolation: isolate; }
.ranking-record-card.is-bronze { --record-accent: #f0a168; }
.ranking-record-card.is-blue { --record-accent: #72d8f5; }
.ranking-record-banner { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ranking-record-card::after { display: none; }
.ranking-record-primary { position: relative; z-index: 1; display: grid; min-height: 245px; grid-template-columns: minmax(230px,1fr) minmax(300px,420px); align-items: center; gap: clamp(24px,5vw,80px); padding: clamp(22px,3vw,38px); }
.ranking-record-card.is-reversed .ranking-record-primary { grid-template-columns: minmax(300px,420px) minmax(230px,1fr); }
.ranking-record-card.is-reversed .ranking-record-intro { grid-column: 2; text-align: right; }
.ranking-record-card.is-reversed .ranking-record-board { grid-column: 1; grid-row: 1; }
.ranking-record-intro { display: flex; align-items: flex-start; flex-direction: column; }
.ranking-record-card.is-reversed .ranking-record-intro { align-items: flex-end; }
.ranking-record-mode { display: inline-flex; min-height: 36px; align-items: center; padding: 7px 14px; border: 1px solid color-mix(in srgb,var(--record-accent) 58%,transparent); border-radius: 999px; background: rgba(4,10,18,.8); color: var(--record-accent); font-size: .8125rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.ranking-record-mode::before { margin-right: 8px; font-size: 1rem; content: "♙"; }
.ranking-record-intro h3 { margin: 16px 0 14px; color: #fff7ed; font-family: Georgia,"Times New Roman",serif; font-size: clamp(2.25rem,5vw,4.2rem); font-weight: 500; letter-spacing: .02em; line-height: .95; text-transform: uppercase; text-shadow: 0 4px 24px rgba(0,0,0,.72); }
.ranking-record-more { min-width: 176px; min-height: 44px; padding: 9px 16px; border: 1px solid color-mix(in srgb,var(--record-accent) 64%,transparent); border-radius: 10px; background: rgba(5,12,21,.88); color: #f8fafc; cursor: pointer; font-size: .875rem; font-weight: 850; }
.ranking-record-more:hover, .ranking-record-more:focus-visible { background: color-mix(in srgb,var(--record-accent) 16%,#07101c); color: #fff; outline: 3px solid color-mix(in srgb,var(--record-accent) 26%,transparent); outline-offset: 2px; }
.ranking-record-board { width: min(100%,420px); justify-self: end; padding: 14px; border: 1px solid rgba(148,163,184,.26); border-radius: 16px; background: rgba(3,8,15,.88); box-shadow: 0 16px 38px rgba(0,0,0,.36); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ranking-record-card.is-reversed .ranking-record-board { justify-self: start; }
.ranking-record-board > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 4px 11px; color: #cbd5e1; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ranking-record-board > header strong::before { margin-right: 8px; color: var(--record-accent); content: "♜"; }
.ranking-record-entry { display: grid; min-width: 0; grid-template-columns: 32px minmax(0,1fr) auto; align-items: center; gap: 9px; min-height: 54px; padding: 7px 10px; border: 1px solid rgba(148,163,184,.12); border-radius: 10px; background: rgba(15,23,42,.88); }
.ranking-record-entry + .ranking-record-entry { margin-top: 7px; }
.ranking-record-entry.is-rank-1 { border-color: color-mix(in srgb,#facc15 28%,transparent); background: rgba(250,204,21,.09); }
.ranking-record-entry.is-rank-2 { border-color: rgba(203,213,225,.25); background: rgba(203,213,225,.07); }
.ranking-record-entry.is-rank-3 { border-color: rgba(251,146,60,.27); background: rgba(251,146,60,.07); }
.ranking-record-position { display: grid; width: 27px; height: 27px; place-items: center; border: 1px solid rgba(148,163,184,.3); border-radius: 50%; color: #cbd5e1; font-size: .75rem; font-weight: 900; }
.ranking-record-entry.is-rank-1 .ranking-record-position { border-color: rgba(250,204,21,.58); color: #fde68a; }
.ranking-record-entry.is-rank-2 .ranking-record-position { border-color: rgba(203,213,225,.52); color: #e2e8f0; }
.ranking-record-entry.is-rank-3 .ranking-record-position { border-color: rgba(251,146,60,.55); color: #fdba74; }
.ranking-record-player { display: grid; min-width: 0; grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 9px; }
.ranking-record-player-copy { display: grid; min-width: 0; gap: 2px; }
.ranking-record-player-copy strong, .ranking-record-player-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-record-player-copy strong { color: #f8fafc; font-size: .875rem; }
.ranking-record-player-copy small { color: #b8c4d4; font-size: .75rem; }
.ranking-record-class { display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border: 1px solid color-mix(in srgb,var(--record-accent) 28%,#334155); border-radius: 9px; background: #07101c; }
.ranking-record-class .ranking-class-image, .ranking-record-class .ranking-class-fallback { width: 30px; height: 30px; }
.ranking-record-time { color: var(--record-accent); font-size: clamp(.9rem,1.3vw,1.15rem); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ranking-record-timing { display: grid; justify-items: end; gap: 3px; text-align: right; }
.ranking-record-timing small, .ranking-record-group-summary small { color: #cbd5e1; font-size: .6875rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ranking-record-group-summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; padding: 0 5px 10px; border-bottom: 1px solid rgba(148,163,184,.18); }
.ranking-record-group-summary .ranking-record-time { font-size: clamp(1.5rem,2.6vw,2.25rem); }
.ranking-record-party-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.ranking-record-party-member { display: grid; min-width: 0; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 8px; min-height: 46px; padding: 5px 8px; border: 1px solid rgba(148,163,184,.13); border-radius: 9px; background: rgba(15,23,42,.82); }
.ranking-record-party-member > span { display: grid; min-width: 0; gap: 1px; }
.ranking-record-party-member strong, .ranking-record-party-member small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-record-party-member strong { color: #f8fafc; font-size: .8125rem; }
.ranking-record-party-member small { color: #b8c4d4; font-size: .6875rem; }
.ranking-record-party-member .ranking-record-class { width: 34px; height: 34px; }
.ranking-record-party-member .ranking-record-class .ranking-class-image,
.ranking-record-party-member .ranking-record-class .ranking-class-fallback { width: 27px; height: 27px; }
.ranking-record-empty { margin: 0; padding: 28px 12px; color: #cbd5e1; text-align: center; }
.ranking-record-details { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 18px clamp(22px,3vw,38px) 24px; border-top: 1px solid rgba(148,163,184,.2); background: rgba(3,8,15,.92); }
.ranking-record-details[hidden] { display: none; }
.ranking-record-details .ranking-record-entry + .ranking-record-entry { margin-top: 0; }
.ranking-modal-open { overflow: hidden; }
body.portal-shell.ranking-modal-open .site-content { z-index: 500; }
body.portal-shell.ranking-modal-open .site-footer { z-index: 0; }
body.portal-shell.ranking-modal-open .site-header { z-index: 600; }
.ranking-record-modal[hidden] { display: none; }
.ranking-record-modal { position: fixed; z-index: 420; top: var(--sitebar-height); right: 0; bottom: 0; left: 0; display: grid; align-items: start; justify-items: center; padding: 18px 24px; }
.ranking-record-modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(1,5,12,.96); cursor: default; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ranking-record-dialog { --record-accent: #e8c768; position: relative; display: grid; width: min(1420px,100%); max-height: calc(100dvh - var(--sitebar-height) - 36px); overflow: hidden; border: 1px solid color-mix(in srgb,var(--record-accent) 52%,#334155); border-radius: 20px; outline: 0; background: #08111d; box-shadow: 0 28px 90px rgba(0,0,0,.82),0 0 0 1px rgba(2,6,14,.92); }
.ranking-record-dialog.is-bronze { --record-accent: #f0a168; }
.ranking-record-dialog.is-blue { --record-accent: #72d8f5; }
.ranking-record-dialog-hero { position: relative; display: flex; min-height: 230px; align-items: flex-end; justify-content: space-between; gap: 20px; overflow: hidden; padding: 30px 34px; border-bottom: 1px solid color-mix(in srgb,var(--record-accent) 44%,transparent); background: #07101c; isolation: isolate; }
.ranking-record-dialog-hero::after { display: none; }
.ranking-record-dialog-hero > img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ranking-record-dialog-hero > div { display: grid; gap: 6px; }
.ranking-record-dialog-hero span { color: #e7f8ff; font-size: .8125rem; font-weight: 900; letter-spacing: .1em; text-shadow: 0 2px 10px rgba(0,0,0,.95),0 0 4px #000; text-transform: uppercase; }
.ranking-record-dialog-hero h2 { margin: 0; color: #fff7ed; font-family: Georgia,"Times New Roman",serif; font-size: clamp(2.6rem,6vw,5rem); font-weight: 500; line-height: .95; text-transform: uppercase; text-shadow: 0 4px 24px rgba(0,0,0,.8); }
.ranking-record-dialog-close { position: absolute; top: 20px; right: 22px; display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid rgba(226,232,240,.5); border-radius: 50%; background: rgba(3,8,15,.86); color: #f8fafc; cursor: pointer; font-size: 1.65rem; line-height: 1; }
.ranking-record-dialog-close:hover, .ranking-record-dialog-close:focus-visible { border-color: var(--record-accent); color: var(--record-accent); outline: 3px solid color-mix(in srgb,var(--record-accent) 24%,transparent); outline-offset: 2px; }
.ranking-record-dialog-toolbar { display: grid; grid-template-columns: minmax(260px,1fr) minmax(220px,300px); gap: 14px; padding: 18px 24px; border-bottom: 1px solid rgba(148,163,184,.2); background: #0b1524; }
.ranking-record-dialog-toolbar label { display: grid; gap: 7px; }
.ranking-record-dialog-toolbar label > span { color: #cbd5e1; font-size: .75rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.ranking-record-dialog-toolbar input, .ranking-record-dialog-toolbar select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid rgba(148,163,184,.42); border-radius: 10px; outline: 0; background: #060d18; color: #f8fafc; color-scheme: dark; font-size: 1rem; }
.ranking-record-dialog-toolbar input::placeholder { color: #9eabbd; opacity: 1; }
.ranking-record-dialog-toolbar input:focus, .ranking-record-dialog-toolbar select:focus { border-color: var(--record-accent); box-shadow: 0 0 0 3px color-mix(in srgb,var(--record-accent) 16%,transparent); }
.ranking-record-dialog-table { min-height: 0; overflow: hidden; }
.ranking-record-dialog-columns, .ranking-record-modal-row { display: grid; grid-template-columns: 90px minmax(310px,1fr) minmax(150px,220px) minmax(190px,240px); align-items: center; gap: 16px; }
.ranking-record-dialog-columns { min-height: 48px; padding: 0 24px; border-bottom: 1px solid rgba(148,163,184,.2); background: #122036; color: #cbd5e1; font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.ranking-record-dialog-content { display: grid; max-height: calc(100dvh - 410px); overflow-y: auto; padding: 0 24px 20px; scrollbar-color: var(--record-accent) #08111d; }
.ranking-record-modal-row { min-height: 76px; border-bottom: 1px solid rgba(148,163,184,.15); }
.ranking-record-modal-row:last-child { border-bottom: 0; }
.ranking-record-modal-rank { color: var(--record-accent); font-size: 1rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.ranking-record-modal-player { display: grid; min-width: 0; grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: 12px; }
.ranking-record-modal-player .ranking-record-class { width: 44px; height: 44px; }
.ranking-record-modal-player .ranking-record-class .ranking-class-image, .ranking-record-modal-player .ranking-record-class .ranking-class-fallback { width: 36px; height: 36px; }
.ranking-record-modal-player-copy { display: grid; min-width: 0; gap: 3px; }
.ranking-record-modal-player-copy strong { overflow: hidden; color: #f8fafc; font-size: .9375rem; text-overflow: ellipsis; white-space: nowrap; }
.ranking-record-modal-player-copy small { overflow: hidden; color: #b8c4d4; font-size: .8125rem; text-overflow: ellipsis; white-space: nowrap; }
.ranking-record-modal-group { display: grid; min-width: 0; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; padding: 6px 2px 8px; }
.ranking-record-modal-group-member { display: grid; min-width: 0; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 7px; padding: 7px; border: 1px solid rgba(148,163,184,.18); border-radius: 9px; background: rgba(15,23,42,.78); }
.ranking-record-modal-group-member .ranking-record-class { width: 36px; height: 36px; }
.ranking-record-modal-group-member .ranking-record-class .ranking-class-image, .ranking-record-modal-group-member .ranking-record-class .ranking-class-fallback { width: 30px; height: 30px; }
.ranking-record-modal-group-copy { display: grid; min-width: 0; gap: 2px; }
.ranking-record-modal-group-copy strong, .ranking-record-modal-group-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-record-modal-group-copy strong { color: #f8fafc; font-size: .75rem; }
.ranking-record-modal-group-copy small { color: #aeb9c9; font-size: .6875rem; }
.ranking-record-modal-time { color: var(--record-accent); font-size: 1.05rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.ranking-record-modal-date { color: #d4dbe5; font-size: .875rem; font-variant-numeric: tabular-nums; }
.ranking-record-modal-empty { padding: 52px 20px; color: #cbd5e1; text-align: center; }
.ranking-dungeon-records-note { margin: 14px 4px 2px; color: #94a3b8; font-size: .8125rem; }

.recharge-account { margin-bottom: 24px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--muted); }
.packs-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; }
.pack-card { position: relative; display: flex; flex-direction: column; min-height: 310px; padding: 24px; }
.pack-card.featured { border-color: rgba(249,115,22,.55); transform: translateY(-8px); }
.pack-card > em { position: absolute; top: -12px; right: 18px; padding: 5px 10px; border-radius: 999px; background: var(--primary); color: #150a02; font-size: 11px; font-style: normal; font-weight: 900; }
.pack-card > span { color: var(--primary-light); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.pack-card h2 { margin: 34px 0 8px; font-size: 34px; }
.pack-card h2 small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.pack-card > strong { flex: 1; font-size: 22px; }
.secure-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 36px; color: var(--muted); font-size: 13px; }

.profile-card { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.profile-card > img { width: 70px; height: 70px; border-radius: 50%; }
.profile-card > div { margin-right: auto; }
.profile-card span, .profile-card p { color: var(--muted); }
.profile-card h2, .profile-card p { margin: 3px 0; }
.account-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-block: 20px; }
.account-stats article { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.account-stats span { display: block; color: var(--muted); font-size: 13px; }
.account-stats b { display: block; margin-top: 6px; font-size: 25px; }
.account-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; }
.panel { padding: 22px; }
.inline-form { margin-block: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.inline-form label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.inline-form > div { display: flex; gap: 8px; }
.game-credentials { display: grid; gap: 12px; margin: 18px 0; padding: 18px; border: 1px solid rgba(255,159,67,.42); border-radius: 14px; outline: 0; background: rgba(255,120,39,.08); box-shadow: inset 0 0 28px rgba(255,120,39,.035); }
.game-credentials > span { color: var(--primary-light); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.game-credentials h3, .game-credentials p { margin: 0; }
.game-credentials p, .game-credentials small { color: var(--muted); }
.game-credentials dl { display: grid; gap: 8px; margin: 0; }
.game-credentials dl > div { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 12px; }
.game-credentials dt { color: var(--muted); font-size: 12px; }
.game-credentials dd { min-width: 0; margin: 0; }
.game-credentials code { display: block; overflow-x: auto; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: #090d16; color: #fff3db; user-select: all; }
.account-list, .history-list { display: grid; gap: 9px; margin-top: 18px; }
.account-row, .history-row { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.account-row span, .history-row span { color: var(--muted); font-size: 12px; }
.history-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.history-row strong:last-child { grid-row: 1 / 3; grid-column: 2; align-self: center; color: var(--primary-light); }

.flash-stack { position: fixed; z-index: 150; top: 90px; right: 20px; display: grid; gap: 8px; }
.flash, .toast { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-solid); box-shadow: var(--shadow); }
.toast { position: fixed; z-index: 200; right: 22px; bottom: 22px; max-width: 380px; transform: translateY(30px); opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.is-visible { transform: none; opacity: 1; }
.toast.is-error { border-color: rgba(251,113,133,.4); color: #fecdd3; }
.toast.is-success { border-color: rgba(52,211,153,.4); color: #a7f3d0; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; padding-block: 48px 30px; border-top: 1px solid var(--line); }
.footer-brand strong { font-size: 22px; }
.footer-brand p, .footer-copy { color: var(--muted); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px 18px; color: var(--muted); font-size: 13px; }
.site-footer nav a:hover { color: white; }
.footer-copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); }

@media (max-width: 1350px) {
    .death-log-filter-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .death-log-filter-group:last-child { grid-column: 1 / -1; }
}

@media (max-width: 1199px) {
    .header-inner { gap: 16px; padding-inline: 17px; }
    .brand { min-width: 99px; }
    .brand::after { right: -12px; }
    .main-nav { position: fixed; top: var(--sitebar-height); right: 0; left: 0; display: none; padding: 12px 17px 16px; border: 1px solid rgba(255,255,255,.14); border-top: 0; border-radius: 0 0 18px 18px; background: rgba(8,13,25,.92); box-shadow: 0 24px 50px rgba(0,0,0,.4); -webkit-backdrop-filter: blur(24px) saturate(145%); backdrop-filter: blur(24px) saturate(145%); flex-direction: column; align-items: stretch; }
    .main-nav.is-open { display: flex; }
    .main-nav a { min-height: 46px; padding-inline: 14px; }
    .menu-toggle { display: flex; }
    .header-tools { margin-left: 0; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .packs-grid { grid-template-columns: repeat(3, 1fr); }
    .ranking-toolbar { grid-template-columns: 1fr; }
    .ranking-filters input { width: min(62vw,420px); }
    .death-log-filter-groups { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .death-log-filter-group:last-child { grid-column: 1 / -1; }
}

@media (max-width: 840px) {
    :root { --content-gutter: 20px; }
    .header-inner { padding-inline: 14px; }
    .online-pill { display: none; }
    .account-chip span { display: none; }
    .hero { min-height: 720px; }
    .hero-art { background-position: 62% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(3,6,13,.94), rgba(3,6,13,.62)), linear-gradient(0deg, var(--bg), transparent 35%); }
    .hero h1 { font-size: clamp(44px, 13vw, 70px); }
    .feature-grid, .news-grid, .creator-grid, .info-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .shop-layout { grid-template-columns: 1fr; }
    .cart-panel { position: static; }
    .shop-product-dialog { grid-template-columns: 1fr; width: min(820px,100%); height: auto; min-height: 0; overflow-x: hidden; overflow-y: auto; }
    .shop-product-gallery { border-right: 0; border-bottom: 1px solid var(--line); }
    .shop-product-stage { height: clamp(360px,52dvh,540px); }
    .shop-product-information { min-height: max-content; overflow: visible; }
    .packs-grid { grid-template-columns: repeat(2, 1fr); }
    .pack-card.featured { transform: none; }
    .split-hero { grid-template-columns: 1fr; }
    .download-orb { display: none; }
    .account-stats { grid-template-columns: repeat(2, 1fr); }
    .account-grid { grid-template-columns: 1fr; }
    .ranking-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ranking-podium { grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; }
    .ranking-podium-card, .ranking-podium-card.is-rank-1 { min-height: 112px; padding-inline: 12px; }
    .ranking-record-primary, .ranking-record-card.is-reversed .ranking-record-primary { grid-template-columns: minmax(200px,1fr) minmax(300px,420px); gap: 20px; }
    .death-log-filter-groups { grid-template-columns: 1fr; }
    .death-log-filter-group:last-child { grid-column: auto; }
}

@media (max-width: 560px) {
    :root { --sitebar-height: 60px; --content-gutter: 16px; }
    .header-inner { gap: 8px; padding-inline: 10px; }
    .brand { min-width: auto; gap: 2px; }
    .brand strong { font-size: 20px; }
    .brand small, .brand::after { display: none; }
    .menu-toggle { width: 40px; height: 40px; margin-left: auto; }
    .header-tools .button-discord { min-height: 38px; padding: 7px 9px; font-size: 10px; }
    .hero-content { padding-block: 70px 90px; }
    .hero-stats { gap: 20px; }
    .section { padding-block: 58px; }
    .page-hero, .page-hero.compact { padding-block: 60px; }
    .feature-grid, .news-grid, .creator-grid, .info-grid, .steps-grid, .product-grid, .packs-grid { grid-template-columns: 1fr; }
    .creator-card, .creator-card img { min-height: 240px; height: 240px; }
    .shop-toolbar { grid-template-columns: 1fr; }
    .shop-product-modal { align-items: end; padding: 0; }
    .shop-product-dialog { width: 100%; max-height: calc(100dvh - var(--sitebar-height)); border-radius: 20px 20px 0 0; }
    .shop-product-gallery { padding: 18px; }
    .shop-product-stage { height: clamp(260px,42dvh,420px); }
    .shop-product-information { padding: 28px 18px 22px; }
    .shop-product-title-row { grid-template-columns: 58px minmax(0,1fr); padding-right: 42px; }
    .shop-product-modal-icon { width: 58px; height: 58px; }
    .death-log-filter-header { align-items: flex-start; flex-direction: column; }
    .death-log-filter-header .death-log-filter-reset { width: 100%; }
    .death-log-filter-group-fields { grid-template-columns: 1fr; }
    .shop-product-title-row h2 { font-size: clamp(25px,8vw,34px); }
    .shop-product-description { margin: 20px 0; padding: 14px; }
    .shop-product-close { top: 10px; right: 10px; }
    .product-card-details { grid-template-columns: 60px minmax(0,1fr); padding: 14px; }
    .product-image { width: 60px; height: 60px; }
    .product-limit-summary { grid-template-columns: 1fr; margin-inline: 14px; }
    .product-actions { padding: 12px 14px 14px; }
    .shop-product-limits { grid-template-columns: 1fr; }
    .profile-card { align-items: flex-start; flex-wrap: wrap; }
    .profile-card > div { width: calc(100% - 90px); }
    .profile-card form { width: 100%; }
    .profile-card form .button { width: 100%; }
    .game-credentials dl > div { grid-template-columns: 1fr; gap: 5px; }
    .account-stats { grid-template-columns: 1fr 1fr; }
    .status-panel { grid-template-columns: 58px 1fr; }
    .status-panel > strong, .status-panel > small { grid-column: 2; text-align: left; }
    .site-footer { grid-template-columns: 1fr; }
    .site-footer nav { justify-content: start; }
    .footer-copy { grid-column: 1; }
    .page-hero.compact.ranking-hero { padding-block: 22px; }
    .ranking-hero-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
    .ranking-hero h1 { font-size: 34px; }
    .section.ranking-page { gap: 18px; padding-block: 18px 36px; }
    .ranking-kpis { gap: 9px; }
    .ranking-kpis article { min-height: 68px; padding: 12px 13px; }
    .ranking-kpis span { font-size: 10px; }
    .ranking-kpis strong { font-size: 26px; }
    .ranking-podium { grid-template-columns: 1fr; }
    .ranking-podium-card, .ranking-podium-card.is-rank-1 { min-height: 100px; }
    .ranking-explorer { margin-inline: calc(var(--content-gutter) * -1); border-right: 0; border-left: 0; border-radius: 0; }
    .ranking-panel { min-height: 260px; padding: 10px; }
    .ranking-toolbar { padding-inline: 10px; }
    .ranking-tabs { margin-inline: -2px; }
    .ranking-tabs button { padding-inline: 10px; }
    .ranking-filters { display: grid; grid-template-columns: 1fr; }
    .ranking-filters input, .ranking-filters select { width: 100%; min-width: 0; }
    .ranking-dungeon-records-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .ranking-record-primary, .ranking-record-card.is-reversed .ranking-record-primary { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding: 20px; }
    .ranking-record-card.is-reversed .ranking-record-intro, .ranking-record-card.is-reversed .ranking-record-board { grid-column: 1; grid-row: auto; }
    .ranking-record-card.is-reversed .ranking-record-intro { align-items: flex-start; text-align: left; }
    .ranking-record-board, .ranking-record-card.is-reversed .ranking-record-board { width: 100%; justify-self: stretch; }
    .ranking-record-intro h3 { font-size: clamp(2rem,12vw,3.4rem); }
    .ranking-record-board { padding: 10px; }
    .ranking-record-entry { grid-template-columns: 28px minmax(0,1fr) auto; padding-inline: 7px; }
    .ranking-record-player { grid-template-columns: 34px minmax(0,1fr); }
    .ranking-record-class { width: 34px; height: 34px; }
    .ranking-record-class .ranking-class-image, .ranking-record-class .ranking-class-fallback { width: 28px; height: 28px; }
    .ranking-record-party-grid { grid-template-columns: 1fr; }
    .ranking-record-group-summary { align-items: flex-start; flex-direction: column; }
    .ranking-record-details { grid-template-columns: 1fr; padding: 14px 12px 18px; }
    .ranking-record-modal { align-items: start; padding: 10px; }
    .ranking-record-dialog { width: 100%; max-height: calc(100dvh - var(--sitebar-height) - 20px); border-radius: 16px; }
    .ranking-record-dialog-hero { min-height: 170px; padding: 24px 16px; }
    .ranking-record-dialog-close { top: 12px; right: 12px; }
    .ranking-record-dialog-toolbar { grid-template-columns: 1fr; padding: 14px; }
    .ranking-record-dialog-columns, .ranking-record-modal-row { grid-template-columns: 54px minmax(0,1fr) 112px; gap: 9px; }
    .ranking-record-dialog-columns { padding-inline: 12px; }
    .ranking-record-dialog-columns span:nth-child(4) { display: none; }
    .ranking-record-dialog-content { max-height: calc(100dvh - 442px); padding: 0 12px 18px; }
    .ranking-record-modal-row { padding-block: 10px; }
    .ranking-record-modal-date { grid-column: 2 / 4; }
    .ranking-record-modal-player { grid-template-columns: 38px minmax(0,1fr); gap: 8px; }
    .ranking-record-modal-player .ranking-record-class { width: 38px; height: 38px; }
    .ranking-record-modal-group { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .ranking-empty { padding: 42px 18px; }
}

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