:root{--ink:#28251f;--paper:#e8dfc8;--paper2:#d8ccb0;--rust:#a9422c;--moss:#48543d;--gold:#c79549;--line:rgba(40,37,31,.25)}
[hidden]{display:none!important}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ink);font-family:"Noto Serif SC",serif;background:#22251f;background-image:radial-gradient(circle at 20% 10%,#4b4d3a 0,transparent 34%),linear-gradient(115deg,rgba(0,0,0,.35),transparent 55%);min-height:100vh}body:before{content:"";position:fixed;inset:0;pointer-events:none;opacity:.12;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.65'/%3E%3C/svg%3E")}
.site-header{height:76px;padding:0 5vw;display:flex;align-items:center;gap:36px;color:#eee6d2;border-bottom:1px solid rgba(255,255,255,.15);position:relative;z-index:3}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none}.brand img{width:48px;height:48px;object-fit:contain}.brand span{display:flex;flex-direction:column}.brand b{font-size:19px;letter-spacing:.16em}.brand small,.edition{font:10px Georgia,serif;letter-spacing:.18em;opacity:.65}.site-header nav{display:flex;gap:26px;margin-left:auto}.site-header nav a{color:inherit;text-decoration:none;font-size:13px}.edition{border:1px solid rgba(255,255,255,.24);padding:7px 11px}
.site-header nav a{position:relative;padding:.75rem .125rem}.site-header nav a:after{content:"";position:absolute;left:0;right:0;bottom:.25rem;height:2px;background:var(--gold);transform:scaleX(0);transition:transform .2s ease}.site-header nav a.active:after{transform:scaleX(1)}
main{max-width:1500px;margin:auto}.hero{min-height:620px;color:#f2ead7;display:grid;grid-template-columns:1.1fr .9fr;align-items:center;padding:65px 7vw 85px;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;width:680px;height:680px;right:-100px;top:-70px;border:1px solid rgba(219,192,130,.18);border-radius:50%;box-shadow:0 0 0 80px rgba(219,192,130,.025),0 0 0 160px rgba(219,192,130,.018)}.hero-copy{position:relative;z-index:2;max-width:650px}.kicker,.section-label{font:700 11px Georgia,serif;letter-spacing:.24em;text-transform:uppercase;color:var(--gold)}.hero h1{font-size:clamp(56px,7vw,105px);line-height:1.02;letter-spacing:-.06em;margin:18px 0 28px}.hero h1 em{font-family:"Ma Shan Zheng",cursive;font-weight:400;color:#d65a39;font-style:normal}.lead{font-size:16px;line-height:2;color:rgba(244,237,220,.72);max-width:580px}.lead code{color:#e7ba6d}.hero-actions{display:flex;gap:13px;margin-top:38px}.primary-button,.ghost-button{border:0;padding:14px 23px;font:600 13px "Noto Serif SC",serif;letter-spacing:.08em;cursor:pointer;text-decoration:none}.primary-button{background:var(--rust);color:white}.ghost-button{background:transparent;border:1px solid rgba(255,255,255,.3);color:white}.hero-dish{position:relative;z-index:2;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:center;cursor:pointer}.hero-dish:focus-visible{outline:2px solid var(--gold);outline-offset:8px}.hero-dish img{width:min(88%,500px);filter:drop-shadow(0 30px 28px rgba(0,0,0,.45));animation:float 5s ease-in-out infinite;transition:filter .25s ease}.hero-dish:hover img{filter:drop-shadow(0 34px 32px rgba(0,0,0,.58)) brightness(1.08)}.hero-dish img.is-changing{animation:heroDishChange .45s ease-out,float 5s .45s ease-in-out infinite}.hero-dish p{font-size:12px;letter-spacing:.12em;opacity:.6}.orbit{position:absolute;inset:10% 0;border:1px solid rgba(222,189,115,.28);border-radius:50%;transform:rotate(-18deg);pointer-events:none}.orbit-b{inset:15% 5%;transform:rotate(35deg)}.hero-note{position:absolute;right:5vw;bottom:40px;z-index:2;display:flex;align-items:baseline;gap:8px}.hero-note strong{font:54px Georgia;color:var(--gold)}.hero-note span{font-size:12px;letter-spacing:.12em}@keyframes float{50%{transform:translateY(-13px) rotate(1deg)}}@keyframes heroDishChange{from{opacity:.25;transform:scale(.88) rotate(-3deg)}to{opacity:1;transform:scale(1) rotate(0)}}
.tag-strip{background:#191b17;color:#ddd2bb;padding:20px 5vw;display:flex;align-items:center;gap:10px;overflow-x:auto;border-top:1px solid #4b4b3d}.tag-strip>span{font-size:11px;letter-spacing:.16em;color:#9b957f;margin-right:10px;white-space:nowrap}.tag-chip{display:flex;align-items:baseline;gap:8px;padding:8px 13px;color:inherit;background:#2b2d25;border:1px solid #44463a;cursor:pointer;white-space:nowrap}.tag-chip b{font:600 12px "Noto Serif SC"}.tag-chip small{font:10px Georgia;color:#968d78}
.kind-atlas{padding:72px 5vw 76px;background:#2a2d26;color:#e8dfca;border-top:1px solid #46483d}.kind-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:28px}.kind-heading h2{font-size:clamp(32px,4vw,52px);margin:5px 0}.kind-heading>p{max-width:460px;color:#aaa493;font-size:12px;line-height:1.8}.kind-heading code{color:#d4a657}.kind-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.kind-card{background:#20221d;border:1px solid #44463a;min-width:0}.kind-title{width:100%;display:flex;justify-content:space-between;align-items:baseline;padding:14px 16px;background:transparent;color:#e8dfca;border:0;border-bottom:1px solid #3d3f35;cursor:pointer;text-align:left}.kind-title span{font:700 15px "Noto Serif SC"}.kind-title small{font:10px Georgia;color:#988f79}.kind-items{display:grid;grid-template-columns:repeat(6,1fr);gap:4px;padding:10px;max-height:178px;overflow:auto}.kind-items figure{margin:0;min-width:0;text-align:center;background:#303229;padding:5px 2px}.kind-items img{width:38px;height:38px;object-fit:contain;filter:drop-shadow(0 3px 3px #111)}.kind-items figcaption{font:8px Georgia;color:#9f9887;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kind-empty{height:90px;display:grid;place-items:center;margin:0;color:#77776b;font-size:11px}
.atlas{background:var(--paper);padding:80px 5vw 100px;min-height:700px;background-image:linear-gradient(rgba(77,63,39,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(77,63,39,.04) 1px,transparent 1px);background-size:32px 32px}.atlas-head{display:flex;justify-content:space-between;align-items:end;gap:24px;padding-bottom:24px}.atlas h2{font-size:clamp(35px,4vw,58px);margin:5px 0;letter-spacing:-.04em}.search{width:min(390px,100%);display:flex;align-items:center;border-bottom:1px solid var(--ink);padding:10px 3px;gap:8px}.search span{font-size:24px}.search input{border:0;background:transparent;outline:0;width:100%;font:14px "Noto Serif SC"}.filter-row{display:flex;align-items:center;gap:8px;padding:22px 0 28px}.filter{border:1px solid var(--line);background:transparent;padding:8px 14px;font:12px "Noto Serif SC";cursor:pointer}.filter.active{background:var(--ink);color:var(--paper)}#result-count{margin-left:auto;font-size:12px;color:#776e5d}.recipe-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.recipe-card{display:grid;grid-template-columns:145px 1fr;min-height:265px;background:rgba(245,239,220,.76);border:1px solid var(--line);position:relative;cursor:pointer;transition:.3s transform,.3s box-shadow}.recipe-card:hover,.recipe-card:focus{transform:translateY(-5px);box-shadow:0 16px 35px rgba(52,42,27,.16);outline:0}.dish-visual{position:relative;display:flex;align-items:center;justify-content:center;background:#cdbf9f;overflow:hidden;background-image:radial-gradient(circle,#ece2c9 0,#cabc9c 68%)}.dish-visual:after{content:"";position:absolute;inset:12px;border:1px solid rgba(46,40,30,.22);border-radius:50%}.dish-visual img{width:128px;height:128px;object-fit:contain;z-index:1;filter:drop-shadow(0 8px 8px rgba(0,0,0,.25))}.dish-number{position:absolute;top:10px;left:12px;font:italic 12px Georgia;z-index:2}.dish-fallback{font:90px "Ma Shan Zheng";opacity:.25}.card-copy{padding:20px 18px;display:flex;flex-direction:column;min-width:0}.card-title{display:flex;justify-content:space-between;gap:8px}.card-title p{font:9px Georgia;color:#8b7961;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:210px}.card-title h3{font-size:17px;line-height:1.45;margin:5px 0}.description{font-size:11px;line-height:1.7;color:#766d5f;margin:5px 0}.mini-path{margin-top:auto;display:flex;align-items:center;gap:5px;padding:10px 0}.mini-path span{width:30px;height:30px;border:1px solid var(--line);background:#eee5d0;position:relative;display:grid;place-items:center}.mini-path img{width:26px;height:26px;object-fit:contain}.mini-path b{position:absolute;right:-3px;bottom:-4px;font:10px Georgia;background:var(--ink);color:white;padding:1px 3px}.mini-path i{font-style:normal;color:var(--rust)}.mini-path .pot{border-radius:50%;background:var(--ink);color:white}.stats{border-top:1px solid var(--line);display:flex;gap:10px;padding-top:9px;align-items:center}.stats span{display:flex;align-items:center;font:bold 11px Georgia}.stats img{width:18px;height:18px;object-fit:contain}.stats small{margin-left:auto;color:#827867;font-size:10px}.empty{text-align:center;padding:80px;color:#756c5a}
.recipe-dialog{width:min(1050px,92vw);max-height:90vh;padding:0;background:#e9dfc7;color:var(--ink);border:0;box-shadow:0 30px 100px #000}.recipe-dialog::backdrop{background:rgba(12,14,11,.82);backdrop-filter:blur(5px)}.dialog-close{position:absolute;right:18px;top:16px;z-index:3;width:38px;height:38px;border:1px solid var(--line);background:#e9dfc7;font-size:24px;cursor:pointer}.dialog-hero{display:grid;grid-template-columns:260px 1fr;align-items:center;background:#2b2e27;color:#eee5d0;padding:34px 55px 34px 28px}.dialog-dish{text-align:center}.dialog-dish img{width:220px;height:190px;object-fit:contain;filter:drop-shadow(0 16px 14px #000)}.dialog-hero h2{font-size:38px;margin:8px 0}.dialog-hero p:last-child{color:#aaa695}.path-section,.rule-section{padding:28px 42px}.path-flow{display:grid;grid-template-columns:1fr 55px 140px;align-items:center}.ingredient-path{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.ingredient-node{text-align:center}.ingredient-node span{height:95px;background:#d5c7a8;border:1px solid var(--line);display:grid;place-items:center}.ingredient-node img{width:78px;height:78px;object-fit:contain}.ingredient-node .missing:after{content:"?";font:50px Georgia;opacity:.3}.ingredient-node b,.ingredient-node small,.result-node b,.result-node small{display:block}.ingredient-node b{font-size:12px;margin-top:8px}.ingredient-node small{font:9px Georgia;color:#817661;margin-top:3px}.path-arrow{text-align:center;font-size:30px;color:var(--rust)}.result-node{text-align:center}.result-node span{width:80px;height:80px;margin:auto;border-radius:50%;background:var(--ink);color:white;display:grid;place-items:center;font-size:34px}.result-node b{font-size:12px;margin-top:8px}.result-node small{font-size:10px;color:#807560}.status-effect-section{border-top:1px solid var(--line);padding:18px 42px;display:grid;grid-template-columns:360px 1fr;gap:18px;align-items:stretch}.dialog-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.dialog-stats span{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0;background:#d5c7a8;padding:10px 6px;font-size:10px;white-space:nowrap}.dialog-stats img{display:block;width:30px;height:30px;flex:0 0 30px;object-fit:contain}.dialog-stats b{display:block;margin:0;font:20px Georgia;line-height:1}.status-effect-section aside{display:flex;align-items:center;gap:18px;background:#2b2e27;color:#eee5d0;padding:14px 18px}.status-effect-section aside span{flex:0 0 auto;font:10px Georgia;color:var(--gold);letter-spacing:.16em}.status-effect-section aside strong{font-size:13px;line-height:1.7}.rule-section{border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:35px}.rule-section>div+div{border-left:1px solid var(--line);padding-left:35px}.rule-section ul{padding-left:20px;margin-bottom:0}.rule-section li{font:12px/1.9 Georgia,"Noto Serif SC"}.effect-preview{font-size:9px;line-height:1.5;color:var(--rust);margin:3px 0 6px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.rule-note{margin:0;padding:15px 42px;background:#c9b995;font-size:11px;color:#665d4f}footer{max-width:1500px;margin:auto;color:#b7b09d;padding:30px 5vw;display:flex;justify-content:space-between;font-size:11px}footer code{color:#d0aa69}
.usable-section{border-top:1px solid var(--line);padding:28px 42px}.usable-intro{font-size:11px;color:#776d5c;margin:7px 0 22px}.usable-group{margin-top:14px;padding:14px;border:1px solid rgba(40,37,31,.2);background:rgba(255,255,255,.12)}.usable-group header{display:flex;align-items:center;gap:10px;margin-bottom:10px}.slot-number{width:27px;height:27px;display:grid;place-items:center;border-radius:50%;background:var(--ink);color:#eee5d0;font:10px Georgia}.usable-group h4{display:flex;align-items:baseline;gap:8px;margin:0;font-size:14px}.usable-group h4 small{font:700 11px Georgia;color:var(--rust)}.choice-rule{margin-left:auto;padding:4px 8px;background:#b6a47f;color:#3d372d;font-size:10px}.slot-note{font-size:10px;color:#786e5d;margin:0 0 10px 37px}.usable-items{display:grid;grid-template-columns:repeat(6,1fr);gap:7px}.usable-items figure{margin:0;display:flex;align-items:center;gap:7px;min-width:0;padding:7px;background:#d8cbaa;border:1px solid rgba(40,37,31,.13)}.usable-items img{width:37px;height:37px;object-fit:contain;flex:0 0 auto}.usable-items figure.missing:before{content:"?";width:37px;text-align:center;font:26px Georgia;opacity:.35}.usable-items figure.missing img{display:none}.usable-items figcaption{min-width:0}.usable-items b,.usable-items small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.usable-items b{font-size:10px}.usable-items small{font:8px Georgia;color:#786e5d;margin-top:3px}
@media(max-width:1050px){.recipe-grid{grid-template-columns:repeat(2,1fr)}.kind-grid{grid-template-columns:repeat(2,1fr)}.hero{grid-template-columns:1fr 1fr}.recipe-card{grid-template-columns:125px 1fr}.usable-items{grid-template-columns:repeat(4,1fr)}}@media(max-width:720px){.site-header{height:64px;padding:0 18px}.site-header nav,.edition{display:none}.hero{display:block;min-height:auto;padding:55px 22px 70px}.hero h1{font-size:55px}.hero-dish{margin-top:45px}.hero-note{display:none}.kind-atlas{padding:48px 16px}.kind-heading{display:block}.kind-grid{grid-template-columns:1fr}.kind-items{grid-template-columns:repeat(6,1fr)}.atlas{padding:55px 16px}.atlas-head{display:block}.search{margin-top:20px}.filter-row{overflow-x:auto}.filter{white-space:nowrap}.recipe-grid{grid-template-columns:1fr}.recipe-card{grid-template-columns:125px 1fr}.dialog-hero{grid-template-columns:1fr;padding:25px;text-align:center}.dialog-dish img{height:140px}.dialog-hero h2{font-size:26px}.path-section,.rule-section,.usable-section{padding:22px}.path-flow{display:block}.ingredient-path{grid-template-columns:repeat(2,1fr)}.path-arrow{transform:rotate(90deg);margin:12px}.status-effect-section{grid-template-columns:1fr;padding:18px 22px}.status-effect-section aside{display:block}.status-effect-section aside strong{display:block;margin-top:7px}.rule-section{grid-template-columns:1fr}.rule-section>div+div{border-left:0;border-top:1px solid var(--line);padding:20px 0 0}.usable-items{grid-template-columns:repeat(2,1fr)}footer{display:block}.hero-actions{flex-wrap:wrap}}
@media(max-width:420px){.dialog-stats span{gap:2px;padding:9px 3px;font-size:9px}.dialog-stats img{width:23px;height:23px;flex-basis:23px}.dialog-stats b{font-size:16px}}

/* Mobile layout: keep the atlas readable and every control comfortably tappable. */
@media(max-width:720px){
  html,body{max-width:100%;overflow-x:hidden}
  .site-header{padding-inline:1rem}
  .brand img{width:2.75rem;height:2.75rem}
  .brand b{font-size:1rem}.brand small{font-size:.5rem}
  .hero{padding:3rem 1.25rem 3.5rem}
  .hero h1{font-size:clamp(2.75rem,14vw,3.5rem);margin-block:1rem 1.25rem}
  .lead{font-size:.9375rem;line-height:1.8}
  .hero-actions{display:grid;grid-template-columns:1fr 1fr;margin-top:1.75rem}
  .primary-button,.ghost-button{display:grid;place-items:center;min-height:2.75rem;padding:.75rem;text-align:center}
  .hero-dish{margin-top:2.25rem}.hero-dish img{width:min(82vw,22rem)}
  .tag-strip{padding:1rem;scrollbar-width:thin}
  .tag-chip{min-height:2.75rem}
  .kind-atlas,.atlas{padding-inline:1rem}
  .kind-heading h2,.atlas h2{font-size:2.25rem}
  .kind-heading>p{font-size:.875rem}
  .kind-title{min-height:3rem}
  .kind-items{grid-template-columns:repeat(4,minmax(0,1fr));max-height:15rem}
  .kind-items figure{padding:.5rem .125rem}.kind-items img{width:2.75rem;height:2.75rem}
  .kind-items figcaption{font-size:.625rem}
  .search{width:100%;min-height:2.75rem}.search input{font-size:1rem}
  .filter-row{padding-block:1rem 1.5rem;scrollbar-width:thin}
  .filter{min-height:2.75rem;padding:.625rem 1rem}
  #result-count{position:sticky;right:0;flex:0 0 auto;padding:.75rem 0 .75rem .75rem;background:var(--paper)}
  .recipe-card{grid-template-columns:6.5rem minmax(0,1fr);min-height:14rem}
  .dish-visual img{width:5.75rem;height:5.75rem}
  .card-copy{padding:1rem .875rem}.card-title h3{font-size:1rem}
  .card-title p{max-width:10rem}
  .description{font-size:.8125rem}.effect-preview{font-size:.6875rem}
  .mini-path{gap:.25rem}.mini-path span{width:1.75rem;height:1.75rem}.mini-path img{width:1.5rem;height:1.5rem}
  .stats{gap:.375rem;flex-wrap:wrap}.stats small{margin-left:0;width:100%}
  .recipe-dialog{width:100vw;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0}
  .dialog-close{position:fixed;right:.75rem;top:.75rem;width:2.75rem;height:2.75rem;background:#e9dfc7}
  .dialog-hero{padding:1.5rem 1rem}.dialog-dish img{width:min(12rem,55vw);height:8rem}
  .dialog-hero h2{font-size:1.625rem;padding-inline:2rem}
  .dialog-hero p:last-child{font-size:.875rem;line-height:1.7}
  .path-section,.rule-section,.usable-section{padding:1.375rem 1rem}
  .section-label{font-size:.6875rem;letter-spacing:.16em}
  .ingredient-path{gap:.625rem}
  .ingredient-node span{height:5rem}.ingredient-node img{width:4rem;height:4rem}
  .ingredient-node b{font-size:.75rem}.ingredient-node small{font-size:.625rem;overflow-wrap:anywhere}
  .result-node{display:flex;align-items:center;justify-content:center;gap:.625rem;flex-wrap:wrap}
  .result-node span{width:3.5rem;height:3.5rem;margin:0}
  .status-effect-section{padding:1rem;gap:.75rem}
  .dialog-stats{gap:.25rem}.dialog-stats span{min-height:3.25rem}
  .status-effect-section aside{min-height:3.5rem;padding:1rem}
  .usable-intro,.slot-note,.rule-note{font-size:.75rem;line-height:1.65}
  .usable-group{padding:.75rem}.usable-group header{flex-wrap:wrap}
  .choice-rule{margin-left:auto}.slot-note{margin-left:0}
  .usable-items{gap:.375rem}
  .usable-items figure{display:grid;justify-items:center;text-align:center;padding:.5rem .25rem}
  .usable-items img{width:3rem;height:3rem}.usable-items figcaption{width:100%}
  .usable-items b{font-size:.75rem}.usable-items small{font-size:.625rem}
  .rule-section{gap:1.25rem}.rule-section li{font-size:.8125rem;line-height:1.8}
  .rule-note{padding:1rem}
  footer{padding:1.5rem 1rem;font-size:.75rem;line-height:1.7}
}

@media(max-width:420px){
  .hero-actions{grid-template-columns:1fr}
  .kind-items{grid-template-columns:repeat(3,minmax(0,1fr))}
  .recipe-card{grid-template-columns:5.5rem minmax(0,1fr)}
  .dish-visual img{width:5rem;height:5rem}
  .card-copy{padding:.875rem .75rem}
  .card-title p{max-width:8.5rem}
  .mini-path span{width:1.625rem;height:1.625rem}.mini-path img{width:1.375rem;height:1.375rem}
  .dialog-stats span{flex-direction:column;gap:.125rem;padding:.5rem .125rem}
  .dialog-stats img{width:1.75rem;height:1.75rem;flex-basis:1.75rem}
  .usable-items{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:720px){
  .site-header nav{display:flex;margin-left:auto;gap:.75rem}
  .site-header nav a{min-height:2.75rem;display:grid;place-items:center;font-size:.75rem;white-space:nowrap}
  .edition{display:none}
}

@media(max-width:420px){
  .brand small{display:none}
  .site-header{gap:.5rem}
  .site-header nav{gap:.5rem}
}

/* UX refinement: readable type, visible focus, progressive disclosure, stable icons. */
.skip-link{position:fixed;left:1rem;top:1rem;z-index:1000;padding:.75rem 1rem;background:var(--gold);color:#171813;text-decoration:none;transform:translateY(-180%);transition:transform .2s ease}
.skip-link:focus{transform:translateY(0)}
:where(a,button,input,[role="button"]):focus-visible{outline:3px solid var(--gold);outline-offset:3px}
:where(button,[role="button"],.primary-button):active{transform:scale(.98)}
.recipe-card:focus-visible{outline:3px solid var(--rust);outline-offset:3px;transform:translateY(-3px)}
.recipe-card:focus{outline:3px solid var(--rust);outline-offset:3px}
.tag-chip{min-height:44px;align-items:center;padding-block:.75rem;transition:background-color .2s ease,border-color .2s ease,color .2s ease}
.tag-chip.active{background:var(--gold);border-color:var(--gold);color:#1c1d18}
.tag-chip.active small{color:#51452f}
.hero-recipe-hint{display:block;margin-top:.35rem;color:var(--gold);font-size:.75rem;letter-spacing:.08em}
.hero-feedback{position:absolute;left:7vw;bottom:2rem;z-index:2;min-height:1.5rem;margin:0;color:#d8b66f;font-size:.875rem}
.search{display:grid;grid-template-columns:1.5rem 1fr;grid-template-areas:"icon label" "icon input";column-gap:.6rem}
.search svg{grid-area:icon;align-self:center;width:1.35rem;height:1.35rem;fill:none;stroke:currentColor;stroke-width:1.8}
.search-label{grid-area:label;font-size:.75rem;color:#6b6254}
.search input{grid-area:input;min-height:2rem;font-size:1rem}
.search input:focus-visible{outline:2px solid var(--rust);outline-offset:2px}
.active-filter{display:flex;align-items:center;gap:.75rem;width:max-content;max-width:100%;margin:0 0 1.5rem;padding:.55rem .75rem;background:#d8cbaa;border:1px solid var(--line);font-size:.875rem}
.active-filter span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.active-filter button,.expand-kind,.expand-usable{min-height:44px;border:1px solid var(--line);background:transparent;color:inherit;padding:.55rem .8rem;font:600 .8125rem "Noto Serif SC";cursor:pointer}
.kind-items{max-height:none;overflow:visible;grid-template-columns:repeat(auto-fit,minmax(5.5rem,1fr));gap:.4rem}
.kind-items.is-collapsed figure:nth-child(n+13){display:none}
.kind-items figure{min-height:5.5rem;display:grid;place-items:center;align-content:center}
.kind-items img{width:3rem;height:3rem}
.kind-items figcaption{width:100%;font-family:"Noto Serif SC";white-space:normal;line-height:1.35}
.kind-items figcaption b,.kind-items figcaption small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kind-items figcaption b{font-size:.75rem;color:#ddd4bf}.kind-items figcaption small{font: .625rem Georgia;color:#918977}
.kind-title{min-height:44px}.kind-heading>p{font-size:.875rem}
.tag-chip b{font-size:.875rem;line-height:1.2}.tag-chip small{font-size:.6875rem;line-height:1.2}
.expand-kind{display:block;width:calc(100% - 1.25rem);margin:0 .625rem .625rem;color:var(--gold);border-color:#4a4c40}
.card-title p{font-size:.6875rem}.description{font-size:.8125rem}.effect-preview{font-size:.75rem}
.stats span,.stats small{font-size:.75rem}
.mini-path .pot svg,.result-node svg,.dialog-close svg{width:1.35rem;height:1.35rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
.dialog-close{display:grid;place-items:center;min-width:44px;min-height:44px}
.dialog-close svg{width:1.5rem;height:1.5rem}
.ingredient-node b,.rule-section li,.status-effect-section aside strong{font-size:.875rem}
.ingredient-node small,.result-node small,.dialog-stats span,.usable-intro,.slot-note,.rule-note{font-size:.75rem}
.choice-rule,.usable-items b{font-size:.75rem}.usable-items small{font-size:.6875rem}
.kicker,.section-label{font-size:.75rem}.rule-note,footer{font-size:.75rem}
.usable-items.is-collapsed figure:nth-child(n+7){display:none}
.expand-usable{display:block;margin:.65rem 0 0 auto;color:var(--rust)}
.recipe-dialog{overscroll-behavior:contain}

@media(max-width:720px){
  .hero-feedback{position:static;margin:0 1.25rem 1rem;text-align:center}
  .kind-items{grid-template-columns:repeat(3,minmax(0,1fr));max-height:none}
  .kind-items figcaption b{font-size:.75rem}
  .recipe-card{min-height:15rem}
  .description,.effect-preview{font-size:.75rem}
  .status-effect-section aside strong,.rule-section li{font-size:.875rem}
  .active-filter{width:100%;justify-content:space-between}
}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .hero-dish img{animation:none!important}
}

/* Layout system: one content rhythm from hero to atlas and dialog. */
:root{--page-gutter:clamp(1rem,4vw,4.5rem);--section-space:clamp(3.5rem,7vw,6.5rem);--content-max:90rem}
body{min-width:20rem}
.site-header{width:min(100%,var(--content-max));margin-inline:auto;padding-inline:var(--page-gutter)}
main{width:min(100%,var(--content-max));max-width:none}
.hero{min-height:min(44rem,calc(100dvh - 4.75rem));grid-template-columns:minmax(0,1.05fr) minmax(22rem,.95fr);gap:clamp(2rem,5vw,5rem);padding:clamp(3.5rem,7vw,6.5rem) var(--page-gutter) clamp(4.5rem,8vw,7rem)}
.hero-copy{max-width:42rem}.hero h1{font-size:clamp(3.75rem,6.5vw,6.75rem)}
.hero-dish{max-width:36rem;justify-self:end}.hero-dish img{width:min(100%,31rem);height:auto;aspect-ratio:1;object-fit:contain}
.hero-actions{align-items:stretch}.primary-button,.ghost-button{min-height:3rem;padding-inline:1.4rem}
.tag-strip{padding:1rem var(--page-gutter);gap:.65rem}
.kind-atlas,.atlas{padding:var(--section-space) var(--page-gutter)}
.kind-heading,.atlas-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(18rem,30rem);align-items:end;gap:clamp(2rem,6vw,7rem);margin-bottom:2.25rem}
.kind-heading>p{margin:0;justify-self:end}.atlas-head{padding-bottom:0}
.atlas h2,.kind-heading h2{margin:.35rem 0 0}
.search{width:100%;justify-self:end}
.active-filter{margin-top:-.75rem}
.recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(1rem,1.7vw,1.5rem)}
.recipe-card{grid-template-columns:9rem minmax(0,1fr);min-height:17rem}
.dish-visual{min-width:0}.dish-visual img{width:min(8rem,88%);height:auto;aspect-ratio:1;object-fit:contain}
.card-copy{padding:1.25rem 1.125rem}.card-title h3{font-size:1.1rem;line-height:1.4}
.description{max-width:36ch}.mini-path{margin-top:auto;flex-wrap:nowrap}
.stats{justify-content:flex-start}.stats small{margin-left:auto;width:auto}
.kind-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.kind-card{align-self:start}.kind-items{grid-template-columns:repeat(auto-fit,minmax(5.75rem,1fr))}
.recipe-dialog{width:min(70rem,calc(100vw - 3rem));max-height:calc(100dvh - 3rem)}
.dialog-hero{grid-template-columns:14rem minmax(0,1fr);padding:2rem 4rem 2rem 1.5rem}
.dialog-dish img{width:12.5rem;height:10.5rem}
.path-section,.rule-section,.usable-section{padding:2rem clamp(1.5rem,4vw,3rem)}
.path-flow{grid-template-columns:minmax(0,1fr) 3rem 8rem;gap:1rem}
.ingredient-path{gap:.75rem}.ingredient-node span{height:6.5rem}
.status-effect-section{padding:1.25rem clamp(1.5rem,4vw,3rem);grid-template-columns:minmax(20rem,23rem) minmax(0,1fr)}
.usable-group{padding:1rem}.usable-items{grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr))}
.rule-section{grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(2rem,5vw,4rem)}

@media(max-width:1100px){
  .hero{grid-template-columns:minmax(0,1fr) minmax(18rem,.8fr);gap:2rem}
  .hero h1{font-size:clamp(3.5rem,7vw,5.25rem)}
  .recipe-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kind-grid{grid-template-columns:1fr}
}

@media(max-width:760px){
  :root{--page-gutter:1rem;--section-space:3.5rem}
  .hero{display:grid;grid-template-columns:1fr;min-height:auto;gap:2.5rem;padding-block:3.5rem 4rem}
  .hero-copy{max-width:none}.hero h1{font-size:clamp(3rem,14vw,4.25rem)}
  .hero-dish{width:min(100%,28rem);max-width:none;justify-self:center;margin-top:0}
  .hero-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-feedback{position:static;margin:-1.5rem 0 0;text-align:center}
  .kind-heading,.atlas-head{grid-template-columns:1fr;gap:1.5rem;margin-bottom:2rem}
  .kind-heading>p,.search{justify-self:stretch}
  .recipe-grid{grid-template-columns:1fr}
  .recipe-card{grid-template-columns:8rem minmax(0,1fr);min-height:15rem}
  .kind-items{grid-template-columns:repeat(3,minmax(0,1fr))}
  .recipe-dialog{width:100vw;max-height:100dvh}
  .dialog-hero{grid-template-columns:1fr;padding:1.5rem 1rem;text-align:center}
  .path-flow{display:grid;grid-template-columns:1fr}
  .path-arrow{transform:rotate(90deg);margin:.25rem}
  .status-effect-section,.rule-section{grid-template-columns:1fr}
  .rule-section>div+div{padding:1.5rem 0 0;border-left:0;border-top:1px solid var(--line)}
  .usable-items{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:430px){
  .site-header{padding-inline:.75rem}
  .hero-actions{grid-template-columns:1fr}
  .recipe-card{grid-template-columns:6.25rem minmax(0,1fr)}
  .dish-visual img{width:5.5rem}
  .card-copy{padding:1rem .75rem}
  .card-title h3{font-size:1rem}
  .mini-path{gap:.2rem}.mini-path span{width:1.6rem;height:1.6rem}
  .stats{column-gap:.35rem}
  .kind-items{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Recipe flow icons */
.path-arrow{display:grid;place-items:center;align-self:start;width:100%;height:6.5rem;min-height:0;margin:0!important;transform:none!important;color:var(--rust)}
.path-arrow svg{display:block;width:2.5rem;height:1.875rem;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.result-node span{border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 0 0 1px rgba(255,255,255,.04)}
.result-node span svg{display:block;width:2.875rem;height:2.875rem;fill:none;stroke:currentColor;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round}
.mini-path .pot svg{width:1.25rem;height:1.25rem;stroke-width:1.5}

@media(max-width:760px){
  .path-arrow{height:2.75rem;min-height:2.75rem;align-self:center}
  .path-arrow svg{transform:rotate(90deg)}
}

/* Cooking time belongs to the cooking result; status icons carry the lower row. */
.mini-path .cooktime{width:auto;margin:0 0 0 .25rem;color:#766d5f;font:700 .75rem Georgia;white-space:nowrap}
.stats{min-height:2.25rem;gap:.75rem}
.stats img{width:1.5rem;height:1.5rem;flex:0 0 1.5rem}
.stats span{gap:.2rem;font-size:.8125rem}
.dialog-stats img{width:2.25rem;height:2.25rem;flex-basis:2.25rem}
.card-copy>.description{margin-bottom:.75rem}
.card-copy>.stats{margin-top:0;padding-block:.75rem;border-top:1px solid var(--line)}
.card-copy>.effect-preview{margin:.45rem 0 0;min-height:1.2rem}
.card-copy>.mini-path{margin-top:auto;padding-top:.75rem}

@media(max-width:430px){
  .mini-path .cooktime{font-size:.6875rem;margin-left:.1rem}
  .stats{gap:.4rem}
  .stats img{width:1.375rem;height:1.375rem;flex-basis:1.375rem}
  .dialog-stats img{width:1.875rem;height:1.875rem;flex-basis:1.875rem}
}
