/* guild-war.html: explanatory content around the shared guild panel */
.guild-war-page .gw-lead{max-width:44rem;margin-inline:auto}
.gw-how,.gw-terms,.gw-faq,.gw-more{max-width:960px;margin:1.5rem auto;padding:0 1rem}
.gw-how h2,.gw-terms h2,.gw-faq h2,.gw-map-title{margin:0 0 .75rem;font-size:1.35rem;color:var(--tc-ink)}
.gw-map-title{max-width:960px;margin:2rem auto .5rem;padding:0 1rem}
.gw-steps{list-style:none;margin:0 0 1rem;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:.75rem;counter-reset:gw}
.gw-step{counter-increment:gw;position:relative;background:var(--tc-surface);border:2px solid var(--tc-ink);border-radius:14px;padding:1rem 1rem 1rem 3.25rem;box-shadow:0 4px 0 var(--tc-ink)}
.gw-step::before{content:counter(gw);position:absolute;left:.85rem;top:.9rem;width:1.8rem;height:1.8rem;border-radius:50%;background:var(--tc-gold);border:2px solid var(--tc-ink);color:var(--tc-ink);font-weight:800;display:grid;place-items:center}
.gw-step h3{margin:0 0 .25rem;font-size:1.05rem;color:var(--tc-ink)}
.gw-step p{margin:0;line-height:1.5;color:var(--tc-ink)}
.gw-how .tc-btn{min-height:44px}
.gw-terms dl{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin:0}
.gw-term{background:var(--tc-surface);border:2px solid var(--tc-ink);border-radius:14px;padding:.85rem 1rem}
.gw-term dt{font-weight:800;color:var(--tc-ink);margin-bottom:.2rem}
.gw-term dd{margin:0;line-height:1.5;color:var(--tc-ink)}
.gw-faq-item{background:var(--tc-surface);border:2px solid var(--tc-ink);border-radius:14px;margin-bottom:.6rem;padding:0 1rem}
.gw-faq-item summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-weight:700;color:var(--tc-ink)}
.gw-faq-item p{margin:0 0 .85rem;line-height:1.55;color:var(--tc-ink)}
.gw-more{text-align:center}
@media (max-width:700px){.gw-steps,.gw-terms dl{grid-template-columns:1fr}}
/* Mobile: the game must stay visible straight away, so the intro is compact. */
@media (max-width:700px){
  .gw-how{margin:.5rem auto}
  .gw-steps{gap:.4rem;margin-bottom:.6rem}
  .gw-step{padding:.5rem .7rem .5rem 2.5rem;border-radius:10px;box-shadow:0 2px 0 var(--tc-ink)}
  .gw-step::before{width:1.45rem;height:1.45rem;left:.6rem;top:.55rem;font-size:.8rem}
  .gw-step h3{margin:0;font-size:.95rem}
  .gw-step p{font-size:.82rem;line-height:1.35}
  .gw-map-title{margin-top:1rem}
}
.gw-more a{display:inline-flex;align-items:center;min-height:44px;padding:0 .5rem}
.guild-war-page .guild-attribution a{display:inline-flex;align-items:center;min-height:44px}
@media (max-width:700px){.guild-war-page .gw-lead{font-size:.9rem;margin:.25rem 0 0}}
/* The first paint uses the same compact header as the ready game. Help lives
   in Information; it must not flash while authentication or map data loads. */
.guild-war-page .leaderboard-header{padding:4px 16px 6px}
.guild-war-page .leaderboard-title{font-size:20px;line-height:1.2;margin:0}
.guild-war-page .page-title-row{justify-content:space-between;max-width:1168px;margin:auto;flex-wrap:nowrap;gap:8px}
.guild-war-page .tc-share-trigger{min-height:44px;flex-shrink:0}
.guild-war-page .gw-lead,.guild-war-page .gw-how{display:none}
@media(max-height:650px) and (max-width:900px){.guild-war-page .leaderboard-header{display:none}}
