/* Prevent guest/personal page flashes while the initial account scope resolves. */
#nav-news[hidden]{display:none!important}
html.startup-gated main>.site-page,html.startup-gated #public-seo-summary,html.startup-gated #account-sync-notice{display:none!important}
html.startup-gated #startup-loading{display:grid!important}
html:not(.startup-gated) #startup-loading{display:none!important}
.startup-loading{min-height:min(60vh,480px);place-items:center;padding:36px 20px}
.startup-card{width:min(100%,480px);text-align:center;color:#d9c49e}
.startup-card>img{width:64px;height:64px;object-fit:contain;margin-bottom:12px}
.startup-card h1{font-size:27px;color:#edcf96;margin:8px 0 12px;line-height:1.25}
.startup-card p{font-size:14px;line-height:1.7;color:#b7a787;margin:0 auto;max-width:390px}
.startup-lines{display:grid;gap:10px;margin:28px auto 0;width:80%;max-width:290px;opacity:.65}
.startup-lines span{display:block;height:9px;border-radius:5px;background:#79623b45;animation:startup-pulse 1.6s ease-in-out infinite alternate}
.startup-lines span:nth-child(2){width:82%;margin:auto;animation-delay:.2s}.startup-lines span:nth-child(3){width:60%;margin:auto;animation-delay:.4s}
html.startup-failed .startup-lines{display:none}
#startup-actions:not([hidden]){display:flex;justify-content:center;align-items:center;gap:22px;margin-top:24px;flex-wrap:wrap}
#startup-actions a{color:#e4bf7d}#startup-actions button{min-height:42px}
#account-button[aria-busy="true"]{cursor:progress;opacity:.8;min-height:42px;color:#b7a787}
@keyframes startup-pulse{to{opacity:.35}}
@media(prefers-reduced-motion:reduce){.startup-lines span{animation:none}}
@media(max-width:600px){.startup-loading{padding:30px 14px;min-height:390px}.startup-card h1{font-size:23px}.startup-card p{font-size:13px}.startup-card>img{width:56px;height:56px}#account-button[aria-busy="true"]{font-size:0;width:38px;min-width:38px;padding:5px}#account-button[aria-busy="true"]:before{content:'';display:block;width:24px;height:24px;border-radius:50%;background:#b9a4753b;margin:auto}}

/* Personal planning is gated at first paint; old browser work stays untouched. */
#builds-page.planner-account-required>:not(#planner-account-gate){display:none!important}
#planner-account-gate[hidden]{display:none!important}.planner-account-gate{max-width:640px;margin:35px auto;padding:32px;border:1px solid #756038;border-radius:7px;background:#282318;display:grid;gap:16px}.planner-account-gate h1{font-size:30px;line-height:1.2;margin:0;color:#f3d29b}.planner-account-gate>p{margin:0;line-height:1.7;color:#c3b18e;font-size:14px}.planner-account-gate>button,.planner-account-gate>a{justify-self:start}.planner-account-gate>button{min-height:44px;padding:11px 20px;background:linear-gradient(#e0c184,#bc954f);color:#241a0e;border:1px solid #d9b66b;border-radius:4px;font:inherit;font-size:14px}.planner-account-gate>a,.planner-account-gate>small{font-size:12px;line-height:1.6;color:#c6b18b}.planner-account-gate .home-eyebrow{font-size:10px;letter-spacing:1.4px;color:#d9b878}
#builds-page.planner-choose-character:not(.planner-account-required)>:not(.armory-planner-bar):not(#planner-account-gate){display:none!important}
.account-control.is-signed-out #account-button{max-width:190px;white-space:normal;line-height:1.3;font-size:12px}
.home-character-first:not(.home-signed):not(.home-workshop-guest)>.home-hero{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:center;gap:50px;padding-block:58px;min-height:0}
.home-character-first:not(.home-signed):not(.home-workshop-guest)>:not(.home-hero){display:none!important}
.home-character-first .home-value-chips,.home-character-first .home-hero-art>:not(.home-character-steps){display:none!important}.home-character-first .home-hero-art{height:auto!important;min-height:0!important;display:block;align-self:center;margin:0}.home-character-first .home-character-steps{display:grid;gap:0;list-style:none;padding:0;margin:0;position:relative;max-width:460px;background:#262316d9;border:1px solid #756038;border-radius:7px;overflow:hidden}.home-character-steps>li{display:flex;align-items:flex-start;gap:15px;padding:23px}.home-character-steps>li+li{border-top:1px solid #51462e}.home-character-steps>li>span{display:grid;place-items:center;flex:0 0 30px;height:30px;border:1px solid #937542;border-radius:50%;font-size:13px;color:#edcc88}.home-character-steps strong{font-size:16px;color:#efcf99}.home-character-steps p{font-size:13px;line-height:1.6;color:#c0ae8d;margin:6px 0 0}.home-character-first .home-intro{max-width:500px}.home-character-first #home-start[aria-disabled=true]{opacity:.6;pointer-events:none}.home-character-first .home-save-note{max-width:450px}
@media(max-width:760px){.home-character-first:not(.home-signed):not(.home-workshop-guest)>.home-hero{grid-template-columns:minmax(0,1fr);gap:30px;padding-block:30px}.home-character-first .home-character-steps{max-width:none}.home-character-steps>li{padding:17px}.home-character-steps strong{font-size:15px}.planner-account-gate{padding:22px;margin:18px auto}.planner-account-gate h1{font-size:26px}.account-control.is-signed-out #account-button{max-width:140px;font-size:11px}}

/* One homepage story; supporting tools remain in navigation. */
#home-planning-info{display:none!important}

/* The character connection is the primary v2 entry action. */
#home-page.home-character-first .home-actions>#home-start{background:linear-gradient(#e0c184,#c29d59);color:#251c0f;border-color:#edcf8a;font-weight:600;min-height:46px}
#home-page.home-character-first .home-actions>#home-start:hover{background:#edd194;color:#21190e}
/* V2: warm Warcraft gold, Battle.net blue, and restrained faction accents. */
.home-character-first .home-factions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0 0 24px;font-size:12px;line-height:1.5}.home-faction-alliance{color:#87b8ed}.home-faction-horde{color:#ed918a}.home-faction-divider{font-size:10px;color:#9c804d}.home-faction-note{color:#ae9a79;margin-left:4px}
#home-page.home-character-first .home-actions>#home-start[data-action=connect]{background:linear-gradient(135deg,#0877b6,#075784);border-color:#39a9df;color:#fff;box-shadow:0 5px 25px #008bd52b;gap:10px}
#home-page.home-character-first .home-actions>#home-start[data-action=connect]::before{content:'';width:22px;height:22px;flex:0 0 22px;background:url('battlenet-mark.svg') center/contain no-repeat}
#home-page.home-character-first .home-actions>#home-start[data-action=connect]:hover{background:linear-gradient(135deg,#168dcc,#0c6ba0);border-color:#6bcaff}
.home-character-first .home-hero-art>.home-armory-heading{display:flex!important;align-items:center;gap:10px;margin:0 0 16px;padding:0 7px}.home-armory-heading>img{flex:0 0 30px}.home-armory-heading>div{display:grid;gap:4px}.home-armory-heading span{font-size:9px;letter-spacing:1.6px;color:#c3a36a}.home-armory-heading strong{font-size:17px;color:#ecd6ac}
.home-character-first .home-character-steps{background:linear-gradient(145deg,#242621eb,#221a16eb);border-color:#79613b;box-shadow:0 18px 60px #0004}.home-character-first .home-character-steps>li{padding:22px;gap:18px;align-items:center;position:relative}.home-character-first .home-character-steps>li>div{min-width:0}.home-character-first .home-character-steps>li+li{border-top-color:#68503475}.home-character-first .home-character-steps>li::before{position:absolute;left:0;top:18px;bottom:18px;width:2px;content:'';background:#e1bc76}.home-character-first .home-step-connect::before{background:#39abed!important}.home-character-first .home-step-character::before{background:linear-gradient(#77a7e5,#da6c65)!important}
.home-character-first .home-character-steps .home-step-icon{display:grid;place-items:center;position:relative;flex:0 0 56px;width:56px;height:56px;border-radius:12px;border:1px solid #8c704743;background:#a27f2810;overflow:visible}.home-character-first .home-step-battlenet{background:#0a6b9f2b!important;border-color:#3193bd66!important;box-shadow:inset 0 0 20px #1474b21a}.home-step-icon>img{object-fit:contain;display:block}.home-character-first .home-character-steps .home-step-portraits{border:0;background:none;width:62px;flex-basis:62px}.home-step-portraits>img{position:absolute;border:1px solid #ad8a4c;border-radius:5px;box-shadow:0 3px 12px #0008}.home-step-portraits>img:first-child{left:-4px;top:2px;transform:rotate(-12deg);opacity:.8}.home-step-portraits>img:nth-child(2){z-index:2;left:9px;top:8px}.home-step-portraits>img:last-child{right:-4px;bottom:0;transform:rotate(12deg);opacity:.85}.home-step-number{display:block;color:#ad9870;font-size:8px;line-height:1.4;letter-spacing:1.2px;margin:0 0 5px}.home-step-connect .home-step-number{color:#71bbdd}.home-character-first .home-character-steps strong{font-size:17px}.home-character-first .home-character-steps p{font-size:12px;line-height:1.6;margin-top:5px}
@media(max-width:760px){.home-character-first .home-factions{margin-bottom:20px;font-size:11px;gap:8px}.home-faction-note{margin-left:0}.home-character-first .home-hero-art>.home-armory-heading{margin-bottom:12px}.home-character-first .home-character-steps>li{padding:18px 16px;gap:15px}.home-character-first .home-character-steps .home-step-icon{flex-basis:48px;width:48px;height:48px}.home-character-first .home-character-steps .home-step-portraits{flex-basis:56px;width:56px}.home-character-first .home-character-steps strong{font-size:16px}.home-armory-heading strong{font-size:16px}.home-character-first .home-actions{gap:14px}}

/* Official faction crests, paired with text so identity never relies on color. */
.home-faction-alliance,.home-faction-horde{display:inline-flex;align-items:center;gap:7px}.home-factions img{display:block;width:24px;height:31px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 2px 3px #0007)}
@media(max-width:480px){.home-factions img{width:21px;height:28px}.home-character-first .home-factions{gap:8px}.home-faction-note{flex-basis:100%;margin-top:2px}}

/* A familiar Battle.net action; signed-in identities and pending checks stay neutral. */
.account-control #account-button.account-connect-branded{position:relative;display:flex;align-items:center;gap:9px;min-height:44px;min-width:0;max-width:230px;padding:11px 16px 11px 46px;background:linear-gradient(135deg,#0877b6,#075784);border:1px solid #39a9df;color:#fff;font-size:12px;font-weight:600;line-height:1.3;box-shadow:0 3px 14px #008aca20;border-radius:4px}
.account-control #account-button.account-connect-branded::before{content:'';position:absolute;left:13px;top:50%;transform:translateY(-50%);width:23px;height:23px;background:url('battlenet-mark.svg') center/contain no-repeat}
.account-control #account-button.account-connect-branded:hover{background:linear-gradient(135deg,#168dcc,#0c6ba0);border-color:#6bcaff}
.account-control #account-button.account-connect-branded:focus-visible{outline:3px solid #72cff2;outline-offset:3px}
#home-save-note .armory-access-note{display:block;margin-bottom:6px;line-height:1.6}
@media(max-width:600px){.account-control #account-button.account-connect-branded{max-width:140px;font-size:11px;padding-right:10px}}

@media(max-width:360px){.account-control #account-button.account-connect-branded{max-width:125px;font-size:10px;padding-left:38px}.account-control #account-button.account-connect-branded::before{left:10px;width:20px;height:20px}}
