/* How to Play: the captain's manual. Page-only styles on top of /style.css.
   House look: dark glass, gold outlines, full-bleed art. */

.htp-lede { max-width: 38em; color: var(--sand); margin-top: .9em; }

/* two-column manual: sticky contents on the left, the manual on the right */
.htp {
  max-width: 1180px; margin: 0 auto; padding: 48px 20px 90px;
  display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 44px; align-items: start;
}
.htp .htp-body.prose { max-width: none; margin: 0; padding: 0; min-width: 0; }
.htp .htp-body.prose > h2:first-child { margin-top: 0; }
.htp-body h2 { scroll-margin-top: 84px; }

/* contents */
.htp-toc { position: sticky; top: 86px; }
.toc-box {
  background: rgba(10, 20, 32, .62); border: 1px solid rgba(201, 150, 46, .55);
  border-radius: 14px; margin: 0; backdrop-filter: blur(4px);
}
.toc-box summary { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); padding: 12px 16px; }
.toc-box[open] summary { border-bottom: 1px solid rgba(201, 150, 46, .35); }
.toc-box ol { list-style: none; margin: 0; padding: 8px 8px 12px; counter-reset: toc; max-height: calc(100vh - 170px); overflow-y: auto; }
.toc-box li { counter-increment: toc; margin: 0; }
.toc-box a {
  display: flex; gap: 10px; align-items: baseline; padding: 5px 8px; border-radius: 8px;
  color: var(--mist); font-size: .9rem; font-weight: 600; line-height: 1.35;
}
.toc-box a::before { content: counter(toc, decimal-leading-zero); color: var(--brass); font-size: .72rem; font-weight: 800; min-width: 1.4em; }
.toc-box a:hover { background: rgba(46, 66, 86, .55); color: var(--gold); text-decoration: none; }

/* small type and helpers */
.htp-body .small { color: var(--mist); font-size: .88rem; }
.htp-body kbd {
  display: inline-block; min-width: 1.6em; padding: 1px 7px; border-radius: 6px; text-align: center;
  font: 700 .82rem/1.5 ui-monospace, Menlo, Consolas, monospace; color: var(--sand);
  background: rgba(10, 20, 32, .8); border: 1px solid var(--brass);
}
.htp-body h4 { color: var(--sand); font-size: 1rem; line-height: 1.3; margin: 0 0 .25em; }
.htp-body table.compact { font-size: .88rem; }
.htp-body table.compact td, .htp-body table.compact th { padding: 7px 10px; }
.htp-body td { background: rgba(10, 20, 32, .28); }

ol.steps { counter-reset: step; list-style: none; margin-left: 0 !important; }
ol.steps > li { counter-increment: step; position: relative; padding-left: 46px; margin: .8em 0; }
ol.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--gold); color: var(--gold); font-weight: 800; font-size: .95rem;
  background: rgba(10, 20, 32, .7);
}

/* screenshots */
.htp-shot { margin: 1.4em 0 1.6em; }
.htp-shot img { width: 100%; height: auto; border-radius: 14px; border: 2px solid rgba(201, 150, 46, .6); box-shadow: 0 14px 34px rgba(0, 0, 0, .4); }
.htp-shot figcaption { color: var(--mist); font-size: .88rem; margin-top: 10px; }

/* rarity + difficulty chips */
.rar, .dif {
  display: inline-block; border-radius: 999px; padding: 1px 10px; font-size: .74rem; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase; border: 1px solid currentColor; white-space: nowrap;
  background: rgba(10, 20, 32, .6); vertical-align: middle;
}
.r-rare { --rar: #5fa8e0; } .r-epic { --rar: #b47ae8; } .r-leg { --rar: #f3a63c; }
.rar.r-rare { color: #5fa8e0; } .rar.r-epic { color: #b47ae8; } .rar.r-leg { color: #f3a63c; }
.dif.d-normal { color: #7fd487; } .dif.d-hard { color: #f3c14b; } .dif.d-brutal { color: #e8705e; }

/* specials */
.spec { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; }
.spec img { width: 40px; height: 40px; border-radius: 8px; flex: none; }
.spec-table td:nth-child(2), .spec-table td:nth-child(3) { white-space: nowrap; }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin: 1em 0; }
.sig {
  display: flex; gap: 14px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: rgba(10, 20, 32, .55); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.sig:hover { border-color: var(--brass); transform: translateY(-2px); }
.sig img { width: 64px; height: 64px; border-radius: 10px; flex: none; }
.sig h4 span { color: var(--brass); font-size: .78rem; font-weight: 800; margin-left: 6px; }
.sig p { margin: 0; color: var(--mist); font-size: .9rem; line-height: 1.45; }
.sig em { display: block; color: var(--gold); font-style: normal; font-weight: 700; font-size: .82rem; margin-top: 4px; }

/* the fleet */
.ship-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin: 1em 0; }
.ship {
  margin: 0; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  border: 2px solid var(--rar, var(--line));
  background: radial-gradient(ellipse at 50% 38%, rgba(47, 143, 190, .28), rgba(10, 20, 32, .85) 70%);
  transition: transform .25s ease, box-shadow .25s ease;
}
.ship:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(0, 0, 0, .4); }
.ship img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; padding: 12px 12px 4px; }
.ship figcaption { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 3px; font-size: .86rem; color: var(--mist); line-height: 1.35; }
.ship figcaption strong { color: var(--sand); font-size: 1rem; }
.ship figcaption .rar { align-self: flex-start; margin: 2px 0; }
.ship figcaption em { font-style: normal; color: var(--gold); font-weight: 700; }

