/* Brickbrag – the front page (index.html, since 2026-10-22): building and exploring side by side. Building on
   calm light pages, exploring in the night blue of the live page – two doors at the top, one for each. Sunshine yellow
   is the one button colour. One family: Bricolage Grotesque (self-hosted, OFL). Plain CSS, no build step. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('../assets/fonts/bricolage-2.woff2') format('woff2');
  font-weight: 400 800; font-stretch: 100%; font-display: swap;
}
:root {
  --cloud: #f3f6fb;
  --line: rgba(243, 246, 251, .16);
  --night: #13203a;     /* brand: the top, exploring, the end */
  --deep: #0c1628;
  --sun: #ffc81f;       /* the one button colour */
  --sun-ink: #2a1d00;
  --page: #eef2f7;      /* building: a pale page */
  --paper: #ffffff;
  --ink: #13203a;
  --ink-2: #4a5874;
  --rule: #d3dbe7;
  --mist: #9aa9c2;
  --soft: #d6deeb;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  font-family: 'Bricolage Grotesque', system-ui, sans-serif;
  font-optical-sizing: auto;
}
* { box-sizing: border-box; }
html { background: var(--night); color: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; font-size: 18px; line-height: 1.55; overflow-x: hidden; background: var(--page); }
img, video { display: block; max-width: 100%; height: auto; }
video { width: 100%; object-fit: cover; background: #0b1424; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.015em; }
p, figure { margin: 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 30; background: var(--sun); color: var(--sun-ink); padding: 8px 12px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 6px; background: var(--sun); color: var(--sun-ink);
  font-weight: 800; font-size: 19px; text-decoration: none; box-shadow: 0 4px 0 #c99500; transition: transform .08s, box-shadow .08s; }
.btn:hover { background: #ffd23f; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #c99500; } /* it clicks in like a brick */
.btn-play { flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 24px 13px; line-height: 1.15; }
.btn-play small { font-size: 14px; font-weight: 600; opacity: .78; }
.again .btn-play { align-items: center; }
.btn-small { gap: 0; padding: 8px 14px; font-size: 15px; box-shadow: 0 3px 0 #c99500; white-space: nowrap; }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 12px var(--gutter);
  background: var(--night); color: #fff; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; }
.logo img { width: 32px; flex: none; }
.bar nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.bar nav a { text-decoration: none; color: var(--soft); }
.bar nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- hero: the words, then two doors – build or explore ---------- */
.hero { background: var(--night); color: #fff; padding: clamp(32px, 5vw, 72px) var(--gutter) clamp(40px, 5vw, 72px); }
.hero-text, .doors { max-width: var(--max); margin: 0 auto; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; letter-spacing: -0.025em; max-width: 14em; }
.lead { margin-top: 20px; font-size: clamp(18px, 1.5vw, 21px); color: var(--soft); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 28px; }
.live { display: flex; align-items: center; gap: 8px; font-size: 15px; color: #c3cde0; }
.live .dot { width: 9px; height: 9px; border-radius: 50%; background: #8291ab; flex: none; }
.live[data-state='online'] .dot { background: #46c25a; box-shadow: 0 0 0 4px rgba(70, 194, 90, .18); }
.live[data-state='offline'] .dot { background: #d9352b; }
.live b { color: #fff; }
.facts { margin-top: 16px; font-size: 14px; color: var(--mist); }
.doors { margin-top: clamp(32px, 4vw, 52px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.door { position: relative; display: block; border-radius: 12px; overflow: hidden; text-decoration: none; aspect-ratio: 16 / 10; background: var(--deep); }
.door picture, .door img, .door video { width: 100%; height: 100%; object-fit: cover; }
.door-words { position: absolute; inset: auto 0 0 0; padding: 56px 20px 18px; display: grid; gap: 4px;
  background: linear-gradient(to top, rgba(12, 22, 40, .88), rgba(12, 22, 40, 0)); color: #fff; }
.door-words b { font-size: clamp(22px, 2.2vw, 30px); font-weight: 800; letter-spacing: -0.015em; }
.door-words b::after { content: ' ↓'; color: var(--sun); }
.door-words span { font-size: 15px; color: var(--soft); max-width: 30em; }
.door:hover .door-words b { text-decoration: underline; text-decoration-color: var(--sun); text-underline-offset: 5px; }

/* ---------- section heads ---------- */
.sec-head h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 800; }
.sec-head p { margin-top: 10px; color: var(--ink-2); max-width: 40em; }

/* ---------- build: four cards, the brick window and the colors, the car ---------- */
.build, .made { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 6vw, 80px) var(--gutter) 0; }
.cards { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 8px 8px 20px; min-width: 0; }
.card > picture img, .card > video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 7px; }
.card h3 { margin: 16px 12px 0; font-size: clamp(22px, 2vw, 27px); font-weight: 800; }
.card p { margin: 8px 12px 0; color: var(--ink-2); max-width: 32em; }
.pair { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pair figure { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 8px; min-width: 0; }
.pair img { width: 100%; border-radius: 7px; }
.pair figcaption { padding: 10px 6px 4px; font-weight: 700; }
.card-wide { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 8px 24px; align-items: center; padding-bottom: 8px; }
.card-wide > div { padding: 12px 12px 12px 0; }
.card-wide h3 { margin: 0; }
.card-wide p { margin: 10px 0 0; }
.soon { display: inline-block; vertical-align: 0.25em; margin-left: 4px; padding: 3px 8px; border-radius: 4px; background: var(--sun);
  color: var(--sun-ink); font-size: 13px; font-weight: 800; letter-spacing: 0; white-space: nowrap; }

/* ---------- made by players ---------- */
.made { padding-bottom: clamp(56px, 7vw, 96px); }
.made-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.made-grid .made-big { grid-column: 1 / -1; }
.made-grid img { width: 100%; border-radius: 12px; }

/* ---------- explore: the live page's night world ---------- */
.explore { background: var(--night); color: #fff; padding: clamp(56px, 7vw, 96px) var(--gutter); }
.explore > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.explore .sec-head p { color: var(--soft); }
.explore-big { margin-top: 28px; position: relative; border-radius: 12px; overflow: hidden; }
.explore-big video { aspect-ratio: 16 / 9; }
.explore-big figcaption { position: absolute; inset: auto 0 0 0; padding: 60px 22px 20px; color: var(--soft); font-size: 16px;
  background: linear-gradient(to top, rgba(12, 22, 40, .85), rgba(12, 22, 40, 0)); }
.explore-big figcaption b { display: block; color: #fff; font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.015em; margin-bottom: 4px; }
.tiles { list-style: none; margin-top: 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
.tiles li { min-width: 0; }
.tiles video { aspect-ratio: 16 / 9; border-radius: 10px; }
.tiles h3 { margin-top: 14px; font-size: 21px; font-weight: 800; }
.tiles p { margin-top: 6px; font-size: 15px; color: var(--soft); }

.wild { list-style: none; margin-top: 36px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.wild li { min-width: 0; }
.wild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.wild span { display: block; margin-top: 8px; font-size: 15px; font-weight: 700; color: var(--soft); }

/* ---------- sponsors (written in on the server every 10 minutes: deploy/render-sponsors.py) ---------- */
.sponsors-home { background: var(--night); color: #fff; padding: 0 var(--gutter) clamp(56px, 7vw, 96px); }
.sponsors-home > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.sponsors-home .sec-head { padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.sponsors-home .sec-head p { color: var(--soft); }
.sponsors-home .sp-tiers { margin-top: 28px; }
/* ---------- our sponsors: the bigger the space, the bigger and higher (User 2026-10-11) ---------- */
.sponsors-home .sec-head a { color: var(--sun); }
.sp-tiers { display: flex; flex-direction: column; gap: 28px; }
.sp-tier h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--mist); }
.sp-row { display: grid; gap: 14px; }
.sp-tier-main .sp-row { grid-template-columns: 1fr; }
.sp-tier-house .sp-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-tier-kiosk .sp-row, .sp-tier-bus .sp-row { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sp-tier-small .sp-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-card { display: flex; align-items: center; gap: 14px; border-radius: 10px; text-decoration: none; background: var(--bg, #fff); color: var(--ink, #14171c);
  transition: transform .12s ease, box-shadow .12s ease; }
.sp-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); }
.sp-card img, .sp-initial { flex: none; border-radius: 22%; background: #fff; object-fit: contain; }
.sp-initial { display: grid; place-items: center; background: var(--sun); color: var(--sun-ink); font-weight: 800; }
.sp-text { display: flex; flex-direction: column; min-width: 0; }
.sp-text b { font-weight: 800; letter-spacing: -.01em; line-height: 1.05; overflow-wrap: anywhere; }
.sp-text span { opacity: .85; line-height: 1.3; }
.sp-text small { opacity: .6; font-size: 13px; margin-top: 4px; }
.sp-main { padding: clamp(22px, 3vw, 36px); gap: clamp(18px, 2.5vw, 30px); min-height: 160px; }
.sp-main img, .sp-main .sp-initial { padding: 8px; }
.sp-main .sp-text b { font-size: clamp(32px, 4.4vw, 56px); font-variation-settings: 'wdth' 100; }
.sp-main .sp-text span { font-size: clamp(17px, 1.6vw, 22px); margin-top: 6px; }
.sp-house { padding: 18px; min-height: 110px; }
.sp-house img, .sp-house .sp-initial { padding: 5px; }
.sp-house .sp-text b { font-size: 22px; }
.sp-house .sp-text span { font-size: 14px; margin-top: 3px; }
.sp-kiosk, .sp-bus { padding: 12px 14px; }
.sp-kiosk img, .sp-kiosk .sp-initial, .sp-bus img, .sp-bus .sp-initial { padding: 3px; }
.sp-kiosk .sp-text b, .sp-bus .sp-text b { font-size: 17px; }
.sp-small { padding: 6px 12px 6px 6px; gap: 8px; border-radius: 8px; font-size: 14px; }
.sp-small img, .sp-small .sp-initial { padding: 2px; }
/* a sponsor's own picture (the one they made for the game's panels): it is the card, cut to fit, never stretched */
.sp-own { padding: 0; overflow: hidden; min-height: 0; }
.sp-card.sp-own img { display: block; width: 100%; height: 100%; max-height: 220px; aspect-ratio: auto; object-fit: cover; padding: 0; border-radius: 0; background: none; }
.sp-main.sp-own img { max-height: 360px; }
.sp-own-small img { height: 28px; width: auto; min-width: 28px; max-width: 84px; object-fit: cover; padding: 0; border-radius: 5px; }
.sp-free { background: transparent; color: var(--mist); border: 2px dashed var(--line); flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.sp-free b { color: var(--cloud); font-weight: 800; }
.sp-free:hover { border-color: var(--sun); color: var(--cloud); box-shadow: none; }
.sp-main.sp-free b { font-size: clamp(26px, 3vw, 40px); letter-spacing: -.01em; font-variation-settings: 'wdth' 100; }
.sp-main.sp-free span { font-size: 17px; }
.sp-more { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 8px; border: 2px dashed var(--line); color: var(--mist); text-decoration: none; font-size: 14px; }
.sp-more:hover { border-color: var(--sun); color: var(--cloud); }
.sp-tier-past { margin-top: 8px; padding-top: 22px; border-top: 1px solid var(--line); }
.sp-past { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sp-past-item { display: inline-flex; align-items: center; gap: 8px; color: var(--mist); text-decoration: none; font-size: 14px; }
.sp-past-item:hover { color: var(--cloud); }
.sp-past-item img, .sp-past-item .sp-initial { border-radius: 5px; background: #fff; padding: 1px; opacity: .85; font-size: 11px; }
@media (max-width: 900px) { .sp-tier-house .sp-row, .sp-tier-kiosk .sp-row, .sp-tier-bus .sp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- the end ---------- */
.again { background: var(--deep); color: #fff; text-align: center; padding: clamp(56px, 7vw, 96px) var(--gutter); }
.again h2 { font-size: clamp(32px, 3.8vw, 52px); font-weight: 800; margin-bottom: 28px; }
footer { background: var(--deep); color: var(--mist); font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center;
  padding: 0 var(--gutter) 40px; }
footer .legal-links { display: flex; gap: 16px; }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .bar nav { display: none; }
  .bar .btn-small { margin-left: auto; }
  .bar-extra { display: none; }
  .card-wide { grid-template-columns: minmax(0, 1fr); padding-bottom: 20px; }
  .card-wide > div { padding: 8px 12px 0; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .wild { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .doors, .cards, .pair, .made-grid { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; justify-content: center; }
  .btn-play { align-items: center; }
  .bar .btn-small { width: auto; }
  .explore-big figcaption { position: static; padding: 12px 0 0; background: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
