/* Voltquiz public site: the app's night-violet palette, yellow accent, Outfit for headings. */
:root {
  --bg-top: #2a1366; --bg-mid: #170a3d; --bg-bottom: #0d0729; --text: #f6f3ff; --muted: #b8aee0; --dim: #8a80b8;
  --accent: #ffc72e; --orange: #ff8c33; --pink: #ff5c8f; --violet: #9b6bff;
  --card: rgba(255, 255, 255, .06); --stroke: rgba(255, 255, 255, .12); --radius: 24px;
  --display: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  background: radial-gradient(1200px 700px at 80% -10%, #4a1fa0 0, transparent 60%) no-repeat,
              linear-gradient(180deg, var(--bg-top) 0, var(--bg-mid) 900px, var(--bg-bottom) 2400px) no-repeat var(--bg-bottom); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; letter-spacing: -.5px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.grad { background: linear-gradient(110deg, var(--accent), var(--orange) 55%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { color: var(--accent); font: 700 13px/1 var(--display); letter-spacing: 1.8px; text-transform: uppercase; margin-bottom: 14px; }
.sec-p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 14px 0 0; }
.card { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--radius); }
.muted { color: var(--dim); font-weight: 500; }
section.wrap { padding-top: 110px; scroll-margin-top: 70px; }

/* nav */
nav.top { position: sticky; top: 0; z-index: 30; background: rgba(23, 10, 61, .72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
nav.top .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font: 800 21px/1 var(--display); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.brand.small { font-size: 16px; } .brand.small img { width: 26px; height: 26px; border-radius: 8px; }
.links { display: flex; gap: 24px; margin-left: auto; }
.links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--text); }
.btn-get { text-decoration: none; background: var(--accent); color: #1c0c45; font: 800 15px/1 var(--display); padding: 11px 18px; border-radius: 99px; box-shadow: 0 6px 18px rgba(255, 199, 46, .3); }
.btn-get:hover { filter: brightness(1.06); }

/* language picker (shared with the legal pages) */
.langpick { position: relative; }
.lp-btn { display: flex; align-items: center; gap: 7px; background: var(--card); border: 1px solid var(--stroke); color: var(--text); border-radius: 99px; padding: 7px 12px; font: 600 14px/1 inherit; cursor: pointer; }
.lp-btn:hover { border-color: rgba(255, 255, 255, .3); }
.lp-flag { font-size: 16px; line-height: 1; }
.lp-list { display: none; position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; width: 220px; max-height: min(70vh, 460px); overflow: auto;
  background: #1f1150; border: 1px solid var(--stroke); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); z-index: 40; }
.langpick.open .lp-list { display: block; }
.lp-list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-size: 15px; outline: none; }
.lp-list li:hover, .lp-list li:focus { background: rgba(255, 255, 255, .08); }
.lp-list li[aria-selected] { background: rgba(255, 199, 46, .16); color: var(--accent); font-weight: 700; }

/* hero */
.hero.wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 56px; }
.hero h1 { font-size: clamp(44px, 6.4vw, 80px); font-weight: 800; letter-spacing: -1.5px; }
.lead { font-size: 19px; color: var(--muted); margin: 22px 0 30px; max-width: 560px; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; min-width: 176px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, .3); transition: transform .2s, border-color .2s; }
.store:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .7); }
.store svg { width: 26px; height: 26px; flex-shrink: 0; }
.store span { line-height: 1.1; }
.store small { display: block; font-size: 11px; opacity: .8; }
.store strong { font: 600 19px/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.2px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 40px; max-width: 560px; }
.stats div { background: var(--card); border: 1px solid var(--stroke); border-radius: 18px; padding: 14px 16px; }
.stats b { display: block; font: 800 28px/1.1 var(--display); }
.stats span { color: var(--muted); font-size: 13px; }

