/* Rush Party – static game page. Self-contained: no external requests. */

@font-face { font-family: "Fredoka"; font-weight: 400; font-display: swap; src: url("fonts/fredoka-400.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 500; font-display: swap; src: url("fonts/fredoka-500.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 600; font-display: swap; src: url("fonts/fredoka-600.woff2") format("woff2"); }
@font-face { font-family: "Lilita One"; font-weight: 400; font-display: swap; src: url("fonts/lilita-one-400.woff2") format("woff2"); }

:root {
  --night: #170a36;
  --plum: #2d1368;
  --plum-2: #3b1d85;
  --yellow: #ffc21a;
  --yellow-hi: #ffd84d;
  --blue: #2f6bff;
  --ink: #ece5ff;
  --ink-dim: #bcaee6;
  --line: rgba(255, 255, 255, .14);

  --rush: #ff8a3d;
  --vip: #8b5cf6;
  --coin: #e3b53b;
  --boss: #d11f3a;

  --display: "Lilita One", "Arial Rounded MT Bold", Impact, sans-serif;
  --body: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(1200px 700px at 20% -10%, #4a22a6 0%, transparent 60%), var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
}
img, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--yellow-hi); }
:focus-visible { outline: 3px solid var(--yellow-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: .01em; }
h2 { font-size: clamp(2rem, 5vw, 3.1rem); color: var(--yellow-hi); margin-bottom: .6em; }
h3 { font-size: 1.35rem; color: #fff; }
p { margin: 0 0 1em; max-width: 68ch; }

section { padding-block: clamp(40px, 6vw, 72px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1.05rem/1 var(--body); text-decoration: none; cursor: pointer;
  padding: .95em 1.5em; border-radius: 999px; border: 0; color: #fff;
  background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px var(--line);
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: rgba(255, 255, 255, .2); transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn-play {
  position: relative; overflow: hidden;
  font: 400 clamp(1.8rem, 5vw, 2.6rem)/1 var(--display); letter-spacing: .04em;
  color: #2b1a00; padding: .55em 1.9em;
  background: linear-gradient(#ffe36e, var(--yellow));
  box-shadow: 0 6px 0 #b27a00, 0 14px 30px rgba(255, 194, 26, .35);
}
.btn-play:hover { background: linear-gradient(#fff08f, #ffcb33); }
.btn-play:active { box-shadow: 0 2px 0 #b27a00, 0 6px 14px rgba(255, 194, 26, .3); }
.btn-play::after {
  content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent);
  transform: skewX(-18deg); animation: shine 3.6s ease-in-out infinite 1.2s;
}
@keyframes shine { 0% { left: -60%; } 40%, 100% { left: 130%; } }
.btn-sm { padding: .65em 1.1em; font-size: .95rem; }
.btn-play.btn-sm { font-size: 1.15rem; padding: .45em 1.2em; box-shadow: 0 4px 0 #b27a00; }

/* ---------- top bar ---------- */
.bar { padding-block: 14px; }
.bar .wrap { display: flex; align-items: center; gap: 12px; }
.studio { font: 600 1.05rem var(--body); color: var(--ink); text-decoration: none; margin-right: auto; }
.studio span { color: var(--ink-dim); font-weight: 400; }

/* ---------- hero banner ---------- */
.hero { padding-block: 0 clamp(16px, 3vw, 32px); }
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: clamp(20px, 3vw, 36px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 3px rgba(255, 194, 26, .55);
  background: #2d1368;
}
.banner::before {              /* real in-game frame, blurred, as the backdrop */
  content: ""; position: absolute; inset: -30px; z-index: -2;
  background: url("screenshots/shot-02.jpg") center 30% / cover;
  filter: blur(14px) saturate(1.25); opacity: .85;
}
.banner::after {               /* purple wash so the logo and button stay readable */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 480px at 28% 45%, rgba(122, 63, 216, .55), transparent 70%),
    linear-gradient(100deg, rgba(23, 10, 54, .92) 0%, rgba(45, 19, 104, .78) 48%, rgba(45, 19, 104, .35) 100%);
}
.banner-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(20px, 4vw, 56px); align-items: center;
  padding: clamp(28px, 4.5vw, 64px) clamp(20px, 5vw, 72px);
}
.banner-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.logo { width: min(100%, 520px); filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .45)); }
.tag { font: 400 clamp(1.4rem, 3vw, 2rem)/1.2 var(--display); color: #fff; margin: 0; max-width: 24ch; text-wrap: balance; }
.banner-copy small { color: var(--ink); opacity: .85; font-size: .98rem; }

.phone-wrap { position: relative; justify-self: center; width: min(100%, 272px); }
.phone {
  position: relative; aspect-ratio: 390 / 844; border-radius: 36px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 7px #0c0620, 0 0 0 9px rgba(255, 255, 255, .22), 0 0 70px rgba(255, 194, 26, .28), 0 26px 50px rgba(0, 0, 0, .55);
}
.phone video { width: 100%; height: 100%; object-fit: cover; }
.vctl {
  position: absolute; right: 12px; bottom: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(23, 10, 54, .72); color: #fff; display: grid; place-items: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3);
}
.vctl:hover { background: rgba(23, 10, 54, .9); }
.vctl svg { width: 16px; height: 16px; }
.vctl .ic-play { display: none; }
.vctl[aria-pressed="true"] .ic-play { display: block; }
.vctl[aria-pressed="true"] .ic-pause { display: none; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: clamp(28px, 5vw, 64px); grid-template-columns: 1.4fr 1fr; align-items: start; }
.facts { margin: 0; padding: 22px 24px; background: var(--plum); border-radius: 22px; box-shadow: inset 0 0 0 2px var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-dim); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.short { font-size: 1.3rem; color: #fff; }

/* ---------- screenshots ---------- */
.gallery { display: flex; gap: 20px; overflow-x: auto; padding: 8px var(--gutter) 28px; margin-inline: calc(-1 * var(--gutter)); scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-color: var(--plum-2) transparent; }
.shot { flex: 0 0 min(62vw, 250px); margin: 0; scroll-snap-align: start; }
.shot .frame { border-radius: 28px; overflow: hidden; background: #000; box-shadow: 0 0 0 6px #0c0620, 0 0 0 8px rgba(255, 255, 255, .18), 0 18px 40px rgba(0, 0, 0, .45); aspect-ratio: 390 / 844; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 18px; text-align: center; color: var(--ink-dim); font-size: .98rem; }

/* ---------- features ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px 48px; grid-template-columns: repeat(2, 1fr); }
.features li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.features p { margin: .25em 0 0; color: var(--ink-dim); }
.dot { width: 32px; height: 32px; margin-top: 2px; }

/* ---------- special levels ---------- */
.specials { display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.sp { --c: var(--rush); position: relative; border-radius: 24px; overflow: hidden; background: color-mix(in srgb, var(--c) 30%, #1b0c3e); box-shadow: 0 0 0 4px var(--c), 0 16px 34px rgba(0, 0, 0, .4); display: flex; flex-direction: column; }
.sp-art { aspect-ratio: 1 / 1; overflow: hidden; background: #000; }
.sp-art img { width: 100%; height: 100%; object-fit: cover; }
.sp-badge { position: absolute; top: 12px; left: 12px; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 0 rgba(0, 0, 0, .25), 0 0 0 3px var(--c); }
.sp-badge svg { width: 28px; height: 28px; }
.sp-body { padding: 14px 18px 18px; }
.sp-body h3 { font-size: 1.55rem; }
.sp-body p { margin: .3em 0 0; color: #fff; opacity: .92; font-size: .95rem; line-height: 1.35; }
.sp.rush { --c: #ff8a3d; }
.sp.vip  { --c: #a56bff; }
.sp.coin { --c: #f2c230; }
.sp.boss { --c: #e0243f; }

.sub { color: var(--ink-dim); margin-top: 36px; }
.themes { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.themes li { padding: .45em 1em; border-radius: 999px; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px var(--line); }

/* ---------- how to play (a real sequence → numbered) ---------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.steps li { counter-increment: s; position: relative; padding: 64px 4px 0 0; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font: 400 1.6rem/1 var(--display); color: #2b1a00; background: var(--yellow);
  box-shadow: 0 4px 0 #b27a00;
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 60px; right: 12px; height: 4px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 20px); }
.steps li:last-child::after { display: none; }
.steps p { margin: .4em 0 0; color: var(--ink-dim); }
.tips { margin-top: 36px; padding: 18px 22px; border-radius: 18px; background: rgba(47, 107, 255, .18); box-shadow: inset 0 0 0 2px rgba(47, 107, 255, .5); max-width: none; }

/* ---------- where to play: icons only ---------- */
.platforms { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.platform {
  width: 104px; height: 104px; border-radius: 30px; display: grid; place-items: center; text-decoration: none;
  background: linear-gradient(160deg, var(--plum-2), var(--plum)); box-shadow: inset 0 0 0 2px var(--line), 0 10px 24px rgba(0, 0, 0, .35);
  transition: transform .12s ease, box-shadow .12s ease;
}
.platform svg { width: 66px; height: 66px; }
a.platform { cursor: pointer; }
a.platform:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 3px var(--yellow), 0 14px 28px rgba(0, 0, 0, .4); }

/* ---------- contact + footer ---------- */
.contact { text-align: center; }
.contact p { margin-inline: auto; color: var(--ink-dim); }
.contact .btn { font-size: 1.2rem; padding: 1em 1.8em; background: var(--blue); box-shadow: 0 5px 0 #1c45a8; }
.contact .btn:hover { background: #4a7fff; }
.mail { display: block; margin-top: 16px; color: var(--ink-dim); }
footer { padding-block: 32px 48px; border-top: 1px solid var(--line); color: var(--ink-dim); font-size: .95rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- small screens ---------- */
@media (max-width: 1000px) {
  .specials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .banner-grid { grid-template-columns: 1fr; text-align: center; }
  .banner-copy { align-items: center; }
  .banner::after { background: linear-gradient(180deg, rgba(23, 10, 54, .88), rgba(45, 19, 104, .6)); }
  .phone-wrap { width: min(70%, 250px); }
  .about-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 18px; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .studio span { display: none; }
  .specials { gap: 14px; }
  .sp-body { padding: 12px 14px 16px; }
  .sp-body h3 { font-size: 1.3rem; }
  .sp-body p { font-size: .92rem; }
  .sp-badge { width: 38px; height: 38px; top: 8px; left: 8px; }
  .sp-badge svg { width: 22px; height: 22px; }
  .platform { width: 88px; height: 88px; border-radius: 26px; }
  .platform svg { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-play::after { animation: none; display: none; }
  .btn { transition: none; }
}
