body:has(#end:not(.hide)){background:#101719;color:#f5f5f2}
body:has(#end:not(.hide)) .home-header,body:has(#end:not(.hide)) #expansionStatus{display:none}
body:has(#end:not(.hide)) .layout{padding:0 20px}
#end.result-immersive{max-width:580px;margin:0 auto;padding:24px 0 48px}
#end .result-photo{position:relative;margin:0;height:min(70svh,690px);min-height:340px;overflow:hidden;background:#1d272a;isolation:isolate}
#end #winArt{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0;display:flex;align-items:center;justify-content:center;font-size:90px;overflow:hidden}
#end #winArt img{position:absolute;max-width:none;max-height:none;border-radius:0}
#end .result-backdrop{position:absolute;inset:-20px;width:calc(100% + 40px);height:calc(100% + 40px);object-fit:cover;filter:blur(20px) brightness(.55);z-index:-1}
#end .result-caption{position:absolute;bottom:0;left:0;right:0;padding:55px 24px 24px;background:linear-gradient(transparent,rgba(0,0,0,.84));pointer-events:none}
#end .result-kicker{font:700 10px/1.5 system-ui;letter-spacing:.22em;color:#f0d89b}
#end #winName{font:700 clamp(24px,6vw,34px)/1.16 system-ui;text-align:left;margin:7px 0 0;color:white;overflow-wrap:anywhere}
#end .result-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:12px 4px;gap:2px;border-bottom:1px solid #ffffff24}
#end .result-actions button,#end .result-stats-close{display:flex;align-items:center;justify-content:center;gap:7px;min-height:48px;min-width:44px;padding:8px 3px;border:0;background:transparent;box-shadow:none;border-radius:0;font:600 12px/1.3 system-ui;color:#f5f5f2;cursor:pointer}
#end .result-icon{width:19px;height:19px;flex:none}
#end button:focus-visible{outline:2px solid #f0d89b;outline-offset:-2px}
#end #msg{font:13px/1.5 system-ui;color:#d1d8db;padding:0 16px;margin:10px 0;overflow-wrap:anywhere}
#end #msg:empty{display:none}
#end .result-comments,#end .result-stats{padding:28px 24px;font:14px/1.6 system-ui;border:0;background:transparent;box-shadow:none}
#end .result-comments h2,#end .result-stats h2{font:600 19px/1.4 system-ui;margin:0 0 12px}
#end .result-comments p,#end .result-stats p{color:#b7c2c7}
#end .result-comments{margin-top:30px;border-top:1px solid #ffffff1a}
#end .result-comments fieldset{border:0;padding:0;margin:20px 0 0;display:grid;gap:10px;min-width:0}
#end .result-comments label{display:grid;gap:5px;color:#b7c2c7}
#end .result-comments input,#end .result-comments textarea{box-sizing:border-box;width:100%;max-width:100%;margin:0;border:1px solid #ffffff30;background:#ffffff05;color:#b7c2c7;border-radius:3px;padding:12px;font:inherit}
#end .result-comments #send{min-height:44px;border:1px solid #ffffff30;background:transparent;color:#b7c2c7}
#end .result-comments [disabled]{cursor:not-allowed;opacity:.65}
#end .result-stats{border-bottom:1px solid #ffffff24}
#end .result-stats[hidden]{display:none}
#end .result-stats-close{justify-content:flex-start;text-decoration:underline}
#end.result-arrival .result-photo{animation:result-arrival .32s ease-out}
@keyframes result-arrival{from{opacity:.65}to{opacity:1}}
@media(max-width:767px){
 body:has(#end:not(.hide)) .layout{padding:0}
 #end.result-immersive{padding-top:0;max-width:580px}
 #end .result-photo{height:clamp(390px,76svh,680px);min-height:0}
 #end .result-caption{padding:55px 20px 24px}
 #end .result-actions button{flex-direction:column;gap:5px;font-size:12px;min-height:62px}
}
@media(prefers-reduced-motion:reduce){#end.result-arrival .result-photo{animation:none}}

/* Bright result theme; original photo geometry/crop and DOM stay intact. */
body:has(#end:not(.hide)){background:#f7f9fd;color:#142044}
#end .result-actions{gap:8px;border-bottom-color:#dce4ef}
#end .result-actions button,#end .result-stats-close{color:#075fcf;background:#edf4ff;border-radius:7px}
#end .result-actions #shareBtn{background:#0878ff;color:#fff}
#end .result-comments,#end .result-stats{color:#142044;border-color:#dce4ef}
#end .result-comments p,#end .result-stats p,#end #msg,#end .result-comments label{color:#526784}
#end .result-comments input,#end .result-comments textarea{background:#fff;color:#142044;border-color:#ccd8e8;border-radius:7px}
#end .result-comments button,#end .result-comments #send{background:#0878ff;color:#fff;border-color:#0878ff;border-radius:7px}
#end button:focus-visible{outline-color:#0878ff}
