/* Machine Native – terminal / CRT look. No external fonts, no external requests. */
:root {
  --hdr: 61px; /* sticky header height */
  --bg: #020a04;
  --panel: #04120a;
  --g: #9bf5a0;
  --g-dim: #5fbf6a;
  --g-faint: rgba(155, 245, 160, 0.18);
  --glow: 0 0 14px rgba(155, 245, 160, 0.45);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --display: "Arial Black", "Helvetica Neue", Impact, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% 0%, #0b2a14 0%, var(--bg) 60%) fixed;
  color: var(--g);
  font-family: var(--mono);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::after { /* scanlines */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,.22) 3px);
  mix-blend-mode: multiply;
}
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px dashed var(--g); outline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--g); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(2,10,4,.88); backdrop-filter: blur(6px); border-bottom: 1px solid var(--g-faint); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 14px; }
.brand img { width: 42px; height: 42px; filter: drop-shadow(0 0 8px rgba(155,245,160,.45)); }
.nav { display: flex; gap: 6px 18px; flex-wrap: wrap; margin-left: auto; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.nav a { text-decoration: none; opacity: .85; }
.nav a:hover { opacity: 1; text-shadow: var(--glow); }
.lang { border: 1px solid var(--g); padding: 1px 8px; }
.nav .nav-cta { opacity: 1; background: var(--g); color: #02150a; padding: 1px 10px; font-weight: 700; transition: background .2s, color .2s; }
.nav .nav-cta:hover { background: #fff; color: #000; text-shadow: none; }

/* windows */
section { padding: clamp(40px, 7vw, 88px) 0; }
.win {
  background: var(--panel);
  border: 1px solid var(--g);
  box-shadow: var(--glow), inset 0 0 40px rgba(155,245,160,.05);
  margin: 0 auto;
}
.win-bar {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--g); padding: 6px 14px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
}
.win-bar .ctl { display: flex; gap: 10px; opacity: .8; font-size: 13px; }
.win-body { padding: clamp(18px, 3.5vw, 36px); }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--g-dim); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: .98; margin: 0 0 .5em; letter-spacing: -.01em; text-shadow: var(--glow); }
h1 { font-size: clamp(40px, 9vw, 112px); text-align: center; }
h2 { font-size: clamp(28px, 5vw, 56px); }
h3 { font-size: clamp(18px, 2.4vw, 24px); line-height: 1.15; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: clamp(16px, 2vw, 20px); }
.center { text-align: center; }
.center p { margin-left: auto; margin-right: auto; }
.tag { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.center .btns { justify-content: center; }
.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-transform: uppercase; letter-spacing: .08em;
  font: inherit; font-weight: 700; font-size: 15px; padding: 12px 22px; border: 1px solid var(--g);
  background: var(--g); color: #02150a;
  transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s;
}
.btn::before { content: "> "; }
.btn:hover { background: #fff; border-color: #fff; color: #000; transform: translateY(-3px); box-shadow: var(--glow); }
.btn.ghost { background: transparent; color: var(--g); }
.btn.ghost:hover { background: var(--g-faint); color: #fff; }
.btn[disabled] { opacity: .5; cursor: wait; }
.btn.icon { display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; }
.btn.icon svg { display: block; animation: igGlow 2.8s ease-in-out infinite; }
/* two pixel sparkles that twinkle at the icon's corners */
.btn.icon { position: relative; overflow: visible; }
.btn.icon::before, .btn.icon::after {
  content: ""; position: absolute; width: 4px; height: 4px; background: #fff; pointer-events: none;
  box-shadow: 0 0 6px 1px var(--g), 0 0 12px 2px rgba(155,245,160,.6); opacity: 0; transform: scale(.3);
  animation: twinkle 2.8s ease-in-out infinite;
}
.btn.icon::before { top: -3px; right: -3px; }
.btn.icon::after { bottom: -3px; left: -3px; animation-delay: 1.4s; }
@keyframes igGlow { 0%, 100% { filter: drop-shadow(0 0 0 transparent); } 50% { filter: drop-shadow(0 0 6px rgba(155,245,160,.9)); } }
@keyframes twinkle { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 80% { opacity: 1; transform: scale(1.4) rotate(45deg); } 90% { opacity: .5; transform: scale(.8) rotate(90deg); } }

/* hero */
/* The hero fills exactly one screen (window + press logos), centred; sizes follow the screen height. */
.hero { min-height: calc(100vh - var(--hdr)); min-height: calc(100svh - var(--hdr)); display: flex; flex-direction: column; justify-content: center; padding: clamp(12px, 3vh, 40px) 0; }
.hero .win-body { padding-top: clamp(14px, 3.5vh, 36px); padding-bottom: clamp(14px, 3.5vh, 36px); }
.hero h1.mark { margin: 0 auto clamp(10px, 2.5vh, 24px); line-height: 0; text-shadow: none; animation: flicker 7s infinite; }
/* Full logo (assets/logo-full.svg), tinted green via mask like the press logos; width follows the screen height so the hero fits. */
.hero .full-logo {
  display: block; margin: 0 auto; width: clamp(240px, min(82vw, 88vh), 760px); max-width: 100%; aspect-ratio: 658 / 118;
  background: var(--g); -webkit-mask: url(/assets/logo-full.svg) center / contain no-repeat; mask: url(/assets/logo-full.svg) center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(155,245,160,.5));
  opacity: 0; animation: logoIn .7s cubic-bezier(.2, 1.2, .4, 1) .05s forwards, logoGlow 3.2s ease-in-out 1s infinite;
}
@keyframes logoIn { from { opacity: 0; transform: translateY(-24px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes logoGlow { 0%, 100% { filter: drop-shadow(0 0 8px rgba(155,245,160,.4)); } 50% { filter: drop-shadow(0 0 22px rgba(155,245,160,.85)); } }
.hero .sub { text-align: center; margin: 0 auto 8px; font-size: clamp(14px, 1.8vw, 18px); text-transform: uppercase; letter-spacing: .12em; }
.hero .lede { text-align: center; margin: clamp(4px, 1.2vh, 12px) auto 0; font-size: clamp(15px, min(2vw, 2.7vh), 20px); }
.hero .btns { justify-content: center; margin-top: clamp(12px, 3vh, 24px); }
.hero .sub, .hero .lede, .hero .btns { opacity: 0; animation: fadeUp .5s forwards; }
.hero .sub { animation-delay: .35s; }
.hero .lede { animation-delay: .6s; }
.hero .btns { animation-delay: .8s; }
.dot { display: inline-block; width: 8px; height: 8px; flex: none; background: var(--g); box-shadow: var(--glow); animation: blink 1.1s steps(2, start) infinite; }
.flicker { animation: flicker 7s infinite; }
@keyframes flicker { 0%, 96%, 100% { opacity: 1 } 97% { opacity: .82 } 98% { opacity: 1 } 99% { opacity: .9 } }
@keyframes drop { to { opacity: 1; transform: translateY(0); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes glow { 0%, 100% { text-shadow: 0 0 14px rgba(155,245,160,.45); } 50% { text-shadow: 0 0 30px rgba(155,245,160,.9); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* as seen on */
.seen { text-align: center; margin: clamp(16px, 4vh, 48px) auto 0; max-width: 1180px; width: 100%; }
.seen p { margin-left: auto; margin-right: auto; }
.seen .eyebrow { margin-bottom: clamp(10px, 2vh, 18px); }
.seen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 22px clamp(16px, 1.8vw, 24px); }
.seen li { opacity: 0; animation: fadeUp .5s forwards; }
.seen li:nth-child(1) { animation-delay: 1s; } .seen li:nth-child(2) { animation-delay: 1.08s; } .seen li:nth-child(3) { animation-delay: 1.16s; }
.seen li:nth-child(4) { animation-delay: 1.24s; } .seen li:nth-child(5) { animation-delay: 1.32s; } .seen li:nth-child(6) { animation-delay: 1.4s; } .seen li:nth-child(7) { animation-delay: 1.48s; }
.seen a, .seen li > span { display: block; padding: 4px; }
.logo {
  display: block; height: var(--h); aspect-ratio: var(--r); max-width: 42vw; background: var(--g); opacity: .8;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
  transition: background .2s, opacity .2s, filter .2s;
}
.seen a:hover .logo, .seen a:focus-visible .logo { background: #fff; opacity: 1; filter: drop-shadow(0 0 8px rgba(155,245,160,.6)); }
.seen-note { margin: 16px auto 0; font-size: 12px; color: var(--g-dim); letter-spacing: .06em; }

/* floating pixels (created by app.js) */
.px { position: fixed; bottom: -10px; width: 4px; height: 4px; background: var(--g); box-shadow: 0 0 8px var(--g); opacity: 0; pointer-events: none; z-index: 0; animation: rise linear infinite; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: .5; } 90% { opacity: .35; } 100% { transform: translateY(-110vh); opacity: 0; } }
main, footer { position: relative; z-index: 1; }

/* scroll reveal (only with JS, see the inline script in <head>) */
.js section:not(.hero) .win { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.js section:not(.hero) .win.in { opacity: 1; transform: none; }

/* fight */
.grid { display: grid; gap: clamp(16px, 3vw, 32px); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.facts { list-style: none; padding: 0; margin: 0 0 20px; border-top: 1px dashed var(--g-dim); }
.facts li { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--g-dim); }
.facts b { flex: 0 0 130px; font-weight: 400; color: var(--g-dim); text-transform: uppercase; font-size: 12px; letter-spacing: .1em; padding-top: 3px; }
.event-side { display: flex; flex-direction: column; }
.sponsors { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; flex: 1; margin: 8px 0 0; } /* fills the column to the right and down to the bottom of the text */
.sponsors .sponsor { justify-content: center; container-type: size; }
.sponsors .sponsor:first-child { grid-column: 1 / -1; min-height: 80px; } /* MYBOTSHOP spans the full width above the two logos */
/* logos (and the MYBOTSHOP name) grow and shrink with their box: as wide as fits, capped by the box height */
.sponsor .logo { opacity: 1; width: min(72cqw, 62cqh * var(--r)); height: auto; max-width: none; }
a.sponsor:hover .logo, a.sponsor:focus-visible .logo { background: #fff; }
.sponsor { display: flex; align-items: center; min-height: 46px; text-decoration: none; border: 1px solid var(--g); padding: 10px 18px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.card { border: 1px solid var(--g-dim); padding: 20px; background: rgba(155,245,160,.03); }
.card .n { color: var(--g-dim); font-size: 13px; letter-spacing: .12em; }
.note { font-size: 13px; color: var(--g-dim); margin-top: 14px; }

/* next event signup */
.next { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); align-items: start; margin-top: clamp(24px, 4vw, 40px); padding: clamp(16px, 3vw, 28px); border: 1px dashed var(--g); background: rgba(155,245,160,.04); }
.next h3 { display: flex; align-items: center; gap: 12px; }

/* join choices */
.choices { display: grid; gap: 10px; margin-top: 18px; }
.choice { display: grid; gap: 2px; text-decoration: none; border: 1px solid var(--g-dim); padding: 14px 16px; transition: border-color .2s, background .2s, transform .15s; }
.choice b { text-transform: uppercase; letter-spacing: .06em; }
.choice b::before { content: "> "; color: var(--g-dim); }
.choice span { font-size: 14px; color: var(--g-dim); }
.choice:hover, .choice.on { border-color: var(--g); background: var(--g-faint); color: var(--g); transform: translateX(4px); }

/* merch */
.merch-img { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.merch-img img { border: 1px solid var(--g-dim); background: #ddd; width: 100%; height: auto; }

/* forms */
form { display: grid; gap: 14px; max-width: 560px; }
label { display: grid; gap: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
input, select, textarea {
  font: inherit; font-size: 16px; color: var(--g); background: #010703; border: 1px solid var(--g);
  padding: 10px 12px; border-radius: 0; width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--g-dim); opacity: .7; }
.check { display: flex; gap: 10px; align-items: flex-start; text-transform: none; letter-spacing: 0; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--g); }
.hp { position: absolute; left: -5000px; }
.status { min-height: 1.5em; font-size: 14px; margin: 0; }
.status.err { color: #ff9b9b; }

/* press */
.factbox { border: 1px solid var(--g); padding: clamp(16px, 3vw, 24px); background: rgba(155,245,160,.04); }
.factbox p:last-child { margin-bottom: 0; }
.contact .btns { margin-top: 8px; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 12px 0 4px; }
.photo { display: grid; gap: 8px; text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.photo img, .photo .ph { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 30%; border: 1px solid var(--g-dim); transition: border-color .2s, box-shadow .2s; }
.photo:hover img { border-color: var(--g); box-shadow: var(--glow); }
.photo .ph { display: grid; place-items: center; border-style: dashed; color: var(--g-dim); font-size: 12px; text-transform: none; letter-spacing: 0;
  background: repeating-linear-gradient(135deg, rgba(155,245,160,.05) 0 10px, transparent 10px 20px); }
.photo.pending span { color: var(--g-dim); }
.dl { display: flex; flex-wrap: wrap; gap: 16px; margin: 12px 0 24px; }
.dl a { display: block; text-align: center; text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.dl img { width: 96px; height: 96px; padding: 14px; border: 1px solid var(--g-dim); margin-bottom: 6px; }
.dl .light img { background: #fff; }
.dl .dark img { background: #000; }
details { border-top: 1px dashed var(--g-dim); padding: 12px 0; }
details:last-of-type { border-bottom: 1px dashed var(--g-dim); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }
.outlets { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 6px 0 22px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* footer */
footer { border-top: 1px solid var(--g-faint); padding: 40px 0 56px; font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: flex-start; }
footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer img { width: 44px; height: 44px; margin-bottom: 8px; }

/* legal pages */
.legal { padding: 48px 0 80px; }
.legal h1 { text-align: left; font-size: clamp(30px, 6vw, 56px); }
.legal h2 { font-size: clamp(18px, 2.6vw, 26px); margin-top: 1.8em; }
.legal p, .legal li { max-width: 78ch; }

@media (max-width: 820px) {
  /* phones: header keeps brand, language and CTA so the hero (with press logos) fits on screen */
  :root { --hdr: 57px; }
  .site-header .wrap { flex-wrap: nowrap; min-height: 56px; }
  .nav { flex-wrap: nowrap; }
  .nav .nl { display: none; }
  .hero .lede { font-size: 14px; line-height: 1.55; }
  .hero .btns { margin-top: 14px; gap: 10px; }
  .hero .btn { padding: 10px 18px; }
  .seen ul { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px 8px; justify-items: center; align-items: center; }
  .seen li { grid-column: span 2; min-width: 0; max-width: 100%; }
  .seen li:nth-child(5) { grid-column: 2 / span 2; } /* centre the 3 logos of the second row */
  .seen .logo { height: calc(var(--h) * .7); max-width: 100%; }
  .g2, .g3, .next { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr 1fr; }
  .facts li { flex-direction: column; gap: 0; }
  .facts b { flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition: none !important; }
  .hero .full-logo { opacity: 1; transform: none; }
  .js section:not(.hero) .win { opacity: 1; transform: none; }
  .px { display: none !important; }
}
