/* Homepage-only styles. Shared tokens and components live in /style.css;
   everything here builds on them (dark glass, gold outlines, full-bleed art). */
:root {
  --rare: #5fa8e0; --epic: #b47ae8; --legendary: #f3a63c;
  --glass: rgba(10,20,32,.62); --glass-line: rgba(201,150,46,.55);
}

/* emblem grid (was inline on the old homepage) */
.emblems { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 26px; text-align: center; }
.emblems img { width: 96px; height: 96px; margin: 0 auto 10px; border-radius: 12px; }
.emblems .name { font-weight: 800; }
.shot { border-radius: 14px; border: 2px solid var(--line); height: auto; }

/* small shared bits */
.eyebrow { display: block; color: var(--mist); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 .5em; }
.lede { font-size: 1.08rem; max-width: 46em; }
.pill { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.pill.live { background: var(--good); color: var(--ink); }
.pill.soon { background: var(--brass); color: var(--ink); }
.pill.later { background: rgba(22,40,58,.9); color: var(--sand); border: 1px solid var(--gold); }
.glass { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px; backdrop-filter: blur(4px); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-top: 18px; }
.btn svg { width: 20px; height: 20px; vertical-align: -4px; margin-right: 8px; }
.textlink { font-weight: 800; }

/* ---- hero ---- */
.hero { min-height: 86vh; }
.hero h1 { margin: 0; }
.hero h1 img { width: min(300px, 62vw); height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)); margin-left: -10px; }
.hero p.tag { margin-top: .1em; }
.hero .cta-row { animation: hero-rise .7s ease-out .3s both; }
body.has-intro .hero .cta-row { animation-delay: 1.75s; }
.date-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.date-chips li { display: flex; flex-direction: column; line-height: 1.25; padding: 9px 16px; border-radius: 12px; background: rgba(8,16,26,.78); border: 1px solid var(--glass-line); }
.date-chips small { color: var(--mist); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.date-chips strong { color: var(--gold); font-size: 1.02rem; }
.date-chips span { color: var(--sand); font-size: .85rem; }
.hero .store-badges .badge { cursor: default; }
.hero .store-badges a.badge { cursor: pointer; }
.hero .store-badges .badge:not(a):hover { transform: none; border-color: var(--line); }

/* ---- trailer ---- */
.trailer-wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.yt { position: relative; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 16px; overflow: hidden; border: 2px solid var(--brass); background: #000; box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.yt img, .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.yt button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: none; cursor: pointer; color: #fff; }
.yt button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,32,0) 55%, rgba(10,20,32,.7)); }
.yt .play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 92px; height: 92px; margin: -46px 0 0 -46px; border-radius: 50%; background: var(--red); border: 3px solid #ff8a80; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); transition: transform .2s ease, background .2s ease; }
.yt .play svg { width: 36px; height: 36px; margin-left: 6px; }
.yt button:hover .play, .yt button:focus-visible .play { transform: scale(1.08); background: #d8423e; }
.yt .cap { position: absolute; left: 18px; bottom: 14px; z-index: 1; font-weight: 800; letter-spacing: .04em; text-shadow: 0 2px 8px rgba(0,0,0,.7); }
@media (max-width: 900px) { .trailer-wrap { grid-template-columns: 1fr; gap: 22px; } }
@media (max-width: 520px) { .yt .play { width: 68px; height: 68px; margin: -34px 0 0 -34px; } .yt .play svg { width: 26px; height: 26px; } }

/* ---- destruction: the ammo list ---- */
.ammo { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.ammo li { background: rgba(10,20,32,.66); border: 1px solid rgba(46,66,86,.9); border-left: 3px solid var(--brass); border-radius: 10px; padding: 9px 13px; font-size: .92rem; color: var(--mist); }
.ammo b { color: var(--sand); display: block; }
.copy-right.wide-copy { max-width: 640px; }

/* ---- the fleet ---- */
.fleet-band { background: radial-gradient(ellipse at 50% 0%, #1a3148 0%, var(--ink) 70%); }
.fleet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 18px 30px; }
.fleet-head h2 { margin-bottom: .2em; }
.tally { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tally li { min-width: 92px; text-align: center; padding: 10px 14px; border-radius: 12px; background: rgba(8,16,26,.8); border: 1px solid var(--line); }
.tally b { display: block; font-size: 1.7rem; line-height: 1.1; }
.tally span { font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); }
.tally .t-leg b { color: var(--legendary); } .tally .t-epic b { color: var(--epic); } .tally .t-rare b { color: var(--rare); } .tally .t-all b { color: var(--gold); }
.rarity-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 18px; }
.rarity-tabs button { font: inherit; font-size: .88rem; font-weight: 800; letter-spacing: .06em; cursor: pointer; padding: 7px 16px; border-radius: 999px; background: rgba(22,40,58,.7); color: var(--sand); border: 1px solid var(--line); transition: border-color .15s ease, background .15s ease; }
.rarity-tabs button:hover { border-color: var(--brass); }
.rarity-tabs button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.ship-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ship-card { --r: var(--rare); position: relative; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: linear-gradient(180deg, rgba(22,40,58,.9), rgba(10,20,32,.95)); border: 1px solid rgba(46,66,86,.9); box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.ship-card[data-rarity="Epic"] { --r: var(--epic); }
.ship-card[data-rarity="Legendary"] { --r: var(--legendary); }
.ship-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--r); }
.ship-card:hover { transform: translateY(-4px); border-color: var(--r); box-shadow: 0 14px 30px rgba(0,0,0,.4), 0 0 0 1px var(--r); }
.ship-card .art { height: 150px; display: flex; align-items: center; justify-content: center; padding: 16px 12px 4px; background: radial-gradient(ellipse at 50% 70%, color-mix(in srgb, var(--r) 22%, transparent) 0%, transparent 70%); }
.ship-card .art img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.5)); transition: transform .4s ease; }
.ship-card:hover .art img { transform: translateY(-4px) scale(1.04); }
.ship-card .body { padding: 8px 14px 14px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.ship-card .rar { font-size: .66rem; font-weight: 800; letter-spacing: .16em; color: var(--r); }
.ship-card h3 { margin: 0; font-size: 1.05rem; color: var(--sand); }
.ship-card .role { margin: 0; color: var(--mist); font-size: .86rem; line-height: 1.4; }
.ship-card .meta { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ship-card .door { font-size: .66rem; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line); color: var(--gold); background: rgba(8,16,26,.6); }
.ship-card .sig { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--sand); }
.ship-card .sig img { width: 22px; height: 22px; border-radius: 50%; }
.ship-card[hidden] { display: none !important; }
.ship-grid.small { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ship-grid.small .art { height: 120px; }
.ship-card.foe { --r: #c22e2a; }
.ship-card.foe .rar { color: #ff8a80; }
.fleet-sub { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; margin-top: 46px; }
.fleet-sub h3 { margin: 0 0 .2em; }
.fleet-sub p.note { color: var(--mist); font-size: .92rem; margin: 0 0 14px; }
@media (max-width: 520px) {
  .ship-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ship-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ship-card .art { height: 96px; padding: 12px 8px 2px; }
  .ship-grid.small .art { height: 86px; }
  .ship-card .body { padding: 6px 10px 11px; }
  .ship-card h3 { font-size: .95rem; }
  .ship-card .role { font-size: .78rem; }
  .ship-card .sig { font-size: .72rem; }
  .tally li { min-width: 0; flex: 1 1 64px; padding: 8px 6px; }
  .tally b { font-size: 1.35rem; }
}

/* ---- campaign: seas and their captains ---- */
.seas { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; counter-reset: sea; }
.seas li { counter-increment: sea; position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; padding: 12px 14px 12px 12px; border-radius: 14px; background: rgba(10,20,32,.72); border: 1px solid rgba(46,66,86,.9); transition: border-color .2s ease, transform .2s ease; }
.seas li:hover { border-color: var(--brass); transform: translateY(-2px); }
.seas img { width: 112px; height: 74px; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.5)); }
.seas .n { font-size: .68rem; font-weight: 800; letter-spacing: .14em; color: var(--mist); text-transform: uppercase; }
.seas .n::before { content: "Sea " counter(sea); }
.seas h3 { margin: 0; font-size: 1rem; color: var(--sand); }
.seas p { margin: 2px 0 0; font-size: .84rem; color: var(--mist); line-height: 1.4; }
.seas p b { color: var(--gold); font-weight: 700; }
.diff-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.diff-row span { font-weight: 800; font-size: .85rem; padding: 5px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(22,40,58,.75); }
.diff-row .d-normal { color: var(--good); border-color: rgba(127,212,135,.6); }
.diff-row .d-hard { color: #ffb35c; border-color: rgba(255,179,92,.6); }
.diff-row .d-brutal { color: #ff8a80; border-color: rgba(255,138,128,.6); }
.diff-row .d-night { color: #c9a0f0; border-color: rgba(176,110,232,.6); opacity: .85; }
.campaign-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.campaign-split .shot { width: 100%; box-shadow: 0 18px 40px rgba(0,0,0,.45); border-color: var(--brass); }
@media (max-width: 900px) { .campaign-split { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .seas li { grid-template-columns: 84px 1fr; } .seas img { width: 84px; height: 58px; } }

/* ---- modes: five tiles instead of four ---- */
.mode-grid.five { grid-template-columns: repeat(5, 1fr); }
.mode-grid.five .mode-tile { height: clamp(420px, 58vh, 600px); }
.mode-tile .pill { position: absolute; top: 14px; left: 14px; z-index: 1; box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.mode-tile.later-tile img { filter: saturate(.8) brightness(.85); }
.mode-note { color: var(--mist); font-size: .92rem; margin-top: 18px; max-width: 60em; }
@media (max-width: 1280px) { .mode-grid.five { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .mode-grid.five { grid-template-columns: repeat(2, 1fr); } .mode-grid.five .mode-tile { height: 400px; } }
@media (max-width: 640px) { .mode-grid.five { grid-template-columns: 1fr; } .mode-grid.five .mode-tile { height: 340px; } }
.mode-dialog h3 .pill { margin-left: 8px; }

/* ---- shipyard ---- */
.stat-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 22px 0 8px; padding: 0; list-style: none; }
.stat-strip li { padding: 14px 16px; border-radius: 12px; background: rgba(10,20,32,.7); border: 1px solid rgba(46,66,86,.9); }
.stat-strip b { display: block; color: var(--gold); font-size: 1.6rem; line-height: 1.1; }
.stat-strip span { color: var(--mist); font-size: .85rem; }
.set-row .set.r-rare { border-color: var(--rare); color: #bfe0f7; }
.set-row .set.r-epic { border-color: var(--epic); color: #e2cdf7; }
.set-row .set.r-leg { border-color: var(--legendary); color: #ffd9a3; }
.set-row .set small { font-weight: 600; color: var(--mist); margin-left: 5px; font-size: .75rem; }
.set-row .set.rig { border-style: dashed; }
.spec-group { margin-top: 18px; }
.spec-group .lbl { display: block; color: var(--mist); font-size: .82rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin: 0 0 12px; }
.fit-panel .emblems.sig { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 10px; }
.fit-panel .emblems.sig img { width: 64px; height: 64px; }
.fit-panel .emblems .name { font-size: .85rem; line-height: 1.25; }
.shipyard-shot { margin-top: 26px; }
.shipyard-shot img { width: 100%; }
.shipyard-shot figcaption { color: var(--mist); font-size: .85rem; margin-top: 8px; }

/* ---- rewards and systems ---- */
.sys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; margin-top: 28px; }
.sys { padding: 22px 22px 20px; background: rgba(10,20,32,.78); border: 1px solid rgba(46,66,86,.9); border-top: 3px solid var(--brass); border-radius: 14px; backdrop-filter: blur(4px); transition: transform .25s ease, border-color .25s ease; }
.sys:hover { transform: translateY(-3px); border-color: var(--brass); }
.sys h3 { margin: 0 0 .35em; }
.sys p { margin: .4em 0; color: var(--mist); font-size: .94rem; }
.sys p b { color: var(--sand); }
.sys ul { margin: .5em 0 0; padding: 0; list-style: none; }
.sys li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-top: 1px solid rgba(46,66,86,.6); font-size: .88rem; color: var(--mist); }
.sys li span:last-child { color: var(--sand); font-weight: 700; text-align: right; }
.sys .thumbs { display: flex; gap: 6px; margin-top: 12px; }
.sys .thumbs img { width: 60%; min-width: 0; height: 110px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,.5)); }

/* ---- roadmap ---- */
.roadmap { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.roadmap::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--brass) 60%, rgba(201,150,46,.2)); }
.roadmap li { position: relative; padding: 36px 18px 0 0; }
.roadmap li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--gold); }
.roadmap li.now::before { background: var(--gold); box-shadow: 0 0 0 6px rgba(255,211,77,.18); }
.roadmap li.later::before { border-color: var(--brass); border-style: dashed; }
.roadmap .when { display: block; color: var(--gold); font-weight: 800; font-size: 1.05rem; }
.roadmap h3 { margin: .15em 0 .3em; color: var(--sand); font-size: 1.02rem; }
.roadmap p { margin: 0; color: var(--mist); font-size: .9rem; }
@media (max-width: 860px) {
  .roadmap { grid-template-columns: 1fr; gap: 22px; padding-left: 30px; }
  .roadmap::before { left: 8px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold), var(--brass) 60%, rgba(201,150,46,.2)); }
  .roadmap li { padding: 0; }
  .roadmap li::before { left: -30px; top: 3px; }
}

