/* The game's comic look on the web: ink outlines, rays, halftone, slanted panels. Colours and letters are the game's. */
@font-face { font-family: Bungee; src: url(fonts/bungee.woff) format("woff"); font-display: swap; }
@font-face { font-family: Rubik; src: url(fonts/rubik.woff) format("woff"); font-weight: 300 900; font-display: swap; }
:root { --ink: #1b0c2a; --plum: #2c1247; --violet: #4d1c84; --yellow: #ffd23f; --amber: #ff9f1c; --red: #ff4d6d; --cream: #fff6e0; --teal: #0e8f86; --blue: #2f86ea; --pad: clamp(20px, 5vw, 72px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 clamp(17px, 1.1vw + 13px, 20px)/1.55 Rubik, system-ui, sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, .btn, .mark { font-family: Bungee, Rubik, sans-serif; font-weight: 400; line-height: 1.04; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(32px, 5.4vw, 68px); text-transform: uppercase; }
:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 9; background: var(--yellow); color: var(--ink); padding: 10px 14px; }
mark { background: var(--yellow); color: var(--ink); padding: 0 .3em; border-radius: 4px; font-weight: 600; }
.draft { margin: 0; padding: 8px var(--pad); background: var(--yellow); color: var(--ink); font-size: 15px; font-weight: 500; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); background: var(--ink); }
.mark { display: flex; align-items: center; gap: 12px; text-decoration: none; text-transform: uppercase; font-size: 18px; }
.mark img { border-radius: 10px; }
.bar nav { display: flex; gap: 8px; }
.bar nav a { text-decoration: none; font-weight: 500; font-size: 16px; padding: 10px 12px; border-radius: 10px; }
.bar nav a:hover { background: var(--violet); }
.lang { border: 2px solid var(--violet); }
@media (max-width: 480px) { .mark span { display: none; } }

.btn { display: inline-block; font-size: clamp(16px, 1.4vw + 8px, 22px); text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--yellow); border: 4px solid var(--ink); border-radius: 16px; padding: .72em 1em .66em; box-shadow: 0 6px 0 var(--ink); transition: transform .12s, box-shadow .12s; }
a.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 var(--ink); } a.btn:active { transform: translateY(6px); box-shadow: none; }
.btn.soon { background: var(--cream); } .btn.soon + .btn.soon { background: transparent; color: var(--ink); box-shadow: none; border-style: dashed; }
.stores { display: flex; flex-wrap: wrap; gap: 14px; }

