@font-face { font-family: "Oxanium"; src: url("/assets/fonts/oxanium.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/assets/fonts/caveat.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --night: #0b0b0e;
  --panel: #131318;
  --line: #26262e;
  --text: #f3f1f1;
  --muted: #a9a6ad;
  --red: #ff2a2a;
  --display: "Oxanium", "Eurostile", "Arial Narrow", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Caveat", "Bradley Hand", cursive;
  --wide: 78rem;
  --gutter: clamp(1.1rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 1.0625rem/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 30; background: var(--red); color: #fff; padding: 0.5rem 0.9rem; border-radius: 6px; }
.skip:focus { left: 0.5rem; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 2rem; padding: 0.8rem var(--gutter); background: rgba(11, 11, 14, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand img { width: 8.5rem; }
.top nav { display: flex; gap: clamp(1rem, 2.6vw, 2.2rem); margin-inline: auto; font: 500 0.98rem var(--display); letter-spacing: 0.04em; }
.top nav a { text-decoration: none; color: var(--muted); }
.top nav a:hover { color: #fff; }

.button { display: inline-block; padding: 0.95rem 1.6rem; background: var(--red); color: #fff; font: 700 0.95rem var(--display); letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; clip-path: polygon(0.7rem 0, 100% 0, 100% calc(100% - 0.7rem), calc(100% - 0.7rem) 100%, 0 100%, 0 0.7rem); transition: filter 0.15s, transform 0.15s; }
.button:hover { filter: brightness(1.15); transform: translateY(-2px); }
.button.small { padding: 0.65rem 1.1rem; font-size: 0.82rem; }
.button.ghost { background: none; color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); clip-path: none; border-radius: 4px; }
.button.ghost:hover { background: var(--c); color: #0b0b0e; filter: none; }

/* Hero: the words on the left, the bat in front of its moon on the right. */
.hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 1rem; max-width: var(--wide); margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--gutter) 0; }
.hero h1 { font: 800 clamp(2.5rem, 5.6vw, 4.6rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.hero h1 span { display: block; color: var(--red); }
.axes { margin-top: 1.2rem; font: 500 0.95rem var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.axes i { font-style: normal; color: var(--red); margin: 0 0.3em; }
.lead { margin: 1.4rem 0 2rem; max-width: 30rem; font-size: 1.15rem; color: #d6d3d8; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 4% 10% 22% 6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 42, 42, 0.32), transparent); animation: moon 6s ease-in-out infinite; }
.hero-art img { position: relative; width: 100%; }
@keyframes moon { 50% { opacity: 0.45; transform: scale(1.06); } }

/* the handwritten notes of the mockup */
.note { font: 600 clamp(1.5rem, 2.6vw, 2.1rem)/1.05 var(--hand); color: #fff; transform: rotate(-6deg); }
.hero .note { position: absolute; right: 2%; top: 6%; max-width: 6ch; }
.note::after { content: ""; display: block; width: 3.2rem; height: 3px; margin-top: 0.4rem; border-radius: 2px; background: var(--c, var(--red)); }

/* A world: number and name, words, mascot, links. Each one has its own colour and sky. */
.world { --c: var(--red); position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 0.8fr); align-items: center; gap: clamp(1.25rem, 3vw, 3rem); padding: clamp(3rem, 7vw, 5.5rem) max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))); border-top: 1px solid var(--line); background: radial-gradient(60rem 26rem at 55% 100%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%), var(--night); overflow: hidden; }
.world.lab { --c: #12d8fa; }
.world.hb { --c: #b06cff; }
.world.t66 { --c: #ff8a2a; }
.world.hz { --c: #ff6fb1; }
.world.varta { --c: #ff3b3b; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
.num { font: 600 0.9rem var(--display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.num b { color: var(--c); margin-inline-end: 0.9rem; padding-inline-end: 0.9rem; border-inline-end: 1px solid var(--line); font-weight: 700; }
.world h2 { margin-top: 0.9rem; font: 800 clamp(2.3rem, 4.6vw, 3.8rem)/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.tagline { margin: 0.5rem 0 1.1rem; font: 600 1rem var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c); }
.world-text > p:not(.num):not(.tagline):not(.soon) { color: #d6d3d8; max-width: 26rem; }
.world-text .button { margin-top: 1.6rem; }
.soon { margin-top: 1.6rem; display: inline-block; padding: 0.5rem 0.9rem; border: 1.5px solid var(--line); border-radius: 4px; font: 600 0.85rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.world-art img { width: 100%; margin: 0 auto; }
/* Heroes against villains: two pictures of the same size. The heroes lie on top and are cut
   at --pos; the range input covers the picture and moves the cut. */
.versus { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px #000; }
.versus img { width: 100%; border-radius: 0; box-shadow: none; }
.versus .over { position: absolute; inset: 0; height: 100%; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.versus .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--red); box-shadow: 0 0 14px var(--red); pointer-events: none; }
.versus .bar::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: #fff; font-size: 1.2rem; }
.versus .side { position: absolute; bottom: 0.8rem; padding: 0.3rem 0.7rem; border-radius: 4px; background: rgba(11, 11, 14, 0.8); font: 700 0.8rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none; }
.versus .heroes { left: 0.8rem; }
.versus .villains { right: 0.8rem; color: var(--red); }
.versus input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.versus:focus-within { outline: 2px solid #fff; outline-offset: 3px; }

.links { display: grid; gap: 0.15rem; padding: 0.9rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(11, 11, 14, 0.72); }
.links a { display: block; padding: 0.6rem 0.7rem; border-radius: 6px; text-decoration: none; font-weight: 600; }
.links a::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-inline-end: 0.7rem; background: var(--c); transform: rotate(45deg); }
.links a:hover { background: color-mix(in srgb, var(--c) 18%, transparent); }
.links a span { display: block; padding-inline-start: 1.2rem; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
/* an entry that has no page to go to yet */
.links li > span { display: block; padding: 0.6rem 0.7rem; font-weight: 600; }
.links li > span::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-inline-end: 0.7rem; background: var(--c); transform: rotate(45deg); }

/* Happyzilla: the badge is a picture; the moving parts are an SVG laid over it. */
.world-art.badge { position: relative; }
.world-art.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.hz-smoke { stroke-dasharray: 140 520; stroke-dashoffset: 140; opacity: 0; animation: hz-smoke 6s linear infinite; }
.hz-smoke.b { animation-delay: -3s; }
.hz-ember { transform-box: fill-box; transform-origin: center; animation: hz-ember 3.4s ease-in-out infinite; }
.hz-ring { animation: hz-ring 2.8s ease-in-out infinite; }
.hz-glint { transform-box: fill-box; transform-origin: center; animation: hz-glint 4.5s ease-in-out infinite; }
@keyframes hz-smoke { 0% { stroke-dashoffset: 140; opacity: 0; } 15% { opacity: 0.55; } 70% { opacity: 0.35; } 100% { stroke-dashoffset: -520; opacity: 0; } }
@keyframes hz-ember { 0%, 100% { opacity: 0.25; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes hz-ring { 0%, 100% { opacity: 0.1; } 50% { opacity: 0.9; } }
@keyframes hz-glint { 0%, 70%, 100% { opacity: 0; transform: scale(0.3) rotate(0deg); } 80% { opacity: 1; transform: scale(1.3) rotate(40deg); } 90% { opacity: 0; transform: scale(0.3) rotate(80deg); } }
.world .note { position: absolute; right: max(var(--gutter), calc((100% - var(--wide)) / 2 + var(--gutter))); top: 1.6rem; }

.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem 2rem; max-width: var(--wide); margin: 0 auto; padding: 2.2rem var(--gutter) 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.foot .mark { width: 4.5rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.6rem; font: 500 0.95rem var(--display); letter-spacing: 0.06em; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: #fff; }

@media (max-width: 62rem) {
  .world, .world.varta { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .world .links { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .world.varta .world-art { grid-column: 1 / -1; }
  .world .note { display: none; }
}
@media (max-width: 46rem) {
  .top nav { display: none; }
  .top .button { margin-inline-start: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-art { order: -1; }
  .world, .world.varta { grid-template-columns: minmax(0, 1fr); }
  .world-art { order: -1; max-width: 22rem; margin-inline: auto; width: 100%; }
  .world.lab .world-art { max-width: 28rem; }
  .world-art.wide { max-width: none; }
  .world .links { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}
