:root{color-scheme:dark;--ink:#f7f4ea;--muted:rgba(255,250,239,.68);--gold:#dfbd74;--deep:#1c1b17;--serif:"Songti SC","STSong","SimSun",serif;--sans:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif}
*{box-sizing:border-box}
html,body{min-height:100%;margin:0}
body{font-family:var(--sans);background:#d6d0c4;color:var(--ink);-webkit-font-smoothing:antialiased}
button,a{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible{outline:2px solid #f5d28a;outline-offset:4px}
svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.svg-defs{position:absolute;width:0;height:0;overflow:hidden}
.workspace{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:clamp(48px,8vw,132px);padding:42px 48px;background:radial-gradient(ellipse at 16% 15%,#ece8dd 0,transparent 52%),linear-gradient(130deg,#e1ddd1,#bcb6a6)}
.intro{align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;width:min(440px,42vw);max-height:840px;margin:auto 0;color:#302f28}
.intro-brand,.mini-brand{display:flex;align-items:center;gap:12px}
.brand-seal,.mini-seal{display:grid;place-items:center;flex:none;border:1px solid currentColor;font-family:var(--serif);font-weight:700}
.brand-seal{width:40px;height:40px;color:#785a32;font-size:23px}
.intro-brand strong{display:block;font-family:var(--serif);font-size:20px;letter-spacing:.14em}
.intro-brand small,.mini-brand small{display:block;margin-top:4px;letter-spacing:.18em;font-size:8px;font-weight:600}
.intro-brand small{color:#8b816e}
.intro-copy{padding:50px 0 40px}
.eyebrow{display:flex;align-items:center;gap:10px;color:#8b7753;font-size:11px;font-weight:600;letter-spacing:.2em}
.eyebrow span{width:24px;height:1px;background:#9c875f}
.intro h1{font-family:var(--serif);font-size:clamp(38px,3.7vw,56px);line-height:1.36;letter-spacing:.05em;font-weight:500;margin:27px 0 23px}
.intro h1 span{color:#957448}.intro h1 em{font-style:normal;color:#b49156}
.intro-copy>p{font-family:var(--serif);font-size:16px;line-height:2;letter-spacing:.08em;color:#777166}
.intro-rule{height:1px;background:#b9b19f;margin:49px 0 24px}
.intro-guide{display:flex;gap:20px;margin-top:18px;align-items:flex-start}
.intro-guide>span{font-size:10px;letter-spacing:.15em;color:#ad9368;padding-top:5px}
.intro-guide p{margin:0;font-size:13px;color:#514d43;line-height:1.7;letter-spacing:.07em}
.intro-guide small{font-size:11px;color:#999184}
.intro-footer{display:flex;justify-content:space-between;border-top:1px solid #b9b19f;padding-top:17px;color:#8e8576;font-size:10px;letter-spacing:.14em}
.device{width:min(410px,40vw);height:min(824px,calc(100vh - 84px));min-height:660px;flex:none;padding:7px;border:1px solid #656157;border-radius:38px;background:#1c1c1a;box-shadow:0 30px 80px #39332755,0 2px 5px #fff8 inset}
.app{height:100%;position:relative;overflow:hidden;border-radius:31px;background:#33291e;isolation:isolate}
.app-bg,.camera-video,.photo-shade,.screen-noise{position:absolute;inset:0;width:100%;height:100%}
.app-bg{z-index:-4;background:#4b3d29 url('./assets/grotto-illustration.png') center 42%/cover no-repeat;transition:filter .5s,transform .65s}
.camera-video{z-index:-3;object-fit:cover;background:#2b251d}
.camera-video[hidden]{display:none}
.photo-shade{z-index:-2;background:linear-gradient(180deg,rgba(18,16,13,.76) 0%,rgba(18,16,13,.3) 20%,rgba(21,18,14,.04) 44%,rgba(17,16,13,.35) 66%,rgba(15,14,12,.9) 100%);pointer-events:none}
.screen-noise{z-index:-1;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.12),transparent 24%,transparent 78%,rgba(0,0,0,.13))}
.view{position:absolute;inset:0;display:flex;flex-direction:column;overflow:hidden}
.view[hidden]{display:none}
.app-header,.inner-header,.detail-header{display:flex;align-items:center;flex:none;z-index:2}
.app-header{justify-content:space-between;padding:30px 25px 0}
.mini-brand{gap:8px;color:#fbf9f2}
.mini-seal{width:28px;height:28px;font-size:15px}
.mini-brand>span:last-child{font-family:var(--serif);font-size:15px;letter-spacing:.14em;font-weight:bold}
.mini-brand small{font-family:var(--sans);font-size:6px;letter-spacing:.17em;color:#e5daca;font-weight:500;margin-top:2px}
.icon-button{display:grid;place-items:center;border:0;color:inherit;background:transparent;padding:0;flex:none}
.info-button,.about-detail{width:36px;height:36px;border:1px solid #ffffff44;border-radius:50%;background:#1b1a1699}
.info-button svg,.about-detail svg{width:17px;height:17px}
.scan-topline{display:flex;align-items:center;gap:7px;padding:30px 25px 0;font-size:10px;letter-spacing:.1em;color:#e9e4d9}
.live-dot{width:6px;height:6px;border-radius:50%;background:#e9c77d;box-shadow:0 0 12px #e9c77d}
.topline-divider{height:11px;width:1px;background:#ffffff80;margin:0 4px}
.scan-title{padding:15px 25px 0}.section-index{font-size:9px;letter-spacing:.2em;color:#e0c592;font-weight:600}
.scan-title h2{font-size:29px;line-height:1.25;font-family:var(--serif);font-weight:600;letter-spacing:.13em;margin:8px 0 7px;text-shadow:0 2px 12px #0005}
.scan-title p{margin:0;color:#f5eee2cc;font-size:11px;letter-spacing:.06em}
.asset-note{display:inline-block;margin-top:9px;padding:3px 7px;border:1px solid #ffffff55;border-radius:3px;background:#201c1677;color:#f7eee0d9;font-size:9px;letter-spacing:.04em}
.asset-note[hidden]{display:none}
.scanner-area{flex:1;min-height:105px;display:flex;align-items:center;justify-content:center;padding:15px 0 10px}
.scanner-frame{width:72%;height:min(83%,240px);max-height:240px;min-height:125px;position:relative}
.corner{position:absolute;width:28px;height:28px;border-color:rgba(255,255,249,.93);border-style:solid;filter:drop-shadow(0 2px 4px #0007)}
.tl{top:0;left:0;border-width:3px 0 0 3px;border-radius:3px 0 0 0}.tr{top:0;right:0;border-width:3px 3px 0 0;border-radius:0 3px 0 0}.bl{bottom:0;left:0;border-width:0 0 3px 3px;border-radius:0 0 0 3px}.br{bottom:0;right:0;border-width:0 3px 3px 0;border-radius:0 0 3px 0}
.scan-line{position:absolute;top:0;left:5%;right:5%;height:1px;background:linear-gradient(90deg,transparent,#efcf8f,transparent);box-shadow:0 0 12px #f6dc9e;animation:scan 4.5s ease-in-out infinite;opacity:.68}
@keyframes scan{0%,100%{top:8%;opacity:0}15%{opacity:.75}80%{opacity:.7}90%{top:93%;opacity:0}}
.focus{position:absolute;width:5px;height:5px;border-radius:50%;background:#fffceebd;box-shadow:0 0 12px #fff9}.focus-1{left:30%;top:25%}.focus-2{left:65%;top:38%;width:4px;height:4px}.focus-3{left:50%;top:57%;width:7px;height:7px}.focus-4{left:25%;top:73%;width:3px;height:3px}.focus-5{left:79%;top:76%;width:4px;height:4px}
.scan-bottom{flex:none;padding:0 28px 27px;text-align:center}
.scan-caption{display:flex;align-items:center;justify-content:center;gap:9px;margin-bottom:20px;color:#f4e9d9d9;font-family:var(--serif);font-size:11px;letter-spacing:.12em}
.caption-dash{height:1px;width:19px;background:#e9ddc899}
.preview-notice{margin:0 0 14px;padding:8px 12px;border:1px solid #f0d3a142;border-radius:8px;background:#171711a6;color:#f1dec0;font-size:11px;line-height:1.5}
.scan-actions{display:flex;align-items:center;justify-content:center;gap:clamp(30px,7vw,50px)}
.side-action{border:0;background:none;color:#f8f5eb;min-width:53px;padding:0;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:10px;letter-spacing:.04em}
.side-action-icon{height:38px;width:38px;display:grid;place-items:center;border:1px solid #ffffff9c;border-radius:50%;background:#24221c88}
.side-action-icon svg{width:17px;height:17px}.side-action-gold{color:#efd497;border-color:#d2ad70;font-size:13px;font-family:Georgia,serif}
.shutter{width:70px;height:70px;padding:5px;border:1px solid #ffffffbb;border-radius:50%;background:#ffffff24;color:#fff;display:grid;place-items:center;transition:transform .2s,background .2s}
.shutter:hover{transform:scale(1.05);background:#ffffff40}.shutter:active{transform:scale(.95)}
.shutter-inner{width:56px;height:56px;display:grid;place-items:center;border-radius:50%;background:#f8f7ef;color:#211f1a}
.shutter-inner svg{width:30px;height:30px;stroke-width:1.5}
.action-hint{margin:17px 0 0;font-size:10px;letter-spacing:.08em;color:#ffffff99}
.inner-header{justify-content:space-between;padding:29px 23px 0;font-size:15px;font-weight:600;letter-spacing:.08em}
.back-button{width:34px;height:34px;color:#fff}.back-button svg{width:24px;height:24px;stroke-width:2.1}.header-spacer{width:34px}
.result-top{padding:39px 29px 0}.result-kicker{display:flex;gap:8px;align-items:center;color:#e9d1a1;font-size:10px;letter-spacing:.16em}
.result-top>p{font-family:var(--serif);font-size:14px;letter-spacing:.12em;margin:11px 0;color:#ffffffd9}
.result-bottom{margin-top:auto;padding:0 25px 33px}
.result-overline{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:#e8d2aa;letter-spacing:.14em;margin-bottom:14px}
.result-card{position:relative;display:flex;min-height:128px;padding:10px;gap:16px;background:rgba(248,246,237,.95);color:#292a24;border-radius:4px;box-shadow:0 8px 32px #0004}
.result-card-image{width:88px;flex:none;background:url('./assets/grotto-illustration.png') center 30%/cover no-repeat}
.result-card-copy{padding:6px 32px 5px 0}.result-number{font-size:9px;letter-spacing:.15em;color:#9c8054;white-space:nowrap}.result-number i{display:inline-block;width:3px;height:3px;border-radius:50%;background:#ad8c58;vertical-align:middle;margin:0 4px}
.result-card h2{font-family:var(--serif);font-size:22px;letter-spacing:.1em;margin:14px 0 8px}.result-card p{font-size:10px;line-height:1.6;color:#797465;margin:0}
.result-open{position:absolute;right:15px;bottom:16px;width:31px;height:31px;border:1px solid #b49c77;border-radius:50%;background:transparent;color:#765e36;font-size:17px}
.result-disclaimer{font-size:10px;line-height:1.6;color:#eee8d8c4;margin:11px 0 23px}
.outline-button{width:100%;display:flex;justify-content:space-between;align-items:center;padding:15px 17px;color:#fff;border:1px solid #ffffff72;background:#1b1a1477;text-align:left;font-size:12px;letter-spacing:.09em}
.outline-button span{font-size:17px;color:#e5c489}
.detail-header{justify-content:space-between;gap:6px;padding:24px 15px 0}.detail-tabs{display:flex;justify-content:center;flex:1;gap:clamp(12px,3.6vw,21px)}
.tab{position:relative;color:#ffffffa8;border:0;background:none;padding:9px 0;font-family:var(--serif);font-size:16px;letter-spacing:.05em}.tab.is-selected{color:#fff;font-weight:700}.tab.is-selected:after{content:"";position:absolute;bottom:1px;left:1px;right:1px;height:2px;background:var(--gold)}
.about-detail{width:32px;height:32px}.about-detail svg{width:15px;height:15px}
.detail-marker{display:flex;align-items:center;gap:8px;margin:25px 25px 0;font-size:11px;letter-spacing:.1em;text-shadow:0 1px 6px #000}.detail-marker small{color:#f2d9ac;font-size:9px}.marker-line{width:19px;height:1px;background:#ecd39e}
.detail-image-caption{position:absolute;left:27px;top:29%;text-shadow:0 2px 10px #0006}.detail-image-caption span{display:block;color:#f0d09c;font-size:8px;letter-spacing:.2em;margin-bottom:10px}.detail-image-caption strong{font-family:var(--serif);font-weight:500;font-size:29px;line-height:1.45;letter-spacing:.12em}
.detail-sheet{position:absolute;z-index:3;left:0;right:0;bottom:0;height:43%;min-height:245px;display:flex;flex-direction:column;background:rgba(247,245,235,.95);color:#3f4038;border-radius:22px 22px 0 0;box-shadow:0 -10px 30px #1e1b1430;transition:height .35s cubic-bezier(.2,.7,.2,1)}
.detail-sheet.is-expanded{height:78%}.sheet-handle{position:relative;border:0;background:transparent;width:100%;height:31px;flex:none;color:#9b8b6f;display:flex;align-items:center;justify-content:center}
.sheet-handle span{width:36px;height:3px;border-radius:3px;background:#b7ac98}.sheet-handle svg{position:absolute;right:22px;width:16px;height:16px;transition:transform .3s}.detail-sheet.is-expanded .sheet-handle svg{transform:rotate(180deg)}
.sheet-body{overflow-y:auto;overscroll-behavior:contain;padding:0 27px 27px;scrollbar-width:thin;scrollbar-color:#c9bda8 transparent}
.sheet-heading{display:flex;justify-content:space-between;align-items:center}.sheet-kicker{font-size:9px;letter-spacing:.14em;color:#a18356}.sheet-heading h2{font-family:var(--serif);font-size:24px;color:#34362d;letter-spacing:.09em;margin:8px 0 0}
.font-button{width:38px;height:38px;border:1px solid #d3c9b8;border-radius:50%;background:#faf8ef;color:#927852;font-family:Georgia,serif;font-size:16px}.font-button span{font-size:11px}
.detail-lead{font-family:var(--serif);font-size:13px;color:#8a7456;line-height:1.8;letter-spacing:.05em;margin:15px 0 11px}
.detail-copy{font-size:13px;line-height:1.9;letter-spacing:.055em;color:#57584e;margin:0}.sheet-body.large-text .detail-copy{font-size:16px}.sheet-body.large-text .detail-lead{font-size:15px}
.listen-row{display:flex;align-items:center;gap:10px;margin-top:19px}.listen-button{display:inline-flex;align-items:center;gap:6px;border:0;padding:8px 12px;border-radius:20px;background:#a78957;color:#fff;font-size:11px}.listen-button svg{width:15px;height:15px}.listen-hint{font-size:10px;color:#a39783}.waveform{display:flex;align-items:center;gap:3px;margin-left:auto;height:16px}.waveform i{width:2px;height:6px;background:#c4ad84}.waveform i:nth-child(3n){height:12px}.waveform i:nth-child(4n){height:9px}
.sheet-divider{height:1px;background:#ded7ca;margin:21px 0}.source-section>span{display:block;font-family:var(--serif);font-weight:600;font-size:14px;letter-spacing:.06em;color:#6b614e;margin-bottom:11px}.source-section a{display:flex;justify-content:space-between;align-items:center;padding:14px;background:#e9e5d9;color:#4d4e43;text-decoration:none;font-size:11px;letter-spacing:.04em}.source-section a b{font-size:17px;color:#a98855}
.detail-disclaimer{font-size:10px;line-height:1.65;color:#9b9589;margin:16px 0 0}
.toast{position:absolute;z-index:9;left:50%;bottom:20%;width:max-content;max-width:85%;padding:10px 15px;transform:translate(-50%,8px);border:1px solid #ffffff30;border-radius:8px;background:#1b1a17e8;color:#fff;font-size:12px;line-height:1.5;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}
.about-dialog{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:calc(100% - 44px);max-width:360px;margin:0;padding:30px 25px 23px;border:1px solid #e4d7bd;border-radius:8px;background:#f7f4e9;color:#48473e;box-shadow:0 10px 60px #0008}.about-dialog::backdrop{background:#171510b8}.dialog-close{position:absolute;right:15px;top:15px;color:#807b6d}.dialog-close svg{width:18px;height:18px}.dialog-kicker{font-size:9px;letter-spacing:.15em;color:#9b8055}.about-dialog h2{font-family:var(--serif);font-size:22px;letter-spacing:.08em;margin:13px 0 18px}.about-dialog p{font-size:12px;line-height:1.9;color:#6a685d}.dialog-confirm{width:100%;margin-top:12px;padding:12px;border:0;background:#a18455;color:#fff;font-size:12px;letter-spacing:.1em}
@media (max-width:760px){.workspace{padding:0;min-height:100vh;gap:0;background:#1c1a16}.intro{display:none}.device{width:100%;height:100vh;height:100svh;min-height:0;border:0;border-radius:0;padding:0;box-shadow:none}.app{border-radius:0}.app-header{padding-top:max(25px,env(safe-area-inset-top))}.inner-header{padding-top:max(25px,env(safe-area-inset-top))}.detail-header{padding-top:max(22px,env(safe-area-inset-top))}.scan-bottom{padding-bottom:max(25px,env(safe-area-inset-bottom))}}
@media (max-height:680px){.scan-topline{padding-top:18px}.scan-title{padding-top:9px}.scan-title h2{font-size:25px}.scan-caption{margin-bottom:12px}.scan-bottom{padding-bottom:18px}.shutter{width:62px;height:62px}.shutter-inner{width:49px;height:49px}.detail-sheet{min-height:215px}.detail-image-caption{top:25%}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
