/* Hero dossier only; the approved castle home screen keeps its own composition. */
#screen[data-tab="hero"]{background:radial-gradient(ellipse at 80% 0,#35524722,transparent 50%),linear-gradient(145deg,#101d18,#080f0d);}
#screen[data-tab="hero"] .hero-head{position:relative;isolation:isolate;grid-template-columns:minmax(240px,43%) minmax(0,1fr);align-items:stretch;gap:0;border:1px solid #a18a50;border-image:none;border-radius:14px;overflow:hidden;background:linear-gradient(90deg,#08160f33,#0a1914f5 48%,#11271df5),url('img/bg/castle1.webp') 30% 45%/cover;box-shadow:inset 0 0 0 4px #14251b,inset 0 0 0 5px #87713b55,0 10px 22px #0007;}
#screen[data-tab="hero"] .hh-art{position:relative;min-width:0;background:radial-gradient(ellipse at 50% 80%,#e5c56f22,transparent 65%);border-inline-end:1px solid #bfa56555;}
#screen[data-tab="hero"] .hh-art:after{content:"";position:absolute;inset:auto 8% 3px;height:28px;background:url('img/decor/royal-dais.svg') center bottom/contain no-repeat;pointer-events:none;opacity:.8;}
#screen[data-tab="hero"] .hh-art .scene{height:270px;background:linear-gradient(0deg,#09130fe6,transparent 55%);border:0;}
#screen[data-tab="hero"] .hh-art canvas{position:relative;z-index:1;}
#screen[data-tab="hero"] .hh-art .scene>small{z-index:2;background:#09160ed9;border:1px solid #9b845844;border-radius:12px;padding:3px 9px;bottom:5px;color:#ded0a0;}
#screen[data-tab="hero"] .hh-txt{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;text-align:start;padding:22px 25px;gap:7px;min-width:0;background:linear-gradient(135deg,#45614915,transparent);}
#screen[data-tab="hero"] .hh-txt h2{font-size:32px;line-height:1.05;color:#f2dfaa;margin:0;text-shadow:0 2px 5px #000;}
#screen[data-tab="hero"] .hh-txt>.muted{line-height:1.5;color:#bac8ae;}
#screen[data-tab="hero"] .hh-txt>.muted.small{max-width:440px;font-size:12px;color:#8fa88d;}
#screen[data-tab="hero"] .hh-txt .power{align-self:flex-start;margin:1px 0 5px;padding:5px 18px;border:1px solid #bda36177;border-radius:5px;background:linear-gradient(110deg,#d9bb5b22,#b7a05606);font-size:27px;color:#f5d981;}
#screen[data-tab="hero"] .hh-txt .appearance-link{margin-inline-start:8px;}
#screen[data-tab="hero"]>.parch{background:linear-gradient(100deg,#243526,#182a20);color:#c7d0ba;border:1px solid #6f77514d;border-radius:10px;box-shadow:inset 3px 0 #b69b58;padding:14px 20px;line-height:1.6;font-size:13px;}
#screen[data-tab="hero"] .parch .motto{color:#e4ce8c;}
.hero-stats-heading{display:flex;align-items:center;gap:12px;margin:20px 0 12px;color:#d9c38d;font:700 21px var(--f-head);}
.hero-stats-heading:after{content:"";height:1px;flex:1;background:linear-gradient(90deg,#a98e4c77,transparent);}
#screen[data-tab="hero"]>.stats{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:22px;}
#screen[data-tab="hero"] .stat{--stat-accent:#d7bb69;position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;align-items:center;column-gap:9px;row-gap:3px;text-align:start;padding:15px 12px;border:1px solid color-mix(in srgb,var(--stat-accent) 35%,#243b2b);border-radius:10px;background:radial-gradient(ellipse at 0 0,color-mix(in srgb,var(--stat-accent) 13%,transparent),transparent 80%),linear-gradient(145deg,#213a2b,#101e18);box-shadow:inset 0 1px #ffffff09,0 5px 9px #0004;}
#screen[data-tab="hero"] .stat[data-stat="hp"]{--stat-accent:#7bd8a2;}
#screen[data-tab="hero"] .stat[data-stat="atk"]{--stat-accent:#edb18b;}
#screen[data-tab="hero"] .stat[data-stat="aspd"]{--stat-accent:#e5ce7b;}
#screen[data-tab="hero"] .stat[data-stat="range"]{--stat-accent:#7cc4d8;}
#screen[data-tab="hero"] .stat[data-stat="speed"]{--stat-accent:#b8ace5;}
#screen[data-tab="hero"] .stat>span{grid-row:1/3;display:grid;place-items:center;width:38px;height:42px;border-radius:8px;background:#07130e77;border:1px solid #c8bd8330;}
#screen[data-tab="hero"] .stat .stimg{width:31px;height:31px;object-fit:contain;filter:drop-shadow(0 2px 3px #0008);}
#screen[data-tab="hero"] .stat>b{font:700 25px/1.05 var(--f-head);color:#f7e9bc;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
#screen[data-tab="hero"] .stat>small{font-size:11px;line-height:1.2;color:#b7c8b2;}
@media(orientation:landscape) and (max-height:500px){#screen[data-tab="hero"] .hh-art .scene{height:215px;}#screen[data-tab="hero"] .hh-txt{padding:16px 20px;gap:5px;}#screen[data-tab="hero"] .hh-txt h2{font-size:29px;}#screen[data-tab="hero"] .stat{padding:12px 8px;column-gap:6px;grid-template-columns:30px minmax(0,1fr);}#screen[data-tab="hero"] .stat>span{width:30px;height:36px;}#screen[data-tab="hero"] .stat .stimg{width:27px;height:27px;}#screen[data-tab="hero"] .stat>b{font-size:23px;}}
@media(max-width:600px){#screen[data-tab="hero"] .hero-head{grid-template-columns:minmax(0,1fr);}#screen[data-tab="hero"] .hh-art{border-inline-end:0;}#screen[data-tab="hero"]>.stats{grid-template-columns:repeat(2,minmax(0,1fr));}}
#screen[data-tab="hero"] .hh-art{min-height:245px;}#screen[data-tab="hero"] .hh-art .scene{position:absolute;inset:0;height:100%;}#screen[data-tab="hero"] .hh-art:after{display:none;}
