/* GoalBloc — colours and type from the Claude Design mockup (GoalBloc Maquettes, system 1c) */

/* the three fonts are served by the site (Fontsource 5.3.0, latin subset, SIL Open Font License: assets/fonts/OFL-*.txt) */
@font-face { font-family: 'Pixelify Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(assets/fonts/pixelify-sans-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 200 1000; font-display: swap; src: url(assets/fonts/nunito-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/lato-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 700; font-display: swap; src: url(assets/fonts/lato-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Lato'; font-style: normal; font-weight: 900; font-display: swap; src: url(assets/fonts/lato-latin-900-normal.woff2) format('woff2'); }

:root {
  --blue: #3FA9F5;
  --blue-edge: #2384D0;
  --blue-hover: #6BBDF7;
  --gold: #F5C04A;
  --gold-edge: #C9952F;
  --night: #0A1530;
  --surface: #13254A;
  --second: #24375C;
  --second-edge: #1A2947;
  --second-hover: #2E4470;
  --ink: #060D20;
  --text: #F8FAFC;
  --soft: #9AA4B2;
  --soft-light: #C4CBD6;
  --line: #5A6475;
  --green: #5BE37D;
  --stripe: #0C1937;
  --pixel: 'Pixelify Sans', sans-serif;
  --head: Lato, sans-serif;
  --body: Nunito, system-ui, sans-serif;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--body); -webkit-font-smoothing: antialiased; }
/* the latin subset of Pixelify Sans draws "fi" and "fl" as a wrong glyph (ligatures); the "font" shorthand used everywhere
   resets ligature settings, so they are turned off on each element */
*, ::before, ::after { font-feature-settings: "liga" 0, "clig" 0 !important; }
a { color: var(--blue); }
a:hover { color: var(--blue-hover); }
::selection { background: var(--gold); color: var(--ink); }
button { font-family: inherit; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.green { color: var(--green); }
.blue { color: var(--blue); }
.gold { color: var(--gold); }
.muted { color: var(--soft); }
.nowrap { white-space: nowrap; }
.grow { flex: 1; }
.spacer { flex: 1; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--night); border-bottom: 3px solid var(--ink); box-shadow: 0 3px 0 var(--surface); }
.header-in { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); display: flex; align-items: center; gap: clamp(12px, 3vw, 40px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-crest { width: 44px; height: 44px; border: 2px solid var(--ink); }
.brand-crest.big { width: 52px; height: 52px; }
.brand-word { width: clamp(104px, 10vw, 132px); height: auto; }
.nav-desk { display: none; align-items: center; gap: 4px; }
.nav-desk a { padding: 10px 14px; font: 700 15px/1 var(--head); color: var(--text); text-decoration: none; }
.nav-desk a:hover, .nav-desk a[aria-current] { background: var(--surface); color: var(--gold); }

/* EN | FR: the page's language lit, the other one a link to the same page */
.lang { display: flex; flex: none; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); }
.lang > * { width: 44px; height: 38px; display: flex; align-items: center; justify-content: center; font: 600 15px/1 var(--pixel); background: var(--surface); color: var(--soft); text-decoration: none; }
.lang a:hover { background: var(--second); color: var(--text); }
.lang [aria-current] { background: var(--gold); color: var(--ink); }

/* online players: "Coming soon" until the launch switch (src/config.mjs) */
.online { display: none; align-items: center; gap: 8px; flex: none; padding: 9px 10px; font: 600 14px/1 var(--pixel); white-space: nowrap; color: var(--soft-light); background: var(--surface); border: 2px solid var(--second); }
.online i { width: 8px; height: 8px; background: var(--green); box-shadow: 0 0 8px var(--green); }
.online.is-soon i { background: var(--gold); box-shadow: none; }
.online[hidden] { display: none !important; }

.panel-toggle { height: 44px; min-width: 44px; flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px 3px; background: var(--second); color: var(--text); border: 3px solid var(--ink); box-shadow: inset 0 -4px 0 var(--second-edge), 0 4px 0 var(--ink); font: 600 15px/1 var(--pixel); cursor: pointer; }
.panel-toggle:hover { background: var(--second-hover); }
.panel-toggle:active { transform: translateY(3px); box-shadow: inset 0 -2px 0 var(--second-edge), 0 1px 0 var(--ink); }
.panel-burger { display: flex; flex-direction: column; gap: 4px; }
.panel-burger i { display: block; width: 18px; height: 3px; background: var(--text); }
.panel-toggle[aria-expanded="true"] { background: var(--gold); color: var(--ink); box-shadow: inset 0 -4px 0 var(--gold-edge), 0 4px 0 var(--ink); }
.panel-toggle[aria-expanded="true"] .panel-burger i { background: var(--ink); }
.panel-toggle-text { display: none; }

