.guild-journey{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 18px}.guild-journey>div{padding:13px 16px;border-left:2px solid #b9cb9b66;background:#c2d8a509;border-radius:0 7px 7px 0}.guild-journey b{display:block;color:#dfd1a6;font-size:17px}.guild-journey span{font-size:13px;color:var(--muted)}.guild-progress{display:flex;flex-wrap:wrap;align-items:center;gap:22px;padding:17px 20px;border:1px solid #c8ceaa33;border-radius:9px;background:#13272b;margin-bottom:28px}.guild-progress small{display:block;font-size:12px;color:var(--muted)}.guild-progress strong{font-size:26px;color:#f0d59a}.guild-progress strong span{font-size:13px;color:var(--muted)}.guild-progress p{flex:1;min-width:220px;margin:0;font-size:14px;color:#bbc9b7}.game-footer{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:15px;padding:28px 10px;color:var(--muted);font-size:12px}.game-footer button{font-size:13px}.boot-message{text-align:center;padding:60px 20px;color:var(--muted)}.save-attention{border-color:#edba77!important;color:#ffdda0!important}.save-notice{position:fixed;top:62px;left:12px;right:12px;max-width:620px;margin:auto;z-index:90;padding:12px;border:1px solid #e4b775;border-radius:9px;background:#342c1df5;box-shadow:0 5px 22px #0007;font-size:13px;color:#ffe5b5}.save-notice[hidden]{display:none}.save-notice>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.save-notice button{border:1px solid #dabd7e99;border-radius:5px;background:#f0d5a1;color:#1e2c27;padding:7px 12px;min-height:36px;font-size:13px;font-weight:700}.save-notice button[hidden]{display:none}#save-recovery-dialog{max-width:460px;width:calc(100% - 30px);max-height:90dvh;overflow:auto;background:#18282c;color:var(--text);border:1px solid #e4b77577;border-radius:12px;padding:24px}#save-recovery-dialog::backdrop{background:#031017dd}#save-recovery-dialog h2{font-size:23px}#save-recovery-dialog p{font-size:14px;color:#c2cec5}.recovery-actions{display:grid;gap:10px;margin-top:20px}.recovery-actions button{font-size:14px;min-height:44px}@media(max-width:560px){.guild-journey{gap:5px;margin-top:8px}.guild-journey>div{padding:10px 7px}.guild-journey b{font-size:14px}.guild-journey span{font-size:11px}.guild-progress{padding:12px 14px;gap:18px;margin-bottom:20px}.guild-progress p{font-size:13px;min-width:100%}.guild-progress strong{font-size:24px}.welcome-actions .primary{min-height:48px;width:100%}.game-footer{padding-block:20px}.save-notice{font-size:12px}}

#share-dialog{width:min(530px,calc(100% - 24px));max-height:94dvh;overflow:auto;background:#13252b;color:var(--text);border:1px solid #d5c18b77;border-radius:13px;padding:16px}#share-dialog::backdrop{background:#031017dd}#share-preview{display:block;width:100%;height:auto;border-radius:8px;margin:12px 0}.share-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;position:sticky;bottom:-16px;background:#13252b;padding:12px 0}.share-actions a{text-decoration:none;text-align:center;display:grid;place-items:center;font-size:14px;padding:12px;min-height:46px}#share-dialog>p{font-size:12px;color:var(--muted)}.graduate-share{margin-top:15px}.graduate-share button{width:100%;min-height:42px;font-size:14px}.hero-card>.text-button{width:100%;font-size:13px;margin-top:6px}

.dungeon-power{padding:15px 17px;margin:12px 0 16px;border:1px solid #c4c9a544;border-radius:8px;background:linear-gradient(120deg,#d5c28912,#0a1e2433)}.power-comparison{display:grid;grid-template-columns:1fr 1fr;gap:16px}.power-comparison small{display:block;font-size:13px;color:var(--muted)}.power-comparison strong{display:block;font-size:28px;font-weight:900;color:#efdaa5;font-variant-numeric:tabular-nums;line-height:1.5}.power-comparison>div+div{border-left:1px solid #bad0b62d;padding-left:16px}.power-gap{margin:8px 0 4px;font-size:14px;font-weight:700;color:#e7c88e}.dungeon-power.ready .power-gap{color:#a9d6b4}.power-guide-note{margin:0;font-size:12px;line-height:1.7;color:var(--muted)}.dungeon-power-list{border-top:1px solid #b6c5ad33;margin-top:12px;padding-top:9px}.dungeon-power-list summary{font-size:13px;color:#dcd2b0;cursor:pointer;min-height:32px;line-height:2.3}.dungeon-power-list table{width:100%;border-collapse:collapse;margin-top:8px}.dungeon-power-list thead th{font-size:12px;font-weight:500;color:var(--muted);padding:7px 9px;border-bottom:1px solid #bdc9b340;text-align:left}.dungeon-power-list thead th+th{text-align:right}.dungeon-power-list tbody th{padding:9px;font-size:13px;text-align:left;font-weight:500;border-bottom:1px solid #b3c6aa22}.dungeon-power-list tbody th b{font-size:14px;font-weight:700;color:#e5e4cc}.dungeon-power-list tbody th span{margin-left:9px;color:#b4c5b9;font-size:12px}.dungeon-power-list tbody th small{display:block;font-size:11px;color:var(--muted)}.dungeon-power-list td{text-align:right;font-size:18px;font-weight:800;padding:9px;color:#e8d3a2;font-variant-numeric:tabular-nums;border-bottom:1px solid #b3c6aa22;white-space:nowrap}.dungeon-power-list tr.selected{background:#c4be6620}.dungeon-power-list tr.selected th b{color:#ffe6ad}.route-map+.dungeon-power{margin-top:0}@media(max-width:560px){.dungeon-power{padding:12px}.power-comparison{gap:10px}.power-comparison>div+div{padding-left:10px}.power-comparison strong{font-size:26px}.power-comparison small{font-size:12px}.power-guide-note{font-size:11px}.dungeon-power-list tbody th span{display:block;margin-left:0}.dungeon-power-list tbody th,.dungeon-power-list td{padding:8px 6px}.dungeon-power-list summary{font-size:12px}}

.dungeon-power .power-comparison small{font-size:14px}.dungeon-power-list summary{font-size:14px}

/* Keep repeat play and manual combat understandable on narrow screens. */
.result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin:24px auto 12px;max-width:680px}
.result-actions button{min-height:48px;flex:1 1 200px;margin:0}
.battle-help{color:var(--muted);font-size:14px;line-height:1.7;margin:8px 0 12px}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #f6d78b;outline-offset:3px}
@media(max-width:560px){.result-actions{flex-direction:column}.result-actions button{flex:none;width:100%}}
