/* How to play – page styles. Only used by /how-to-play/. Shared tokens come from /assets/site.css. */
html{scroll-padding-top:calc(var(--header-h) + 1rem)}
#main:focus{outline:none}
.anchor-alias{display:block;position:relative;top:-1px;height:0}

/* Hero */
.htp-hero{padding-bottom:1.5rem}
.htp-hero-grid{display:grid;gap:2rem;align-items:center}
.htp-hero h1{margin-bottom:.8rem;font-size:clamp(2.2rem,5vw,3.4rem)}
.htp-meta{display:flex;flex-wrap:wrap;gap:.4rem 1.2rem;margin:1rem 0 1.4rem;padding:0;color:var(--muted);font:500 .9rem/1.4 var(--f-ui);letter-spacing:.04em}
.htp-meta span{display:inline-flex;align-items:center;gap:.5em}
.htp-meta span::before{content:"";width:.45em;height:.45em;border-radius:50%;background:var(--gold)}
.htp-actions{display:flex;flex-wrap:wrap;gap:.8rem}
.htp-hero .touch-note{margin-top:1rem}
.htp-hero-shot{margin:0}
.htp-hero-grid>*{min-width:0}
.htp-hero h1{overflow-wrap:break-word}
@media (min-width:900px){
  .htp-hero-grid{grid-template-columns:minmax(0,25rem) minmax(0,1fr);gap:2.5rem}
}
@media (min-width:900px) and (max-width:1099px){.htp-actions .btn{padding-inline:1.1rem}}

