/* Prime Hub: colours come straight from the logo tile
   #2898fe top light, #0e6af2 mid, #074cd7 deep, #0230b8 darkest, #e4eaf4 the white P */
:root {
  --b1: #2898fe;
  --b2: #0e6af2;
  --b3: #074cd7;
  --b4: #0230b8;
  --ink: #011a6b;
  --p: #e4eaf4;
  --glass: rgba(255, 255, 255, 0.10);
  --glass-hi: rgba(255, 255, 255, 0.18);
  --edge: rgba(255, 255, 255, 0.22);
  --soft: rgba(228, 234, 244, 0.72);
  --wrap: 1100px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  min-height: 100vh;
  background: var(--b4);
  color: #fff;
  font: 400 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: linear-gradient(160deg, var(--b1) 0%, var(--b2) 28%, var(--b3) 62%, var(--b4) 100%); }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.g1 { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #63b6ff; animation: drift 22s ease-in-out infinite alternate; }
.g2 { width: 40vw; height: 40vw; right: -10vw; bottom: -12vw; background: #001f8a; animation: drift 26s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(6vw, 4vw) scale(1.1); } }
/* A faint wall of game maps behind everything, each map once, washed in logo blue */
.maps { position: absolute; inset: -8% -12%; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  transform: rotate(-7deg); opacity: .3; filter: saturate(.75) blur(1px); }
.maps img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.tint { position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(40,152,254,.45) 0%, rgba(14,106,242,.5) 30%, rgba(7,76,215,.65) 62%, rgba(2,48,184,.85) 100%); }
.grain { position: absolute; inset: 0; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- header ---------- */
.top { position: sticky; top: 14px; z-index: 10; }
.top-in {
  display: flex; align-items: center; gap: 18px; height: 60px; padding: 0 10px 0 12px;
  background: rgba(2, 48, 184, .35); border: 1px solid var(--edge); border-radius: 18px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 20px/1 Rubik, sans-serif; }
.brand img { border-radius: 10px; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 10px; color: var(--soft); font-weight: 500; transition: background-color .15s, color .15s; }
.nav a:hover { background: var(--glass); color: #fff; }
.pill { margin-left: auto; padding: 9px 18px; border-radius: 12px; background: var(--p); color: var(--b4); font-weight: 700; transition: transform .15s; }
.pill:hover { transform: translateY(-1px); }
@media (min-width: 720px) { .nav { display: flex; } .pill { margin-left: 6px; } }

/* ---------- hero ---------- */
.hero { padding: 110px 0 70px; }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .sub { margin-inline: auto; }
.hero .script { margin-inline: auto; width: 100%; text-align: left; }
h1 { font: 900 clamp(44px, 7.2vw, 84px)/.98 Rubik, sans-serif; letter-spacing: -1px; }
.hi { color: var(--ink); background: var(--p); padding: 0 .18em; border-radius: .18em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sub { margin-top: 22px; max-width: 480px; color: var(--soft); font-size: clamp(16px, 1.8vw, 19px); }

.script {
  display: flex; align-items: center; gap: 8px; margin-top: 30px; max-width: 560px; padding: 8px 8px 8px 16px;
  background: rgba(1, 26, 107, .45); border: 1px solid var(--edge); border-radius: 16px;
}
.script code { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 500 13.5px/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--p); }
.copy {
  flex-shrink: 0; height: 42px; padding: 0 20px; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--p); color: var(--b4); font: 700 15px/1 Inter, sans-serif; transition: background-color .15s, transform .1s;
}
.copy:hover { background: #fff; }
.copy:active { transform: scale(.97); }
.copy.ok { background: #7cf0b0; color: #013a20; }
.copy:focus-visible, .nav a:focus-visible, .pill:focus-visible, summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- section titles ---------- */
.block { padding: 64px 0; }
.label { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--edge); font: 900 clamp(32px, 4.6vw, 52px)/1 Rubik, sans-serif; }

/* ---------- games: upright glass tiles, 2 per row on phones and 5 on wide screens (10 fills evenly) ---------- */
.games { list-style: none; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 980px) { .games { grid-template-columns: repeat(5, 1fr); gap: 12px; } }
.game, .game a { height: 100%; }
.game a {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px; overflow: hidden;
  background: var(--glass); border: 1px solid var(--edge); border-radius: 18px; transition: background-color .2s, transform .2s;
}
.game a:hover { transform: translateY(-2px); background: var(--glass-hi); }
.game img, .game .txt { position: relative; z-index: 1; }
.game img { width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0; border: 2px solid rgba(255, 255, 255, .7); }
.game .txt { min-width: 0; }
.game b { display: block; font-size: 16px; }
.game small { display: block; color: var(--soft); font-size: 13.5px; line-height: 1.35; }

/* ---------- steps: one strip split in three ---------- */
.steps { list-style: none; counter-reset: s; display: grid; gap: 10px; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 0; background: var(--glass); border: 1px solid var(--edge); border-radius: 20px; } }
.steps li { counter-increment: s; position: relative; padding: 22px 22px 22px 72px; background: var(--glass); border: 1px solid var(--edge); border-radius: 18px; }
@media (min-width: 820px) {
  .steps li { background: none; border: 0; border-radius: 0; }
  .steps li + li { border-left: 1px solid var(--edge); }
}
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 22px; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 11px; background: var(--p); color: var(--b4); font: 900 18px/1 Rubik, sans-serif;
}
.steps b { display: block; font-size: 17px; }
.steps span { color: var(--soft); font-size: 15px; }
.steps a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- faq: two columns of soft cards ---------- */
.faq { display: grid; gap: 10px; }
@media (min-width: 820px) { .faq { grid-template-columns: 1fr 1fr; align-items: start; } }
.faq details { background: var(--glass); border: 1px solid var(--edge); border-radius: 16px; transition: background-color .2s; }
.faq details[open] { background: var(--glass-hi); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; margin-top: 6px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); rotate: 45deg; transition: rotate .2s; flex-shrink: 0; }
.faq details[open] summary::after { rotate: 225deg; margin-top: 10px; }
.faq p { padding: 0 18px 16px; color: var(--soft); }

/* ---------- footer ---------- */
.foot { padding: 30px 0 40px; color: var(--soft); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--edge); padding-top: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