/* the all-pages panel: full width under the bar in four columns, the whole screen on a phone */
.pages-panel { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border-top: 3px solid var(--ink); }
.pages-panel[hidden] { display: none; }
.panel-in { max-width: 1280px; margin: 0 auto; padding: 24px clamp(16px, 3vw, 32px) 32px; display: flex; flex-direction: column; gap: 24px; }
.panel-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 20px 32px; }
.panel-col { display: flex; flex-direction: column; gap: 2px; }
.panel-title { margin-bottom: 8px; font: 600 14px/1 var(--pixel); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.pages-panel a { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; color: var(--text); text-decoration: none; }
.pages-panel a b { display: block; font: 800 17px/1.2 var(--head); }
.pages-panel a small { display: block; margin-top: 4px; font: 400 14px/1.4 var(--body); color: var(--soft); }
.pages-panel a:hover b { color: var(--gold); }
.pages-panel .ico { flex: none; width: 22px; height: 22px; margin-top: 1px; background: var(--c); border: 2px solid var(--ink); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .28); }
.panel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 16px; padding-top: 22px; border-top: 2px solid var(--second); }
.panel-foot .online { display: inline-flex; }
.panel-foot .btn-big { flex: 0 1 auto; }
.pages-panel .panel-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.pages-panel .panel-legal a { display: inline; padding: 4px 0; font: 600 14px/1.5 var(--body); color: var(--soft); }
.pages-panel .panel-legal a:hover { color: var(--text); text-decoration: underline; }
.panel-open { overflow: hidden; }

@media (min-width: 600px) {
  .online { display: inline-flex; }
  .panel-foot .online { display: none; }
}
@media (min-width: 860px) {
  .pages-panel { bottom: auto; max-height: calc(100svh - var(--header-h)); border-bottom: 3px solid var(--ink); box-shadow: 0 6px 0 rgba(6, 13, 32, .6); }
  .panel-open { overflow: auto; }
  .panel-toggle-text { display: inline; }
}
/* small phones: a tighter bar, then the crest alone (the logotype is still in the footer) */
@media (max-width: 379px) {
  .header-in { gap: 8px; }
  .header-in .brand { gap: 8px; }
  .header-in .brand-word { width: 92px; }
}
@media (max-width: 339px) {
  .header-in .brand-word { display: none; }
}
@media (min-width: 1140px) {
  .nav-desk { display: flex; }
}

