.ending-active{--end-border:#d7dfcb}.ending-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 24px}.ending-tabs button{font-size:13px;line-height:1.7;min-height:48px}.ending-tabs .chosen{background:#e6edda;border-color:#69895a;font-weight:600}.ending-tabs button:disabled{opacity:.55;cursor:default}
.ending-hero{background:#fffdf7;border:1px solid #d7dfcb;border-radius:24px;overflow:hidden;display:grid;grid-template-columns:1.35fr 1fr}.ending-scene{position:relative;aspect-ratio:1448/1086;overflow:hidden;isolation:isolate;align-self:stretch;background:#b6cf9c}.ending-scene>img{width:100%;height:100%;object-fit:cover;transition:filter 3s ease}.ending-scene.is-damaged>img{filter:sepia(.7) saturate(.45) brightness(.83)}.ending-scene-label{position:absolute;left:4%;bottom:5%;background:#fff8e9ed;border:1px solid #c2a36b;border-radius:10px;padding:9px 14px;font-size:13px;max-width:90%;z-index:3}.ending-glow{position:absolute;inset:0;pointer-events:none;opacity:0;background:radial-gradient(ellipse at 45% 30%,#fff7c344,transparent 70%);transition:opacity 3s}.is-restored .ending-glow{opacity:1}.ending-clear-water{position:absolute;left:65%;top:20%;height:70%;width:7%;transform:rotate(-19deg);background:linear-gradient(transparent,#6ed2d340,transparent);border-radius:50%;opacity:0;transition:opacity 3s}.is-restored .ending-clear-water{opacity:1}.ending-tree{position:absolute;width:10%;height:17%;background:url('adventure-map.png') 15% 26%/850% 630%;mask-image:radial-gradient(ellipse,#000 20%,transparent 70%);transform-origin:50% 100%;opacity:0}.ending-return{position:absolute;width:13%;aspect-ratio:1;opacity:0;filter:drop-shadow(0 5px 3px #183a3630)}.ending-return .discovery-animal{animation:none!important}.is-restored .ending-tree{opacity:1}.is-restored .ending-return{opacity:1}.is-playing .ending-tree{animation:endingGrow 2.8s ease both}.is-playing .ending-return{animation:endingReturn 2s 2.1s ease both}.ending-hero-copy{padding:30px;align-self:center}.ending-hero-copy h2{font-size:28px;margin:12px 0}.ending-hero-copy p,.ending-card p{font-size:17px;line-height:1.9}.ending-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0 4px}.ending-actions button{font-size:15px;min-height:52px;line-height:1.7}.ending-scene-controls{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}.ending-scene-controls button{min-height:48px;font-size:14px}.ending-rank{display:flex;align-items:center;gap:14px;padding:16px;background:#eaf0df;border-radius:15px;margin:18px 0;text-align:left}.ending-rank>span{font-size:38px}.ending-rank small,.ending-rank strong{display:block}.ending-rank small{font-size:12px;margin-bottom:5px}.ending-rank strong{font-size:18px}.ending-rank-rise{animation:endingRankRise 1.3s ease both}.ending-live{font-size:17px;line-height:1.8;color:#2b5c3e;min-height:1.8em}.ending-small{font-size:13px!important;line-height:1.9!important;color:#596b50}.ending-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:24px 0}.ending-stats>div{border:1px solid #d7dfcb;background:#eff3e7;border-radius:16px;padding:18px;display:flex;flex-direction:column;gap:4px;text-align:center}.ending-stats strong{font-size:30px;color:#2b5c3e}.ending-stats span{font-size:14px}.ending-card{border:1px solid #d7dfcb;background:#fffdf7;border-radius:20px;padding:26px;margin-bottom:20px;overflow-wrap:anywhere}.ending-card h2{font-size:21px}.ending-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ending-grid .ending-card{margin:0}.ending-card .small-btn{font-size:14px;min-height:50px}.ending-animal{height:190px;max-width:220px;margin:0 auto 16px}.ending-animal .discovery-animal{animation:none!important}.ending-lock{height:100%;display:grid;place-items:center;font-size:58px}.ending-locked{background:#eeefe5}.ending-checks{padding:0;list-style:none;line-height:2;font-size:15px}.ending-medal{width:140px;height:140px;margin:0 auto 20px;border:7px solid #c9a764;background:#eee6cc;border-radius:50%;overflow:hidden;display:grid;place-items:center;font-size:48px}.ending-trophy{background:#f8f0d9}.ending-trophy-icon{font-size:60px;text-align:center;margin:15px}.ending-profile{display:flex;align-items:center;gap:30px}.ending-avatar{width:180px;height:220px;flex-shrink:0;position:relative;background:radial-gradient(ellipse,#e5eccf,transparent 70%)}.ending-avatar .avatar-sprite{display:block;width:100%;height:100%;background-size:400% 400%}.ending-rank-name{color:#386144;font-weight:600}.ending-rank-path{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.ending-rank-path li{display:flex;flex-direction:column;padding:18px;background:#f1f1e7;border:1px solid #d7dfcb;border-radius:14px;gap:8px}.ending-rank-path li>span{font-size:30px}.ending-rank-path strong{font-size:16px}.ending-rank-path small{font-size:13px;line-height:1.8}.ending-rank-path .achieved{background:#e6efdc;border-color:#9cb48a}.ending-skill-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.ending-skill{background:#f0f3e7;border-radius:14px;padding:17px}.ending-skill h3{font-size:16px;margin:0 0 12px}.ending-skill>span{font-size:23px;letter-spacing:2px;color:#8b651e}.ending-skill p{font-size:13px;line-height:1.8}.ending-evidence p{display:flex;justify-content:space-between;gap:14px;border-top:1px solid #d7dfcb;padding:13px 0;font-size:15px}.ending-evidence span{white-space:nowrap}.ending-progress{width:100%;height:12px;accent-color:#567948}.ending-card summary{font-size:16px;cursor:pointer;min-height:48px;padding:10px 0}.ending-reflection{max-width:850px}.ending-reflection fieldset{border:0;padding:0;margin:0 0 25px}.ending-reflection legend{font-size:21px;margin-bottom:18px;font-weight:600}.ending-reflection fieldset label{display:flex;align-items:center;gap:14px;padding:16px;background:#f0f3e7;border-radius:12px;margin-bottom:12px;font-size:18px;line-height:1.8;cursor:pointer}.ending-reflection input{width:25px;height:25px;flex-shrink:0;accent-color:#245744}.ending-action-label{display:block;font-size:21px;line-height:1.8;font-weight:600}.ending-reflection textarea{width:100%;font:inherit;font-size:19px;line-height:1.9;color:#263d34;background:#fffdf7;padding:16px;border:2px solid #b6c6a6;border-radius:13px;resize:vertical}.ending-map-entry{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;padding:15px 20px;border:1px solid #cbd5bc;border-radius:15px;background:#edf2df;margin-bottom:18px;font-size:15px}.ending-map-entry .small-btn{font-size:13px}.ending-certificate{background:#fffaf0;border:4px solid #6b815b;outline:1px solid #bca16b;outline-offset:-13px;padding:45px 35px;text-align:center;max-width:1100px;margin:0 auto}.ending-certificate h2{font-size:30px;letter-spacing:1px}.ending-certificate h3{font-size:34px;line-height:1.7;margin:12px 0;color:#245744;overflow-wrap:anywhere}.ending-certificate h4{font-size:21px;line-height:1.7;margin:12px 0 22px}.ending-certificate p{font-size:17px;line-height:1.9}.certificate-rule{height:2px;background:#c1a76e;width:90px;margin:18px auto}.certificate-animals{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;align-items:start}.certificate-animals>div>span{display:block;width:100%;max-width:130px;aspect-ratio:1;margin:auto}.certificate-animals p{font-size:13px;line-height:1.7}.certificate-rank{font-size:23px;line-height:1.8;color:#245744;display:block;margin:20px 0}.ending-certificate small{font-size:13px}.certificate-actions{justify-content:center}.ending-animal-page{text-align:left}.ending-animal-page h2,.ending-animal-page>.ending-small{text-align:center}.ending-animal-page>p{font-size:21px!important}.ending-secret{margin-bottom:16px}.ending-secret summary{font-size:15px;cursor:pointer}.ending-secret .ending-secret-note{font-size:13px!important;color:#386144}
.text-large .ending-card p,.text-large .ending-hero-copy p,.text-large .ending-checks{font-size:21px}.text-large .ending-small{font-size:16px!important}.text-large .ending-tabs button,.text-large .ending-actions button{font-size:17px}
.ending-hero{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.ending-hero>*{min-width:0}.ending-scene{width:100%;align-self:center}.ending-scene>img{position:absolute;inset:0;object-fit:contain}.ending-hero-copy{overflow-wrap:anywhere}
@keyframes endingGrow{from{opacity:0;transform:scaleY(.15)}to{opacity:1;transform:scaleY(1)}}@keyframes endingReturn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}@keyframes endingRankRise{from{opacity:.4;transform:translateY(9px)}to{opacity:1;transform:none}}
@media(max-width:1150px){.ending-hero{grid-template-columns:1fr}.ending-scene{max-height:500px}.ending-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ending-hero-copy{padding:25px}.ending-hero-copy h2{font-size:26px}.ending-skill-grid{grid-template-columns:1fr}.certificate-animals{gap:5px}.certificate-animals p{font-size:11px}}
@media(max-width:650px){.ending-tabs{gap:7px}.ending-tabs button{font-size:12px;flex:1 1 43%}.ending-hero-copy{padding:23px 20px}.ending-hero-copy h2{font-size:24px}.ending-hero-copy p,.ending-card p{font-size:17px}.ending-scene-label{font-size:10px;padding:7px}.ending-grid{grid-template-columns:1fr}.ending-card{padding:21px}.ending-profile{flex-direction:column;gap:12px;text-align:center}.ending-profile .ending-actions{justify-content:center}.ending-rank-path{grid-template-columns:1fr}.ending-rank-path li{display:grid;grid-template-columns:40px 1fr}.ending-rank-path small{grid-column:2}.ending-stats{gap:7px}.ending-stats>div{padding:14px 6px}.ending-stats strong{font-size:25px}.ending-stats span{font-size:11px}.ending-evidence p{flex-direction:column;gap:4px}.ending-evidence span{white-space:normal}.ending-certificate{padding:35px 20px}.ending-certificate h2{font-size:23px}.ending-certificate h3{font-size:28px}.certificate-animals{grid-template-columns:repeat(2,1fr)}.certificate-animals p{font-size:13px}.certificate-animals>div:last-child{grid-column:1/-1}.certificate-animals>div:last-child>span{max-width:110px}.ending-certificate p{font-size:15px}.ending-reflection fieldset label{font-size:17px}.ending-action-label{font-size:19px}.ending-actions button{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){.ending-scene *{animation:none!important;transition:none!important}}.reduce-motion .ending-scene *{animation:none!important;transition:none!important}
@media print{@page{size:A4 landscape;margin:10mm}body{background:#fff}body *{visibility:hidden!important}.ending-certificate,.ending-certificate *{visibility:visible!important}.ending-certificate{position:absolute;left:0;top:0;width:100%;max-width:none;min-height:180mm;padding:22px;border:3px solid #365f43;break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}.ending-certificate h2{font-size:27px}.ending-certificate h3{font-size:30px}.ending-certificate p{font-size:14px;margin:9px 0}.ending-certificate h4{font-size:19px}.certificate-animals{grid-template-columns:repeat(5,1fr)}.certificate-animals>div:last-child{grid-column:auto}.certificate-animals>div>span{max-width:100px}.certificate-animals p{font-size:11px}.certificate-rank{font-size:20px;margin:12px 0}.ending-certificate small{font-size:11px}.sidebar,header,footer,.intro,.ending-tabs,.certificate-actions{display:none!important}main{padding:0;width:100%;max-width:none}.ending-certificate .discovery-animal{background-image:url('discovery-animals.png')!important}.ending-certificate .discovery-tiger-fixed{background-image:url('discovery-tiger-fixed.png')!important}}
