#endOverlay.roha-ending{position:fixed;inset:0;z-index:10000;width:100%;height:100%;min-height:100dvh;display:block;padding:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;isolation:isolate;background:#0b1118;border:0;border-radius:0;text-align:center;color:#f3e4d5;box-shadow:none}
#endOverlay.roha-ending[hidden]{display:none!important}
#endingCanvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;touch-action:auto}
.roha-ending .ending-panel{position:relative;max-width:850px;margin:min(52vh,430px) auto 0;padding:30px 28px max(38px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 58%,#0c1119e8 0,#0c1119a8 48%,#0c111900 76%)}
.roha-ending .ending-rule{display:flex;justify-content:center;align-items:center;gap:17px;color:#be7258;margin-bottom:15px}.roha-ending .ending-rule i{height:1px;width:72px;background:linear-gradient(90deg,transparent,#b96a55)}.roha-ending .ending-rule i:last-child{transform:rotate(180deg)}.roha-ending .ending-rule span{font-size:19px;line-height:1}
#endOverlay.roha-ending .eyebrow{font-size:10px;letter-spacing:4px;color:#d49582;margin:0 0 11px}
#endOverlay.roha-ending h2{font-family:Georgia,'Times New Roman',serif;font-size:clamp(42px,6.3vw,92px);font-weight:700;letter-spacing:9px;line-height:1.03;color:#f0c7b4;text-shadow:0 3px 1px #350c17,0 0 36px #e85c3f36;margin:0}
#endOverlay.roha-ending .ending-quote{font-family:Georgia,'Times New Roman',serif;font-style:italic;font-size:clamp(21px,2.5vw,30px);line-height:1.35;color:#efbda9;max-width:700px;margin:16px auto 0;text-wrap:balance}
#endOverlay.roha-ending .ending-legacy{font-size:13px;letter-spacing:.5px;color:#d2bb83;margin:11px auto 0;line-height:1.5}
#endOverlay.roha-ending .ending-summary{display:flex;justify-content:center;gap:0;max-width:580px;margin:27px auto 0;padding:19px 0;border-block:1px solid #b88c6b30}
.roha-ending .ending-summary>span{flex:1;min-width:0;padding:0 14px}.roha-ending .ending-summary>span+span{border-left:1px solid #b88c6b30}.roha-ending .ending-summary b{display:block;font:600 20px var(--body,system-ui);font-variant-numeric:tabular-nums;color:#efddc8}.roha-ending .ending-summary small{display:block;font-size:9px;line-height:1.3;letter-spacing:1.2px;color:#ac9c93;margin-top:7px;text-transform:uppercase}
.roha-ending .ending-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:25px}.roha-ending .ending-actions button{min-width:185px;padding:13px 22px;font-size:12px;letter-spacing:.5px;border:1px solid #b97259;border-radius:4px}.roha-ending .ending-actions .primary{background:linear-gradient(135deg,#9a483c,#763446);color:#fff0df;box-shadow:0 5px 30px #8c332e22}.roha-ending .ending-secondary{background:#19212bba;color:#dfc9b5;border-color:#7d716866!important}.roha-ending .ending-actions button:hover{border-color:#f1b78e;filter:brightness(1.15)}
.roha-ending .ending-speak{display:block;color:#b4998b;font-size:10px;letter-spacing:.6px;margin:15px auto 0;padding:8px 14px}.roha-ending button:focus-visible{outline:2px solid #ffe1a4;outline-offset:4px}
#endOverlay.roha-ending[data-outcome=victory] .ending-panel{margin-top:min(43vh,370px);background:radial-gradient(ellipse at 50% 58%,#101d20db 0,#101d2099 48%,#101d2000 77%)}
#endOverlay.roha-ending[data-outcome=victory] h2{font-size:clamp(52px,8.1vw,114px);letter-spacing:11px;background:linear-gradient(180deg,#fff5bd 10%,#eed084 35%,#bf8d37 61%,#f4d886 82%);background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;color:#efd583;text-shadow:none;filter:drop-shadow(0 3px 0 #5b3b22) drop-shadow(0 0 28px #e7c47320)}
#endOverlay.roha-ending[data-outcome=victory] .eyebrow{color:#d3bd81}#endOverlay.roha-ending[data-outcome=victory] .ending-quote{color:#e8d5a9}#endOverlay.roha-ending[data-outcome=victory] .ending-rule{color:#e5c779}#endOverlay.roha-ending[data-outcome=victory] .ending-rule i{background:linear-gradient(90deg,transparent,#c4a35a)}
#endOverlay.roha-ending[data-outcome=victory] .ending-actions .primary{background:linear-gradient(135deg,#dbbc6c,#a9833d);border-color:#efd386;color:#2b291e;box-shadow:0 5px 30px #d2af4830}
@media(max-width:580px){.roha-ending .ending-panel{margin-top:42vh;padding:20px 17px 28px}#endOverlay.roha-ending[data-outcome=victory] .ending-panel{margin-top:36vh}#endOverlay.roha-ending h2{letter-spacing:5px}#endOverlay.roha-ending[data-outcome=victory] h2{letter-spacing:5px;font-size:clamp(46px,13vw,75px)}#endOverlay.roha-ending .eyebrow{font-size:8px;letter-spacing:2.5px}.roha-ending .ending-summary>span{padding:0 7px}.roha-ending .ending-summary b{font-size:17px}.roha-ending .ending-summary small{font-size:8px;letter-spacing:.7px}.roha-ending .ending-actions{gap:9px}.roha-ending .ending-actions button{min-width:145px;padding:12px 14px;font-size:11px}#endOverlay.roha-ending .ending-quote{font-size:23px}.roha-ending .ending-rule{margin-bottom:12px}}
@media(max-height:620px) and (min-width:581px){.roha-ending .ending-panel{margin-top:43vh;padding-top:14px;padding-bottom:20px}#endOverlay.roha-ending[data-outcome=victory] .ending-panel{margin-top:35vh}#endOverlay.roha-ending h2{font-size:48px}#endOverlay.roha-ending[data-outcome=victory] h2{font-size:62px}.roha-ending .ending-rule{margin-bottom:8px}#endOverlay.roha-ending .ending-quote{margin-top:10px;font-size:22px}#endOverlay.roha-ending .ending-summary{margin-top:15px;padding:12px 0}.roha-ending .ending-actions{margin-top:16px}}
@media(prefers-reduced-motion:reduce){.roha-ending *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
