/* The home landscape continues behind a compact, readable field guide. */
.app-shell{position:relative;z-index:1}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
body:before{display:none}
body[data-view=guide] .home-world-scene{filter:saturate(.6) brightness(.52)}
body[data-view=guide] .home-world:after{background:linear-gradient(180deg,#0813218c,#0a1421cc 38%,#09121be8 85%),radial-gradient(ellipse at 50% 40%,#08111bb3,transparent 75%)}
body[data-view=guide] .world-magic{opacity:.42;mask-image:linear-gradient(90deg,#000,transparent 27%,transparent 73%,#000)}
body[data-view=guide] .world-aurora{opacity:.2}
body[data-view=guide] .world-fog{opacity:.2}
body[data-view=guide] .world-particles{opacity:.4}
body[data-view=picker] .home-world-scene{filter:saturate(.75) brightness(.63)}
body[data-view=picker] .home-world:after{background:linear-gradient(180deg,#08132180,#0b1527ac 40%,#09121bed)}
body[data-view=picker] .world-magic{opacity:.6}
body[data-journey=defensifs] .flow-rotation{opacity:.3}
body[data-journey=rotation] .flow-defense{opacity:.3}

/* One measure and one accent, from navigation to dialogs. */
body:not([data-view=home]){--radius:16px;--muted:#a9b8ca;--panel:#111e2b;--line:#b9d5ea1c}
body:not([data-view=home]) .masthead-inner{max-width:1280px;padding:10px 32px}
body:not([data-view=home]) .site-masthead{background:#09131dce;border-color:#b4d9e617;backdrop-filter:blur(18px)}
body:not([data-view=home]) .site-masthead .brand{font-size:27px}
body:not([data-view=home]) .site-masthead .brand svg{width:29px;height:29px}
body:not([data-view=home]) .main>.topbar{max-width:1240px;height:36px;padding:0 28px;background:transparent}
body:not([data-view=home]) .page-wrap{max-width:1240px;padding:0 28px}
body:not([data-view=home]) .breadcrumb{color:#a2b6c9;font-size:11px}
body:not([data-view=home]) .topbar-right{gap:12px;font-size:11px}
body:not([data-view=home]) .patch{font-size:9px;color:#a0b4ca}
.journey-nav{margin:0 0 14px;padding:4px 0 12px;gap:6px}
.journey-nav a,.journey-nav button{padding:8px 12px;min-height:38px;border-radius:20px;font-size:12px}
.journey-nav button[aria-pressed=true]{background:color-mix(in srgb,var(--accent) 12%,#101c26);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 20%,transparent)}
.journey-nav .change-character{padding:8px 14px;border-color:#b8d6e524;background:#0b182270}
.context-bar{gap:10px;margin:0}
.segmented{padding:3px;background:#0b1822b8;border-color:#bdd6e31a;border-radius:11px}
.segmented button{min-height:36px;padding:7px 16px;font-size:12px}
.segmented button[aria-pressed=true]{background:#263a47;color:#ecf8f7;box-shadow:none}
.encounter-field select{min-height:40px;padding:8px 32px 8px 12px;font-size:12px;background-color:#0d1b28de;border-color:#bed7e226}
.encounter-field label{font-size:9px;letter-spacing:1.2px}
.context-info{width:28px;height:28px;min-width:28px}
.difficulty-label{padding:6px 8px;font-size:9px;background:#131b2a70;border-color:#a8b3d41a}
.spec-header{padding:16px 0;min-height:100px}
.spec-identity{gap:14px}
.spec-emblem{width:58px;height:58px;flex-shrink:0;padding:3px;border-radius:17px;box-shadow:0 0 32px color-mix(in srgb,var(--class) 12%,transparent)}
.spec-emblem img{border-radius:12px}
.spec-header h1{font-size:38px;letter-spacing:-1.2px;line-height:1.15}
.spec-header .eyebrow{font-size:8px;letter-spacing:1.8px;margin-bottom:5px}
.spec-subline{font-size:11px;margin-top:6px}
.spec-header.blood-art{background:none}
.spec-header.blood-art:before,.spec-header.blood-art:after{display:none}
.spec-tabs{gap:22px;margin:0 0 18px}
.spec-tab{min-height:40px;padding:8px 0 10px;font-size:12px}
.spec-tab img{width:20px;height:20px}
.section-heading{margin:20px 0 14px;gap:14px}
.section-heading h2{font-size:19px;font-weight:750;letter-spacing:-.45px}
.section-heading h2 span{font-size:12px;color:#a5b9cc;margin-left:12px;font-weight:400}
.quiet-link{font-size:11px;min-height:36px}
.mplus-season{font-size:11px;margin:0 0 10px;gap:10px}
.phase-badge{font-size:9px;letter-spacing:.3px;background:#1724328c;border-color:#b7d5e51f;color:#b6c9dd}
body:not([data-view=home]) .card{border-color:#bad8e222;border-radius:16px;background:linear-gradient(145deg,#152431e8,#0c1924ef);box-shadow:0 8px 32px #030b1420}
body:not([data-view=home]) footer{margin-top:36px;padding:20px 0;font-size:10px;color:#95aabf}
body:not([data-view=home]) .primary-button{background:linear-gradient(110deg,#ffd1a4,#f0b982);border:1px solid #f6c39640;box-shadow:0 4px 16px #efb4810a}
dialog{background:linear-gradient(135deg,#182e3c,#101c2b 60%);border-color:#b6d8e733;border-radius:18px}
dialog::backdrop{background:#050d17bd}
.dialog-header h2{font-size:22px}
#dialog-content p{color:#bed0de}

/* Threat on the left; the observed response on the right. Never stretch empty cards. */
.defense-page-heading{margin:16px 0 10px}
.guild-defenses{margin-top:10px}
.defense-overview{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#9db6c8;font-size:11px}
.defense-overview p{margin:0}
.guild-intro{font-size:12px;line-height:1.7;max-width:none;margin:6px 0 16px;color:#a8bccd}
body[data-view=guide] .guild-defense-section.card,body[data-view=guide] .defensive-card.card{padding:0;margin-top:20px;background:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
.guild-defense-section>.panel-title,.defensive-card>.panel-title{margin:0 0 6px}
.guild-defense-section>.panel-title h2,.defensive-card>.panel-title h2{font-size:13px;letter-spacing:.3px;color:#d3e3eb}
.guild-defense-section>.panel-title .phase-badge{font-size:8px;background:none;padding:3px 7px}
.guild-coverage,.defensive-sample{color:#a3c9c6;font-size:11px;line-height:1.7;margin:4px 0 12px}
.guild-mechanics,.defensive-attack-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin:14px 0 0;align-items:start}
.guild-mechanic,.defensive-attack{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:24px;padding:22px 24px;border:1px solid #b9dce31e;border-radius:16px;background:linear-gradient(125deg,#152936db,#0e1c29ef);box-shadow:0 7px 24px #020b1315;transition:border-color .25s,background .25s}
.guild-mechanic:hover,.defensive-attack:hover{border-color:#8ce2d64a;background:linear-gradient(125deg,#192f3ceb,#112331f2)}
.defense-threat,.defense-response{min-width:0}
.defense-threat{padding-right:2px}
.defense-response{border-left:1px solid #c3e0ec15;padding-left:24px;display:flex;flex-direction:column;justify-content:center}
.guild-mechanic-title,.boss-ability{font-size:15px;line-height:1.4;gap:12px;align-items:center;margin:0}
.guild-mechanic-title{font-weight:700}
.guild-mechanic-icon,.boss-ability>img{width:38px;height:38px;flex-basis:38px;border-radius:10px;border:1px solid #c7e3ed29;box-shadow:0 3px 14px #0003}
.boss-ability a{font-size:15px;color:#edf5fa;font-weight:700}
.boss-ability small{font-size:11px;color:#a8bdcc;margin-top:3px}
.defense-guidance{margin:12px 0 0}
.defense-guidance p{font-size:13px;line-height:1.7;margin:8px 0 0;color:#b8cad9}
.defense-guidance p strong{color:#eff7fa;margin-right:4px;font-size:11px}
.defense-evidence{font-size:9px;line-height:1.5;letter-spacing:.1px;padding:4px 7px;border-radius:5px;border-color:#b1d6de20;background:#0c19276b;color:#a9c1d2}
.defense-guidance .defense-observed-label{font-size:10px;margin-top:10px;color:#93b0c3}
.defense-choice-label{display:block;font-size:9px;line-height:1.5;letter-spacing:.2px;color:#96d5c9;margin-bottom:3px}
.guild-cd-row{gap:12px;padding:12px 0;margin:0;border:0;align-items:flex-start}
.guild-cd-row+.guild-cd-row{border-top:1px solid #b3d2e218}
.guild-cd-row:first-child{padding-top:0}
.guild-cd-row:last-child{padding-bottom:0}
.guild-cd-row>img,.defensive-option>img{width:40px;height:40px;min-width:40px;border-radius:10px;border:1px solid #c7e3ed33;box-shadow:0 3px 12px #0004}
.guild-cd-copy{min-width:0}
.guild-cd-row strong,.defensive-option strong{font-size:14px;line-height:1.5;color:#eef6fa}
.guild-cd-timing,.defensive-timing{display:block;font-size:13px;font-weight:500;line-height:1.6;color:#92e1d0;margin:4px 0}
.guild-cd-meta{display:block;color:#9fb6c9;font-size:11px;line-height:1.7}
.defense-observation{margin-top:5px;font-size:10px;color:#9fb6c9}
.defense-observation>summary{cursor:pointer;line-height:1.6;padding:4px 0;min-height:26px;color:#a9c0cf}
.defense-observation>summary span{color:#8da4b7;font-size:9px;margin-left:6px}
.defense-observation[open]>summary{color:#92e1d0;margin-bottom:4px}
.defense-reaction{color:#e6c29c;font-size:11px;line-height:1.6;display:block;margin:6px 0}
.guild-no-observation{border:0;padding:0 0 0 16px;border-left:2px solid #b2c6d92e;font-size:12px;line-height:1.7;color:#91a9bd;margin:8px 0;max-width:360px}
.guild-defense-section>.simple-details{margin:12px 0 0;padding:12px 4px;border-color:#bad4e31a}
.guild-defense-section>.simple-details+ .simple-details{margin-top:0}
.defensive-intro{font-size:12px;line-height:1.7;color:#aec2d3;margin:8px 0}
.defensive-options{margin:0;padding:0;border:0;display:grid;gap:12px}
.defensive-option{align-items:flex-start;gap:12px;padding:0}
.defensive-option+.defensive-option{padding-top:12px;border-top:1px solid #b3d2e218}
.defensive-option>div{flex:1;min-width:0}
.defensive-option small{font-size:11px;color:#9fb6c9}
.defensive-option .quiet-link{min-width:30px;min-height:30px;padding:3px;border:1px solid #abd9d622;border-radius:50%;margin:auto 0 auto auto}
.mplus-personal-section{margin:24px 0}
.mplus-personal-section>h3{font-size:17px;letter-spacing:-.3px;margin-bottom:4px}
.mplus-personal-section>.muted{font-size:12px;color:#9fb6c9}
.defensive-footnote{font-size:11px;line-height:1.8;color:#91a9bd}
.personal-usage-grid article{border-radius:12px;background:#162b36b3}
.personal-usage-card{margin:12px 0}
.guild-external{margin-top:18px}

/* A bounded reading width keeps icons, conditions and talents together. */
.workspace-grid{grid-template-columns:minmax(0,1fr) 264px;gap:18px;align-items:start}
.card-pad,.rotation-card{padding:22px}
.rotation-card>.card-topline .overline{font-size:9px;letter-spacing:1.3px;color:#a9bfce}
.rotation-card>h2{font-size:24px;margin-top:20px;letter-spacing:-.6px}
.rotation-card>.muted{font-size:12px;line-height:1.6;margin-top:6px}
.target-mode-tabs{margin-top:14px;gap:8px}
.target-mode-tabs button{min-height:43px;padding:9px 10px;background:#0a1724a3;border-color:#b9d6e126;border-radius:10px;font-size:12px}
.target-mode-tabs button[aria-pressed=true]{color:#ffcc9c;background:linear-gradient(120deg,#ffc38d13,#ffd5b005);border-color:#ffc58e70;box-shadow:inset 0 1px #ffd7ac12}
.target-mode-tabs button small{font-size:10px}
.rotation-tabs{margin-top:18px}
.rotation-tab{padding:11px 14px 11px 0;margin-right:24px;min-height:42px;font-size:12px}
.guide-variant-picker{padding:12px 0 0;margin:0 0 10px}
.simple-heading{font-size:10px;letter-spacing:.7px;margin-top:18px}
.guide-reading{font-size:13px;line-height:1.7;margin:14px 0 8px}
.guide-context-note{font-size:12px;line-height:1.65;color:#a9bccf}
.guide-timeline.simple-timeline{display:flex;flex-wrap:wrap;justify-content:center;align-items:stretch;gap:16px 14px;margin:22px 0}
.guide-timeline .simple-step{flex:0 1 calc((100% - 42px)/4);padding:14px 7px 10px;min-width:0;gap:4px;background:linear-gradient(155deg,#abc8df05,#05111b1c);border-color:#b8dbe20c;border-radius:12px}
.guide-timeline .simple-step:hover,.guide-timeline .simple-step:focus-within{background:#e8c1970b;border-color:#ffd09c44}
.guide-timeline .simple-step .spell-button{width:46px;height:46px;flex-basis:46px}
.guide-timeline .simple-step .spell-button img{width:100%;height:100%;max-width:100%}
.guide-timeline .simple-step strong{font-size:12px;min-height:32px;line-height:1.45;margin-top:10px}
.guide-timeline .simple-step small{max-width:none;width:100%;margin:4px 0 0;font-size:11px;line-height:1.65;color:#bfd0df}
.simple-number{width:18px;height:18px;top:6px;left:calc(50% - 32px);background:#293b4c;border-color:#96bed452}
.guide-timeline .timeline-link{right:-12px;top:28px;color:#b7a28b}
.guide-timeline .simple-step:nth-child(6n) .timeline-link{display:block}
.guide-timeline .simple-step:nth-child(4n) .timeline-link{display:none}
.simple-return{font-size:12px;padding:12px 0}
.simple-details{padding:12px 0}
.simple-details summary{font-size:12px;color:#b9cddd;min-height:26px}
.simple-details p{font-size:12px;line-height:1.8;color:#aec3d5}
.talent-card{padding:20px}
.talent-card:before{left:20px;right:20px;background:linear-gradient(90deg,var(--accent),transparent)}
.talent-name{font-size:22px;margin-top:14px}
.talent-card .overline{font-size:9px;letter-spacing:1.3px;color:#acc2d2}
.talent-kicker,.talent-note,.talent-variation{font-size:11px;color:#a8bece;line-height:1.7}
.talent-variation{margin:12px 0}
.talent-visual{margin:16px 0}
.talent-card .primary-button{min-height:40px;border-radius:9px}
.right-column{top:84px}
.unified-cycle{margin-top:16px}
.flow-label{font-size:10px;color:#acc7d7;letter-spacing:1px;margin:20px 0 8px}
.flow-help{font-size:12px;color:#a3bace;line-height:1.7}
.cycle-shared{margin:14px 0}
.cycle-branch{background:#6bdccb07;border-color:#9adfd02a;border-radius:12px}
.cycle-branch>summary{padding:12px;gap:9px}
.branch-content{padding:0 14px 8px}
.branch-reason{font-size:12px}
.cycle-tools{margin:16px 0;border-color:#f3c29125}
.cycle-tools>summary{padding:11px 12px;font-size:12px}
.cycle-loop,.cycle-caution{font-size:12px;line-height:1.7}
.cycle-weave{padding:12px 14px}
.cycle-weave .guide-timeline{margin-top:12px}

/* Character selection is part of the same journey. */
.character-menu{max-width:1040px;margin:auto;padding-top:28px}
.character-menu h1{font-size:42px;line-height:1.2;letter-spacing:-1.5px;text-shadow:0 4px 28px #06111baa}
.character-menu-intro{font-size:14px;color:#b9cbdc}
.selection-steps{margin-bottom:30px}
.selection-journey{font-size:10px}
.class-choices{gap:12px;margin-top:28px}
.class-choices .character-choice{flex-basis:calc((100% - 48px)/5);min-height:142px;padding:18px 12px;border-radius:16px;background:linear-gradient(150deg,#193041bf,#0b1a27dd);border:1px solid #b7d5e224;box-shadow:0 5px 24px #03111b22}
.class-choices .character-choice img{width:42px;height:42px;border-radius:12px}
.character-choice strong{font-size:13px;color:#dfecf4}
.character-choice span{font-size:10px;color:#a7bdce}
.character-choice:hover,.character-choice:focus-visible{background:linear-gradient(135deg,#253d4dea,#132836ed);border-color:var(--choice-color);transform:translateY(-3px);box-shadow:0 10px 30px #04132150}
.specialization-choices{gap:14px;margin-top:28px}
.specialization-choice{min-height:198px;padding:24px 20px;border-radius:18px;background:linear-gradient(145deg,#1b3042c9,#0c1c2aeb);border-color:#bedbe62b}
.specialization-choice img{height:62px;width:62px}
.specialization-choice strong{font-size:21px}
.selection-back{font-size:12px}

/* The layout becomes a simple vertical threat → response flow on narrow screens. */
@media(max-width:1000px){
 .workspace-grid{grid-template-columns:minmax(0,1fr) 238px;gap:14px}
 .rotation-card{padding:20px}
 .class-choices .character-choice{flex-basis:calc((100% - 36px)/4)}
 .guild-mechanic,.defensive-attack{gap:20px;padding:20px}
 .defense-response{padding-left:20px}
}
@media(min-width:821px) and (max-width:1000px){
 .guide-timeline .simple-step{flex-basis:calc((100% - 28px)/3)}
 .guide-timeline .simple-step:nth-child(4n) .timeline-link{display:block}
 .guide-timeline .simple-step:nth-child(3n) .timeline-link{display:none}
}
@media(max-width:820px){
 .workspace-grid{grid-template-columns:minmax(0,1fr)}
 .right-column{position:static;max-width:100%}
 .talent-card{max-width:none}
 .talent-visual{max-width:300px;margin:16px auto}
 .talent-card .primary-button{max-width:300px}
 .guild-mechanic,.defensive-attack{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}
 .defense-response{padding-left:18px}
 .section-heading h2 span{display:block;margin:4px 0 0}
}
@media(max-width:650px){
 body:not([data-view=home]) .masthead-inner{padding:8px 18px;gap:12px}
 body:not([data-view=home]) .masthead-actions{gap:12px}
 body:not([data-view=home]) .site-masthead .brand{font-size:25px}
 body:not([data-view=home]) .masthead-method{font-size:10px}
 body:not([data-view=home]) .motion-control{font-size:0;gap:0}
 body:not([data-view=home]) .motion-control>span{font-size:12px}
 body:not([data-view=home]) .page-wrap{padding:0 16px}
 body:not([data-view=home]) .main>.topbar{height:32px;padding:0 18px}
 body[data-view=guide] .home-world-scene{object-position:70% center;filter:saturate(.6) brightness(.5)}
 body[data-view=guide] .world-magic{opacity:.3;mask-image:linear-gradient(90deg,#000,transparent 18%,transparent 82%,#000)}
 .journey-nav{gap:3px;flex-wrap:wrap;padding-bottom:10px;margin-bottom:12px}
 .journey-nav a,.journey-nav button{font-size:10px;min-height:34px;padding:7px 9px}
 .journey-nav .change-character{font-size:10px;padding:6px 9px;margin-left:auto}
 .context-bar{gap:8px}
 .encounter-field{flex:1 1 100%;margin-left:0}
 .encounter-field select{font-size:12px;min-height:40px}
 .segmented button{font-size:12px;min-height:34px;padding:6px 15px}
 .spec-header{min-height:92px;padding:16px 0}
 .spec-identity{gap:12px}
 .spec-emblem{width:52px;height:52px;border-radius:15px}
 .spec-header h1{font-size:31px;letter-spacing:-.9px}
 .spec-header .eyebrow{font-size:8px;letter-spacing:1.3px}
 .spec-subline{font-size:10px;margin-top:5px}
 .spec-tabs{gap:4px 18px;margin-bottom:14px}
 .spec-tab{font-size:11px;min-height:38px}
 .section-heading{margin:16px 0 12px;gap:8px}
 .section-heading h2{font-size:18px}
 .section-heading h2 span{font-size:11px}
 .defense-overview{font-size:10px}
 .guild-intro{font-size:12px;margin-bottom:12px}
 .guild-defense-section.card,.defensive-card.card{margin-top:16px}
 .guild-defense-section>.panel-title h2,.defensive-card>.panel-title h2{font-size:13px}
 .guild-coverage{font-size:10px}
 .guild-mechanics,.defensive-attack-grid{gap:12px;margin-top:12px}
 .guild-mechanic,.defensive-attack{grid-template-columns:minmax(0,1fr);gap:16px;padding:18px;border-radius:14px}
 .defense-response{border-left:0;border-top:1px solid #badbe31c;padding:14px 0 0}
 .guild-mechanic-title,.boss-ability a{font-size:15px}
 .defense-guidance p{font-size:12px;line-height:1.75}
 .defense-guidance{margin-top:12px}
 .defense-evidence{font-size:9px}
 .guild-no-observation{font-size:11px;max-width:none;margin:0}
 .guild-cd-row{gap:11px}
 .guild-cd-timing,.defensive-timing{font-size:12px}
 .defense-observation>summary{min-height:30px}
 .rotation-card{padding:18px 15px}
 .rotation-card>h2{font-size:23px;margin-top:18px}
 .target-mode-tabs button{font-size:12px;min-height:45px;padding:7px}
 .target-mode-tabs button small{font-size:9px;display:block;margin:2px 0 0}
 .rotation-tabs{margin-top:14px}
 .rotation-tab{font-size:12px;margin-right:24px;min-height:44px}
 .guide-reading{font-size:12px}
 .guide-context-note{font-size:11px}
 .guide-timeline.simple-timeline{gap:18px 10px;margin:20px 0}
 .guide-timeline .simple-step{flex-basis:calc((100% - 20px)/3);padding:13px 4px 10px}
 .guide-timeline .simple-step strong{font-size:11px;line-height:1.45}
 .guide-timeline .simple-step small{font-size:11px;line-height:1.6}
 .guide-timeline .simple-step .spell-button{width:44px;height:44px}
 .guide-timeline .timeline-link{right:-10px;font-size:17px}
 .guide-timeline .simple-step:nth-child(4n) .timeline-link{display:block}
 .guide-timeline .simple-step:nth-child(3n) .timeline-link{display:none}
 .simple-number{left:calc(50% - 29px)}
 .branch-content{padding:0 10px 8px}
 .cycle-branch>summary{padding:12px 10px}
 .branch-heading strong{font-size:12px}
 .branch-heading small{font-size:9px}
 .branch-open{font-size:9px}
 .cycle-loop,.cycle-caution{font-size:11px}
 .cycle-weave{padding:12px 10px}
 .class-choices{gap:10px;margin-top:24px}
 .class-choices .character-choice{flex-basis:calc((100% - 10px)/2);min-height:132px;padding:16px 10px}
 .character-menu{padding:22px 0}
 .character-menu h1{font-size:33px}
 .character-menu-intro{font-size:13px}
 .character-choice strong{font-size:12px}
 .specialization-choice{min-height:180px;padding:20px 12px}
 .specialization-choice strong{font-size:18px}
 .selection-steps{margin-bottom:24px;font-size:9px}
}
@media(max-width:370px){
 .journey-nav .change-character{margin-left:0}
 .guide-timeline .simple-step{flex-basis:calc((100% - 10px)/2)}
 .guide-timeline .simple-step:nth-child(3n) .timeline-link{display:block}
 .guide-timeline .simple-step:nth-child(2n) .timeline-link{display:none}
}
