/* Pixel Siege — site styles. The world is the game's own (src/head.html): bright plastic toy blocks on a deep grape night,
   Lilita One with a thick ink stroke, Nunito 800/900, chunky bricks with studs and a bottom lip, six candy block colours.
   The page is built like a castle wall: rows of studded bricks split the sections, every title sits on a brick tag. */
:root {
  --ink: #1c1530;
  --bg: #120c2e;
  --bg1: #1b1440;
  --bg2: #241a55;
  --panel: #362a78;
  --panel-d: #2a1f66;
  --panel-l: #4b3a9e;
  --txt: #ffffff;
  --txt-d: #ddd5f7;
  --mist: #b3a9dc;
  --red: #ff5a6a; --red-d: #c8283f;
  --yellow: #ffc83a; --yellow-d: #e58a0c;
  --blue: #36b4ff; --blue-d: #1b6fd6;
  --green: #5bd36b; --green-d: #21944a;
  --purple: #a77bff; --purple-d: #6a3fc4;
  --pink: #ff5fc8; --pink-d: #c42d8c;
  --gold: #ffd84f;
  --energy: #ff5fc8;
  --r0: #5ab4ff; --r1: #ff9b2e; --r2: #b98cff; --r3: #ffd84f;
  --display: 'Lilita One', 'Arial Rounded MT Bold', 'Arial Black', sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gut: clamp(16px, 4vw, 40px);
  --sec: clamp(72px, 10vw, 124px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pop: cubic-bezier(.2, 1.4, .4, 1);
  --pixels: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg opacity='.09'%3E%3Crect x='12' y='18' width='14' height='14' rx='3' fill='%23ff5a6a'/%3E%3Crect x='96' y='8' width='14' height='14' rx='3' fill='%23ffc83a'/%3E%3Crect x='58' y='64' width='14' height='14' rx='3' fill='%2336b4ff'/%3E%3Crect x='130' y='92' width='14' height='14' rx='3' fill='%235bd36b'/%3E%3Crect x='26' y='120' width='14' height='14' rx='3' fill='%23a77bff'/%3E%3Crect x='86' y='132' width='10' height='10' rx='2' fill='%23ff5fc8'/%3E%3C/g%3E%3C/svg%3E");
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; scrollbar-color: var(--panel-l) var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 800 18px/1.55 var(--body); color: var(--txt-d); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 10px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 12px; background: var(--yellow); color: var(--ink); font-weight: 900; text-decoration: none; border: 3px solid var(--ink); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* ---------- type: the game's outlined display letters ---------- */
.h2 { font: 400 clamp(38px, 6vw, 70px)/1.02 var(--display); color: #fff; letter-spacing: .3px; margin-top: 18px;
  -webkit-text-stroke: .15em var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink), 0 .16em .3em rgba(0, 0, 0, .45); text-wrap: balance; }
.h2.big { font-size: clamp(56px, 10vw, 112px); color: var(--yellow); }
.h3big { font: 400 clamp(28px, 3.6vw, 40px)/1.05 var(--display); color: #fff; -webkit-text-stroke: .15em var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink); }
.lead { font-size: clamp(18px, 1.6vw, 20px); line-height: 1.55; max-width: 36em; margin-top: 18px; color: var(--txt-d); text-wrap: pretty; }
h3 { font: 400 clamp(23px, 2.3vw, 28px)/1.08 var(--display); letter-spacing: .2px; color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }

/* the brick tag over each section title: a toy brick with studs, like the game's screen titles */
.tag { --t: var(--yellow); --td: var(--yellow-d); position: relative; display: inline-block; margin-top: 12px; padding: 6px 16px 7px; border-radius: 12px; border: 3px solid var(--ink);
  font: 400 17px/1 var(--display); letter-spacing: 1.2px; text-transform: uppercase; color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  background: linear-gradient(color-mix(in srgb, var(--t) 78%, #fff), var(--td)); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .18), inset 0 2px 0 rgba(255, 255, 255, .4), 0 4px 0 var(--ink); transform: rotate(-2deg); }
.tag::before { content: ''; position: absolute; left: 50%; top: -11px; width: 64%; height: 9px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 40% 100% at 50% 100%, color-mix(in srgb, var(--t) 70%, #fff) 0 92%, transparent 96%) 0 0 / 33.34% 100% repeat-x;
  filter: drop-shadow(0 -2.5px 0 var(--ink)) drop-shadow(2.5px 0 0 var(--ink)) drop-shadow(-2.5px 0 0 var(--ink)); }

/* ---------- toy-brick buttons (the game's .btn) ---------- */
.btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font: 400 23px/1 var(--display); color: #fff; text-decoration: none; letter-spacing: .5px; padding: 13px 28px 14px; border-radius: 18px; cursor: pointer;
  border: 3px solid var(--ink); background: linear-gradient(#ffe066, #ffb21c);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .17), inset 0 3px 0 rgba(255, 255, 255, .5), 0 6px 0 var(--ink), 0 14px 26px rgba(8, 4, 30, .45);
  -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; transition: transform .12s var(--ease), box-shadow .12s var(--ease), filter .2s; }
.btn:hover { filter: brightness(1.06) saturate(1.05); transform: translateY(-2px); box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .17), inset 0 3px 0 rgba(255, 255, 255, .5), 0 8px 0 var(--ink), 0 18px 30px rgba(8, 4, 30, .5); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .17), 0 2px 0 var(--ink), 0 6px 12px rgba(8, 4, 30, .3); }
.btn small { font: 900 13px/1.2 var(--body); -webkit-text-stroke: 0; color: var(--ink); letter-spacing: .2px; }
.btn-xl { font-size: clamp(36px, 4vw, 46px); padding: 15px clamp(36px, 5vw, 60px) 13px; border-radius: 24px; }
/* the studs on top of the big brick, as on the game's BATTLE button */
.btn-xl::before { content: ''; position: absolute; left: 50%; top: -12px; width: 46%; height: 10px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 40% 100% at 50% 100%, #ffe680 0 92%, transparent 96%) 0 0 / 25% 100% repeat-x;
  filter: drop-shadow(0 -2.5px 0 var(--ink)) drop-shadow(2.5px 0 0 var(--ink)) drop-shadow(-2.5px 0 0 var(--ink)); }
.btn-sm { font-size: 18px; padding: 8px 18px 9px; border-radius: 14px; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .17), inset 0 2px 0 rgba(255, 255, 255, .5), 0 4px 0 var(--ink); -webkit-text-stroke: 3px var(--ink); }
.btn-sm:hover { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .17), inset 0 2px 0 rgba(255, 255, 255, .5), 0 6px 0 var(--ink); }
.btn-purple { background: linear-gradient(#d3b0ff, #8a52f0); }
.round { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; border: 3px solid var(--ink); color: var(--ink); cursor: pointer;
  background: linear-gradient(#ffe066, #ffb21c); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .14), 0 4px 0 var(--ink); transition: transform .12s var(--ease); }
.round:hover { transform: translateY(-2px); }
.round:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.round svg { width: 24px; height: 24px; }

/* ---------- a row of studded toy bricks between sections ---------- */
.bricks { --bw: 72px; position: relative; z-index: 3; height: 24px; margin: -12px 0; border-block: 3px solid var(--ink);
  --row: repeating-linear-gradient(90deg, #ff5a6a 0 var(--bw), #ffc83a 0 calc(2 * var(--bw)), #36b4ff 0 calc(3 * var(--bw)), #5bd36b 0 calc(4 * var(--bw)), #a77bff 0 calc(5 * var(--bw)), #ff5fc8 0 calc(6 * var(--bw)));
  background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px var(--bw)), linear-gradient(rgba(255, 255, 255, .34), rgba(255, 255, 255, .06) 40%, rgba(0, 0, 0, .14)), var(--row);
  box-shadow: 0 6px 0 rgba(10, 6, 30, .5), 0 12px 24px rgba(0, 0, 0, .35); }
.bricks::before { content: ''; position: absolute; left: 0; right: 0; top: -11px; height: 9px; pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, .1)), var(--row);
  -webkit-mask: radial-gradient(ellipse 8px 9px at 50% 100%, #000 92%, transparent 100%) calc(var(--bw) / 4 - 18px) 0 / calc(var(--bw) / 2) 100% repeat-x;
  mask: radial-gradient(ellipse 8px 9px at 50% 100%, #000 92%, transparent 100%) calc(var(--bw) / 4 - 18px) 0 / calc(var(--bw) / 2) 100% repeat-x;
  filter: drop-shadow(0 -2.5px 0 var(--ink)) drop-shadow(2px 0 0 var(--ink)) drop-shadow(-2px 0 0 var(--ink)); }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 10px var(--gut);
  padding-top: max(10px, env(safe-area-inset-top)); transition: background .3s, box-shadow .3s; }
.nav.solid { background: rgba(27, 20, 64, .94); box-shadow: 0 6px 20px rgba(0, 0, 0, .45); }
@supports (backdrop-filter: blur(8px)) { .nav.solid { background: rgba(27, 20, 64, .82); backdrop-filter: blur(10px) saturate(1.2); } }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img { width: 40px; height: 40px; border-radius: 12px; border: 3px solid var(--ink); }
.nav-word { font: 400 24px/1 var(--display); color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; white-space: nowrap; }
.nav-links { display: none; gap: 2px; margin-left: 8px; }
.nav-links a { font: 900 16px/1 var(--body); color: #fff; text-decoration: none; padding: 10px 11px; border-radius: 12px; text-shadow: 0 2px 0 var(--ink), 0 0 10px rgba(0, 0, 0, .7); white-space: nowrap; }
.nav-links a:hover { background: rgba(200, 180, 255, .16); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: flex; border: 3px solid var(--ink); border-radius: 12px; overflow: hidden; background: rgba(27, 20, 64, .75); }
.lang button { font: 900 14px/1 var(--body); color: #fff; background: none; border: 0; padding: 8px 9px; cursor: pointer; min-width: 38px; min-height: 34px; }
.lang button[aria-pressed="true"] { background: var(--blue-d); }
@media (max-width: 400px) { .nav { gap: 10px; } .nav-word { display: none; } }
@media (min-width: 1040px) { .nav-links { display: flex; } }
@media (min-width: 1040px) and (max-width: 1259px) { .nav-word { display: none; } .nav-links a { font-size: 15px; padding-inline: 8px; } }

/* ---------- hero: the key art, the logo drops into its sky ---------- */
.hero { position: relative; min-height: max(700px, 100svh); display: flex; padding: 78px 0 clamp(96px, 13vh, 132px); overflow: hidden; isolation: isolate; background: var(--bg1); }
.hero-stage { position: absolute; inset: 0; z-index: -1; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transform-origin: 50% 60%; }
.hero-live { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero-live.on { opacity: 1; }
.hero-live iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.hero-scrim { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(27, 20, 64, .78) 0, rgba(27, 20, 64, .2) 22%, rgba(27, 20, 64, 0) 34%),
  linear-gradient(0deg, rgba(18, 12, 46, .97) 0, rgba(18, 12, 46, .88) 26%, rgba(18, 12, 46, .4) 44%, rgba(18, 12, 46, 0) 58%); }
/* a few loose blocks drifting through the sky of the key art (decoration only) */
.hero-cubes i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 22%; border: 2px solid var(--ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 55%, #fff) 0 30%, var(--c) 31% 70%, color-mix(in srgb, var(--c) 70%, #000) 71%);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); opacity: .92; transform: rotate(18deg); }
.hero-copy { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.wordmark { display: flex; flex-direction: column; align-items: center; width: min(86vw, 430px); margin-top: 6px; }
.wm-logo { width: 100%; height: auto; filter: drop-shadow(0 10px 16px rgba(18, 12, 46, .55)); }
.wm-ribbon { position: relative; margin-top: -6px; font: 400 clamp(19px, 2.6vw, 26px)/1 var(--display); color: #fff; letter-spacing: 1.5px; white-space: nowrap;
  padding: 8px 20px 9px; border-radius: 12px; border: 3px solid var(--ink); background: linear-gradient(#ff8fa0, var(--red) 55%, var(--red-d));
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18), inset 0 3px 0 rgba(255, 255, 255, .4), 0 5px 0 var(--ink); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; transform: rotate(-2deg); }
.hero-bottom { position: relative; margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; align-items: center; }
/* a soft dark pool behind the words, so they read over the busiest part of the art */
.hero-bottom::before { content: ''; position: absolute; z-index: -1; left: 50%; top: 46%; width: min(150%, 1000px); height: 120%; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(18, 12, 46, .62), rgba(18, 12, 46, .3) 60%, transparent); }
.hero-tag { font: 400 clamp(29px, 4.2vw, 48px)/1.05 var(--display); color: #fff; -webkit-text-stroke: .15em var(--ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--ink), 0 .2em .4em rgba(0, 0, 0, .5); text-wrap: balance; }
.hero-pitch { margin-top: 12px; max-width: 34em; font-size: clamp(16.5px, 1.5vw, 19px); color: #fff; text-shadow: 0 2px 8px rgba(8, 4, 30, .9); text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 20px; margin-top: 26px; width: 100%; }
.stores { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 160px; min-height: 54px; padding: 8px 16px 9px 12px; border-radius: 14px; background: rgba(10, 6, 30, .82); color: #fff; text-decoration: none; border: 2px solid rgba(200, 180, 255, .38); text-align: left; }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; font: 900 17px/1.1 var(--body); white-space: nowrap; }
.store small { font-size: 11px; font-weight: 800; color: var(--mist); }
.store[aria-disabled="true"] { cursor: default; }
.store:not([aria-disabled="true"]):hover { background: var(--panel-d); border-color: var(--yellow); }
@media (max-width: 899px) {
  .hero-actions .btn-xl { width: 100%; max-width: 420px; }
  .stores { width: 100%; max-width: 420px; flex-wrap: nowrap; }
  .store { flex: 1 1 0; min-width: 0; padding-inline: 10px; gap: 8px; }
  .store span { font-size: 15.5px; }
}
@media (min-width: 900px) {
  .hero { padding: 86px 0 150px; }
  .hero-art { object-position: 50% 46%; }
  .hero-scrim { background:
    linear-gradient(180deg, rgba(27, 20, 64, .7) 0, rgba(27, 20, 64, .12) 20%, rgba(27, 20, 64, 0) 30%),
    linear-gradient(0deg, rgba(18, 12, 46, .97) 0, rgba(18, 12, 46, .82) 22%, rgba(18, 12, 46, .3) 42%, rgba(18, 12, 46, 0) 56%),
    radial-gradient(ellipse 60% 70% at 50% 40%, transparent 60%, rgba(18, 12, 46, .35)); }
  .wordmark { width: clamp(400px, 38vw, 560px); margin-top: 0; }
  .hero-actions { flex-wrap: nowrap; width: auto; }
  .hero-actions .btn-xl { min-width: 320px; }
}
@media (min-width: 900px) and (max-height: 760px) { .wordmark { width: clamp(340px, 30vw, 440px); } }
/* short phones: keep PLAY NOW in the first screen */
@media (max-width: 899px) and (max-height: 720px) {
  .hero { min-height: max(600px, 100svh); padding-top: 70px; padding-bottom: 84px; }
  .wordmark { width: min(68vw, 280px); }
  .wm-ribbon { font-size: 17px; padding: 6px 14px 7px; }
  .hero-bottom { padding-top: 18px; }
  .hero-tag { font-size: 26px; }
  .hero-pitch { font-size: 15px; line-height: 1.45; }
  .hero-actions { margin-top: 18px; gap: 18px; }
  .btn-xl { font-size: 32px; padding-block: 12px 10px; }
}
/* the one authored motion: the logo drops in, the ribbon snaps on, a few loose blocks drift */
@media (prefers-reduced-motion: no-preference) {
  .wm-logo { animation: land .85s var(--ease) both .1s; transform-origin: 50% 90%; }
  .wm-ribbon { animation: ribbon .6s var(--pop) both .7s; }
  .hero-art { animation: drift 28s ease-in-out infinite alternate; }
  .hero-cubes i { animation: bob 7s ease-in-out infinite var(--d); }
}
@keyframes land { 0% { opacity: 0; transform: translateY(-80px) scale(1.15); } 55% { opacity: 1; transform: translateY(0) scale(1.05, .93); }
  72% { transform: translateY(-6px) scale(.98, 1.03); } 86% { transform: translateY(0) scale(1.01, .99); } 100% { transform: none; } }
@keyframes ribbon { 0% { opacity: 0; transform: translateY(12px) rotate(-10deg) scale(.7); } 100% { opacity: 1; transform: rotate(-2deg); } }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.08) translate(-.8%, -.6%); } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(14deg); } 50% { transform: translateY(-16px) rotate(34deg); } }

/* ---------- the numbers: a wall of candy bricks overlapping the hero ---------- */
.stats { position: relative; z-index: 4; margin-top: clamp(-78px, -8vw, -56px); padding-bottom: 8px; }
.stat-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 22px 10px; }
.sb { --b: var(--yellow); --bd: var(--yellow-d); position: relative; grid-column: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 12px 6px 11px; border-radius: 16px; border: 3px solid var(--ink); text-align: center;
  background: linear-gradient(color-mix(in srgb, var(--b) 75%, #fff), var(--b) 45%, var(--bd));
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .17), inset 0 3px 0 rgba(255, 255, 255, .45), 0 6px 0 var(--ink), 0 16px 26px rgba(8, 4, 30, .45); }
.sb:nth-child(n+4) { grid-column: span 3; }
.sb::before { content: ''; position: absolute; left: 50%; top: -12px; width: 62%; height: 10px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 40% 100% at 50% 100%, color-mix(in srgb, var(--b) 70%, #fff) 0 92%, transparent 96%) 0 0 / 33.34% 100% repeat-x;
  filter: drop-shadow(0 -2.5px 0 var(--ink)) drop-shadow(2.5px 0 0 var(--ink)) drop-shadow(-2.5px 0 0 var(--ink)); }
.sb b { font: 400 clamp(34px, 5vw, 56px)/1 var(--display); color: #fff; -webkit-text-stroke: .14em var(--ink); paint-order: stroke fill; text-shadow: 0 .07em 0 var(--ink); }
.sb span { font: 900 clamp(13px, 1.3vw, 16px)/1.15 var(--body); color: var(--ink); letter-spacing: .2px; }
@media (min-width: 760px) {
  .stat-wall { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .sb, .sb:nth-child(n+4) { grid-column: auto; padding: 16px 8px 14px; }
  .sb:nth-child(even) { transform: translateY(10px); }
}

/* ---------- section grounds: the grape night with faint toy confetti ---------- */
.how { background: radial-gradient(ellipse 70% 55% at 85% 10%, rgba(54, 180, 255, .16), transparent 70%), radial-gradient(ellipse 50% 40% at 0% 80%, rgba(255, 95, 200, .1), transparent 70%), var(--pixels), var(--bg); }
.tricks { background: var(--pixels), linear-gradient(var(--bg), var(--bg1)); }
.modes { background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(54, 180, 255, .16), transparent 70%), var(--pixels), var(--bg1); }
.cards { background: radial-gradient(ellipse 60% 45% at 25% 30%, rgba(255, 95, 200, .15), transparent 70%), var(--pixels), linear-gradient(var(--bg1), var(--bg2)); }
.worlds { background: radial-gradient(ellipse 70% 45% at 70% 0%, rgba(91, 211, 107, .14), transparent 70%), var(--pixels), var(--bg); }
.duel { background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(255, 90, 106, .16), transparent 70%), radial-gradient(ellipse 40% 50% at 95% 30%, rgba(54, 180, 255, .14), transparent 70%), var(--pixels), linear-gradient(var(--bg), var(--bg1)); }
.loot { background: radial-gradient(ellipse 60% 40% at 50% 10%, rgba(255, 200, 58, .16), transparent 70%), var(--pixels), linear-gradient(var(--bg1), var(--bg2)); }
.gallery { background: radial-gradient(ellipse 60% 50% at 50% 30%, rgba(167, 123, 255, .16), transparent 70%), var(--pixels), var(--bg1); }
.faq { background: var(--pixels), linear-gradient(var(--bg1), var(--bg)); }
.close { background: radial-gradient(ellipse 50% 60% at 50% 45%, rgba(255, 200, 58, .22), transparent 70%), radial-gradient(ellipse 80% 70% at 50% 50%, rgba(167, 123, 255, .16), transparent 70%), linear-gradient(var(--bg), #0c0824); }
.how, .tricks, .modes, .cards, .worlds, .duel, .loot, .gallery, .faq, .close { padding: var(--sec) 0; position: relative; }
.how { padding-top: clamp(56px, 7vw, 92px); }
.tricks { padding-top: 0; }
.cards, .loot { padding-top: 0; }
/* sections that follow a rail or a list on the same ground: no double gap */
.worlds { padding-bottom: clamp(40px, 5vw, 72px); }
.duel { padding-top: clamp(40px, 5vw, 64px); }
.gallery { padding-bottom: clamp(24px, 3vw, 40px); }
.faq { padding-top: clamp(24px, 3vw, 40px); }
.close { padding-top: clamp(32px, 4vw, 56px); }

/* ---------- how to play ---------- */
.how-grid { display: grid; gap: 48px; align-items: center; }
.steps { margin-top: 32px; display: grid; gap: 24px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; counter-increment: s; }
.steps img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(10, 5, 30, .4)); }
.steps h3::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; margin-right: 10px; vertical-align: 3px;
  border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff3a8, var(--yellow) 50%, var(--yellow-d)); color: var(--ink); font: 400 19px/1 var(--display); border: 3px solid var(--ink); -webkit-text-stroke: 0; }
.steps p { margin-top: 6px; color: var(--txt-d); max-width: 31em; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1.02fr .98fr; gap: 72px; } }

/* the mini siege (js/toy.js) */
.toy { justify-self: center; width: min(100%, 440px); }
.toy-frame { position: relative; border-radius: 28px; border: 4px solid var(--ink); background: #241a55; overflow: hidden;
  box-shadow: 0 8px 0 var(--ink), 0 0 0 10px rgba(167, 123, 255, .1), 0 30px 60px rgba(4, 2, 18, .6); }
.toy canvas { display: block; width: 100%; height: auto; aspect-ratio: 420 / 400; }
.toy-msg { position: absolute; left: 0; right: 0; top: 47%; text-align: center; pointer-events: none; font: 400 clamp(22px, 6vw, 30px)/1 var(--display); color: #fff;
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .3s var(--pop); }
.toy-msg.show { opacity: 1; transform: none; }
.toy-tray { position: relative; display: flex; justify-content: center; gap: clamp(6px, 2.4vw, 14px); padding: 12px 12px 14px; border-top: 4px solid var(--ink);
  background: linear-gradient(#4b3a9e, #362a78); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .14); }
.can { --c: #ff5a6a; position: relative; flex: 0 1 84px; aspect-ratio: 1; border: 0; padding: 0; background: radial-gradient(ellipse 46% 16% at 50% 92%, rgba(10, 5, 30, .45), transparent 70%); cursor: pointer;
  border-radius: 18px; transition: transform .14s var(--pop); -webkit-tap-highlight-color: transparent; }
/* the critter: a glossy round body, a dark barrel pointing at their castle, two eyes and the ammo number */
.can::before { content: ''; position: absolute; left: 12%; right: 12%; top: 30%; bottom: 7%; border-radius: 50% 50% 44% 44% / 56% 56% 44% 44%; border: 3px solid var(--ink);
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .75) 0 7%, transparent 8%), radial-gradient(circle at 40% 34%, color-mix(in srgb, var(--c) 50%, #fff), var(--c) 56%, color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: 0 4px 0 var(--ink); }
.can::after { content: ''; position: absolute; left: 50%; top: 7%; width: 27%; height: 30%; transform: translateX(-50%); border-radius: 7px 7px 4px 4px; border: 3px solid var(--ink);
  background: linear-gradient(90deg, #2c2546, #6a6488 45%, #2c2546); box-shadow: inset 0 4px 0 rgba(0, 0, 0, .35); }
.can i { position: absolute; left: 27%; right: 27%; top: 46%; height: 17%; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 25% 50%, var(--ink) 0 22%, #fff 25% 48%, var(--ink) 50% 58%, transparent 60%), radial-gradient(circle at 75% 50%, var(--ink) 0 22%, #fff 25% 48%, var(--ink) 50% 58%, transparent 60%); }
.can b { position: absolute; left: 0; right: 0; bottom: 6%; z-index: 1; font: 400 clamp(20px, 5.4vw, 26px)/1 var(--display); color: #fff; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; pointer-events: none; }
.can:hover { transform: translateY(-4px); }
.can:active { transform: translateY(3px) scale(.96); }
.can:focus-visible { outline-offset: 0; }
.can.rb::before { background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .75) 0 7%, transparent 8%), linear-gradient(160deg, #ff5a6a 0 20%, #ffc83a 20% 40%, #5bd36b 40% 60%, #36b4ff 60% 80%, #a77bff 80%); }
.can.empty { cursor: default; }
.can.empty::before { background: rgba(255, 255, 255, .06); border-style: dashed; border-color: rgba(220, 210, 255, .35); box-shadow: none; }
.can.empty::after, .can.empty i, .can.empty b { opacity: 0; }
.can.empty:hover, .can.empty:active { transform: none; }
.can.deny { animation: deny .35s; }
@keyframes deny { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.can.pop { animation: canPop .32s var(--pop); }
@keyframes canPop { from { transform: scale(.4); opacity: 0; } }
.toy-hand { position: absolute; left: calc(50% - 2 * 84px - 14px); top: 32px; width: 54px; pointer-events: none; z-index: 2; }
.toy-hand img { width: 54px; height: 54px; transform: rotate(-12deg); filter: drop-shadow(0 4px 0 rgba(10, 5, 30, .5)); }
@media (prefers-reduced-motion: no-preference) { .toy-hand { animation: point 1.1s ease-in-out infinite; } }
@keyframes point { 50% { transform: translate(4px, 10px); } }
.toy-frame.played .toy-hand { display: none; }
.toy-win { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 45%, rgba(255, 200, 58, .25), transparent 70%), rgba(18, 12, 46, .86); color: #fff; }
.toy-win-t { font: 400 clamp(44px, 12vw, 58px)/1 var(--display); color: var(--yellow); -webkit-text-stroke: 9px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.toy-win p:not(.toy-win-t) { max-width: 20em; }
.toy-win-b { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.toy figcaption { margin-top: 16px; font-size: 15px; color: var(--mist); text-align: center; text-wrap: balance; }

/* ---------- tricks of the siege ---------- */
.tricks .wrap { padding: clamp(24px, 3.4vw, 40px); border-radius: 28px; background: rgba(10, 6, 30, .38); border: 2px solid rgba(200, 180, 255, .14); }
.trick-list { margin-top: 26px; display: grid; gap: 26px 48px; }
.trick { display: grid; grid-template-columns: 56px 1fr; gap: 4px 16px; align-items: start; }
.trick img { grid-row: span 2; width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(10, 5, 30, .4)); }
.trick h3 { color: var(--yellow); }
.trick p { color: var(--txt-d); font-size: 17px; max-width: 32em; }
@media (min-width: 760px) { .trick-list { grid-template-columns: 1fr 1fr; } }

/* ---------- modes ---------- */
.mode-list { margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mode { --m: var(--yellow); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 12px 14px; border-radius: 22px; border: 3px solid var(--ink);
  background: radial-gradient(ellipse 80% 55% at 50% 0%, color-mix(in srgb, var(--m) 34%, transparent), transparent 75%), linear-gradient(var(--panel), var(--panel-d));
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), inset 0 0 0 2px color-mix(in srgb, var(--m) 40%, transparent), 0 5px 0 var(--ink), 0 16px 28px rgba(4, 2, 18, .35); }
.mode img { width: 64px; height: 64px; object-fit: contain; filter: drop-shadow(0 4px 0 rgba(10, 5, 30, .4)); }
.mode h3 { margin-top: 8px; font-size: clamp(21px, 2.2vw, 25px); color: var(--m); letter-spacing: .5px; }
.mode p { margin-top: 6px; font-size: 15px; line-height: 1.4; color: var(--txt-d); text-wrap: balance; }
.mtags { margin-top: auto; padding-top: 12px; display: flex; gap: 6px; }
.mtags i { font: 900 12px/1 var(--body); font-style: normal; letter-spacing: .4px; padding: 5px 8px; border-radius: 99px; color: #fff; background: rgba(10, 6, 30, .55); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--m) 55%, transparent); }
.modes-note { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--mist); }
.modes-note .mtags { margin: 0; padding: 0; --m: var(--yellow); }
.modes-note .mtags + span { margin-right: 10px; }
.m-boss { background: radial-gradient(ellipse 80% 55% at 50% 0%, rgba(167, 123, 255, .45), transparent 75%), linear-gradient(#4b2a8e, #2a1660); }
@media (min-width: 900px) {
  .mode-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .mode { padding: 22px 16px 18px; }
  .mode img { width: 76px; height: 76px; }
  .mode p { font-size: 16px; }
}

/* ---------- cards: a spotlight card and the whole collection ---------- */
.card-board { margin-top: 40px; display: grid; gap: 28px; align-items: start; }
.spot { --rc: var(--r3); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; padding: 18px; border-radius: 26px; background: rgba(10, 6, 30, .5); border: 2px solid rgba(200, 180, 255, .16); }
.spot[data-r="0"] { --rc: var(--r0); } .spot[data-r="1"] { --rc: var(--r1); } .spot[data-r="2"] { --rc: var(--r2); }
.spot-card { position: relative; width: clamp(112px, 30vw, 230px); aspect-ratio: .86; border-radius: 22px; border: 4px solid var(--ink); padding: 8%;
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--rc) 45%, #fff), var(--rc) 55%, color-mix(in srgb, var(--rc) 55%, #000));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--rc) 70%, #fff), 0 0 0 7px var(--ink), 0 10px 0 7px var(--ink), 0 24px 40px rgba(4, 2, 18, .5), 0 0 60px 8px color-mix(in srgb, var(--rc) 35%, transparent); transform: rotate(-3deg); }
.spot-card img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 4px rgba(10, 5, 30, .35)); }
.spot-card .pip { position: absolute; left: -12px; top: -12px; width: 40px; height: 40px; font-size: 24px; }
.pip { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font: 400 17px/1 var(--display); color: #fff; -webkit-text-stroke: 3px var(--ink); paint-order: stroke fill;
  background: radial-gradient(circle at 35% 30%, #ffc2ec, var(--energy) 55%, #b0237e); border: 3px solid var(--ink); }
.spot-rar { font: 400 15px/1 var(--display); letter-spacing: .8px; text-transform: uppercase; color: var(--rc); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.spot h3 { margin-top: 6px; font-size: clamp(30px, 4vw, 46px); }
.spot-desc { margin-top: 10px; color: #fff; font-size: clamp(16px, 1.5vw, 19px); max-width: 24em; text-wrap: pretty; }
.spot-from { margin-top: 10px; font-size: 14px; color: var(--mist); }
.spot-from b { color: var(--yellow); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.card-grid button { --rc: var(--r0); position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px 8px; cursor: pointer; border-radius: 16px; border: 3px solid var(--ink);
  background: linear-gradient(color-mix(in srgb, var(--rc) 55%, #fff) 0, var(--rc) 40%, color-mix(in srgb, var(--rc) 50%, #1c1530)); color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 4px 0 var(--ink); transition: transform .14s var(--ease), box-shadow .14s var(--ease); }
.card-grid button[data-r="1"] { --rc: var(--r1); } .card-grid button[data-r="2"] { --rc: var(--r2); } .card-grid button[data-r="3"] { --rc: var(--r3); }
.card-grid button:hover { transform: translateY(-3px); }
.card-grid button[aria-pressed="true"] { transform: translateY(-5px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), 0 0 0 3px #fff, 0 0 22px 6px rgba(255, 216, 79, .55), 0 4px 0 var(--ink); }
.card-grid img { width: 100%; max-width: 92px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 3px 2px rgba(10, 5, 30, .35)); }
.card-grid .pip { position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; font-size: 14px; border-width: 2px; -webkit-text-stroke: 3px var(--ink); }
.card-grid b { font: 400 14px/1.1 var(--display); letter-spacing: .3px; -webkit-text-stroke: 3.5px var(--ink); paint-order: stroke fill; text-align: center; min-height: 1.2em; }
.card-grid .d { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rar-key { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--mist); }
.rar-key li { display: flex; align-items: center; gap: 7px; }
.rar-key li::before { content: ''; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ink); background: var(--r0); }
.rar-key li[data-r="1"]::before { background: var(--r1); } .rar-key li[data-r="2"]::before { background: var(--r2); } .rar-key li[data-r="3"]::before { background: var(--r3); }
@media (min-width: 560px) { .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 980px) {
  .card-board { grid-template-columns: 380px 1fr; gap: 40px; }
  .spot { position: sticky; top: 96px; grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 38px 26px 30px; }
  .spot-card { margin-bottom: 26px; }
  .spot-desc { margin-inline: auto; }
  .card-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
  .card-grid b { font-size: 15.5px; }
}

/* ---------- worlds: the Adventure map and a rail of ten world cards ---------- */
.adv-grid { display: grid; gap: 40px; align-items: center; }
.goals { margin-top: 24px; display: grid; gap: 10px; }
.goals li { display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 14px; background: rgba(10, 6, 30, .45); border: 2px solid rgba(200, 180, 255, .16); color: #fff; max-width: 24em; }
.goals img { width: 34px; height: 34px; }
.adv-map { position: relative; transform: rotate(1.2deg); }
.adv-map img { width: 100%; border-radius: 20px; border: 4px solid var(--ink); box-shadow: 0 0 0 4px var(--green), 0 0 0 8px var(--ink), 0 14px 0 8px var(--ink), 0 30px 44px rgba(4, 2, 18, .5); }
.adv-map figcaption { display: flex; justify-content: center; gap: 8px; margin-top: -22px; position: relative; flex-wrap: wrap; }
.adv-map figcaption > span { padding: 7px clamp(10px, 1.4vw, 14px) 8px; border-radius: 14px; background: var(--panel-d); color: #fff; border: 3px solid var(--ink); box-shadow: 0 4px 0 var(--ink); font-size: 14px; transform: rotate(-1.2deg); }
.adv-map figcaption b { font: 400 clamp(19px, 2.4vw, 24px)/1 var(--display); color: var(--yellow); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; margin-right: 2px; }
@media (min-width: 900px) { .adv-grid { grid-template-columns: 1fr 1.05fr; gap: 64px; } }
.world-rail { margin-top: clamp(48px, 6vw, 72px); }
.world-list { display: flex; gap: clamp(16px, 2.4vw, 26px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px max(var(--gut), (100% - var(--wrap)) / 2) 26px; scroll-padding-inline: max(var(--gut), (100% - var(--wrap)) / 2);
  scrollbar-width: thin; scrollbar-color: var(--panel-l) transparent; outline-offset: -3px; }
.world { --w: var(--yellow); flex: none; width: min(84vw, 420px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding: 4px; border-radius: 26px; background: var(--ink);
  box-shadow: 0 8px 0 #0a0620, 0 22px 36px rgba(4, 2, 18, .5); }
.world-art { position: relative; border-radius: 22px 22px 0 0; overflow: hidden; background: var(--panel-d); }
.world-art > img:first-child { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.world-art .world-board { position: absolute; right: 10px; bottom: 10px; width: 38%; aspect-ratio: 420 / 272; object-fit: cover; border-radius: 12px; border: 3px solid var(--ink);
  box-shadow: 0 0 0 3px var(--w), 0 0 0 6px var(--ink), 0 10px 18px rgba(4, 2, 18, .55); transform: rotate(3deg); }
.world-copy { position: relative; flex: 1; display: flex; flex-direction: column; padding: 26px 18px 18px; border-radius: 0 0 22px 22px; background: linear-gradient(color-mix(in srgb, var(--w) 14%, var(--panel-d)), var(--bg1)); }
.world-n { position: absolute; top: -18px; left: 14px; padding: 5px 12px 6px; border-radius: 12px; font: 400 17px/1 var(--display); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
  background: var(--panel); border: 3px solid var(--ink); box-shadow: 0 3px 0 var(--ink), inset 0 0 0 2px color-mix(in srgb, var(--w) 45%, transparent); }
.world h3 { font-size: clamp(28px, 3vw, 34px); color: var(--w); -webkit-text-stroke: .15em var(--ink); text-shadow: 0 .07em 0 var(--ink); }
.world-copy > p:not(.world-n):not(.boss) { margin-top: 8px; font-size: 16px; color: var(--txt-d); }
.boss { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 10px; }
.boss img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ink); background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--w) 40%, #fff), color-mix(in srgb, var(--w) 50%, var(--panel-d)));
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--w) 70%, transparent), 0 3px 0 var(--ink); object-fit: cover; }
.boss span { display: flex; flex-direction: column; font: 400 20px/1.05 var(--display); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.boss small { font: 900 12px/1.2 var(--body); letter-spacing: 1px; text-transform: uppercase; color: var(--mist); -webkit-text-stroke: 0; }
.rail-nav { width: min(100% - 2 * var(--gut), var(--wrap)); margin: 4px auto 0; display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- online, friends, two players ---------- */
.duel { overflow-x: clip; }
.duel-grid { display: grid; gap: 56px; align-items: center; }
.duel-list { margin-top: 30px; display: grid; gap: 22px; }
.duel-list li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; }
.duel-list img { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 3px 0 rgba(10, 5, 30, .4)); }
.duel-list h3 { color: var(--yellow); }
.duel-list p { margin-top: 5px; color: var(--txt-d); font-size: 17px; max-width: 32em; }
.phones { position: relative; justify-self: center; width: min(100%, 470px); height: clamp(430px, 112vw, 600px); }
.phone { position: absolute; width: 58%; border-radius: 34px; border: 5px solid var(--ink); background: var(--ink); padding: 5px; overflow: hidden;
  box-shadow: 0 0 0 3px rgba(200, 180, 255, .2), 0 10px 0 var(--ink), 0 30px 50px rgba(4, 2, 18, .6); }
.phone img { border-radius: 26px; width: 100%; }
.phone-a { left: 0; top: 0; transform: rotate(-6deg); box-shadow: 0 0 0 3px var(--blue), 0 10px 0 var(--ink), 0 30px 50px rgba(4, 2, 18, .6); }
.phone-b { right: 0; bottom: 0; transform: rotate(5deg); box-shadow: 0 0 0 3px var(--red), 0 10px 0 var(--ink), 0 30px 50px rgba(4, 2, 18, .6); }
.vs-badge { position: absolute; left: 50%; top: 50%; z-index: 2; width: 92px; height: 92px; display: grid; place-items: center; transform: translate(-50%, -50%) rotate(-8deg); border-radius: 50%; border: 4px solid var(--ink);
  background: linear-gradient(135deg, var(--blue) 0 50%, var(--red) 50%); font: 400 40px/1 var(--display); color: #fff; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; box-shadow: 0 6px 0 var(--ink), 0 0 30px rgba(255, 200, 58, .4); }
@media (min-width: 900px) { .duel-grid { grid-template-columns: 1.08fr .92fr; gap: 64px; } .phones { height: 620px; } }

/* ---------- chests, leagues, fair play ---------- */
.chests { margin-top: 36px; display: flex; justify-content: space-between; gap: 8px; }
.chests li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font: 400 clamp(14px, 1.8vw, 20px)/1.1 var(--display); color: #fff; -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; text-align: center; }
.chests img { width: 100%; max-width: 150px; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(4, 2, 18, .5)); }
.chests li:nth-child(even) img { transform: translateY(-10px) rotate(3deg); }
.chests li:nth-child(odd) img { transform: rotate(-3deg); }
.loot-grid { margin-top: 36px; display: grid; gap: 36px; align-items: start; }
.loot-grid .lead { margin-top: 0; }
.leagues h3 { color: var(--yellow); }
.league-list { margin-top: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.league-list li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.league-list img { width: 56px; height: 56px; object-fit: contain; }
.league-list b { font-weight: 900; color: #fff; font-size: 15px; }
.league-list span { font-size: 13px; color: var(--mist); font-variant-numeric: tabular-nums; }
.fine-print { margin-top: 12px; font-size: 14px; color: var(--mist); }
.fair { margin-top: 40px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px; background: rgba(10, 6, 30, .5); border: 2px solid rgba(200, 180, 255, .18); color: #fff; font-size: 17px; max-width: 780px; }
.fair img { flex: none; width: 40px; height: 40px; }
@media (min-width: 760px) { .league-list { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 900px) { .loot-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; } }

/* ---------- gallery ---------- */
.gallery-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.gallery-nav { display: flex; gap: 10px; flex: none; }
.gallery-strip { margin-top: 40px; display: flex; gap: clamp(16px, 2.5vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px max(var(--gut), (100% - var(--wrap)) / 2) 30px;
  scroll-padding-inline: max(var(--gut), (100% - var(--wrap)) / 2); scrollbar-width: thin; scrollbar-color: var(--panel-l) transparent; outline-offset: -3px; }
.gallery-strip li { flex: none; width: clamp(220px, 62vw, 290px); scroll-snap-align: start; }
.gallery-strip img { border-radius: 30px; border: 5px solid var(--ink); box-shadow: 0 0 0 3px rgba(200, 180, 255, .2), 0 8px 0 var(--ink), 0 24px 40px rgba(4, 2, 18, .5); background: var(--panel-d); }

/* ---------- faq ---------- */
.faq-grid { margin-top: 34px; display: grid; gap: 40px; align-items: start; }
.faq details { max-width: 840px; margin-top: 14px; border-radius: 20px; background: rgba(54, 42, 120, .55); border: 2px solid rgba(200, 180, 255, .16); }
.faq details:first-of-type { margin-top: 0; }
.faq-help { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 22px 24px; border-radius: 26px; border: 3px solid var(--ink);
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 200, 58, .22), transparent 70%), linear-gradient(var(--panel), var(--panel-d)); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .14), 0 6px 0 var(--ink), 0 20px 34px rgba(4, 2, 18, .4); }
.faq-help img { width: 120px; height: 120px; margin-top: -70px; border-radius: 50%; border: 4px solid var(--ink); background: radial-gradient(circle at 50% 35%, #8fd0ff, #2f6fc6); box-shadow: 0 0 0 4px var(--yellow), 0 0 0 8px var(--ink), 0 10px 20px rgba(4, 2, 18, .5); }
.faq-help h3 { margin-top: 18px; color: var(--yellow); }
.faq-help p { margin-top: 8px; font-size: 16px; color: var(--txt-d); }
.btn-mail { margin-top: 18px; font-size: 20px; padding: 11px 18px 12px; max-width: 100%; }
.btn-mail small { color: #fff; -webkit-text-stroke: 0; font-weight: 800; opacity: .95; text-shadow: 0 1px 0 rgba(28, 21, 48, .6); overflow-wrap: anywhere; }
@media (max-width: 999px) { .faq-help { margin-top: 40px; max-width: 520px; } }
@media (min-width: 1000px) { .faq-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; } .faq-help { position: sticky; top: 140px; margin-top: 60px; } }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font: 900 19px/1.3 var(--body); color: #fff; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; flex: none; width: 30px; height: 30px; border-radius: 10px; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5v14M5 12h14' stroke='%231c1530' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 18px no-repeat; border: 2px solid var(--ink); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--txt-d); max-width: 40em; font-size: 17px; }

/* ---------- close ---------- */
.close { overflow: hidden; text-align: center; }
.close-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.close-icon { width: 120px; height: 120px; border-radius: 30px; border: 4px solid var(--ink); box-shadow: 0 6px 0 var(--ink), 0 0 0 10px rgba(200, 180, 255, .08), 0 0 60px rgba(255, 200, 58, .35); margin-bottom: 18px; transform: rotate(-4deg); }
.close .lead { margin: 18px auto 40px; text-align: center; }

/* ---------- more games from Nixcape: three framed cards, each in its own colours ---------- */
.games { position: relative; overflow: hidden; padding: var(--sec) 0 calc(var(--sec) + 8px); background: radial-gradient(ellipse 70% 38% at 50% 0%, rgba(167, 123, 255, .14), transparent 70%), var(--pixels), linear-gradient(var(--bg1), #0c0824); }
.game-list { margin-top: clamp(56px, 7vw, 76px); display: grid; gap: 64px clamp(20px, 2.6vw, 32px); }
.game { position: relative; display: flex; --g: var(--yellow); --g-ink: var(--ink); --g-sky: var(--panel); }
.g-hs { --g: #39d4ff; --g-ink: #0e1430; --g-sky: #1e6bff; }
.g-yo { --g: #ffd23f; --g-ink: #1d2342; --g-sky: #2f86ff; }
.g-cc { --g: #ffc83d; --g-ink: #2a1406; --g-sky: #8a5326; }
.game-card { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 28px; border: 4px solid var(--ink);
  background: linear-gradient(160deg, color-mix(in srgb, var(--g) 40%, var(--panel-l)), var(--panel) 45%, var(--panel-d));
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25), inset 0 -4px 0 rgba(0, 0, 0, .25), 0 8px 0 var(--ink), 0 30px 54px rgba(4, 2, 18, .55); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.game-card::before { content: ''; position: absolute; left: 50%; top: -14px; width: 40%; height: 11px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(ellipse 40% 100% at 50% 100%, color-mix(in srgb, var(--g) 50%, #fff) 0 92%, transparent 96%) 0 0 / 25% 100% repeat-x;
  filter: drop-shadow(0 -2.5px 0 var(--ink)) drop-shadow(2.5px 0 0 var(--ink)) drop-shadow(-2.5px 0 0 var(--ink)); }
.game-art { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 2; border-radius: 18px; border: 3px solid var(--ink); background: var(--bg1);
  box-shadow: 0 0 0 3px var(--g), 0 0 0 6px var(--ink); isolation: isolate; }
.game-art img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform .6s var(--ease); }
.game-card:hover .game-art img { transform: scale(1.09); }
.game-plaque { flex: 1; display: flex; flex-direction: column; padding: 0 clamp(12px, 1.6vw, 18px) clamp(14px, 1.8vw, 20px); border-radius: 18px; border: 3px solid var(--ink);
  background: linear-gradient(color-mix(in srgb, var(--g-sky) 22%, var(--bg2)), var(--bg1) 70%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .1); }
.game-head { display: flex; align-items: flex-end; gap: 12px; margin-top: -40px; position: relative; z-index: 2; }
.game-icon { flex: none; width: 82px; height: auto; aspect-ratio: 1; border-radius: 24%; border: 3px solid var(--ink); box-shadow: 0 0 0 3px var(--g), 0 0 0 6px var(--ink), 0 12px 20px rgba(4, 2, 18, .55); transform: rotate(-4deg); }
.game-name { padding-bottom: 2px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1; color: #fff; letter-spacing: .4px;
  -webkit-text-stroke: .16em var(--g-ink); paint-order: stroke fill; text-shadow: 0 .08em 0 var(--g-ink), 0 .14em .3em rgba(0, 0, 0, .45); }
.g-hs .game-name { transform: skewX(-7deg); transform-origin: 0 100%; }
.g-hs .amp { color: #ffc531; }
.g-yo .game-name { color: #ffd23f; }
.g-cc .game-name { color: #ffc83d; }
.game-sub { display: block; margin-top: 4px; font-size: .55em; color: #fff; letter-spacing: .8px; }
.game-line { margin-top: 14px; color: #fff; font-size: 16.5px; text-wrap: pretty; }
.game-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.game-chips li { padding: 5px 11px 6px; border-radius: 99px; font: 900 13.5px/1.2 var(--body); color: #fff; background: rgba(10, 6, 30, .55); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--g) 60%, transparent); }
.game-get { margin-top: auto; padding-top: 20px; }
.game-stores { display: flex; flex-wrap: wrap; gap: 8px; }
.game-get .store { flex: 1 1 140px; min-width: 0; min-height: 50px; padding-inline: 10px; gap: 8px; }
.game-get .store svg { width: 23px; height: 23px; }
.game-get .store span { font-size: 15.5px; }
.game-get .store:hover { background: var(--panel-d); border-color: var(--g); }
.game-site { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 7px; margin-top: 12px; padding: 4px 2px; color: var(--mist); text-decoration: none; font-size: 15px; }
.game-site b { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; color: #fff; text-decoration: underline 2px color-mix(in srgb, var(--g) 70%, transparent); text-underline-offset: 4px; overflow-wrap: anywhere; }
.game-site svg { width: 16px; height: 16px; flex: none; color: var(--g); }
.game-site:hover b { text-decoration-color: var(--g); }
@media (min-width: 760px) { .game-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .game-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: no-preference) { .game-card:hover, .game-card:focus-within { transform: translateY(-6px) rotate(-.4deg); } }

/* ---------- footer ---------- */
.foot { background: #0a0620; color: var(--mist); padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); border-top: 2px solid rgba(200, 180, 255, .08); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { color: #fff; font-weight: 900; padding: 6px 0; }
.foot .fine { width: 100%; font-size: 14px; color: var(--mist); }
.foot .nav-brand img { width: 36px; height: 36px; }
.foot .nav-word { display: inline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
