:root {
  --ink: #111214;
  --muted: #8a8f99;
  --line: #ebedf1;
  --pink: #ff6fae;
  --violet: #7c5cff;
  --sky: #2dc6ff;
  --mint: #2fe3a5;
  --amber: #ffc531;
  --coral: #ff7a59;
  font-family: "Segoe UI", system-ui, Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}

@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; overflow-x: hidden; }
img, canvas, video { max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; border-radius: 10px; }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(110px); opacity: .35; animation: drift 20s ease-in-out infinite alternate; }
.b1 { top: -30vmax; left: -20vmax; background: var(--pink); }
.b2 { top: 10%; right: -30vmax; background: var(--sky); animation-delay: -7s; }
.b3 { bottom: -35vmax; left: 20%; background: var(--mint); animation-delay: -13s; }
.dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(#0000001f 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, #000 20%, transparent 75%);
}
.spot {
  position: absolute; left: var(--x, 50%); top: var(--y, 30%); width: 560px; height: 560px;
  translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle, #7c5cff2b, #ff6fae14 40%, transparent 68%);
  transition: left .18s ease-out, top .18s ease-out;
}
@keyframes drift { to { transform: translate(8vmax, 6vmax) scale(1.2); } }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ---------- nav ---------- */
.nav { width: min(100% - 48px, 1120px); margin: 0 auto; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; }
.logo { text-decoration: none; }
.badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ink); font-size: 22px; transform: rotate(-8deg); transition: transform .3s; }
.logo:hover .badge { transform: rotate(8deg) scale(1.1); }
.coin {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; text-decoration: none; font-size: 14px;
  background: linear-gradient(135deg, var(--amber), var(--coral)); color: #fff; box-shadow: 0 10px 24px #ff7a5944;
  animation: bob 2.2s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -6px; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - 90px); min-height: calc(100svh - 90px); display: grid; place-items: center; perspective: 1200px; padding: 40px 24px 110px; }
.stage {
  position: relative; text-align: center; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
}
.title {
  position: relative; z-index: 1; margin: 0; display: flex; justify-content: center;
  font-size: clamp(52px, 17vw, 230px); line-height: .9; letter-spacing: -.05em; font-weight: 900; cursor: pointer; user-select: none; white-space: nowrap;
}
.title .ch { display: inline-block; animation: wave 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * .09s); transition: transform .3s cubic-bezier(.2, .8, .2, 1.4); }
.title .ch:nth-child(odd) { color: transparent; -webkit-text-stroke: clamp(2px, .4vw, 5px) var(--ink); }
.title .ch:nth-child(even) {
  background: linear-gradient(135deg, var(--violet), var(--pink) 50%, var(--amber));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 200%; animation: wave 2.6s ease-in-out infinite, shimmer 5s linear infinite; animation-delay: calc(var(--i) * .09s), 0s;
}
.title .ch:hover { transform: translateY(-16px) rotate(-8deg) scale(1.1); }
@keyframes wave { 50% { translate: 0 -14px; } }
@keyframes shimmer { to { background-position: 200% 200%; } }

.tag { position: relative; z-index: 1; margin: 22px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .32em; color: var(--muted); }
.blink { color: var(--mint); animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: 0; } }

