/* Home uses solid, bevelled game panels inspired by the supplied reference. */
#guide-home { margin:28px 0 0; }
.home-showcase { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(320px,.9fr); gap:30px; align-items:start; }
.home-feature { margin-top:56px; padding:20px; background:var(--panel); border:4px solid color-mix(in srgb,var(--panel) 76%,#fff); border-left-color:#080809; border-bottom-color:#080809; box-shadow:6px 7px 0 #00000030; }
.home-art { position:relative; min-height:345px; overflow:hidden; background:color-mix(in srgb,var(--panel) 60%,var(--bg)); border:1px solid var(--border); display:flex; flex-direction:column; justify-content:space-between; text-align:center; }
.home-art-label { font:clamp(24px,3vw,46px)/1 var(--display); color:var(--ink); text-shadow:3px 4px #000; padding:22px 10px 0; letter-spacing:.06em; }
.home-cast { display:flex; align-items:flex-end; justify-content:center; height:240px; padding:8px 10px 0; }
.home-cast img { width:38%; height:90%; object-fit:contain; image-rendering:pixelated; filter:drop-shadow(5px 8px 0 #00000040); }
.home-cast img:first-child { margin-right:-12%; height:78%; }
.home-cast img:nth-child(2) { width:48%; position:relative; z-index:1; height:100%; }
.home-cast img:last-child { margin-left:-12%; }
.home-art-caption { font:11px/1.6 var(--body); letter-spacing:.09em; padding:12px; color:var(--ink); background:var(--bg); }
#guide-home h1 { font:clamp(28px,3.4vw,48px)/1.15 var(--display); letter-spacing:.01em; margin:22px 0 14px; text-transform:uppercase; }
#guide-home .home-feature-copy p { font-size:15px; line-height:1.65; margin:0 0 18px; }
.home-feature-tags { display:flex; flex-wrap:wrap; gap:7px; margin-bottom:22px; }
.home-feature-tags span { font-size:11px; padding:5px 7px; background:var(--bg); }
#guide-home .home-credit { font-size:11px; margin:0; opacity:.7; }
#guide-home .home-choices > h2 { font:600 13px/1.5 var(--body); text-transform:uppercase; letter-spacing:.08em; margin:0 0 18px; }
#guide-home .home-choice { display:block; color:var(--ink); text-decoration:none; background:var(--panel); border:4px solid color-mix(in srgb,var(--panel) 76%,#fff); border-left-color:#080809; border-bottom-color:#080809; margin:0 0 18px; transition:border-color 140ms ease,background 140ms ease; }
.home-choice > div { padding:20px; }
#guide-home .home-choice h3 { display:flex; justify-content:space-between; gap:12px; font:clamp(21px,2vw,29px)/1.25 var(--display); text-transform:uppercase; margin:0 0 14px; }
#guide-home .home-choice h3 > span { font-family:var(--body); font-size:18px; }
#guide-home .home-choice p { font:13px/1.7 var(--body); margin:0 0 16px; }
.home-choice-bottom { display:flex; justify-content:space-between; gap:15px; border-top:3px solid var(--bg); padding-top:14px; font-size:12px; font-weight:600; }
#guide-home .home-choice-primary { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 7%,var(--panel)); }
.home-choice-ribbon { display:block; padding:6px 12px; background:var(--accent); color:var(--bg); text-align:center; font:14px/1.3 var(--display); border-bottom:4px solid var(--bg); }
#guide-home .home-choice:hover { border-color:var(--accent); background:color-mix(in srgb,var(--accent) 12%,var(--panel)); }
.home-shortcuts { display:grid; grid-template-columns:1fr 1.3fr; gap:12px; }
#guide-home .home-shortcuts a { color:var(--ink); display:flex; justify-content:space-between; gap:12px; padding:14px 12px; border:2px solid var(--border); text-decoration:none; font-size:12px; font-weight:600; }
#guide-home .home-shortcuts a:hover { border-color:var(--accent); }
#guide-home .guide-how { margin:65px 0 0; border-top:4px solid var(--border); padding-top:36px; display:block; }
#guide-home .home-tour-heading { margin-bottom:20px; }
#guide-home .home-tour-heading h2 { font:30px/1.2 var(--display); text-transform:uppercase; }
#guide-home .home-tour-heading p { margin-top:12px; font-size:14px; }
.home-tour-sections { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:45px; }
#guide-home .guide-instructions { padding:24px 0; }
#guide-home .guide-instructions h3 { font:600 16px/1.5 var(--body); }
#guide-home .guide-instructions p { font-size:13px; line-height:1.8; }
.home-outro { margin-top:30px; border-top:1px solid var(--border); padding-top:25px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; align-items:center; }
#guide-home .home-outro p { font:22px/1.3 var(--display); text-transform:uppercase; margin:0; }
.home-outro a { font-size:12px; }
@media(min-width:1600px) { .home-art { min-height:470px; } .home-cast { height:340px; } .home-feature { padding:24px; } }
@media(max-width:1000px) { .home-showcase { grid-template-columns:minmax(0,1fr); gap:35px; } .home-feature { margin-top:0; } .home-choices { max-width:none; } .home-art { min-height:350px; } .home-cast { height:250px; } }
@media(max-width:600px) { #guide-home { margin-top:20px; } .home-feature { padding:12px; } .home-art { min-height:290px; } .home-cast { height:200px; } .home-tour-sections { grid-template-columns:1fr; } .home-shortcuts { grid-template-columns:1fr; } .home-choice > div { padding:18px; } #guide-home .guide-how { margin-top:40px; } }
@media(prefers-reduced-motion:reduce) { #guide-home .home-choice { transition:none; } }

#guide-home .home-cast img{max-width:38%;object-fit:contain}#guide-home .home-feature-copy h1{background:none;border:0;box-shadow:none;padding:0}#guide-home .suite-migration{margin-top:28px}

#guide-home .treasure-pile{position:relative;height:280px;width:100%;max-width:500px;margin:0 auto;padding:0}
#guide-home .treasure-pile .treasure-piece{position:absolute;object-fit:contain;max-width:none;margin:0;height:auto;filter:drop-shadow(3px 5px 0 #0004)}
#guide-home .treasure-pile .treasure-0{width:42%;left:33%;bottom:12%;z-index:4;transform:rotate(15deg)}
#guide-home .treasure-pile .treasure-1{width:36%;left:9%;bottom:9%;z-index:2;transform:rotate(-22deg)}
#guide-home .treasure-pile .treasure-2{width:29%;right:8%;bottom:8%;z-index:3;transform:rotate(12deg)}
#guide-home .treasure-pile .treasure-3{width:15%;left:31%;bottom:1%;z-index:6;transform:rotate(-15deg)}
#guide-home .treasure-pile .treasure-4{width:16%;right:29%;bottom:1%;z-index:7;transform:rotate(17deg)}
#guide-home .treasure-pile .treasure-5{width:15%;left:13%;bottom:1%;z-index:5}
#guide-home .treasure-pile .treasure-6{width:27%;left:37%;bottom:3%;z-index:1}
@media(max-width:600px){#guide-home .treasure-pile{height:230px}}

/* Text-led introduction: no oversized inventory-art banner. */
#guide-home .home-feature { padding:clamp(24px,4vw,48px); border:1px solid var(--border); border-top:3px solid var(--accent); box-shadow:none; }
#guide-home .home-feature-copy h1 { margin-top:0; }
/* Familiar, powerful equipment, and materials: three readable groups. */
.home-scene{display:grid;grid-template-columns:1fr 1fr 1fr;align-items:end;gap:16px;max-width:540px;margin:0 auto 32px;padding:24px 0 26px;border-bottom:1px solid var(--border)}
.home-scene>div{display:flex;align-items:flex-end;justify-content:center;min-width:0;height:150px}
.home-scene img{image-rendering:pixelated;object-fit:contain;filter:drop-shadow(0 5px 3px #0005)}
.home-scene .scene-familiar img{width:auto;height:auto;max-width:100%;max-height:145px}
.home-scene .scene-item img{width:auto;height:auto;max-width:100%;max-height:135px}
.home-scene .scene-resources{position:relative;max-width:145px;width:100%;height:110px;align-self:end;margin:0 auto}
.scene-resources img{position:absolute;width:52px;height:52px;object-fit:contain;bottom:0}
.scene-resources img:nth-child(1){left:12%;bottom:20px;transform:rotate(-12deg)}
.scene-resources img:nth-child(2){right:10%;bottom:15px;transform:rotate(14deg)}
.scene-resources img:nth-child(3){left:35%;bottom:42px}
.scene-resources img:nth-child(4){left:30%;bottom:0;width:42px;height:42px}
.scene-resources img:nth-child(5){right:0;bottom:0;width:28px;height:28px}
@media(max-width:600px){.home-scene{gap:10px;margin-bottom:24px}.home-scene>div{height:115px}.home-scene .scene-familiar img{max-height:110px}.home-scene .scene-item img{max-height:100px}.home-scene .scene-resources{transform:scale(.8);transform-origin:bottom center}}

/* Original complete item sprites; no inventory frames or clipping. */
#guide-home .planner-item-showcase{display:flex;align-items:center;justify-content:space-evenly;gap:clamp(16px,4vw,48px);padding:18px 0 36px;margin-bottom:28px;border-bottom:1px solid var(--border)}
#guide-home .planner-item-showcase img{display:block;width:26%;height:clamp(96px,12vw,160px);object-fit:contain;image-rendering:pixelated;border:0;background:none;box-shadow:none}
@media(max-width:600px){#guide-home .planner-item-showcase{gap:16px;padding-bottom:24px;margin-bottom:24px}#guide-home .planner-item-showcase img{height:100px}}

/* Familiar-style showcase, using complete equipment animations. */
#guide-home .planner-equipment-banner{min-height:360px;overflow:visible;margin-bottom:30px}
#guide-home .planner-equipment-models{display:flex;align-items:center;justify-content:center;gap:28px;padding:20px;min-height:260px}
#guide-home .planner-equipment-models img{display:block;width:auto;height:auto;max-width:100%;max-height:280px;object-fit:contain;image-rendering:pixelated;background:none;border:0;box-shadow:none}
@media(max-width:600px){#guide-home .planner-equipment-banner{min-height:300px}#guide-home .planner-equipment-models{min-height:210px;padding:16px}#guide-home .planner-equipment-models img{max-height:230px}}

#guide-home .planner-equipment-models{align-items:flex-end;justify-content:space-evenly}
#guide-home .planner-equipment-models img{max-width:42%;min-width:0}
#guide-home .planner-equipment-models .banner-cat{width:172px;max-height:146px;margin-bottom:12px}
@media(max-width:600px){#guide-home .planner-equipment-models .banner-cat{width:120px;max-height:102px}}

/* Three distinct models retain their full canvases on narrow screens. */
#guide-home .planner-equipment-models{gap:clamp(8px,3vw,28px)}
#guide-home .planner-equipment-models img{max-width:30%}
#guide-home .planner-equipment-models .banner-book{width:280px;max-height:280px;margin-bottom:0}
@media(max-width:600px){#guide-home .planner-equipment-models{padding:16px 8px}#guide-home .planner-equipment-models .banner-book{width:180px;max-height:180px}}

/* Temporary sword-only banner. */
#guide-home .planner-equipment-models:has(>img:only-child){justify-content:center;align-items:center}
#guide-home .planner-equipment-models>img:only-child{max-width:100%}

#guide-home .treasure-pile img{image-rendering:pixelated}
#guide-home .home-art:has(.treasure-pile){margin-bottom:28px}
