.realm-handbook{max-width:1240px;margin:0 auto;padding:clamp(16px,4vw,48px);color:#f4e6c5}
.handbook-intro{padding:clamp(20px,5vw,54px);border:1px solid #a98b50;border-radius:12px;background:linear-gradient(90deg,#0b221fee,#0b221fa6),url('/assets/arrakis.webp') center/cover;margin-bottom:24px}
.handbook-intro h1{font-size:clamp(2rem,6vw,4rem);margin:0 0 .4em}.handbook-intro a,.manual-jump a,.recipe-notes a,.player-manual section a{color:#efd193}
.recipe-layout{display:grid;grid-template-columns:minmax(175px,235px) minmax(0,1fr);gap:22px}
.recipe-index{align-self:start;border:1px solid #8f753f;background:#102a23;border-radius:10px;padding:15px}
.recipe-index label,.recipe-index input{display:block;width:100%;margin-bottom:9px}.recipe-index input{box-sizing:border-box;padding:9px;border:1px solid #ad9158;background:#091e19;color:#fff4d5;border-radius:5px}
.recipe-index h2{margin:16px 0 4px;font-size:1rem;color:#e8c479}.recipe-index a{display:block;padding:6px;color:#f5e7c4}.recipe-index a[aria-current]{background:#2a4738;border-radius:4px}
.recipe-spread{display:grid;grid-template-columns:1fr 1fr;border:9px solid #473322;border-radius:14px;overflow:hidden;box-shadow:0 10px 18px #0005}
.recipe-sheet{padding:clamp(16px,4vw,36px);background:linear-gradient(105deg,#ead9aa,#f5e7bd);color:#34251b;min-width:0}.recipe-sheet+.recipe-sheet{border-left:2px solid #b89b66;background:linear-gradient(90deg,#cfb783,#f5e7bd 15%)}
.recipe-sheet h2,.recipe-sheet a{color:#493322}.recipe-sheet li{margin:.5em 0}
.recipe-grid{padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;list-style:none}.recipe-grid li{display:grid;place-items:center;min-height:46px;margin:0;padding:3px;background:#d6be8e;border:1px solid #a78656;text-align:center;font-size:.74rem;overflow-wrap:anywhere}.recipe-grid img{width:26px;height:26px;image-rendering:pixelated;object-fit:contain}
.recipe-notes,.player-manual section{background:#102a23;border:1px solid #927a47;padding:clamp(16px,4vw,30px);border-radius:10px;margin-top:20px}.manual-jump{display:flex;gap:16px;flex-wrap:wrap}.player-manual code{color:#ffdc91;white-space:normal}
@media(max-width:740px){.recipe-layout,.recipe-spread{grid-template-columns:1fr}.recipe-sheet+.recipe-sheet{border-left:0;border-top:2px solid #b89b66}}

#recipe-output{display:flex;align-items:center;gap:9px}
#recipe-output img{width:34px;height:34px;object-fit:contain;image-rendering:pixelated}
#recipe-name:focus-visible{outline:2px solid #715831;outline-offset:4px}

.recipe-manual-link{margin:0 0 18px;text-align:right}
.recipe-index{display:block}
.recipe-index input{min-width:0;max-width:100%}
.recipe-index #recipe-index h2{font-size:1rem;margin:12px 0 2px}
.recipe-index #recipe-index a{padding:3px 6px}
#recipe .recipe-sheet,#recipe .recipe-sheet :is(h2,p,li,span,a){color:#392619!important}
#recipe .recipe-sheet a{text-decoration:underline;text-underline-offset:2px}

#recipe-station{display:flex;align-items:center;gap:9px}#recipe-station img{width:28px;height:28px;object-fit:contain;image-rendering:pixelated}

#recipe-station-layout{display:grid;grid-template-columns:minmax(0,1fr) clamp(14px,6%,32px) minmax(36px,1fr);gap:clamp(6px,2vw,20px);align-items:center;width:min(100%,360px);padding:clamp(7px,2vw,17px);border:2px solid #65482e;border-radius:5px;background:#c6c4b7;box-shadow:inset 2px 2px #eeead5,inset -2px -2px #858176;box-sizing:border-box}
#recipe-station-layout.recipe-station--crafting{grid-template-columns:minmax(0,3fr) clamp(14px,8%,32px) minmax(32px,1fr)}
#recipe-grid{grid-template-columns:repeat(auto-fit,minmax(28px,1fr));gap:2px;margin:0}
.recipe-station--crafting #recipe-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
#recipe-grid li,#recipe-result{box-sizing:border-box;display:grid;place-items:center;aspect-ratio:1;min-height:0;margin:0;padding:2px;border:0;background:#8e8d82;box-shadow:inset 2px 2px #53524a,inset -2px -2px #efebdb}
#recipe-grid li[aria-label="Empty slot"]{background:#85847a}
#recipe-grid li>a{display:grid;place-items:center;width:100%;height:100%}
#recipe-grid img,#recipe-result img{width:min(85%,38px);height:auto;aspect-ratio:1;object-fit:contain;image-rendering:pixelated}
.recipe-arrow{width:100%;aspect-ratio:1;background:#675f4e;clip-path:polygon(0 39%,58% 39%,58% 14%,100% 50%,58% 86%,58% 61%,0 61%)}

#recipe-station-layout.recipe-station--cooking{grid-template-columns:minmax(28px,42px) clamp(14px,8%,32px) minmax(36px,50px);justify-content:center}
.recipe-station--cooking #recipe-grid{grid-template-columns:1fr}
.recipe-station--cooking #recipe-grid .recipe-heat{width:66%;justify-self:center;aspect-ratio:1.8;background:linear-gradient(#edb445,#af622a);box-shadow:none;clip-path:polygon(0 100%,10% 45%,26% 69%,39% 12%,53% 62%,74% 24%,100% 100%)}

#recipe-station-layout{margin:14px auto 0;border-color:#705338;box-shadow:inset 2px 2px #eeead5,inset -2px -2px #858176,0 4px 10px #41280f36}
#recipe-output{justify-content:center;text-align:center}
#recipe-result{outline:1px solid #8d693b;outline-offset:2px}
#recipe-grid li>a:focus-visible{outline:2px solid #ffe1a2;outline-offset:-2px}

#recipe-item-card{margin-top:20px}
#recipe-item-card .item-lore-card{max-width:100%}

#recipe-station-layout{background:#2e2317 url('/recipe-icons/dune-crafting-panel.webp') center/100% 100% no-repeat;border-color:#7f5e32;box-shadow:0 4px 12px #34231466;padding:clamp(10px,2.6vw,24px)}
#recipe-grid li,#recipe-result{background:#23463c;box-shadow:inset 2px 2px #142820,inset -1px -1px #a7834b}
#recipe-grid li[aria-label="Empty slot"]{background:#172c27d9}
#recipe-result{outline-color:#d9ae61}
.recipe-arrow{background:#dcaf64}
#recipe-ingredients{padding:0;list-style:none}
#recipe-ingredients li{display:grid;grid-template-columns:max-content minmax(0,1fr) 26px;align-items:center;gap:8px}
.ingredient-icon{width:26px;height:26px;display:grid;place-items:center}
.ingredient-icon img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.ingredient-quantity{white-space:nowrap}

#recipe-ingredients{padding:6px 14px;border:1px solid #b39155;border-radius:5px;background:#fff4d440;box-shadow:inset 0 0 0 2px #faedca}
#recipe-ingredients li{margin:0;padding:9px 0}
#recipe-ingredients li+li{border-top:1px solid #b3915566}

.guide-layout{display:grid;grid-template-columns:minmax(180px,240px) minmax(0,1fr);gap:clamp(18px,3vw,36px);align-items:start}
.guide-index{padding:18px;border:1px solid #886f3e;border-radius:7px;background:#142f27}
.guide-index h2{margin:0 0 12px;font-size:1.2rem}
.guide-index ol{margin:0;padding:0 0 0 1.4rem;color:#dcb977}
.guide-index li{padding:4px 0}
.guide-index a{color:#f0dfb7}
.guide-index .guide-book-link{display:flex;align-items:center;gap:9px;margin-top:15px;padding-top:12px;border-top:1px solid #78633c}
.guide-chapters{display:grid;gap:20px;min-width:0}
.player-manual .guide-chapter{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);min-height:192px;padding:0;margin:0;overflow:hidden;scroll-margin-top:20px;border-radius:7px;background:linear-gradient(135deg,#1d3a2c,#102921)}
.guide-chapter-art{display:grid;position:relative;overflow:hidden;isolation:isolate;min-height:150px}
.guide-chapter-art img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.guide-chapter-art::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent 75%,#17322640)}
.guide-chapter-portrait{background:radial-gradient(ellipse at center,#66502e,#10261f)}
.guide-chapter-portrait img{object-fit:contain;padding:12px;box-sizing:border-box}
.guide-chapter-copy{padding:clamp(18px,3vw,30px);align-self:center}
.guide-chapter-copy h2{margin:0 0 10px;font-size:clamp(21px,2vw,30px)}
.guide-chapter-copy p{margin:0 0 12px}
.guide-action{display:inline-flex;align-items:center;gap:8px;border-bottom:1px solid #aa8950;padding:0 0 3px}
@media(max-width:740px){.guide-layout,.player-manual .guide-chapter{grid-template-columns:1fr}.guide-index ol{display:flex;flex-wrap:wrap;gap:0 24px;padding-left:18px}.guide-chapter-art{min-height:170px}.guide-chapter-portrait img{padding:4px}}

.recipe-item-info{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);align-items:start;gap:clamp(20px,4vw,44px);margin-top:20px;padding:clamp(18px,4vw,32px);border:1px solid #927a47;border-radius:10px;background:linear-gradient(140deg,#1b372a,#10271f)}
.recipe-item-info h2{margin-top:0}
.recipe-item-info #recipe-item-card{margin:0;min-width:0}
@media(max-width:740px){.recipe-item-info{grid-template-columns:1fr}}
