* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; touch-action: none; }
body {
 display: grid; place-items: center;
 background: radial-gradient(ellipse at 50% 35%, #243b46, #080c16 72%);
 color: #e0efe7; font: 14px 'Microsoft YaHei', system-ui, sans-serif;
}
[hidden] { display: none !important; }
#shell {
 position: relative; width: min(100vw, 56.25dvh); height: min(100dvh, 177.777vw);
 overflow: hidden; container-type: inline-size; background: #101c2b; box-shadow: 0 0 100px #0009;
}
#world, #world canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#shell::before, #shell::after {
 content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
 background: radial-gradient(ellipse at center, transparent 54%, #a7072470 80%, #ff1d40c7 100%);
}
#shell.low-health::before { animation: low-health-pulse 1.2s ease-in-out infinite; }
#shell.took-hit::after { animation: hit-edge .42s ease-out; box-shadow: inset 0 0 40px #ff193bba; }
@keyframes hit-edge { 0% { opacity: .95; } 100% { opacity: 0; } }
@keyframes low-health-pulse { 0%,100% { opacity: .28; } 44% { opacity: .74; } }
header {
 position: absolute; inset: 3% 5% auto; display: flex; justify-content: space-between; align-items: center;
 text-shadow: 0 1px 6px #060b15;
}
header b { display: block; letter-spacing: .27em; color: #f0dcab; font-size: clamp(16px, 5cqw, 24px); }
header small { font-size: 7px; letter-spacing: .26em; color: #a6d7c6; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.run-button { min-height:40px;padding:4px clamp(4px,1.8cqw,8px);border-radius:6px;font-size:clamp(10px,2.9cqw,13px);white-space:nowrap; }
.run-button span,.run-button small { display:block; }
.run-button small { margin-top:2px;letter-spacing:0;font-size:10px; }
.run-button:disabled { opacity:.58;cursor:default; }
#heal-toast { position:absolute;z-index:4;top:35%;width:100%;text-align:center;color:#afffd1;font-weight:700;font-size:15px;text-shadow:0 2px 8px #081a13;pointer-events:none; }
#wallet-gold { color:#f8d88b;text-align:right;margin-bottom:3px; }
#loot-notice { position:absolute;z-index:4;bottom:18%;right:4%;max-width:84%;text-align:right;padding:3px 7px;font-size:11px;color:#ffe19b;background:#101820bb;border-radius:5px;pointer-events:none; }
.flying-coin { position:absolute;z-index:4;color:#ffe58e;text-shadow:0 0 8px #ff9c29;pointer-events:none;font-size:16px; }
#ground-loot { position:absolute;inset:0;z-index:1;overflow:hidden;pointer-events:none; }
.ground-drop { position:absolute;top:0;left:0;display:flex;gap:2px; }
.ground-drop[hidden] { display:none; }
.ground-drop i { display:grid;place-items:center;width:20px;height:20px;border:1px solid currentColor;border-radius:5px;background:#101b28;box-shadow:0 0 6px currentColor;font:bold 13px/1 sans-serif; }
.rift-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px; }
.rift-card { display:grid;justify-items:center;align-content:center;gap:2px;min-height:73px;padding:4px;border-radius:5px;background:radial-gradient(ellipse,#254946,#101820 70%); }
.rift-card span { font-size:24px;color:#b1f2df;line-height:1; }
.rift-card small { font-size:9px;color:#a6c3ba; }
.rift-card.locked { opacity:.53;filter:saturate(.4); }
.rift-card.available { border-color:#aa905d; }
.rift-card.lit { border-color:#6bf1c6;box-shadow:inset 0 0 14px #55e8bd55;color:#ceffe7; }
.rift-card[aria-pressed="true"] { outline:2px solid #fff0ba;outline-offset:-3px; }
.rift-detail { margin-top:9px;padding:8px;background:#0e1d24;border:1px solid #50796d;border-radius:5px; }
.rift-detail p { margin:3px 0 6px; }
.rift-detail button { padding:6px 10px; }
.rift-detail button:disabled { opacity:.58; }
.armory-wallet,.armory-stats { padding:9px;background:#151d2a;border:1px solid #655137;border-radius:5px;color:#ffe2a9; }
.armory-nav,.staff-actions { display:flex;flex-wrap:wrap;gap:6px;margin:8px 0; }
.armory-nav button,.staff-actions button { padding:7px 8px;min-height:34px; }
#camp-fight { margin-left:auto;background:#554124;color:#ffe4ab; }
#panel h2 { font-size:14px;color:#f2d4a0;margin:10px 0 5px; }
.gear-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px; }
.gear-grid button { border:0;padding:0;background:none; }
.gear-card { display:grid;justify-items:center;gap:2px;padding:5px 3px;border:1px solid var(--gear,#665642);border-radius:5px;background:linear-gradient(#232938,#101721);text-align:center;color:var(--gear,#dfc59e);font-size:11px; }
.gear-card i { font-style:normal;font-size:23px; }
.gear-card small,.staff-card small { color:#bacbd2;font-size:10px; }
.gear-compare { display:grid;grid-template-columns:1fr 1fr;gap:7px; }
.staff-card { display:grid;grid-template-columns:60px 1fr;gap:0 9px;padding:8px;margin-bottom:6px;border:1px solid var(--staff);background:#121e2b;border-radius:6px; }
.staff-card h2 { margin-top:0!important; }
.staff-card p { margin:5px 0!important; }
.staff-actions { grid-column:1/-1; }
.staff-actions small { flex-basis:100%; }
.staff-art { display:grid;place-items:center;color:var(--staff);font-size:28px;text-shadow:0 0 9px var(--staff);background:radial-gradient(ellipse,#34465a,transparent 70%); }
.staff-art::after { content:'';width:5px;height:30px;background:#ca9b67;transform:rotate(29deg);margin-top:-12px;border-radius:2px; }
.staff-tide { border-radius:50%; }
.staff-ember { text-shadow:-12px 3px 0 #90583a,12px 3px 0 #90583a,0 0 9px var(--staff); }
.staff-actions button:disabled { opacity:.45; }
.restart-actions { display:flex;gap:10px; }
.restart-actions .panel-action { min-width:0; }
button { color: inherit; background: #163038d9; border: 1px solid #92bfa577; font: inherit; cursor: pointer; touch-action: none; }
button:hover:not(:disabled) { border-color: #dbedc9; background: #25483eeb; }
button:focus-visible { outline: 2px solid #f9e4aa; outline-offset: 3px; }
button:disabled { cursor: default; }
#pause { border-radius: 50%; width: 31px; height: 31px; }
#build { border-radius: 14px; padding: 6px 9px; font-size: 10px; }
#hud { position: absolute; inset: 11% 5% auto; pointer-events: none; font-size: 10px; text-shadow: 0 1px 5px #000; }
.row { display: flex; justify-content: space-between; gap: 12px; }
.bar { height: 14px; background: #08151edb; border: 1px solid #80a78c88; position: relative; margin: 6px 0; }
.bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #307a78, #9de7bc); transition: width .13s; }
.bar span { position: absolute; inset: 0; text-align: center; font-size: 9px; }
.took-hit #hp { animation: hit-bar .42s ease-out; }
.took-hit #hptext { color: #ffe7ea; }
@keyframes hit-bar {
 0%, 28% { background: #ff4a60; box-shadow: 0 0 9px #ff203fd9; }
 75% { background: #e82843; box-shadow: 0 0 4px #ff203f80; }
}
.sub { color: #e1d5ad; font-size: 9px; }
#nodes { letter-spacing: 1.5px; }
#hint { color: #c6dbd5; margin: 6px 0; }
#enemybar { margin: 9px auto 0; width: 88%; color: #ffd1bf; text-align: center; }
#enemybar .bar { height: 7px; margin: 4px 0; }
#enemyhp { background: linear-gradient(90deg, #9d3f6d, #ff9ea9); }
#bossaction, #enemytraits { display: block; color: #f2d7b0; font-size: 9px; }
#bossaction.counter-window { color: #a8ffe0; font-weight: 700; }
#ultresult { text-align: center; color: #ffe4a4; margin-top: 6px; }
#toast { position: absolute; top: 29%; width: 100%; text-align: center; font-size: 13px; letter-spacing: .1em; color: #f6deb0; text-shadow: 0 2px 9px #000; pointer-events: none; }
.boss-active #enemybar { padding:6px 10px;border:1px solid #b96f876e;border-radius:6px;background:#111725f2; }
.boss-active #enemyname { display:block;font-size:12px;font-weight:700;line-height:1.25; }
.boss-active #bossaction { min-height:1.3em;line-height:1.3; }
.boss-active #toast { top:auto;bottom:24%;z-index:4; }
.boss-active #heal-toast { top:auto;bottom:29%; }
#controls { position: absolute; inset: auto 5% 4% 5%; height: min(36cqw, 145px); pointer-events: none; }
#controls button, #stick { pointer-events: auto; }
#stick {
 position: absolute; left: 0; bottom: 0; width: clamp(57px, 20cqw, 89px); aspect-ratio: 1; border-radius: 50%;
 border: 1px solid #a4c9bf64; background: #12283888; display: grid; place-items: center;
}
#stick i { width: 34%; aspect-ratio: 1; border-radius: 50%; background: #a9d5c05c; border: 1px solid #c9f1d3aa; pointer-events: none; }
.combat-actions {
 position: absolute; right: 0; bottom: 0; display: grid;
 grid-template-areas: "ultimate circle" "blink attack";
 place-items: center; gap: clamp(13px, 3.6cqw, 17px) clamp(8px, 2cqw, 10px);
}
.ability {
 display: grid; align-content: center; justify-items: center; width: clamp(46px, 14cqw, 66px); aspect-ratio: 1;
 padding: 0; border-radius: 50%; text-shadow: 0 1px 5px #08131e; background: #10232dcc; box-shadow: inset 0 0 16px #365b5248;
}
.ability b { font-size: clamp(11px, 3.4cqw, 16px); font-weight: 500; }
.ability small { font-size: 9px; margin-top: 3px; color: #bdd7c9; }
.ability[aria-disabled="true"] { opacity: .55; }
.ability.is-pressed { outline: 2px solid #f2ffd1; outline-offset: 2px; filter: brightness(1.24); }
#combo.charge-refund { color: #baff91; }
#combo.charge-refund::after { content: ' ' attr(data-refund); color: #baff91; font-weight: 800; }
#attack { grid-area: attack; width: clamp(58px, 20cqw, 88px); color: #f3f0cb; border-color: #cbdf9f; background: #243c37db; }
#blink { grid-area: blink; width: clamp(50px, 16cqw, 69px); color: #f5dfba; }
#circle { grid-area: circle; width: clamp(46px, 14cqw, 60px); color: #f5e3b4; border-color: #dbc489af; }
#ultimate { grid-area: ultimate; width: clamp(44px, 12cqw, 53px); color: #d9cdfd; border-color: #b5a1e195; }
#ultimate.ready {
 position: relative; isolation: isolate; color: #fff8db; border-color: #ffe0a6; opacity: 1;
 background: radial-gradient(circle at 50% 25%, #85623e, #3a2351 68%, #241a37);
 box-shadow: 0 0 20px #ffc978a0, inset 0 0 16px #dcc1ff70;
}
#ultimate.ready small { color: #fff0b9; }
#ultimate.ready::before, #ultimate.ready::after {
 content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
}
#ultimate.ready::before {
 inset: -6px; border: 2px solid #ffedab; border-left-color: #b681ff;
 border-bottom-color: #b681ff60; box-shadow: 0 0 12px #ffc87677;
 animation: ready-orbit 2.6s linear infinite;
}
#ultimate.ready::after { inset: -4px; border: 1px solid #ffefa7; animation: ready-ripple 1.6s ease-out infinite; }
.charge-ready { color: #ffdf8b; text-shadow: 0 0 7px #ffb850, 0 1px 3px #120820; }
@keyframes ready-orbit { to { transform: rotate(360deg); } }
@keyframes ready-ripple { from { opacity: .85; transform: scale(1); } to { opacity: 0; transform: scale(1.42); } }
@media (prefers-reduced-motion: reduce) {
 #ultimate.ready::before, #ultimate.ready::after { animation: none; }
 #shell.low-health::before { animation: none; opacity: .49; }
 #shell.took-hit::after { animation: none; opacity: .64; }
 .took-hit #hp { animation: none; background: #e82843; }
}
footer { position: absolute; inset: auto 0 1.3%; text-align: center; font-size: clamp(7px, 2.05cqw, 10px); color: #c1d6d1; pointer-events: none; }
#overlay { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; padding: 6%; background: radial-gradient(ellipse at 50% 25%, #1e3b46c4, #090e1af2 74%); }
#overlay.hidden { display: none; }
#panel { width: 100%; max-height: 96%; overflow: auto; scrollbar-width: thin; touch-action: pan-y; padding: 3px; }
#panel h1 { color: #f1dfaf; font: 400 clamp(23px, 7cqw, 36px) Georgia, 'Microsoft YaHei', serif; letter-spacing: .13em; margin: 8px 0; }
#panel p { font-size: 11px; color: #b6d2ca; line-height: 1.7; }
.eyebrow { color: #a4d3c4; font-size: 9px; letter-spacing: .36em; }
.moon-emblem {
 display: grid; place-items: center; margin-bottom: 17px; width: 52px; height: 52px;
 border: 1px solid #f3d9a3a0; border-radius: 50%; color: #ffefbd; font-size: 30px;
 background: radial-gradient(circle, #d1b57f50, #122d3b); box-shadow: 0 0 22px #d2ca9840;
}
.mark-list { display: grid; gap: 10px; margin-top: 14px; }
.mark-card {
 position: relative; display: grid; grid-template-columns: clamp(32px, 11cqw, 48px) minmax(0,1fr);
 gap: 9px; align-items: start; width: 100%; padding: 10px; text-align: left;
 border: 1px solid color-mix(in srgb, var(--rarity), #182332 66%); border-left: 3px solid var(--rarity);
 border-radius: 7px; background: linear-gradient(115deg, color-mix(in srgb, var(--rarity), #101927 91%), #090f1b 68%);
}
.rarity-common { --rarity: #f2f4ff; }
.rarity-rare { --rarity: #77bcff; }
.rarity-epic { --rarity: #d7a1ff; }
.rarity-legendary { --rarity: #ffad61; }
button.mark-card:hover { border-color: var(--rarity); background: color-mix(in srgb, var(--rarity), #101927 86%); }
.mark-icon {
 display: grid; place-items: center; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--rarity);
 color: var(--mark-element); background: radial-gradient(circle, color-mix(in srgb, var(--mark-element), #0c1321 75%), #0c1321 78%);
 box-shadow: inset 0 0 0 2px #080e19; text-shadow: 0 0 10px var(--mark-element); font: 700 clamp(20px, 6.6cqw, 30px) 'Segoe UI Symbol', system-ui, sans-serif;
}
.mark-content { display: grid; min-width: 0; gap: 5px; }
.mark-title, .mark-stat { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.mark-title strong { color: var(--rarity); font-size: clamp(14px, 4.15cqw, 19px); }
.mark-rarity { color: var(--rarity); font-size: 11px; font-weight: 700; white-space: nowrap; }
.mark-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; color: #a9b9cf; font-size: 10px; }
.mark-level, .mark-stat b { color: #b7ed95; font-weight: 700; }
.mark-description { color: #dbe3f0; font-size: 12px; line-height: 1.45; }
.mark-stat { color: #b4c5db; font-size: 11px; font-variant-numeric: tabular-nums; }
.mark-stat > span:last-child { white-space: nowrap; }
.mark-previous { color: #a9b9cf; }
.mark-card kbd { position: absolute; top: calc(14px + clamp(32px, 11cqw, 48px)); left: 13px; color: #e2eaf6; background: #101927; border: 1px solid #66778d; border-radius: 4px; padding: 0 4px; font-size: 10px; }
.panel-action { width: 100%; padding: 12px; margin: 6px 0; text-align: center; }
.pause-settings { display: grid; gap: 10px; margin: 16px 0; }
.pause-settings label { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.pause-settings input, .pause-settings select { width: 58%; accent-color: #a8ffe0; }
.pause-settings select { background: #142431; color: #e3eee8; border: 1px solid #627780; border-radius: 5px; padding: 5px; }
.mark-link { display: block; margin-top: 5px; color: #a8ffe0; font-size: 11px; }
.damage-number { position: absolute; pointer-events: none; color: #fff3d1; font-size: 15px; font-weight: 800; text-shadow: 0 2px 4px #000; transform: translate(-50%,-100%); z-index: 3; }
.ultimate-damage { color: #ffdc81; font-size: 22px; text-shadow: 0 1px 8px #e08a38; }
.heavy-damage { color: #ffe098; font-size: 20px; text-shadow: 0 1px 5px #8d542a, 0 1px 2px #000; }
.player-damage { color: #ff6679; font-size: 21px; text-shadow: 0 1px 2px #400412, 0 0 10px #9b0927; }
.world-label {
 position: absolute; z-index: 2; transform: translate(-50%,-105%); pointer-events: none;
 width: max-content; max-width: 136px; padding: 5px 8px; border-radius: 5px; text-align: center;
 background: #0b172bf2; color: #e2e8e5; border: 1px solid #85979d;
 font-size: 11px; line-height: 1.35; text-shadow: 0 1px 4px #000;
 box-shadow: 0 0 14px color-mix(in srgb, var(--object-tint), transparent 73%);
}
.world-label-title { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.world-label-icon { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #667985; border-radius: 5px; font: 14px 'Segoe UI Symbol', system-ui, sans-serif; }
.world-label small { display: block; margin-top: 2px; color: #bdc9cc; font-size: 9px; }
.world-label.god-drop-label,.world-label.skill-drop-label { border:1px solid var(--object-tint);box-shadow:0 0 10px color-mix(in srgb,var(--object-tint) 60%,transparent); }
.world-label.god-drop-label { background:#2e2214f0; }
.world-label.skill-drop-label { background:#101a2af0; }
.reward-god-portrait { width:27px;height:27px;border:1px solid var(--object-tint);border-radius:5px; }
.world-label.offscreen { opacity: .72; }
.world-label.offscreen::before { content: '↑'; display: inline-block; margin-right: 3px; transform: rotate(var(--pointer-angle)); }
.promise-badge { color: #ffe3a5; }
#hunt-stick { position:absolute;bottom:0;left:5%;width:clamp(96px,27cqw,142px);aspect-ratio:1;border-radius:50%;border:2px solid #b4cd9d70;background:radial-gradient(circle,#66835827 44%,#23362980 46%,#66835833 69%);pointer-events:auto;touch-action:none; }
#hunt-stick { left:50%;transform:translateX(-50%);z-index:4; }
#hunt-stick.dragging { bottom:auto;transform:translate(-50%,-50%); }
#hunt-stick::before { content:"";position:absolute;inset:12%;border:1px solid #bacfa351;border-radius:50%; }
#hunt-stick i { position:absolute;inset:33%;border:1px solid #d0dfbb99;border-radius:50%;background:#718d6caa;pointer-events:none; }
.god-choice { display:flex;align-items:center;gap:12px;width:100%;margin:10px 0;padding:12px;text-align:left;border-radius:10px; }
.god-choice small { display:block;margin-top:5px;color:#bcd1d8;line-height:1.5; }
.god-portrait { flex:none;font-size:26px;background:#213546;border-radius:10px;padding:7px; }
.trackers { position:absolute;z-index:3;top:50%;transform:translateY(-50%);display:grid;gap:4px;pointer-events:none; }
#exit-tracker { left:4px;color:#8fffe0; }
#opening-guide { position:absolute;z-index:3;left:50%;bottom:24%;transform:translateX(-50%);width:min(80%,310px);box-sizing:border-box;padding:10px 13px;background:#101a26f2;border:1px solid #d9b579;border-radius:8px;text-align:center;pointer-events:none; }
#opening-guide strong,#opening-guide span { display:block; }
#opening-guide strong { color:#ffe4a3;font-size:16px;margin-bottom:4px; }
#opening-guide span { color:#e4edf1;font-size:12px;line-height:1.5; }
.opening-seal-label::after { content:'↓';position:absolute;left:50%;top:calc(100% + 2px);width:27px;height:27px;display:grid;place-items:center;margin-left:-13.5px;border:1px solid #c5ffec;border-radius:50%;background:#0d3037;color:#fff6cb;font-size:23px;font-weight:800;box-shadow:0 0 12px #85f5ce;animation:opening-pointer .85s ease-in-out infinite alternate; }
@keyframes opening-pointer { to { transform:translateY(7px); } }
@media (prefers-reduced-motion:reduce) { .opening-seal-label::after { animation:none; } }
#enemy-tracker { right:4px;color:#ff9e9c; }
.tracker { min-width:34px;min-height:29px;display:grid;place-items:center;border-radius:7px;background:#0b1320c9;border:1px solid currentColor; }
.tracker[hidden] { display:none; }
.tracker span { display:block;font-size:16px;line-height:1; }
.tracker small { font-size:8px;line-height:1; }
.tracking-boss { color:#ffd281; }

#skill-progress { display:block;width:110px;height:5px;accent-color:#9ef2cf; }
#skill-progress[hidden] { display:none; }
#nodes { display:flex;align-items:center;flex-wrap:wrap;min-width:0;gap:clamp(2px,1cqw,5px);letter-spacing:0; }
.god-slot { display:flex;align-items:center;gap:3px;padding-right:3px;border:1px solid #526b77;border-radius:4px;background:#101a25c9; }
.god-slot-icon { position:relative;display:block;width:clamp(18px,5.8cqw,25px);height:clamp(18px,5.8cqw,25px);flex:none; }
.god-slot img { display:block;width:100%;height:100%;object-fit:cover;border-radius:3px; }
.god-slot small { position:absolute;right:0;bottom:0;padding:0 2px;background:#111c2b;color:#fff;font-size:8px; }
.god-slot-name { display:grid;line-height:1.03;white-space:nowrap;color:#eef1e5;font-size:clamp(8px,2.2cqw,11px); }
.god-slot-name span { font-size:.9em; }
.god-slot.next { opacity:1;border-color:#ffe4a3;box-shadow:0 0 7px #ffe4a377; }
.resonance-notes { display:grid;gap:3px;padding-left:7px;border-left:2px solid #b99562;color:#c8d6df; }
.resonance-line { font-size:11px;line-height:1.35; }
.resonance-line b { color:#f8e8bd; }
.resonance-heading { color:#ffe8b4;font-size:11px;line-height:1.2; }
.contract-title { display:block;margin-top:2px;color:#a9c0c8;font-size:10px;line-height:1.2; }
#door-progress { width:110px;height:6px;accent-color:#9ef2cf; }
#door-progress[hidden] { display:none; }
#enemy-tracker .tracker { min-width:43px; }
#enemy-tracker .tracker small { font-size:10px; }
.room-progress-label { margin-top:5px; }
#room-progress { display:block;width:100%;height:6px;accent-color:#f1bd73; }
#toast.pickup-warning { z-index:4;top:42%;padding:9px 0;background:#182435eb;color:#fff2cd;font-size:16px;font-weight:700; }
#toast.battle-start { z-index:4;top:40%;padding:8px 0;background:linear-gradient(90deg,transparent,#142c33e8 30%,#142c33e8 70%,transparent);color:#fff0b6;font-size:clamp(22px,7cqw,34px);font-weight:800; }
.god-intro { color:#d9eee7; }
.god-intro small { display:block;margin-top:9px;padding-top:8px;border-top:1px solid #38525e;color:#a9c0c8; }
.contract-card { display:grid;grid-template-columns:clamp(52px,17cqw,85px) 1fr;gap:10px 13px;background:#111c2bee;border:1px solid #59717e;border-left:2px solid var(--god-color); }
.contract-card.rarity-0 { --rarity-bg:#303843; }
.contract-card.rarity-1 { --rarity-bg:#173d66; }
.contract-card.rarity-2 { --rarity-bg:#482965; }
.contract-card.rarity-3 { --rarity-bg:#673a18; }
.contract-card.rarity-4 { --rarity-bg:#681f32; }
.contract-card[class*="rarity-"],.contract-card[class*="rarity-"]:hover { background:linear-gradient(110deg,var(--rarity-bg),#111c2b 120%);border-color:var(--rarity-color); }
.contract-card .contract-name em { color:var(--rarity-color); }
.contract-portrait { width:100%;aspect-ratio:1;border:1px solid var(--god-color);border-radius:6px; }
.contract-copy { min-width:0; }
.contract-name { display:block;color:#e4eef0;font-weight:700;font-size:13px; }
.contract-name i { font-style:normal;padding:2px 4px;border:1px solid var(--god-color);border-radius:4px;color:var(--god-color); }
.contract-name em { float:right;font:normal 10px system-ui; }
.contract-card .contract-name .skill-type { padding:1px 4px;border:1px solid #b9d9df55;border-radius:4px;background:#09132394;color:#f2f7f8;white-space:nowrap;font-weight:700; }
.draft-recommendation { margin-left:5px;color:#ffe894;font-size:10px;white-space:nowrap;text-shadow:0 0 6px #f2a332; }
.contract-copy strong { display:block;font-size:clamp(14px,4.5cqw,21px);color:#f6e4bd;margin-top:7px; }
#overlay:has(.draft-panel) { padding:3%; }
#panel.draft-panel { max-height:100%;padding:0 2px; }
#panel.draft-panel h1 { font-size:clamp(20px,5.8cqw,30px);margin:0 0 6px;letter-spacing:.07em; }
#panel.draft-panel .god-intro { margin:0 0 7px; }
.draft-panel .contract-card { grid-template-columns:clamp(29px,10cqw,52px) minmax(0,1fr);align-items:start;gap:7px;margin:6px 0;padding:8px; }
.draft-panel .contract-card:last-child { margin-bottom:0; }
.draft-panel .contract-name { font-size:11px;line-height:1.35; }
.draft-panel .contract-name i { padding:0 3px; }
.draft-panel .contract-copy strong { margin-top:3px;font-size:clamp(13px,4cqw,17px);line-height:1.2; }
.draft-panel .contract-card small { margin-top:3px;font-size:11px;line-height:1.35; }
.draft-panel .contract-copy .resonance-notes { margin-top:4px; }
.draft-panel .skill-use,.draft-panel .skill-metrics { margin-top:3px; }
.draft-panel .skill-use { font-size:11px; }
.draft-panel .skill-metrics { gap:2px 4px; }
.draft-panel .skill-metrics span { padding:1px 4px; }
.draft-panel:not(.draft-compact) .contract-card { grid-template-columns:clamp(44px,15cqw,74px) minmax(0,1fr);align-items:center;gap:10px;margin:8px 0;padding:11px; }
.draft-panel:not(.draft-compact) .contract-card:last-child { margin-bottom:0; }
.draft-panel:not(.draft-compact) .contract-name { font-size:13px; }
.draft-panel:not(.draft-compact) .contract-copy strong { font-size:clamp(16px,4.5cqw,21px); }
.draft-panel:not(.draft-compact) .contract-card small,.draft-panel:not(.draft-compact) .resonance-line { font-size:12px; }
@media (max-height:620px) {
 #overlay:has(.draft-panel) { padding:2%; }
 .draft-panel .contract-card { grid-template-columns:26px minmax(0,1fr);padding:5px;gap:5px;margin:4px 0; }
 .draft-panel .contract-card small,.draft-panel .resonance-line,.draft-panel .skill-use { font-size:10px;line-height:1.25; }
}

.weak-point-damage { color:#ffdb79;font-size:23px;text-shadow:0 0 6px #952b17,0 2px 4px #000; }

.skill-use { display:block;margin-top:4px;color:#fff0c7;font-size:12px;font-weight:700; }
.skill-metrics { display:flex;flex-wrap:wrap;gap:4px 8px;margin-top:7px;font-size:10px;color:#e7f1f5; }
.skill-metrics span { padding:2px 5px;background:#0b15248c;border-radius:4px; }
.victory-gods { list-style:none;margin:10px 0;padding:0;display:grid;gap:8px; }
.victory-gods li { display:grid;grid-template-columns:43px 1fr auto;align-items:center;gap:10px;padding:8px;border:1px solid #526573;border-radius:8px;background:#152236; }
.victory-gods img { width:43px;border-radius:5px; }
.victory-gods strong,.victory-gods small,.victory-gods progress { display:block; }
.victory-gods small { color:#b7cbd1; }
.victory-gods progress { width:100%;height:6px;accent-color:var(--god-color); }
.victory-gods b { color:var(--god-color);white-space:nowrap; }
.victory-switch { display:flex;gap:8px;margin-top:12px; }
.victory-switch button { flex:1;padding:8px;border-radius:6px; }
.victory-switch button[aria-pressed="true"] { background:#284453;border-color:#a8e4dc;color:#ecfffa; }
