/* The arena fills the entire upper sky; navigation & HUD dock cleanly at bottom-left so forward 3D sightlines stay unobstructed. */
body.survivor-play{height:100dvh;overflow:hidden;background:radial-gradient(circle at 50% 18%,#0e1638,#030510 78%)}
.survivor-play #arena{inset:0 0 var(--shell-bottom) 0;border:0;border-radius:0;background:#050816;box-shadow:none}

/* Dock shared navigation shell cleanly at bottom-left above corporate footer (zero top occlusion) */
.survivor-play .game-shell{top:auto;left:14px;right:auto;bottom:calc(var(--shell-bottom) + 10px);transform:none;width:max-content;max-width:calc(100vw - 356px);height:40px;padding:4px 7px;gap:5px;border-radius:13px;background:linear-gradient(180deg,rgba(16,24,54,.88),rgba(10,15,35,.93));border:1px solid #88c4ff3b;box-shadow:0 10px 26px #02051499,inset 0 1px 0 #dceeff24;backdrop-filter:blur(14px)}
.survivor-play .game-shell button{min-height:30px;border-radius:8px}
.survivor-play .shell-game-tabs{padding:2px;gap:3px;border-radius:9px}
.survivor-play .shell-game-tab{height:28px;padding:0 9px;font-size:11.5px;border-radius:7px}
.survivor-play .shell-tab-mark{width:15px;height:15px}
.survivor-play .shell-tab-mark svg{width:14px;height:14px}
.survivor-play .shell-divider{height:18px}
.survivor-play .game-shell .shell-profile{padding:2px 6px;gap:6px}
.survivor-play .shell-avatar{width:24px;height:24px}
.survivor-play .shell-avatar svg{width:18px;height:18px}
.survivor-play .shell-identity{gap:1px}
.survivor-play .shell-role{font-size:11px}
.survivor-play .shell-progress{font-size:9px}
.survivor-play .shell-profile-label{display:none}
.survivor-play .shell-actions{margin-left:0;gap:2px}
.survivor-play .game-shell .shell-labeled-action{padding:0 7px;font-size:11px}
.survivor-play .shell-labeled-action svg{width:14px;height:14px}
.survivor-play .game-shell .shell-icon-action{width:30px}
.survivor-play .game-shell .shell-icon-action svg{width:16px;height:16px}

/* Bottom-Left Unified Battle HUD Cluster (stacks upward only when contextual banners appear) */
.survivor-play .hud-corner-left{position:absolute;z-index:6;top:auto;left:14px;bottom:58px;width:min(302px,calc(100vw - 356px));display:flex;flex-direction:column;align-items:flex-start;gap:6px;pointer-events:none}
.survivor-play .hud-status-card{width:100%;padding:8px 11px 7px;border-radius:14px;background:linear-gradient(165deg,#101a3ede,#0a112be8);border:1px solid #8cc4ff3d;box-shadow:0 10px 26px #0206168c,inset 0 1px 0 #dceeff21;backdrop-filter:blur(10px);transition:border-color .25s ease,box-shadow .25s ease}
.survivor-play .hud-status-card.is-low-hp{border-color:#ff597899;box-shadow:0 10px 26px #02061699,0 0 18px #ff4d6d40,inset 0 1px 0 #ffccd62e}
.survivor-play .battle-hud{position:static;inset:auto;display:grid;grid-template-columns:auto 1fr;gap:5px 10px;align-items:center;width:100%}
.survivor-play .battle-hud #pause-button{display:none}
.survivor-play .hud-center{grid-column:1;grid-row:1;display:inline-flex;align-items:baseline;gap:6px;background:none;border:0;padding:0;box-shadow:none;text-align:left;text-shadow:none}
.survivor-play .hud-center strong{order:-1;font-size:17px;line-height:1.1;font-weight:700;letter-spacing:.5px;color:#f5f8ff;font-variant-numeric:tabular-nums}
.survivor-play .hud-center>span,.survivor-play .hud-center small{display:inline;font-size:10px;letter-spacing:.25px;color:#9fc6f5}
.survivor-play .hud-center small{color:#7da4d8}
.survivor-play .hud-right{grid-column:2;grid-row:1;justify-self:end;display:inline-flex;flex-direction:row;align-items:baseline;gap:9px;background:none;border:0;padding:0;box-shadow:none;font-size:10px;color:#9eb6dc;white-space:nowrap;font-variant-numeric:tabular-nums}
.survivor-play .hud-right b{font-size:13px;margin-left:3px;color:#ffe08a}
.survivor-play .hud-left{grid-column:1/-1;grid-row:2;width:100%;gap:8px}
.survivor-play .hud-left .health-block{width:100%;background:none;border:0;padding:0;box-shadow:none}
.survivor-play .health-block>div:first-child{font-size:10.5px;font-variant-numeric:tabular-nums}
.survivor-play .health-track{height:7px;margin-top:4px;border-radius:99px;background:linear-gradient(180deg,#141d3f,#222e5c);border-color:#88beff40;box-shadow:inset 0 1px 3px #050817b3}
.survivor-play .health-track i{background:linear-gradient(180deg,#ff85a2,#ff4d6d);box-shadow:0 0 12px #ff6e8e80;transition:width .16s cubic-bezier(.22,1,.36,1)}

.survivor-play .xp-hud{position:static;inset:auto;display:flex;align-items:center;gap:7px;margin-top:6px;padding:5px 0 0;border-top:1px solid #88beff1f;background:none;border-radius:0;font-size:9px;color:#b8cef0;font-variant-numeric:tabular-nums}
.survivor-play .xp-hud>div{height:5px;background:#141d3f;border-radius:99px;box-shadow:inset 0 1px 2px #050817b3}
.survivor-play .xp-hud i{background:linear-gradient(90deg,#ffbe3d,#ffe869);box-shadow:0 0 10px #ffe0558c;transition:width .16s cubic-bezier(.22,1,.36,1)}

/* Active Upgrades, Shrine/Combo Pills, Boss Bar, Announcements & Tutorial stacked cleanly at bottom-left */
.survivor-play .active-upgrades{position:static!important;inset:auto!important;display:flex;flex-wrap:wrap;gap:5px;max-width:100%;pointer-events:auto}
.survivor-play .active-upgrades:empty{display:none}
.survivor-play .active-upgrade{width:28px;height:28px;border-radius:8px;font-size:14px;background:#111b40d9;border-color:#8ac4ff45;box-shadow:0 4px 12px #05091d66;transition:transform .16s ease,border-color .2s ease}
.survivor-play .active-upgrade:hover{transform:translateY(-1px);border-color:#9ed4ff99}
.survivor-play .active-upgrade.is-evolved{background:linear-gradient(145deg,#332512e6,#1a2148eb);border-color:#ffd86bcc;color:#ffe688;box-shadow:0 0 14px #ffc84d45,inset 0 1px 0 #fff4c24d}
.survivor-play .active-upgrade>small{font-size:7.5px;right:3px}

.survivor-play .shrine-combo-hud{position:static;inset:auto;transform:none;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:5px;width:100%;pointer-events:none}
.survivor-play .shrine-combo-hud[hidden]{display:none!important}
.survivor-play .shrine-pill{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.2px;background:#131d44e6;border:1px solid #8cc8ff55;color:#eef6ff;box-shadow:0 6px 16px #04081a88;backdrop-filter:blur(8px)}
.survivor-play .shrine-pill.is-frenzy{background:linear-gradient(90deg,#4a2618eb,#2b1838eb);border-color:#ffb84daa;color:#ffe4a0;box-shadow:0 0 14px #ff9e3d55}
.survivor-play .shrine-pill.is-combo{background:linear-gradient(90deg,#2a1f4eeb,#18244ceb);border-color:#ffd86b99;color:#ffe999}
.survivor-play .shrine-pill.is-combo.is-epic{background:linear-gradient(90deg,#4f2a1aeb,#321d52eb);border-color:#ffe066dd;color:#fff3b0;box-shadow:0 0 16px #ffb84d59}
.survivor-play .shrine-pill.is-shrine{border-color:var(--shrine-col,#ffe27a);color:#fff6dc}

.survivor-play #boss-hud{position:static;inset:auto;transform:none;width:100%;text-align:left;background:#24142ee6;backdrop-filter:blur(10px);border:1px solid #ff6b8466;border-radius:12px;padding:6px 11px;box-shadow:0 8px 20px #0406168c}
.survivor-play #boss-hud span{font-size:11px;letter-spacing:.8px;color:#ffd0da;font-weight:700}
.survivor-play #boss-hud>div{height:6px;margin-top:5px;background:linear-gradient(180deg,#16132b,#251836);border:1px solid #ff6b8466;box-shadow:inset 0 1px 2px #00000099}
.survivor-play #boss-fill{background:linear-gradient(90deg,#ff3b5c,#ff8c5a,#ffd66b);box-shadow:0 0 14px #ff4d6d99;transition:width .14s cubic-bezier(.22,1,.36,1)}

.survivor-play #battle-announcement{position:static;inset:auto;display:none;max-width:100%;padding:5px 11px;border-radius:11px;background:linear-gradient(90deg,#261e4aeb,#141d42e6);border:1px solid #ffd87573;font-size:12px;font-weight:700;color:#ffe69c;text-align:left;text-shadow:0 1px 6px #0009;box-shadow:0 6px 18px #0306168c;opacity:1}
.survivor-play #battle-announcement.visible{display:block}

.survivor-play #battle-tutorial{position:static;inset:auto;transform:none;max-width:100%;white-space:normal;line-height:1.45;text-align:left;color:#eef5ff;font-size:10.5px;letter-spacing:.2px;background:#111b40db;backdrop-filter:blur(10px);border:1px solid #88c2ff42;border-radius:11px;padding:5px 10px;box-shadow:0 6px 18px #04071880;transition:opacity .4s}

/* Bottom-Right Tactical Quickbar & Dash Control */
.survivor-play .battle-bottom{left:auto;right:16px;bottom:12px;align-items:center;justify-content:flex-end;gap:8px}
.survivor-play .dash-button{width:70px;height:70px;border-radius:22px;background:radial-gradient(circle at 36% 28%,#6cc6ff45,#121c44e6);border-color:#88d0ff99;box-shadow:0 5px 0 #0c1433ee,0 12px 28px #03061699,inset 0 1px 0 #d8f0ff59;transition:transform .12s ease,border-color .2s ease,box-shadow .2s ease}
.survivor-play .dash-button.is-ready{border-color:#9ee8ffcc;box-shadow:0 5px 0 #0c1433ee,0 12px 28px #03061699,0 0 16px #7ed8ff40,inset 0 1px 0 #e6f7ff73}
.survivor-play .dash-button:active{transform:translateY(3px) scale(.97);box-shadow:0 2px 0 #0c1433ee,0 6px 14px #03061699}
.survivor-play .joystick{left:14px;bottom:56px;background:radial-gradient(circle at 38% 32%,#84c8ff26,#0e1638c7);border-color:#88c8ff59;box-shadow:0 10px 24px #04071773,inset 0 1px 0 #ffffff2e}
.survivor-play .joystick span{background:radial-gradient(circle at 35% 30%,#eef7ffd9,#6caef099);box-shadow:0 4px 10px #05091b80,inset 0 1px 0 #ffffff80}
.survivor-play .toast{left:14px;right:auto;bottom:calc(var(--shell-bottom) + 56px);transform:translateY(14px);text-align:left;max-width:min(380px,calc(100vw - 28px))}
.survivor-play .toast.show{transform:translateY(0)}

/* Dialogs, Lobby, Workshop & Journal */
.survivor-play .game-dialog{border-radius:22px;background:linear-gradient(155deg,#1a2448,#111730 72%);border-color:#7cb4ff4d;box-shadow:0 34px 100px #02040fc7,inset 0 1px 0 #d8ecff24}
.survivor-play .game-dialog>p:empty{display:none}
.survivor-play .dialog-kicker{display:none}
.survivor-play .game-dialog h2{font-size:25px}
.survivor-play .compact-dialog>h2{margin-top:0}
.prep-dialog{width:880px;padding:25px 28px 28px;text-align:left;max-height:calc(100dvh - 38px)}
.prep-dialog #lobby{overflow:visible}
.prep-heading{position:relative;display:flex;gap:18px;align-items:center;padding:0 42px 18px 0}
.prep-heading h1{font-size:25px;letter-spacing:.5px;line-height:1.2;margin-top:4px}
.prep-eyebrow{color:var(--muted);font-size:10px;letter-spacing:1px}
.prep-heading .wallet{margin-left:auto}
.prep-heading .dialog-close{right:-5px;top:0}
.prep-nav{display:flex;gap:7px;padding:5px;background:#10162e;border-radius:12px;margin-bottom:22px}
.prep-nav .nav-link{padding:9px 16px;font-size:12px;flex:1;border-radius:8px;text-align:center}
.prep-nav .nav-link.active{background:#283669;color:#ffe299}
.prep-nav .nav-link.active:after{display:none}
.prep-dialog .page-shell{padding:0;max-width:none}
.prep-dialog .mode-tabs{width:100%;margin:0;gap:6px}
.prep-dialog .mode-tab{flex:1;justify-content:center;padding:10px;font-size:12px}
.prep-mode{padding:17px 1px 22px}
.prep-dialog .prep-mode h2{margin:0 0 6px;font-size:19px}
.prep-mode p{font-size:12px;color:#b8c8e8}
.prep-mode small{display:block;margin-top:4px;color:#899ac0;font-size:10px}
.prep-dialog .section-heading{margin-bottom:12px}
.prep-dialog .section-heading h2{font-size:15px}
.prep-dialog .character-card{grid-template-columns:55px 1fr;padding:12px;min-height:112px}
.prep-dialog .character-card canvas{width:55px;height:70px;filter:drop-shadow(0 8px 12px #04081c80)}
.prep-daily{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid #3c4d8055}
.prep-daily>div{display:flex;gap:12px;align-items:center}
.prep-daily small{color:var(--muted);font-size:10px}
.prep-daily b{font-weight:500;font-size:11px;color:#c5d2eb}
.prep-goal{padding:17px 0 7px}
.prep-start{display:flex;gap:15px;align-items:center;justify-content:space-between;padding-top:12px}
.prep-start>p{font-size:10px;color:var(--muted);max-width:250px}
.prep-start .play-button{height:48px;min-width:178px;width:auto;padding:10px 16px;align-items:center;border-radius:10px;box-shadow:none;grid-template-columns:1fr 22px}
.prep-start .play-button>span{font-size:14px;letter-spacing:0}
.prep-tools{display:flex;align-items:center;gap:17px;margin-top:21px;padding-top:13px;border-top:1px solid #38497866}
.prep-tools>span{font-size:9px;margin-left:auto;color:#8e9ec2;display:flex;align-items:center;gap:5px}
.prep-tools .icon-btn{width:28px;height:28px}
.prep-section-title{margin:0 0 13px!important;font-size:19px!important}
.prep-dialog .info-banner{font-size:11px;padding:12px 14px}
.prep-dialog .workshop-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:16px}
.prep-dialog .workshop-card{padding:16px;border-radius:12px}
.prep-dialog .workshop-icon{width:33px;height:33px;font-size:20px;margin-bottom:12px}
.prep-dialog .workshop-card h2{font-size:16px;margin:0}
.prep-dialog .workshop-card p{font-size:10px;margin-bottom:11px}
.prep-dialog .purchase-button{font-size:10px;padding:9px}
.prep-dialog .evolution-guide{padding:25px 0 0}
.prep-dialog .recipe-grid{gap:10px}
.prep-dialog .recipe-grid article{padding:16px;background:linear-gradient(155deg,#1d2850cc,#141b38e6);border-color:#84beff36;box-shadow:0 6px 16px #04071759,inset 0 1px 0 #e6f2ff1a}
.prep-dialog .recipe-grid h3{font-size:14px}
.prep-profile{display:flex;gap:14px;align-items:center;margin-bottom:20px}
.prep-profile-symbol{display:grid;place-items:center;width:46px;height:46px;border-radius:16px;color:#ffe08c;background:#263361;font-size:27px}
.prep-dialog .prep-profile h2{font-size:21px;margin:0 0 5px}
.prep-profile p{font-size:11px;color:var(--muted)}
.prep-dialog .stat-card{padding:16px}
.prep-dialog .stat-card>b{font-size:26px}
.prep-dialog .achievement-grid{gap:10px}
.prep-dialog .achievement-card{padding:14px}
.prep-dialog .achievement-card p{min-height:40px}
.prep-dialog .enemy-grid{padding-bottom:0;grid-template-columns:repeat(2,1fr)}
.prep-dialog .journal-heading{margin-top:25px}
.prep-dialog .character-card,.prep-dialog .workshop-card,.survivor-play .upgrade-option{box-shadow:0 8px 20px #04071766,inset 0 1px 0 #dceeff1c;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.prep-dialog .character-card:hover{transform:translateY(-2px);border-color:#96ccff80;box-shadow:0 14px 28px #0407178c,0 0 18px #7ec8ff24,inset 0 1px 0 #dceeff30}
.prep-dialog .character-card.selected{border-color:#ffd86bb8;box-shadow:0 12px 26px #070d2680,0 0 0 1px #ffd46b73,0 0 22px #ffc84d2b,inset 0 1px 0 #fff3d438}
.prep-dialog .workshop-card:hover{transform:translateY(-2px);border-color:#96ccff73;box-shadow:0 14px 28px #04071788,inset 0 1px 0 #e6f2ff2e}
.prep-dialog .enemy-card{align-items:center;transition:transform .18s ease,border-color .2s ease,box-shadow .2s ease}
.prep-dialog .enemy-card:hover{transform:translateY(-2px);border-color:#ff7a9273;box-shadow:0 12px 24px #0406148c}
.prep-dialog .enemy-avatar{position:relative;width:54px;height:54px;border-radius:14px;background:radial-gradient(circle at 38% 30%,#2c396e,#141b38);border:1px solid #7eb6ff4d;box-shadow:inset 0 1px 0 #ffffff24,0 6px 14px #04061480;overflow:hidden;transition:border-color .2s ease,box-shadow .2s ease}
.prep-dialog .enemy-card:hover .enemy-avatar{border-color:#ff8ea299;box-shadow:inset 0 1px 0 #ffffff33,0 0 16px #ff4d6d33,0 6px 14px #04061499}
.prep-dialog .enemy-avatar canvas{width:54px;height:54px;display:block;filter:drop-shadow(0 5px 8px #04061499)}
.prep-dialog .enemy-avatar canvas[hidden],.prep-dialog .enemy-glyph[hidden]{display:none}
.survivor-play .upgrade-option:hover{transform:translateY(-2px);border-color:#ffd87599;box-shadow:0 14px 30px #03061699,0 0 20px #ffd87524,inset 0 1px 0 #fff7e238}

@media(max-width:960px){
 .survivor-play .shell-identity,.survivor-play .shell-help-action span,.survivor-play .shell-divider{display:none}
 .survivor-play .game-shell .shell-help-action{padding:0 6px}
}
@media(pointer:coarse) and (min-width:641px){
 .survivor-play .joystick{left:14px;bottom:58px;width:96px;height:96px}
 .survivor-play .joystick span{left:26px;top:26px}
 .survivor-play .hud-corner-left{left:14px;bottom:162px;width:min(276px,calc(100vw - 340px))}
}
@media(max-width:640px){
 .survivor-play #arena{inset:0 0 var(--shell-bottom) 0;border-radius:0}
 .survivor-play .game-shell{top:auto;left:8px;right:8px;bottom:calc(var(--shell-bottom) + 6px);transform:none;width:auto;max-width:none;height:38px;padding:3px 5px;gap:3px;border-radius:11px;justify-content:space-between}
 .survivor-play .shell-game-tab{height:26px;padding:0 6px;font-size:10px}
 .survivor-play .game-shell .shell-labeled-action{padding:0 5px;min-width:26px;font-size:10px}
 .survivor-play .game-shell .shell-icon-action{width:26px;min-height:28px}
 .survivor-play .joystick{left:10px;bottom:50px;width:88px;height:88px}
 .survivor-play .joystick span{left:22px;top:22px;width:42px;height:42px}
 .survivor-play .hud-corner-left{left:10px;bottom:146px;width:min(228px,calc(100vw - 20px));gap:4px}
 .survivor-play .hud-status-card{padding:6px 9px}
 .survivor-play .hud-center strong{font-size:14.5px}
 .survivor-play .hud-center>span,.survivor-play .hud-center small{font-size:8.5px}
 .survivor-play .hud-right{gap:6px;font-size:9px}
 .survivor-play .hud-right b{font-size:11.5px}
 .survivor-play .xp-hud>span:last-child{display:inline}
 .survivor-play .battle-bottom{left:auto;right:10px;bottom:50px;gap:6px}
 .survivor-play .dash-button{width:62px;height:62px;border-radius:50%}
 .survivor-play #battle-tutorial{font-size:9px;padding:4px 8px}
 .survivor-play .toast{left:10px;bottom:calc(var(--shell-bottom) + 50px);font-size:11px}
 .prep-dialog{padding:21px 18px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);width:100%}
 .prep-heading{gap:12px;padding-bottom:16px}
 .prep-heading h1{font-size:23px}
 .prep-heading .wallet{font-size:9px;padding:6px 9px}
 .prep-nav{margin-bottom:18px;gap:3px}
 .prep-nav .nav-link{padding:8px 5px;font-size:11px}
 .prep-dialog .mode-tab{padding:9px 3px;font-size:11px}
 .prep-mode{padding:15px 0 19px}
 .prep-dialog .prep-mode h2{font-size:17px}
 .prep-mode p{font-size:11px}
 .prep-dialog .character-cards{gap:7px}
 .prep-dialog .character-card{padding:10px 4px;min-height:155px;display:flex}
 .prep-dialog .character-card h3{font-size:12px}
 .prep-dialog .character-card canvas{width:46px;height:60px}
 .prep-dialog .character-card small{font-size:8px}
 .prep-dialog .character-card .character-bottom{white-space:normal;min-height:23px;justify-content:center}
 .prep-daily>div{display:block}
 .prep-daily small,.prep-daily b{display:block;font-size:10px}
 .prep-daily b{margin-top:3px}
 .prep-start{align-items:flex-start;gap:14px}
 .prep-start>p{font-size:9px;max-width:145px;line-height:1.8}
 .prep-start .play-button{min-width:157px;height:44px;padding:9px 12px}
 .prep-start .play-button>span{font-size:12px}
 .prep-tools{gap:12px;margin-top:18px;padding-top:10px}
 .prep-tools>span{font-size:8px}
 .prep-tools .text-link{font-size:9px}
 .prep-dialog .workshop-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .prep-dialog .workshop-card{padding:13px 11px}
 .prep-dialog .purchase-button{font-size:9px;padding:8px 6px}
 .prep-dialog .recipe-grid{grid-template-columns:1fr}
 .prep-dialog .recipe-grid article{padding:13px}
 .prep-dialog .stats-grid{gap:9px}
 .prep-dialog .stat-card{padding:13px}
 .prep-dialog .achievement-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .prep-dialog .enemy-grid{grid-template-columns:1fr}
 .prep-dialog .journal-heading>span{font-size:8px}
}
@media(max-height:500px) and (min-width:641px){
 .survivor-play #arena{inset:0 0 var(--shell-bottom) 0}
 .survivor-play .game-shell{height:34px;bottom:calc(var(--shell-bottom) + 6px);left:10px}
 .survivor-play .hud-corner-left{left:10px;bottom:46px;width:256px;gap:4px}
 .survivor-play .hud-status-card{padding:5px 9px}
 .survivor-play #battle-tutorial{font-size:9px;padding:3px 8px}
 .survivor-play .joystick{width:80px;height:80px;left:12px;bottom:46px}
 .survivor-play .joystick span{left:20px;top:20px;width:40px;height:40px}
 .survivor-play .battle-bottom{right:12px;bottom:8px}
 .survivor-play .dash-button{width:58px;height:58px}
}

/* v66 Hero Pre-Run Story Whisper & Star Sea Chronicles Lore Cards */
.prep-dialog .hero-story-whisper{margin:10px 0 14px;padding:11px 14px;border-radius:14px;background:linear-gradient(145deg,#1d2038e6,#15182bed);border:1px solid #86c5ff38;box-shadow:0 8px 20px #0405104d,inset 0 1px 0 #ffffff1a;display:grid;gap:4px}
.prep-dialog .hero-story-whisper .whisper-role{font-size:11px;letter-spacing:.06em;color:#8ee8ff;font-weight:600}
.prep-dialog .hero-story-whisper p{margin:0;font-size:12.5px;line-height:1.55;color:#efe6d5}
.prep-dialog .hero-story-whisper .whisper-affinity{font-size:11px;line-height:1.45;color:#ffd98a;margin-top:2px}
.prep-dialog .chronicle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-bottom:18px}
.prep-dialog .chronicle-card{padding:13px 15px;border-radius:14px;background:linear-gradient(150deg,#1c1f35e6,#141728f0);border:1px solid #ffffff1a;display:grid;gap:6px}
.prep-dialog .chronicle-card.unlocked{border-color:#ffd8754d;box-shadow:0 8px 22px #05061252,inset 0 1px 0 #fff7df1f}
.prep-dialog .chronicle-card.locked{opacity:.68}
.prep-dialog .chronicle-head{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:11px;color:#ffd97d}
.prep-dialog .chronicle-head small{color:#9edfff;font-size:10.5px}
.prep-dialog .chronicle-card h3{margin:0;font-size:14px;color:#fbf2df}
.prep-dialog .chronicle-card p{margin:0;font-size:12px;line-height:1.6;color:#cfc9de}
.prep-dialog .synergy-lore{display:block;margin-top:6px;padding-top:6px;border-top:1px dashed #ffffff1a;font-style:normal;font-size:11px;line-height:1.5;color:#ffd98a}
.prep-dialog .enemy-lore-note{display:block;margin-top:6px;font-size:11px;line-height:1.55;color:#9ee4ff}
.upgrade-option .upgrade-whisper{display:block;margin:4px 0 2px;font-style:normal;font-size:11px;line-height:1.45;color:#cbbfe2}
.upgrade-option .upgrade-synergy-hint{display:inline-block;margin:4px 0;padding:2px 8px;border-radius:999px;font-size:10.5px;font-weight:600;color:#ffe28a;background:#ffe28a1a;border:1px solid #ffe28a40}
.upgrade-option .upgrade-synergy-hint.is-ready{color:#fff7d6;background:linear-gradient(90deg,#ff9e5840,#ffd86b45);border-color:#ffe27a99;box-shadow:0 0 14px #ffd86b33}
.upgrade-option.is-synergy-ready{border-color:#ffe27a8c;box-shadow:0 12px 28px #05041066,0 0 22px #ffd86b29}
.prep-dialog .workshop-lore{display:block;margin:-2px 0 8px;font-size:11px;line-height:1.5;color:#9edfff}
.prep-dialog .daily-almanac{display:block;margin-top:4px;font-size:11.5px;line-height:1.5;color:#ffd98a}
.prep-dialog .achievement-epigraph{display:block;margin:4px 0;font-style:normal;font-size:11px;line-height:1.5;color:#ffd98a}
.result-dialog .result-run-chronicle{margin:0 0 8px;padding:9px 12px;border-radius:11px;background:#1a1e38cc;border:1px solid #8ad8ff33;font-size:12px;line-height:1.55;color:#dce8ff;text-align:left}
@media(max-width:640px){.prep-dialog .chronicle-grid{grid-template-columns:1fr}}