/* sets */
.set-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin: 1em 0; }
.set-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px;
  background: rgba(10, 20, 32, .55); border: 1px solid var(--line);
}
.set-card img { width: 76px; height: auto; flex: none; margin-top: 4px; }
.set-card h4 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.set-card p { margin: 0 0 .3em; font-size: .88rem; color: var(--sand); line-height: 1.5; }
.set-card p.src { color: var(--mist); font-size: .8rem; }
.set-card b { color: var(--gold); display: inline-block; min-width: 2.6em; }
ul.small-list { font-size: .92rem; color: var(--mist); }

/* feature panel: the Arena, over its painting */
.feature-panel {
  position: relative; margin: 2.4em 0 1em; border-radius: 18px; overflow: hidden;
  background-size: cover; background-position: center;
  border: 2px solid rgba(201, 150, 46, .7);
}
.feature-glass {
  margin: clamp(16px, 5vw, 64px); padding: 26px 28px;
  background: rgba(10, 20, 32, .78); border: 1px solid rgba(201, 150, 46, .45);
  border-radius: 14px; backdrop-filter: blur(3px);
}
.feature-glass h2 { margin-top: 0 !important; border-bottom-color: rgba(201, 150, 46, .35) !important; }

/* coming modes */
.mode-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 1em 0; }
.mini-card { background: rgba(10, 20, 32, .55); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mini-card img { width: 100%; height: 170px; object-fit: cover; object-position: center 30%; }
.mini-card img[src*="gauntlet"] { object-position: center 45%; }
.mini-card h3 { margin-top: 0; }
.mini-card p { color: var(--mist); font-size: .92rem; margin: .4em 0 0; }
.tag {
  display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 9px; border-radius: 999px;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mist);
  border: 1px solid var(--line); background: rgba(10, 20, 32, .7);
}

/* currencies */
.cur-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 1em 0; }
.cur { padding: 16px 18px; border-radius: 14px; background: rgba(10, 20, 32, .55); border: 1px solid var(--line); border-top: 3px solid var(--brass); }
.cur h3 { margin-top: 0; }
.cur p { font-size: .92rem; margin: .5em 0; }

/* achievements */
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 1em 0; }
.ach-grid > div { padding: 12px 14px; border-radius: 12px; background: rgba(10, 20, 32, .55); border: 1px solid var(--line); }
.ach-grid h4 { color: var(--gold); }
.ach-grid p { margin: 0; font-size: .88rem; color: var(--mist); }

/* narrow screens: the contents collapse above the manual */
@media (max-width: 960px) {
  .htp { grid-template-columns: 1fr; gap: 22px; padding: 32px 16px 70px; }
  .htp-toc { position: static; }
  .toc-box:not([open]) summary { border-bottom: 0; }
  .toc-box ol { max-height: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
@media (max-width: 520px) {
  .spec-table .spec { white-space: normal; }
  .sig-grid, .set-list { grid-template-columns: 1fr; }
  .ship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ship figcaption { padding: 6px 10px 12px; font-size: .8rem; }
  .feature-glass { padding: 18px 16px; }
  ol.steps > li { padding-left: 42px; }
}

/* platforms: release date strip */
.date-strip { list-style: none; padding: 0 !important; margin: 1em 0 1.2em !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.date-strip li { padding: 14px 16px; border-radius: 14px; background: rgba(10, 20, 32, .55); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.date-strip li.ds-launch { border-color: rgba(201, 150, 46, .6); background: rgba(10, 20, 32, .78); }
.date-strip .ds-when { color: var(--gold); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.date-strip .ds-what { font-weight: 700; }
.date-strip .ds-where { color: var(--mist); font-size: .88rem; }

/* mode availability chips: launch modes glow gold, coming-soon stays muted */
.htp-body h2 .tag { font-size: .62rem; vertical-align: .35em; margin-left: 8px; }
.tag.tag-live { color: var(--gold); border-color: rgba(201, 150, 46, .7); }
