/* crazygloubi.com — the game's own look: purple backdrop with confetti, Dosis ExtraBold titles with a pink
   outline, the store's floor tiles, and a till receipt for the feature list. */

@font-face { font-family: "Dosis"; src: url("/assets/fonts/dosis-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Dosis"; src: url("/assets/fonts/dosis-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Dosis"; src: url("/assets/fonts/dosis-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/assets/fonts/courier-prime-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Courier Prime"; src: url("/assets/fonts/courier-prime-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --plum-950: #1d1130;
  --plum-900: #2a1a40;
  --plum-800: #341e5c;
  --violet-ink: #6a2fa0;
  --pink: #e0457b;
  --pink-deep: #c93468;
  --pink-shadow: #8e1f48;
  --sun: #ffd65a;
  --paper: #fffdf7;
  --floor: #f7e8d8;
  --floor-line: #eed8c2;
  --ink: #2a1a40;
  --ink-soft: #4d3c61;
  --frame: 22px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --confetti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cg%3E%3Ccircle cx='38' cy='54' r='7' fill='%23ffd65a' fill-opacity='.32'/%3E%3Ccircle cx='182' cy='26' r='5' fill='%23e0457b' fill-opacity='.4'/%3E%3Ccircle cx='310' cy='92' r='9' fill='%235ad6c8' fill-opacity='.22'/%3E%3Ccircle cx='452' cy='40' r='4' fill='%23ffffff' fill-opacity='.3'/%3E%3Ccircle cx='96' cy='200' r='4' fill='%235ad6c8' fill-opacity='.3'/%3E%3Ccircle cx='240' cy='178' r='6' fill='%23ffffff' fill-opacity='.18'/%3E%3Ccircle cx='404' cy='214' r='8' fill='%23e0457b' fill-opacity='.26'/%3E%3Ccircle cx='500' cy='300' r='5' fill='%23ffd65a' fill-opacity='.3'/%3E%3Ccircle cx='28' cy='334' r='9' fill='%23e0457b' fill-opacity='.2'/%3E%3Ccircle cx='170' cy='318' r='5' fill='%23ffd65a' fill-opacity='.34'/%3E%3Ccircle cx='330' cy='352' r='4' fill='%235ad6c8' fill-opacity='.34'/%3E%3Ccircle cx='120' cy='460' r='6' fill='%23ffffff' fill-opacity='.2'/%3E%3Ccircle cx='272' cy='478' r='8' fill='%23ffd65a' fill-opacity='.22'/%3E%3Ccircle cx='428' cy='446' r='5' fill='%23e0457b' fill-opacity='.34'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--plum-800);
  color: #fff;
  font: 500 1.125rem/1.55 "Dosis", "Trebuchet MS", system-ui, sans-serif;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
h2 { margin: 0; font-weight: 800; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.02; letter-spacing: .005em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 20;
  background: var(--sun); color: var(--plum-900);
  padding: 10px 14px; border-radius: 10px; font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
}
.page-home .top { position: absolute; inset: 0 0 auto 0; z-index: 5; }
.top-solid { background: var(--plum-900); }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.2rem; letter-spacing: .01em; text-decoration: none;
}
.brand img { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 3px 0 rgba(29, 17, 48, .35); }
.langs { display: flex; gap: 6px; }
.langs a {
  min-width: 44px; padding: 6px 10px; border-radius: 999px; text-align: center;
  border: 2px solid rgba(255, 255, 255, .6); font-weight: 800; font-size: .95rem; line-height: 1.2; text-decoration: none;
}
.langs a:hover { border-color: #fff; }
.langs a[aria-current="page"] { background: #fff; border-color: #fff; color: var(--plum-900); }
.langs abbr { text-decoration: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 28px 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--pink-deep); color: #fff; box-shadow: 0 5px 0 var(--pink-shadow);
  font: 800 1.2rem/1 "Dosis", sans-serif; letter-spacing: .01em; text-decoration: none;
  transition: transform .08s ease-out, box-shadow .08s ease-out, background-color .15s;
}
.btn:hover { background: #d63b71; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--pink-shadow); }
.btn[data-play]::before {
  content: ""; width: 0; height: 0;
  border-left: 15px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent;
}
.btn-small { padding: 11px 20px 12px; font-size: 1.05rem; }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 880px); display: grid; align-items: end;
  background: var(--plum-900);
}
.hero-pic { display: block; }
.hero-pic, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 62% 50%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(42, 26, 64, .95) 0%, rgba(42, 26, 64, .88) 28%, rgba(42, 26, 64, .4) 52%, rgba(42, 26, 64, 0) 68%),
    linear-gradient(0deg, rgba(42, 26, 64, .5), rgba(42, 26, 64, 0) 28%),
    linear-gradient(180deg, rgba(42, 26, 64, .55), rgba(42, 26, 64, 0) 18%);
}
.hero-copy { position: relative; z-index: 2; max-width: 780px; padding: 120px var(--gutter) clamp(52px, 9vh, 100px); }
.logo {
  margin: 0; color: #fff; text-transform: uppercase;
  font-weight: 800; font-size: clamp(2.9rem, 8.6vw, 7.1rem); line-height: .86; letter-spacing: .01em;
  -webkit-text-stroke: .09em var(--pink); paint-order: stroke fill;
  text-shadow: 0 .07em .12em rgba(29, 17, 48, .55);
}
.logo span { display: block; }
.tagline {
  margin: .5em 0 0; font-weight: 800; font-size: clamp(1.45rem, 2.8vw, 2.2rem); line-height: 1.1;
  -webkit-text-stroke: .11em var(--violet-ink); paint-order: stroke fill;
}
.lede { margin: 18px 0 0; max-width: 33rem; font-size: clamp(1.1rem, 1.5vw, 1.28rem); }
.hero-actions { margin: 28px 0 0; }

/* The one loud thing on the page: a sale sticker slapped on the hero. */
.sticker {
  position: absolute; z-index: 3; top: 96px; left: calc(100% - 36px);
  width: 176px; aspect-ratio: 1; margin: 0; padding: 26px;
  display: grid; place-content: center; gap: 2px; text-align: center;
  color: var(--plum-900); line-height: 1.05; isolation: isolate;
  transform: rotate(10deg);
  filter: drop-shadow(0 6px 0 rgba(29, 17, 48, .35));
  animation: slap .5s cubic-bezier(.2, .9, .3, 1.25) .35s both;
}
.sticker::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--sun);
  clip-path: polygon(50.0% 0.0%, 58.0% 9.8%, 69.1% 3.8%, 72.8% 15.9%, 85.4% 14.6%, 84.1% 27.2%, 96.2% 30.9%, 90.2% 42.0%, 100.0% 50.0%, 90.2% 58.0%, 96.2% 69.1%, 84.1% 72.8%, 85.4% 85.4%, 72.8% 84.1%, 69.1% 96.2%, 58.0% 90.2%, 50.0% 100.0%, 42.0% 90.2%, 30.9% 96.2%, 27.2% 84.1%, 14.6% 85.4%, 15.9% 72.8%, 3.8% 69.1%, 9.8% 58.0%, 0.0% 50.0%, 9.8% 42.0%, 3.8% 30.9%, 15.9% 27.2%, 14.6% 14.6%, 27.2% 15.9%, 30.9% 3.8%, 42.0% 9.8%);
}
.sticker strong { font-size: 1.5rem; text-transform: uppercase; }
.sticker span { font-size: 1rem; font-weight: 700; }
@keyframes slap {
  from { opacity: 0; transform: rotate(-10deg) scale(1.7); }
  70% { opacity: 1; transform: rotate(13deg) scale(.96); }
  to { opacity: 1; transform: rotate(10deg) scale(1); }
}

