/* Paint Rush game page. Layered on /assets/site.css + paint.css (color tokens, paper canvas). */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gwrap { width: min(1080px, 100% - 32px); margin-inline: auto; }

.game-page h2 { font-size: clamp(2rem, 5vw, 3rem); color: var(--ink); }
.game-page .kicker {
  display: inline-block; margin: 0 0 10px;
  font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pr-blue);
}
.game-page section { padding: clamp(48px, 8vw, 84px) 0; }
.game-page .intro { max-width: 40em; color: var(--ink-soft); font-size: 1.1rem; margin: 14px 0 0; }

/* ---------- Hero ---------- */

.g-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; padding-top: 60px !important; }

.g-hero .art { position: relative; }
.g-hero .art .logo {
  display: block; width: 100%; height: auto;
  border-radius: 30px; border: 6px solid #fff;
  box-shadow: 0 30px 60px -30px rgba(14, 43, 190, .5);
  transform: rotate(-2deg);
}
.g-hero .art .blob { position: absolute; height: auto; filter: drop-shadow(0 8px 8px rgba(0,0,0,.2)); animation: bob 2.8s ease-in-out infinite; }
.g-hero .art .b1 { width: 74px; left: -18px; bottom: -26px; }
.g-hero .art .b2 { width: 58px; right: 8%; top: -30px; animation-delay: -.9s; }
.g-hero .art .b3 { width: 66px; right: -18px; bottom: 12%; animation-delay: -1.7s; }

@keyframes bob { 50% { transform: translateY(-10px) rotate(4deg); } }

.g-hero h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); line-height: 1; color: var(--ink); }
.g-hero h1 .m { color: var(--pr-purple); }
.g-hero h1 .s { color: var(--pr-red); }
.g-hero h1 .h { color: var(--pr-blue); }
.g-hero .lede { font-size: 1.15rem; color: var(--ink-soft); margin: 18px 0 0; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; }
.facts li { font-weight: 800; font-size: .9rem; padding: 4px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--pr-sky); color: var(--pr-blue); }