/* ---------- inner pages' banner: the home page's pitch, without the 3D ---------- */
.page-head { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 96px) clamp(20px, 4vw, 40px) clamp(48px, 6vw, 80px); background: var(--night); }
.page-head .pitch-lines { opacity: .35; }
.page-head-in { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.page-head h1 { font: 700 clamp(38px, 2.4vw + 28px, 64px)/1.08 var(--pixel); color: var(--text); text-shadow: 4px 4px 0 var(--ink); text-wrap: balance; overflow-wrap: anywhere; }
.page-head .lead { color: var(--soft-light); }

/* ---------- buttons: blocks that sink when pressed ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; border: 3px solid var(--ink); cursor: pointer; text-decoration: none; transition: transform .06s ease, box-shadow .06s ease; }
.btn-primary { background: var(--blue); color: var(--ink); box-shadow: inset 0 -6px 0 var(--blue-edge), 0 6px 0 var(--ink); }
.btn-primary:hover { background: var(--blue-hover); color: var(--ink); }
.btn-primary:active { transform: translateY(5px); box-shadow: inset 0 -2px 0 var(--blue-edge), 0 1px 0 var(--ink); }
.btn-secondary { gap: 10px; min-height: 52px; padding: 0 20px 5px; background: var(--second); color: var(--text); box-shadow: inset 0 -5px 0 var(--second-edge), 0 5px 0 var(--ink); font: 600 17px/1 var(--pixel); }
.btn-secondary:hover { background: var(--second-hover); color: var(--text); }
.btn-secondary:active { transform: translateY(4px); box-shadow: inset 0 -2px 0 var(--second-edge), 0 1px 0 var(--ink); }
.btn-big { flex: 1 1 auto; min-height: 62px; padding: 0 24px 6px; font-size: 18px; box-shadow: inset 0 -6px 0 var(--second-edge), 0 6px 0 var(--ink); }
.btn-address { flex-wrap: wrap; align-items: stretch; padding: 0; font-family: var(--pixel); }
.address { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 18px; background: var(--ink); color: var(--text); font-weight: 500; font-size: 18px; letter-spacing: .02em; }
.address-action { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 22px 6px; font-weight: 600; font-size: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: clamp(64px, 8vw, 104px) clamp(20px, 4vw, 40px) clamp(88px, 10vw, 136px); background: var(--night); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-bg > div { position: absolute; }
.pitch-stripes { inset: 0; background: repeating-linear-gradient(90deg, var(--stripe) 0 12.5%, var(--night) 12.5% 25%); }
.pitch-lines { inset: 0; opacity: .6; }
.halfway { position: absolute; top: 0; bottom: 0; left: calc(50% - 6px); width: 12px; background: var(--second); }
.ring { position: absolute; left: 50%; top: 50%; height: 86%; aspect-ratio: 1; transform: translate(-50%, -50%); image-rendering: pixelated; }
.cone { top: 0; width: 48%; height: 100%; background: linear-gradient(180deg, rgba(255, 240, 205, .10), rgba(255, 240, 205, 0) 78%); }
.cone-l { left: 1%; clip-path: polygon(12% 0, 20% 0, 100% 100%, 38% 100%); }
.cone-r { right: 1%; clip-path: polygon(80% 0, 88% 0, 62% 100%, 0 100%); }
.lamps { top: 22px; display: grid; grid-template-columns: repeat(4, 10px); gap: 5px; }
.lamps-l { left: 6%; }
.lamps-r { right: 6%; }
.lamps span { display: block; width: 10px; height: 10px; background: #FFF3D1; box-shadow: 0 0 18px 4px rgba(255, 232, 170, .42); }
.hero-shade { inset: 0; background:
  radial-gradient(42% 60% at 6% 0%, rgba(255, 236, 196, .13), rgba(255, 236, 196, 0) 70%),
  radial-gradient(42% 60% at 94% 0%, rgba(255, 236, 196, .13), rgba(255, 236, 196, 0) 70%),
  linear-gradient(180deg, rgba(4, 9, 24, .55) 0%, rgba(4, 9, 24, 0) 40%, rgba(10, 21, 48, 0) 78%, var(--night) 100%); }

/* 3D stadium (hero3d.js): fades in over the CSS pitch, which then hides; a darker centre keeps the text readable */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s ease; }
.hero-canvas.on { opacity: 1; }
.hero.has-3d .pitch-stripes, .hero.has-3d .pitch-lines, .hero.has-3d .cone, .hero.has-3d .lamps { display: none; }
.hero.has-3d .hero-shade { background:
  radial-gradient(ellipse 46% 44% at 50% 50%, rgba(6, 13, 32, .62), rgba(6, 13, 32, 0) 78%),
  linear-gradient(180deg, rgba(4, 9, 24, .25) 0%, rgba(4, 9, 24, 0) 25%, rgba(10, 21, 48, 0) 72%, var(--night) 100%); }

