:root{--ink:#40342c;--red:#ac392b;--muted:#7b6b5a;--line:#ddcdb5;--paper:#fffaf0;--bg:#faf3e6;--gold:#d8a44d;--sage:#7b8864;font-family:system-ui,-apple-system,"Segoe UI","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg)}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.8}button,input{font:inherit}button,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--red);outline-offset:4px}h1,h2,h3,p{margin:0 0 16px}h1{font-size:clamp(36px,5vw,62px);font-weight:800;letter-spacing:-1.5px;line-height:1.25}h2{font-size:24px;line-height:1.5}h3{font-size:16px}.red{color:var(--red)}.masthead{max-width:980px;margin:auto;padding:18px 28px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);gap:12px}.brand{text-decoration:none;font-weight:800;font-size:19px;white-space:nowrap;letter-spacing:2px}.brand span{font-size:11px;font-weight:400;letter-spacing:0;margin-left:16px;color:var(--muted)}.quiet{border:0;background:none;color:var(--muted);padding:10px 5px;min-height:44px;font-size:13px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:14px;border:1px solid var(--red);border-radius:10px;min-height:52px;padding:13px 22px;text-decoration:none;font-weight:700}.primary{color:#fffaf0;background:var(--red);box-shadow:0 3px 0 #77332a}.primary:hover{background:#943026}.secondary{color:var(--red);background:var(--paper)}.wide{width:100%}#app{max-width:920px;margin:auto;padding:34px 28px 24px;min-height:60vh}.eyebrow{display:flex;justify-content:space-between;gap:16px;color:var(--red);font-size:12px;letter-spacing:1px;margin-bottom:28px}.eyebrow span:last-child{color:var(--muted)}.lead{font-size:18px;line-height:1.9;margin:22px 0}.hero,.welcome{max-width:700px;margin:auto}.entry-status{display:flex;align-items:center;gap:7px;font-size:13px;margin:0 0 22px;flex-wrap:wrap;color:var(--sage)}.entry-status span{margin-left:auto;color:var(--muted)}.entry-status i{width:6px;height:6px;border-radius:50%;background:var(--sage)}#start{justify-content:space-between;font-size:18px;padding:15px 23px}.fine{color:var(--muted);font-size:12px;line-height:1.8;margin:12px 0}.entry-note{padding:20px;background:#f1e6d2;border-radius:12px;margin:26px 0}.entry-note p{font-size:14px;margin:7px 0 16px}.tasting-menu{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:24px 0;border-top:1px dashed var(--line);border-bottom:1px dashed var(--line);margin-top:28px}.dish{text-align:center}.food-art{display:block;width:100%;height:auto;max-width:240px;margin:auto}.dish b{display:block;font-size:13px;font-weight:650}.dish small{font-size:11px;color:var(--muted);display:block;margin-top:3px}.intro-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;max-width:700px;margin:35px auto 0}.intro-grid article{padding:18px 0}.intro-grid span,.section-label{font-size:12px;color:var(--red);letter-spacing:1px;margin-bottom:14px;display:block}.intro-grid h2{font-size:22px}.intro-grid p,.records p{color:var(--muted);font-size:14px}.records{max-width:700px;margin:44px auto 0;padding-top:24px;border-top:1px solid var(--line)}.record{width:100%;padding:18px 0;background:none;border:0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;text-align:left;color:var(--ink);gap:18px}.record span{font-weight:700}.record small{font-size:12px;color:var(--muted);flex-shrink:0}.quiz-head{display:flex;justify-content:space-between;align-items:center;max-width:680px;margin:auto;color:var(--red);font-size:14px}.progress{height:5px;background:#e9ddc6;max-width:680px;margin:10px auto 22px;border-radius:9px;overflow:hidden}.progress span{display:block;height:100%;background:var(--red);transition:width .2s}.question-card{max-width:680px;margin:auto;padding:32px;background:var(--paper);border:1px solid var(--line);border-radius:16px}.page-number{color:var(--red);font-size:12px;margin-bottom:16px}.question{font-size:27px;line-height:1.65;letter-spacing:0;font-weight:700}.question:focus{outline:none}.options{display:grid;gap:10px;margin:25px 0}.option{width:100%;display:flex;align-items:center;gap:13px;text-align:left;min-height:54px;padding:11px 16px;border:1px solid var(--line);border-radius:9px;background:#fffdf7;color:var(--ink);font-size:15px}.option-index{font-size:11px;border:1px solid var(--line);border-radius:50%;width:25px;height:25px;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--muted)}.selected-mark{visibility:hidden;margin-left:auto}.option[aria-pressed=true]{background:#f9e6da;border-color:var(--red);color:var(--red);box-shadow:inset 0 0 0 1px var(--red)}.option[aria-pressed=true] .selected-mark{visibility:visible}.option[aria-pressed=true] .option-index{background:var(--red);color:white;border-color:var(--red)}.option.minor{background:none;border-style:dashed;font-size:13px;color:var(--muted)}.quiz-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:25px}.save-state,.center{text-align:center}.index-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:20px 0}.index-grid button{border:1px solid var(--line);background:var(--paper);min-height:44px;color:var(--ink);border-radius:6px}.index-grid .answered{background:var(--red);color:white}.index-grid .current{outline:2px solid var(--ink);outline-offset:2px}.result-top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;margin-bottom:18px;color:var(--muted)}.report{max-width:760px;margin:auto;background:var(--paper);border:1px solid var(--line);padding:40px;overflow-wrap:anywhere;border-radius:4px}.report-heading{text-align:center;padding-bottom:30px;border-bottom:1px dashed var(--line)}.result-dishes{display:flex;justify-content:center;align-items:center;max-width:260px;margin:10px auto 12px}.result-dishes .food-art{width:100%;min-width:0}.result-dishes.mixed{max-width:440px;flex-wrap:wrap}.result-dishes.mixed .food-art{width:50%;max-width:200px}.result-stamp{border:1px solid var(--red);display:table;transform:rotate(-4deg);margin:5px auto 20px;padding:2px 9px;font-size:12px;color:var(--red);letter-spacing:2px}.report h1{font-size:36px;color:var(--red);line-height:1.45;letter-spacing:-.5px;margin:0 0 18px}.report blockquote{margin:18px 0 0;font-size:21px;line-height:1.8}.tendency-map{padding:30px 0 0}.axis{margin:23px 0}.axis h3{display:flex;justify-content:space-between;gap:10px;margin-bottom:12px}.axis h3 small{font-size:12px;font-weight:400;color:var(--red)}.axis-track{height:6px;margin:0 8px;background:#e6dcc8;position:relative;border-radius:9px}.axis-track:after{content:'';position:absolute;left:50%;top:-3px;width:1px;height:12px;background:#ac967b}.axis-track i{position:absolute;top:-3px;width:12px;height:12px;border-radius:50%;transform:translateX(-50%);background:var(--red);z-index:1}.mixed-range{position:absolute;left:25%;width:50%;height:100%;background:var(--gold);border-radius:9px}.axis-labels{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:var(--muted);margin-top:8px}.axis-labels span:last-child{text-align:right}.chapter{padding:26px 0 0;margin:24px 0 0;border-top:1px dashed var(--line)}.chapter-number{color:var(--red);font-size:12px;letter-spacing:2px;display:inline-block;margin-bottom:12px}.chapter p{white-space:pre-line}.chapter p:last-child{margin-bottom:0}.chapter h2{font-size:22px}.evidence-item{margin-top:22px}.evidence-item small{color:var(--muted);font-size:12px}.evidence-item blockquote{border-left:3px solid var(--gold);padding:4px 0 4px 14px;font-size:15px;margin:8px 0 16px}.scope{font-size:13px;color:var(--muted)}summary{cursor:pointer;min-height:44px;font-weight:650;font-size:14px}.scope a{color:var(--red)}.report-end{padding-top:22px;margin-top:34px;border-top:2px solid var(--red);font-size:14px;color:var(--red)}.report-end small{font-size:12px;color:var(--muted)}.share-paper{text-align:center;min-height:540px;border:2px solid var(--red);background:var(--paper);border-radius:18px}.share-paper .eyebrow{font-size:11px}.share-paper .report-end{margin-top:40px}.toolbar{display:flex;flex-wrap:wrap;gap:12px;margin:24px auto 12px;max-width:760px}.toolbar button{flex:1 1 220px}.result-extras{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.export-container,.card-export{position:fixed;left:-12000px;top:0;width:720px;background:var(--paper);pointer-events:none}.card-export{width:560px}.site-footer{max-width:920px;margin:28px auto 0;padding:24px;border-top:1px solid var(--line);text-align:center;color:var(--muted);display:flex;flex-direction:column;align-items:center;font-size:13px}.site-footer small{font-size:11px}dialog{width:calc(100% - 28px);max-width:580px;max-height:90dvh;overflow:auto;border:1px solid var(--line);background:var(--paper);color:var(--ink);padding:28px;border-radius:12px}dialog::backdrop{background:#40342c80}#modal-content{position:relative}.close-x{position:absolute;right:-10px;top:-16px;background:none;border:0;font-size:26px;color:var(--muted);padding:10px}dialog h2{padding-right:25px}.modal-actions{display:flex;flex-wrap:wrap;gap:12px}.modal-actions button{flex:1}.image-scroll{max-height:45vh;overflow:auto;border:1px solid var(--line);margin:18px 0}.image-preview{width:100%;display:block}input{width:100%;max-width:100%;padding:12px;border:1px solid var(--line);margin-bottom:16px;background:white}#toast{position:fixed;left:50%;bottom:max(25px,env(safe-area-inset-bottom));transform:translateX(-50%);width:max-content;max-width:90vw;background:var(--ink);color:white;padding:12px 20px;border-radius:9px;font-size:14px;z-index:10}.alert{padding:16px;background:#f5ded1;color:#7d2b24;border-radius:8px}.loading{text-align:center;padding:60px 0}[hidden]{display:none!important}
@media(max-width:600px){.masthead{padding:12px 18px}.brand{font-size:16px}.brand span{font-size:10px;margin-left:10px}#app{padding:24px 18px}.eyebrow{font-size:10px;margin-bottom:20px;letter-spacing:.5px}.hero h1,.welcome h1{font-size:36px;line-height:1.35}.lead{font-size:15px;margin:18px 0}.entry-status{font-size:11px;margin-bottom:20px}.tasting-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 18px;margin-top:24px;padding:20px 0}.dish .food-art{max-width:155px}.dish b{font-size:13px}.intro-grid{grid-template-columns:1fr;gap:0;margin-top:20px}.intro-grid article{border-bottom:1px solid var(--line)}.question-card{padding:22px 16px}.question{font-size:21px;line-height:1.65}.options{margin:22px 0}.option{padding:10px 13px;font-size:14px}.quiz-nav .primary{padding:12px 14px;font-size:14px}.report{padding:25px 18px}.report h1{font-size:29px}.report .result-dishes{max-width:210px}.report .result-dishes.mixed{max-width:300px}.report h2{font-size:20px}.report p{font-size:15px}.report blockquote{font-size:19px}.report .evidence-item blockquote{font-size:14px}.report .scope p{font-size:12px}.axis h3{font-size:14px}.record{flex-direction:column;gap:3px}.share-paper{min-height:510px}.export-container .report{padding:38px;font-size:16px}.export-container .report h1{font-size:38px}.export-container .report p{font-size:16px}.export-container .report h2{font-size:23px}.export-container .report .result-dishes{max-width:260px}.export-container .report .result-dishes.mixed{max-width:400px}.card-export .report{padding:38px;min-height:650px}.card-export .report h1{font-size:38px}.card-export .report blockquote{font-size:25px}.card-export .report .result-dishes{max-width:260px}dialog{padding:24px 20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