/* ---------------------------------------------------------------- a round, on the store's floor tiles */
.round {
  padding: clamp(60px, 9vw, 112px) 0;
  color: var(--ink);
  background-color: var(--floor);
  background-image: linear-gradient(var(--floor-line) 2px, transparent 2px), linear-gradient(90deg, var(--floor-line) 2px, transparent 2px);
  background-size: 96px 96px;
}
.round h2 { color: var(--plum-900); }
.steps {
  list-style: none; margin: 44px 0 0; padding: 0; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px);
}
.step { position: relative; counter-increment: step; }
.step::before {
  content: counter(step);
  position: absolute; z-index: 1; top: -18px; left: -12px;
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: var(--pink-deep); color: #fff; box-shadow: 0 4px 0 var(--pink-shadow);
  font-weight: 800; font-size: 1.7rem; line-height: 1;
}
.step-pic {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border: 6px solid #fff; border-radius: var(--frame); box-shadow: 0 10px 0 rgba(42, 26, 64, .1);
}
.step h3 { margin: 20px 0 6px; font-weight: 800; font-size: 1.6rem; line-height: 1.1; color: var(--plum-900); }
.step p { margin: 0; max-width: 34ch; color: var(--ink-soft); }

/* ---------------------------------------------------------------- what's in store: the receipt */
.store { padding: clamp(64px, 10vw, 128px) 0 clamp(56px, 8vw, 96px); background: var(--plum-800) var(--confetti); }
.store-copy { position: sticky; top: 32px; }
.store-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(36px, 6vw, 96px); align-items: start; }
.store-copy p { margin: 16px 0 0; max-width: 30rem; font-size: 1.2rem; }
.store-pic {
  width: 100%; max-width: 540px; aspect-ratio: 4 / 3; object-fit: cover; margin-top: 40px;
  border: 6px solid #fff; border-radius: var(--frame); transform: rotate(-2deg);
}
.receipt-wrap { transform: rotate(1.5deg); filter: drop-shadow(0 20px 22px rgba(15, 8, 26, .45)); }
.receipt {
  --tooth: 9px;
  background: var(--paper); color: var(--ink);
  padding: 38px 28px 34px;
  font: 400 15.5px/1.35 "Courier Prime", "Courier New", monospace;
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--tooth)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--tooth)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--tooth)) 51% repeat-x;
}
.r-head { text-align: center; }
.r-head p { margin: 0; }
.r-store { font-weight: 700; font-size: 1.55rem; letter-spacing: .14em; }
.r-sub { margin-top: 2px !important; }
.r-meta {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 14px !important; padding: 6px 0;
  border-top: 2px dashed currentColor; border-bottom: 2px dashed currentColor; font-size: .86rem;
}
.r-items { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }
.r-line { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; }
.r-name, .r-price { font-weight: 700; }
.r-dots { flex: 1 1 14px; min-width: 14px; border-bottom: 2px dotted rgba(42, 26, 64, .4); transform: translateY(-4px); }
.r-price { margin-left: auto; text-align: right; }
.r-note { display: block; padding-left: 2ch; color: #5d4c70; font-size: .86rem; }
.r-totals { display: grid; gap: 4px; margin: 16px 0 0; padding-top: 12px; border-top: 2px dashed currentColor; }
.r-totals dt, .r-totals dd { margin: 0; font-weight: 700; }
.r-totals dt { flex: 1 1 auto; display: flex; align-items: baseline; gap: 6px; }
.r-totals dt::after { content: ""; flex: 1 1 14px; min-width: 14px; border-bottom: 2px dotted rgba(42, 26, 64, .4); transform: translateY(-4px); }
.r-totals dd { margin-left: 6px; }
.r-totals .r-line:last-child { margin-top: 4px; font-size: 1.15rem; }
.r-thanks { margin: 22px 0 12px; text-align: center; font-weight: 700; letter-spacing: .06em; }
.r-barcode {
  width: 78%; height: 48px; margin: 0 auto;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 14px, var(--ink) 14px 15px, transparent 15px 17px);
}
.r-url { margin: 6px 0 0; text-align: center; font-size: .82rem; letter-spacing: .22em; }