.hero-in { position: relative; z-index: 1; width: 100%; max-width: 920px; display: flex; flex-direction: column; align-items: center; gap: 28px; text-align: center; }
.hero-title { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-title h1 { position: relative; line-height: 0; }
/* the logo builds itself block by block (main.js): hidden until its canvas takes over */
.build-logo .hero-word { visibility: hidden; }
.hero-word-build { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; pointer-events: none; }
.hero-word { width: clamp(290px, 57vw, 820px); max-width: 100%; height: auto; }
.hero-sub { font: 600 clamp(20px, .8vw + 16.5px, 28px)/1.2 var(--pixel); letter-spacing: .14em; text-transform: uppercase; text-shadow: 3px 3px 0 var(--ink); }
.hero-promise { font: 500 clamp(18px, .4vw + 16.5px, 22px)/1.3 var(--pixel); text-shadow: 2px 2px 0 var(--ink); }
.hero-lead { max-width: 560px; font: 400 clamp(18px, .2vw + 17.1px, 20px)/1.55 var(--body); color: var(--soft); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 16px; width: fit-content; max-width: 100%; margin-top: 6px; }
.hero-actions .btn-address { flex: 1 1 auto; }
.hero-meta { margin-top: 4px; font: 500 14px/1.4 var(--pixel); letter-spacing: .04em; color: var(--soft); }

/* ---------- sections ---------- */
.section { position: relative; scroll-margin-top: var(--header-h); background: var(--night); padding: clamp(72px, 9vw, 128px) clamp(20px, 4vw, 40px); }
.section.alt { background: var(--surface); }
.wrap { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(36px, 4vw, 56px); }
.section-head { display: flex; flex-direction: column; gap: 16px; }
.eyebrow { display: flex; align-items: center; gap: 10px; font: 600 14px/1 var(--pixel); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--gold); }
h2 { font: 600 clamp(32px, 1.54vw + 25.8px, 48px)/1.1 var(--pixel); color: var(--text); text-shadow: 4px 4px 0 var(--ink); text-wrap: balance; }
h2.green { color: var(--green); }
h3 { font: 800 22px/1.2 var(--head); color: var(--text); }
.lead { max-width: 640px; font: 400 clamp(18px, .2vw + 17.1px, 20px)/1.55 var(--body); color: var(--soft); text-wrap: pretty; }
.lead-light { max-width: 680px; color: var(--soft-light); }

/* crenellated pixel edges above and below the Surface sections */
.edges::before, .edges::after, .edges-top::before { content: ""; position: absolute; left: 0; right: 0; height: 12px; z-index: 2; background: repeating-linear-gradient(90deg, var(--surface) 0 24px, transparent 24px 48px); }
.edges::before, .edges-top::before { top: -12px; }
.edges::after { bottom: -12px; }

.card { background: var(--surface); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); }

/* modes */
.modes { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 620px) { .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .modes { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mode { display: flex; flex-direction: column; transition: transform .12s ease, box-shadow .12s ease; }
.mode:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); }
.shot { aspect-ratio: 16 / 10; background: repeating-linear-gradient(135deg, #0F1F40 0 12px, #112347 12px 24px); border-bottom: 3px solid var(--ink); display: flex; align-items: flex-end; padding: 12px; }
.shot span { font: 500 11px/1.4 ui-monospace, Menlo, monospace; color: var(--soft); background: var(--ink); padding: 4px 8px; }
.mode-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 22px 26px; }
.mode-body p, .step p { font: 400 16px/1.6 var(--body); color: var(--soft); text-wrap: pretty; }
.tag { font: 600 13px/1 var(--pixel); color: var(--gold); background: var(--night); border: 2px solid var(--second); padding: 6px 8px; }

/* shop */
.shop { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 28px; align-items: stretch; }
.panel { display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 2.4vw, 32px); background: var(--night); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font: 700 14px/1 var(--head); background: var(--surface); border: 2px solid var(--second); padding: 9px 12px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 4px; }
/* collector cards (main.js): tilt under the mouse, glare and halo in the colour of their rarity (--glow, the frame's colour) */
.collect { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --lift: 1; position: relative; display: block; box-shadow: 4px 4px 0 var(--ink);
  transform: perspective(700px) rotateX(var(--rx)) rotateY(var(--ry)) scale(var(--lift)); transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease; }
.collect img { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.collect::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; transition: opacity .3s ease;
  background: radial-gradient(circle at var(--mx) var(--my), color-mix(in srgb, var(--glow) 65%, transparent), transparent 55%),
    linear-gradient(115deg, transparent 35%, color-mix(in srgb, var(--glow) 22%, transparent) 50%, transparent 65%); }
.collect:hover { --lift: 1.08; z-index: 1; transition: transform .1s linear, box-shadow .3s ease;
  box-shadow: 4px 4px 0 var(--ink), 0 0 28px color-mix(in srgb, var(--glow) 55%, transparent); }
.collect:hover::after { opacity: 1; }
/* the card's item, drawn apart so it spins like a dropped item (main.js); layers one texel deep give it the game's thickness */
.collect .item { position: absolute; left: 28.125%; top: 13.672%; width: 43.75%; aspect-ratio: 1; transform-style: preserve-3d;
  transform: perspective(600px) translateY(var(--bob, 0%)) rotateY(var(--spin, 0deg)); }
.collect .item img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; image-rendering: pixelated;
  transform: translateZ(calc(var(--texel, 4px) * (.5 - var(--k, 0) / 5))); }
