:root{font-family:"Microsoft YaHei","PingFang SC",system-ui,sans-serif;color:#17231b;background:#183b2c}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:repeating-linear-gradient(91deg,transparent 0 35px,#09241739 36px 39px,transparent 41px 83px),radial-gradient(circle at 15% 10%,#3d6944,#163525 65%,#102b20);background-attachment:fixed}button,input{font:inherit}.hero{padding:42px 24px 32px;background:linear-gradient(180deg,#07170ccc,#102717b9);border-bottom:3px solid #090f0b;color:#f5f1db}.hero-inner,main{max-width:1560px;margin:auto}.eyebrow{letter-spacing:.22em;color:#d9c785;font-size:12px;font-weight:800;margin:0 0 8px}h1{font-size:clamp(44px,6vw,88px);line-height:1.05;letter-spacing:-.05em;margin:0;color:#ffdf36;text-shadow:-4px -4px 0 #050805,4px -4px 0 #050805,-4px 4px 0 #050805,4px 4px 0 #050805,0 8px 0 #050805}h1 span{font-size:.5em;color:#fff4a8;vertical-align:middle;letter-spacing:0}.intro{font-size:15px;color:#d8e1d2;margin:20px 0 24px}.toolbar{display:flex;gap:10px;flex-wrap:wrap}.search-wrap{background:#fff;border:2px solid #080d08;border-radius:12px;display:flex;align-items:center;padding:0 13px;min-width:min(100%,310px);flex:1;max-width:500px;color:#526751}.search-wrap span{font-size:26px;line-height:1}.search-wrap input{width:100%;border:0;outline:none;padding:12px;background:transparent;color:#18231a}.toolbar button{border:2px solid #0c130d;border-radius:12px;padding:10px 16px;background:#ffe071;color:#172015;font-weight:800;cursor:pointer;box-shadow:0 3px 0 #080e08}.toolbar button:hover{background:#fff0a6}.toolbar button:disabled{opacity:.5;cursor:wait}.source-row{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:13px;color:#dce5d7;margin-top:16px}.source-row a{color:#ffe071}main{padding:28px 24px 64px}.section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:white;margin-bottom:18px}.section-heading h2{font-size:24px;margin:0}.section-heading span{font-size:13px;color:#c8dfc9}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:18px;align-items:stretch}.card{background:#fffdf8;border:4px solid #080c08;border-radius:16px;box-shadow:0 6px 0 #080c08,0 13px 22px #06150c70;padding:17px;display:flex;flex-direction:column;gap:13px;min-width:0}.card-top{display:grid;grid-template-columns:90px 1fr;gap:14px;align-items:center}.dish-image{width:90px;height:90px;object-fit:contain;image-rendering:auto;filter:drop-shadow(0 4px 2px #0004)}.dish-image.placeholder{display:grid;place-items:center;font-size:36px;background:#e8eedf;border-radius:10px}.title-row{display:flex;gap:8px;align-items:flex-start;justify-content:space-between}.dish-title{font-size:22px;line-height:1.25;margin:0;font-weight:900;word-break:break-word}.dish-title a{color:#18221a;text-decoration:none}.dish-title a:hover{text-decoration:underline}.tag{font-size:12px;background:#2f613e;color:#fff;border-radius:50%;padding:10px 7px;font-weight:900;flex:none}.summary{font-size:12px;line-height:1.5;color:#5b625b;margin:7px 0 0}.facts{display:flex;flex-wrap:wrap;gap:7px}.fact{background:#eaf0e3;border:1px solid #cbd9c4;border-radius:8px;padding:6px 9px;font-size:12px;font-weight:800}.fact b{font-size:14px;color:#1e4d2b}.block{border-top:2px solid #171d17;padding-top:10px}.block h3{font-size:13px;letter-spacing:.04em;color:#4a604c;margin:0 0 7px}.requirements,.effect{font-size:13px;line-height:1.55;margin:0}.effects{margin:0;padding-left:18px;display:grid;gap:5px}.recipe-items{display:flex;gap:7px;flex-wrap:wrap}.ingredient{display:flex;align-items:center;gap:4px;padding:4px 7px 4px 4px;background:#f0ebda;border:1px solid #d9ceb2;border-radius:8px;font-size:12px;font-weight:700}.ingredient img{width:29px;height:29px;object-fit:contain}.ingredient strong{color:#75521a}.recipe-note{font-size:12px;color:#5b625b;margin:7px 0 0}.card-footer{margin-top:auto;padding-top:8px;border-top:1px solid #e3e5db;display:flex;gap:10px;flex-wrap:wrap;color:#657566;font-size:11px}.card-footer a{color:#225f37;text-decoration:none;font-weight:800}.empty{padding:40px;text-align:center;color:#fff;background:#0b1c1399;border-radius:14px}@media(max-width:650px){.hero{padding:30px 16px 25px}main{padding:22px 12px 50px}.grid{grid-template-columns:1fr;gap:14px}.toolbar button{flex:1}.card{padding:14px}.dish-title{font-size:20px}} 
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.stat{display:grid;grid-template-columns:22px 1fr;align-items:center;column-gap:5px;padding:7px 8px;border:1px solid #ddd8c8;border-radius:9px;background:#f8f5ed;min-width:0}.stat-icon{grid-row:1/3;font-size:20px;font-weight:900;line-height:1}.stat-label{font-size:10px;color:#687268;white-space:nowrap}.stat-value{font-size:18px;line-height:1.15}.stat-health .stat-icon,.stat-health .stat-value{color:#b94141}.stat-hunger .stat-icon,.stat-hunger .stat-value{color:#ab7719}.stat-sanity .stat-icon,.stat-sanity .stat-value{color:#5663ad}
.stats{grid-template-columns:repeat(3,minmax(0,1fr))}.stat{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 2px}.stat-icon{display:block;line-height:0}.stat-icon img{width:30px;height:30px;object-fit:contain}.stat-value{font-size:18px;line-height:1.1}.recipe-items{display:grid;grid-template-columns:repeat(4,minmax(0,44px));gap:6px}.ingredient-slot{display:grid;place-items:center;width:44px;height:44px;background:#f0ebda;border:1px solid #cdbb91;border-radius:5px;box-shadow:inset 0 0 0 2px #fff7e1}.ingredient-slot img{width:38px;height:38px;object-fit:contain}
.filter-control,.effect-control{display:flex;align-items:center;gap:9px;min-height:46px;padding:6px 12px;border:2px solid #080d08;border-radius:12px;background:#f8f6ea;color:#273527;font-size:13px;font-weight:800;white-space:nowrap}.filter-control select{border:0;background:transparent;color:#17231b;font:inherit;font-size:14px;cursor:pointer;outline:none}.filter-control:focus-within{outline:3px solid #ffe071;outline-offset:2px}.effect-control{cursor:pointer;user-select:none}.effect-control input{position:absolute;opacity:0;width:1px;height:1px}.toggle-track{position:relative;display:inline-block;width:40px;height:23px;border-radius:20px;background:#7b897a;transition:background .15s}.toggle-track::after{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#fff;transition:transform .15s}.effect-control input:checked+.toggle-track{background:#2f7944}.effect-control input:checked+.toggle-track::after{transform:translateX(17px)}.effect-control input:focus-visible+.toggle-track{outline:3px solid #ffe071;outline-offset:2px}.hide-effects .effects-block{display:none}.hide-effects .grid{grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:12px;align-items:start}.hide-effects .card{padding:12px;gap:8px}.hide-effects .card-top{grid-template-columns:70px 1fr;gap:10px}.hide-effects .dish-image{width:70px;height:70px}.hide-effects .dish-title{font-size:18px}.hide-effects .summary{margin-top:4px;font-size:11px}.hide-effects .stat{padding:3px 2px}.hide-effects .stat-icon img{width:24px;height:24px}.hide-effects .stat-value{font-size:15px}.hide-effects .block{padding-top:6px}.hide-effects .recipe-items{grid-template-columns:repeat(4,36px);gap:4px}.hide-effects .ingredient-slot{width:36px;height:36px}.hide-effects .ingredient-slot img{width:31px;height:31px}.hide-effects .recipe-note,.hide-effects .requirements{font-size:11px}.hide-effects .card-footer{padding-top:5px}@media(max-width:650px){.filter-control,.effect-control{flex:1;justify-content:space-between}.hide-effects .grid{grid-template-columns:1fr}}
#capture-root{position:absolute;top:0;left:-100000px;margin:0;z-index:-1;background:#183b2c;pointer-events:none}
#capture-root .card{border:1px solid #a9b9ac;box-shadow:0 2px 6px #06150c28}#capture-root .block{border-top:1px solid #b6c4b8}#capture-root .dish-image{filter:none}

.source-control{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0;padding:5px 12px 7px;border:2px solid #080d08;border-radius:12px;background:#f8f6ea;color:#273527;font-size:13px;font-weight:800}.source-control legend{padding:0 4px;font-size:11px}.source-control label{display:flex;align-items:center;gap:3px;white-space:nowrap;cursor:pointer}.source-control input{accent-color:#2f7944;width:16px;height:16px;margin:0}.source-control .chef-choice{color:#962f2d}.source-control .chef-choice input{accent-color:#a73c33}
.dst-card .recipe-note{color:#6e6457}.dst-card .ingredient-slot{position:relative}.dst-card .ingredient-slot img{max-width:100%}.chef-card{position:relative;overflow:hidden;border-color:#26100d;background:radial-gradient(circle at 97% 7%,#f6dbb9 0,#f6dbb9 8%,transparent 29%),linear-gradient(145deg,#fff8e9,#f5e8d3 65%,#e8d2b9);box-shadow:inset 0 0 0 2px #bd6250,0 6px 0 #22100e,0 13px 22px #06150c70}.chef-card::before{content:"";position:absolute;inset:0 0 auto;height:10px;background:linear-gradient(180deg,#3e1514 0,#ae443b 25%,#d86d4d 43%,#521b19 76%,#250f0e 100%);border-bottom:1px solid #130b09}.chef-card::after{content:"";position:absolute;right:-12px;top:45px;width:57px;height:72px;border:6px solid #4b201d;border-left:0;border-radius:0 55% 55% 0;opacity:.16;pointer-events:none}.chef-card .tag{background:linear-gradient(135deg,#66211f,#b54238 55%,#60201d);box-shadow:inset 0 0 0 2px #db856a}.chef-card .fact{background:#f0ddc9;border-color:#c8a38a}.chef-card .fact b,.chef-card .card-footer a{color:#842d26}.chef-card .block{border-top-color:#6d302a}.chef-card .block h3{color:#78302a}.chef-card .stat{background:#f8e9d7;border-color:#d5b9a3}.chef-band{height:30px;display:flex;align-items:center;gap:6px;margin:-8px -4px 0;padding:3px 8px;border-radius:5px;background:linear-gradient(90deg,#3d1715,#8d352c 43%,#c5644a 68%,#5a211d);color:#ffe8c7;font-size:11px;font-weight:900;letter-spacing:.08em;text-shadow:0 1px 1px #240a09}.chef-band img{width:26px;height:26px;object-fit:contain;filter:drop-shadow(0 1px 1px #000)}.hide-effects .chef-band{height:25px;margin:-3px -1px 0}.hide-effects .chef-band img{width:22px;height:22px}#capture-root .chef-card{border:4px solid #26100d;border-top:8px solid #6d2821;background:linear-gradient(145deg,#fff8e9,#f5e8d3 65%,#e8d2b9);box-shadow:0 6px 0 #22100e,0 13px 22px #06150c70}#capture-root .chef-card::before,#capture-root .chef-card::after{display:none}#capture-root .chef-card .block{border-top:2px solid #6d302a}
@media(max-width:650px){.source-control{width:100%;gap:9px}.source-control legend{font-size:12px}}
.download-dialog{width:min(430px,calc(100% - 32px));max-width:none;border:3px solid #1c100c;border-radius:17px;padding:25px;background:linear-gradient(145deg,#fff9e9,#f3e6cd);color:#222a1e;box-shadow:0 15px 0 #120d0b,0 26px 50px #0008}.download-dialog::backdrop{background:#07170d9c}.download-dialog h2{margin:0 0 10px;font-size:23px}.download-dialog p{margin:0 0 22px;line-height:1.6}.download-actions{display:flex;justify-content:flex-end;gap:10px}.download-actions button{padding:9px 15px;border:2px solid #1c2118;border-radius:9px;font:inherit;font-weight:800;cursor:pointer}.download-actions #cancel-download{background:#fffdf5}.download-actions #confirm-download{background:#ffe071}.download-actions button:focus-visible{outline:3px solid #b65d3b;outline-offset:2px}
.source-control legend{padding:3px 10px;border:2px solid #fff;border-radius:8px;background:#f8f6ea;color:#171d15;box-shadow:0 2px 0 #08120b,inset 0 0 0 1px #d7cfb6;font-size:12px;font-weight:900;line-height:1.1}
.mobile-sort-dock{display:none}
@media(max-width:650px){
  .toolbar .filter-control{display:none}
  .mobile-sort-dock{display:block;position:sticky;top:0;z-index:50;padding:8px;background:#173725;border-bottom:2px solid #09190e;box-shadow:0 4px 8px #07150b66}
  .mobile-sort-dock .filter-control{width:100%;justify-content:space-between}
  main{padding:20px 8px 48px}
  .grid,.hide-effects .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:stretch}
  .card,.hide-effects .card{padding:9px;gap:8px;border-width:3px;border-radius:12px}
  .card-top,.hide-effects .card-top{display:flex;flex-direction:column;align-items:center;gap:5px}
  .card-top>div{width:100%;min-width:0}
  .dish-image,.hide-effects .dish-image{width:58px;height:58px}
  .dish-title,.hide-effects .dish-title{font-size:15px;line-height:1.25}
  .tag{font-size:10px;padding:7px 5px}
  .summary,.hide-effects .summary{font-size:10px;line-height:1.35;margin-top:4px}
  .facts{gap:4px}
  .fact{font-size:10px;padding:4px 5px}
  .fact b{font-size:11px}
  .stats{gap:3px}
  .stat,.hide-effects .stat{padding:3px 1px}
  .stat-icon img,.hide-effects .stat-icon img{width:21px;height:21px}
  .stat-value,.hide-effects .stat-value{font-size:12px;overflow-wrap:anywhere}
  .block,.hide-effects .block{padding-top:7px}
  .block h3{font-size:11px}
  .recipe-items,.hide-effects .recipe-items{grid-template-columns:repeat(4,minmax(0,1fr));gap:3px}
  .ingredient-slot,.hide-effects .ingredient-slot{width:100%;height:auto;aspect-ratio:1;min-width:0}
  .ingredient-slot img,.hide-effects .ingredient-slot img{width:90%;height:90%}
  .recipe-note,.requirements,.effect,.hide-effects .recipe-note,.hide-effects .requirements{font-size:10px;overflow-wrap:anywhere}
  .card-footer{font-size:9px;overflow-wrap:anywhere}
  .chef-band{font-size:9px;letter-spacing:0}
  .chef-card::after{right:0}
}