/* the first screen */
.hero { position: relative; isolation: isolate; overflow: hidden; color: var(--ink); background: var(--amber); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); align-items: center; gap: 12px; padding: 24px var(--pad) 0; min-height: min(860px, calc(100svh - 70px)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 4vw), 0 100%); }
.hero::before { content: ""; position: absolute; inset: -20%; z-index: -2; background: radial-gradient(circle at 66% 50%, #fff3c4 0, rgba(255, 236, 150, 0) 34%), repeating-conic-gradient(from 4deg at 66% 50%, #ffb41f 0 9deg, #ffd24a 9deg 18deg); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle, rgba(200, 40, 40, .26) 27%, transparent 29%) 0 0 / 22px 22px; mask: linear-gradient(200deg, transparent 52%, #000 100%); -webkit-mask: linear-gradient(200deg, transparent 52%, #000 100%); }
.hero .logo { width: min(100%, 640px); margin-left: -2%; }
.hero .lead { font-size: clamp(20px, 1.5vw + 12px, 30px); line-height: 1.32; font-weight: 600; max-width: 24em; margin: 6px 0 26px; }
.hero .rider { align-self: end; justify-self: center; width: min(100%, 690px); margin-bottom: 0; filter: drop-shadow(0 0 0 var(--ink)) drop-shadow(5px 0 0 var(--ink)) drop-shadow(-5px 0 0 var(--ink)) drop-shadow(0 -5px 0 var(--ink)); }
.hero .say { padding-bottom: 6vw; }
@media (max-width: 800px) {
	.hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 8px; }
	.hero::before { background: radial-gradient(circle at 50% 72%, #fff3c4 0, rgba(255, 236, 150, 0) 34%), repeating-conic-gradient(from 4deg at 50% 72%, #ffb41f 0 9deg, #ffd24a 9deg 18deg); }
	.hero .say { padding-bottom: 0; } .hero .rider { width: min(92%, 460px); margin-bottom: 0; }
}

section.part { padding: clamp(56px, 8vw, 120px) var(--pad); }
.part > .intro { max-width: 46em; } .part > .intro p { margin: 14px 0 0; max-width: 38em; }

/* how it is played: a strip of three panels */
.moves { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: clamp(28px, 4vw, 56px) 0 0; padding: 0; list-style: none; }
.moves li { color: var(--ink); border: 5px solid var(--ink); box-shadow: 0 0 0 4px var(--cream); border-radius: 22px; padding: 24px 24px 28px; position: relative; overflow: hidden; }
.moves li:nth-child(1) { background: #ffd95c; } .moves li:nth-child(2) { background: #ff7c94; } .moves li:nth-child(3) { background: #5fd6c8; }
.moves h3 { font-size: clamp(28px, 3.2vw, 46px); text-transform: uppercase; }
.moves p { margin: 10px 0 0; font-weight: 500; }
.moves .draw { height: 130px; margin: 0 0 18px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.moves .draw img { width: min(100%, 330px); } .moves svg { width: 88px; height: 88px; overflow: visible; }
.moves li:nth-child(2) svg:nth-child(1) { transform: rotate(-14deg); } .moves li:nth-child(2) svg:nth-child(3) { transform: rotate(8deg); } .moves li:nth-child(3) svg:first-child { width: 128px; height: 128px; } .moves li:nth-child(3) svg:last-child { width: 70px; height: 70px; margin-left: -62px; transform: rotate(9deg); }
@media (max-width: 860px) { .moves { grid-template-columns: 1fr; } }

/* the cities: a strip to push along */
section.cities { background: var(--teal); color: #fff; padding-right: 0; padding-left: 0; clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%); }
.cities .intro { padding: 0 var(--pad); max-width: none; } .cities .intro p { max-width: 40em; }
.strip { list-style: none; display: flex; gap: 16px; margin: 36px 0 0; padding: 8px var(--pad) 22px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: var(--pad); scrollbar-color: var(--cream) transparent; }
.strip li { flex: 0 0 min(300px, 72vw); scroll-snap-align: start; background: var(--ink); border: 4px solid var(--ink); border-radius: 16px; overflow: hidden; }
.strip b { display: block; font: 400 22px/1.1 Bungee, sans-serif; text-transform: uppercase; padding: 14px 14px 4px; color: var(--yellow); }
.strip span { display: block; padding: 0 14px 16px; font-size: 16px; line-height: 1.4; }

/* the rivals */
.gang { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); margin: clamp(28px, 4vw, 52px) 0 0; padding: 0; }
.gang button { all: unset; box-sizing: border-box; display: flex; flex-direction: column; width: 100%; height: 100%; cursor: pointer; position: relative; border: 4px solid var(--ink); border-radius: 18px; background: var(--c); box-shadow: 0 0 0 3px var(--cream); transition: transform .15s; -webkit-tap-highlight-color: transparent; }
.gang button:focus-visible { outline: 4px solid var(--blue); outline-offset: 6px; }
.gang button > img { width: 100%; border-radius: 12px 12px 0 0; background: radial-gradient(circle at 50% 46%, rgba(255, 255, 255, .5), transparent 58%); }
.gang .who { display: grid; align-items: center; background: var(--cream); color: var(--ink); border-top: 4px solid var(--ink); padding: 14px 16px 16px; border-radius: 0 0 13px 13px; flex: 1; font-size: clamp(16px, 1.25vw, 19px); font-weight: 600; line-height: 1.35; text-wrap: balance; }
.gang button:hover { transform: rotate(-1deg) translateY(-4px); }
.bang { position: absolute; left: 50%; top: 34%; font: 400 clamp(34px, 4vw, 58px)/1 Bungee, sans-serif; color: var(--yellow); -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; pointer-events: none; transform: translate(-50%, -50%) rotate(-8deg); animation: bang .7s cubic-bezier(.2, 1.6, .4, 1) forwards; }
.hit > img { animation: hit .45s; }
@keyframes bang { 0% { scale: .2; opacity: 0; } 30% { scale: 1.1; opacity: 1; } 70% { scale: 1; opacity: 1; } 100% { scale: 1.05; opacity: 0; } }
@keyframes hit { 20% { transform: translateX(7%) rotate(7deg); } 55% { transform: translateX(-3%) rotate(-3deg); } }
@media (max-width: 980px) { .gang { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* a screen of the game beside some words */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.pair.turned { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } .pair.turned .shot { order: -1; }
.pair h2 { font-size: clamp(30px, 4vw, 54px); } .pair p { margin: 16px 0 0; max-width: 34em; }
.shot { border: 6px solid var(--ink); border-radius: clamp(14px, 2vw, 28px); box-shadow: 0 0 0 4px var(--cream); overflow: hidden; }
.online { background: var(--violet); } .garage { background: var(--ink); }
@media (max-width: 860px) { .pair, .pair.turned { grid-template-columns: 1fr; } .pair.turned .shot { order: 0; } }

.last { background: var(--red); color: var(--ink); text-align: center; clip-path: polygon(0 3vw, 100% 0, 100% 100%, 0 100%); }
.last p { margin: 16px auto 28px; font-weight: 600; max-width: 34em; } .last .stores { justify-content: center; }

footer { padding: 36px var(--pad) 48px; font-size: 16px; color: #cdbfe0; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-bottom: 14px; } footer nav a { padding: 8px 0; color: var(--cream); } footer p { margin: 4px 0; }

/* pages to read */
.text { background: var(--cream); color: var(--ink); padding: clamp(32px, 6vw, 80px) var(--pad); }
.text > * { max-width: 42em; margin-left: auto; margin-right: auto; }
.text h1 { font-size: clamp(30px, 4.6vw, 52px); text-transform: uppercase; } .text h2 { font: 700 clamp(22px, 2vw, 27px)/1.25 Rubik, sans-serif; text-transform: none; margin-top: 1.7em; margin-bottom: .3em; }
.text p, .text li { margin-top: .5em; margin-bottom: .5em; } .text ul, .text ol { padding-left: 1.2em; } .text .meta { color: #67557c; }
.text a { color: #a51e45; overflow-wrap: anywhere; }
.text details { border-top: 3px solid var(--ink); } .text details:last-of-type { border-bottom: 3px solid var(--ink); }
.text summary { cursor: pointer; font-weight: 600; font-size: 1.08em; padding: 16px 0; } .text details > :last-child { margin-bottom: 20px; }
.text .note { background: var(--yellow); border: 4px solid var(--ink); border-radius: 16px; padding: 16px 20px; margin-top: 24px; }
.text .note p { margin: 0; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before { animation: none !important; transition: none !important; } .bang { display: none; } }
