/* Brushtown site: the game's look. A daylight sky, a gray street that a roller paints back to color,
   chunky ink-bordered cards and buttons, and real paint drips between sections (assets/drips-*.svg). */
:root {
  --ink: #3b2416;
  --cream: #fff6e6;
  --night: #2b1a3d;
  --night2: #3d2657;
  --pink: #ff4f9a;
  --mango: #ffc93d;
  --teal: #2ec4a6;
  --green: #3fb653;
  --green-dark: #2a8a3c;
  --sky: #09e6fd;
  --sky-top: #6fdcff;
  --radius: 28px;
  /* brush swash, one per color (dry-brush ends) */
  --sw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ff4f9a' d='M14,30 C70,18 160,14 250,16 C320,17 372,20 392,26 C398,34 394,42 398,50 C394,60 398,70 390,78 C320,86 220,88 130,86 C80,85 40,84 10,80 C4,72 9,64 4,56 C9,48 3,40 14,30 Z'/%3E%3Cpath fill='%23fff' fill-opacity='.28' d='M30,30 C120,24 260,22 370,30 L368,36 C260,30 120,32 32,38 Z'/%3E%3C/svg%3E");
  --sw-mango: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath fill='%23ffc93d' d='M14,30 C70,18 160,14 250,16 C320,17 372,20 392,26 C398,34 394,42 398,50 C394,60 398,70 390,78 C320,86 220,88 130,86 C80,85 40,84 10,80 C4,72 9,64 4,56 C9,48 3,40 14,30 Z'/%3E%3Cpath fill='%23fff' fill-opacity='.35' d='M30,30 C120,24 260,22 370,30 L368,36 C260,30 120,32 32,38 Z'/%3E%3C/svg%3E");
  --sw-teal: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cpath fill='%232ec4a6' d='M14,30 C70,18 160,14 250,16 C320,17 372,20 392,26 C398,34 394,42 398,50 C394,60 398,70 390,78 C320,86 220,88 130,86 C80,85 40,84 10,80 C4,72 9,64 4,56 C9,48 3,40 14,30 Z'/%3E%3Cpath fill='%23fff' fill-opacity='.28' d='M30,30 C120,24 260,22 370,30 L368,36 C260,30 120,32 32,38 Z'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: #fff;
  font: 600 18px/1.55 Nunito, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, .btn-main, .num, .kicker { font-family: "Lilita One", "Nunito", sans-serif; font-weight: 400; letter-spacing: .3px; }
h1 { font-size: clamp(46px, 7vw, 88px); line-height: 1; margin: 10px 0 18px; }
h2 { font-size: clamp(34px, 5vw, 58px); line-height: 1.04; margin: 0 0 16px; }
h3 { font-size: 26px; line-height: 1.1; margin: 10px 0 6px; }
.small { font-size: 15px; opacity: .8; }

/* game-style lettering: white fill with a thick ink outline */
.inked { color: #fff; text-shadow:
  3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink),
  2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 0 7px 0 var(--ink); }

/* a word painted with one brush stroke; each wrapped line gets its own stroke */
.swash, .paint {
  background: var(--sw) 0 55% / 100% 92% no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 .16em; margin: 0 -.04em; color: #fff;
}
.swash.s-mango { background-image: var(--sw-mango); color: var(--ink); }
.swash.s-teal { background-image: var(--sw-teal); }
.play .swash.s-mango { text-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .swash { animation: brush .8s .35s cubic-bezier(.6,.05,.25,1) both; }
}
@keyframes brush { from { background-size: 0% 92%; } to { background-size: 100% 92%; } }

/* buttons: chunky like the in-game ones */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--green); color: #fff; text-decoration: none; cursor: pointer;
  border: 4px solid var(--ink); border-radius: 22px;
  box-shadow: 0 7px 0 var(--ink), inset 0 -6px 0 var(--green-dark), inset 0 6px 0 rgba(255,255,255,.28);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--ink), inset 0 -6px 0 var(--green-dark), inset 0 6px 0 rgba(255,255,255,.28); }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink), inset 0 -4px 0 var(--green-dark); }
.btn-big { padding: 12px 40px 16px; min-width: 260px; }
.btn-top { font-weight: 900; font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; opacity: .92; }
.btn-main { font-size: 34px; line-height: 1; text-shadow: 0 3px 0 rgba(0,0,0,.18); }
.btn-sm { white-space: nowrap; padding: 6px 18px 8px; font-family: "Lilita One"; font-size: 18px; border-width: 3px; box-shadow: 0 4px 0 var(--ink), inset 0 -4px 0 var(--green-dark); }

.kicker { display: inline-block; margin: 0; padding: 6px 16px 8px; font-size: 18px; color: var(--ink);
  background: var(--mango); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); transform: rotate(-2deg); }