/* hero text around the title */
.eyebrow {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px;
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 24px #11121410;
  font-size: 11px; font-weight: 800; letter-spacing: .3em; color: var(--ink);
}
.sub { position: relative; z-index: 1; max-width: 520px; margin: 26px auto 0; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.5; color: #4b5059; font-weight: 500; }
.cta { position: relative; z-index: 1; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 800; letter-spacing: .14em; transition: transform .25s, box-shadow .25s, background .25s;
}
.btn.primary { background: var(--ink); color: #fff; box-shadow: 0 14px 30px #11121433; }
.btn.primary:hover { transform: translateY(-3px); background: linear-gradient(135deg, var(--violet), var(--pink)); box-shadow: 0 18px 34px #7c5cff55; }
.btn.outline { border: 2px solid var(--ink); color: var(--ink); background: #ffffffaa; }
.btn.outline:hover { transform: translateY(-3px); border-color: var(--pink); color: var(--pink); }
.stats { position: relative; z-index: 1; list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 38px; margin: 34px 0 0; padding: 0; }
.stats li { display: grid; gap: 4px; }
.stats b { font-size: 26px; font-weight: 900; letter-spacing: -.03em; background: linear-gradient(135deg, var(--violet), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { font-size: 10px; font-weight: 800; letter-spacing: .28em; color: var(--muted); }

/* emojis orbiting the title */
.orbit { position: absolute; inset: -22% -10%; pointer-events: none; animation: spin 40s linear infinite; }
.chip {
  position: absolute; display: grid; place-items: center; width: 68px; height: 68px; border-radius: 22px; translate: -50% -50%;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 36px #11121414; font-size: 30px;
  animation: spin 40s linear infinite reverse;
}
.c1 { top: 0; left: 50%; }
.c2 { top: 25%; left: 100%; }
.c3 { top: 75%; left: 96%; }
.c4 { top: 100%; left: 50%; }
.c5 { top: 75%; left: 4%; }
.c6 { top: 25%; left: 0; }
@keyframes spin { to { rotate: 360deg; } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--ink); border-radius: 999px; }
.scroll-hint span { position: absolute; left: 50%; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); translate: -50% 0; animation: scroll-dot 1.6s ease-in-out infinite; }
@keyframes scroll-dot { 60%, 100% { translate: -50% 18px; opacity: 0; } }

/* ---------- crossed marquees ---------- */
.marquee { overflow: hidden; padding: 14px 0; margin: 0 -10vw; }
.dark { background: var(--ink); color: #fff; transform: rotate(-2deg); }
.color { background: linear-gradient(90deg, var(--violet), var(--pink), var(--amber)); color: #fff; transform: rotate(2deg); margin-top: -34px; }
.track { display: flex; align-items: center; gap: 32px; width: max-content; animation: ticker 18s linear infinite; font-size: 13px; font-weight: 900; letter-spacing: .3em; white-space: nowrap; }
.track.reverse { animation-direction: reverse; font-size: 20px; }
.track i { font-style: normal; color: var(--pink); }
.color .track i { color: #ffffffaa; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- games ---------- */
.games-section { position: relative; width: min(100% - 48px, 1120px); margin: 0 auto; padding: 150px 0 130px; }
.ghost {
  position: absolute; top: 60px; left: 50%; translate: -50% 0; line-height: 1;
  font-size: clamp(100px, 24vw, 300px); font-weight: 900; letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1px #11121418; pointer-events: none; user-select: none;
}
.level { position: relative; display: flex; justify-content: center; margin-bottom: 14px; }
.games-heading { position: relative; margin: 22px auto 16px; text-align: center; font-size: clamp(30px, 4.5vw, 52px); line-height: 1.1; letter-spacing: -.05em; font-weight: 900; }
.games-heading span { color: var(--violet); }
.hint { position: relative; margin: 0 0 60px; text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .3em; color: var(--muted); }
#game-count { padding: 10px 20px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .24em; box-shadow: 0 12px 30px #11121433; }

.grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }

.card {
  --accent: var(--violet);
  position: relative; isolation: isolate;
  min-width: 0; padding: 0; display: flex; flex-direction: column;
  border: 1px solid #ffffff22; border-radius: 24px; background: #151c25; text-decoration: none; overflow: hidden; color: #f7f9ff;
  box-shadow: 0 18px 36px #11121426;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform .15s ease-out, box-shadow .3s;
  animation: pop .7s cubic-bezier(.2, .8, .2, 1.2) both; animation-delay: calc(var(--i, 0) * 80ms);
}
.game-art {
  position: relative; display: block; flex: none; width: 100%; aspect-ratio: 5 / 3;
  overflow: hidden; background: #192d38; border-bottom: 1px solid #ffffff15;
}
.game-art svg { display: block; width: 100%; height: 100%; transition: transform .5s ease; }
.card:hover .game-art svg { transform: scale(1.045); }
.game-art .num { position: absolute; top: 14px; left: 14px; padding: 7px 10px; border: 1px solid #ffffff35; border-radius: 7px; background: #101822b8; color: #fff; font: 700 10px/1.2 monospace; letter-spacing: .12em; }
.art-caption { position: absolute; bottom: 10px; right: 12px; font: 600 8px/1.2 monospace; letter-spacing: .12em; color: #fff; background: #10182299; padding: 4px 6px; border-radius: 4px; }
.genre { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.play-bar { display: flex; align-items: center; justify-content: space-between; margin-top: auto; border-radius: 12px; padding: 12px 16px; background: var(--accent); color: #122126; transition: filter .2s; }
.play-label { font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.card:hover .play-bar { filter: brightness(1.1); }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.92); } }
.card:hover { --s: 1.03; box-shadow: 0 30px 60px color-mix(in srgb, var(--accent) 28%, transparent), 0 0 0 1px transparent; }

/* rotating gradient ring */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px;
  background: conic-gradient(from var(--a), var(--accent), transparent 30%, transparent 70%, var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .3s; animation: turn 2.5s linear infinite;
}
/* cursor shine */
.card::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
@keyframes turn { to { --a: 360deg; } }

.card-bottom { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; gap: 24px; min-width: 0; padding: 24px; }
.text { display: grid; gap: 12px; min-width: 0; }
.name { font-size: clamp(23px, 2.2vw, 29px); line-height: 1.12; min-height: 2.24em; font-weight: 900; letter-spacing: -.035em; overflow-wrap: anywhere; }
.desc { font-size: 13px; line-height: 1.5; font-weight: 500; color: #b7c2d1; }
.go { font-size: 23px; line-height: 1; transition: transform .3s; }
.card:hover .go { transform: translate(2px, -2px); }
.card::before, .card::after { pointer-events: none; }

.status { color: var(--muted); font-size: 15px; text-align: center; margin: 40px 0 0; letter-spacing: .1em; font-weight: 700; }
.status:empty { display: none; }

/* ---------- support / donations ---------- */
.donation-section {
  position: relative; isolation: isolate; overflow: hidden;
  width: min(100% - 48px, 1120px); margin: 0 auto 110px; padding: clamp(28px, 6vw, 64px);
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px;
  border: 1px solid #7c5cff20; border-radius: 32px;
  background: linear-gradient(135deg, #fff 5%, #f7f3ff 55%, #fff1f7);
  box-shadow: 0 24px 70px #7c5cff12;
}
.donation-section::before {
  content: ""; position: absolute; z-index: -1; width: 300px; height: 300px; right: 10%; top: -220px;
  border-radius: 50%; background: #ff6fae20; filter: blur(10px);
}
.donation-copy { max-width: 590px; }
.donation-eyebrow { margin: 0 0 14px; color: var(--violet); font-size: 11px; font-weight: 900; letter-spacing: .2em; }
.donation-copy h2 { margin: 0; font-size: clamp(32px, 5vw, 54px); line-height: 1.05; letter-spacing: -.05em; font-weight: 900; }
.donation-copy h2 span { color: var(--violet); }
.donation-copy > p:not(.donation-eyebrow):not(.donation-note) { max-width: 500px; margin: 18px 0 24px; color: #5e6370; font-size: 16px; line-height: 1.65; }
.donation-amounts { display: flex; flex-wrap: wrap; gap: 10px; }
.donation-amount { min-width: 82px; padding: 12px 20px; border: 1px solid #dcd5f3; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s; }
.donation-amount:hover { transform: translateY(-2px); }
.donation-amount[aria-pressed="true"] { border-color: transparent; background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; box-shadow: 0 10px 24px #7c5cff38; }
.donation-amount:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.donation-note { margin: 17px 0 0; color: #666b76; font-size: 13px; line-height: 1.5; }
.donation-qr { justify-self: center; width: min(100%, 280px); padding: 18px; border: 1px solid #ece7f6; border-radius: 24px; background: #fff; text-align: center; box-shadow: 0 18px 40px #11121412; }
.donation-qr[hidden] { display: none; }
.qr-image { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; }
.qr-caption { display: block; margin-top: 13px; color: var(--violet); font-size: 10px; font-weight: 900; letter-spacing: .2em; }

/* ---------- footer ---------- */
footer { padding: 30px 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; border-top: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 800; }
.label { color: var(--muted); font-size: 10px; letter-spacing: .24em; margin-right: 4px; }
footer a { text-decoration: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); transition: transform .25s, border-color .25s, box-shadow .25s; }
footer a:hover { transform: translateY(-3px) rotate(-2deg); border-color: var(--pink); box-shadow: 0 10px 24px #ff6fae33; }
.x { color: var(--pink); }

/* ---------- responsive ---------- */
/* small laptops / large tablets */
@media (max-width: 1100px) {
  .orbit { inset: -16% -4%; }
  .chip { width: 56px; height: 56px; font-size: 26px; border-radius: 18px; }
}
/* Keep cards spacious on standard desktop screens; fit all four on wide screens. */
@media (max-width: 1200px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
/* tablets: two evenly sized game cards per row */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .card-bottom { padding: 22px; }
}
@media (max-width: 800px) {
  .donation-section { width: min(100% - 32px, 1120px); grid-template-columns: 1fr 260px; gap: 24px; padding: 32px; margin-bottom: 80px; }
  .nav { width: min(100% - 32px, 1120px); padding: 16px 0; }
  .hero { padding: 24px 16px 100px; }
  .orbit { inset: -14% 0; }
  .c2, .c6 { display: none; } /* side chips overlap the text here */
  .chip { width: 48px; height: 48px; font-size: 22px; border-radius: 14px; }
  .ghost { top: 40px; }
  .games-section { width: min(100% - 32px, 1120px); padding: 120px 0 100px; }
}
/* phones: single column */
@media (max-width: 640px) {
  .donation-section { grid-template-columns: 1fr; gap: 28px; padding: 26px 20px; margin-bottom: 60px; border-radius: 24px; }
  .donation-qr { width: min(100%, 250px); }
  .hero { min-height: auto; padding: 16px 16px 70px; }
  .stage { transform: none !important; } /* no 3D tilt on touch screens */
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .card-bottom { padding: 22px; gap: 20px; }
  .name { font-size: 26px; min-height: 0; }
  .orbit { inset: -10% 0; }
  .c3, .c5 { display: none; }
  .sub { font-size: 15px; margin-top: 18px; }
  .cta { margin-top: 20px; }
  .btn { padding: 12px 20px; font-size: 12px; }
  .stats { gap: 10px 22px; margin-top: 26px; }
  .stats b { font-size: 20px; }
  .marquee { padding: 10px 0; }
  .track { font-size: 11px; gap: 22px; }
  .track.reverse { font-size: 16px; }
  .color { margin-top: -26px; }
  .scroll-hint { display: none; }
  .ghost { font-size: 30vw; top: 50px; }
  .hint { margin-bottom: 40px; }
  .spot { width: 320px; height: 320px; }
}
/* very small phones */
@media (max-width: 380px) {
  .title { font-size: 15vw; }
  .eyebrow { font-size: 10px; letter-spacing: .22em; padding: 7px 12px; }
  .tag { letter-spacing: .22em; }
  .card-bottom { padding: 18px; }
  .name { font-size: 23px; }
}
/* short screens: landscape phones, small laptops */
@media (max-height: 700px) {
  .hero { min-height: auto; padding-bottom: 90px; }
  .sub { margin-top: 16px; }
  .stats { margin-top: 24px; }
  .orbit { inset: -10% -6%; }
}
/* touch devices: hover effects off, tap still works */
@media (hover: none) {
  .card:hover { --s: 1; }
  .card::before, .card::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .coin, .title .ch, .blink, .orbit, .chip, .scroll-hint span, .track, .card, .card::before { animation: none; }
  .stage, .card, .go, .badge, footer a, .game-art svg, .play-bar { transition: none; }
  .card:hover .game-art svg { transform: none; }
}

/* ---------- multi-page navigation and content ---------- */
.site-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; }
.site-links a { padding: 10px 13px; border-radius: 999px; color: #4b5059; text-decoration: none; font-size: 13px; font-weight: 800; transition: background .2s, color .2s; }
.site-links a:hover, .site-links a[aria-current="page"] { background: #f1edff; color: var(--violet); }
.info-page { width: min(100% - 48px, 900px); flex: 1; margin: 0 auto; padding: clamp(54px, 9vw, 110px) 0 100px; }
.info-page h1 { max-width: 850px; margin: 12px 0 20px; font-size: clamp(40px, 7vw, 76px); line-height: 1; letter-spacing: -.06em; font-weight: 900; }
.info-page h1 span { color: var(--violet); }
.info-lead { max-width: 720px; margin: 0 0 38px; color: #4b5059; font-size: clamp(17px, 2.3vw, 21px); line-height: 1.65; }
.info-panel { margin: 18px 0; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: #ffffffd9; box-shadow: 0 14px 36px #1112140a; }
.info-panel h2 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 29px); letter-spacing: -.035em; }
.info-panel p { margin: 0; color: #555b65; font-size: 16px; line-height: 1.7; }
.info-page > p .btn { margin-top: 18px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px !important; }
.contact-links a { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--violet); text-decoration: none; font-weight: 800; }
.contact-links a:hover { border-color: var(--violet); }
.games-page { width: min(100% - 48px, 1120px); }
.directory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.directory-card { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 20px; border: 1px solid #e8e5f0; border-radius: 20px; background: #fff; color: var(--ink); text-decoration: none; box-shadow: 0 14px 32px #1112140c; transition: transform .2s, box-shadow .2s, border-color .2s; }
.directory-card:hover { transform: translateY(-3px); border-color: #d4c9ff; box-shadow: 0 20px 40px #7c5cff1a; }
.directory-icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px; background: #f2efff; font-size: 27px; }
.directory-card > span:nth-child(2) { display: grid; min-width: 0; gap: 6px; }
.directory-card strong { font-size: 16px; line-height: 1.3; }
.directory-card small { color: #737985; font-size: 13px; line-height: 1.4; }
.directory-card > b { margin-left: auto; color: var(--violet); font-size: 21px; }
.games-note { margin-top: 50px; }
@media (max-width: 640px) {
  .nav { gap: 8px; }
  .site-links { gap: 0; }
  .site-links a { padding: 9px 8px; font-size: 12px; }
  .info-page, .games-page { width: min(100% - 32px, 900px); padding-top: 54px; padding-bottom: 70px; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-card { padding: 16px; }
  .info-panel p { font-size: 15px; }
}
@media (max-width: 380px) {
  .nav { width: min(100% - 20px, 1120px); }
  .site-links a { padding: 8px 6px; font-size: 11px; }
  .badge, .coin { width: 38px; height: 38px; }
}

/* ---------- full-page experiences ---------- */
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.full-page { isolation: isolate; }
.full-page main { min-width: 0; }
.full-page section[id], .full-page h2[id] { scroll-margin-top: 28px; }
.page-hero { min-height: calc(100svh - 90px); padding: 100px 24px 120px; }
.page-hero .stage { width: min(100%, 1000px); }
.page-hero .orbit { inset: -9% 3%; opacity: .85; }
.page-hero .sub { max-width: 620px; }
.page-title { position: relative; z-index: 1; margin: 8px 0 0; font-size: clamp(42px, 7.7vw, 104px); line-height: 1.04; letter-spacing: -.065em; font-weight: 900; }
.page-title > span { background: linear-gradient(120deg, var(--violet), #d54791 55%, #d77b15); background-size: 200% 200%; background-clip: text; -webkit-background-clip: text; color: transparent; animation: shimmer 8s linear infinite; }
.contact-page .page-title > span { background-image: linear-gradient(120deg, #7850eb, #ca408e, #d67534); }
.page-hero .stats { gap: 24px 44px; }
.page-hero .stats b { font-size: clamp(23px, 3vw, 34px); }
.page-hero .stats span { color: #646977; letter-spacing: .18em; }
.content-section { position: relative; width: min(100% - 48px, 1120px); margin: 0 auto; padding: 100px 0; }
.compact-section { padding-top: 70px; padding-bottom: 70px; }
.section-intro { max-width: 760px; margin: 0 auto 46px; text-align: center; }
.section-kicker { margin: 0 0 16px; color: #6942d6; font-size: 11px; line-height: 1.6; font-weight: 900; letter-spacing: .2em; }
.section-intro h2, .family-panel h2, .closing-cta h2 { margin: 0; font-size: clamp(32px, 4.5vw, 54px); line-height: 1.1; letter-spacing: -.05em; font-weight: 900; }
.section-intro h2 span, .family-panel h2 span, .closing-cta h2 span { color: var(--violet); }
.section-intro > p:last-child:not(.section-kicker) { margin: 22px auto 0; max-width: 690px; color: #555b68; font-size: 17px; line-height: 1.75; }
.section-band { background: linear-gradient(135deg, #f4f1ffdd, #fff3f8dd 65%, #fff9eedd); border-block: 1px solid #7c5cff12; }
.story-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.story-art { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 36px; background: radial-gradient(circle at 25% 20%, #6250bc, transparent 60%), #161c2d; overflow: hidden; box-shadow: 0 24px 50px #35234b26; }
.story-art::before { content: ''; position: absolute; width: 72%; height: 72%; border: 1px dashed #ffffff55; border-radius: 50%; animation: spin 40s linear infinite; }
.story-controller { font-size: clamp(90px, 15vw, 190px); filter: drop-shadow(0 18px 15px #0005); transform: rotate(-12deg); animation: bob 4s ease-in-out infinite; }
.sticker { position: absolute; padding: 12px 18px; border-radius: 10px; font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.sticker-one { top: 12%; left: 6%; background: var(--mint); transform: rotate(-9deg); }
.sticker-two { bottom: 12%; right: 6%; background: var(--amber); transform: rotate(8deg); }
.story-spark { position: absolute; top: 15%; right: 12%; color: var(--pink); font-size: 48px; }
.story-copy h3 { margin: 0 0 20px; font-size: 30px; letter-spacing: -.035em; }
.story-copy p { color: #555b68; font-size: 16px; line-height: 1.8; }
.text-link { display: inline-block; margin-top: 12px; color: #6942d6; font-size: 14px; line-height: 1.6; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature-card { min-width: 0; padding: 30px; border: 1px solid #e7e1f2; border-radius: 24px; background: #ffffffed; box-shadow: 0 14px 34px #25203808; transition: transform .25s, box-shadow .25s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px #7c5cff16; }
.feature-icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 24px; border-radius: 18px; background: #f0ebff; font-size: 30px; color: var(--violet); }
.feature-card:nth-child(3n + 2) .feature-icon { background: #fff0f6; }
.feature-card:nth-child(3n) .feature-icon { background: #e9fbf5; }
.feature-card h3 { margin: 0 0 14px; font-size: 22px; line-height: 1.2; letter-spacing: -.03em; }
.feature-card p { margin: 0; color: #555b68; font-size: 15px; line-height: 1.75; }
.four-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps-grid li { padding: 0 4px 24px; border-bottom: 2px solid #e8e0fa; }
.step-number { display: block; margin-bottom: 20px; color: #c9b6f5; font-size: 64px; font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.steps-grid h3 { margin: 0 0 12px; font-size: 23px; letter-spacing: -.03em; }
.steps-grid p { margin: 0; color: #555b68; font-size: 15px; line-height: 1.8; }
.family-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: clamp(26px, 5vw, 56px); border: 1px solid #e7def9; border-radius: 32px; background: linear-gradient(135deg, #f7f2ff, #fff5f9); }
.family-panel h2 { font-size: clamp(30px, 3.8vw, 44px); }
.family-panel > div > p:not(.section-kicker) { margin: 22px 0 0; color: #555b68; line-height: 1.8; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 24px; }
.check-list li { position: relative; padding-left: 32px; color: #555b68; font-size: 15px; line-height: 1.7; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e4d9ff; color: #6437bc; font-size: 13px; font-weight: 900; }
.check-list strong { color: #262333; }
.faq-list { max-width: 840px; margin: 0 auto; display: grid; gap: 12px; }
.faq-list details { border: 1px solid #e8e3f1; border-radius: 18px; background: #ffffffed; overflow: hidden; }
.faq-list summary { position: relative; padding: 24px 58px 24px 24px; cursor: pointer; font-size: 17px; line-height: 1.5; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; position: absolute; top: 22px; right: 25px; color: var(--violet); font-size: 24px; line-height: 1.2; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details[open] { border-color: #ccb9f7; }
.faq-list summary:focus-visible { outline: 3px solid var(--violet); outline-offset: -4px; border-radius: 16px; }
.faq-list p { margin: 0; padding: 0 24px 26px; color: #555b68; font-size: 15px; line-height: 1.8; }
.closing-cta { width: min(100% - 48px, 1120px); margin: 0 auto 100px; padding: 64px 24px; border-radius: 32px; text-align: center; background: radial-gradient(ellipse at 5% 0, #7c5cff44, transparent 65%), #151a27; color: #fff; overflow: hidden; }
.closing-cta .section-kicker { color: #c9b4ff; }
.closing-cta h2 span { color: #cfb9ff; }
.closing-cta > p:not(.section-kicker) { max-width: 600px; margin: 22px auto; color: #bec4d4; line-height: 1.7; }
.closing-cta .btn.primary { background: #d1c0ff; color: #24143e; }
.closing-cta .btn.outline { background: transparent; border-color: #ffffff60; color: #fff; }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.partner-card { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: clamp(26px, 4vw, 44px); border: 1px solid #e6def6; border-radius: 28px; background: #ffffffed; box-shadow: 0 20px 44px #7c5cff0d; }
.partner-card:nth-child(2) { background: linear-gradient(150deg, #fff, #fff1f7); }
.partner-card h3 { margin: 0; font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -.04em; }
.partner-card > p:not(.section-kicker) { margin: 22px 0 28px; color: #555b68; font-size: 16px; line-height: 1.8; }
.partner-card .btn { margin-top: auto; font-size: 12px; letter-spacing: .04em; }
.partner-card small { display: block; margin-top: 16px; color: #676d79; line-height: 1.5; overflow-wrap: anywhere; }
.section-footnote { max-width: 780px; margin: 30px auto 0; color: #666d79; font-size: 13px; line-height: 1.8; text-align: center; }
.showcase-grid { gap: 24px; }
.showcase-grid .directory-card { --tile-accent: #adf580; position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; border: 1px solid #ffffff22; border-radius: 26px; background: #151c25; color: #fff; overflow: hidden; }
.showcase-grid .directory-card:nth-child(4n + 2) { --tile-accent: #8de6ff; }
.showcase-grid .directory-card:nth-child(4n + 3) { --tile-accent: #ffd18c; }
.showcase-grid .directory-card:nth-child(4n + 4) { --tile-accent: #c8adff; }
.showcase-grid .directory-icon { position: relative; width: 100%; height: 200px; margin: 0; border-radius: 0; font-size: 86px; background: radial-gradient(ellipse at center, #ffffff1f, transparent 70%), #183b30; border-bottom: 1px solid #ffffff12; }
.showcase-grid .directory-icon::before, .showcase-grid .directory-icon::after { content: '✦'; position: absolute; color: var(--tile-accent); font-size: 24px; opacity: .6; }
.showcase-grid .directory-icon::before { left: 15%; top: 22%; }
.showcase-grid .directory-icon::after { right: 16%; bottom: 20%; font-size: 40px; }
.showcase-grid .directory-card:nth-child(4n + 2) .directory-icon { background-color: #183a60; }
.showcase-grid .directory-card:nth-child(4n + 3) .directory-icon { background-color: #57432d; }
.showcase-grid .directory-card:nth-child(4n + 4) .directory-icon { background-color: #35285a; }
.showcase-grid .directory-card > span:nth-child(2) { padding: 28px 28px 24px; gap: 16px; }
.showcase-grid .directory-card strong { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.04em; }
.showcase-grid .directory-card small { color: #bec9d8; font-size: 15px; line-height: 1.75; }
.showcase-grid .directory-card > b { display: block; margin: auto 28px 28px; padding: 15px 18px; border-radius: 12px; background: var(--tile-accent); color: #15202b; font-size: 13px; letter-spacing: .12em; }
.showcase-grid .directory-card:hover { border-color: var(--tile-accent); box-shadow: 0 24px 46px #23173526; }
.expanded-footer { display: block; padding: 48px 24px 24px; text-align: center; }
.footer-overview { width: min(100%, 700px); margin: 0 auto 32px; }
footer .footer-brand { display: inline-block; padding: 0; border: 0; border-radius: 0; font-size: 21px; letter-spacing: -.04em; }
.footer-overview p { margin: 14px 0 20px; color: #626975; font-weight: 500; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 24px; }
.footer-links a[aria-current='page'] { color: #6942d6; background: #f2edff; }
.footer-overview small { display: block; color: #686e78; font-size: 12px; line-height: 1.7; font-weight: 400; }
.footer-partners { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 22px; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-layout { gap: 30px; }
  .family-panel { gap: 28px; }
  .steps-grid { gap: 24px; }
  .page-hero .orbit { inset: -8% 8%; }
}
@media (max-width: 640px) {
  .page-hero { min-height: auto; padding: 80px 16px 80px; }
  .page-title { font-size: clamp(32px, 8.4vw, 54px); }
  .page-hero .eyebrow { font-size: 9px; letter-spacing: .14em; }
  .page-hero .tag { font-size: 10px; letter-spacing: .15em; }
  .page-hero .orbit { inset: -10% 8%; }
  .page-hero .stats { gap: 20px; }
  .page-hero .stats b { font-size: 23px; }
  .page-hero .stats span { font-size: 8px; letter-spacing: .1em; }
  .content-section { width: calc(100% - 32px); padding: 68px 0; }
  .compact-section { padding: 48px 0; }
  .section-intro { margin-bottom: 30px; }
  .section-intro > p:last-child:not(.section-kicker) { font-size: 15px; }
  .story-layout, .feature-grid, .steps-grid, .family-panel, .partner-grid { grid-template-columns: 1fr; }
  .story-art { width: min(100%, 380px); justify-self: center; }
  .story-controller { font-size: 130px; }
  .feature-card { padding: 26px; }
  .feature-icon { margin-bottom: 20px; }
  .family-panel { padding: 28px 22px; border-radius: 24px; }
  .steps-grid { gap: 28px; }
  .step-number { font-size: 52px; margin-bottom: 12px; }
  .faq-list summary { padding: 20px 48px 20px 20px; font-size: 16px; }
  .faq-list summary::after { top: 20px; right: 20px; }
  .faq-list p { padding: 0 20px 22px; }
  .closing-cta { width: calc(100% - 32px); margin-bottom: 60px; padding: 44px 22px; border-radius: 24px; }
  .showcase-grid .directory-icon { height: 180px; }
  .showcase-grid .directory-card > span:nth-child(2) { padding: 24px; }
  .showcase-grid .directory-card > b { margin: auto 24px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-title > span, .story-art::before, .story-controller { animation: none; }
  .feature-card, .directory-card, .site-links a, .btn, .donation-amount { transition: none; }
  .feature-card:hover, .directory-card:hover, .btn:hover { transform: none; }
}

/* ===== Arcade directory: auto-synced games ===== */
.arcade-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 22px; padding: 12px; border-radius: 18px; background: #151c25; border: 1px solid #ffffff1a; }
.arcade-counter { margin: 0 auto 0 6px; color: #bec9d8; font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.arcade-counter b { color: #adf580; font-size: 16px; }
.arcade-led { display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 50%; background: #2fe3a5; box-shadow: 0 0 10px #2fe3a5; animation: arcadeBlink 1.6s ease-in-out infinite; }
@keyframes arcadeBlink { 50% { opacity: .3; } }
.arcade-search { flex: 1 1 220px; max-width: 340px; padding: 12px 16px; border: 1px solid #ffffff22; border-radius: 12px; background: #0d1219; color: #fff; font: inherit; }
.arcade-search:focus { outline: 2px solid #8de6ff; outline-offset: 1px; }
.arcade-surprise { padding: 12px 18px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #ff6fae, #7c5cff); color: #fff; font: inherit; font-weight: 800; cursor: pointer; transition: transform .2s; }
.arcade-surprise:hover { transform: translateY(-2px) rotate(-1deg); }

.showcase-grid { perspective: 1200px; }
.showcase-grid .directory-card { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, box-shadow .25s, border-color .25s; }
.showcase-grid .directory-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--tile-accent) 22%, transparent), transparent 60%); }
.showcase-grid .directory-card:hover::after { opacity: 1; }
.showcase-grid .directory-card:hover .directory-icon { font-size: 100px; }
.showcase-grid .directory-icon { overflow: hidden; transition: font-size .3s; }
.showcase-grid .directory-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 8% 70%; transition: transform .5s; }
.showcase-grid .directory-card:hover .directory-icon img { transform: scale(1.07); }
.showcase-grid .directory-card[data-new]::before { content: 'NEW'; position: absolute; z-index: 2; top: 16px; right: -34px; width: 130px; padding: 6px 0; transform: rotate(45deg); background: #ffc531; color: #15202b; font-size: 12px; font-weight: 900; letter-spacing: .2em; text-align: center; box-shadow: 0 4px 14px #0006; }
.showcase-grid .directory-card.is-picked { border-color: var(--tile-accent); animation: arcadePick 1.2s ease 2; }
@keyframes arcadePick { 50% { box-shadow: 0 0 0 6px var(--tile-accent), 0 0 50px var(--tile-accent); } }
.showcase-grid.is-ready .directory-card { animation: arcadeIn .6s both cubic-bezier(.2, .8, .2, 1); animation-delay: calc(var(--i, 0) * 70ms); }
.showcase-grid.is-ready .directory-card.is-picked { animation: arcadePick 1.2s ease 2; }
@keyframes arcadeIn { from { opacity: 0; transform: translateY(30px) scale(.96); } }
.directory-card[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .showcase-grid .directory-card, .showcase-grid.is-ready .directory-card { animation: none; transform: none; }
  .arcade-led { animation: none; }
}
.showcase-grid .directory-icon:has(img)::before, .showcase-grid .directory-icon:has(img)::after { display: none; }
/* Home cards: real cover art */
.game-art img.cover { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 8% 70%; transition: transform .5s ease; }
.game-art.has-cover svg { visibility: hidden; }
.game-art .num, .game-art .art-caption { z-index: 2; }
.game-art.has-cover .art-caption { display: none; }
.card:hover .game-art img.cover { transform: scale(1.06); }
