/* Home page. */

/* ---------- the intro (assets/js/intro.js): one canvas over the page, drawn in big pixels ---------- */
#intro { display: none; }
html.intro-hold { overflow: hidden; }
html.intro #intro { display: block; position: fixed; inset: 0; z-index: 300; overflow: hidden; background: var(--bg); }
html.intro #intro.open { background: transparent; pointer-events: none; }
#intro canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
.intro-logo, .intro-fly { position: absolute; }
.intro-fly { transform-origin: 0 0; }
.intro-skip {
  position: absolute; right: 20px; bottom: 20px; padding: 10px 12px; font-family: var(--font-pixel); font-size: 8px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-faint); background: transparent; border: 2px solid var(--edge); cursor: pointer; clip-path: var(--clip-px1);
}
.intro-skip:hover { color: var(--ink); border-color: var(--edge-light); }
#intro.open .intro-skip { display: none; }
/* the hero steps in once the intro (or the page) is ready */
.rise { animation: rise 360ms steps(4, end) both; animation-delay: calc(var(--i, 0) * 70ms); }
html.intro-hold .rise { animation-play-state: paused; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: 48px 0 28px; border-bottom: 2px solid var(--edge); overflow: hidden; }
/* a night sky that lightens toward the horizon in dithered bands (assets/home/sky.png, 4 screen pixels a texel), stars over it */
.hero-sky { position: absolute; inset: 0; z-index: -1; background: url("../home/sky.png") 0 100% / 16px 384px repeat-x; image-rendering: pixelated; }
/* the stars keep to the arena's side, clear of the words, and go when the two stack */
.hero-sky::before, .hero-sky::after {
  content: ""; position: absolute; inset: 0 0 200px 0; background: url("../home/stars.png") 0 0 / 288px 192px; image-rendering: pixelated;
  -webkit-mask-image: linear-gradient(90deg, transparent 46%, #000 58%); mask-image: linear-gradient(90deg, transparent 46%, #000 58%);
}
.hero-sky::after { background-position: 144px 96px; animation: twinkle 3.2s steps(1, end) infinite; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 40% { opacity: .25; } 55% { opacity: .7; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; }
.hero-copy > :nth-child(1) { --i: 0; } .hero-copy > :nth-child(2) { --i: 1; } .hero-copy > :nth-child(3) { --i: 2; }
.hero-copy > :nth-child(4) { --i: 3; } .hero-copy > :nth-child(5) { --i: 4; } .hero-arena { --i: 3; }
.hero h1 { font-family: var(--font-pixel); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.5; text-transform: uppercase; text-shadow: 4px 4px 0 var(--bg-deep); }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { margin: 18px 0 22px; max-width: 46ch; font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* the server card is the game's own tooltip: the address, one button, the facts a player needs */
.server { display: grid; gap: 12px; max-width: 460px; filter: drop-shadow(0 6px 0 rgba(4, 7, 15, .6)); }
.server-ip { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.server-ip .label { display: block; }
.ip { display: block; margin-top: 6px; font-family: var(--font-terminal); font-weight: 400; font-size: 44px; line-height: .9; color: var(--ink); }
.server-spec { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; padding: 12px 0 0; list-style: none; border-top: 2px solid #223468; font-family: var(--font-terminal); font-size: 20px; line-height: 1; color: var(--ink); }
.server-spec .label { margin-right: 6px; }
.server-spec .pill { background: rgba(4, 7, 15, .5); }

/* ---------- the duel lane (assets/js/arena.js) ---------- */
.hero-arena { justify-self: end; }
.arena { --k: 2; --hud: 680px; width: 696px; max-width: 100%; display: grid; justify-items: center; padding: 6px; background: var(--bg-deep); border: 2px solid var(--edge-light); clip-path: var(--clip-px2); box-shadow: inset 0 0 0 2px var(--bg-deep), inset 0 0 0 4px var(--edge); }
.arena-still { width: 100%; height: auto; }
.arena.live { padding: 0 6px 6px; }
.arena-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: var(--hud); max-width: 100%; height: 40px; padding: 0 6px; }
.arena-where { display: flex; align-items: center; gap: 8px; min-width: 0; }
.arena-where img:last-child { height: 20px; width: auto; }
.arena-score { display: flex; align-items: center; gap: 8px; font-family: var(--font-terminal); font-size: 26px; line-height: 1; }
.arena-score b { font-weight: 400; min-width: 12px; text-align: center; }
.arena-score .blue { color: #6aa8ff; } .arena-score .red { color: #ff6f7c; }
.arena-score img { width: 24px; height: 24px; }
.arena-stage { position: relative; line-height: 0; }
.arena canvas { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
/* who is playing blue: a tag on the stage that is also the "take over" button */
.arena-mode { position: absolute; left: 50%; top: 8px; transform: translateX(-50%); cursor: pointer; font-size: 7px; color: var(--ink-soft); background: rgba(4, 7, 15, .82); border-color: var(--edge-light); }
.arena-mode:hover { color: var(--ink); border-color: var(--accent); }
.arena-mode.you { color: #9cc6ff; border-color: #2b66f0; cursor: default; }
.arena-hud { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; width: var(--hud); max-width: 100%; padding: 10px 4px 2px; }
/* elixir: the HUD's drop with its number, and ten segments that fill as it comes in */
.arena-elixir { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.arena-drop { flex: none; width: 34px; height: 50px; }
.arena-meter { position: relative; display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; flex: 1; max-width: 220px; height: 18px; padding: 2px; background: #14041c; border: 2px solid #3e1650; }
.arena-meter i { position: relative; background: #2c0638; }
.arena-meter i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--f, 0) * 100%); background: #761088; }
.arena-meter i.on { background: #ea44d6; box-shadow: inset 0 2px 0 #ff86f0, inset 0 -2px 0 #b822b6; }
.arena-meter i.on::after { display: none; }
.arena-tag { position: absolute; right: -2px; top: -16px; padding: 2px 4px; font-family: var(--font-pixel); font-weight: 400; font-size: 8px; line-height: 1; color: #2c0638; background: #ff86f0; }
/* the hand: the game's hotbar, five slots, each card a button */
.arena-hand { --s: 4; --hs: 4; flex: none; }
.arena-hand .slot { padding: 0; border: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.arena-hand .slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.arena-hand .slot .mc-card { --s: calc(var(--hs, 4) / 2) !important; transition: transform 70ms steps(2, end); }
.arena-hand .slot:not(.off):hover .mc-card { transform: translateY(-4px); }
.arena-hand .slot:not(.off):active .mc-card { transform: translateY(0); }
/* a card you cannot pay for yet is veiled, pink rising up it as the elixir comes in (the fight HUD's rule) */
.arena-hand .veil { position: absolute; inset: 0; display: none; align-items: flex-end; background: rgba(4, 7, 15, .6); pointer-events: none; }
.arena-hand .veil i { display: block; width: 100%; background: rgba(234, 68, 214, .2); box-shadow: inset 0 2px 0 rgba(255, 134, 240, .75); }
.arena-hand .slot.off .veil { display: flex; }
.arena-hand .slot.off { cursor: default; }
.arena-hand .slot.lit .mc-card { animation: card-sweep .72s steps(1, end) 1; }
.arena-hand .slot.no { animation: nudge 240ms steps(4, end); }
@keyframes nudge { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.arena-note { max-width: 680px; margin: 10px 2px 0; font-size: 13px; color: var(--ink-muted); }
.arena.failed + .arena-note { display: none; }

/* the four numbers under the hero: each one leads somewhere */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 36px 0 0; padding: 0; list-style: none; }
.facts .well { padding: 12px 14px; color: var(--ink); background: rgba(4, 7, 15, .72); transition: background-color 80ms steps(2, end), border-color 80ms steps(2, end); }
.facts a.well:hover { text-decoration: none; background: var(--panel); border-color: var(--accent); }
.facts a.well:hover img { animation: hop 320ms steps(4, end); }
@keyframes hop { 50% { transform: translateY(-4px); } }
.facts .well > div { display: grid; grid-template-columns: auto 1fr; align-items: baseline; column-gap: 10px; }
.facts .stat-value { margin: 0; font-size: 40px; color: var(--accent); }
.facts .sub { grid-column: 1 / -1; margin-top: 4px; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 1239px) {
  .hero-sky::before, .hero-sky::after { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-arena { justify-self: center; max-width: 100%; }
  .hero-copy { display: grid; justify-items: start; min-width: 0; }
  .server { width: 100%; }
  .lede { max-width: 60ch; }
}
@media (max-width: 960px) {
  .hero { padding: 32px 0 24px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
}
@media (max-width: 720px) {
  .arena-hand { --s: 3; --hs: 3; }
  .arena-hud { flex-wrap: wrap; justify-content: center; }
  .arena-elixir { flex-basis: 100%; }
  .arena-meter { max-width: none; }
  .arena-mode { top: 4px; }
  .arena-note { text-align: center; }
}
@media (max-width: 520px) {
  .facts .sub { display: none; }
  .facts .stat-value { font-size: 32px; }
  .facts .well img { width: 32px; height: 32px; }
  .ip { font-size: 36px; }
  .arena-where img:last-child { height: 10px; }
  .arena-score .label { display: none; }
}
@media (max-width: 420px) { .server-ip { flex-wrap: wrap; } .server-ip .btn { width: 100%; } }

/* ---------- today: the daily games and the season ---------- */
.today { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--gap); padding-top: 32px; }
.today .panel { display: flex; flex-direction: column; }
.today .panel-body { display: flex; flex-direction: column; flex: 1; }
.today .panel-body > p { margin-bottom: 14px; font-size: 14px; }
.today .panel-body > .btn { align-self: flex-start; margin-top: auto; }
.clock { font-family: var(--font-terminal); font-weight: 400; font-size: 20px; letter-spacing: .04em; color: var(--ink); text-transform: none; }
/* the four games as the in-game Daily page's quests: icon, name, bar, seal. Each row opens its game. */
.quests { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.quest { display: grid; grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 12px; align-items: center; padding: 8px 12px; color: var(--ink); background: var(--bg-deep); border: 2px solid var(--edge); clip-path: var(--clip-px1); transition: border-color 80ms steps(2, end), background-color 80ms steps(2, end); }
.quest:hover { text-decoration: none; border-color: var(--accent); background: #081027; }
.quest:hover > img:first-child { animation: hop 320ms steps(4, end); }
.quest-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-family: var(--font-terminal); font-size: 22px; line-height: 1; }
.quest-name small { font-size: 18px; color: var(--ink-muted); white-space: nowrap; }
.quest .bar { margin-top: 6px; }
.bar { height: 10px; padding: 2px; background: var(--bg-deep); border: 2px solid var(--edge); }
.quest .bar { background: var(--panel); }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: inset 0 2px 0 var(--accent-light); }
.bar i.won { background: var(--ok); box-shadow: inset 0 2px 0 #8ff0b4; }
.bar i.lost { background: var(--no); box-shadow: inset 0 2px 0 #ff9aa5; }
.season-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.season-name { display: block; font-family: var(--font-pixel); font-weight: 400; font-size: 13px; line-height: 1.5; text-transform: uppercase; color: var(--accent); }
.season-left { display: block; margin-top: 4px; font-family: var(--font-terminal); font-size: 22px; line-height: 1; color: var(--ink-soft); }
.season-left b { font-weight: 400; color: var(--ink); }
/* the soft reset, as a slider to try: your cups now, and after the season turns */
.reset { margin: 16px 0 14px; padding: 12px 14px 10px; background: var(--bg-deep); border: 2px solid var(--edge); clip-path: var(--clip-px1); box-shadow: var(--shadow-inset); }
.reset-row { display: flex; align-items: center; gap: 14px; margin: 10px 0 2px; }
.reset-val { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-terminal); font-size: 34px; line-height: 1; }
.reset-val b { font-weight: 400; min-width: 4ch; }
.reset-val.after b { color: var(--accent); }
.reset-row.same .reset-val.after b { color: var(--ink); }
.reset-arrow { width: 24px; height: 12px; flex: none; background: var(--ink-faint); clip-path: polygon(0 4px, 16px 4px, 16px 0, 24px 6px, 16px 12px, 16px 8px, 0 8px); }
.reset-note { margin: 4px 0 0; font-size: 13px; color: var(--ink-muted); }
.season-card .ticks li { font-size: 13px; }
@media (max-width: 860px) { .today { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .quest-name { flex-direction: column; align-items: flex-start; gap: 4px; } }

/* ---------- modes ---------- */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.mode { display: flex; flex-direction: column; }
.mode .panel-body p { margin-bottom: 12px; color: var(--ink-soft); font-size: 14px; }
.mode-art { position: relative; height: 184px; margin: 16px 16px 0; display: grid; place-items: center; overflow: hidden; background: radial-gradient(260px 120px at 50% 100%, #172656 0%, transparent 100%), var(--bg-deep); border: 2px solid var(--edge); clip-path: var(--clip-px1); box-shadow: var(--shadow-inset); }
/* names whatever the pointer is on inside the window */
.art-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 5px 8px 4px; font-family: var(--font-pixel); font-size: 7px; line-height: 1.4; letter-spacing: .06em; text-transform: uppercase; text-align: center; color: var(--ink-muted); background: rgba(4, 7, 15, .78); border-top: 2px solid var(--edge); }
.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 18px; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; background: var(--accent); box-shadow: 2px 2px 0 var(--accent-shade); }
.fan { display: flex; justify-content: center; padding-bottom: 22px; }
.fan .mc-card { margin: 0 -22px; transform-origin: 50% 110%; transition: transform 90ms steps(3, end); }
.fan .mc-card:nth-child(1) { transform: rotate(-12deg) translateY(8px); }
.fan .mc-card:nth-child(2) { transform: rotate(-6deg) translateY(2px); }
.fan .mc-card:nth-child(3) { transform: translateY(-4px); z-index: 1; }
.fan .mc-card:nth-child(4) { transform: rotate(6deg) translateY(2px); }
.fan .mc-card:nth-child(5) { transform: rotate(12deg) translateY(8px); }
.mode:hover .fan .mc-card:nth-child(1) { transform: rotate(-16deg) translate(-8px, 8px); }
.mode:hover .fan .mc-card:nth-child(2) { transform: rotate(-8deg) translate(-4px, -2px); }
.mode:hover .fan .mc-card:nth-child(3) { transform: translateY(-10px); }
.mode:hover .fan .mc-card:nth-child(4) { transform: rotate(8deg) translate(4px, -2px); }
.mode:hover .fan .mc-card:nth-child(5) { transform: rotate(16deg) translate(8px, 8px); }
.kit-row { display: grid; grid-template-columns: repeat(4, 64px); gap: 4px 10px; justify-content: center; padding-bottom: 20px; }
.kit-row img, .boss-row img { filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .55)); transition: transform 70ms steps(2, end); }
.kit-row img:hover, .boss-row img:hover { transform: translateY(-4px); }
.boss-row { display: flex; align-items: flex-end; justify-content: center; gap: 0; align-self: end; padding-bottom: 30px; }
.boss-row img { margin: 0 -6px; }
@media (max-width: 980px) { .modes { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; } }

/* ---------- arena road ---------- */
.road { --at: 0; position: relative; display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 6px; padding: 18px 16px 16px; border-bottom: 2px solid var(--edge); }
/* the road the medallions sit on, bare stone; the red carpet is rolled out over it up to the chosen arena */
.road::before, .road-carpet { content: ""; position: absolute; left: calc(16px + (100% - 104px) / 26); top: 47px; height: 6px; }
.road::before { right: calc(16px + (100% - 104px) / 26); background: #1a2550; box-shadow: inset 0 2px 0 #25336a, 0 2px 0 rgba(0, 0, 0, .45); }
.road-carpet { width: calc(((100% - 104px) / 13 + 6px) * var(--at)); background: #7a1a22; box-shadow: inset 0 2px 0 #b8323e, 0 2px 0 rgba(0, 0, 0, .45); transition: width 240ms steps(6, end); }
.road button {
  position: relative; display: grid; justify-items: center; gap: 8px; padding: 6px 2px 10px; cursor: pointer; color: var(--ink-faint); text-align: center;
  background: transparent; border: 0; clip-path: var(--clip-px1); transition: background-color 80ms steps(2, end), color 80ms steps(2, end);
}
.road button .arena-medal { transition: transform 70ms steps(2, end); }
.road button:not(.reached) .arena-medal { filter: grayscale(1) brightness(.62) drop-shadow(0 2px 0 rgba(0, 0, 0, .55)); }
.road button.reached { color: var(--ink-muted); }
.road button:hover { background: var(--panel-raised); color: var(--ink); }
.road button:hover .arena-medal { transform: translateY(-3px); }
.road button[aria-pressed="true"] { background: var(--panel-raised); color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.road button:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.road .arena-medal { width: 44px; height: 44px; }
.road button:last-child .arena-medal { width: 52px; height: 52px; margin-top: -4px; }
.road small { font-family: var(--font-terminal); font-size: 18px; line-height: 1; }
.road-detail { --ac: var(--accent); padding: 18px 16px 20px; box-shadow: inset 0 3px 0 var(--ac); min-height: 236px; }
.rd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rd-head > div { display: flex; align-items: center; gap: 14px; min-width: 0; }
.rd-head .plate { height: 20px; width: auto; }
.rd-head .meta b { font-family: var(--font-terminal); font-weight: 400; font-size: 20px; color: var(--ink); letter-spacing: 0; }
.rd-count { margin-left: 10px; padding-left: 14px; border-left: 2px solid var(--edge); }
.unlock-cards { display: flex; flex-wrap: wrap; gap: 14px 8px; }
.unlock-cards a { display: grid; justify-items: center; align-content: start; gap: 6px; width: 96px; color: var(--ink); text-align: center; }
.unlock-cards a:hover { text-decoration: none; color: var(--accent); }
.unlock-cards.deal a { animation: deal 200ms steps(3, end) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes deal { from { opacity: 0; transform: translateY(-10px); } }
.unlock-cards span.nm { font-family: var(--font-terminal); font-size: 19px; line-height: 1; }
/* narrow screens keep the road as one line and scroll it sideways */
@media (max-width: 1000px) {
  .road { grid-template-columns: repeat(13, 64px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .road::-webkit-scrollbar { display: none; }
  .road button { scroll-snap-align: center; }
  .road::before { left: 48px; right: auto; width: calc(70px * 12); }
  .road-carpet { left: 48px; width: calc(70px * var(--at)); }
  .road-detail { min-height: 0; }
}
@media (max-width: 560px) {
  .road { padding: 14px 10px 12px; }
  .road::before, .road-carpet { left: 42px; top: 43px; }
  .rd-count { display: none; }
  .unlock-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .unlock-cards a { width: auto; }
}

/* ---------- kits: a card for the chosen kit, the grid to choose from ---------- */
.kit-board { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: var(--gap); align-items: stretch; }
.kit-detail { display: flex; flex-direction: column; }
.kit-detail .panel-body { display: grid; align-content: start; gap: 12px; flex: 1; }
.kit-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.kit-art { display: grid; place-items: center; width: 112px; height: 112px; background: radial-gradient(60px 44px at 50% 100%, #1b2b60 0%, transparent 100%), var(--bg-deep); border: 2px solid var(--edge); clip-path: var(--clip-px1); box-shadow: var(--shadow-inset); }
.kit-art img { filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .55)); animation: kit-in 200ms steps(3, end); }
@keyframes kit-in { from { transform: translateY(8px); opacity: 0; } }
.kit-top p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.kit-detail .ticks { gap: 6px; }
.kit-detail .ticks li { font-family: var(--font-terminal); font-size: 20px; line-height: 1.1; color: var(--ink); }
.kit-detail .ticks li::before { top: 5px; }
.kits { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.kit { --cc: var(--edge); display: grid; justify-items: center; align-content: start; gap: 6px; padding: 14px 4px 8px; color: var(--ink); cursor: pointer; background: var(--panel); border: 2px solid var(--edge); clip-path: var(--clip-px1); transition: background-color 80ms steps(2, end), border-color 80ms steps(2, end); }
.kit:hover { background: var(--panel-raised); }
.kit:hover img { transform: translateY(-3px); }
.kit[aria-pressed="true"] { background: var(--panel-raised); border-color: var(--accent); box-shadow: inset 0 -3px 0 var(--accent); }
.kit:focus-visible { outline: none; border-color: var(--accent-light); }
.kit img { filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .55)); transition: transform 70ms steps(2, end); }
.kit span { display: flex; align-items: center; min-height: 2em; font-family: var(--font-terminal); font-size: 18px; line-height: 1; text-align: center; }
@media (max-width: 1100px) { .kit-board { grid-template-columns: 1fr; } .kit-detail .panel-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .kit-detail .panel-body > .label { display: none; } }
@media (max-width: 720px) { .kits { grid-template-columns: repeat(4, minmax(0, 1fr)); } .kit-detail .panel-body { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .kits { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kit-top { grid-template-columns: 1fr; justify-items: start; } }

/* ---------- how to join: three steps down a line, the lobby beside them ---------- */
.join-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--gap); align-items: start; }
.steps { position: relative; display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 18px 18px 18px 16px; }
.step .panel-title { margin: 2px 0 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.step .btn { margin-top: 14px; }
kbd { font-family: var(--font-terminal); font-size: 18px; padding: 0 6px; color: var(--accent); background: var(--bg-deep); border: 2px solid var(--edge); }
/* a screenshot of the real game, in the game's own frame */
.shot { margin: 0; filter: drop-shadow(0 6px 0 rgba(4, 7, 15, .6)); border-width: 20px; border-image-width: 24px; }
.shot img { width: 100%; height: auto; border: 2px solid #223468; }
.shot figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; font-size: 14px; color: var(--ink-soft); }
@media (max-width: 900px) { .join-grid { grid-template-columns: 1fr; } }

@media (max-width: 560px) {
  .section { padding-top: 44px; }
  .mode-art { height: 168px; }
  .fan .mc-card { margin: 0 -26px; }
  .boss-row img { margin: 0 -12px; }
}
@media (max-width: 380px) {
  .kit-row { grid-template-columns: repeat(3, 64px); }
  .kit-row img:nth-child(n+7) { display: none; }
}
@media (max-width: 520px) {
  .hero-actions { width: 100%; }
  .hero-actions .btn-lg { flex: 1 1 auto; padding-inline: 12px; font-size: 10px; }
}
