/* The Quest — approved ivory/gold and midnight themes, shared player components. */
html[data-theme="light"] { background:#f7f2e9; }
html[data-theme="dark"] { background:#101426; }
.player-body {
 --a-bg:#f7f2e9;--a-panel:#fffaf3;--a-soft:#f2eade;--a-ink:#191b40;--a-muted:#645d75;
 --a-line:#dcc6a3;--a-gold:#93621e;--a-violet:#7134b4;--a-success:#19714c;--a-shadow:#5d432314;
 --a-wallet:#fff1d5;--a-world:url('../assets/themes/citadel-day.webp');--a-nav:#fffaf3;
 --q-text:var(--a-ink);--q-muted:var(--a-muted);--q-line:var(--a-line);--q-surface:var(--a-panel);
 --v720-ink:var(--a-ink);--v720-muted:var(--a-muted);--v720-panel:var(--a-panel);--v720-panel-soft:var(--a-soft);
 --v720-line:var(--a-line);--v720-line-soft:var(--a-line);--v720-gold:var(--a-gold);
 --text:var(--a-ink);--muted:var(--a-muted);--border:var(--a-line);
 color:var(--a-ink);background:var(--a-bg);
}
[data-theme="dark"] .player-body {
 --a-bg:#101426;--a-panel:#1c2039;--a-soft:#262a46;--a-ink:#f9f3ef;--a-muted:#c3bdd6;
 --a-line:#85714f;--a-gold:#ebc77c;--a-violet:#c796ff;--a-success:#7ee5ad;--a-shadow:#00000030;
 --a-wallet:#302b36;--a-world:url('../assets/themes/citadel-night.webp');--a-nav:#171b31;
}
.player-body .mobile-app,.player-body .mobile-app.qg-theme {background:var(--a-bg);color:var(--a-ink);box-shadow:0 0 60px var(--a-shadow)}
.player-body .mobile-app:after {display:none}
.player-body .mobile-app.qg-theme:after {display:block;inset:0 0 auto;min-height:0;height:420px;background:var(--a-world) center top/100% auto no-repeat;filter:none;opacity:1;mask-image:linear-gradient(#000 72%,transparent);-webkit-mask-image:linear-gradient(#000 72%,transparent)}
.player-body .mobile-main {padding-inline:16px;padding-bottom:calc(140px + env(safe-area-inset-bottom));}
.player-body :is(h1,h2,h3,h4,.page-title,.section-heading h2) {color:var(--a-ink)}
.player-body :is(.eyebrow,.section-count,.page-kicker) {color:var(--a-violet)}
.player-body :is(.header-menu,.header-bell) {color:var(--a-ink)}
.player-body .mobile-header {min-height:62px;margin-bottom:8px}
.player-body .header-wallet,.player-body .home-header-wallet {color:#fff9ee;background:#262237;border-color:#bc9552}
.player-body .header-brand .tq-logo-art {width:134px;height:65px;max-width:100%;object-fit:contain}
.player-body .header-brand {min-width:0}
.player-body :is(button,a,input,select,textarea):focus-visible {outline:3px solid var(--a-violet);outline-offset:3px}
.player-body :is(input,select,textarea) {color:var(--a-ink);background:var(--a-soft);border-color:var(--a-line)}
.player-body :is(.fantasy-panel,.tq-home-panel,.passport-stat,.boss-panel,.boss-card,.inventory-card,.battle-card,.chest-card) {border:1px solid var(--a-line);border-radius:16px;clip-path:none;background:var(--a-panel);box-shadow:0 4px 12px var(--a-shadow);color:var(--a-ink)}
.player-body :is(.fantasy-panel,.tq-home-panel):before,.player-body :is(.fantasy-panel,.tq-home-panel):after {display:none}
.player-body .page-stack :is(.fantasy-panel,.passport-stat),.player-body .route-shop .chest-card {background:var(--a-panel);box-shadow:0 4px 12px var(--a-shadow)}
.player-body :is(.fantasy-panel p,.empty-state,.notification-card p,.inventory-card p,.chest-copy p,.stock-note,.field-help,.muted) {color:var(--a-muted)}
.player-body :is(.primary-btn,.rune-button,.mission-action,.open-chest-btn,.declaration-submit,.boss-primary,.quest-quick-add,.home-register-link) {background:linear-gradient(180deg,#9545dc,#6125a0);color:#fff!important;border:1px solid #c28ff0;border-radius:12px;clip-path:none;box-shadow:inset 0 1px #ffffff50,0 3px 8px #62219f24;text-shadow:none}
.player-body :is(.primary-btn,.rune-button,.home-register-link):before,.player-body :is(.primary-btn,.rune-button,.home-register-link):after {display:none}
.player-body :is(.ghost-btn,.collection-equip-btn,.profile-passport-link,.profile-link,.text-link) {color:var(--a-violet);border-color:var(--a-line)}
.player-body :is(.primary-btn,.mission-action,.open-chest-btn):disabled {background:var(--a-soft);color:var(--a-muted)!important;border-color:var(--a-line);opacity:.7;box-shadow:none}
/* Appearance choices live in Profile only. No render or scroll reset on theme change. */
.appearance-control {display:flex;gap:3px;padding:3px;width:max-content;max-width:100%;border:1px solid var(--a-line);border-radius:30px;background:var(--a-panel);position:relative;z-index:3}
.appearance-control button {min-height:38px;min-width:70px;padding:7px 13px;border:0;border-radius:24px;background:transparent;color:var(--a-muted);font-family:inherit;font-size:12px;font-weight:600;line-height:1.2;cursor:pointer}
.appearance-control button[aria-pressed="true"] {color:var(--a-violet);background:var(--a-soft);box-shadow:inset 0 0 0 1px var(--a-violet)}
.appearance-panel .appearance-control {margin-block:12px;width:100%}.appearance-panel .appearance-control button {flex:1}
.appearance-panel p {font-size:12px;line-height:1.6}
/* QG: scenic hero, one row for identity/wallet, then real quest cards. */
.player-body .citadel-home.ivory-home {gap:12px;padding-top:0}
.player-body .citadel-home.ivory-home .home-progression {height:244px;min-height:0;margin:0;position:relative;padding:0}
.player-body .ivory-home .citadel-status {position:relative;inset:auto;max-width:76%;width:max-content;min-height:42px;padding:6px 10px;border:1px solid var(--a-line);border-left:3px solid var(--a-violet);border-radius:12px;clip-path:none;background:var(--a-panel);box-shadow:0 3px 10px var(--a-shadow);backdrop-filter:none;gap:8px}
.player-body .ivory-home .citadel-status strong {color:var(--a-ink);font-size:12px;line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.player-body .ivory-home .citadel-status small {color:var(--a-violet);font-size:9px}
.player-body .ivory-home .citadel-status-gem,.player-body .ivory-home .citadel-status-chevron {color:var(--a-violet)}
.player-body .citadel-home.ivory-home .home-level-side {position:absolute;left:4px;right:auto;bottom:14px;top:auto;width:100%;display:flex;align-items:center;gap:16px}
.player-body .citadel-home.ivory-home .home-level-side .home-level-orb {width:90px;height:90px;flex:0 0 90px;color:#fff}
.player-body .ivory-home .home-level-orb strong {font-size:40px;color:#fff}
.player-body .ivory-home .home-level-orb small {color:#ede1ff;font-size:10px}
.player-body .citadel-home.ivory-home .home-rank-copy {min-width:0;flex:1;max-width:calc(100% - 110px);padding-right:10px;text-shadow:none}
.player-body .ivory-home .home-rank-label {font-size:10px;color:var(--a-gold);letter-spacing:.1em}
.player-body .citadel-home.ivory-home .home-rank-copy h1 {font-size:29px;line-height:1.12;color:var(--a-ink);margin:3px 0 7px;text-shadow:none;overflow-wrap:anywhere}
.player-body .citadel-home.ivory-home .home-xp-line {color:var(--a-violet);font-size:11px;line-height:1.3;padding-top:10px;gap:4px}
.player-body .citadel-home.ivory-home .home-xp-line:before {display:none}
.player-body .citadel-home.ivory-home .home-xp-line strong {color:var(--a-ink);font-size:11px;text-shadow:none;white-space:normal}
.player-body .ivory-home .home-progression>.home-xp-track {display:block;position:absolute;left:110px;right:15px;bottom:45px;height:4px;margin:0;border:0;border-radius:6px;background:var(--a-soft);overflow:hidden}
.player-body .ivory-home .home-xp-track i {display:block;height:100%;background:#a351ed;border-radius:inherit}
.player-body .home-identity-grid {display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:8px}
.player-body .citadel-home.ivory-home .home-passport-side {position:relative;inset:auto;width:100%;height:auto;min-height:78px;display:flex;align-items:center;gap:8px;padding:10px;background:var(--a-panel);border:1px solid var(--a-line);border-radius:13px;box-shadow:0 3px 10px var(--a-shadow);clip-path:none;text-align:left}
.player-body .ivory-home .home-passport-side:before,.player-body .ivory-home .home-passport-side:after {display:none}
.player-body .ivory-home .home-passport-avatar {width:42px;height:42px;flex:0 0 42px;font-size:17px}
.player-body .ivory-home .home-passport-side>span {min-width:0;display:grid;gap:2px}
.player-body .ivory-home .home-passport-side small {color:var(--a-violet);font-size:8px;letter-spacing:.07em}
.player-body .ivory-home .home-passport-side strong {color:var(--a-ink);font-size:16px;line-height:1.15;white-space:normal;overflow-wrap:anywhere}
.player-body .ivory-home .home-passport-side em {color:var(--a-muted);font-size:10px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.player-body .ivory-home .home-passport-side b {display:none}
.player-body .ivory-home .home-passport-side>.icon {width:12px;flex:none;color:var(--a-violet);margin-left:auto}
.player-body .citadel-home.ivory-home .home-wallet {display:flex;min-height:78px;margin:0;padding:0;border-radius:13px;border-color:var(--a-line);overflow:hidden;background:var(--a-wallet)}
.player-body .ivory-home .home-wallet>article {display:none}
.player-body .citadel-home.ivory-home .wallet-coins {width:100%;min-width:0;min-height:78px;display:flex;align-items:center;gap:7px;padding:10px 7px;background:none;border:0;box-shadow:none;text-align:left;color:var(--a-gold)}
.player-body .citadel-home.ivory-home .wallet-coins>img {width:32px;height:32px;flex:none;filter:none}
.player-body .citadel-home.ivory-home .wallet-coins small {color:var(--a-gold);font-size:9px;letter-spacing:.06em}
.player-body .citadel-home.ivory-home .wallet-coins strong {color:var(--a-ink);font-size:26px;line-height:1.1}
.player-body .ivory-home .wallet-coins-hint {color:var(--a-muted);font-size:9px;line-height:1.25}
.player-body .ivory-home .wallet-coins>.icon {color:var(--a-gold);width:12px;flex:none;margin-left:auto}
.player-body .citadel-home.ivory-home .home-quests {padding:12px 8px 10px;min-height:0;margin:0;border-radius:16px;background:var(--a-panel);border:1px solid var(--a-line);box-shadow:0 4px 12px var(--a-shadow);overflow:visible}
.player-body .ivory-home .home-panel-heading {padding:0 4px;gap:8px;align-items:start}
.player-body .ivory-home .home-panel-heading h2 {font-size:21px;color:var(--a-ink);line-height:1.15}
.player-body .ivory-home .home-heading-icon {color:var(--a-gold);width:23px;height:25px}
.player-body .ivory-home .home-panel-heading p {font-size:10px;line-height:1.3;color:var(--a-muted);margin-top:5px;white-space:normal}
.player-body .ivory-home .mission-day-score {min-width:46px;color:var(--a-ink)}
.player-body .ivory-home .mission-day-score strong {font-size:22px;color:var(--a-ink)}
.player-body .ivory-home .mission-day-score small {font-size:7px;color:var(--a-muted)}
.player-body .ivory-home .mission-day-score time {font-size:9px;color:var(--a-gold)}
.player-body .citadel-home.ivory-home .home-quest-list {display:grid;gap:6px;margin-top:10px}
.player-body .citadel-home.ivory-home .home-quest-row {display:grid;grid-template-columns:40px minmax(0,1fr) 76px;gap:8px;padding:9px 7px;min-height:76px;border:1px solid var(--a-line);border-radius:12px;background:var(--a-panel);box-shadow:0 2px 4px var(--a-shadow);align-items:center}
.player-body .ivory-home .home-quest-art,.player-body .ivory-home .home-quest-art img {width:40px;height:46px;object-fit:contain}
.player-body .ivory-home .home-quest-name {font-size:12px;line-height:1.25;color:var(--a-ink);white-space:normal;display:block;overflow:visible}
.player-body .ivory-home .home-quest-action-label {font-size:10px;color:var(--a-muted);margin-top:3px}
.player-body .ivory-home .home-quest-progress-line {gap:6px;margin-top:5px}
.player-body .ivory-home .home-quest-progress-line b {font-size:10px;color:var(--a-ink)}
.player-body .ivory-home .home-mini-track {background:var(--a-soft);border:0;height:5px;border-radius:8px}
.player-body .ivory-home .home-mini-track i {background:#a655e3}
.player-body .ivory-home .home-quest-side {gap:6px;min-width:0;align-items:stretch}
.player-body .ivory-home .home-quest-reward {display:flex;justify-content:flex-end;gap:4px;flex-wrap:wrap;white-space:normal;color:var(--a-muted)}
.player-body .ivory-home .home-quest-reward strong {color:var(--a-ink);font-size:10px}
.player-body .ivory-home .home-quest-reward>span {color:var(--a-gold);font-size:8px}
.player-body .citadel-home.ivory-home .quest-quick-add {width:100%;min-width:0;min-height:36px;padding:6px 5px;justify-content:center;gap:3px;border-radius:8px;font-size:9px}
.player-body .ivory-home .quest-quick-add span {display:inline}
.player-body .ivory-home .quest-quick-add .icon {width:12px;height:12px}
.player-body .ivory-home .quest-quick-done {font-size:8px;color:var(--a-success);white-space:normal;gap:3px;justify-content:center}
.player-body .ivory-home .quest-quick-wait {font-size:9px;color:var(--a-muted)}
.player-body .ivory-home .home-quest-cta {padding:10px 4px 0;margin:0;min-height:0}
.player-body .citadel-home.ivory-home .home-register-link {width:100%;height:auto;min-height:44px;padding:11px 8px;border-radius:28px;font-size:10px;letter-spacing:.03em;line-height:1.4;margin:0;clip-path:none}
.player-body .ivory-home .home-empty {padding:18px 8px;color:var(--a-muted);min-height:60px;font-size:12px}
/* Bottom navigation and independent quick declaration action. */
.player-body .bottom-nav {background:var(--a-nav);border-top:1px solid var(--a-line);box-shadow:0 -3px 15px var(--a-shadow);border-radius:20px 20px 0 0}
.player-body .bottom-nav:before {display:none}
.player-body .bottom-nav button {color:var(--a-muted)}
.player-body .bottom-nav button.active {color:var(--a-gold)}
.player-body .bottom-nav button.active:after {background:var(--a-gold);box-shadow:none}
.player-body .action-orb-v720 {background:#58229b;border-color:#ecc47d;color:#fff}
/* Secondary routes: use the same surface hierarchy instead of dark-only panels. */
.player-body :is(.challenge-status,.quest-command,.chest-hero,.ranking-hero,.passport-hero,.profile-summary,.arena-hero) {border-radius:16px;clip-path:none;border-color:var(--a-line);overflow:hidden}
.player-body :is(.quest-command,.chest-hero,.ranking-hero,.passport-hero,.profile-summary,.arena-hero) {background-color:var(--a-panel)}
.player-body :is(.quest-command,.chest-hero,.ranking-hero,.arena-hero) :is(h1,h2,p,span,strong,small) {text-shadow:none}
.player-body .route-quests .quest-command {background:var(--a-panel);color:var(--a-ink)}
.player-body .route-quests .quest-command:before,.player-body .route-quests .quest-command:after {display:none}
.player-body .route-quests .quest-command p {color:var(--a-muted)}
.player-body .route-quests .quest-command-stats article {background:var(--a-soft);border-color:var(--a-line)}
.player-body .route-quests .quest-command-stats strong {color:var(--a-violet)}
.player-body .route-quests .quest-command-stats span {color:var(--a-muted)}
.player-body :is(.ranking-tabs,.quest-tabs,.mission-linked-action,.passport-status,.passport-identity,.passport-progress,.ranking-row.current,.declaration-basket-panel,.profile-summary-copy) {background:var(--a-soft);color:var(--a-ink);border-color:var(--a-line)}
.player-body :is(.ranking-tab,.mission-linked-action,.mission-title h3,.passport-status strong,.passport-progress span,.passport-progress strong,.passport-identity h2,.ranking-name) {color:var(--a-ink)}
.player-body .ranking-tab.active {background:#7633bc;color:#fff}
.player-body :is(.mission-body>p,.mission-title small,.mission-progress span,.passport-identity p,.passport-progress small,.ranking-row small,.notification-card small) {color:var(--a-muted)}
.player-body .route-passport :is(.passport-stat,.passport-next-reward,.passport-status) {background:var(--a-panel);color:var(--a-ink)}
.player-body .route-passport :is(.passport-stat strong,.passport-next-reward strong) {color:var(--a-violet)}
.player-body :is(.profile-action-row,.setting-row,.rank-step,.history-row) {color:var(--a-ink);border-color:var(--a-line)}
.player-body :is(.profile-action-row small,.setting-row small,.rank-step small,.history-row small) {color:var(--a-muted)}
.player-body .route-profile .profile-summary-copy {background:var(--a-panel);color:var(--a-ink)}
.player-body .route-profile .profile-summary-copy p {color:var(--a-muted)}
.player-body .route-shop :is(.chest-copy h3,.chest-price) {color:var(--a-ink)}
.player-body .route-shop :is(.chest-wallet,.passport-next-reward) {background:var(--a-wallet);color:var(--a-gold);border-color:var(--a-line)}
.player-body .route-shop .chest-wallet b,.player-body .route-shop .probability-list em {color:var(--a-gold)}
.player-body .route-shop .rarity-label {background:var(--a-panel);color:var(--a-violet)}
.player-body .route-shop .stock-note {color:var(--a-muted)}
.player-body .notification-card.unread {background:var(--a-soft)}
.player-body :is(.boss-prize,.boss-personal,.boss-actions>div,.boss-contributors li.is-you,.boss-trophy) {background:var(--a-soft);border-color:var(--a-line);color:var(--a-ink)}
.player-body :is(.boss-description,.boss-rules,.boss-contributors small,.boss-clock,.boss-card-meta) {color:var(--a-muted)}
.player-body :is(.boss-health strong,.boss-section-heading h2,.boss-prize strong,.boss-victory h2) {color:var(--a-ink)}
.player-body :is(.boss-health b,.boss-personal strong,.boss-actions span,.boss-kicker) {color:var(--a-violet)}
.player-body .boss-hero-title h1 {color:#fff}
.player-body .boss-phase-label {background:#17162c;color:#ffe5b3}
.player-body .boss-card {background:var(--a-panel);min-height:132px}
.player-body .boss-card-art {opacity:.3}
.player-body .boss-card-content {position:relative;z-index:1}
.player-body .boss-card h2 {color:var(--a-ink)}
/* Modals are outside #app, so tokens live on body. */
.player-body .overlay :is(.fantasy-dialog,.fantasy-sheet,.dialog,.bottom-sheet) {background:var(--a-panel);color:var(--a-ink);border-color:var(--a-line)}
.player-body .overlay :is(h2,h3,strong,label) {color:var(--a-ink)}
.player-body .overlay :is(p,small,.declaration-subtitle) {color:var(--a-muted)}
.player-body .overlay :is(.declaration-action-card,.declaration-basket-panel,.basket-item,.declaration-feedback) {background:var(--a-soft);color:var(--a-ink);border-color:var(--a-line)}
.player-body .overlay :is(input,select,textarea,.input-wrap) {background:var(--a-soft);color:var(--a-ink);border-color:var(--a-line)}
.player-body .overlay :is(.icon-btn,.declaration-close,[data-close-overlay]) {color:var(--a-ink)}
.player-body .overlay .declaration-action-card.is-selected {border-color:var(--a-violet);box-shadow:inset 0 0 0 1px var(--a-violet)}
.player-body .player-drawer-nav button,.player-body .player-drawer-head {color:var(--a-ink)}
.player-body .player-drawer-nav button.active {background:var(--a-soft);color:var(--a-violet);border-color:var(--a-line)}
.player-body .toast {background:var(--a-panel);color:var(--a-ink);border-color:var(--a-line)}
.player-body .citadel-login {background:var(--a-world) center top/cover no-repeat var(--a-bg)}
.player-body .citadel-login:before {display:none}
.player-body .citadel-login .auth-card {background:var(--a-panel);border:1px solid var(--a-line);border-radius:20px;clip-path:none}
.player-body .citadel-login :is(.auth-oath,.form-field label,.input-wrap input) {color:var(--a-ink)}
.player-body .citadel-login .input-wrap {background:var(--a-soft);border-color:var(--a-line)}
.player-body .citadel-login .demo-box {color:var(--a-muted)}
@media(max-width:370px) {
 .player-body .mobile-main {padding-inline:12px}
 .player-body .header-brand .tq-logo-art {width:112px}
 .player-body .ivory-home .home-passport-avatar {width:34px;height:34px;flex-basis:34px;font-size:14px}
 .player-body .ivory-home .home-passport-side {padding:8px;gap:6px}
 .player-body .ivory-home .home-passport-side strong {font-size:14px}
 .player-body .ivory-home .home-passport-side small {font-size:7px}
 .player-body .citadel-home.ivory-home .wallet-coins>img {width:26px;height:26px}
 .player-body .citadel-home.ivory-home .wallet-coins {gap:4px;padding:8px 5px}
 .player-body .ivory-home .home-panel-heading h2 {font-size:19px}
 .player-body .citadel-home.ivory-home .home-quest-row {grid-template-columns:34px minmax(0,1fr) 68px;gap:5px;padding:8px 5px}
 .player-body .ivory-home .home-quest-art,.player-body .ivory-home .home-quest-art img {width:34px;height:40px}
 .player-body .ivory-home .home-quest-name {font-size:11px}
}
@media(prefers-reduced-motion:reduce) {.player-body .appearance-control * {transition:none}}

/* Reset legacy fixed dimensions which belonged to the previous composition. */
.player-body .citadel-home.ivory-home .home-panel-heading {min-height:0;height:auto;padding:0 4px;border:0}
.player-body .citadel-home.ivory-home .home-quest-list {min-height:0;padding:0}
.player-body .citadel-home.ivory-home .home-passport-side {max-width:none;align-self:stretch}
.player-body .citadel-home.ivory-home .home-wallet {height:auto;align-self:stretch}
.player-body .citadel-home.ivory-home .home-level-side .home-rank-copy {width:auto;flex:1 1 0;max-width:240px;overflow:visible}
.player-body .citadel-home.ivory-home .home-xp-line {width:auto;max-width:none;padding-top:6px}
.player-body .citadel-home.ivory-home .home-xp-line strong {font-family:var(--sans);font-size:12px}
.player-body .citadel-home.ivory-home .home-rank-copy h1 {font-size:29px!important}
.player-body .citadel-home.ivory-home .home-xp-track {display:block;position:static;width:100%;max-width:220px;height:4px;margin:0;border:0;border-radius:6px;background:var(--a-soft)}
.player-body .bottom-nav {background:var(--a-nav)!important}
/* Keep the rank and XP on a readable surface without narrowing the hero column. */
.player-body .citadel-home.ivory-home .home-level-side {max-width:none;width:calc(100% - 8px)}
.player-body .citadel-home.ivory-home .home-level-side .home-rank-copy {max-width:220px;padding:10px 12px;border-radius:12px;background:color-mix(in srgb,var(--a-panel) 90%,transparent)}
.player-body .citadel-home.ivory-home .home-xp-line strong {white-space:nowrap;font-weight:600}
@media(max-width:370px) {.player-body .citadel-home.ivory-home .home-level-side {gap:10px}.player-body .citadel-home.ivory-home .home-level-side .home-rank-copy {padding:8px}.player-body .citadel-home.ivory-home .home-rank-copy h1 {font-size:24px!important}.player-body .citadel-home.ivory-home .home-xp-line strong {font-size:10px}}
/* Replace legacy dark-only route chrome while retaining the illustrated heroes. */
.player-body .mobile-app:not(.qg-theme) {background:var(--a-bg)!important;color:var(--a-ink)}
.player-body .mobile-app:not(.qg-theme):after {display:none}
.player-body .route-quests .quest-command {background-image:none!important;background:var(--a-panel)}
.player-body .route-profile .profile-realm {background-image:var(--a-world)!important}
.player-body .route-profile .profile-realm:after {background:none!important}
.player-body .route-profile .profile-passport-link {color:var(--a-violet)}
.player-body .appearance-panel {padding:16px}
.player-body .appearance-panel .section-heading {padding:0}
.player-body .route-passport .passport-hero {background-image:var(--a-world)!important}
.player-body .route-ranking .podium-stage {background-image:var(--a-world)!important}
.player-body .route-passport .passport-identity h2,.player-body .route-passport .passport-status strong {color:var(--a-ink)}
.player-body .route-passport .passport-identity p {color:var(--a-violet)}
.player-body .route-passport :is(.member-since,.passport-status small,.passport-progress>small,.rank-node small) {color:var(--a-muted)}
.player-body .route-passport .passport-progress>div:first-child strong {color:var(--a-gold)}
.player-body .route-passport .passport-progress>div:first-child span {color:var(--a-ink)}
.player-body .route-passport .rank-sigil span {color:#fff}
.player-body .route-passport .passport-track {background:var(--a-soft);border-color:var(--a-line)}
.player-body .route-passport .passport-next-reward small {color:var(--a-violet)}
.player-body .route-passport .passport-next-reward>b {color:var(--a-gold)}
.player-body .route-passport .rank-node {color:var(--a-muted)}
.player-body .route-passport .rank-node strong {color:var(--a-ink)}
.player-body .route-passport .rank-node>div {background:var(--a-soft);color:var(--a-gold);border-color:var(--a-line)}
.player-body .route-passport .rank-node.current>div {background:#7134b4;color:white}
.player-body .route-shop :is(.chest-hero p,.chest-wallet span,.probability-list span,.chest-copy p) {color:var(--a-muted)}
.player-body .boss-prize small {color:var(--a-gold)}
.player-body .boss-prize span {color:var(--a-muted)}
.player-body .boss-health span {color:var(--a-muted)}
.player-body .overlay :is(.declaration-action-card,.declaration-other-list .declaration-action-card,.declaration-basket-panel,.declaration-other-toggle) {background:var(--a-soft)!important;border-color:var(--a-line)!important;color:var(--a-ink)!important;border-radius:12px!important}
.player-body .overlay .declaration-action-card.is-selected {background:var(--a-panel)!important;border-color:var(--a-violet)!important}
.player-body .overlay :is(.declaration-submit-wrap,.declaration-basket-total) {background:var(--a-panel)!important;border-color:var(--a-line)!important}
.player-body .overlay :is(.declaration-action-card small,.declaration-event,.declaration-premium-header small) {color:var(--a-muted)}
.player-body .overlay .declaration-close {background:var(--a-soft);color:var(--a-ink)}
.player-body .overlay .declaration-premium-header {background:var(--a-panel);backdrop-filter:none}
.player-body .overlay .declaration-premium-header small {font-size:10px;line-height:1.4}
.player-body .overlay .declaration-event {background:var(--a-soft);border-color:var(--a-line)}
.player-body .overlay .declaration-event b {color:var(--a-gold)}
.player-body .overlay .declaration-action-copy small {font-size:9px;flex-wrap:wrap;white-space:normal}
.player-body .overlay .declaration-action-copy small b,.player-body .overlay .declaration-gain span:first-child strong,.player-body .overlay .declaration-section-title {color:var(--a-violet)}
.player-body .overlay .declaration-action-copy small em,.player-body .overlay .declaration-gain span:last-child strong {color:var(--a-gold)}
.player-body .overlay .declaration-action-icon {background:var(--a-panel);color:var(--a-violet);border-color:var(--a-line)}
.player-body .overlay .declaration-basket-qty button {background:var(--a-panel);color:var(--a-violet)}
.player-body .overlay .declaration-basket-qty {background:var(--a-panel);border-color:var(--a-line)}
@media(max-width:430px) {
 .player-body .citadel-home.ivory-home .home-progression {height:204px}
 .player-body .citadel-home.ivory-home .home-level-side {bottom:10px}
 .player-body .citadel-home.ivory-home .home-quest-row {min-height:68px}
 .player-body .citadel-home.ivory-home .home-quest-row:nth-child(n+4) {display:none}
 .player-body .citadel-home.ivory-home .home-rank-copy h1 {font-size:26px!important}
}
/* The same theme applies below the fold, including live events and battles. */
.player-body .citadel-home.ivory-home :is(.home-secret,.home-ranking,.home-battle,.battle-card,.event-banner,.home-event,.active-event-banner,.tq-home-panel:not(.home-progression)) {background:var(--a-panel);color:var(--a-ink);border-color:var(--a-line)}
.player-body .citadel-home.ivory-home :is(.home-secret-copy>strong,.home-ranking h2,.home-battle h2,.battle-card h2,.event-banner strong) {color:var(--a-ink)}
.player-body .citadel-home.ivory-home :is(.home-secret-copy p,.home-ranking small,.battle-card small,.event-banner p) {color:var(--a-muted)}
.player-body .citadel-home.ivory-home .boss-card {margin:0;min-height:0}
.player-body .citadel-home.ivory-home .boss-card-content {padding:14px}
.player-body .citadel-home.ivory-home .boss-card-art {left:50%;opacity:.35}
.player-body .citadel-home.ivory-home .boss-card h2 {font-size:22px;margin:8px 0 12px}
.player-body .citadel-home.ivory-home .boss-card .boss-primary {min-height:40px;padding:8px;font-size:13px}
.player-body .home-register-link {scroll-margin-block:120px}
@media(max-width:430px) {
 .player-body .citadel-home.ivory-home .home-progression {height:184px}
 .player-body .citadel-home.ivory-home .home-quest-row {min-height:62px;padding-block:6px}
 .player-body .citadel-home.ivory-home .home-level-side {bottom:0}
 .player-body .citadel-home.ivory-home .home-wallet {min-height:78px}
}
.player-body .mobile-app .active-event-banner {background:var(--a-panel);border-color:var(--a-line)}
.player-body .mobile-app .active-event-banner strong {color:var(--a-ink)}
.player-body .mobile-app .active-event-banner p {color:var(--a-muted)}
.player-body .mobile-app .active-event-meta {color:var(--a-gold)}
.player-body .mobile-app.route-shop .legendary-chest {background:var(--chest-art) center 30%/cover no-repeat var(--a-panel);padding:150px 12px 12px}
.player-body .mobile-app.route-shop .legendary-copy {background:var(--a-panel);padding:16px;border-radius:12px;position:relative;z-index:2}
.player-body .mobile-app.route-shop .legendary-copy p {color:var(--a-muted);line-height:1.5}
.player-body .mobile-app.route-shop .legendary-glow {display:none}
/* Secondary rewards remain legible on ivory surfaces. */
.player-body .mobile-app .active-event-meta b {color:var(--a-gold)}
.player-body .mobile-app .active-event-meta time,
.player-body .mobile-app .battle-reward b,
.player-body .mobile-app .home-ranking small {color:var(--a-muted)}
.player-body .mobile-app .battle-reward span {color:var(--a-violet)}
/* Demo disclosure stays visible without shifting the mobile composition. */
.boss-demo-label {position:fixed;top:0;left:0;right:0;z-index:100;font-size:10px!important;padding:3px!important;pointer-events:none}

/* V7.22.2 — pixel-reference QG lock (07/10/2026).
   The dual-theme reference is authoritative; the appearance selector itself is Profile-only. */
.player-body .mobile-app.route-home .appearance-control{display:none!important}
.player-body .mobile-app.route-home .mobile-main{
  padding-top:calc(8px + env(safe-area-inset-top));
  padding-inline:clamp(10px,3.4vw,16px);
  padding-bottom:calc(108px + env(safe-area-inset-bottom));
}
.player-body .mobile-app.route-home .mobile-header{
  position:relative;min-height:64px;margin:0 0 4px;
  grid-template-columns:44px minmax(0,1fr) auto;gap:6px;align-items:center
}
.player-body .mobile-app.route-home .header-menu{justify-self:start}
.player-body .mobile-app.route-home .header-actions{justify-self:end;gap:4px;position:relative;z-index:4}
.player-body .mobile-app.route-home .header-brand{
  position:absolute;z-index:3;left:50%;top:50%;width:auto;height:62px;
  transform:translate(-50%,-50%);display:grid;place-items:center;pointer-events:none
}
.player-body .mobile-app.route-home .header-brand .tq-logo-art{
  width:clamp(100px,27vw,124px);height:62px;object-fit:contain
}
.player-body .mobile-app.route-home .header-menu,
.player-body .mobile-app.route-home .header-bell{width:40px;height:40px}
.player-body .mobile-app.route-home .home-header-wallet{
  min-width:72px;height:36px;padding:0 9px;gap:6px
}
.player-body .mobile-app.route-home .home-header-wallet .header-coin{width:22px;height:22px}
.player-body .mobile-app.route-home.qg-theme:after{
  height:405px;background:var(--a-world) 50% 0/cover no-repeat;
  mask-image:linear-gradient(#000 0 78%,transparent 100%);
  -webkit-mask-image:linear-gradient(#000 0 78%,transparent 100%)
}
.player-body .citadel-home.ivory-home{gap:10px}
.player-body .citadel-home.ivory-home .home-progression{
  height:238px;min-height:238px;margin:0;padding:0;overflow:visible
}
.player-body .citadel-home.ivory-home .citadel-status{
  margin:2px 0 0 2px;min-height:48px;max-width:min(72%,270px);
  padding:7px 10px;border-radius:12px
}
.player-body .citadel-home.ivory-home .citadel-status strong{font-size:13px}
.player-body .citadel-home.ivory-home .citadel-status small{font-size:9px}
.player-body .citadel-home.ivory-home .home-level-side{
  left:3px;right:3px;bottom:8px;width:auto;max-width:none;gap:15px;align-items:center
}
.player-body .citadel-home.ivory-home .home-level-side .home-level-orb{
  width:96px;height:96px;flex:0 0 96px
}
.player-body .citadel-home.ivory-home .home-level-side .home-rank-copy{
  width:auto;max-width:min(235px,calc(100% - 111px));padding:0;background:transparent;border-radius:0
}
.player-body .citadel-home.ivory-home .home-rank-copy h1{
  margin:1px 0 6px;font-size:30px!important;line-height:1.02;letter-spacing:-.02em
}
.player-body .citadel-home.ivory-home .home-rank-label{
  font-size:10px;font-weight:700;letter-spacing:.11em
}
.player-body .citadel-home.ivory-home .home-xp-track{
  width:100%;max-width:220px;height:5px;margin:0 0 7px;background:color-mix(in srgb,var(--a-soft) 84%,transparent)
}
.player-body .citadel-home.ivory-home .home-xp-line{padding:0;gap:5px}
.player-body .citadel-home.ivory-home .home-xp-line strong{font-size:11px;white-space:nowrap}
.player-body .home-identity-grid{
  display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.9fr);gap:8px;align-items:stretch
}
.player-body .citadel-home.ivory-home .home-passport-side,
.player-body .citadel-home.ivory-home .home-wallet{min-height:76px;height:76px}
.player-body .citadel-home.ivory-home .home-passport-side{padding:9px 10px;gap:8px}
.player-body .ivory-home .home-passport-avatar{width:44px;height:44px;flex-basis:44px}
.player-body .ivory-home .home-passport-side small{font-size:8px}
.player-body .ivory-home .home-passport-side strong{font-size:16px}
.player-body .ivory-home .home-passport-side em{font-size:10px}
.player-body .citadel-home.ivory-home .wallet-coins{
  min-height:76px;padding:9px 8px;gap:7px
}
.player-body .citadel-home.ivory-home .wallet-coins>img{width:35px;height:35px}
.player-body .citadel-home.ivory-home .wallet-coins strong{font-size:27px}
.player-body .citadel-home.ivory-home .home-quests{
  margin:0;padding:11px 8px 9px;border-radius:16px;overflow:hidden
}
.player-body .citadel-home.ivory-home .home-panel-heading{
  min-height:43px;padding:0 4px 7px;align-items:center
}
.player-body .citadel-home.ivory-home .home-panel-heading>div>p{display:none}
.player-body .ivory-home .home-panel-heading h2{font-size:22px;line-height:1}
.player-body .ivory-home .home-heading-icon{width:25px;height:27px}
.player-body .ivory-home .mission-day-score{align-self:center;text-align:right}
.player-body .ivory-home .mission-day-score strong{font-size:22px;line-height:1}
.player-body .ivory-home .mission-day-score small{font-size:8px;line-height:1.15}
.player-body .ivory-home .mission-day-score time{display:none}
.player-body .citadel-home.ivory-home .home-quest-list{gap:5px;margin:0}
.player-body .citadel-home.ivory-home .home-quest-row{
  grid-template-columns:44px minmax(0,1fr) 86px;gap:7px;min-height:66px;
  padding:7px 7px;border-radius:12px
}
.player-body .ivory-home .home-quest-art,
.player-body .ivory-home .home-quest-art img{width:42px;height:48px}
.player-body .ivory-home .home-quest-name{font-size:12.5px;font-weight:750;line-height:1.15}
.player-body .ivory-home .home-quest-action-label{font-size:9px;margin-top:2px}
.player-body .ivory-home .home-quest-progress-line{margin-top:4px;gap:5px}
.player-body .ivory-home .home-quest-progress-line b{font-size:9px;min-width:25px}
.player-body .ivory-home .home-mini-track{height:5px}
.player-body .ivory-home .home-quest-side{gap:4px}
.player-body .ivory-home .home-quest-reward{gap:3px;align-items:center}
.player-body .ivory-home .home-quest-reward strong{font-size:9px}
.player-body .ivory-home .home-quest-reward>span{font-size:8px}
.player-body .citadel-home.ivory-home .quest-quick-add{
  min-height:34px;padding:5px;border-radius:8px;font-size:9px
}
.player-body .ivory-home .quest-quick-done{min-height:34px;font-size:9px;font-weight:700}
.player-body .ivory-home .home-quest-cta{padding:8px 4px 0}
.player-body .citadel-home.ivory-home .home-register-link{
  display:grid!important;grid-template-columns:22px minmax(0,1fr) 18px;
  align-items:center;justify-items:center;gap:6px;min-height:44px;padding:9px 14px;
  border-radius:24px;font-size:10px;font-weight:700;text-transform:uppercase
}
.player-body .citadel-home.ivory-home .home-register-link .home-register-book{width:20px;height:20px}
.player-body .citadel-home.ivory-home .home-register-link .home-register-chevron{width:15px;height:15px}
.player-body .citadel-home.ivory-home .boss-home-card{
  position:relative;isolation:isolate;height:96px;min-height:96px;margin:0;overflow:hidden;
  border-radius:13px;border-color:var(--a-gold);background:var(--a-panel)
}
.player-body .citadel-home.ivory-home .boss-home-card .boss-card-art{
  display:block;position:absolute;z-index:0;top:0;right:0;bottom:0;left:auto;width:58%;
  opacity:1;background:url('../assets/boss/guardian.webp') 54% 27%/cover no-repeat;
  mask-image:linear-gradient(90deg,transparent 0,#000 30%);
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 30%)
}
.player-body .citadel-home.ivory-home .boss-home-card .boss-card-content{
  position:relative;z-index:1;width:68%;height:100%;padding:10px 12px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center
}
.player-body .citadel-home.ivory-home .boss-home-card .boss-kicker{
  color:var(--a-gold);font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.08em
}
.player-body .citadel-home.ivory-home .boss-home-card h2{
  margin:2px 0 0;font-size:17px;line-height:1.05;color:var(--a-ink)
}
.player-body .citadel-home.ivory-home .boss-home-card h2:after{
  content:"Unissez vos forces contre l’obscurité.";display:block;margin-top:4px;
  color:var(--a-muted);font-family:var(--sans);font-size:9px;font-weight:500;line-height:1.15
}
.player-body .citadel-home.ivory-home .boss-home-card :is(.boss-health,.boss-card-meta){display:none}
.player-body .citadel-home.ivory-home .boss-home-card .boss-primary{
  min-height:0;margin-top:6px;padding:0!important;border:0!important;background:none!important;
  box-shadow:none!important;color:var(--a-violet)!important;font-size:9px;font-weight:800;text-transform:uppercase
}
.player-body .citadel-home.ivory-home .boss-home-card .boss-primary .icon{width:13px;height:13px}
.player-body .mobile-app.route-home .bottom-nav .nav-btn{min-width:0}
.player-body .mobile-app.route-home .bottom-nav .nav-btn span{font-size:9px}
@media(max-width:400px){
 .player-body .mobile-app.route-home .header-brand .tq-logo-art{width:98px}
}
@media(max-width:370px){
 .player-body .mobile-app.route-home .mobile-main{padding-inline:10px}
 .player-body .mobile-app.route-home .header-brand .tq-logo-art{width:90px}
 .player-body .mobile-app.route-home .home-header-wallet{min-width:58px;height:34px;padding:0 5px;font-size:12px}
 .player-body .mobile-app.route-home .home-header-wallet .header-coin{width:19px;height:19px}
 .player-body .mobile-app.route-home .header-menu,
 .player-body .mobile-app.route-home .header-bell{width:32px;height:38px}
 .player-body .citadel-home.ivory-home .home-progression{height:218px;min-height:218px}
 .player-body .citadel-home.ivory-home .home-level-side{gap:9px}
 .player-body .citadel-home.ivory-home .home-level-side .home-level-orb{width:82px;height:82px;flex-basis:82px}
 .player-body .citadel-home.ivory-home .home-level-side .home-rank-copy{max-width:calc(100% - 91px)}
 .player-body .citadel-home.ivory-home .home-rank-copy h1{font-size:24px!important}
 .player-body .citadel-home.ivory-home .home-xp-line strong{font-size:9px}
 .player-body .home-identity-grid{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);gap:6px}
 .player-body .citadel-home.ivory-home .home-passport-side,
 .player-body .citadel-home.ivory-home .home-wallet{height:70px;min-height:70px}
 .player-body .ivory-home .home-passport-avatar{width:36px;height:36px;flex-basis:36px}
 .player-body .ivory-home .home-passport-side strong{font-size:13px}
 .player-body .citadel-home.ivory-home .wallet-coins>img{width:27px;height:27px}
 .player-body .citadel-home.ivory-home .wallet-coins strong{font-size:22px}
 .player-body .ivory-home .wallet-coins-hint{font-size:7px}
 .player-body .citadel-home.ivory-home .home-quest-row{grid-template-columns:36px minmax(0,1fr) 69px;gap:5px;min-height:60px;padding:6px 5px}
 .player-body .ivory-home .home-quest-art,.player-body .ivory-home .home-quest-art img{width:35px;height:41px}
 .player-body .ivory-home .home-quest-name{font-size:10.5px}
 .player-body .ivory-home .home-quest-action-label{font-size:8px}
 .player-body .ivory-home .home-quest-reward strong{font-size:8px}
 .player-body .citadel-home.ivory-home .quest-quick-add{font-size:8px}
 .player-body .citadel-home.ivory-home .boss-home-card{height:88px;min-height:88px}
 .player-body .citadel-home.ivory-home .boss-home-card h2{font-size:15px}
}
@media(max-height:820px) and (max-width:430px){
 .player-body .citadel-home.ivory-home .home-progression{height:205px;min-height:205px}
 .player-body .citadel-home.ivory-home .home-level-side{bottom:2px}
 .player-body .citadel-home.ivory-home .home-quest-row{min-height:58px}
 .player-body .citadel-home.ivory-home .home-panel-heading{min-height:38px}
 .player-body .citadel-home.ivory-home .boss-home-card{height:86px;min-height:86px}
}

/* V7.22.3: remove legacy logo grid tracks and let long ranks size the hero. */
.player-body .mobile-app.route-home .header-brand {
 display:flex;align-items:center;justify-content:center;grid-template:none;
}
.player-body .mobile-app.route-home .header-brand .tq-logo-art {
 display:block;flex:none;margin:0;max-height:62px;align-self:center;
}
.player-body .citadel-home.ivory-home .home-progression {
 height:auto;display:flex;flex-direction:column;justify-content:space-between;gap:32px;padding-bottom:8px;
}
.player-body .citadel-home.ivory-home .home-level-side {
 position:relative;inset:auto;width:100%;min-width:0;margin:0;padding:0 3px;
}
.player-body .citadel-home.ivory-home .home-level-side .home-rank-copy {
 min-width:0;max-width:calc(100% - 111px);padding:8px 9px;
 background:color-mix(in srgb,var(--a-panel) 84%,transparent);border-radius:10px;
}
.player-body .citadel-home.ivory-home .home-rank-copy h1 {font-size:clamp(22px,6.5vw,30px)!important;line-height:1.12;overflow-wrap:anywhere}
.player-body .citadel-home.ivory-home .home-xp-line strong {white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.player-body .citadel-home.ivory-home .boss-home-card {height:auto;min-height:96px}
.player-body .citadel-home.ivory-home .boss-home-card .boss-card-content {height:auto;min-height:96px;width:72%;padding:11px 12px}
.player-body .citadel-home.ivory-home .boss-home-card .boss-primary {align-self:flex-start;justify-content:flex-start;width:auto;max-width:100%;text-align:left;line-height:1.5}
@media(max-width:370px) {
 .player-body .citadel-home.ivory-home .home-level-side .home-rank-copy {max-width:calc(100% - 91px);padding:7px}
 .player-body .citadel-home.ivory-home .boss-home-card .boss-card-content {min-height:88px}
}
/* Match the reference's stronger primary action and readable identity hierarchy. */
.player-body .mobile-app.route-home .header-brand .tq-logo-art {width:clamp(92px,29vw,140px)}
.player-body .citadel-home.ivory-home .home-register-link {
 background:#7223b8!important;border-color:#c88af4;box-shadow:inset 0 1px 3px #ffffff70,0 0 12px #9d3cdb38;
}
.player-body .citadel-home.ivory-home .home-wallet {background:var(--a-wallet)}
.player-body .ivory-home .home-passport-side strong {font-size:17px}
.player-body .ivory-home .home-passport-side small {font-size:9px}
.player-body .ivory-home .home-quest-name {font-size:13px;line-height:1.25}
.player-body .ivory-home .quest-quick-done {color:var(--a-success);font-size:10px}
.player-body .ivory-home .home-quest-art {border:0;background:none;box-shadow:none}
@media(max-width:370px) {
 .player-body .ivory-home .home-passport-side strong {font-size:13px}
 .player-body .ivory-home .home-passport-side small {font-size:7px}
 .player-body .ivory-home .home-quest-name {font-size:11px}
}
/* Keep the optical center while reserving independent hit targets for Coins and alerts. */
@media(max-width:400px){
 .player-body .mobile-app.route-home .header-brand .tq-logo-art{width:98px}
}

@media(max-width:370px){
 .player-body .mobile-app.route-home .header-brand .tq-logo-art{width:86px}
}

/* V7.22.4 — consistent surfaces, accessibility and optical finishing.
   Drawer overlays are mounted on document.body, so theme selectors must not
   depend exclusively on the .player-body descendant hierarchy. */
.player-body .player-menu-overlay{background:rgba(11,13,32,.50);backdrop-filter:blur(5px)}
.player-body .player-menu-overlay .dialog{
 background:var(--a-panel)!important;color:var(--a-ink)!important;
 border-right:1px solid var(--a-line)!important;
 box-shadow:20px 0 50px #0d102955!important;
}
.player-body .player-menu-overlay .player-drawer{
 background:linear-gradient(165deg,color-mix(in srgb,var(--a-panel) 96%,transparent),var(--a-soft))!important;
 color:var(--a-ink);min-height:100%;
}
.player-body .player-menu-overlay .player-drawer-head{
 background:transparent!important;color:var(--a-ink)!important;
 border-bottom:1px solid var(--a-line)!important;
}
.player-body .player-menu-overlay .player-drawer-head :is(strong,span){color:var(--a-ink)!important;text-shadow:none!important}
.player-body .player-menu-overlay .player-drawer-head small{color:var(--a-violet)!important}
.player-body .player-menu-overlay .player-drawer-head button{color:var(--a-ink)!important}
.player-body .player-menu-overlay .player-drawer-nav button{
 color:var(--a-ink)!important;background:transparent!important;
 border:1px solid transparent!important;border-bottom-color:var(--a-line)!important;
 border-radius:10px!important;text-shadow:none!important;
}
.player-body .player-menu-overlay .player-drawer-nav button span{font-size:13px;font-weight:600;color:inherit!important}
.player-body .player-menu-overlay .player-drawer-nav button>.icon:first-child{color:var(--a-violet)!important}
.player-body .player-menu-overlay .player-drawer-nav button>.icon:last-child{color:var(--a-muted)!important}
.player-body .player-menu-overlay .player-drawer-nav button.active{
 background:var(--a-soft)!important;color:var(--a-violet)!important;
 border-color:var(--a-line)!important;box-shadow:inset 3px 0 var(--a-gold)!important;
}
.player-body .player-menu-overlay .player-drawer-foot{
 background:transparent!important;border-top:1px solid var(--a-line)!important;
}
.player-body .player-menu-overlay .player-drawer-foot :is(span,small){color:var(--a-muted)!important}
.player-body .player-menu-overlay .player-drawer-nav button:active{background:var(--a-soft)!important}
@media(hover:hover){.player-body .player-menu-overlay .player-drawer-nav button:hover{background:var(--a-soft)!important}}

/* Coffres: card, image well and text well form one color system in both themes. */
.player-body .route-shop .chest-card,
.player-body .route-shop .chest-card.common,
.player-body .route-shop .chest-card.rare,
.player-body .route-shop .chest-card.epic,
.player-body .route-shop .chest-card.legendary{
 background:var(--a-panel)!important;color:var(--a-ink)!important;
 border:1px solid var(--a-line)!important;border-radius:16px!important;
 box-shadow:0 5px 16px var(--a-shadow)!important;overflow:hidden;
}
.player-body .route-shop .chest-card .chest-copy{
 background:var(--a-panel)!important;color:var(--a-ink)!important;
 min-width:0;
}
.player-body .route-shop .chest-card .chest-copy :is(h3,strong){color:var(--a-ink)!important;text-shadow:none!important}
.player-body .route-shop .chest-card .chest-copy :is(p,.stock-note,.chest-contents span,.probability-list span){color:var(--a-muted)!important}
.player-body .route-shop .chest-card .chest-art{
 background:linear-gradient(145deg,#211537,#101b35)!important;
 border-right:1px solid var(--a-line);overflow:hidden;
}
.player-body .route-shop .chest-card .chest-art img{
 max-width:100%;object-fit:cover;filter:none;display:block;
}
.player-body .route-shop .chest-card .rarity-label{
 background:var(--a-panel)!important;color:var(--a-violet)!important;
 border:1px solid var(--a-line)!important;border-radius:30px!important;
 box-shadow:0 2px 7px #0002;font-size:9px;letter-spacing:.055em;
}
.player-body .route-shop .chest-card .chest-price{color:var(--a-ink)!important}
.player-body .route-shop .chest-card .chest-footer{border-color:var(--a-line)!important;gap:8px;flex-wrap:wrap}
.player-body .route-shop .chest-card .open-chest-btn:not(:disabled){
 background:linear-gradient(180deg,#9545dc,#6125a0)!important;color:#fff!important;
 border-color:#c28ff0!important;
}
.player-body .route-shop .chest-card .open-chest-btn:disabled{
 background:var(--a-soft)!important;color:var(--a-muted)!important;
 border-color:var(--a-line)!important;opacity:1!important;
}
.player-body .route-shop .chest-card .probability-list em{color:var(--a-gold)!important;font-variant-numeric:tabular-nums}
.player-body .route-shop .chest-event{background:var(--a-panel)!important;color:var(--a-ink)!important;border-color:var(--a-line)!important}
.player-body .route-shop .chest-event :is(p,small){color:var(--a-muted)!important}

/* A few perceptual polish details common to every page. */
.player-body .route-home .home-rank-copy{
 background:color-mix(in srgb,var(--a-panel) 90%,transparent)!important;
 backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
 box-shadow:0 3px 14px var(--a-shadow);border:1px solid color-mix(in srgb,var(--a-line) 65%,transparent);
}
.player-body .home-identity-grid>*{min-width:0}
.player-body .route-home .home-quest-row :is(.home-quest-name,.home-quest-action-label){overflow-wrap:anywhere}
.player-body .route-home .home-quest-side{min-width:0}
.player-body .route-home .home-register-link{letter-spacing:.025em}
.player-body .route-profile .appearance-panel :is(button,input){min-width:0}
.player-body .route-profile .appearance-control{max-width:100%}
.player-body .route-passport .passport-identity :is(h2,p){overflow-wrap:anywhere}
.player-body .bottom-nav .nav-btn{transition:color .18s ease,background-color .18s ease}
@media(hover:hover){.player-body .route-shop .chest-card:hover{box-shadow:0 8px 24px var(--a-shadow)!important}}
@media(prefers-reduced-motion:reduce){.player-body .bottom-nav .nav-btn{transition:none}}

/* V7.22.5 — Passport prestige edition. All sections stay in normal flow so
   earned titles, accessibility text scaling and compact screens never collide. */
.player-body .route-passport .passport-page{display:grid;gap:14px;min-width:0;padding-bottom:calc(125px + env(safe-area-inset-bottom))}
.player-body .route-passport .passport-page>*{min-width:0;max-width:100%}
.player-body .route-passport .passport-hero{
  position:relative;isolation:isolate;display:flex;flex-direction:column;gap:0;
  min-height:0!important;height:auto!important;padding:133px 12px 14px!important;
  border:1px solid var(--a-line)!important;border-top:2px solid #a46be6!important;
  border-radius:20px!important;overflow:hidden!important;
  background-image:linear-gradient(180deg,transparent 12%,rgba(10,12,33,.12) 32%,rgba(10,12,33,.30) 54%,transparent 72%),var(--a-world)!important;
  background-size:cover!important;background-position:50% 24%!important;
  box-shadow:0 12px 27px var(--a-shadow),inset 0 1px #fff5!important
}
.player-body .route-passport .passport-prestige-mark{
  position:absolute;top:12px;left:12px;z-index:1;max-width:calc(100% - 24px);
  padding:7px 11px;border:1px solid #f3dca085;border-radius:99px;
  color:#fff4d6;background:#151430b8;font-size:9px;line-height:1.2;
  font-weight:800;letter-spacing:.16em;text-shadow:0 1px 4px #0009;
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)
}
.player-body .route-passport .passport-identity{
  display:grid!important;grid-template-columns:66px minmax(0,1fr) 61px!important;
  gap:10px!important;align-items:center;min-width:0;min-height:96px;
  border:1px solid var(--a-line)!important;border-bottom:0!important;
  border-radius:15px 15px 0 0!important;padding:13px 12px 11px!important;
  background:color-mix(in srgb,var(--a-panel) 96%,transparent)!important;
  box-shadow:0 8px 18px #10102524!important;
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)
}
.player-body .route-passport .passport-identity>div{min-width:0}
.player-body .route-passport .passport-xl{width:62px!important;height:62px!important;max-width:100%;flex:none}
.player-body .route-passport .rank-sigil{width:59px!important;height:59px!important;max-width:100%;margin:auto}
.player-body .route-passport .rank-sigil span{font-size:22px!important}
.player-body .route-passport .passport-identity h2{
  color:var(--a-ink)!important;font-size:clamp(17px,4.7vw,24px)!important;
  line-height:1.14!important;max-width:100%;margin:2px 0 4px!important;
  overflow-wrap:anywhere;hyphens:auto
}
.player-body .route-passport .passport-identity :is(p,.member-since){
  max-width:100%;white-space:normal;overflow-wrap:anywhere
}
.player-body .route-passport .passport-identity p{color:var(--a-violet)!important;font-size:11px!important;line-height:1.3}
.player-body .route-passport .member-since{color:var(--a-muted)!important;font-size:9px!important;line-height:1.35}
.player-body .route-passport .passport-progress{
  position:relative!important;inset:auto!important;min-width:0;margin:0!important;
  padding:11px 13px 12px!important;border:1px solid var(--a-line)!important;
  border-top:0!important;border-bottom:0!important;
  background:var(--a-panel)!important;color:var(--a-ink)!important
}
.player-body .route-passport .passport-progress>div:first-child{
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;
  gap:5px 10px;min-width:0
}
.player-body .route-passport .passport-progress>div:first-child strong{
  font-family:var(--serif);font-size:16px!important;color:var(--a-gold)!important
}
.player-body .route-passport .passport-progress>div:first-child span{
  font-size:10px;color:var(--a-ink)!important;overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums
}
.player-body .route-passport .passport-track{
  width:100%;max-width:100%;height:8px!important;margin:9px 0 0!important;
  border:1px solid var(--a-line)!important;border-radius:12px!important;
  background:var(--a-soft)!important;overflow:hidden
}
.player-body .route-passport .passport-track i{border-radius:12px;background:linear-gradient(90deg,#7736b9,#c169ff)!important}
.player-body .route-passport .passport-progress>small{
  display:block;margin-top:7px;color:var(--a-muted)!important;
  font-size:10px!important;line-height:1.35
}
.player-body .route-passport .passport-status{
  position:relative!important;inset:auto!important;display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));gap:0;
  margin:0!important;padding:0!important;min-width:0;
  background:var(--a-panel)!important;color:var(--a-ink)!important;
  border:1px solid var(--a-line)!important;border-top-color:color-mix(in srgb,var(--a-line) 50%,transparent)!important;
  border-radius:0 0 15px 15px!important;overflow:hidden
}
.player-body .route-passport .passport-status article{
  display:grid;grid-template-columns:21px minmax(0,1fr);column-gap:6px;
  align-content:center;min-width:0;min-height:62px;padding:10px!important
}
.player-body .route-passport .passport-status article+article{border-left:1px solid var(--a-line)!important}
.player-body .route-passport .passport-status span{grid-row:1 / span 2;color:var(--a-violet)!important}
.player-body .route-passport .passport-status small{
  color:var(--a-muted)!important;font-size:9px!important;line-height:1.25
}
.player-body .route-passport .passport-status strong{
  color:var(--a-ink)!important;font-size:11px!important;line-height:1.35;
  overflow-wrap:anywhere;min-width:0
}
.player-body .route-passport .passport-next-reward{
  display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;
  align-items:center;min-width:0;padding:13px!important;
  border-left:3px solid var(--a-gold)!important;
  background:var(--a-wallet)!important;border-radius:15px!important
}
.player-body .route-passport .passport-next-reward>div{min-width:0}
.player-body .route-passport .passport-next-reward :is(strong,p){overflow-wrap:anywhere}
.player-body .route-passport .passport-next-reward strong{color:var(--a-ink)!important;line-height:1.2}
.player-body .route-passport .passport-next-reward p{color:var(--a-muted)!important;line-height:1.4}
.player-body .route-passport .passport-next-reward>b{
  color:var(--a-gold)!important;font-size:12px;white-space:nowrap;font-variant-numeric:tabular-nums
}
.player-body .route-passport .rank-journey{
  min-width:0;overflow:hidden!important;border-radius:17px!important;
  padding:16px 0 12px!important;background:var(--a-panel)!important
}
.player-body .route-passport .rank-journey .section-heading{
  padding:0 16px 12px;min-width:0
}
.player-body .route-passport .rank-journey .section-heading>div{min-width:0}
.player-body .route-passport .rank-journey .section-heading h2{
  font-family:var(--serif);font-size:22px;line-height:1.2;
  color:var(--a-ink)!important;margin:3px 0 5px
}
.player-body .route-passport .rank-journey .section-heading p{
  margin:0;color:var(--a-muted);font-size:11px;line-height:1.5
}
.player-body .route-passport .rank-road{
  display:grid!important;grid-auto-flow:column;grid-auto-columns:118px;
  gap:10px!important;width:100%;min-width:0;margin:0!important;
  padding:6px 16px 17px!important;overflow-x:auto!important;overflow-y:hidden!important;
  scroll-snap-type:x proximity;scroll-padding-inline:16px;
  scrollbar-width:thin;scrollbar-color:var(--a-line) transparent;
  -webkit-overflow-scrolling:touch;overscroll-behavior-x:contain
}
.player-body .route-passport .rank-node{
  position:relative;transform:none!important;clip-path:none!important;
  display:flex!important;flex-direction:column;align-items:center;
  justify-content:flex-start;gap:5px;min-width:0!important;width:118px;
  min-height:150px;height:auto!important;padding:10px 7px!important;
  border:1px solid var(--a-line)!important;border-radius:13px!important;
  color:var(--a-muted)!important;background:var(--a-soft)!important;
  box-shadow:none!important;scroll-snap-align:start;text-align:center
}
.player-body .route-passport .rank-node:before,.player-body .route-passport .rank-node:after{display:none!important}
.player-body .route-passport .rank-state{
  display:block;max-width:100%;min-height:12px;color:var(--a-muted);
  font-size:8px;font-weight:800;line-height:1.35;letter-spacing:.04em;text-transform:uppercase
}
.player-body .route-passport .rank-node .rank-medallion{
  width:49px!important;height:49px!important;min-width:49px;
  margin:2px 0!important;display:grid!important;place-items:center;
  border:1px solid var(--a-line)!important;border-radius:50%!important;
  transform:none!important;clip-path:none!important;
  background:var(--a-panel)!important;color:var(--a-gold)!important
}
.player-body .route-passport .rank-node .rank-medallion .icon{
  width:24px;height:24px;transform:none!important
}
.player-body .route-passport .rank-node strong{
  display:block;color:var(--a-ink)!important;font-size:11px!important;
  line-height:1.2;max-width:100%;white-space:normal!important;overflow-wrap:anywhere
}
.player-body .route-passport .rank-node small{
  display:block;color:var(--a-muted)!important;font-size:9px!important;
  line-height:1.3;max-width:100%;overflow-wrap:anywhere
}
.player-body .route-passport .rank-node.current{
  background:color-mix(in srgb,var(--a-violet) 12%,var(--a-panel))!important;
  border-color:var(--a-violet)!important;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--a-violet) 40%,transparent),0 3px 12px var(--a-shadow)!important
}
.player-body .route-passport .rank-node.current .rank-medallion{
  color:#fff!important;background:linear-gradient(150deg,#ac56e6,#5e248f)!important;
  border-color:#dab0ff!important;box-shadow:0 0 0 3px #a356ed22
}
.player-body .route-passport .rank-node.current .rank-state{color:var(--a-violet)}
.player-body .route-passport .rank-node.locked{opacity:.66}
.player-body .route-passport .passport-stat-grid{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important
}
.player-body .route-passport .passport-stat{
  min-height:105px!important;display:flex;flex-direction:column;
  padding:13px!important;min-width:0;border-radius:14px!important;
  background:var(--a-panel)!important;overflow:hidden
}
.player-body .route-passport .passport-stat>span{
  background:var(--a-soft)!important;border-color:var(--a-line)!important;
  color:var(--a-violet)!important
}
.player-body .route-passport .passport-stat strong{
  color:var(--a-ink)!important;font-size:clamp(14px,3.7vw,19px)!important;
  line-height:1.2;overflow-wrap:anywhere;max-width:100%
}
.player-body .route-passport .passport-stat small{
  color:var(--a-muted)!important;font-size:10px!important;line-height:1.4
}
.player-body .route-passport :is(.collection-panel,.passport-chronicle,.customization-panel){
  border-radius:17px!important;background:var(--a-panel)!important;
  color:var(--a-ink)!important;padding-inline:14px
}
.player-body .route-passport .passport-badge{
  background:var(--a-soft)!important;border-color:var(--a-line)!important;
  border-radius:12px!important;min-width:0;overflow-wrap:anywhere
}
.player-body .route-passport .passport-badge.locked{opacity:.66}
.player-body .route-passport :is(.title-choice,.frame-choice){
  background:var(--a-soft)!important;border:1px solid var(--a-line)!important;border-radius:12px!important
}
.player-body .route-passport :is(.title-choice.active,.frame-choice.active){
  background:color-mix(in srgb,var(--a-violet) 12%,var(--a-panel))!important;
  border-color:var(--a-violet)!important
}
.player-body .route-passport :is(.passport-chronicle-list article,.title-choice,.frame-choice){
  min-width:0;overflow-wrap:anywhere
}
@media(max-width:370px){
 .player-body .route-passport .passport-hero{padding:112px 9px 10px!important}
 .player-body .route-passport .passport-identity{
   grid-template-columns:49px minmax(0,1fr) 49px!important;gap:7px!important;padding:10px 8px!important
 }
 .player-body .route-passport .passport-xl{width:48px!important;height:48px!important}
 .player-body .route-passport .rank-sigil{width:47px!important;height:47px!important}
 .player-body .route-passport .rank-sigil span{font-size:19px!important}
 .player-body .route-passport .passport-identity h2{font-size:16px!important}
 .player-body .route-passport .passport-next-reward{grid-template-columns:30px minmax(0,1fr)!important}
 .player-body .route-passport .passport-next-reward>b{grid-column:2}
 .player-body .route-passport .rank-road{grid-auto-columns:112px}
 .player-body .route-passport .rank-node{width:112px}
}
@media(prefers-reduced-motion:reduce){
 .player-body .route-passport .rank-road{scroll-behavior:auto!important}
}

/* V7.22.6 — art direction: tactile ivory / midnight fantasy components.
   Restrict enhancements to visual treatment; no navigation or game logic changes. */
.player-body{
 --tq-elevation:0 8px 24px var(--a-shadow),inset 0 1px 0 #ffffff6a;
 --tq-hairline:color-mix(in srgb,var(--a-line) 75%,transparent);
 --tq-glimmer:color-mix(in srgb,var(--a-gold) 14%,transparent);
}
[data-theme="dark"] .player-body{
 --tq-elevation:0 10px 28px #0005,inset 0 1px 0 #ffffff13;
 --tq-glimmer:color-mix(in srgb,var(--a-gold) 9%,transparent);
}
.player-body .mobile-app{font-synthesis:none}
.player-body :is(.tq-home-panel,.fantasy-panel,.passport-stat,.chest-card,.inventory-card,.battle-card,.boss-panel){
 border-color:var(--tq-hairline)!important;
 box-shadow:var(--tq-elevation)!important;
}
.player-body .page-stack{gap:14px}
.player-body .page-stack .section-heading{gap:10px}
.player-body .page-stack .section-heading h2{letter-spacing:-.015em;line-height:1.2}
.player-body .page-stack .section-heading .eyebrow{font-weight:800;letter-spacing:.14em}
.player-body .mobile-app :is(.primary-btn,.home-register-link,.open-chest-btn,.boss-primary):not(:disabled){
 transition:filter .18s ease,box-shadow .18s ease,transform .18s ease;
 box-shadow:inset 0 1px 0 #ffffff75,0 4px 12px #6523a038!important;
}
.player-body .mobile-app :is(.primary-btn,.home-register-link,.open-chest-btn,.boss-primary):not(:disabled):active{transform:scale(.985);filter:brightness(1.08)}
.player-body .bottom-nav{
 border-top:1px solid var(--a-line)!important;
 box-shadow:0 -6px 25px var(--a-shadow)!important;
 backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)
}
.player-body .bottom-nav button.active .icon{filter:drop-shadow(0 1px 4px var(--tq-glimmer))}
.player-body .route-home .citadel-status{
 border-color:var(--tq-hairline)!important;
 box-shadow:var(--tq-elevation)!important
}
.player-body .route-home .home-identity-grid>*{
 border-color:var(--tq-hairline)!important;
 box-shadow:var(--tq-elevation)!important
}
.player-body .route-home .home-quests{
 border-radius:18px!important;padding:12px 8px 10px!important
}
.player-body .route-home .home-quest-row{
 border-color:var(--tq-hairline)!important;
 border-radius:13px!important;
 background:linear-gradient(125deg,var(--a-panel),color-mix(in srgb,var(--a-soft) 35%,var(--a-panel)))!important;
 box-shadow:inset 0 1px 0 #ffffff3a,0 3px 9px var(--a-shadow)!important
}
.player-body .route-home .home-quest-row .home-quest-name{font-weight:750;letter-spacing:-.01em}
.player-body .route-home .home-quest-row .home-mini-track{height:6px!important;overflow:hidden}
.player-body .route-home .home-quest-cta{margin-top:0}
.player-body .route-home .boss-home-card{border-radius:17px!important;box-shadow:var(--tq-elevation)!important}
.player-body .route-shop .chest-card{
 position:relative;border-radius:18px!important;
 box-shadow:var(--tq-elevation)!important
}
.player-body .route-shop .chest-card .chest-art{
 background-image:radial-gradient(ellipse at 50% 40%,#b674c33d,transparent 65%),linear-gradient(150deg,#30214f,#111a32)!important
}
.player-body .route-shop .chest-card .chest-copy{padding-block:14px!important}
.player-body .route-shop .chest-card .chest-copy h3{letter-spacing:-.02em;line-height:1.2}
.player-body .route-shop .chest-card .rarity-label{font-weight:800!important;letter-spacing:.07em!important}
.player-body .route-shop .chest-card .chest-price{font-variant-numeric:tabular-nums}
.player-body .route-passport .passport-hero{
 border-radius:21px!important;box-shadow:var(--tq-elevation)!important
}
.player-body .route-passport .rank-journey{
 border-radius:18px!important;box-shadow:var(--tq-elevation)!important
}
.player-body .route-passport .rank-node.current{
 box-shadow:inset 0 0 0 1px var(--a-violet),0 6px 15px var(--a-shadow)!important
}
.player-body .route-passport .rank-node.current .rank-medallion{
 box-shadow:0 0 0 3px color-mix(in srgb,var(--a-violet) 18%,transparent),0 4px 12px #6930b455!important
}
.player-body .route-passport .passport-stat{
 box-shadow:var(--tq-elevation)!important
}
.player-body .route-quests .mission-card{
 border-radius:16px!important;
 box-shadow:var(--tq-elevation)!important;
 border-color:var(--tq-hairline)!important
}
.player-body .route-quests .mission-card .mission-title h3{line-height:1.25;overflow-wrap:anywhere}
.player-body .route-profile .profile-summary,
.player-body .route-profile .appearance-panel{
 border-color:var(--tq-hairline)!important;box-shadow:var(--tq-elevation)!important
}
.player-body :is(.profile-action-row,.ranking-row,.notification-card){
 border-color:var(--tq-hairline)!important;
}
@media (hover:hover){
 .player-body .route-shop .chest-card:hover{box-shadow:0 11px 30px var(--a-shadow)!important}
 .player-body .route-passport .rank-node.current:hover{filter:brightness(1.03)}
}
@media (prefers-reduced-motion:reduce){
 .player-body .mobile-app :is(.primary-btn,.home-register-link,.open-chest-btn,.boss-primary){transition:none!important}
}

/* V7.22.7 — atelier de finition: luminous engraved panels, deliberate contrast,
   and understated fantasy detailing without disturbing game layout. */
.player-body{
 --tq-ornament:color-mix(in srgb,var(--a-gold) 28%,var(--a-line));
 --tq-inner-light:color-mix(in srgb,var(--a-panel) 80%,white);
}
[data-theme="dark"] .player-body{--tq-inner-light:color-mix(in srgb,var(--a-panel) 92%,white)}
.player-body .route-home .home-quests,
.player-body .route-passport .rank-journey,
.player-body .route-passport .collection-panel,
.player-body .route-shop .chest-card,
.player-body .route-quests .mission-card{
 position:relative;
}
.player-body .route-home .home-quests,
.player-body .route-passport .rank-journey,
.player-body .route-passport .collection-panel{
 background-image:linear-gradient(150deg,var(--tq-inner-light),var(--a-panel) 45%,var(--a-panel))!important;
 border:1px solid var(--tq-ornament)!important;
}
.player-body .route-home .home-quests .home-panel-heading h2,
.player-body .route-passport .rank-journey .section-heading h2{
 font-weight:650;letter-spacing:-.025em;
}
.player-body .route-home .home-quest-row{
 background:linear-gradient(125deg,var(--a-panel),var(--a-soft))!important;
 border-left:2px solid color-mix(in srgb,var(--a-violet) 32%,var(--a-line))!important;
}
.player-body .route-home .home-register-link{
 border-radius:13px!important;
 background-image:linear-gradient(165deg,#a356e0,#7230b3 55%,#542488)!important;
 box-shadow:inset 0 2px 0 #ffffff55,0 5px 16px #5f1e942e!important;
}
.player-body .route-passport .passport-prestige-mark{
 box-shadow:inset 0 1px 0 #fff5,0 4px 16px #070b2760;
}
.player-body .route-passport .rank-node{
 background-image:linear-gradient(155deg,var(--a-panel),var(--a-soft))!important;
}
.player-body .route-passport .rank-node.current{
 background-image:linear-gradient(155deg,color-mix(in srgb,var(--a-violet) 18%,var(--a-panel)),var(--a-panel))!important;
}
.player-body .route-passport .rank-node .rank-medallion{
 border-width:2px!important;
 box-shadow:inset 0 1px 0 #fff4,0 3px 8px var(--a-shadow);
}
.player-body .route-passport .passport-stat{
 border-top:2px solid var(--tq-ornament)!important;
}
.player-body .route-shop .chest-card{
 border-color:var(--tq-ornament)!important;
}
.player-body .route-shop .chest-card .chest-copy{
 background-image:linear-gradient(135deg,var(--a-panel),color-mix(in srgb,var(--a-panel) 82%,var(--a-soft)))!important;
}
.player-body .route-shop .chest-card .chest-art img{
 filter:drop-shadow(0 8px 12px #0a072780)!important;
}
.player-body .route-shop .chest-card .rarity-label{
 box-shadow:inset 0 1px 0 #ffffff77,0 3px 10px #0003!important;
}
.player-body .route-quests .mission-card{
 border-top:2px solid var(--tq-ornament)!important;
}
.player-body :is(.route-profile .appearance-panel,.route-profile .profile-summary,.route-passport .passport-next-reward){
 border-color:var(--tq-ornament)!important;
}
@media (prefers-reduced-motion:no-preference){
 .player-body .route-shop .chest-card,
 .player-body .route-passport .rank-node.current{
 transition:box-shadow .22s ease,filter .22s ease;
 }
}
@media (prefers-reduced-motion:reduce){
 .player-body .route-shop .chest-card,
 .player-body .route-passport .rank-node.current{transition:none}
}

/* V7.22.8 — Passport legibility and animated sigil.
   The medallion rotates its ornament only, never its level numeral. */
.player-body .route-passport .passport-identity,
.player-body .route-passport .passport-progress,
.player-body .route-passport .passport-status{
 background:var(--a-panel)!important;color:var(--a-ink)!important
}
.player-body .route-passport .passport-identity :is(.eyebrow,h2),
.player-body .route-passport .passport-identity .member-since,
.player-body .route-passport .passport-progress>small,
.player-body .route-passport .passport-status small{
 text-shadow:none!important
}
.player-body .route-passport .passport-identity .eyebrow{color:var(--a-violet)!important}
.player-body .route-passport .passport-identity .member-since,
.player-body .route-passport .passport-progress>small,
.player-body .route-passport .passport-status small{
 color:var(--a-muted)!important;font-size:clamp(10px,2.6vw,12px)!important
}
.player-body .route-passport .passport-status strong{color:var(--a-ink)!important;font-size:12px!important}
.player-body .route-passport .passport-chronicle,
.player-body .route-passport .collection-panel,
.player-body .route-passport .customization-panel{
 color:var(--a-ink)!important;background:var(--a-panel)!important
}
.player-body .route-passport :is(.passport-chronicle,.collection-panel,.customization-panel) :is(h2,h3,strong,label){
 color:var(--a-ink)!important
}
.player-body .route-passport :is(.passport-chronicle,.collection-panel,.customization-panel) :is(p,small){
 color:var(--a-muted)!important;line-height:1.4
}
.player-body .route-passport :is(.passport-badge,.title-choice,.frame-choice){
 color:var(--a-ink)!important;background:var(--a-soft)!important;border-color:var(--a-line)!important
}
.player-body .route-passport .passport-badge.locked{opacity:.8!important}
.player-body .route-passport .passport-badge.locked strong{color:var(--a-muted)!important}
.player-body .route-passport .passport-next-reward :is(small,p){
 color:var(--a-muted)!important
}
.player-body .route-passport .passport-next-reward small{color:var(--a-violet)!important}
.player-body .route-passport .rank-sigil{
 position:relative;isolation:isolate;overflow:visible!important;
 flex-shrink:0;background:radial-gradient(circle at center,#282044 0 49%,#101428 52% 65%,#8b5ad0 68%,#15162b 73%)!important;
 color:#fff!important;
}
.player-body .route-passport .rank-sigil :is(small,span){
 position:relative;z-index:2;color:#fff!important;text-shadow:0 1px 3px #000b!important;
 transform:none!important
}
.player-body .route-passport .rank-sigil:before,
.player-body .route-passport .rank-sigil:after{
 content:"";position:absolute!important;inset:-4px!important;
 display:block!important;pointer-events:none;border-radius:50%!important;
 border:2px solid transparent!important;
 border-top-color:#f1c776!important;border-right-color:#b886ff!important;
 border-bottom-color:#8555c8!important;background:none!important;
 opacity:1!important;transform-origin:center!important
}
.player-body .route-passport .rank-sigil:after{
 inset:1px!important;border-width:1px!important;
 border-top-color:#b995ff!important;border-left-color:#e2bb72!important;
 border-bottom-color:transparent!important
}
@keyframes passportSigilSpin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:no-preference){
 html:not(.motion-off) .player-body .mobile-app:not(.reduced-motion) .route-passport .rank-sigil:before{
 animation:passportSigilSpin 9s linear infinite!important
 }
 html:not(.motion-off) .player-body .mobile-app:not(.reduced-motion) .route-passport .rank-sigil:after{
 animation:passportSigilSpin 6s linear infinite reverse!important
 }
}
@media(prefers-reduced-motion:reduce){
 .player-body .route-passport .rank-sigil:before,
 .player-body .route-passport .rank-sigil:after{animation:none!important}
}
.motion-off .player-body .route-passport .rank-sigil:before,
.motion-off .player-body .route-passport .rank-sigil:after,
.player-body .reduced-motion .route-passport .rank-sigil:before,
.player-body .reduced-motion .route-passport .rank-sigil:after{animation:none!important}

/* V7.23.0 UX audit — functional priority: legible type, reachable controls,
   consistent semantic states. These rules are deliberately scoped by route. */
.player-body .route-passport :is(.passport-page,.passport-hero,.passport-next-reward,.passport-stat,.rank-journey,.collection-panel,.passport-chronicle,.customization-panel){min-width:0}
.player-body .route-passport :is(.member-since,.passport-progress>small,.passport-status small,.passport-stat small,.rank-node small,.rank-state,.passport-badge small,.passport-chronicle small,.title-choice small){
 font-size:max(11px,0.72rem)!important;line-height:1.45!important;
}
.player-body .route-passport .rank-state{font-size:10px!important}
.player-body .route-passport :is(.passport-badge,.title-choice,.frame-choice,.passport-chronicle-list article) strong{color:var(--a-ink)!important}
.player-body .route-passport :is(.passport-badge,.title-choice,.frame-choice,.passport-chronicle-list article) small{color:var(--a-muted)!important}
.player-body .route-passport .passport-chronicle-list article{min-width:0;gap:10px}
.player-body .route-passport .passport-chronicle-list article>div{min-width:0;overflow-wrap:anywhere}
.player-body .route-passport .passport-chronicle-list article>b{white-space:nowrap;font-variant-numeric:tabular-nums;color:var(--a-gold)!important}
.player-body .route-passport .rank-road{scroll-padding-inline:16px}
.player-body .route-quests :is(.mission-card,.mission-footer,.mission-progress){min-width:0}
.player-body .route-quests .mission-footer{flex-wrap:wrap;gap:8px}
.player-body .route-quests .mission-action:disabled{opacity:.75!important;cursor:not-allowed}
.player-body .route-quests .mission-card :is(p,small,.mission-progress span){line-height:1.45}
.player-body .route-ranking .ranking-period-tabs{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;
 padding:5px!important;border-radius:14px!important;
}
.player-body .route-ranking .ranking-period-tabs .ranking-tab{
 min-width:0!important;padding:11px 2px!important;font-size:clamp(10px,2.75vw,12px)!important;
 border-radius:10px!important;line-height:1.25!important;white-space:normal!important;
}
.player-body .route-ranking .ranking-rows .ranking-row>div{min-width:0}
.player-body .route-ranking .ranking-score{font-variant-numeric:tabular-nums}
.player-body .route-notifications .notification-card{border-radius:13px!important;min-width:0}
.player-body .route-notifications .notification-card>div{min-width:0;overflow-wrap:anywhere}
.player-body .route-notifications .notification-card.read{opacity:.78}
.player-body .route-profile .settings-panel :is(.setting-row,.profile-action-row){min-width:0}
.player-body .route-profile .settings-panel small{color:var(--a-muted)!important}
.player-body .route-shop .chest-card :is(.chest-copy,.chest-footer,.chest-contents){min-width:0}
.player-body .route-shop .chest-card .chest-copy :is(h3,p,small){overflow-wrap:anywhere}
.player-body .route-shop .chest-card .open-chest-btn{min-height:42px}
.player-body .bottom-nav .nav-btn{touch-action:manipulation;min-width:0}
.player-body .bottom-nav .nav-btn[aria-current="page"]{font-weight:800}
.player-body :is(button,[role="button"],a,input,select):focus-visible{
 outline:2px solid var(--a-violet)!important;outline-offset:3px!important;
}
@media(max-width:370px){
 .player-body .route-ranking .ranking-period-tabs{gap:2px!important;padding:3px!important}
 .player-body .route-ranking .ranking-period-tabs .ranking-tab{font-size:10px!important;padding-inline:1px!important}
}