/* Annotated screenshots: numbered pins over the image, legend below */
.annot{margin:1.4rem 0}
.annot .annot-img{position:relative;line-height:0}
.annot .annot-img img{width:100%;height:auto;display:block}
.pin{position:absolute;transform:translate(-50%,-50%);width:1.75rem;height:1.75rem;border-radius:50%;background:var(--gold-hi);color:var(--on-gold);font:700 .9rem/1.75rem var(--f-ui);text-align:center;box-shadow:0 0 0 2px #14161b,0 2px 10px rgba(0,0,0,.6);pointer-events:none}
@media (max-width:600px){.pin{width:1.4rem;height:1.4rem;font-size:.75rem;line-height:1.4rem}}
ol.pins,.prose ol.pins{list-style:none;counter-reset:pin;margin:0;padding:0;display:grid;gap:.35rem}
ol.pins li{counter-increment:pin;position:relative;padding-left:2rem;margin:0;font-size:.92rem;line-height:1.45;color:var(--text-soft)}
ol.pins li::before{content:counter(pin);position:absolute;left:0;top:.05rem;width:1.35rem;height:1.35rem;border-radius:50%;background:var(--gold-hi);color:var(--on-gold);font:700 .75rem/1.35rem var(--f-ui);text-align:center}
ol.pins.pins-inline{display:flex;flex-wrap:wrap;gap:.3rem 1.1rem;margin-top:.4rem}
.cap-note{display:block;margin-top:.5rem;font-size:.85rem;color:var(--dim)}
.annot-narrow{max-width:24rem}
.annot-tides{max-width:30rem}

/* 60 seconds */
.htp-minute{padding:2.5rem 0 1rem}
.htp-minute h2{margin:0 0 1.4rem}
.minute-steps{list-style:none;counter-reset:ms;margin:0;padding:0;display:grid;gap:1rem;grid-template-columns:minmax(0,1fr)}
.minute-steps li{counter-increment:ms;position:relative;margin:0;background:linear-gradient(180deg,var(--panel),var(--bg-2));border:1px solid var(--line);border-radius:var(--r);overflow:hidden}
.minute-steps img{width:100%;height:9.5rem;object-fit:cover;object-position:top left;display:block;border-bottom:1px solid var(--line)}
.minute-steps img.tall{object-position:center 30%}
.minute-steps h3{margin:1rem 1.1rem .4rem;font-size:1.1rem;display:flex;align-items:center;gap:.6rem}
.minute-steps h3::before{content:counter(ms);flex:none;width:1.7rem;height:1.7rem;border-radius:50%;border:1px solid var(--line-gold);color:var(--gold);font:700 .9rem/1.7rem var(--f-ui);text-align:center}
.minute-steps p{margin:0 1.1rem 1.1rem;font-size:.95rem;color:var(--text-soft)}

/* What makes it different */
.htp-different{padding:1rem 0 2rem}
.diff-grid{list-style:none;margin:0;padding:0;display:grid;gap:.8rem 2rem;grid-template-columns:minmax(0,1fr)}
@media (min-width:560px){.minute-steps,.diff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:1100px){.minute-steps,.diff-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.diff-grid li{margin:0;padding:0 0 0 1rem;border-left:2px solid var(--line-gold);font-size:.95rem;color:var(--muted)}
.diff-grid strong{display:block;color:var(--text);margin-bottom:.15rem}

/* Layout + table of contents */
.guide{display:grid;grid-template-columns:minmax(0,1fr);gap:1.5rem;padding-top:1rem;padding-bottom:4rem}
.toc{position:sticky;top:var(--header-h);z-index:5;margin:0 calc(-1*var(--gutter));background:rgba(14,15,18,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(6px)}
@media (pointer:coarse),(max-width:820px){.toc{-webkit-backdrop-filter:none;backdrop-filter:none}}
.toc .toc-d,.toc .toc-d[open],.toc .toc-d:hover{border:0;background:none;border-radius:0;padding:0;margin:0;box-shadow:none}
.toc-d>summary{display:flex;align-items:center;gap:.6rem;min-height:48px;padding:.5rem var(--gutter);cursor:pointer;font:600 .8rem/1.2 var(--f-ui);letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
.toc-cur{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:500 .95rem/1.2 var(--f-text);letter-spacing:0;text-transform:none;color:var(--text)}
.toc-body{padding:.2rem var(--gutter) 1rem;max-height:calc(100vh - var(--header-h) - 60px);overflow:auto}
.toc-group{margin:.8rem 0 .3rem;font:600 .72rem/1 var(--f-ui);letter-spacing:.2em;text-transform:uppercase;color:var(--dim)}
.toc ol{list-style:none;margin:0;padding:0}
.toc li{margin:0}
.toc a{display:flex;align-items:center;min-height:40px;padding:.2rem 0;color:var(--muted);text-decoration:none;font-size:.95rem;line-height:1.3}
.toc a:hover,.toc a.on{color:var(--gold-hi)}
.toc a.on{text-decoration:underline;text-underline-offset:.25em}
.toc a:focus-visible{outline:2px solid var(--gold-hi);outline-offset:-2px;border-radius:4px}
@media (min-width:1100px){
  .guide{grid-template-columns:14rem minmax(0,1fr);gap:3.5rem}
  .toc{top:calc(var(--header-h) + 1.5rem);align-self:start;margin:0;background:none;border:0;border-left:1px solid var(--line);backdrop-filter:none;max-height:calc(100vh - var(--header-h) - 3rem);overflow:auto}
  .toc-d>summary{display:none}
  .toc-body{padding:.2rem 4px .2rem 1.2rem;max-height:none;overflow:visible}
  .toc-group:first-child{margin-top:0}
  .toc a{min-height:0;padding:.3rem 0;font-size:.92rem}
}
@media (max-width:1099px){
  html{scroll-padding-top:calc(var(--header-h) + 64px)}
}

/* Prose */
.guide .prose{max-width:50rem;min-width:0;font-size:1.0625rem;overflow-wrap:break-word}
.guide .prose section>p:not(.callout),.guide .prose section>ul,.guide .prose section>ol:not(.steps):not(.tips-list),.guide .prose section>h3,.step-text{max-width:42rem}
.guide .prose>section{padding:0}
.guide .prose>section+section{margin-top:3rem;padding-top:2.4rem;border-top:1px solid var(--line)}
.guide .prose h2{margin-top:0}
.prose strong{color:var(--text)}
.prose a{text-underline-offset:.2em}
.prose p a,.prose li a{padding-block:.2em}
.prose kbd{display:inline-block;min-width:1.5em;padding:.05em .4em;border:1px solid var(--line);border-bottom-width:2px;border-radius:4px;background:var(--panel);color:var(--text);font:600 .8rem/1.5 var(--f-ui);text-align:center;white-space:nowrap}
.prose .shot{margin:1.6rem 0}

/* Part headings (Basics / Reference) */
.part-head{margin:0 0 2rem;padding:1.4rem 1.4rem 1.3rem;border:1px solid var(--line-gold);border-radius:var(--r);background:linear-gradient(135deg,rgba(214,163,92,.10),rgba(214,163,92,.02))}
.part-head+section{margin-top:0;padding-top:0;border-top:0}
.prose>section+.part-head{margin-top:4rem}
.part-head .eyebrow{margin:0 0 .3rem}
.part-title{margin:0;font:700 clamp(2.2rem,5vw,3rem)/1.1 var(--f-epic);color:var(--gold-hi)}
.part-lead{margin:.5rem 0 0;color:var(--muted)}
.part-head .expand-all{margin-top:1rem}

/* First match steps */
.prose .steps{list-style:none;counter-reset:st;margin:1.4rem 0 0;padding:0}
.prose .step{counter-increment:st;position:relative;margin:0 0 2rem;padding-left:3rem}
.prose .step::before{content:counter(st);position:absolute;left:0;top:0;width:2.1rem;height:2.1rem;border-radius:50%;background:var(--gold-hi);color:var(--on-gold);font:700 1rem/2.1rem var(--f-ui);text-align:center}
.prose .step::after{content:"";position:absolute;left:1.04rem;top:2.6rem;bottom:-1.6rem;width:1px;background:var(--line-gold)}
.prose .step:last-child::after{display:none}
.step h3{margin:.2rem 0 .4rem;font-size:1.2rem}
.step-text p{margin:0}
.step .annot{margin:1rem 0 0}
@media (max-width:600px){.prose .step{padding-left:2.6rem}.prose .step::after{display:none}}

/* Win cards */
.win-grid{margin:1.2rem 0}
.win-grid .card{position:relative;padding:1.2rem 1.3rem}
.win-n{margin:0 0 .4rem;font:700 2rem/1 var(--f-epic);color:var(--gold)}
.win-grid h3{margin:0 0 .4rem;font-size:1.15rem}
.win-grid p:last-child{font-size:.97rem;color:var(--text-soft)}

/* Callouts and expandable details */
.callout{border:1px solid var(--line-gold);border-radius:var(--r);padding:1rem 1.2rem;background:rgba(214,163,92,.06);margin:1.4rem 0}
details.more{margin:1.2rem 0}
details.more>summary{font-weight:600}
details.more>div>:first-child{margin-top:0}
details.more ul{margin-bottom:0}

/* Roles, resources, troops */
.role-grid{margin:1.4rem 0}
.role-grid .card{padding:1.1rem 1.2rem}
.role-grid h3,.role-grid h4{margin:0 0 .3rem;font-size:1.05rem;color:var(--text)}
.role-grid h3 .tag{display:table;margin-bottom:.6rem}
.role-grid p{font-size:.95rem;color:var(--muted)}
.tag{font-size:.75rem}
.tag-violet{border-color:rgba(154,138,216,.45);color:#b9adf0}
.troops ul{margin:.4rem 0 0;padding-left:1.1rem;font-size:.95rem;color:var(--muted)}
.troops li{margin:0 0 .35rem}
.troops li strong{color:var(--text)}
.boss-grid .reward{color:var(--text-soft);margin-top:.6rem}

/* Cheat sheet */
.cheat{display:grid;gap:.8rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,17rem),1fr));margin:1.2rem 0 2rem}
.cheat-box{border:1px solid var(--line);border-radius:var(--r);background:var(--panel);padding:1rem 1.1rem}
.cheat-box h3{margin:0 0 .5rem;font:600 .78rem/1.2 var(--f-ui);letter-spacing:.18em;text-transform:uppercase;color:var(--gold)}
.cheat-box p{margin:0;font-size:.95rem}
.prose .cheat-list,.prose .cheat-keys{list-style:none;margin:0;padding:0;font-size:.93rem}
.cheat-list li{margin:0 0 .25rem}
.cheat-keys{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.3rem .6rem}
.cheat-keys li{margin:0}
.prose .tips-list{counter-reset:tip;list-style:none;padding:0;margin:1rem 0 0;display:grid;gap:.9rem;grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr))}
.prose .tips-list li{counter-increment:tip;position:relative;padding-left:2.6rem;margin:0;font-size:.97rem}
.prose .tips-list li::before{content:counter(tip);position:absolute;left:0;top:.05rem;width:1.8rem;height:1.8rem;border-radius:50%;border:1px solid var(--line-gold);color:var(--gold);font:700 .9rem/1.8rem var(--f-ui);text-align:center}
.mini-cta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;margin:2rem 0 0;padding:1.1rem 1.3rem;border:1px solid var(--line-gold);border-radius:var(--r);background:rgba(214,163,92,.06)}
.mini-cta p{margin:0;max-width:30rem}

