.result-celebration[hidden],.result-ratings[hidden]{display:none!important}
#journey-sheet.has-result-celebration{position:fixed;inset:auto;margin:0;box-sizing:border-box;max-width:none;max-height:none;overflow:hidden;border:0;border-radius:0;background:transparent;box-shadow:none;padding:8px;color:#174c57}
#journey-sheet.has-result-celebration .journey-panel{box-sizing:border-box;height:100%;min-height:0;margin:0;display:flex;flex-direction:column;align-items:stretch;gap:6px;padding:23px 18px 14px;background:radial-gradient(ellipse at 50% 35%,#fff8e7,#fff0d4 85%);color:#174c57;border-radius:27px;box-shadow:0 5px 0 #7f4b2e,inset 0 0 0 2px #9e673d,inset 0 0 0 5px #fff8e8}
#journey-sheet.has-result-celebration .rp-menu-illustration{display:none}
#journey-sheet.has-result-celebration h2{flex:none;order:0;margin:0;padding:0 27px;font-size:23px;line-height:1.15;text-wrap:balance;color:#174c57}
#journey-sheet.has-result-celebration .journey-panel__subtitle{flex:none;order:1;margin:0!important;font-size:13px;line-height:1.25;color:#53727a!important}
.result-sheet-body{order:2;flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:4px 2px 8px;scroll-padding:10px}
.result-celebration{flex:none;order:2;width:100%;max-width:clamp(155px,calc((var(--result-available-height,800px) - 530px)*1.1),280px);align-self:center;margin:2px 0 0}
.result-celebration__frame{position:relative;aspect-ratio:4/3;overflow:hidden;border:3px solid #fff9ec;border-radius:20px;background:#edd8bd;box-shadow:0 0 0 1px #d0a46e,0 4px 12px #845f3522}
.result-celebration video{display:block;width:100%;height:100%;object-fit:contain}
#journey-sheet .result-celebration__start{position:absolute;bottom:8px;left:10%;width:80%;min-height:44px;margin:0;padding:8px;border:1px solid #b88d57;border-radius:14px;background:#fff5dde8;color:#176373;font:700 13px system-ui;cursor:pointer}
#journey-sheet .result-celebration__start[hidden]{display:none!important}
.result-celebration__status:empty{display:none}
#journey-sheet .result-celebration__status{margin:6px 0 0;font-size:12px;line-height:1.3;color:#315c65}
#journey-sheet.has-result-celebration .journey-result-mark{flex:none;order:3;margin:0 auto;height:auto;min-height:0;font-size:34px;line-height:1.05;letter-spacing:5px;color:#db952c;text-shadow:0 2px 0 #fff6d7;background:none}
#journey-sheet.has-result-celebration .journey-panel__inset{flex:none;order:4;margin:0;padding:10px;background:#fff8e6;border:1px solid #e6c99e;box-shadow:none;border-radius:16px}
#journey-sheet.has-result-celebration .journey-panel__inset p{margin:0 0 5px;font-size:13px;line-height:1.3;color:#355b60}
#journey-sheet.has-result-celebration .journey-panel__inset small{color:#62736b;font-size:12px}
#journey-sheet.has-result-celebration .journey-primary,#journey-sheet.has-result-celebration .journey-secondary{flex:none;align-self:center;width:min(100%,235px);margin:0 auto!important;font-size:16px}
#journey-sheet.has-result-celebration .journey-primary{order:5}
#journey-sheet.has-result-celebration .journey-secondary{order:6}
#journey-sheet.has-result-celebration .journey-panel__close{z-index:2;top:5px;right:5px;width:38px;height:38px;min-height:38px;font-size:26px}
.result-ratings__row{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:5px 0}
.result-ratings__label{flex:none;width:66px;text-align:left;font-size:12px;font-weight:750;color:#174c57}
.result-ratings__choices{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;flex:1;min-width:0}
#journey-sheet .result-ratings__choices label{position:relative;display:block;padding:0;margin:0;min-width:0;cursor:pointer}
.result-ratings__choices input{position:absolute;opacity:0;width:1px;height:1px}
.result-ratings__choices span{display:grid;place-items:center;min-height:44px;border:1px solid #d8b988;border-radius:10px;background:#fff3d8;color:#174c57;font:750 15px system-ui;box-sizing:border-box}
.result-ratings__choices input:checked+span{background:#176779;color:#fff9e8;border-color:#176779}
.result-ratings__choices input:focus-visible+span{outline:3px solid #eea941;outline-offset:1px}
#journey-sheet .result-ratings__hint{font-size:11px;margin:0 0 6px;color:#617477;text-align:left}
#journey-sheet .result-ratings details{margin:8px 0 3px;font-size:12px;text-align:left;color:#174c57}
.result-ratings summary{cursor:pointer;min-height:32px;line-height:32px}
.result-ratings textarea{box-sizing:border-box;display:block;width:100%;min-height:76px;resize:vertical;margin-top:5px;padding:9px;border:1px solid #d0a46e;border-radius:10px;background:#fffdf4;color:#174c57;font:16px/1.35 system-ui}
#journey-sheet .result-ratings__status{font-size:10px;margin:5px 0 0;color:#617477}
@media(max-width:430px){.result-ratings__row{display:block}.result-ratings__label{display:block;width:auto;margin-bottom:3px}.result-ratings__choices span{min-height:44px}}
@media(max-width:350px){#journey-sheet.has-result-celebration .journey-panel__inset{padding:5px}}
@media(max-height:650px){#journey-sheet.has-result-celebration .journey-panel{padding:17px 13px 10px;gap:4px}#journey-sheet.has-result-celebration h2{font-size:20px}#journey-sheet.has-result-celebration .journey-primary,#journey-sheet.has-result-celebration .journey-secondary{width:min(100%,190px);font-size:14px}#journey-sheet.has-result-celebration .journey-result-mark{font-size:28px}}
