:root{--bg:#1b1713;--surface:#27211b;--line:#42382c;--muted:#b4a58f;--text:#eee3d1;--gold:#d9c099}
body{background:var(--bg)}
.bottom-nav{grid-template-columns:repeat(3,1fr);background:linear-gradient(180deg,#28221d,#191613);border-top:1px solid #c5a36d26;padding:12px 12px max(16px,env(safe-area-inset-bottom));backdrop-filter:none}
.bottom-nav a{position:relative;font-size:11px;font-weight:400;letter-spacing:1px;color:#aa9b87;gap:7px}
.bottom-nav a svg{width:23px;height:23px;stroke-width:1.35}
.bottom-nav a[aria-current]{color:#ead3ad;background:none}
.bottom-nav a[aria-current]:after{content:'';position:absolute;bottom:-6px;width:16px;height:2px;border-radius:2px;background:linear-gradient(90deg,#ab8150,#f1dbb3,#ab8150)}
.swipe-mode .shell{width:min(100%,460px);padding:0;margin:0 auto}
.swipe-mode .topbar,.swipe-mode .footnote{display:none}
.swipe-mode #main,.swipe-mode #app{margin:0;padding:0}
.swipe-mode .bottom-nav{left:50%;transform:translateX(-50%);width:min(100%,460px);max-width:460px;bottom:0;height:86px}
.swipe-mode #connection{position:fixed;top:0;left:50%;transform:translateX(-50%);width:min(100%,460px);z-index:60}
.swipe-stage{position:relative;height:calc(100svh - 86px);min-height:480px;overflow:hidden;background:#18120d}
.swipe-photo{position:absolute;inset:0;touch-action:none;overflow:hidden;outline-offset:-4px}
.swipe-image{width:100%;height:100%;object-fit:cover;object-position:center top;user-select:none;transition:transform .15s ease}
.swipe-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(180deg,#160f0b0d 35%,#160f0b22 50%,#160f0bcc 82%,#160f0bf2)}
.swipe-title{position:absolute;left:28px;right:25px;bottom:90px;pointer-events:none}
.swipe-title h1{font-family:'Songti SC','STSong','SimSun',serif;font-weight:600;font-size:32px;line-height:1.4;letter-spacing:1.2px;color:#f1e5d1}
.swipe-english{font:italic 22px/1.4 Georgia,'Times New Roman',serif;color:#dfc8a6;margin-top:7px}
.swipe-ingredients{font-size:11px;line-height:1.8;letter-spacing:.7px;color:#c5b59f;margin-top:12px}
.swipe-search,.swipe-method,.swipe-sheet button,.swipe-search-panel button{border:0;background:transparent;color:#e1ccaa}
.swipe-search{position:absolute;right:17px;top:16px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#17120d66}
.swipe-search svg{width:21px;height:21px;stroke-width:1.5}
.swipe-method{position:absolute;bottom:19px;left:25px;right:25px;display:flex;align-items:center;justify-content:center;gap:9px;min-height:44px;font-size:12px;letter-spacing:1.5px}
.swipe-method svg{width:14px;height:14px}
.swipe-feedback{position:absolute;top:28px;left:20px;right:72px;padding:9px 12px;text-align:center;font-size:12px;background:#21190de6;color:#e9c78d;border-radius:8px;pointer-events:none}
.swipe-sheet{position:absolute;bottom:0;left:0;right:0;z-index:20;max-height:88%;overflow:auto;overscroll-behavior:contain;padding:12px 24px 26px;background:#211c17;border:1px solid #594936;border-bottom:0;border-radius:24px 24px 0 0;box-shadow:0 -20px 60px #0005}
.sheet-handle{display:flex;align-items:center;justify-content:space-between;position:relative;padding-top:15px;touch-action:none}
.sheet-handle:before{content:'';position:absolute;top:0;left:calc(50% - 17px);width:34px;height:3px;background:#8d795e;border-radius:3px}
.sheet-handle h2{font-size:18px;font-weight:500;letter-spacing:.6px}.sheet-close{width:44px;height:44px;display:grid;place-items:center}
.sheet-versions{display:flex;gap:8px;margin:8px 0}.sheet-versions button{padding:9px 12px;border:1px solid #594936;border-radius:5px;font-size:11px;min-height:40px}.sheet-versions button[aria-pressed=true]{background:#463723}
.sheet-missing{font-size:12px;line-height:1.8;padding:11px 12px;border-radius:6px;background:#32291e;margin:12px 0;color:#e0c495}
.sheet-ingredients{list-style:none;margin:0;padding:0}.sheet-ingredients li{display:flex;justify-content:space-between;gap:10px;padding:13px 0;border-bottom:1px solid #493b2b;font-size:13px}.sheet-ingredients li>span:last-child{flex-shrink:0;font-size:12px;color:#bfb4a4;font-variant-numeric:tabular-nums}.sheet-ingredients small{margin-left:8px;font-size:10px;color:#b5a084}
.sheet-steps{padding-left:20px;margin:22px 0 16px;font-size:13px;line-height:2}.sheet-steps li{padding-left:8px;margin-bottom:11px}.sheet-steps li::marker{color:#c9b28c}.sheet-tools{font-size:12px;color:#bdac94}
.sheet-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}.sheet-actions a{display:flex;align-items:center;gap:6px;font-size:12px;color:#bba88c}.sheet-actions svg{width:15px}.sheet-actions .sheet-save{border:1px solid #7d6542;padding:10px 17px;border-radius:6px;font-size:12px;min-height:44px}
.swipe-search-panel{position:absolute;inset:0;z-index:25;background:#211b15;padding:20px;overflow:auto}.swipe-search-line{display:flex;gap:8px;align-items:center;position:sticky;top:-20px;background:#211b15;padding:8px 0}.swipe-search-line label{flex:1;min-width:0}.swipe-search-line input{width:100%;border:1px solid #554430;background:#30261c;color:#eee1cd;border-radius:8px;padding:12px;font-size:16px}.swipe-search-line button{min-width:44px;min-height:44px;font-size:12px}
.swipe-search-results button{position:relative;width:100%;display:block;text-align:left;padding:17px 28px 17px 4px;border-bottom:1px solid #423526;font-size:15px}.swipe-search-results small{display:block;font:italic 13px Georgia,serif;color:#b7a58b;margin-top:5px}.swipe-search-results svg{position:absolute;right:0;top:24px;width:17px}
.cellar-links{display:grid;gap:12px}.cellar-links>a{display:flex;gap:18px;align-items:center;padding:22px;background:#27211b;border-radius:12px}.cellar-links>a>span{flex:1}.cellar-links small{display:block;font-size:12px;color:#ad9b82;margin-top:4px}.club-game{display:flex;gap:20px;align-items:center;padding:26px 22px;border:1px solid #5c4930;border-radius:16px;background:linear-gradient(130deg,#33281d,#201a14)}.club-game>div{flex:1}.club-game h2{font-family:'Songti SC',serif;letter-spacing:2px}.club-game p{font-size:12px;color:#b7a286;margin-top:8px}.club-symbol{font-size:38px;color:#d4b586}
@media(min-width:600px){.swipe-mode{background:#110e0c}.swipe-stage{height:calc(100svh - 86px);max-height:850px}.swipe-mode .shell{box-shadow:0 0 100px #0006}}
@media(max-width:360px){.swipe-title{left:22px;right:22px}.swipe-title h1{font-size:27px}.swipe-english{font-size:19px}}
@media(prefers-reduced-motion:reduce){.swipe-image{transition:none}}
.shell{padding-top:24px}.swipe-mode .shell{padding-top:0}
.cellar-collection{margin-top:32px}.cellar-collection h2{font-size:15px;font-weight:500;letter-spacing:1px}
.saved-list{display:flex;flex-direction:column}.saved-row{display:flex;align-items:center;gap:16px;padding:15px 0;border-bottom:1px solid #443729}.saved-row img{width:72px;height:90px;object-fit:cover;border-radius:8px}.saved-row>span{flex:1;min-width:0}.saved-row strong{font-family:'Songti SC',serif;font-size:21px;font-weight:500}.saved-row small{display:block;font:italic 14px Georgia,serif;color:#b9a58a;margin-top:5px}.saved-row>svg{width:18px;color:#b9a58a}.saved-empty{font-size:13px;color:#a69276;padding:20px 0}
.minimal-materials .filters{margin-top:0}.minimal-materials .result-count{display:none}.minimal-materials .material-section:first-child{margin-top:18px}
.personal-filters~#results .recipe-grid{grid-template-columns:1fr}
.club-games{display:grid;gap:16px}
.saved-row img{object-position:center top}
/* Private cellar: scoped to its landing page; Qingba and CLUB stay unchanged. */
body:has(.cellar-links){background:#1c1517;color:#e2d2c4;color-scheme:dark}
body:has(.cellar-links) .shell{background:radial-gradient(ellipse at 0 0,#49232d55,transparent 65%),#1c1517;min-height:100svh;padding-top:32px}
body:has(.cellar-links) .bottom-nav{background:#21191c;border-top:1px solid #4a343b}
body:has(.cellar-links) .bottom-nav a{color:#99848a}
body:has(.cellar-links) .bottom-nav a[aria-current]{color:#dec1b0}
body:has(.cellar-links) .bottom-nav a[aria-current]:after{background:#b68280}
.cellar-links>a{position:relative;padding:28px 22px;background:linear-gradient(115deg,#49372f,#302720);border:1px solid #6c5143;border-radius:5px;box-shadow:0 10px 26px #45302110;color:#f2e5cf;gap:20px;min-height:122px}
.cellar-links>a:before{content:'';position:absolute;inset:6px;border:1px solid #d6b89133;border-radius:2px;pointer-events:none}
.cellar-links>a>svg:first-child{width:35px;height:35px;stroke-width:1.1;color:#cdb08a}
.cellar-links>a>svg:last-child{width:18px;color:#cdb08a}
.cellar-links>a>span{font-family:'Songti SC','STSong',serif;font-size:25px;letter-spacing:3px}
.cellar-links small{font:12px/1.6 -apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;letter-spacing:1px;color:#c4ad94;margin-top:9px}
body:has(.cellar-links) .cellar-collection{margin-top:38px}
body:has(.cellar-links) .section-heading{border-bottom:1px solid #62454b;padding-bottom:14px;align-items:center}
body:has(.cellar-links) .section-heading h2{font:500 20px 'Songti SC','STSong',serif;letter-spacing:2px;color:#e0cbbb}
body:has(.cellar-links) .section-heading a{font-size:12px;color:#c39a99}
body:has(.cellar-links) .saved-row{gap:18px;padding:19px 0;border-color:#3d2c32;color:#e2d2c4}
body:has(.cellar-links) .saved-row img{width:70px;height:88px;border-radius:3px;object-position:center;box-shadow:0 3px 9px #33221715}
body:has(.cellar-links) .saved-row strong{font-size:21px;letter-spacing:.5px}
body:has(.cellar-links) .saved-row small{font-size:13px;color:#b49a92}
body:has(.cellar-links) .saved-row>svg{color:#b68c8c;width:16px}
body:has(.cellar-links) .saved-empty{color:#b49a92;border-bottom:1px solid #3d2c32;padding:28px 0;font-size:13px}
body:has(.cellar-links) .cellar-links>a{background:linear-gradient(115deg,#513039,#302125);border-color:#74515a;box-shadow:0 10px 26px #0002}
body:has(.cellar-links) a:focus-visible{outline:2px solid #874b4c;outline-offset:5px}
/* Modern cabinet: smoked glass and a softly lit shelf, only on cellar. */
body:has(.cellar-links){background:#171a19;color:#e1ded4}
body:has(.cellar-links) .shell{background:radial-gradient(ellipse at 50% 0,#30363055,transparent 60%),#171a19;padding-top:22px}
body:has(.cellar-links) .cellar-links>a{display:grid;grid-template-columns:1fr 24px;gap:0;padding:0 22px 22px;overflow:hidden;border:1px solid #ffffff0d;border-radius:16px;background:linear-gradient(125deg,#33393470,#22272590 55%,#1d211f);box-shadow:0 16px 36px #0002;min-height:0}
body:has(.cellar-links) .cellar-links>a:before{display:none}
body:has(.cellar-links) .cellar-links .cabinet-art{display:block;grid-column:1/-1;width:calc(100% + 44px);height:auto;margin:0 -22px 5px;color:inherit}
body:has(.cellar-links) .cellar-links>a>span{font:500 23px/1.5 'Songti SC','STSong',serif;letter-spacing:2px;color:#e7dfce}
body:has(.cellar-links) .cellar-links small{color:#aaa99a;font-size:11px;letter-spacing:.6px;margin-top:5px}
body:has(.cellar-links) .cellar-links>a>svg:last-child{align-self:center;color:#b4b09b;width:18px}
body:has(.cellar-links) .cellar-collection{margin-top:29px}
body:has(.cellar-links) .section-heading{border:0;padding-bottom:2px}
body:has(.cellar-links) .section-heading h2{font:500 16px/1.5 -apple-system,'PingFang SC',sans-serif;letter-spacing:1px;color:#d4d1c6}
body:has(.cellar-links) .section-heading a{color:#a6a797;font-size:11px}
body:has(.cellar-links) .saved-row{padding:16px 0;gap:20px;border-color:#ffffff0c;color:#e3ded1}
body:has(.cellar-links) .saved-row img{width:86px;height:106px;border-radius:7px;box-shadow:0 5px 15px #0002;object-position:center}
body:has(.cellar-links) .saved-row strong{font-size:21px;letter-spacing:.2px}
body:has(.cellar-links) .saved-row small{font-size:13px;color:#a5a697;margin-top:7px}
body:has(.cellar-links) .saved-row>svg{color:#858e81}
body:has(.cellar-links) .saved-empty{border-color:#ffffff0c;color:#a5a697}
body:has(.cellar-links) .bottom-nav{background:#1b1f1ded;border-color:#ffffff0c;backdrop-filter:blur(18px)}
body:has(.cellar-links) .bottom-nav a{color:#858d82}
body:has(.cellar-links) .bottom-nav a[aria-current]{color:#ded3ba}
body:has(.cellar-links) .bottom-nav a[aria-current]:after{background:#c6b895}
body:has(.cellar-links) a:focus-visible{outline-color:#c6b895}
/* Quiet monochrome edition: no illustration, no simulated cabinet. */
body:has(.cellar-links){background:#151515;color:#e9e5de}
body:has(.cellar-links) .shell{background:#151515;padding-top:30px}
body:has(.cellar-links) .cellar-links>a{display:grid;grid-template-columns:1fr auto 20px;align-items:center;gap:18px;background:none;border:0;border-bottom:1px solid #ffffff26;border-radius:0;box-shadow:none;padding:20px 0 30px;overflow:visible}
body:has(.cellar-links) .cellar-links>a>span{grid-column:1;grid-row:1;font:500 25px/1.5 'Songti SC',serif;letter-spacing:1px;color:#e9e5de}
body:has(.cellar-links) .cellar-links>a>svg:last-child{grid-column:3;grid-row:1;color:#aaa39a;width:18px}
body:has(.cellar-links) .cellar-inventory-count{grid-column:2;grid-row:1;font:200 52px/1 'Helvetica Neue',sans-serif;letter-spacing:-3px;color:#d0c2ae;text-align:center}
body:has(.cellar-links) .cellar-inventory-count small{font:10px/1.5 -apple-system,sans-serif;letter-spacing:1px;margin-top:8px;color:#8d8982}
body:has(.cellar-links) .cellar-links small{font-size:11px;letter-spacing:.5px;color:#928d85;margin-top:8px}
body:has(.cellar-links) .cellar-collection{margin-top:30px}
body:has(.cellar-links) .section-heading h2{font-size:14px;color:#a49e95;letter-spacing:1px}
body:has(.cellar-links) .section-heading a{color:#a49e95}
body:has(.cellar-links) .saved-row{padding:10px 0;gap:14px;border-color:#ffffff0b}
body:has(.cellar-links) .saved-row img{width:54px;height:66px;border-radius:4px;box-shadow:none;flex-shrink:0}
body:has(.cellar-links) .saved-row strong{font-size:19px;line-height:1.4;color:#e9e5de}
body:has(.cellar-links) .saved-row small{color:#9b9386;font-size:12px;line-height:1.4;margin-top:4px}
body:has(.cellar-links) .saved-row>svg{width:14px;color:#77736e}
body:has(.cellar-links) .bottom-nav{background:#191919f5;border-color:#ffffff12}
body:has(.cellar-links) .bottom-nav a{color:#85817c}
body:has(.cellar-links) .bottom-nav a[aria-current]{color:#d0c2ae}
/* Materials is the cellar's inner page, not a separate visual theme. */
body:has(.minimal-materials){--bg:#151515;--surface:#202020;--line:#ffffff16;--gold:#d0c2ae;--muted:#9b9386;background:#151515;color:#e9e5de;color-scheme:dark}
body:has(.minimal-materials) .shell{background:#151515}
body:has(.minimal-materials) .bottom-nav{background:#191919f5;border-color:#ffffff12}
body:has(.minimal-materials) .bottom-nav a{color:#85817c}
body:has(.minimal-materials) .bottom-nav a[aria-current]{color:#d0c2ae}
body:has(.minimal-materials) .bottom-nav a[aria-current]:after{background:#c6b895}
.minimal-materials input[type=search],.minimal-materials input[type=text],.minimal-materials select{background:#202020;color:#e9e5de;border:1px solid #ffffff1c;border-radius:8px}
.minimal-materials input::placeholder{color:#85817c}
.minimal-materials .search-field{background:#202020;border-color:#ffffff1c}
.minimal-materials .search-field input{background:transparent;border:0;border-radius:0}
.materials-back{margin:0 0 18px}
.materials-back a{display:inline-flex;align-items:center;gap:9px;min-height:44px;color:#c9beac;font-size:13px}
.materials-back svg{width:17px;height:17px;transform:rotate(180deg)}
.minimal-materials .filters{gap:10px;margin-top:0;margin-bottom:24px}
.minimal-materials .search-field{min-height:48px;border-color:#ffffff30;background:#242424}
.minimal-materials .search-field svg{color:#c9beac}
.minimal-materials .search-field input::placeholder{color:#aaa399}
.minimal-materials .material-section{margin:25px 0}
.minimal-materials .material-section h2{font:500 15px/1.5 -apple-system,'PingFang SC',sans-serif;color:#aaa399;letter-spacing:1px;margin-bottom:12px}
.minimal-materials .selectable-material{background:#1b1b1b;border:1px solid #ffffff12;border-radius:8px;box-shadow:none;padding:13px 12px}
.minimal-materials .material-copy strong{color:#e0dcd5;font-size:14px;font-weight:500}
.minimal-materials .material-copy>span{color:#8f8980;font-size:11px;line-height:1.6}
.minimal-materials .material-choice{color:#8f8980;background:transparent;border-color:#ffffff1c;font-size:11px}
.minimal-materials .selectable-material.is-selected{background:#292621;border-color:#706251}
.minimal-materials .is-selected .material-choice{color:#d8c7ab;background:#d0c2ae0d;border-color:#706251}
.minimal-materials input[type=checkbox]{accent-color:#b8a78b}
.minimal-materials input:focus-visible,.minimal-materials select:focus-visible{outline:2px solid #c6b895;outline-offset:3px}
.quiz-result-art{width:min(100%,280px);background:#1b140e;border-radius:14px}
.quiz-result-art img{width:100%;height:auto;aspect-ratio:2/3;object-fit:contain;object-position:center}
.quiz-options{margin-top:24px}