.collect .item .edge { filter: brightness(.55); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.badge-green { font: 600 13px/1 var(--pixel); color: var(--green); border: 2px solid var(--green); padding: 6px 8px; }
.never { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.never li { display: flex; align-items: flex-start; gap: 14px; }
.never li > span:first-child { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--ink); border: 2px solid var(--line); font: 600 18px/1 var(--pixel); }
.never li > span:last-child { padding-top: 3px; font: 600 17px/1.45 var(--body); }
.shop-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; padding-top: 22px; border-top: 2px solid var(--second); }
.note { font: 400 15px/1.5 var(--body); color: var(--soft); }

/* steps */
.steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 920px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(22px, 2.4vw, 30px); }
.step h3 { margin-top: 4px; line-height: 1.25; }
.step-n { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; padding-bottom: 5px; background: var(--gold); border: 3px solid var(--ink); box-shadow: inset 0 -5px 0 var(--gold-edge); font: 700 30px/1 var(--pixel); color: var(--ink); transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
/* the ball rolling from step 1 to step 3 (main.js): numbers wait unlit, then light up as it reaches them */
.rolling .step-n:not(.lit) { background: var(--second); color: var(--soft-light); box-shadow: inset 0 -5px 0 var(--second-edge); }
.rolling .step-n.lit { box-shadow: inset 0 -5px 0 var(--gold-edge), 0 0 22px rgba(245, 192, 74, .55); animation: step-pop .35s ease-out; }
@keyframes step-pop { 45% { transform: scale(1.22); } }
.roll-ball { --s: 30px; position: absolute; left: calc(var(--s) / -2); top: calc(var(--s) / -2); width: var(--s); height: var(--s); z-index: 2;
  pointer-events: none; opacity: 0; filter: drop-shadow(3px 4px 0 rgba(6, 13, 32, .6)); }
.step.in ~ .roll-ball { opacity: 1; animation: block-drop .65s .3s backwards; }
.roll-ball .cube { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: perspective(300px) rotateX(-18deg) rotateY(24deg) rotateZ(var(--roll, 0rad)); }
@media (max-width: 919px) { .roll-ball { --s: 18px; } }
/* the head's six faces from the skin (64 x 64, 8 px faces): hat layer over the base */
.roll-ball i { position: absolute; inset: 0; background-image: url(assets/balle.png), url(assets/balle.png); background-size: 800% 800%; image-rendering: pixelated; backface-visibility: hidden; }
/* shaded like the game's blocks so the cube reads in 3D: the face toward us lit, the four turning ones darker */
.roll-ball i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); background-position: 71.429% 14.286%, 14.286% 14.286%; }
.roll-ball i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); background-position: 100% 14.286%, 42.857% 14.286%; filter: brightness(.6); }
.roll-ball i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); background-position: 85.714% 14.286%, 28.571% 14.286%; filter: brightness(.7); }
.roll-ball i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); background-position: 57.143% 14.286%, 0% 14.286%; filter: brightness(.85); }
.roll-ball i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); background-position: 71.429% 0%, 14.286% 0%; filter: brightness(.85); }
.roll-ball i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); background-position: 85.714% 0%, 28.571% 0%; filter: brightness(.7); }
.code { font: 500 17px/1 var(--pixel); color: var(--blue); background: var(--ink); padding: 8px 10px; }