.kicker.k-teal { background: var(--teal); color: #fff; }
.kicker.k-pink { background: #fff; color: var(--pink); }

/* top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 8px max(16px, env(safe-area-inset-left)) 8px max(16px, env(safe-area-inset-right));
  background: rgba(43,26,61,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 3px solid var(--ink);
}
.top nav { display: flex; align-items: center; gap: 22px; }
.top nav a:not(.btn) { text-decoration: none; font-weight: 900; opacity: .9; }
.top nav a:not(.btn):hover { opacity: 1; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

/* ---------- hero: sky + street ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, #2fe0fd 45%, var(--sky) 100%);
  color: var(--ink);
}
.hero-in {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px;
  max-width: 1160px; margin: 0 auto; padding: 50px 24px 0;
}
.hero h1 { color: #fff; text-shadow:
  4px 0 0 var(--ink), -4px 0 0 var(--ink), 0 4px 0 var(--ink), 0 -4px 0 var(--ink),
  3px 3px 0 var(--ink), -3px 3px 0 var(--ink), 3px -3px 0 var(--ink), -3px -3px 0 var(--ink), 0 9px 0 var(--ink); }
.hero h1 .swash { text-shadow: inherit; }
.lead { font-size: 21px; font-weight: 800; max-width: 30ch; margin: 0 0 28px; opacity: .92; }
.hero .lead { color: #173a4c; opacity: 1; }
.hero .small { color: #173a4c; opacity: .85; font-weight: 800; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.phone {
  justify-self: center; width: min(330px, 78vw); aspect-ratio: 9/19.5; margin-bottom: -150px;
  border: 10px solid #15101d; border-radius: 52px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 4px var(--ink), 0 30px 60px rgba(10,60,90,.35);
  transform: rotate(3deg); position: relative; z-index: 3;
}
.phone video { width: 100%; height: 100%; object-fit: cover; }

.street { position: relative; z-index: 1; height: clamp(150px, 21vw, 290px); margin-top: 10px;
  border-bottom: 4px solid var(--ink); }
.street-gray, .street-color { position: absolute; inset: 0; background: url(assets/street_gray.webp) center bottom / auto 100% repeat-x; }
.street-color { background-image: url(assets/street.webp); clip-path: inset(0 0 0 0); }
.street-roller { position: absolute; bottom: 8%; left: 100%; width: clamp(90px, 11vw, 150px); opacity: 0; pointer-events: none;
  filter: drop-shadow(0 8px 6px rgba(0,0,0,.25)); }
@media (prefers-reduced-motion: no-preference) {
  .street-color { animation: paintStreet 3.4s 1s cubic-bezier(.45,.05,.4,1) both; }
  .street-roller { animation: rollStreet 3.4s 1s cubic-bezier(.45,.05,.4,1) both; }
}
@keyframes paintStreet { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rollStreet {
  0% { left: -12%; opacity: 1; transform: rotate(-8deg); }
  50% { transform: rotate(4deg) translateY(-6px); }
  92% { opacity: 1; }
  100% { left: 100%; opacity: 0; transform: rotate(-8deg); }
}

/* floating paint drops and clouds */
.drop { position: absolute; z-index: 1; width: 34px; height: 34px; border: 3px solid var(--ink);
  border-radius: 0 50% 50% 50%; transform: rotate(45deg); box-shadow: inset -5px -5px 0 rgba(0,0,0,.12); }
.drop::after { content: ""; position: absolute; width: 30%; height: 30%; left: 28%; top: 28%; border-radius: 50%; background: rgba(255,255,255,.7); }
.d1 { background: var(--pink); left: 2%; top: 46%; }
.d2 { background: var(--mango); left: 46%; top: 9%; width: 24px; height: 24px; }
.d3 { background: #7a5cf0; right: 3%; top: 54%; width: 28px; height: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .drop { animation: bob 4s ease-in-out infinite; } .d2 { animation-delay: -1.3s; } .d3 { animation-delay: -2.4s; }
  .cloud { animation: drift 40s linear infinite alternate; }
}
@keyframes bob { 50% { translate: 0 -10px; } }
@keyframes drift { to { translate: 80px 0; } }
.cloud { position: absolute; z-index: 0; width: 180px; height: 56px; background: #fff; border-radius: 40px; opacity: .95; }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 80px; height: 80px; left: 26px; top: -40px; }
.cloud::after { width: 64px; height: 64px; left: 90px; top: -28px; }
.c1 { left: 30%; top: 12%; transform: scale(.7); }
.c2 { right: 20%; top: 8%; transform: scale(.6); }

/* ---------- how to play ---------- */
.play { position: relative; background: var(--cream); color: var(--ink); padding: 70px 24px 110px; text-align: center; }
.section-title { max-width: 900px; margin: 0 auto 50px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1100px; margin: 0 auto; }
.step { position: relative; background: #fff; border: 4px solid var(--ink); border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink); padding: 18px 18px 24px; text-align: left; transition: transform .2s ease; }
.step:nth-child(1) { transform: rotate(-1.2deg); } .step:nth-child(3) { transform: rotate(1.2deg); }
.step:hover { transform: translateY(-6px) rotate(0); }
.step img { border-radius: 18px; border: 3px solid var(--ink); aspect-ratio: 9/14; object-fit: cover; object-position: top; width: 100%; }
.step .num { position: absolute; top: -20px; left: -16px; width: 56px; height: 56px; display: grid; place-items: center;
  font-size: 30px; color: #fff; background: var(--pink); border: 4px solid var(--ink); border-radius: 50%; box-shadow: 0 4px 0 var(--ink); }
.step:nth-child(2) .num { background: #7a5cf0; } .step:nth-child(3) .num { background: var(--green); }
.step p { margin: 0; color: #6b4e3c; }

/* paint drips: the section above runs down into the next one */
.drips-cream, .drips-night, .drips-pink { position: relative; }
.drips-cream::before, .drips-night::before, .drips-pink::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: clamp(60px, 8vw, 110px);
  background: url(assets/drips-cream.svg) top / 100% 100% no-repeat; pointer-events: none; z-index: 2; }
.drips-night::before { background-image: url(assets/drips-night.svg); }
.drips-pink::before { background-image: url(assets/drips-pink.svg); }

/* ---------- murals marquee ---------- */
.murals { padding: 130px 0 80px; overflow: hidden; }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px 46px; max-width: 1000px; margin: 0 auto 50px; padding: 0 24px; text-align: center; }
.facts div { display: flex; flex-direction: column; align-items: center; }
.facts b { font-family: "Lilita One"; font-weight: 400; font-size: clamp(54px, 7vw, 84px); line-height: 1; color: var(--mango);
  text-shadow: 0 6px 0 rgba(0,0,0,.25); }
.facts div:nth-child(2) b { color: var(--pink); } .facts div:nth-child(3) b { color: var(--teal); }
.facts span { font-weight: 900; font-size: 18px; opacity: .9; }
.mrow { display: flex; width: max-content; gap: 18px; padding: 10px 0; }
.mrow + .mrow { margin-top: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .mrow { animation: slide 80s linear infinite; }
  .mrow.rev { animation-direction: reverse; animation-duration: 95s; }
  .murals:hover .mrow { animation-play-state: paused; }
}
@keyframes slide { to { transform: translateX(-50%); } }
.mt { flex: 0 0 auto; width: 150px; text-decoration: none; color: var(--ink); background: var(--cream); border: 3px solid var(--ink);
  border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 12px 10px 10px; text-align: center; transition: transform .15s ease; }
.mt:nth-child(odd) { transform: rotate(-2deg); } .mt:nth-child(even) { transform: rotate(1.5deg); }
.mt:hover { transform: translateY(-6px) scale(1.04); }
.mt img { width: 110px; height: 110px; margin: 0 auto; object-fit: contain; image-rendering: pixelated; }
.mt span { display: block; margin-top: 6px; font: 400 17px/1.1 "Lilita One", sans-serif; }
.mt em { display: block; font-style: normal; font-size: 12px; font-weight: 900; color: #a07a62; }

/* ---------- the town ---------- */
.town { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center;
  max-width: 1160px; margin: 0 auto; padding: 50px 24px 130px; }
.town-media { justify-self: center; width: min(350px, 80vw); aspect-ratio: 9/16; border-radius: 40px; overflow: hidden;
  border: 5px solid var(--ink); box-shadow: 0 10px 0 var(--ink), 0 30px 70px rgba(0,0,0,.5); transform: rotate(-2.5deg); }
.town-media video { width: 100%; height: 100%; object-fit: cover; }
.town-copy h2 { margin-top: 16px; }
.town-copy > p { font-size: 20px; opacity: .92; max-width: 46ch; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.card { display: flex; flex-direction: column; gap: 10px; color: var(--ink);
  background: var(--cream); border: 4px solid var(--ink); border-radius: 24px; box-shadow: 0 7px 0 var(--ink); padding: 14px; }
.card img { border-radius: 16px; border: 3px solid var(--ink); aspect-ratio: 16/10; object-fit: cover; object-position: center 30%; width: 100%; }
.card h3 { font-size: 22px; margin: 2px 0 4px; }
.card p { margin: 0; color: #6b4e3c; font-size: 16px; }
.card.season { background: #e9f6ff; }

/* ---------- stuck? solutions ---------- */
.stuck { background: var(--pink); color: #fff; padding: 130px 24px 120px; }
.stuck-in { max-width: 1060px; margin: 0 auto; display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center; }
.stuck h2 { text-shadow: 0 5px 0 rgba(59,36,22,.35); margin-top: 14px; }
.stuck p { font-size: 20px; max-width: 44ch; }
.jump { display: flex; gap: 12px; margin: 22px 0 14px; flex-wrap: wrap; }
.jump input { font: 400 24px "Lilita One", sans-serif; width: 210px; padding: 10px 16px; border-radius: 18px; border: 4px solid var(--ink);
  background: var(--cream); color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.jump .btn-sm { font-size: 22px; padding: 8px 22px 10px; }
.links a { font-weight: 900; }
.stuck-board { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none;
  background: var(--cream); border: 4px solid var(--ink); border-radius: 30px; box-shadow: 0 10px 0 var(--ink); padding: 22px 22px 16px;
  transform: rotate(3deg); transition: transform .2s ease; color: var(--ink); }
.stuck-board:hover { transform: rotate(0) translateY(-6px); }
.stuck-board img { width: 220px; height: 220px; image-rendering: pixelated; object-fit: contain; }
.stuck-board span { font: 400 22px "Lilita One", sans-serif; }

/* ---------- gallery ---------- */
.gallery { padding: 120px 0 90px; }
.rail { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 24px 24px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail img { flex: 0 0 auto; width: 230px; border-radius: 26px; border: 4px solid var(--ink); box-shadow: 0 8px 0 var(--ink); scroll-snap-align: center; }
@media (min-width: 1200px) { .rail { justify-content: center; } }

/* ---------- final call ---------- */
.final { position: relative; min-height: 600px; display: grid; place-items: end center; overflow: hidden; text-align: center; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.final::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(43,26,61,.9) 0%, rgba(43,26,61,0) 26%, rgba(43,26,61,0) 45%, rgba(43,26,61,.92) 82%); }
.final-copy { position: relative; z-index: 1; padding: 0 24px 64px; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.final-copy h2 { color: #fff; text-shadow:
  3px 0 0 var(--ink), -3px 0 0 var(--ink), 0 3px 0 var(--ink), 0 -3px 0 var(--ink),
  2px 2px 0 var(--ink), -2px 2px 0 var(--ink), 2px -2px 0 var(--ink), -2px -2px 0 var(--ink), 0 7px 0 var(--ink); }

/* ---------- support ---------- */
.support { background: var(--cream); color: var(--ink); padding: 130px max(24px, calc((100% - 760px) / 2)) 80px; }
.support a:not(.btn) { color: #d23a7e; }
.btn-contact { padding: 10px 32px 14px; }
.btn-contact .btn-main { font-size: 26px; }
.support details { background: #fff; border: 3px solid var(--ink); border-radius: 18px; padding: 14px 18px; margin: 12px 0; box-shadow: 0 4px 0 var(--ink); }
.support summary { cursor: pointer; font-weight: 900; }
.support details p { margin: 10px 0 2px; color: #6b4e3c; }

/* ---------- footer ---------- */
.foot { text-align: center; padding: 40px 24px 56px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.foot img { border-radius: 14px; border: 3px solid var(--ink); }
.foot p { margin: 4px 0; }
.foot a { opacity: .85; }

/* ---------- phones and tablets ---------- */
@media (max-width: 860px) {
  .top nav a:not(.btn) { display: none; }
  .hero-in { grid-template-columns: 1fr; text-align: center; padding: 30px 16px 0; gap: 26px; }
  .lead { margin-left: auto; margin-right: auto; }
  .cta { align-items: center; }
  .phone { transform: none; width: min(270px, 70vw); margin-bottom: -110px; }
  .c1, .c2 { display: none; }
  .hero h1 { font-size: clamp(42px, 12vw, 58px); }
  .play { padding: 60px 16px 90px; }
  .steps { grid-template-columns: 1fr; max-width: 420px; }
  .step:nth-child(n) { transform: none; }
  .murals { padding: 100px 0 60px; }
  .mt { width: 120px; } .mt img { width: 88px; height: 88px; }
  .town { grid-template-columns: 1fr; text-align: center; padding: 40px 16px 100px; gap: 34px; }
  .town-copy > p { margin-left: auto; margin-right: auto; }
  .cards { grid-template-columns: 1fr; text-align: left; }
  .stuck { padding: 100px 16px 90px; }
  .stuck-in { grid-template-columns: 1fr; text-align: center; gap: 36px; }
  .stuck p { margin-left: auto; margin-right: auto; }
  .jump { justify-content: center; }
  .stuck-board img { width: 170px; height: 170px; }
  .rail { padding: 10px 16px 24px; }
  .rail img { width: 200px; }
  .final { min-height: 480px; }
  .support { padding-top: 100px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