.hero-art { position: relative; aspect-ratio: 1 / 1.05; }
.stage { position: absolute; inset: 4% 10% 0; border-radius: 36px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 10px rgba(255, 255, 255, .03); }
.stage-bg { width: 100%; height: 100%; object-fit: cover; }
.stage::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(13, 7, 41, .55)); }
.stage-fox { position: absolute; left: 50%; bottom: -2%; width: 78%; transform: translateX(-50%); z-index: 1; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.float { position: absolute; width: 78px; border-radius: 20px; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .45)); animation: bob 6s ease-in-out infinite; z-index: 2; }
.f1 { left: 0; top: 14%; transform: rotate(-10deg); }
.f2 { right: 0; top: 6%; width: 70px; animation-delay: -2s; }
.f3 { right: 2%; bottom: 26%; width: 66px; animation-delay: -4s; }
.f4 { left: 3%; bottom: 14%; width: 62px; animation-delay: -1s; }
.f5 { left: 46%; top: -2%; width: 54px; animation-delay: -3s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

/* modes */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.mode { position: relative; border-radius: var(--radius); overflow: hidden; background: #1b0d47; border: 1px solid var(--stroke); transition: transform .3s, box-shadow .3s, border-color .3s; }
.mode:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 26px 60px rgba(0, 0, 0, .45), 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.mode-art { position: relative; aspect-ratio: 4 / 3.6; overflow: hidden; }
.mode-art .bg { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.mode:hover .mode-art .bg { transform: scale(1.06); }
.mode-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, #1b0d47 98%); }
.mode-art .fox { position: absolute; left: 50%; bottom: -4%; width: 62%; transform: translateX(-50%); z-index: 1; filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .45)); transition: transform .4s; }
.mode:hover .mode-art .fox { transform: translateX(-50%) translateY(-6px) scale(1.03); }
.tag { position: absolute; top: 12px; right: 12px; z-index: 2; font: 800 11px/1 var(--display); letter-spacing: 1px; text-transform: uppercase; padding: 6px 9px; border-radius: 9px; color: #fff; background: var(--pink); box-shadow: 0 6px 14px rgba(0, 0, 0, .3); }
.tag.multi { background: #ff5c6a; }
.mode-copy { display: flex; gap: 12px; align-items: flex-start; padding: 4px 18px 20px; position: relative; z-index: 1; }
.mode-copy .ico { width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0; margin-top: -2px; }
.mode h3 { font-size: 20px; font-weight: 800; }
.mode p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* jokers */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.split.rev { grid-template-columns: 1.1fr .9fr; }
.jokers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.joker { padding: 20px; }
.joker img { width: 64px; height: 64px; border-radius: 18px; margin-bottom: 12px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)); }
.joker h3 { font-size: 19px; }
.joker p { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }

/* rooms */
.rooms { display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; }
.rooms-art { width: 100%; height: 100%; object-fit: cover; min-height: 320px; }
.rooms-copy { padding: 40px; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 14px; font: 700 17px/1.2 var(--display); counter-increment: s; }
.steps img { width: 52px; height: 52px; }

/* leaderboards */
.ranks-art { display: grid; gap: 22px; justify-items: center; }
.avatars { padding-left: 10px; }
.podium { width: min(380px, 80%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .45)); }
.badges { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.badges img { width: 78px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .4)); }
.avatars { display: flex; justify-content: center; flex-wrap: wrap; }
.avatars img { width: 54px; height: 54px; border-radius: 50%; background: #2b1a66; border: 3px solid var(--bg-mid); margin-left: -10px; }

/* final */
.final { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 36px 44px; overflow: hidden;
  background: radial-gradient(600px 300px at 0 100%, rgba(255, 199, 46, .16), transparent 70%), var(--card); }
.final-fox { width: 190px; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .45)); }
.final h2 { font-size: clamp(30px, 4vw, 44px); }
.final .stores { margin-top: 24px; }

footer.wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 70px; padding-bottom: 50px; color: var(--muted); font-size: 14px; }
.flinks { display: flex; gap: 20px; flex-wrap: wrap; }
.flinks a { text-decoration: none; }
.flinks a:hover { color: var(--text); }

@media (max-width: 1020px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
  .hero.wrap, .split, .split.rev, .rooms { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; width: 100%; margin: 0 auto; }
  .split.rev .ranks-art { order: 2; }
  .rooms-art { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  .links { display: none; }
  .langpick { margin-left: auto; }
  .lp-name { display: none; }
  .btn-get { padding: 10px 14px; font-size: 14px; }
  section.wrap { padding-top: 80px; }
  .hero.wrap { padding-top: 32px; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .modes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mode-copy { flex-direction: column; gap: 8px; padding: 0 12px 14px; }
  .mode-copy .ico { width: 36px; height: 36px; border-radius: 10px; }
  .mode h3 { font-size: 16px; } .mode p { font-size: 13px; }
  .tag { top: 8px; right: 8px; font-size: 9px; padding: 5px 7px; }
  .jokers { grid-template-columns: 1fr 1fr; gap: 10px; }
  .joker { padding: 16px; } .joker img { width: 50px; height: 50px; }
  .rooms-copy { padding: 26px 22px 30px; }
  .final { grid-template-columns: 1fr; padding: 28px 22px; text-align: center; }
  .final-fox { width: 130px; margin: 0 auto; }
  .final .stores { justify-content: center; }
  .float { width: 56px !important; }
  .store { min-width: 0; flex: 1 1 150px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .mode, .mode-art .bg, .mode-art .fox, .store { transition: none; }
}
