/* Traveler's Atlas — unified gaming interface. Loaded after legacy component and reading styles.
   Uses the selected palette and reading size; never clips imported text or changes analysis. */
html[data-helper-theme][data-web-font] { --game-radius:16px; --game-glow:color-mix(in srgb,var(--ui-accent) 12%,transparent); }
html[data-helper-theme=monochrome][data-helper-mode=dark] { --ui-bg:#090d17!important; --ui-surface:#111827!important; --ui-soft:#182237!important; --ui-line:#2b3952!important; --ui-text:#f1f5ff!important; --ui-muted:#b1bfd4!important; --ui-accent:#bcadff!important; --ui-primary:#c4b5fd!important; --ui-on-primary:#151128!important; }
html[data-helper-theme=monochrome][data-helper-mode=light] { --ui-bg:#f2f4fc!important; --ui-surface:#ffffff!important; --ui-soft:#edf0fb!important; --ui-line:#ccd3e7!important; --ui-text:#17213a!important; --ui-muted:#52617b!important; --ui-accent:#6541b1!important; --ui-primary:#643bb3!important; --ui-on-primary:#ffffff!important; }
html[data-helper-theme][data-web-font] body.web-edition { background:radial-gradient(ellipse at 85% 0,var(--game-glow),transparent 48%),var(--ui-bg)!important; }
html[data-helper-theme][data-web-font] body.web-edition :is(h1,h2,h3,h4) { font-family:'Atlas Rajdhani','Atlas Manrope',sans-serif!important; font-weight:600; letter-spacing:.015em; }
html[data-helper-theme][data-web-font] body.web-edition :is(h2,.workspace-page-heading h2) { font-size:calc(var(--type-body) + 14px)!important;line-height:1.15; }
html[data-helper-theme][data-web-font] body.web-edition h3 { font-size:calc(var(--type-body) + 7px)!important; }
html[data-helper-theme][data-web-font] body.web-edition h4 { font-size:calc(var(--type-body) + 3px)!important; }
html[data-helper-theme][data-web-font] body.web-edition :is(.eyebrow,.command-eyebrow,.nav-group) { color:var(--ui-accent)!important; letter-spacing:.13em; }
html[data-helper-theme][data-web-font] body.web-edition :is(.sub,.hint,.account-source,.account-disclosure,.sidebar-foot span,.msg) { color:var(--ui-muted)!important; }
html[data-helper-theme][data-web-font] body.web-edition .web-sitebar { padding:9px 22px!important;background:var(--ui-bg)!important;border-bottom:1px solid var(--ui-line)!important;box-shadow:none!important; }
html[data-helper-theme][data-web-font] body.web-edition .web-sitebar-main { gap:8px;flex-wrap:wrap; }
html[data-helper-theme][data-web-font] body.web-edition .web-home { font-size:var(--type-caption)!important;letter-spacing:.02em;padding:0 12px 0 0; }
html[data-helper-theme][data-web-font] body.web-edition .web-edition-label { margin-right:auto;letter-spacing:.08em;font-weight:600; }
html[data-helper-theme][data-web-font] body.web-edition .web-edition-label b { display:none; }
html[data-helper-theme][data-web-font] body.web-edition .web-sitebar-main :is(button,.web-quick-reading) { font-size:var(--type-caption)!important;padding:8px 10px;min-height:40px; }
html[data-helper-theme][data-web-font] body.web-edition .web-sitebar-main>#webEnableAlerts { margin-left:0; }
html[data-helper-theme][data-web-font] body.web-edition .web-capabilities { margin:6px 0 0;gap:12px;line-height:1.4; }
html[data-helper-theme][data-web-font] body.web-edition .web-capabilities>span+span { border-color:var(--ui-line); }
html[data-helper-theme][data-web-font] body.web-edition header.sidebar { background:var(--ui-bg)!important;border-right:1px solid var(--ui-line)!important;padding:26px 15px 18px; }
html[data-helper-theme][data-web-font] body.web-edition .brand { padding:0 9px 24px;gap:12px; }
html[data-helper-theme][data-web-font] body.web-edition .brand-mark { border:1px solid var(--ui-accent);color:var(--ui-accent)!important;background:var(--game-glow)!important;border-radius:12px;box-shadow:0 0 25px var(--game-glow);width:42px;height:42px;display:grid;place-items:center;font-size:25px;flex-shrink:0; }
html[data-helper-theme][data-web-font] body.web-edition .brand h1 { font-family:'Atlas Rajdhani',sans-serif!important;font-size:21px!important;letter-spacing:.015em; }
html[data-helper-theme][data-web-font] body.web-edition .brand-caption { font-size:10px!important;letter-spacing:.08em; }
html[data-helper-theme][data-web-font] body.web-edition #tabs { gap:5px; }
html[data-helper-theme][data-web-font] body.web-edition .nav-group { margin:20px 12px 6px;font-size:10px!important; }
html[data-helper-theme][data-web-font] body.web-edition .tab { border:1px solid transparent!important;background:transparent!important;box-shadow:none!important;padding:11px 12px!important;gap:11px;border-radius:9px;text-align:left;color:var(--ui-muted)!important; }
html[data-helper-theme][data-web-font] body.web-edition .tab.active { border-color:color-mix(in srgb,var(--ui-accent) 42%,var(--ui-line))!important;background:linear-gradient(100deg,var(--game-glow),transparent)!important;color:var(--ui-text)!important;box-shadow:inset 3px 0 var(--ui-accent)!important; }
html[data-helper-theme][data-web-font] body.web-edition .nav-icon { width:23px;flex:0 0 23px;color:var(--ui-accent)!important;display:grid;place-items:center; }
.game-icon { width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round; }
html[data-helper-theme][data-web-font] body.web-edition .sidebar-foot { margin-top:22px;padding:16px 9px 0;border-top:1px solid var(--ui-line); }
html[data-helper-theme][data-web-font] body.web-edition .command-bar { background:transparent!important;border-bottom:1px solid var(--ui-line)!important;box-shadow:none;padding:18px 30px; }
html[data-helper-theme][data-web-font] body.web-edition .command-bar h2 { font-family:'Atlas Rajdhani',sans-serif!important;font-size:19px!important;margin-top:4px; }
html[data-helper-theme][data-web-font] body.web-edition main { padding:26px 30px 64px; }
html[data-helper-theme][data-web-font] body.web-edition .panel { min-width:0; }
html[data-helper-theme][data-web-font] body.web-edition :is(.workspace-page-heading,.game-page-heading,.wish-workspace-head) { position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 24px;padding:24px 26px;margin:0 0 24px!important;border:1px solid var(--ui-line);border-left:3px solid var(--ui-accent);border-radius:var(--game-radius);background:linear-gradient(120deg,var(--ui-soft),var(--ui-surface))!important; }
html[data-helper-theme][data-web-font] body.web-edition .workspace-page-heading { display:block; }
html[data-helper-theme][data-web-font] body.web-edition :is(.workspace-page-heading,.game-page-heading,.wish-workspace-head) :is(h2,p) { margin:7px 0; }
html[data-helper-theme][data-web-font] body.web-edition :is(.workspace-page-heading,.game-page-heading,.wish-workspace-head) p { color:var(--ui-muted)!important;max-width:72ch; }
.game-page-copy { flex:1 1 350px;min-width:0; }
html[data-helper-theme][data-web-font] body.web-edition .game-page-emblem { flex:0 0 56px;width:56px;height:56px;display:grid;place-items:center;border:1px solid var(--ui-line);border-radius:14px;color:var(--ui-accent)!important;background:var(--game-glow); }
.game-page-emblem .game-icon { width:30px;height:30px; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero { isolation:isolate;position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.5fr) minmax(150px,.65fr);padding:38px!important;min-height:310px;border:1px solid var(--ui-line)!important;border-radius:20px!important;background:var(--ui-surface)!important;box-shadow:0 12px 40px #00000018!important; }
.account-hero::before { content:'';position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,#0b1229 4%,#0b1229ed 40%,#0b122944),url('assets/traveler-landscape.png') center 45%/cover; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero-content { max-width:650px; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero :is(h2,p,.msg) { color:#f2f5ff!important; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero .eyebrow { color:#dacbff!important; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero h2 { font-size:calc(var(--type-body) + 26px)!important;line-height:1.08;letter-spacing:.01em;margin:16px 0; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero h2>span { color:#c9bbff!important; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero p { max-width:53ch;line-height:1.7; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero .hero-actions { gap:9px;flex-wrap:wrap;margin:22px 0 12px; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero .secondary { background:#17203c!important;border-color:#7482a3!important;color:#f2f5ff!important; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero-art { min-height:180px;opacity:.9;display:flex;align-items:center;justify-content:center; }
html[data-helper-theme][data-web-font] body.web-edition .hero-star { color:#e7d89d!important;text-shadow:0 0 45px #e4cd8d80; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero .art-caption { color:#f2e9cd!important;letter-spacing:.16em; }
.game-launchpad { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0 26px; }
html[data-helper-theme][data-web-font] body.web-edition button.game-launch { display:grid;grid-template-columns:38px minmax(0,1fr) 16px;align-items:center;gap:13px;text-align:left;border:1px solid var(--ui-line)!important;background:var(--ui-surface)!important;color:var(--ui-text)!important;border-radius:13px;padding:18px!important;box-shadow:none!important; }
.game-launch>.game-icon { width:30px;height:30px;color:var(--ui-accent); }
.game-launch strong { display:block; }
html[data-helper-theme][data-web-font] body.web-edition .game-launch small { display:block;font-size:var(--type-caption)!important;color:var(--ui-muted)!important;line-height:1.5;margin-top:4px; }
html[data-helper-theme][data-web-font] body.web-edition :is(.card,.account-character,.account-team,.char-card,.team-advisor,.guide-piece,.lab-section,.lab-card,.account-analysis,.upgrade-focus,.chronicle-card,.artifact-guide) { border:1px solid var(--ui-line)!important;border-radius:var(--game-radius)!important;box-shadow:0 6px 22px #0000000a!important;background:var(--ui-surface)!important;min-width:0; }
html[data-helper-theme][data-web-font] body.web-edition :is(.card,.guide-piece,.account-character,.account-team) { padding:22px; }
html[data-helper-theme][data-web-font] body.web-edition :is(.card,.account-character,.account-team,.char-card,.guide-piece) :is(h3,h4) { margin-bottom:12px; }
html[data-helper-theme][data-web-font] body.web-edition :is(.account-metric,.chronicle-stat,.lab-quick-metrics>div,.lab-summary-strip>div,.coach-metric) { border:1px solid var(--ui-line)!important;border-radius:12px!important;background:linear-gradient(145deg,var(--ui-soft),var(--ui-surface))!important;padding:18px!important; }
html[data-helper-theme][data-web-font] body.web-edition :is(.account-metric b,.chronicle-stat strong,.coach-metric strong) { color:var(--ui-accent)!important; }
html[data-helper-theme][data-web-font] body.web-edition :is(.account-section-heading,.guide-section-heading,.lab-section-head) { gap:14px;align-items:center;margin-top:26px;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid var(--ui-line); }
html[data-helper-theme][data-web-font] body.web-edition :is(button,a.web-action-link) { border-radius:8px;transition:background .15s,border-color .15s,box-shadow .15s;overflow-wrap:anywhere;white-space:normal;max-width:100%; }
html[data-helper-theme][data-web-font] body.web-edition button:not(.secondary):not(.tab):not(.game-launch):not([class*='wish-board']):not(:disabled) { box-shadow:0 3px 12px var(--game-glow); }
html[data-helper-theme][data-web-font] body.web-edition :is(button,a.web-action-link):hover:not(:disabled) { border-color:var(--ui-accent)!important;filter:brightness(1.07);transform:none; }
html[data-helper-theme][data-web-font] body.web-edition :is(button,input,select,textarea,a,summary):focus-visible { outline:3px solid var(--ui-accent)!important;outline-offset:3px; }
html[data-helper-theme][data-web-font] body.web-edition button:disabled { opacity:.5;cursor:not-allowed;box-shadow:none!important; }
html[data-helper-theme][data-web-font] body.web-edition :is(input:not([type=checkbox]):not([type=range]),select,textarea) { background:var(--ui-bg)!important;border:1px solid var(--ui-line)!important;border-radius:8px;min-height:44px;padding:11px 12px;color:var(--ui-text)!important;max-width:100%;min-width:0; }
html[data-helper-theme][data-web-font] body.web-edition label { gap:7px; }
html[data-helper-theme][data-web-font] body.web-edition :is(input[type=checkbox],input[type=range]) { accent-color:var(--ui-accent); }
html[data-helper-theme][data-web-font] body.web-edition :is(.helper-fold,.team-advisor__member,.guide-piece details,.ach-group,details.card) { border:1px solid var(--ui-line)!important;border-radius:12px;background:var(--ui-surface)!important;margin-bottom:12px; }
html[data-helper-theme][data-web-font] body.web-edition summary { min-height:48px;cursor:pointer;padding:13px 16px;line-height:1.5; }
html[data-helper-theme][data-web-font] body.web-edition details[open]>summary { border-bottom:1px solid var(--ui-line);margin-bottom:12px; }
html[data-helper-theme][data-web-font] body.web-edition :is(th,td) { padding:12px 14px;border-color:var(--ui-line)!important;line-height:1.55; }
html[data-helper-theme][data-web-font] body.web-edition th { background:var(--ui-soft)!important;color:var(--ui-muted)!important;text-align:left; }
html[data-helper-theme][data-web-font] body.web-edition tbody tr:nth-child(even) { background:color-mix(in srgb,var(--ui-soft) 45%,transparent); }
html[data-helper-theme][data-web-font] body.web-edition :is(.account-character-head img,.team-advisor__portrait,.char-card img) { border-radius:12px;border:1px solid var(--ui-line);background:radial-gradient(circle,var(--game-glow),transparent);object-fit:contain; }
html[data-helper-theme][data-web-font] body.web-edition :is(.account-character-head,.account-character-foot,.team-advisor__member-head,.roster-toolbar,.row) { min-width:0;gap:12px; }
html[data-helper-theme][data-web-font] body.web-edition :is(.account-character,.account-team,.char-card,.guide-piece,.team-advisor__member) :is(p,span,h3,h4,h5,strong,small,dd,dt) { overflow-wrap:anywhere;min-width:0;white-space:normal; }
html[data-helper-theme][data-web-font] body.web-edition :is(.warn,.web-browser-note,.lab-empty,.account-empty,.team-advisor__empty) { background:var(--ui-soft)!important;border:1px solid var(--ui-line)!important;border-radius:12px;padding:24px;color:var(--ui-text)!important; }
html[data-helper-theme][data-web-font] body.web-edition :is(dialog,.web-hud,.web-connection-help) { background:var(--ui-surface)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line)!important;border-radius:18px!important;box-shadow:0 24px 100px #0006!important; }
/* Keep the explicitly requested wish board's independent navy/orange/pink design. */
html[data-helper-theme][data-web-font] body.web-edition #wishBoard :is(th,td) { padding:8px 7px;background:transparent!important;color:inherit!important; }
html[data-helper-theme][data-web-font] body.web-edition #wishBoard tbody tr { background:transparent!important; }
@media(min-width:1500px) { html[data-helper-theme][data-web-font] body.web-edition main { padding:32px 42px 70px; } }
@media(max-width:1100px) { html[data-helper-theme][data-web-font] body.web-edition .web-edition-label { display:none; } .game-launchpad{gap:10px;} html[data-helper-theme][data-web-font] body.web-edition button.game-launch { grid-template-columns:28px minmax(0,1fr);padding:14px!important;gap:10px; } .game-launch>span:last-child{display:none;} }
@media(max-width:767px) {
 html[data-helper-theme][data-web-font] body.web-edition .web-sitebar { padding:8px 12px!important; }
 html[data-helper-theme][data-web-font] body.web-edition .web-sitebar-main { gap:6px; }
 html[data-helper-theme][data-web-font] body.web-edition .web-home { margin-right:auto; }
 html[data-helper-theme][data-web-font] body.web-edition .web-sitebar-main :is(button,.web-quick-reading) { padding:7px 9px;min-height:44px; }
 html[data-helper-theme][data-web-font] body.web-edition .web-capabilities { gap:7px;flex-wrap:wrap; }
 html[data-helper-theme][data-web-font] body.web-edition header.sidebar { padding:20px 14px; }
 html[data-helper-theme][data-web-font] body.web-edition main { padding:18px 14px 44px; }
 html[data-helper-theme][data-web-font] body.web-edition .account-hero { padding:25px!important;grid-template-columns:minmax(0,1fr);min-height:0; }
 html[data-helper-theme][data-web-font] body.web-edition .account-hero-art { display:none; }
 html[data-helper-theme][data-web-font] body.web-edition .account-hero h2 { font-size:calc(var(--type-body) + 19px)!important; }
 .account-hero::before { background:linear-gradient(90deg,#0b1229f5,#0b1229b8),url('assets/traveler-landscape.png') center/cover; }
 .game-launchpad { grid-template-columns:minmax(0,1fr);gap:8px;margin:12px 0 22px; }
 html[data-helper-theme][data-web-font] body.web-edition button.game-launch { grid-template-columns:30px minmax(0,1fr) 16px;padding:13px 16px!important; }
 .game-launch>span:last-child { display:block; }
 html[data-helper-theme][data-web-font] body.web-edition :is(.workspace-page-heading,.game-page-heading,.wish-workspace-head) { padding:20px;gap:10px; }
 html[data-helper-theme][data-web-font] body.web-edition .game-page-copy { flex-basis:200px; }
 html[data-helper-theme][data-web-font] body.web-edition .game-page-emblem { width:38px;height:38px;flex-basis:38px; }
 .game-page-emblem .game-icon { width:23px;height:23px; }
 html[data-helper-theme][data-web-font] body.web-edition :is(.card,.guide-piece,.account-character,.account-team) { padding:18px; }
 html[data-helper-theme][data-web-font] body.web-edition .command-bar { padding:14px; }
}
@media(prefers-reduced-motion:reduce) { html[data-helper-theme][data-web-font] body.web-edition * { transition:none!important;scroll-behavior:auto!important; } }

/* Explicit reading personalities remain available; the default interface uses gaming display type. */
html[data-helper-theme][data-web-font][data-web-type=gaming] body.web-edition :is(h2,h3,h4,.account-hero h2,.lab-hero h3) { font-family:'Atlas Rajdhani','Atlas Manrope',sans-serif!important;letter-spacing:.02em; }
html[data-helper-theme][data-web-font][data-web-type=gaming] body.web-edition .account-hero h2 { font-size:calc(var(--type-body) + 26px)!important;line-height:1.08; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero-content { width:100%; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero-art { position:relative;inset:auto;width:100%;height:220px;transform:none;align-self:center;background:transparent!important; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero h2 br { display:block; }
html[data-helper-theme][data-web-font] body.web-edition .account-hero h2 span { margin-left:0; }
html[data-helper-theme][data-web-font] body.web-edition #wishBoard .wish-board-table :is(th,td):last-child { width:16%;padding-left:2px;padding-right:2px;white-space:nowrap; }
html[data-helper-theme][data-web-font] body.web-edition #wishBoard .wish-board-table th:first-child { width:41%; }
html[data-helper-theme][data-web-font] body.web-edition #wishBoard .wish-board-table th:nth-child(2) { width:43%; }
html[data-helper-theme][data-web-font] body.web-edition #wishBoard .wish-board-table th { font-size:var(--type-caption)!important; }
html[data-helper-theme][data-web-font] body.web-edition #profile>.row { padding:20px;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-surface);margin-bottom:22px; }
html[data-helper-theme][data-web-font] body.web-edition .owned-build-card { border:1px solid var(--ui-line)!important;border-top:2px solid var(--ui-accent)!important;border-radius:14px!important;background:linear-gradient(155deg,var(--ui-soft),var(--ui-surface))!important; }
html[data-helper-theme][data-web-font] body.web-edition .owned-build-head { gap:13px;padding-bottom:16px;border-bottom:1px solid var(--ui-line); }
html[data-helper-theme][data-web-font] body.web-edition .owned-build-head img { border-radius:12px;object-fit:contain;border:1px solid var(--ui-line);background:var(--game-glow); }
@media(max-width:767px) {
 html[data-helper-theme][data-web-font] body.web-edition .web-sitebar-main { grid-template-columns:repeat(3,minmax(0,1fr)); }
 html[data-helper-theme][data-web-font] body.web-edition .web-home { grid-column:2/4;justify-self:end;margin:0; }
 html[data-helper-theme][data-web-font] body.web-edition #webHoyoButton { grid-column:1/3; }
 html[data-helper-theme][data-web-font] body.web-edition #webThemeLauncher { grid-column:auto; }
 html[data-helper-theme][data-web-font] body.web-edition .web-sitebar-main>.web-quick-reading { padding:0; }
 html[data-helper-theme][data-web-font] body.web-edition #workspaceToolsOpen { font-size:var(--type-caption)!important; }
 html[data-helper-theme][data-web-font][data-web-type=gaming] body.web-edition .account-hero h2 { font-size:calc(var(--type-body) + 20px)!important; }
 html[data-helper-theme][data-web-font] body.web-edition .account-hero-content { max-width:none; }
}

html[data-helper-theme][data-web-font] body.web-edition label:has(>input[type=checkbox]) { display:flex;flex-direction:row;align-items:center;gap:9px; }
html[data-helper-theme][data-web-font] body.web-edition .web-theme-choices>button { background:var(--ui-surface)!important;color:var(--ui-text)!important;border:1px solid var(--ui-line)!important;box-shadow:none!important; }
html[data-helper-theme][data-web-font] body.web-edition .web-theme-choices>button[aria-pressed=true] { background:var(--ui-soft)!important;border-color:var(--ui-accent)!important;box-shadow:inset 3px 0 var(--ui-accent)!important; }
.game-daily-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:22px; }
html[data-helper-theme][data-web-font] body.web-edition .game-daily-card { padding:26px;border:1px solid var(--ui-line);border-radius:16px;background:linear-gradient(150deg,var(--ui-soft),var(--ui-surface)); }
.game-daily-card>.game-icon { width:32px;height:32px;color:var(--ui-accent);margin-bottom:16px; }
.game-daily-card p { color:var(--ui-muted);margin:12px 0 20px;max-width:50ch; }
@media(max-width:767px) { .game-daily-grid{grid-template-columns:minmax(0,1fr);} }
