/* App-owned surfaces, retaining keyboard and assistive-technology semantics. */
.adventure-video-toolbar[hidden]{display:none}
.adventure-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:30px;border:1px solid #dce2d2;border-radius:26px;background:#fffdf7;color:#314d43;box-shadow:0 24px 70px #273c3533;font:16px/1.8 ui-rounded,"Microsoft YaHei UI","Microsoft YaHei","PingFang SC",sans-serif}
.adventure-dialog::backdrop{background:#263c3959;backdrop-filter:blur(3px)}
.adventure-dialog-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:16px;background:#edf2e6;color:#668353;margin-bottom:18px}.adventure-dialog-mark svg{width:25px;height:25px}
.adventure-dialog h2{font-size:24px;line-height:1.5;letter-spacing:0;margin:0 0 12px;font-weight:750}.adventure-dialog-message{font-size:15px;line-height:1.9;color:#708075;margin:0;white-space:pre-line}
.adventure-dialog .adventure-dialog-close{position:absolute;right:17px;top:15px;display:grid;place-items:center;box-sizing:border-box;width:40px;height:40px;min-height:40px;max-width:none;margin:0;padding:0;border:0;border-radius:50%;background:transparent;color:#7e8c7b;font:26px/1 sans-serif;cursor:pointer}
.adventure-dialog .adventure-dialog-close:hover{background:#edf2e6}.adventure-dialog-actions{display:flex;gap:12px;margin-top:26px}
.adventure-dialog-actions button{box-sizing:border-box;flex:1;max-width:100%;min-width:0;min-height:48px;margin:0;padding:12px 16px;border:1px solid #dce2d2;border-radius:14px;font:inherit;font-size:15px;font-weight:600;line-height:1.5;cursor:pointer;color:#314d43}
.adventure-dialog-cancel{background:#fffef9;box-shadow:0 3px 0 #eceee5}.adventure-dialog-accept{background:#e7efd9;box-shadow:0 3px 0 #cbd9bd}.adventure-dialog-cancel:hover{background:#f4f5ee}.adventure-dialog-accept:hover{background:#dce9cd}
.adventure-dialog.is-danger .adventure-dialog-accept{background:#f6dce3;border-color:#edc4d1;box-shadow:0 3px 0 #e6b9c7;color:#88495d}
.adventure-dialog button:focus-visible,.file-label:focus-within{outline:2px solid #8ca479;outline-offset:3px}
input[type=range]{appearance:none;-webkit-appearance:none;box-sizing:border-box;max-width:100%;min-height:44px;background:transparent;cursor:pointer;accent-color:#7b9965}
input[type=range]::-webkit-slider-runnable-track{height:7px;border:1px solid #cfdbc3;border-radius:10px;background:linear-gradient(to right,#8da577 var(--control-fill,0%),#e5ebdb var(--control-fill,0%))}
input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:23px;height:23px;margin-top:-9px;border:2px solid #8da577;border-radius:50%;background:#fffef9;box-shadow:0 2px 4px #354b3120}
input[type=range]::-moz-range-track{height:6px;border:1px solid #cfdbc3;border-radius:10px;background:#e5ebdb}
input[type=range]::-moz-range-progress{height:6px;border-radius:10px;background:#8da577}
input[type=range]::-moz-range-thumb{width:20px;height:20px;border:2px solid #8da577;border-radius:50%;background:#fffef9;box-shadow:0 2px 4px #354b3120}
input[type=range]:focus-visible{outline:2px solid #8ca479;outline-offset:2px;border-radius:10px}input[type=range]:disabled{opacity:.5;cursor:default}
.adventure-meter{display:block;box-sizing:border-box;width:120px;max-width:100%;height:10px;margin:4px auto;border:1px solid #cfdbc3;border-radius:20px;background:#e5ebdb;overflow:hidden}.adventure-meter>span{display:block;height:100%;background:#87a477;border-radius:20px}
details>summary{display:flex;align-items:center;gap:10px;list-style:none;min-height:44px;cursor:pointer}details>summary::-webkit-details-marker{display:none}details>summary::marker{content:''}details>summary::after{content:'';width:8px;height:8px;flex:0 0 8px;margin-left:auto;margin-right:4px;border-right:2px solid #7c946c;border-bottom:2px solid #7c946c;transform:rotate(45deg)}details[open]>summary::after{transform:rotate(225deg)}details>summary:focus-visible{outline:2px solid #8ca479;outline-offset:3px;border-radius:8px}
input[type=file]::file-selector-button{font:inherit;color:#314d43;background:#edf2e6;border:1px solid #d2ddc7;border-radius:12px;padding:10px 16px;margin-right:12px;cursor:pointer}input[type=file]:focus-visible{outline:2px solid #8ca479;outline-offset:3px}
.adventure-field-error{font-size:14px;line-height:1.7;color:#a04d66;margin:8px 0 12px}.adventure-invalid{border-color:#cf8ca1!important;box-shadow:0 0 0 2px #f6dce3}
.adventure-video{margin:14px 0;overflow:hidden;border:1px solid #dbe1d0;border-radius:16px;background:#f6f6ee}.adventure-video video{display:block;width:100%;margin:0!important;border-radius:0!important;max-height:70dvh;object-fit:contain;background:#253932}
.adventure-video-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;padding:12px 14px;background:#fffdf7;color:#314d43;font-size:13px}.adventure-video-toolbar button{box-sizing:border-box;min-height:40px;margin:0;padding:8px 12px;border:1px solid #d7e0cb;border-radius:11px;font:inherit;font-size:13px;font-weight:600;line-height:1.5;background:#f0f4e9;color:#49633f;cursor:pointer}.adventure-video-toolbar button:hover{background:#e5edd9}.adventure-video-toolbar button:focus-visible{outline:2px solid #8ca479;outline-offset:3px}.adventure-video-toolbar input[type=range]{margin:0;padding:0;max-width:100%;min-width:0}
.adventure-video-seek{flex:1 1 200px;width:100%}.adventure-video-time{white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums;color:#778473}.adventure-video-volume{width:76px}.adventure-video-toolbar>.adventure-select{width:88px}.adventure-video-toolbar .adventure-select-trigger{min-height:40px;padding:7px 9px;font-size:12px;gap:4px;border-radius:11px}.adventure-video-status:empty{display:none}.adventure-video-status{padding:0 14px 12px;font-size:13px;color:#778473}
.adventure-video:fullscreen{display:flex;flex-direction:column;justify-content:center;background:#253932;width:100%;height:100%;border:0;border-radius:0}.adventure-video:fullscreen video{min-height:0;max-height:calc(100dvh - 100px);flex:1;object-fit:contain}.adventure-video:fullscreen .adventure-video-toolbar{flex-shrink:0}
@media(max-width:600px){.adventure-dialog{padding:24px;border-radius:22px}.adventure-dialog h2{font-size:22px}.adventure-dialog-message{font-size:14px}.adventure-dialog-actions button{padding:12px 8px;font-size:14px}.adventure-meter{width:80px}.adventure-video-toolbar{gap:8px;padding:10px}.adventure-video-seek{order:-1;flex-basis:100%}.adventure-video-volume{width:60px}.adventure-video-toolbar>.adventure-select{width:80px}}
@media(forced-colors:active){.adventure-meter>span{background:Highlight}input[type=range]::-webkit-slider-thumb{border-color:Highlight}}