/* ---- community ---- */
.socials { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.social { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px 11px 14px; border-radius: 12px; background: rgba(8,16,26,.82); border: 2px solid var(--line); color: var(--sand); font-weight: 800; transition: transform .2s ease, border-color .2s ease; }
.social svg { width: 24px; height: 24px; flex: none; }
.social:hover { transform: translateY(-3px); border-color: var(--gold); text-decoration: none; color: var(--gold); }
.social.discord { border-color: #7f8cf5; }
.final-cta { text-align: center; }
.final-cta .copy { max-width: 640px; margin: 0 auto; }
.final-cta .cta-row, .final-cta .store-badges, .final-cta .socials { justify-content: center; }
.final-cta .logo-sm { width: min(240px, 56vw); height: auto; margin: 0 auto 6px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.55)); }
.fine-print { color: var(--mist); font-size: .82rem; max-width: 52em; margin: 22px auto 0; }

@media (max-width: 720px) {
  .hero { min-height: 0; }
  .hero h1 img { margin-left: -6px; }
  .date-chips li { flex: 1 1 100%; }
  .cta-row .btn { flex: 1 1 100%; text-align: center; margin-right: 0; }
  .hero .store-badges.compact .txt small { letter-spacing: .06em; white-space: nowrap; }
  .final-cta .store-badges { justify-items: stretch; }
}

/* ---- gold / INVO band ---- */
.gold-head { max-width: 46em; }
.gold-steps .sys { position: relative; }
.gold-steps .step { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); color: var(--gold); font-weight: 800; margin-bottom: 10px; background: rgba(10,20,32,.7); }
.gold-band .cta-row { margin-top: 26px; }