/* Diagrams (inline SVG, so the site fonts apply) */
.guide-fig{margin:1.6rem 0;background:var(--bg-2)}
.guide-fig svg{display:block;width:100%;height:auto;margin:0 auto;font-family:var(--f-text)}
.guide-fig.narrow svg{max-width:32rem}
.guide-fig.mid svg{max-width:36rem}
.dg .ep{font-family:var(--f-epic);font-weight:700}
.dg .ui{font-family:var(--f-ui);font-weight:600}
#bosses svg text{paint-order:stroke;stroke:#14161b;stroke-width:4px;stroke-linejoin:round}
@media (max-width:600px){
  .guide-fig,.prose .shot{margin-inline:calc(-1*var(--gutter));border-radius:0;border-left:0;border-right:0}
  .guide-fig figcaption,.prose .shot figcaption{padding-inline:var(--gutter)}
  .step .annot{margin-left:calc(-2.6rem - var(--gutter));margin-right:calc(-1*var(--gutter))}
}

/* Tables */
.terms-grid{display:block;columns:2 17rem;column-gap:2rem;margin:1.4rem 0 0}
.terms-grid .terms{break-inside:avoid;margin:0 0 1.4rem}
.terms{width:100%;border-collapse:collapse;font-size:.95rem;align-self:start}
.terms caption{text-align:left;font:600 .75rem/1.2 var(--f-ui);letter-spacing:.16em;text-transform:uppercase;color:var(--gold);padding:0 0 .5rem;border-bottom:1px solid var(--line-gold)}
.terms th,.terms td{text-align:left;padding:.45rem .6rem .45rem 0;border-bottom:1px solid var(--line);vertical-align:top;font:inherit;letter-spacing:0;text-transform:none}
.terms th{color:var(--text);font-weight:500;width:50%}
.terms td{color:var(--muted)}
.terms.keys th{width:42%}
.terms.defs th{width:40%}
.spell-table{margin:1.2rem 0;max-width:42rem}
.spell-table thead th{font:600 .72rem/1.2 var(--f-ui);letter-spacing:.14em;text-transform:uppercase;color:var(--dim);width:auto}
.spell-table th,.spell-table td{width:auto}
.spell-table th[scope=row]{width:3rem}
.spell-table td:nth-child(2){color:var(--text);white-space:nowrap;padding-right:1rem}