.cta { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 24px; }
.cta .soon {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 1.15rem; color: #fff;
  padding: 10px 22px 8px; border-radius: 999px;
  background: linear-gradient(180deg, #3a5cf0, var(--pr-blue));
  box-shadow: inset 0 3px 0 rgba(255,255,255,.35), inset 0 -4px 0 rgba(0,0,0,.25), 0 10px 20px -10px rgba(14,43,190,.8);
}
.cta .soon small { font-family: var(--body); font-weight: 800; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }

/* ---------- Color mixing ---------- */

.mix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.eq {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; justify-items: center;
  gap: 4px 8px; margin: 0;
  padding: 22px 16px 16px; border-radius: 26px; background: #fff;
  border: 3px solid var(--pr-sky);
}
.eq img { height: 64px; width: auto; filter: drop-shadow(0 6px 6px rgba(0,0,0,.15)); }
.eq .op { font-family: var(--display); font-size: 2rem; color: #9fb4c4; line-height: 1; }
/* "=" and the result each take a full row, so every card has the same shape */
.eq > :nth-child(4), .eq > img.out, .eq figcaption { grid-column: 1 / -1; }
.eq > :nth-child(4) { transform: rotate(90deg); font-size: 1.6rem; }
.eq img.out { height: 84px; animation: bob 2.4s ease-in-out infinite; }
.eq figcaption { text-align: center; font-weight: 800; color: var(--ink-soft); margin-top: 6px; }

/* ---------- How to play ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; counter-reset: step; }
.step {
  position: relative; padding: 26px 22px 24px; border-radius: 26px;
  background: var(--pr-panel); border: 4px solid #fff4dc; outline: 3px solid var(--pr-panel-edge);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -18px; left: 18px;
  width: 44px; height: 44px; display: grid; place-items: center;
  font-family: var(--display); font-size: 1.5rem; color: #fff; border-radius: 50%;
  background: var(--pr-orange); box-shadow: inset 0 -4px 0 rgba(0,0,0,.2), 0 6px 12px -4px rgba(0,0,0,.35);
}
.step:nth-child(2)::before { background: var(--pr-green); }
.step:nth-child(3)::before { background: var(--pr-purple); }
.step img { display: block; height: 96px; width: auto; margin: 4px auto 14px; }
.step .hexart { position: relative; display: block; width: max-content; margin: 4px auto 14px; }
.step .hexart img { margin: 0; }
.step .hexart img:first-child { filter: brightness(.55) sepia(.7) saturate(1.4); }
.step .hexart .in { position: absolute; left: 50%; top: 50%; height: 46px; transform: translate(-50%, -50%); }
.step h3 { font-size: 1.4rem; color: var(--ink); }
.step p { margin: 6px 0 0; color: #4a4030; }

/* ---------- Countdown ---------- */

.clock {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 5vw, 48px); align-items: center;
  margin-top: 8px; padding: clamp(24px, 5vw, 40px); border-radius: 30px;
  background: linear-gradient(160deg, #13206e, var(--pr-blue));
  color: #e9eeff; overflow: hidden; position: relative;
}
.clock .score {
  font-family: var(--display); font-weight: 800; line-height: 1;
  font-size: clamp(4rem, 14vw, 8rem); color: #fff; letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 6px 0 rgba(0,0,0,.25);
}
.clock .score.tick { animation: tick .35s ease-out; }
@keyframes tick { from { color: var(--pr-yellow); transform: scale(1.03); } }
.clock h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.clock p { margin: 10px 0 0; color: #c9d3ff; }
.clock .bonuses { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.clock .bonuses figure { margin: 0; text-align: center; width: 92px; }
.clock .bonuses img { width: 56px; height: 56px; filter: drop-shadow(0 4px 4px rgba(0,0,0,.35)); }
.clock .bonuses figcaption { font-size: .78rem; font-weight: 800; line-height: 1.2; color: #e9eeff; margin-top: 4px; }

/* ---------- Worlds ---------- */

.worlds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; list-style: none; padding: 0; }
.world {
  position: relative; aspect-ratio: 1 / 1.08; border-radius: 24px; overflow: hidden;
  background: #ddd center / cover no-repeat;
  border: 5px solid #fff; box-shadow: 0 18px 34px -22px rgba(0,0,0,.55);
  transition: transform .25s cubic-bezier(.3,1.5,.5,1);
}
.world:hover { transform: translateY(-4px) rotate(-1deg); }
.world .t { position: absolute; left: 8%; right: 8%; top: 9%; width: 84%; height: auto; filter: drop-shadow(0 3px 0 rgba(255,255,255,.6)); }
.world .p { position: absolute; right: 6%; bottom: 14%; width: 58%; height: auto; }
.world .n {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 8px 12px; font-weight: 800; font-size: .9rem; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.world .n b { font-family: var(--display); font-size: 1.15rem; font-weight: 800; }
.w1 { background-image: url("img/worlds/w1-bg.jpg"); }
.w2 { background-image: url("img/worlds/w2-bg.jpg"); }
.w3 { background-image: url("img/worlds/w3-bg.jpg"); background-size: 200% auto; background-repeat: repeat; }
.w4 { background-image: url("img/worlds/w4-bg.jpg"); }
.w5 { background-image: url("img/worlds/w5-bg.jpg"); }
.w6 { background-image: url("img/worlds/w6-bg.jpg"); }
.w7 { background-image: url("img/worlds/w7-bg.jpg"); }
.w8 {
  background:
    radial-gradient(1.5px 1.5px at 20% 30%, #fff 50%, transparent),
    radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent),
    radial-gradient(1.5px 1.5px at 85% 60%, #fff 50%, transparent),
    radial-gradient(1px 1px at 35% 75%, #fff 50%, transparent),
    radial-gradient(1px 1px at 55% 45%, #fff 50%, transparent),
    radial-gradient(120% 90% at 50% 110%, #232a52, #0c0e1d 70%);
}
.w8 .t { filter: drop-shadow(0 0 6px rgba(255,255,255,.35)); }
.w8 .a { position: absolute; left: 8%; bottom: 20%; width: 26%; height: auto; transform: rotate(-20deg); }
.w3 .p, .w5 .p { width: 44%; }
.w7 .p { width: 52%; }

/* World backdrops load only once the section is revealed, keeping the first burst of
   requests small (the host drops requests beyond ~25 in flight). */
.js .reveal:not(.in) .world { background-image: none; }

/* ---------- Power-ups ---------- */

.powerups { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 32px; list-style: none; padding: 0; }
.powerups li { text-align: center; padding: 18px 12px 20px; border-radius: 24px; background: #fff; border: 3px solid var(--pr-sky); }
.powerups img { height: 88px; width: auto; transition: transform .25s cubic-bezier(.3,1.6,.5,1); }
.powerups li:hover img { transform: scale(1.08) rotate(-6deg); }
.powerups h3 { font-size: 1.2rem; margin-top: 8px; color: var(--ink); }
.powerups p { margin: 4px 0 0; font-size: .95rem; color: var(--ink-soft); line-height: 1.4; }
.drips-note { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--ink-soft); }
.drips-note img { height: 44px; width: auto; }

/* ---------- Feature checklist ---------- */

.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px; list-style: none; padding: 0; margin: 28px 0 0; }
.checks li { position: relative; padding-left: 40px; font-weight: 700; color: var(--ink); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.8) 0 12%, transparent 30%), var(--c, var(--pr-green));
  box-shadow: inset -3px -4px 6px rgba(0,0,0,.2);
}
.checks li:nth-child(6n+1) { --c: var(--pr-red); }
.checks li:nth-child(6n+2) { --c: var(--pr-yellow); }
.checks li:nth-child(6n+3) { --c: var(--pr-blue); }
.checks li:nth-child(6n+4) { --c: var(--pr-green); }
.checks li:nth-child(6n+5) { --c: var(--pr-purple); }
.checks li:nth-child(6n+6) { --c: var(--pr-orange); }
.checks li span { display: block; font-weight: 400; color: var(--ink-soft); font-size: .95rem; }

/* ---------- Closing band ---------- */

.band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: clamp(24px, 5vw, 40px); border-radius: 30px;
  background: #fff; border: 4px solid var(--pr-yellow);
  box-shadow: 0 24px 50px -30px rgba(160, 120, 0, .6);
}
.band img { height: 110px; width: auto; border-radius: 18px; }
.band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.band p { margin: 6px 0 0; color: var(--ink-soft); }

/* ---------- Scroll reveal (only when JS is present) ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .worlds { grid-template-columns: repeat(2, 1fr); }
  .powerups { grid-template-columns: repeat(3, 1fr); }
  .mix, .steps { grid-template-columns: 1fr; }
  .steps { gap: 30px; }
}

@media (max-width: 720px) {
  .g-hero { grid-template-columns: 1fr; }
  .clock { grid-template-columns: 1fr; text-align: left; }
  .powerups { grid-template-columns: repeat(2, 1fr); }
  .band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .world .n { font-size: .8rem; }
  .eq img { height: 52px; } .eq img.out { height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .g-hero .art .blob, .eq img.out, .clock .score.tick { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .world, .powerups img { transition: none; }
}
