.te-dialog{box-sizing:border-box;width:min(580px,calc(100vw - 24px));max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 24px);padding:0;border:2px solid #dcc28c;border-radius:9px;color:#fff0d4;background:#304765;box-shadow:0 24px 85px #0b1c30a6;overflow:hidden}
.te-dialog::backdrop{background:#102137b8;backdrop-filter:blur(4px)}
.te-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 17px;border-bottom:1px solid #d3bc893d;background:#304765}
.te-title{margin:0;font-size:21px;line-height:1.45;font-weight:600}
.te-title:focus{outline:none}
.te-close,.te-button,.te-work-link{box-sizing:border-box;min-height:44px;min-width:44px;padding:10px 13px;border:1px solid #c4ad7f9e;border-radius:5px;background:#425b7a;color:#fff0d1;font:inherit;font-size:13px;line-height:1.55;cursor:pointer;text-align:center;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.te-close{flex:none;padding-inline:11px}
.te-button:hover,.te-close:hover,.te-work-link:hover{background:#526c8b}
.te-primary{background:#ead09a;color:#24344c;border-color:#f8e2b1;font-weight:600}
.te-primary:hover{background:#f0dba9}
.te-close:focus-visible,.te-button:focus-visible,.te-work-link:focus-visible,.te-share-url:focus-visible{outline:3px solid #fff1b8;outline-offset:3px}
.te-body{box-sizing:border-box;padding:19px 18px 20px;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 100px);overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
.te-intro{margin:0 0 16px;color:#f4e8d0;font-size:15px;line-height:1.85}
.te-guide-steps{margin:0 0 20px;padding-left:22px;color:#dfd6c4;font-size:13px;line-height:1.85}
.te-guide-steps li+li{margin-top:8px}
.te-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}
.te-actions .te-button{flex:1 1 31%}
.te-note{margin:12px 0 0;color:#d4c8b0;font-size:11px;line-height:1.75}
.te-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:20px}
.te-stat{min-width:0;padding:13px 12px;border:1px solid #c7ae8077;border-radius:6px;background:#273e5b;display:flex;flex-direction:column;gap:7px}
.te-stat-label{font-size:12px;color:#f1dbaa}
.te-stat-value{font-size:25px;line-height:1.1;color:#ffe1a3;font-weight:600}
.te-stat-detail{font-size:11px;line-height:1.7;color:#e0d4bc}
.te-ending-banner{height:60px;display:flex;justify-content:center;align-items:center;gap:25px;margin:0 0 15px;padding:0 20px;color:#f5d994;background:linear-gradient(90deg,#273b5a00,#273b5a,#273b5a00);font-size:33px;overflow:hidden}
.te-banner-flag{transform:rotate(-9deg)}
.te-banner-star{transform:rotate(8deg)}
.te-ending-banner.is-celebrating span{animation:te-arrive 620ms cubic-bezier(.22,.7,.25,1) both}
.te-ending-banner.is-celebrating .te-banner-note{animation-delay:110ms}
.te-ending-banner.is-celebrating .te-banner-star{animation-delay:220ms}
@keyframes te-arrive{0%{opacity:0;translate:0 12px;scale:.84}100%{opacity:1;translate:0 0;scale:1}}
.te-subtitle{font-size:13px;font-weight:500;margin:0 0 9px;color:#e7d6b4}
.te-work-links{display:flex;flex-wrap:wrap;gap:7px}
.te-work-link{flex:1 1 30%;font-size:12px;padding:8px}
.te-share{display:flex;flex-wrap:wrap;gap:8px;padding-top:15px;margin-top:16px;border-top:1px solid #ac997345}
.te-share .te-button{flex:1 1 auto}
.te-share-status{flex-basis:100%;margin:0;font-size:12px;color:#dce4c7;line-height:1.7}
.te-share-status:empty{display:none}
.te-share-url{box-sizing:border-box;min-height:44px;width:100%;min-width:0;padding:10px 11px;border:1px solid #ccb787;border-radius:4px;background:#203752;color:#fff0cd;font:inherit;font-size:13px}
@media(max-width:360px){.te-dialog{width:calc(100vw - 18px)}.te-header{padding:10px 11px;gap:7px}.te-title{font-size:17px}.te-body{padding:14px 12px}.te-intro{font-size:14px}.te-actions .te-button{flex:1 1 43%}.te-actions .te-primary{flex-basis:100%}.te-work-link{flex-basis:43%}.te-stat{padding:11px 9px}.te-stat-detail{font-size:10px}}
@media(orientation:landscape) and (max-height:500px){.te-header{padding:8px 12px}.te-body{max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 88px);padding:12px 14px}.te-ending-banner{height:38px;font-size:26px;margin-bottom:9px}.te-intro{font-size:13px}.te-guide-steps{margin-bottom:14px}}
@media(prefers-reduced-motion:reduce){.te-ending-banner.is-celebrating span{animation:none}}
html[data-motion="off"] .te-ending-banner.is-celebrating span{animation:none}
