@import url("run-battle.css");
/* Scoped to the separate run page; shared flat-pencil CSS stays in style.css. */
.run-root [hidden]{display:none!important}
.run-prism-entry{display:flex;gap:8px;flex-wrap:wrap;margin:6px 0}
.run-prism-entry input{flex:1;min-width:0;width:160px;min-height:44px;border:1px solid var(--line);border-radius:9px;padding:8px;font:inherit}
.run-prism-reward{border:1px solid var(--theme-line,#b8ceb8);border-radius:10px;padding:10px 14px;margin:12px 0;background:var(--theme-tint-forest,#eef5e9);font-size:12px;line-height:1.7}
.run-prism-reward strong{font-size:18px;letter-spacing:.04em}
.run-element-choices .prism{--element:linear-gradient(160deg,#c8786d,#d99f65,#cfb66d,#77a079,#759cba,#9a85b5);background:linear-gradient(135deg,var(--theme-tint-fire,#f9e5df),var(--theme-tint-water,#e6f0fc),var(--theme-tint-forest,#e7f3de))}
.run-root{max-width:1040px;padding-bottom:max(24px,env(safe-area-inset-bottom))}
.run-root h1{font-size:28px;letter-spacing:-.04em;margin:0}.run-root h1 small{font-size:11px;color:var(--theme-muted,#818984);letter-spacing:0}
.run-intro{padding:14px 0 8px}
#run-player-profile .battle-profile{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;min-width:0;margin-top:6px;color:var(--text);overflow-wrap:anywhere}
#run-player-profile .battle-profile-name{min-width:0;font-size:13px;line-height:1.5;white-space:pre-wrap}
#run-player-profile .battle-profile-achievement{min-width:0;font-size:12px;line-height:1.5;color:var(--theme-forest,#25785d)}
.run-root .topbar{gap:10px}.run-root .topbar .brand{font-size:clamp(11px,3.4vw,14px);white-space:nowrap}
#run-menu-open{flex-shrink:0;white-space:nowrap}
#run-shop-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#run-shop-navigation button{min-width:0;padding:10px 6px;font-size:12px;white-space:nowrap}
.run-layout.run-shop-layout{grid-template-columns:minmax(0,1fr)}
.run-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.run-menu-heading h2{margin:0}
.run-menu-heading button{min-width:44px;font-size:20px}
.run-menu-items{display:grid;gap:10px;margin-top:16px}.run-menu-items a,.run-hints-guide{display:flex;align-items:center;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:9px;color:var(--theme-forest,#326c4f);font-size:13px;text-decoration:none}
.run-hints-list{padding-left:20px;font-size:13px;line-height:1.8}.run-hints-list li+li{margin-top:10px}
.run-menu-dialog{overflow-wrap:anywhere}
.run-menu-items details{margin:0;min-width:0}
.run-menu-items .run-menu-action{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:44px;margin:0;padding:10px 12px;border:1px solid var(--border);border-radius:9px;background:var(--surface);color:var(--text);font:inherit;font-size:13px;font-weight:700;line-height:1.4;text-align:left;text-decoration:none;cursor:pointer}
.run-menu-items .run-menu-action:hover{background:var(--surface-raised);border-color:var(--theme-forest,#25785d)}
.run-menu-items .run-menu-action:focus-visible{outline:2px solid var(--theme-focus,#25785d);outline-offset:3px}
.run-menu-items summary.run-menu-action{list-style:none}
.run-menu-items summary.run-menu-action::-webkit-details-marker{display:none}
.run-menu-items summary.run-menu-action::after{content:'▼';font-size:10px;margin-left:8px}
.run-menu-items details[open]>summary.run-menu-action::after{content:'▲'}
.run-back{font-size:12px;color:var(--theme-ink,#53645a)}
.run-dialog #run-confirm-purchase[data-purchase-mode="replace"]{background-color:#9a681b;border-color:var(--theme-gold,#9a681b)}
.run-muted{font-size:11px;color:var(--theme-muted,#65746b);line-height:1.65;margin:7px 0 12px}
.run-root fieldset,.run-dialog fieldset{border:0;padding:0;margin:14px 0}.run-root legend,.run-dialog legend{font-size:12px;font-weight:700;margin-bottom:6px}
.run-choices{display:flex;gap:8px;flex-wrap:wrap}.run-choices label{flex:1;display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;border:1px solid var(--theme-line,#dce5d9);border-radius:9px;padding:8px;background:var(--theme-raised,#f5f7f0);font-size:13px;cursor:pointer}
.run-choices label:has(input:checked){border-color:var(--theme-forest,#2d795d);background:var(--theme-tint-forest,#e6f1e5)}.run-choices input{accent-color:#2d795d}
/* Reuse the normal selection screen's CSS pencil artwork and element colours. */
.run-element-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.run-element-choices label{position:relative;min-width:0;min-height:130px;flex-direction:column;gap:0;padding:12px 6px}
.run-element-choices input{position:absolute;top:8px;left:8px;margin:0}
.run-element-choices .pencil-art{flex:none;height:57px;margin:14px 0 10px;pointer-events:none}
.run-element-choices .element-name{font-size:13px;line-height:1.5}
.run-element-choices .summoner{--element:#8e63b8;--tint:var(--theme-tint-purple,#f2eafa)}
.run-element-choices .summoner .pencil-art{background:linear-gradient(90deg,#67438d,#b993dc 45%,#79519f);border-color:var(--theme-purple,#8057a8)}
.run-element-choices .summoner .pencil-art i{background:#eadcf6}
.summoner-sigil{position:absolute;left:50%;top:24px;width:22px;height:22px;transform:translateX(-50%);border:2px solid #f6ecff;border-radius:50%;background:#67438d;box-shadow:0 0 0 1px #67438d}
.summoner-sigil:before{content:'';position:absolute;inset:3px;border:1px solid #f6ecff;transform:rotate(45deg)}
.summoner-sigil:after{content:'';position:absolute;inset:7px;border-radius:50%;background:#f6ecff}
.run-element-choices .run-clear-star{margin-top:4px;font-size:12px;line-height:1.3;color:var(--theme-gold,#937126);pointer-events:none}
.run-stats{padding:12px 15px}.run-stats dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:0}.run-stats dt{font-size:9px;color:var(--theme-muted,#65746b)}.run-stats dd{font-size:17px;font-weight:800;margin:3px 0 0}.run-stats p{font-size:11px;margin:8px 0 0;color:var(--theme-ink,#53645a)}
.run-feedback{min-height:18px;font-size:12px;color:var(--theme-forest,#35674f);margin:7px 2px}.run-feedback[data-error="true"]{color:var(--theme-fire,#aa4b3d)}
.run-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.run-offer{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--theme-paper,#fffefa);min-width:0}.run-offer[data-frozen="true"]{border:2px solid var(--theme-water,#558eaf);background:var(--theme-tint-water,#f0f8fc)}
.run-root .run-offer-select{display:flex;flex-direction:column;gap:7px;align-items:center;justify-content:flex-start;width:100%;min-height:150px;border:0;background:transparent;border-radius:0;padding:10px 6px;font-weight:500;overflow-wrap:anywhere;text-align:center}
#run-offers .run-offer-select{min-height:120px;gap:6px;padding:8px 6px}
.run-offer-select strong{font-size:14px}.run-offer-select small{font-size:10px}.run-offer-select .run-offer-effect{font-size:11px;line-height:1.5;flex:1}.run-offer-select em{font-size:11px;font-style:normal;font-weight:800;color:var(--theme-forest,#326c4f)}
.run-offer-select .run-upgrade-star{display:block;flex-shrink:0;color:var(--theme-gold,#b38a25);font-size:15px;line-height:1;min-height:16px;text-shadow:0 1px 4px #e5bb6655}
.run-root .run-freeze{width:100%;border:0;border-top:1px solid var(--line);border-radius:0;font-size:10px;padding:7px 3px;background:transparent}
.run-dialog{width:min(460px,calc(100% - 20px));max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:15px;background:var(--paper);color:var(--ink);padding:18px}.run-dialog::backdrop{background:#19251db3}.run-purchase-modes label{font-size:11px;justify-content:flex-start;min-width:110px}.run-target-faces{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.run-dialog .run-target{font-size:11px;text-align:left;overflow-wrap:anywhere}.run-target[aria-pressed="true"]{outline:2px solid #2d795d}.run-purchase-preview{font-size:12px;line-height:1.7;white-space:pre-line;background:var(--theme-tint-forest,#f3f6ed);border-radius:9px;padding:11px;margin:12px 0}.run-purchase-preview[data-error="true"]{color:var(--theme-fire,#aa4b3d)}#run-cancel-purchase,#run-return-to-shop{width:100%;margin-top:8px}
@media(max-width:720px){.run-root .topbar{height:52px}.run-stats{padding:11px}.run-stats dl{grid-template-columns:repeat(3,minmax(0,1fr))}.run-stats dd{font-size:16px}.run-intro{padding-top:15px}.run-root .run-offer-select{min-height:142px}.run-offers{gap:6px}#run-offers{grid-template-columns:repeat(2,minmax(0,1fr))}.run-offer-select strong{font-size:12px}}
@media(max-width:360px){.run-root{width:calc(100% - 16px)}.run-root .run-offer-select{padding:9px 4px}.run-choices label{padding:7px;font-size:12px}}

.run-reel-target-note{font-size:12px;font-weight:800;color:var(--theme-forest,#2d795d);background:var(--theme-tint-forest,#edf5e9);padding:10px;border-radius:8px}

#run-product-levels li{white-space:pre-line}

/* Keep each diamond strip together, including the Tier 6 evolved maximum of 17. */
.run-stats .run-cost-stat{grid-column:1/-1;min-width:0;display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px;align-items:center;border-top:1px solid var(--line);padding-top:7px}
.run-stats .run-cost-stat dd{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 6px;align-items:center;min-width:0;margin:0;font-size:14px}
.run-cost-diamonds{font-size:clamp(8px,2.3vw,11px);letter-spacing:-.03em;white-space:nowrap;line-height:1.5;color:var(--theme-gold,#846327)}
.run-cost-upper{grid-column:1/-1;font-size:10px;font-weight:500;color:var(--theme-muted,#65746b)}
.run-cost-readout{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:4px 6px;align-items:center;min-width:0;width:100%;white-space:normal;margin:7px 0}
.run-cost-caption{font-size:10px}.run-cost-fraction{font-size:12px;white-space:nowrap;font-weight:800}
.run-cost-inline{white-space:nowrap}.run-offer-select em.run-cost-inline{font-size:10px}
.run-stats dl{grid-template-columns:repeat(4,minmax(0,1fr))}
.run-stats dl>div{min-width:0}.run-stats dd{font-size:clamp(12px,3.7vw,17px);white-space:nowrap}
.run-stats .run-win-progress{display:flex;align-items:center;gap:4px}
.run-crown{color:var(--theme-gold,#98752e);font-family:Georgia,"Times New Roman",serif;font-variant-emoji:text;font-size:21px}
#run-hearts{color:var(--theme-fire,#af655c);font-family:Georgia,"Times New Roman",serif;font-variant-emoji:text;font-size:20px;letter-spacing:1px;line-height:1.1}
.run-life-progress{display:flex;flex-direction:column;gap:2px}.run-life-progress small{font-size:10px;font-weight:500;color:var(--theme-muted,#65746b)}
.run-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.run-comparison-face{padding:9px;border:1px solid var(--line);border-radius:8px;background:var(--theme-paper,#fffefa);white-space:normal;overflow-wrap:anywhere}
.run-comparison-face h3{font-size:12px;margin:0 0 5px;color:var(--theme-ink,#53645a)}.run-comparison-face p{margin:5px 0 0}
.run-comparison-arrow{text-align:center;color:var(--theme-muted,#65746b);font-size:18px;line-height:1.5}
.run-name-label{display:block;font-size:12px;font-weight:700;margin:14px 0 6px}
#run-name{display:block;width:100%;min-width:0;min-height:44px;box-sizing:border-box;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--theme-paper,#fffefa);color:var(--ink);font:inherit;font-size:16px}
#run-name:focus-visible{outline:3px solid #558eaf;outline-offset:2px}
.run-name-error{color:var(--theme-fire,#aa4b3d);font-size:12px;line-height:1.5;margin:5px 0}
.run-name-error:empty{display:none}
#run-identity,#run-active-reel{overflow-wrap:anywhere}
.run-next-opponent{display:flex;align-items:center;gap:18px;min-width:0;padding:10px 17px;margin:10px 0;background:var(--tint);border:1px solid var(--line);border-radius:9px}
/* VS element markers and RUN opponent identifiers share glyph styling and palette. */
.saved-online-root [data-element="fire"],.run-next-opponent.fire{--element:#db7255}
.saved-online-root [data-element="water"],.run-next-opponent.water{--element:#558eaf}
.saved-online-root [data-element="forest"],.run-next-opponent.forest{--element:#478264}
.saved-online-root [data-element="prism"],.run-next-opponent.prism{--element:#9b83af}
.element-mark,.saved-element-icon{display:block;font-size:25px;color:var(--element);margin:0 0 8px}
.run-next-opponent .element-mark{flex-shrink:0;margin:0}
.run-next-opponent>div{min-width:0}
.run-next-label{display:block;font-size:10px;color:var(--theme-muted,#65746b);margin-bottom:3px}
#run-next-opponent-detail{display:block;font-size:15px;color:var(--ink);overflow-wrap:anywhere}
.run-root .run-miss-service{width:100%;margin-top:12px;background:var(--theme-raised,#f5f4ed)}
.run-catalogue-tier h3,.run-catalogue-special h3{font-size:13px;margin:12px 0 8px}
.run-catalogue-card{min-width:0;border:1px solid var(--line);border-radius:9px;margin:8px 0;background:var(--theme-paper,#fffefa);overflow-wrap:anywhere}
.run-catalogue-card h4{font-size:13px;margin:0}
.run-root .run-catalogue-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;min-height:48px;padding:12px 10px;border:0;border-radius:9px;background:transparent;color:var(--ink);font:inherit;font-weight:700;text-align:left;cursor:pointer}
.run-catalogue-toggle>span:first-child{min-width:0;overflow-wrap:anywhere}
.run-catalogue-arrow{flex-shrink:0;color:var(--theme-forest,#376c51);font-size:12px}
.run-catalogue-toggle:focus-visible{outline:3px solid #558eaf;outline-offset:2px}
.run-catalogue-details{padding:0 10px 10px;min-width:0}
.run-catalogue-details[hidden]{display:none}
.run-catalogue-details>p{margin:0;line-height:1.65}
.run-catalogue-level{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 8px;padding:7px 0;border-top:1px solid var(--line)}
.run-catalogue-level p{grid-column:1/-1;margin:0;line-height:1.65}.run-catalogue-special{border-top:1px solid var(--line);margin-top:12px}
.run-tabs{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 12px;min-width:0}
.run-root .run-tabs button{flex:1 1 60px;min-width:0;min-height:44px;padding:10px 7px}
.run-root .run-tabs button[aria-selected="true"]{background:#2d795d;border-color:var(--theme-forest,#2d795d);color:#fff;font-weight:800}
.run-tabs[hidden],.run-layout[hidden]{display:none}

.run-bonus-section{border-top:1px solid var(--line);margin-top:12px;padding-top:10px}.run-bonus-section h3{font-size:13px;margin:0}.run-bonus-offers{grid-template-columns:repeat(2,minmax(0,1fr))}
.run-growth-progress{display:block;font-size:11px;color:var(--theme-forest,#35674f);margin-top:5px;line-height:1.5}
/* Keep the player first (left) and CPU second (right), including narrow screens. */

#run-setup .run-guide-entry{display:flex;align-items:center;justify-content:center;gap:10px;min-height:44px;padding:9px 12px;margin:0 0 14px;border:1px solid var(--theme-line,#dce5d9);border-radius:9px;background:var(--theme-tint-forest,#edf3e9);color:var(--theme-forest,#326c4f);text-decoration:none;font-size:12px;font-weight:700}
.run-collection-dialog{width:min(900px,calc(100vw - 32px));max-width:900px}
.run-collection-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:12px;list-style:none;padding:0}
.run-collection-card{min-width:0;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--theme-tint-forest,#f8faf5)}
.run-collection-card h3,.run-collection-card p,#run-collection-detail-name{overflow-wrap:anywhere}
.run-collection-card h3{margin:0 0 8px}.run-collection-card p{margin:6px 0}
.run-collection-card[data-element="summoner"]{--element:var(--theme-purple,#8057a8);border-top:3px solid var(--element);background:var(--theme-tint-purple,#f2eafa)}
.saved-online-root [data-element="summoner"]{--element:var(--theme-purple,#8057a8)}
.run-collection-count{font-weight:800}.run-collection-reels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.run-debug-notice{padding:12px;margin:14px 0;border:2px dashed var(--theme-gold,#9b6926);border-radius:10px;background:var(--theme-raised,#fff3d5);color:var(--theme-gold,#674312);font-size:12px;line-height:1.6}
.run-debug-notice h3{margin:0}.run-debug-badge{display:inline-block;padding:3px 8px;margin:4px 0;border:1px solid var(--theme-gold,#9b6926);border-radius:5px;background:var(--theme-raised,#fff3d5);color:var(--theme-gold,#674312);font-size:11px;font-weight:800}
#run-debug-start{border-color:var(--theme-gold,#9b6926);background:var(--theme-raised,#fff3d5);color:var(--theme-gold,#674312)}#run-debug-code{box-sizing:border-box;width:100%;padding:10px;margin:8px 0;font:inherit}
.run-collection-reels section{min-width:0}.run-collection-reels h4{margin-bottom:6px}
.run-dialog input[type="text"]{box-sizing:border-box;width:100%;min-width:0;margin:8px 0 12px;padding:10px;font:inherit}
#run-clear-collection{margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:10px}
#run-clear-collection[hidden]{display:none}
@media(max-width:600px){.run-collection-reels{grid-template-columns:1fr}}

.run-clear-relic-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 10px; margin: 14px 0; }
.run-clear-relic-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); overflow-wrap: anywhere; }
.run-clear-relic-card p { font-size: 12px; line-height: 1.7; }
.run-clear-relic-card button { min-height: 44px; }
.run-dialog.run-tier-unlock{width:min(720px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:90dvh;padding:0;overflow:hidden;border:1px solid var(--theme-line,#b7cdb5);border-radius:18px;background:var(--paper);color:var(--ink)}
.run-tier-unlock::backdrop{background:#13291fc4}
.run-tier-unlock[open]{display:flex;flex-direction:column;animation:run-tier-arrive .24s ease-out}
.run-tier-unlock-header{padding:22px 22px 14px;text-align:center;flex-shrink:0;background:radial-gradient(ellipse at top,#f8e6ad66,transparent 70%),var(--theme-tint-forest,#edf5e9);border-bottom:1px solid var(--line)}
.run-tier-unlock-header .eyebrow{color:var(--theme-muted,#60775d)}
.run-tier-unlock-header h2{display:grid;gap:2px;margin:0 0 10px;font-size:clamp(26px,6vw,40px);line-height:1.1;letter-spacing:.02em;color:var(--theme-forest,#2d795d)}
.run-tier-unlock-header h2 strong{font-size:clamp(30px,7vw,48px);color:var(--theme-gold,#9b7425)}
.run-tier-unlock-header>p{margin:8px 0 0;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
.run-tier-unlock-header>.run-muted{font-size:11px}
.run-tier-unlock-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:16px 20px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.run-tier-unlock-card{min-width:0;padding:14px;border:1px solid var(--line);border-top:3px solid var(--theme-forest,#85a878);border-radius:10px;background:var(--theme-paper,#fafbf5);overflow-wrap:anywhere;animation:run-tier-arrive .32s ease-out}
.run-tier-unlock-label{font-size:11px;font-weight:700;color:var(--theme-muted,#6c815c)}
.run-tier-unlock-card h3{font-size:16px;margin:6px 0 8px;color:var(--theme-ink,#304f3f)}
.run-tier-unlock-card p{font-size:12px;line-height:1.7;margin:0;white-space:pre-line}
.run-tier-unlock-footer{display:block;padding:12px 20px max(12px,env(safe-area-inset-bottom));border-top:1px solid var(--line);flex-shrink:0;background:var(--paper);letter-spacing:normal}
.run-tier-unlock-footer button{min-height:48px}
@keyframes run-tier-arrive{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media(max-width:480px){.run-tier-unlock-header{padding:18px 14px 12px}.run-tier-unlock-products{grid-template-columns:minmax(0,1fr);padding:12px;gap:8px}.run-tier-unlock-card{padding:12px}.run-tier-unlock-footer{padding-left:12px;padding-right:12px}}
@media(prefers-reduced-motion:reduce){.run-tier-unlock[open],.run-tier-unlock-card{animation:none}}

.run-catalogue-tier.run-tier-locked{opacity:.65}
.run-catalogue-tier.run-tier-locked h3{color:var(--theme-ink,#53645a)}