/* ---------------------------------------------------------------- trailer and screenshots */
.watch { --side: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); padding: clamp(64px, 10vw, 120px) 0 clamp(52px, 7vw, 88px); background: linear-gradient(180deg, var(--plum-800), var(--plum-900)); }
.watch .wrap > p { margin: 14px 0 0; font-size: 1.2rem; max-width: 34rem; }
.video-frame {
  margin-top: 32px; overflow: hidden; aspect-ratio: 1280 / 590; background: #000;
  border: 6px solid #fff; border-radius: var(--frame); box-shadow: 0 18px 40px rgba(15, 8, 26, .45);
}
.video-frame video { width: 100%; height: 100%; object-fit: cover; }
.shots { margin-top: clamp(32px, 5vw, 56px); padding-bottom: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--side); }
.shots ul { list-style: none; margin: 0; padding: 0 var(--side); display: flex; gap: 18px; width: max-content; }
.shots li { width: clamp(280px, 72vw, 540px); scroll-snap-align: start; }
.shots img { width: 100%; aspect-ratio: 1434 / 660; border-radius: 16px; }

/* ---------------------------------------------------------------- questions */
.faq { padding: clamp(60px, 9vw, 104px) 0; background: var(--plum-900); }
.faq h2 { margin-bottom: 18px; }
.faq details { border-bottom: 2px solid rgba(255, 255, 255, .14); }
.faq summary {
  position: relative; padding: 20px 48px 20px 0; cursor: pointer; list-style: none;
  font-weight: 800; font-size: 1.3rem; line-height: 1.25;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-54%);
  color: var(--pink); font-size: 2rem; line-height: 1;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 22px; max-width: 62ch; color: #ebe3f5; }