/* Next steps */
.next-grid{margin-top:1.2rem}
.next-card{display:block;text-decoration:none;color:inherit;transition:border-color .15s}
.next-card:hover{border-color:var(--line-gold)}
.next-card h3{margin:0 0 .3rem;color:var(--gold-hi)}
.next-card p{margin:0;font-size:.95rem;color:var(--muted)}
.cta-band .actions{display:flex;flex-wrap:wrap;gap:.8rem;justify-content:center}
.cta-band .touch-note{margin:1rem auto 0}

/* Print: the cheat sheet and text, no chrome */
@media print{
  .toc,.htp-actions,.mini-cta,.expand-all,.cta-band,.pin{display:none!important}
  details.more>div{display:block}
  .part-head,.cheat-box,.card{background:none!important}
  h2,h3{break-after:avoid}
  .guide{display:block}
}

/* Click a screenshot to open it full size */
.zoom{display:block;cursor:zoom-in}
.zoom:focus-visible{outline:2px solid var(--gold-hi);outline-offset:2px}
.prose .step{margin-bottom:2.2rem}
.step .annot+*,.step-text+.annot{margin-top:1rem}
.htp-hero .touch-note{opacity:1}
@media (forced-colors:active){.pin,ol.pins li::before{forced-color-adjust:none;border:1px solid CanvasText}}
@media (max-width:1099px){
  html:not(.js) .toc{position:static}
  html:not(.js) .toc-body{max-height:none;overflow:visible}
}
.boss-grid>:last-child:nth-child(odd),.next-grid>:last-child:nth-child(odd){grid-column:1/-1}
@media (min-width:1100px){.guide .grid.next-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.guide .next-grid>:last-child{grid-column:auto}}
.expand-all[hidden]{display:none}
.prose section[tabindex="-1"]:focus,.prose section[tabindex="-1"]:focus-visible{outline:none}
@media (max-width:600px){.annot-small .pin{width:1.15rem;height:1.15rem;font-size:.65rem;line-height:1.15rem}}
@media (max-width:700px){.expand-all{min-height:44px}}
