@font-face { font-family: 'Barlow Condensed'; src: url('/assets/fonts/barlow-600.woff2') format('woff2'); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/assets/fonts/barlow-700.woff2') format('woff2'); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/assets/fonts/barlow-800.woff2') format('woff2'); font-style: normal; font-weight: 800; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('/assets/fonts/barlow-900.woff2') format('woff2'); font-style: normal; font-weight: 900; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/dm-sans.woff2') format('woff2'); font-style: normal; font-weight: 400 800; font-display: swap; }

:root {
  --ink: #0b0b0e;
  --paper: #f8f8f6;
  --purple: #5b13d6;
  --purple-deep: #4610b8;
  --line: #aeb0bb;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #f6a823; outline-offset: 4px; }

.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 20; padding: .7rem 1rem; background: #fff; }
.skip-link:focus { top: 1rem; }
.eyebrow { margin: 0 0 .75rem; font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .19em; }
.rule { display: block; width: 40px; height: 2px; background: var(--ink); margin: 1.35rem 0 1.15rem; }
.rule--light { background: #fff; }

.site-header {
  height: 84px; padding: 0 clamp(28px, 4vw, 70px); display: flex; align-items: center;
  gap: clamp(20px, 3vw, 56px); position: absolute; top: 0; left: 0; right: 0; z-index: 10;
}
.brand { width: clamp(185px, 18vw, 260px); flex: 0 0 auto; display: grid; justify-items: center; text-decoration: none; }
.brand img { width: 100%; height: auto; }
.brand span { margin-top: -.1rem; font-size: .53rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; white-space: nowrap; }
.button { border: 0; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 1.3rem; text-decoration: none; text-transform: uppercase; font-size: .77rem; font-weight: 800; letter-spacing: .09em; min-height: 45px; padding: .75rem 2rem; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; white-space: nowrap; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 22px rgba(45, 0, 130, .19); }
.button span { font-size: 1.45em; line-height: .7; font-weight: 400; }
.button--primary, .button--header { color: #fff; background: var(--purple); }
.button--primary:hover, .button--header:hover { background: var(--purple-deep); }
.button--header { margin-left: auto; padding: .65rem 1.45rem; min-height: 40px; font-size: .65rem; }

.hero { position: relative; isolation: isolate; min-height: clamp(660px, 52vw, 790px); display: flex; align-items: stretch; overflow: hidden; background: #eff4f7; }
.hero__photo { position: absolute; inset: 0; z-index: -2; background: url('/assets/hero.png') center 44% / cover no-repeat; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 19%, rgba(255,255,255,.71) 35%, rgba(255,255,255,.05) 55%, rgba(255,255,255,0) 100%); }
.hero__content { width: min(43%, 600px); padding: clamp(138px, 11.4vw, 185px) 0 40px clamp(28px, 4vw, 70px); }
.hero__eyebrow { color: #342754; }
.hero h1 { margin: 0; font-family: 'Barlow Condensed', Impact, sans-serif; font-size: clamp(5.4rem, 9vw, 9.7rem); font-weight: 900; font-style: italic; letter-spacing: -.04em; text-transform: uppercase; line-height: .77; transform: skew(-5deg); transform-origin: left center; }
.hero h1 em { font-style: inherit; color: var(--purple); }
.hero__lead { width: min(400px, 95%); margin: 0 0 1.3rem; font-size: clamp(.9rem, 1vw, 1.15rem); line-height: 1.4; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.hero__features { width: min(440px, 100%); display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin: 1rem 0 1.4rem; }
.hero__features > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .4rem; font-size: .65rem; line-height: 1.1; font-weight: 800; text-transform: uppercase; }
.feature-icon { display: block; width: 2.2rem; height: 2.2rem; object-fit: contain; font-size: 2.1rem; line-height: 1; font-weight: 600; }
.feature-icon--text { width: auto; }
.hero__scribble { position: absolute; right: 4.6%; top: 115px; display: flex; gap: 1rem; align-items: flex-start; color: #101016; transform: rotate(-8deg); font-family: 'Barlow Condensed', Impact, sans-serif; font-style: italic; font-size: clamp(1.5rem, 2.5vw, 2.7rem); font-weight: 800; text-transform: uppercase; line-height: .89; text-align: center; text-shadow: 0 1px 2px rgba(255,255,255,.3); }
.hero__scribble::after { content: ''; position: absolute; left: 12%; bottom: -.55rem; width: 75%; border-bottom: 5px solid var(--purple); border-radius: 50%; transform: rotate(-8deg); }
.hero__crown { color: var(--purple); font-size: 2.8rem; }
.hero__side-note { position: absolute; right: 2.5%; bottom: 68px; color: #fff; font-family: 'Barlow Condensed', Impact, sans-serif; font-size: clamp(1.5rem, 2.6vw, 3rem); font-style: italic; font-weight: 800; line-height: .8; text-transform: uppercase; transform: rotate(-13deg); text-shadow: 0 2px 8px #121014; }

.fidget-story { display: grid; grid-template-columns: minmax(200px, 21%) repeat(3, minmax(0, 1fr)) 36px minmax(220px, 22%); gap: clamp(8px, 1vw, 18px); align-items: center; padding: 18px clamp(28px, 4vw, 70px); background: #f7f6f4; }
.fidget-story__intro h2 { margin: 0 0 14px; font-family: 'Barlow Condensed', Impact, sans-serif; font-size: clamp(2rem, 3vw, 3.25rem); font-style: italic; font-weight: 800; line-height: .92; text-transform: uppercase; transform: skew(-4deg); transform-origin: left center; }
.fidget-story__intro p { max-width: 240px; margin: 0; font-size: clamp(.78rem, .95vw, .96rem); line-height: 1.4; }
.fidget-story__card, .fidget-story__result { width: 100%; overflow: hidden; border-radius: 5px; }
.fidget-story__card { aspect-ratio: .8; }
.fidget-story__result { aspect-ratio: .8; }
.fidget-story__card img, .fidget-story__result img { width: 100%; height: 100%; object-fit: cover; }
.fidget-story__arrow { color: var(--purple); font-size: 3rem; font-weight: 800; text-align: center; }

.colorways { background: #fff; min-height: 365px; display: grid; grid-template-columns: minmax(190px, 23%) 1fr; align-items: stretch; overflow: hidden; }
.colorways__copy { padding: clamp(35px, 4vw, 65px) 10px 35px clamp(28px, 4vw, 70px); position: relative; z-index: 1; }
.colorways h2, .play-pattern h2 { margin: 0; font-size: clamp(2.1rem, 3.6vw, 3.5rem); line-height: .96; font-weight: 800; text-transform: uppercase; letter-spacing: -.04em; }
.colorways__intro { max-width: 240px; font-size: clamp(.86rem, 1vw, 1rem); line-height: 1.4; font-weight: 700; text-transform: uppercase; }
.colorways__copy p:last-child { max-width: 240px; font-size: .85rem; line-height: 1.45; }
.colorways__visual { position: relative; min-width: 0; margin-left: -30%; display: flex; align-items: end; }
.colorways__visual img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; object-position: 64% center; }

.play-pattern { background: #161616; color: #fff; padding: 31px clamp(28px, 4vw, 70px); display: grid; grid-template-columns: minmax(170px, 19%) 1fr; gap: 20px; }
.play-pattern__intro { align-self: center; }
.play-pattern__intro p:last-child { text-transform: uppercase; font-size: .72rem; font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 3vw, 55px); }
.step { position: relative; min-width: 0; }
.step:not(:last-child)::after { content: '→'; position: absolute; right: calc(-.5 * clamp(14px, 3vw, 55px) - .35rem); top: 33%; font-size: 1.6rem; font-weight: 300; }
.step img, .score-card { width: 100%; aspect-ratio: 1.38; object-fit: cover; border: 1px solid #747474; border-radius: 5px; }
.step img { object-position: center 45%; }
.score-card { background: #080a0e; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; color: #fff; }
.score-card span { font-size: clamp(.5rem, .8vw, .8rem); text-transform: uppercase; }
.score-card strong { font-size: clamp(.85rem, 1.7vw, 1.8rem); font-weight: 500; letter-spacing: -.06em; }
.score-card small { font-size: .65em; }
.score-card em { color: #ffcb15; font-style: normal; text-transform: uppercase; font-size: clamp(.5rem, .8vw, .85rem); font-weight: 800; }
.step__caption { display: grid; gap: .12rem; text-align: center; padding-top: .5rem; line-height: 1.1; }
.step__caption strong { text-transform: uppercase; letter-spacing: .08em; font-size: clamp(.82rem, 1.2vw, 1.15rem); }
.step__caption span { font-size: clamp(.75rem, 1vw, .95rem); }

.victory { min-height: clamp(340px, 32vw, 470px); color: #fff; position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 43%) minmax(0, 28%) minmax(260px, 29%); align-items: center; background: #121214; overflow: hidden; }
.victory__photo { position: absolute; inset: 0; z-index: -2; background: url('/assets/victory.png') center 40% / cover no-repeat; }
.victory::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.15) 28%, rgba(0,0,0,.63) 48%, rgba(0,0,0,.83) 72%, #101010 100%); }
.victory__result { grid-column: 2; padding: 25px 5px; }
.victory__result h2 { font-size: clamp(2.4rem, 4.1vw, 5.2rem); line-height: .95; margin: 0; font-weight: 800; letter-spacing: -.045em; }
.victory__result h2 small { font-size: .5em; }
.victory__result p:last-child { font-size: clamp(1.2rem, 2vw, 2.2rem); text-transform: uppercase; letter-spacing: .18em; margin: .3rem 0 0; }
.victory__details { grid-column: 3; border-left: 1px solid rgba(255,255,255,.6); margin: 30px 0; padding: 0 clamp(25px, 3vw, 45px); }
.victory__details ul { margin: 0; padding-left: 1.25rem; display: grid; gap: 1rem; font-size: clamp(.9rem, 1.1vw, 1.1rem); line-height: 1.35; }
.victory__details li { padding-left: .15rem; }

.site-footer { background: #fff; padding: 28px clamp(28px, 4vw, 70px) 25px; }
.site-footer__main { display: grid; grid-template-columns: minmax(160px, 22%) 1fr auto; align-items: center; gap: 30px; }
.footer-brand { display: grid; justify-items: center; border-right: 1px solid var(--line); padding-right: 30px; }
.footer-brand img { width: 220px; }
.footer-brand span { text-transform: uppercase; letter-spacing: .22em; font-size: .65rem; }
.site-footer__main > p { text-align: center; max-width: 430px; justify-self: center; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.site-footer__main > .button { min-width: 200px; }
.site-footer__bottom { display: flex; justify-content: center; gap: 22px; padding-top: 30px; color: #6d6d79; text-transform: uppercase; letter-spacing: .18em; font-size: .63rem; }
.site-footer__bottom i { font-style: normal; }
.site-footer__bottom a { color: inherit; text-decoration: none; }
.site-footer__bottom a:hover, .site-footer__bottom a:focus-visible { text-decoration: underline; }
.site-footer__legal { margin-top: 14px; text-align: center; font-size: .7rem; }
.site-footer__legal a { color: #555466; }

.privacy-banner[hidden] { display: none; }
.privacy-banner { position: fixed; z-index: 30; left: 50%; bottom: 18px; width: min(720px, calc(100% - 28px)); transform: translateX(-50%); display: flex; align-items: center; gap: 22px; padding: 18px 20px; border: 1px solid #d9d3e8; border-top: 4px solid var(--purple); border-radius: 14px; background: #fff; box-shadow: 0 16px 48px rgba(18, 10, 36, .2); }
.privacy-banner__copy { flex: 1; }
.privacy-banner strong { display: block; margin-bottom: 4px; font-size: .85rem; }
.privacy-banner p { margin: 0; color: #35343d; font-size: .82rem; line-height: 1.45; }
.privacy-banner p a { color: var(--purple-deep); font-weight: 700; }
.privacy-banner button { flex: 0 0 auto; min-width: 96px; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 999px; background: var(--purple); color: #fff; font: inherit; font-size: .78rem; font-weight: 800; cursor: pointer; }
.privacy-banner button:hover { background: var(--purple-deep); }

.privacy-document { min-height: 100vh; background: #f8f8f6; }
.privacy-header { max-width: 840px; margin: 0 auto; padding: 28px 24px 0; }
.privacy-header a { display: inline-block; width: 180px; }
.privacy-page { max-width: 840px; margin: 0 auto; padding: 45px 24px 75px; }
.privacy-page h1 { margin: 0 0 12px; font-size: clamp(2.2rem, 5vw, 3.5rem); line-height: 1; }
.privacy-page .privacy-updated { margin: 0 0 36px; color: #666; font-size: .8rem; }
.privacy-page h2 { margin: 34px 0 8px; font-size: 1.2rem; }
.privacy-page p { max-width: 70ch; line-height: 1.65; }
.privacy-page a { color: var(--purple-deep); }
.privacy-page__back { display: inline-block; margin-top: 30px; font-weight: 700; }

@media (max-width: 1120px) {
  .site-header { height: 70px; }
  .brand { width: 180px; }
  .button--header { padding: .6rem 1rem; }
  .hero__content { width: 48%; }
  .hero h1 { font-size: clamp(5rem, 8.5vw, 7rem); }
  .hero__scribble { right: 3%; }
}

@media (max-width: 800px) {
  .site-header { height: 66px; padding: 0 24px; }
  .brand { width: 160px; }
  .brand span { font-size: .45rem; }
  .button--header { display: none; }
  .hero { min-height: 870px; align-items: flex-end; }
  .hero__photo { background-position: 55% top; background-size: auto 70%; background-color: #f3f5f7; }
  .hero__shade { background: linear-gradient(0deg, #fff 0%, #fff 34%, rgba(255,255,255,.94) 47%, rgba(255,255,255,0) 64%); }
  .hero__content { width: 100%; padding: 0 28px 36px; position: relative; }
  .hero h1 { font-size: clamp(5.3rem, 15vw, 8rem); }
  .hero__lead { width: min(530px, 100%); }
  .hero__features { max-width: 500px; }
  .hero__scribble { top: 105px; right: 4%; font-size: 1.9rem; }
  .hero__side-note { bottom: auto; top: 380px; }
  .fidget-story { grid-template-columns: repeat(3, minmax(0, 1fr)) 30px minmax(160px, 1.4fr); padding: 28px; }
  .fidget-story__intro { grid-column: 1 / -1; }
  .fidget-story__intro h2 br { display: none; }
  .fidget-story__intro p { max-width: 620px; }
  .colorways { grid-template-columns: 1fr; }
  .colorways__visual { margin-left: 0; }
  .colorways__copy { padding: 34px 28px 0; }
  .colorways__copy p:last-child { max-width: 580px; }
  .colorways__visual img { height: 330px; min-height: 0; object-position: 75% center; }
  .play-pattern { grid-template-columns: 1fr; padding: 35px 28px; }
  .play-pattern__intro h2 { line-height: 1; }
  .play-pattern__intro h2 br { display: none; }
  .steps { gap: 20px; }
  .step:not(:last-child)::after { right: -17px; }
  .victory { grid-template-columns: 1fr 1fr; min-height: 500px; }
  .victory__result { grid-column: 1; align-self: end; padding: 25px 28px; }
  .victory__details { grid-column: 2; grid-row: 1; align-self: end; }
  .victory::before { background: linear-gradient(0deg, #111 0%, rgba(0,0,0,.8) 38%, transparent 100%); }
  .site-footer__main { grid-template-columns: 1fr auto; }
  .footer-brand { border: 0; justify-items: start; }
  .site-footer__main > p { grid-column: 1; grid-row: 2; text-align: left; justify-self: start; margin: 0; }
  .site-footer__main > .button { grid-column: 2; grid-row: 1 / span 2; }
}

@media (max-width: 560px) {
  .hero { min-height: 820px; }
  .hero__photo { background-size: auto 58%; background-position: 58% top; }
  .hero__shade { background: linear-gradient(0deg, #fff 0%, #fff 48%, rgba(255,255,255,.7) 56%, transparent 70%); }
  .hero__content { padding: 0 22px 27px; }
  .hero h1 { font-size: clamp(4.6rem, 18vw, 6.1rem); }
  .hero__eyebrow { display: none; }
  .hero__lead { font-size: .82rem; }
  .hero__features { gap: .25rem; }
  .hero__features > div { font-size: .52rem; }
  .feature-icon { font-size: 1.7rem; height: 1.8rem; }
  .hero__scribble { top: 85px; right: 20px; font-size: 1.5rem; }
  .hero__crown { font-size: 1.8rem; }
  .hero__side-note { top: 345px; right: 20px; font-size: 1.6rem; }
  .fidget-story { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; padding: 32px 22px; }
  .fidget-story__intro h2 { max-width: 330px; font-size: 2.6rem; }
  .fidget-story__intro h2 br { display: initial; }
  .fidget-story__intro p { margin-bottom: 8px; font-size: .88rem; }
  .fidget-story__arrow { grid-column: 1 / -1; font-size: 2rem; line-height: 1; transform: rotate(90deg); }
  .fidget-story__result { grid-column: 1 / -1; max-width: 340px; justify-self: center; }
  .colorways__copy { padding: 30px 22px 0; }
  .colorways__visual img { height: 230px; object-position: 100% center; }
  .play-pattern { padding: 30px 22px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 18px; }
  .step:nth-child(2)::after { content: none; }
  .step:not(:last-child)::after { right: -16px; }
  .step img, .score-card { aspect-ratio: 1.3; }
  .step__caption strong { font-size: .85rem; }
  .step__caption span { font-size: .77rem; }
  .score-card strong { font-size: 1.1rem; }
  .victory { min-height: 845px; display: flex; flex-direction: column; justify-content: end; align-items: stretch; }
  .victory__photo { background-position: 12% top; background-size: auto 64%; }
  .victory::before { background: linear-gradient(0deg, #111 0%, #111 52%, rgba(0,0,0,.65) 66%, transparent 78%); }
  .victory__result { padding: 0 24px; }
  .victory__result h2 { font-size: 3.3rem; }
  .victory__details { margin: 20px 24px 30px; padding: 0 0 0 20px; }
  .victory__details ul { gap: .85rem; max-width: 280px; }
  .site-footer { padding: 30px 22px; }
  .site-footer__main { grid-template-columns: 1fr; gap: 20px; }
  .site-footer__main > p, .site-footer__main > .button { grid-column: 1; grid-row: auto; }
  .footer-brand { padding: 0; }
  .footer-brand img { width: 190px; }
  .site-footer__main > p { font-size: .8rem; }
  .site-footer__main > .button { justify-self: start; }
  .site-footer__bottom { gap: 11px; font-size: .48rem; }
  .privacy-banner { align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; }
  .privacy-banner button { align-self: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

/* The two game families share one scoring rule: the lowest time wins. */
.hero h1 { font-size: clamp(4.4rem, 7vw, 7.6rem); line-height: .8; }
.hero__summary { max-width: 430px; margin: -.5rem 0 1.35rem; font-size: .95rem; line-height: 1.4; }
.game-modes { padding: clamp(48px, 5vw, 82px) clamp(22px, 4vw, 70px); background: #eee9f9; }
.game-modes__header { max-width: 960px; margin: 0 auto 30px; text-align: center; }
.game-modes__header .eyebrow { color: var(--purple-deep); }
.game-modes__header h2 { margin: 0; font-family: 'Barlow Condensed', Impact, sans-serif; font-size: clamp(3rem, 5vw, 5.5rem); font-weight: 900; line-height: .92; text-transform: uppercase; }
.game-modes__header > p:last-child { margin: 14px 0 0; font-size: clamp(.9rem, 1.2vw, 1.12rem); }
.game-modes__grid { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.mode-card { min-width: 0; display: flex; flex-direction: column; padding: clamp(22px, 2.5vw, 36px); border-radius: 16px; box-shadow: 0 18px 38px #2410591a; }
.mode-card--react { color: #fff; background: linear-gradient(145deg, #211342, #40158c); }
.mode-card--race { color: #141019; background: #fff; border: 2px solid #4d16bb; }
.mode-card__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mode-card__number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #ffcf25; color: #1a1032; font-weight: 900; }
.mode-card h3 { margin: 0; font-family: 'Barlow Condensed', Impact, sans-serif; font-size: clamp(3.3rem, 4vw, 5rem); font-weight: 900; line-height: .9; }
.mode-card__tag { margin-left: auto; padding: 7px 10px; border: 1px solid currentColor; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.mode-card h4 { margin: 25px 0 8px; font-size: clamp(1.25rem, 1.6vw, 1.65rem); }
.mode-card > p { max-width: 52ch; min-height: 3.7em; margin: 0 0 20px; line-height: 1.48; }
.mode-card__choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.mode-card__choices div { min-width: 0; padding: 13px 14px; border-radius: 9px; background: #ffffff1b; border: 1px solid #ffffff59; }
.mode-card--race .mode-card__choices div { background: #f3edff; border-color: #d5c5f5; }
.mode-card__choices strong { display: block; font-family: 'Barlow Condensed', Impact, sans-serif; font-size: 1.2rem; font-weight: 900; }
.mode-card__choices span { display: block; font-size: .8rem; line-height: 1.32; }
.mode-card__score { display: flex; align-items: baseline; gap: 15px; flex-wrap: wrap; margin-top: auto; padding: 17px 18px; border-radius: 10px; background: #090715; color: #fff; }
.mode-card__score > span { color: #b9a4ec; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.mode-card__score strong { font-variant-numeric: tabular-nums; font-size: clamp(1.8rem, 2.5vw, 2.7rem); letter-spacing: -.04em; line-height: 1; }
.mode-card__score small { font-size: .45em; padding-left: 2px; }
.mode-card__score em { margin-left: auto; color: #ffcf25; font-size: .72rem; font-style: normal; font-weight: 800; text-transform: uppercase; }
.game-modes__summary { max-width: 850px; margin: 27px auto 0; text-align: center; font-weight: 700; }
.game-modes__steps { max-width: 950px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px; margin: 28px auto 0; padding: 17px; border-top: 2px solid #b5a2dd; border-bottom: 2px solid #b5a2dd; text-align: center; font-family: 'Barlow Condensed', Impact, sans-serif; font-size: clamp(.9rem, 1.4vw, 1.2rem); font-weight: 900; letter-spacing: .05em; }
.game-modes__steps b { color: var(--purple); }
.victory__details p { max-width: 28ch; font-size: clamp(.95rem, 1.2vw, 1.2rem); line-height: 1.45; }
.victory__details p + p { margin-top: 1.5rem; }
.victory__result h2 { font-family: 'Barlow Condensed', Impact, sans-serif; text-transform: uppercase; }

.try-it { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(26px, 5vw, 80px); padding: clamp(50px, 6vw, 95px) clamp(22px, 6vw, 100px); background: #161024; color: #fff; }
.try-it__intro { max-width: 460px; }
.try-it__intro .eyebrow { color: #ffcf25; }
.try-it__intro h2 { margin: 0 0 20px; font-family: 'Barlow Condensed', Impact, sans-serif; font-size: clamp(4rem, 7vw, 7rem); font-weight: 900; line-height: .84; text-transform: uppercase; }
.try-it__intro p:not(.eyebrow) { font-size: clamp(1rem, 1.5vw, 1.3rem); line-height: 1.5; }
.try-it__intro .try-it__note { color: #bcb3ca; font-size: .85rem !important; }
.try-it__console { min-width: 0; max-width: 680px; width: 100%; justify-self: center; padding: clamp(20px, 3vw, 36px); border: 1px solid #704f9d; border-radius: 20px; background: linear-gradient(145deg, #2c194a, #1d1631); box-shadow: 0 22px 60px #0005; text-align: center; }
.try-it__modes, .try-it__variants { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.try-it__modes { margin-bottom: 14px; }
.try-it__modes button, .try-it__variants button { min-height: 44px; border: 1px solid #9174bb; border-radius: 8px; background: #251839; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.try-it__modes button { flex: 1 1 130px; padding: 8px 18px; font-family: 'Barlow Condensed', Impact, sans-serif; font-size: 1.6rem; }
.try-it__variants button { flex: 1 1 90px; padding: 8px 10px; font-size: .8rem; }
.try-it__modes button.is-selected, .try-it__variants button.is-selected { background: #ffcf25; border-color: #ffcf25; color: #21142f; }
.try-it__modes button:hover:not(.is-selected), .try-it__variants button:hover:not(.is-selected) { background: #49316a; }
.try-it__instruction { min-height: 2.7em; margin: 20px auto 16px; max-width: 44ch; color: #ddd2ec; font-size: .84rem; line-height: 1.4; }
.try-it__button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: min(260px, 68vw); aspect-ratio: 1; margin: 0 auto 22px; padding: 22px; border: 12px solid #141019; border-radius: 50%; background: radial-gradient(circle at 36% 25%, #ff788d, #e50736 58%, #a80028); color: #fff; box-shadow: 0 0 0 5px #6c5d81, inset 0 -14px 18px #59001766, 0 18px 20px #0007; font: inherit; cursor: pointer; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.try-it__button:active { transform: translateY(5px); box-shadow: 0 0 0 5px #6c5d81, inset 0 -7px 13px #59001766, 0 10px 14px #0007; }
.try-it__button:disabled { cursor: default; transform: none; opacity: .7; }
.try-it__button-light { width: 42px; height: 42px; border: 5px solid #fff8; border-radius: 50%; background: #683c58; box-shadow: inset 0 3px 8px #0007; }
.try-it__button[data-phase="go"] .try-it__button-light { background: #7cff6b; box-shadow: 0 0 25px 10px #8bff69, inset 0 0 8px #fff; }
.try-it__button[data-phase="false-start"] .try-it__button-light { background: #ffcf25; box-shadow: 0 0 18px #ffcf25; }
.try-it__button[data-phase="racing"] .try-it__button-light { background: #42d9ff; box-shadow: 0 0 18px #42d9ff; }
.try-it__button strong { font-family: 'Barlow Condensed', Impact, sans-serif; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1; letter-spacing: .03em; }
.try-it__readout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: left; }
.try-it__readout > div { min-width: 0; padding: 15px; border-radius: 9px; background: #0b0914; }
.try-it__readout span { display: block; margin-bottom: 6px; color: #c6b4de; font-size: .64rem; font-weight: 900; letter-spacing: .09em; }
.try-it__readout strong { display: block; overflow-wrap: anywhere; color: #ffcf25; font-size: clamp(1.1rem, 2.3vw, 1.8rem); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.try-it__status { min-height: 1.4em; margin: 18px 0 0; color: #e2d1f8; font-size: .85rem; }
.try-it__restart[hidden] { display: none; }
.try-it__restart { min-height: 46px; margin-top: 16px; padding: 10px 24px; border: 0; border-radius: 8px; background: #ffcf25; color: #21142f; font: inherit; font-weight: 900; cursor: pointer; }
.try-it__restart:hover { background: #ffe071; }
.try-it button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

.leaderboard { padding: clamp(42px,6vw,85px) clamp(22px,5vw,80px); background:#eee9f9; color:#1c1230; }
.leaderboard__heading { display:flex; justify-content:space-between; align-items:center; gap:24px; max-width:1320px; margin:auto; }
.leaderboard__heading .eyebrow { color:var(--purple-deep); }
.leaderboard h2 { margin:0; font-family:'Barlow Condensed',Impact,sans-serif; font-size:clamp(3.3rem,6vw,6rem); font-weight:900; line-height:.9; text-transform:uppercase; }
.leaderboard__location { padding:20px 24px; background:#211342; color:#fff; border-radius:12px; }
.leaderboard__location strong { display:block; color:#ffcf25; font-size:1.4rem; }
.leaderboard__location span { display:block; margin-top:7px; font-size:.72rem; }
.leaderboard__intro { max-width:1320px; margin:24px auto 30px; line-height:1.5; }
.leaderboard__periods { display:flex; gap:8px; max-width:1320px; margin:0 auto 20px; }
.leaderboard__periods button { flex:1; padding:16px 12px; border:2px solid #4d16bb; border-radius:9px; color:#351575; background:#fff; font-family:'Barlow Condensed',Impact,sans-serif; font-size:1.3rem; font-weight:900; cursor:pointer; }
.leaderboard__periods button[aria-pressed="true"] { background:#4d16bb; color:#fff; }
.leaderboard__filters { display:flex; align-items:center; gap:14px; max-width:1320px; margin:auto; }
.leaderboard__filters label { font-size:.72rem; font-weight:900; letter-spacing:.07em; }
.leaderboard__filters select { min-height:46px; padding:10px 36px 10px 14px; border:1px solid #b7a3d8; border-radius:7px; background:#fff; color:#261641; font:inherit; font-weight:800; }
.leaderboard__filters>span { margin-left:auto; font-size:.72rem; font-weight:900; }
.leaderboard__summary { max-width:1320px; margin:20px auto; font-size:.8rem; color:#655875; }
.leaderboard__podium { max-width:1320px; margin:0 auto 24px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.podium-card { position:relative; display:flex; flex-direction:column; align-items:center; gap:8px; padding:25px 12px; border-radius:12px; background:#fff; border:2px solid #d5c8eb; min-width:0; }
.podium-card--1 { background:#211342; border-color:#ffcf25; color:white; }
.podium-card__rank { position:absolute; top:15px; left:16px; font-weight:900; color:#725995; }
.podium-card--1 .podium-card__rank { color:#ffcf25; }
.podium-card__avatar { display:grid; place-items:center; width:54px; height:54px; border-radius:50%; background:#eee4ff; color:#4d16bb; font-size:1rem; font-weight:900; }
.podium-card--1 .podium-card__avatar { background:#ffcf25; color:#211342; }
.podium-card>strong { font-size:1rem; overflow-wrap:anywhere; text-align:center; }
.podium-card>b { font-size:clamp(1.2rem,2.3vw,2.1rem); font-variant-numeric:tabular-nums; letter-spacing:-.03em; }
.podium-card--1>b { color:#ffcf25; }
.podium-card>small { font-size:.7rem; opacity:.7; }
.leaderboard__table-wrap { max-width:1320px; margin:auto; border-radius:12px; background:white; overflow:hidden; border:1px solid #d5c8eb; }
.leaderboard__table { width:100%; border-collapse:collapse; text-align:left; }
.leaderboard__table caption { padding:16px 20px; text-align:left; font-size:.8rem; font-weight:800; background:#f8f4ff; }
.leaderboard__table thead { background:#211342; color:#d9c7f5; font-size:.65rem; letter-spacing:.06em; }
.leaderboard__table th,.leaderboard__table td { padding:15px 20px; }
.leaderboard__table tbody tr { border-bottom:1px solid #ede7f5; }
.leaderboard__table tbody tr:last-child { border:0; }
.leaderboard__table tbody tr:nth-child(even) { background:#fbf9ff; }
.leaderboard__table tbody th { font-size:.88rem; }
.leaderboard__table tbody td { font-size:.8rem; }
.board-rank { font-weight:900; color:#785a9e; }
.board-time { font-weight:900; color:#4d16bb; font-variant-numeric:tabular-nums; white-space:nowrap; }
.board-gap { color:#7d708d; font-variant-numeric:tabular-nums; }
.leaderboard__footer { display:flex; justify-content:space-between; align-items:center; gap:20px; max-width:1320px; margin:20px auto; }
.leaderboard__footer button,.leaderboard__footer a { min-height:44px; padding:12px 17px; border:0; border-radius:7px; background:#ffcf25; color:#211342; font:inherit; font-size:.75rem; font-weight:900; cursor:pointer; text-decoration:none; }
.leaderboard__footer button { background:#fff; border:1px solid #b7a3d8; }
.leaderboard__notice { max-width:1320px; margin:20px auto 0; font-size:.72rem; line-height:1.5; color:#655875; }
.leaderboard button:focus-visible,.leaderboard select:focus-visible,.leaderboard a:focus-visible { outline:3px solid #4d16bb; outline-offset:3px; }
@media(max-width:800px){.leaderboard__heading{align-items:flex-start;flex-direction:column}.leaderboard__location{padding:14px 18px;width:100%}.leaderboard__location strong{font-size:1.1rem}.leaderboard__table th,.leaderboard__table td{padding:14px 12px}.board-attempts{display:none}.leaderboard__filters{flex-wrap:wrap}.leaderboard__filters>span{margin-left:0}}
@media(max-width:560px){.leaderboard{padding:44px 18px}.leaderboard h2{font-size:3.5rem}.leaderboard__periods{gap:6px}.leaderboard__periods button{font-size:.95rem;padding:13px 6px}.leaderboard__filters label{width:100%}.leaderboard__filters select{flex:1;font-size:.85rem}.leaderboard__filters>span{font-size:.6rem}.leaderboard__podium{gap:7px}.podium-card{padding:34px 7px 16px;gap:7px}.podium-card__rank{top:9px;left:11px;font-size:.75rem}.podium-card__avatar{width:38px;height:38px;font-size:.75rem}.podium-card>strong{font-size:.7rem}.podium-card>b{font-size:clamp(.75rem,3.3vw,1.1rem)}.podium-card>small{font-size:.59rem;text-align:center}.board-gap,.board-distance{display:none}.leaderboard__table th,.leaderboard__table td{padding:13px 10px}.leaderboard__table tbody th{font-size:.76rem}.leaderboard__table tbody td{font-size:.73rem}.leaderboard__table caption{font-size:.7rem;padding:13px 10px}.leaderboard__footer{align-items:stretch;flex-direction:column;gap:10px}.leaderboard__footer a{text-align:center}}

@media (max-width: 800px) {
  .hero h1 { font-size: clamp(4.8rem, 12vw, 6.7rem); }
  .game-modes__grid { grid-template-columns: 1fr; max-width: 640px; }
  .mode-card > p { min-height: 0; }
  .try-it { grid-template-columns: 1fr; }
  .try-it__intro { max-width: 640px; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(4rem, 15vw, 5.6rem); }
  .hero__summary { font-size: .83rem; }
  .game-modes__header { text-align: left; }
  .game-modes__header h2 { font-size: 3.25rem; }
  .mode-card { padding: 22px; }
  .mode-card__choices { grid-template-columns: 1fr; }
  .mode-card__choices--race { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-card__tag { font-size: .6rem; }
  .mode-card__score { gap: 8px; }
  .mode-card__score strong { font-size: 1.85rem; }
  .game-modes__steps { font-size: .95rem; }
  .try-it { padding: 48px 18px; }
  .try-it__intro h2 { font-size: 4.7rem; }
  .try-it__console { padding: 18px; }
  .try-it__button { width: min(235px, 61vw); }
  .try-it__readout > div { padding: 12px 9px; }
  .try-it__readout strong { font-size: clamp(.95rem, 4.4vw, 1.45rem); }
  .victory__result h2 { font-size: 3.3rem; }
  .victory__details p { max-width: 32ch; }
}
