:root{--home-blue:#087fc1;--home-cyan:#19cabb}
.home-page{min-height:100dvh;padding-bottom:84px;background:linear-gradient(180deg,rgba(225,246,250,.18),#e9f7f6 42%),url('assets/kingdom.webp') center top/auto 530px no-repeat;color:var(--navy)}
.home-hero{position:relative;min-height:196px;padding:calc(18px + env(safe-area-inset-top)) 18px 24px;display:grid;grid-template-columns:118px 1fr 52px;gap:12px;align-items:start;background:linear-gradient(180deg,rgba(244,250,249,.03),rgba(6,45,70,.12))}
.home-brand{width:118px;padding-top:8px}.home-brand .brand-logo{width:100%;height:auto}.chapter-title{text-align:center;color:white;text-shadow:0 2px 12px rgba(6,45,70,.45)}.chapter-title span{display:inline-block;padding:7px 22px;border-radius:99px;background:rgba(17,115,177,.86);border:1px solid rgba(255,255,255,.9);font-weight:950;box-shadow:0 5px 15px rgba(6,45,70,.16)}.chapter-title h1{font-size:1.5rem;line-height:1.2;margin:10px -15px 3px;white-space:nowrap}.chapter-title small{font-weight:850}.home-menu{width:52px;height:52px;border:1px solid rgba(255,255,255,.9);border-radius:50%;background:rgba(7,102,166,.76);color:#fff;font-size:1.3rem;font-weight:900;display:grid;place-items:center;line-height:1}.home-menu small{font-size:.5rem}.home-content{position:relative;margin-top:-18px;padding:0 14px 20px;display:grid;gap:10px}.home-player,.home-panel,.home-update{border:1px solid rgba(19,148,193,.55);background:rgba(255,255,255,.94);box-shadow:0 8px 24px rgba(6,45,70,.14);border-radius:22px}.home-player{display:grid;grid-template-columns:80px 1fr auto;gap:12px;align-items:center;padding:12px}.home-player .citizen-photo{width:80px;height:92px;border-radius:16px}.home-player small,.home-player h2,.home-player p,.home-player b{display:block;margin:0}.home-player small{font-weight:900;color:#087d76}.home-player h2{font-size:1.14rem;margin:2px 0 6px}.home-player p{display:flex;gap:5px;flex-wrap:wrap}.home-player p span{padding:4px 8px;border-radius:99px;background:#ddf6f1;font-size:.7rem;font-weight:850}.home-player>div>b{margin-top:7px;font-size:.86rem}.home-player>button{align-self:stretch;border:0;border-left:1px solid var(--line);background:transparent;color:#0575c0;font-weight:900;padding:8px}.home-panel{padding:14px}.panel-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.panel-title h2{font-size:1rem;margin:0}.panel-title span{color:#1789c3;font-size:.72rem;font-weight:850}.home-citizens{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.home-citizen{text-align:center}.home-citizen .citizen-photo{width:56px;height:56px;border-radius:50%;border:3px solid #d6e7eb}.home-citizen.you .citizen-photo{border-color:#19cabb;box-shadow:0 0 0 4px rgba(25,202,187,.14)}.home-citizen b{display:block;margin-top:4px;padding:3px;border-radius:99px;background:#718cad;color:white;font-size:.61rem}.home-citizen.you b{background:#10b9ae}.social-grid{display:grid;grid-template-columns:1.12fr repeat(4,1fr);gap:0}.social-grid>div{min-width:0;text-align:center;padding:8px 5px;border-left:1px solid #c9dce1}.social-grid>div:first-child{border-left:0}.social-grid small,.social-grid b{display:block}.social-grid small{min-height:2.5em;color:#375b6b;font-size:.61rem;line-height:1.3;font-weight:800}.social-grid b{font-size:.7rem;line-height:1.25;color:#0d8f85}.social-grid b.warn{color:#b27406}.social-grid b.danger{color:#bd3745}.outbreak{display:grid;grid-template-columns:44px 1fr;align-items:center;gap:10px}.outbreak>div{font-size:2rem;color:#0b89c8}.outbreak p,.outbreak strong,.outbreak span{margin:0;display:block}.outbreak strong{font-size:.86rem}.outbreak span{margin-top:3px;color:var(--muted);font-size:.74rem}.home-update{padding:10px 14px;border-color:#f0c46c;background:#fff8e8}.home-update small,.home-update b{display:block}.home-update small{color:#947126;font-size:.65rem;font-weight:850}.home-update b{font-size:.78rem;margin-top:2px}.next-event{width:100%;min-height:62px;border:1px solid white;border-radius:99px;background:linear-gradient(135deg,#23d1c3,#009fca);color:white;font-size:1.22rem;font-weight:950;box-shadow:0 12px 25px rgba(0,160,189,.25)}.next-event span{font-size:1.8rem;vertical-align:-2px;margin-left:5px}.bottom-nav{position:fixed;z-index:40;left:50%;bottom:0;width:min(100%,540px);transform:translateX(-50%);padding:7px 8px calc(7px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.97);border-top:1px solid #cce0e3;box-shadow:0 -8px 24px rgba(6,45,70,.08)}.bottom-nav button{border:0;background:transparent;color:#597fa4;font-size:.68rem;font-weight:850;padding:4px 2px;border-radius:13px}.bottom-nav button span{display:block;font-size:1.35rem;line-height:1.2}.bottom-nav button.active{color:#047f9f;background:#ddf8f7}.home-dialog{position:fixed;z-index:100;inset:0;display:grid;place-items:center;padding:20px;background:rgba(3,31,48,.56)}.home-dialog>div{width:min(100%,420px);padding:22px;background:white;border-radius:24px;box-shadow:0 22px 70px rgba(0,0,0,.25)}.home-dialog h2{margin:0 0 8px}.home-dialog p{color:var(--muted);line-height:1.65}.home-dialog button{width:100%;border:0;border-radius:15px;background:var(--navy);color:white;padding:12px;font-weight:900}.event-person{display:flex;align-items:center;gap:20px}.event-emoji{font-size:4rem}.sudden-event .event-visual{background:linear-gradient(140deg,#ffdbd6,#fff2df)}.sudden-event .event-top span{color:#c3484c}.policy-event .event-visual{background:linear-gradient(140deg,#dfe8ff,#eef7ff)}.policy-event .event-top span{color:#496cc2}
@media(max-width:390px){.home-hero{grid-template-columns:96px 1fr 48px;padding-left:12px;padding-right:12px}.home-brand{width:96px}.chapter-title h1{font-size:1.25rem}.home-menu{width:48px;height:48px}.home-content{padding-left:9px;padding-right:9px}.home-player{grid-template-columns:68px 1fr auto}.home-player .citizen-photo{width:68px;height:80px}.home-player h2{font-size:1rem}.home-player>button{font-size:.72rem;padding:5px}.social-grid small{font-size:.54rem}.social-grid b{font-size:.62rem}.home-panel{padding:11px}.bottom-nav{padding-left:3px;padding-right:3px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