.faq a { color: var(--sun); text-underline-offset: 3px; }

/* ---------------------------------------------------------------- footer */
.foot { padding: 40px 0 34px; background: var(--plum-950); font-size: 1.02rem; }
.foot-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 22px 44px; align-items: center; }
.foot .brand { font-size: 1.1rem; }
.foot .brand img { width: 40px; height: 40px; }
.studio { margin: 8px 0 0; color: #d9cde8; }
.studio a { color: var(--sun); text-underline-offset: 3px; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.foot-links a, .link-btn {
  padding: 0; border: 0; background: none; color: #fff; cursor: pointer; font: inherit;
  text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 4px;
}
.foot-links a:hover, .link-btn:hover { text-decoration-color: var(--sun); }
.copy { grid-column: 1 / -1; margin: 0; color: #a998bf; font-size: .92rem; }

/* ---------------------------------------------------------------- privacy, support, 404 */
.page-legal { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; background: var(--plum-800) var(--confetti); }
.page-legal main { flex: 1 0 auto; }
.legal { padding: clamp(28px, 6vw, 72px) var(--gutter) clamp(56px, 8vw, 96px); }
.paper {
  max-width: 46rem; margin: 0 auto; padding: clamp(26px, 5vw, 58px);
  background: var(--paper); color: var(--ink); border-radius: 24px; box-shadow: 0 18px 40px rgba(15, 8, 26, .35);
  color-scheme: light;
}
.paper-small { max-width: 34rem; text-align: center; }
.paper h1 { margin: 0; color: var(--plum-900); font-weight: 800; font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1.05; }
.paper h2 { margin: 36px 0 8px; color: var(--plum-900); font-size: 1.55rem; }
.paper h3 { margin: 22px 0 4px; font-weight: 800; font-size: 1.18rem; line-height: 1.3; }
.paper p, .paper li { line-height: 1.65; }
.paper p { margin: 10px 0 0; }
.paper ul { margin: 10px 0 0; padding-left: 1.3rem; }
.paper li + li { margin-top: 6px; }
.paper a:not(.btn) { color: var(--pink-deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.paper .btn { margin-top: 10px; }
.updated { color: #6d5d80; }
.intro { font-size: 1.2rem; }
.other-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 22px !important; }

/* ---------------------------------------------------------------- smaller screens */
@media (max-width: 980px) {
  .store-grid { grid-template-columns: 1fr; }
  .receipt-wrap { max-width: 470px; justify-self: center; width: 100%; }
  .store-pic { display: none; }
  .store-copy { position: static; }
  /* The sticker now sits on the picture, at the top right of the hero. */
  .hero-copy { position: static; }
  .hero-copy > :not(.sticker) { position: relative; z-index: 2; }
  .sticker { left: auto; right: var(--gutter); top: 92px; width: 150px; padding: 22px; }
  .sticker strong { font-size: 1.25rem; }
  .sticker span { font-size: .88rem; }
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; max-width: 520px; }
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hero { display: block; min-height: 0; padding-top: 72px; }
  .hero::before { display: none; }
  .hero-pic { position: relative; inset: auto; height: auto; aspect-ratio: 1 / 1; }
  .hero-pic img { position: absolute; }
  .hero-pic::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
    background: linear-gradient(0deg, var(--plum-900) 8%, rgba(42, 26, 64, 0));
  }
  .hero-copy { margin-top: -24vw; padding: 0 var(--gutter) 48px; }
  .sticker { top: 84px; right: 12px; width: 128px; padding: 18px; }
  .sticker strong { font-size: 1.1rem; }
  .sticker span { font-size: .8rem; }
}
@media (max-width: 480px) {
  .top .brand span { display: none; }
  .receipt { padding: 34px 18px 30px; font-size: 14.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .sticker { animation: none; }
  .btn { transition: none; }
}