.preview-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; padding: clamp(20px, 2.4vw, 28px); }
.preview { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.preview-row .btn-address { flex: 0 1 auto; margin-bottom: 6px; }
.preview-label { font: 600 13px/1 var(--pixel); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.server-entry { display: flex; align-items: center; gap: 14px; max-width: 620px; padding: 10px 14px 10px 10px; background: #05091A; border: 2px solid var(--line); }
.server-entry img { width: 64px; height: 64px; flex: none; }
.server-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; font: 500 15px/1.25 var(--pixel); }
.server-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.signal { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.signal i { width: 3px; background: var(--soft); }
.signal i:nth-child(1) { height: 5px; }
.signal i:nth-child(2) { height: 8px; }
.signal i:nth-child(3) { height: 11px; }
.signal i:nth-child(4) { height: 14px; }

/* community */
.socials { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 20px; }
.social { display: flex; flex-direction: column; gap: 14px; padding: 20px 20px 22px; background: var(--night); color: var(--text); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.social:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--ink); color: var(--text); }
/* the networks' logos as 16 x 16 pixel art, shown at 3 screen pixels a pixel (assets/reseaux) */
.logo-px { width: 48px; height: 48px; filter: drop-shadow(3px 3px 0 var(--ink)); transition: transform .12s ease; }
.social:hover .logo-px { transform: translateY(-2px) rotate(-6deg); }
.social-text { display: flex; flex-direction: column; gap: 6px; }
.social-text b { font: 800 18px/1.2 var(--head); }
.social-text span { font: 400 14px/1.5 var(--body); color: var(--soft); }

/* ---------- footer ---------- */
.site-footer { background: var(--night); border-top: 3px solid var(--ink); padding: clamp(56px, 6vw, 80px) clamp(20px, 4vw, 40px) 40px; }
.footer-in { gap: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 36px 32px; }
.footer-brand, .footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col { gap: 12px; }
.footer-sig { font: 600 14px/1.4 var(--pixel); letter-spacing: .12em; text-transform: uppercase; }
.footer-modes { font: 500 14px/1.5 var(--pixel); color: var(--soft); }
.footer-title { margin-bottom: 4px; font: 600 14px/1 var(--pixel); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.footer-col a { font: 600 15px/1.5 var(--body); color: var(--text); text-decoration: none; }
.footer-col a:hover { color: var(--blue-hover); text-decoration: underline; }
.mojang { display: flex; flex-direction: column; gap: 8px; padding: 20px 24px; border: 3px solid var(--line); background: var(--ink); }
.mojang-en { font: 900 15px/1.5 var(--head); letter-spacing: .04em; }
.mojang-tr { font: 400 14px/1.5 var(--body); color: var(--soft); }
.mojang-tr:empty { display: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 2px solid var(--surface); font: 400 14px/1.5 var(--body); color: var(--soft); }

/* loading screen (main.js): the server icon, dark, fills with its colours from the bottom; gone after 8 s even if the
   script never runs */
.loader { display: none; }
.loading .loader { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: var(--night);
  transition: opacity .5s ease; animation: loader-out .5s 8s forwards; }
.loader.done { opacity: 0; pointer-events: none; }
@keyframes loader-out { to { opacity: 0; visibility: hidden; } }
.loader-icon { position: relative; width: clamp(128px, 30vw, 192px); aspect-ratio: 1; transition: transform .5s ease; }
.loader.done .loader-icon { transform: scale(1.1); }
.loader-icon img { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.loader-icon img:first-child { filter: grayscale(1) brightness(.3); }
.loader-fill { clip-path: inset(calc(100% - var(--p, 0) * 100%) 0 0 0); }

/* the intro, once a visit (hero3d.js): the 3D scene fills the window and holds the page until the visitor scrolls,
   clicks, taps or presses a key; the hero's text comes in after */
.intro { overflow: hidden; }
.intro .hero-canvas { position: fixed; inset: 0; z-index: 150; opacity: 1; transition: none; touch-action: none; cursor: pointer; }
.hero-in { transition: opacity .8s ease .15s; }
.intro .hero-in { opacity: 0; }
.intro-hint { display: none; }
.intro .intro-hint { position: fixed; z-index: 151; left: 50%; bottom: max(32px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 12px;
  font: 600 18px/1.2 var(--pixel); letter-spacing: .06em; color: var(--text); text-shadow: 2px 2px 0 var(--ink); white-space: nowrap; pointer-events: none;
  transform: translateX(-50%); transition: opacity .3s ease; animation: hint-bob 1.6s ease-in-out infinite; }
.intro .intro-hint::after { content: ""; width: 12px; height: 12px; border-right: 4px solid var(--gold); border-bottom: 4px solid var(--gold); transform: rotate(45deg); }
.intro-go .intro-hint { opacity: 0; }
.hint-touch { display: none; }
@media (hover: none) { .hint-mouse { display: none; } .hint-touch { display: inline; } }
@keyframes hint-bob { 50% { transform: translate(-50%, -6px); } }
.intro-flash { position: fixed; inset: 0; z-index: 160; background: #fff; pointer-events: none; opacity: 0; }

/* pixel confetti when the address is copied (main.js) */
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 100; }

/* cards fall and stack like blocks when they scroll into view (main.js) */
.drop { opacity: 0; }
.drop.in { opacity: 1; animation: block-drop .65s calc(var(--i, 0) * 90ms) backwards; }
/* squash from the bottom only while falling: the collector cards tilt around their centre */
@keyframes block-drop {
  0% { opacity: 0; transform-origin: 50% 100%; transform: translateY(-90px); animation-timing-function: cubic-bezier(.5, 0, 1, .6); }
  55% { opacity: 1; transform: translateY(0) scale(1.04, .92); animation-timing-function: cubic-bezier(0, 0, .4, 1); }
  72% { transform: translateY(-8px) scale(.99, 1.02); animation-timing-function: cubic-bezier(.6, 0, 1, 1); }
  86% { transform: translateY(0) scale(1.01, .98); }
  100% { transform-origin: 50% 100%; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- updates: a pixel timeline, a gold block for the latest entry, the others grey ---------- */
.chip { flex: none; display: inline-block; min-width: 84px; margin-top: 1px; padding: 5px 7px 6px; font: 600 12px/1 var(--pixel); text-align: center; color: var(--ink); border: 2px solid var(--ink); }
.chip.new { background: var(--green); }
.chip.better { background: var(--blue); }
.chip.fix { background: var(--soft-light); }
.timeline { --gut: 44px; position: relative; list-style: none; margin: 0; padding: 0 0 0 var(--gut); display: flex; flex-direction: column; gap: 28px; max-width: 880px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 12px; bottom: 12px; width: 6px; background: repeating-linear-gradient(180deg, var(--second) 0 12px, transparent 12px 18px); }
.update { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2.4vw, 28px); scroll-margin-top: calc(var(--header-h) + 24px); }
/* its block on the line: 24 px wide, centred on the dotted line */
.update::before { content: ""; position: absolute; left: calc(4px - var(--gut) - 3px); top: 22px; width: 18px; height: 18px; background: var(--second); border: 3px solid var(--ink); box-shadow: inset 0 -4px 0 var(--second-edge); }
.update.latest::before { background: var(--gold); box-shadow: inset 0 -4px 0 var(--gold-edge), 0 0 18px rgba(245, 192, 74, .5); }
.update .date { font: 600 14px/1 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.update h2 { font: 800 clamp(20px, .5vw + 18px, 24px)/1.25 var(--head); text-shadow: none; }
.update-shot { width: 100%; height: auto; border: 3px solid var(--ink); }
.changes { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.changes li { display: flex; align-items: flex-start; gap: 12px; font: 400 16px/1.55 var(--body); color: var(--soft-light); }

/* the home page's banner to the latest update */
.news { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; padding: 6px 14px 6px 6px; font: 700 15px/1.3 var(--head); color: var(--text); text-decoration: none; text-align: left; background: rgba(6, 13, 32, .72); border: 2px solid var(--second); }
.news:hover { color: var(--text); border-color: var(--gold); }
.news .chip { min-width: 0; margin: 0; }
@media (max-width: 619px) {
  .timeline { --gut: 36px; }
  .changes li { flex-direction: column; gap: 6px; }
}

/* ---------- inner pages: cards of facts, running text, commands, questions ---------- */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.info { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(20px, 2.4vw, 28px); }
.info p, .info li { font: 400 16px/1.6 var(--body); color: var(--soft); text-wrap: pretty; }
.prose { max-width: 780px; display: flex; flex-direction: column; gap: 16px; font: 400 17px/1.65 var(--body); color: var(--soft-light); text-wrap: pretty; }
.prose ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.prose li::marker { color: var(--gold); }
.prose b, .lead b { color: var(--text); }
code { font: 500 .95em/1.2 var(--pixel); color: var(--blue); background: var(--ink); padding: 2px 6px; overflow-wrap: anywhere; }
.row-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.cmds { margin: 0; padding: 8px clamp(16px, 2.4vw, 28px); display: grid; grid-template-columns: 1fr; }
.cmds > div { display: flex; flex-direction: column; gap: 6px; padding: 14px 0; border-bottom: 2px solid var(--second); }
.cmds > div:last-child { border-bottom: 0; }
.cmds dd { margin: 0; font: 400 16px/1.5 var(--body); color: var(--soft); }
@media (min-width: 720px) {
  .cmds > div { flex-direction: row; align-items: baseline; gap: 20px; }
  .cmds dt { flex: 0 0 300px; }
}
.faq { padding: 0; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px clamp(18px, 2.4vw, 26px); cursor: pointer; list-style: none; font: 800 18px/1.35 var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; padding-bottom: 3px; font: 600 20px/1 var(--pixel); color: var(--ink); background: var(--gold); border: 2px solid var(--ink); box-shadow: inset 0 -3px 0 var(--gold-edge); }
.faq[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--gold); }
.faq .answer { padding: 0 clamp(18px, 2.4vw, 26px) 22px; display: flex; flex-direction: column; gap: 12px; font: 400 16px/1.65 var(--body); color: var(--soft-light); }
.faqs { display: flex; flex-direction: column; gap: 16px; max-width: 880px; }
.table { width: 100%; border-collapse: collapse; font: 400 16px/1.5 var(--body); color: var(--soft-light); }
.table th, .table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 2px solid var(--second); }
.table th { font: 600 13px/1 var(--pixel); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.table td:first-child { font: 800 16px/1.4 var(--head); color: var(--text); white-space: nowrap; }
/* a table becomes stacked cards on a phone */
@media (max-width: 619px) {
  .table thead { display: none; }
  .table tr { display: block; padding: 12px 0; border-bottom: 2px solid var(--second); }
  .table td { display: block; padding: 4px 0; border: 0; white-space: normal; }
  .table td[data-label]::before { content: attr(data-label) " : "; font: 600 12px/1 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
  :lang(en) .table td[data-label]::before { content: attr(data-label) ": "; }
}
.rule-list { margin: 0; padding: clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px) clamp(20px, 2.4vw, 28px) clamp(44px, 4vw, 56px); display: flex; flex-direction: column; gap: 14px; max-width: 880px; font: 600 17px/1.55 var(--body); color: var(--text); }
.rule-list li::marker { font: 700 17px/1 var(--pixel); color: var(--gold); }

/* ---------- pages to come, team, creators ---------- */
.soon { max-width: 760px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(22px, 3vw, 36px); font: 400 17px/1.6 var(--body); color: var(--soft-light); }
.soon-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; font: 600 14px/1 var(--pixel); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--gold); border: 2px solid var(--ink); box-shadow: inset 0 -3px 0 var(--gold-edge); }
.soon-what { font: 800 clamp(20px, .6vw + 17px, 24px)/1.35 var(--head); color: var(--text); text-wrap: pretty; }
.soon .btn-big { flex: 0 1 auto; margin-top: 6px; }
.rank { font: 600 15px/1 var(--pixel); color: var(--rank); text-shadow: 2px 2px 0 var(--ink); }
.members { display: flex; flex-wrap: wrap; gap: 20px; }
.member { display: flex; align-items: center; gap: 18px; padding: 18px 24px 18px 18px; }
.member > span:last-child { display: flex; flex-direction: column; gap: 8px; }
.member b { font: 800 22px/1.2 var(--head); }
/* the head of the founder's skin: the face, with the hat layer on top */
.face { flex: none; width: 64px; height: 64px; border: 3px solid var(--ink); image-rendering: pixelated;
  background-image: url(assets/skin-joueur.png), url(assets/skin-joueur.png); background-size: 800% 800%; background-position: 71.429% 14.286%, 14.286% 14.286%; }
.kit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.kit-item { display: flex; flex-direction: column; }
.kit-preview { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; padding: 16px; border-bottom: 3px solid var(--ink);
  background: repeating-conic-gradient(#0F1F40 0 25%, #112347 0 50%) 0 0 / 24px 24px; }
.kit-preview { overflow: hidden; }
.kit-preview img { width: 100%; height: 100%; object-fit: contain; }
.kit-preview img[src$="-64.png"] { image-rendering: pixelated; }
.kit-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px 20px 22px; }
.kit-body .btn { margin-top: auto; }
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; }
.swatch { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 16px; background: var(--night); }
.swatch span { height: 56px; border: 3px solid var(--ink); }
.swatch b { font: 800 16px/1.2 var(--head); }
.swatch code { align-self: flex-start; }
.online.is-off i { background: var(--soft); box-shadow: none; }

/* ---------- legal pages (from the master text, src/markdown.mjs) ---------- */
.legal { max-width: 860px; }
.legal h3 { margin-top: 18px; font: 800 20px/1.3 var(--head); color: var(--text); }
.legal h3:first-child { margin-top: 0; }
.legal p, .legal li { overflow-wrap: anywhere; }
.legal .table { margin: 4px 0; font-size: 15px; }
.legal .table td:first-child { white-space: normal; }
