/* YourPlayground.games — Cosmic Midnight & Violet-Cyan Glass Design Tokens */
:root {
  --bg-canvas: #080A1A;
  --bg-canvas-deep: #050713;
  --bg-surface-1: #0F122B;
  --bg-surface-2: #161A3B;
  --bg-surface-3: #1E244F;
  --bg-elevated: #121633;
  --bg-glass: rgba(9, 12, 30, 0.84);
  --bg-glass-card: rgba(17, 20, 44, 0.74);
  --bg-glass-strong: rgba(13, 16, 38, 0.90);

  --accent-cyan: #2CEEF8;
  --accent-cyan-hover: #5DF4FC;
  --accent-cyan-dim: rgba(44, 238, 248, 0.14);
  --accent-cyan-border: rgba(44, 238, 248, 0.46);

  --accent-violet: #8B5CF6;
  --accent-violet-bright: #A855F7;
  --accent-magenta: #D946EF;
  --accent-violet-dim: rgba(139, 92, 246, 0.18);
  --accent-violet-border: rgba(139, 92, 246, 0.36);

  --accent-coral: #F43F5E;
  --accent-coral-dim: rgba(244, 63, 94, 0.16);
  --accent-coral-border: rgba(244, 63, 94, 0.44);

  --accent-sky: #6384FF;
  --accent-sky-dim: rgba(99, 132, 255, 0.16);
  --accent-sky-border: rgba(99, 132, 255, 0.40);

  --accent-amber: #FBBF24;
  --accent-amber-dim: rgba(251, 191, 36, 0.15);
  --accent-amber-border: rgba(251, 191, 36, 0.42);

  --accent-danger: #FB7185;
  --accent-danger-dim: rgba(251, 113, 133, 0.16);

  --text-strong: #F8FAFC;
  --text-body: #D6DDF2;
  --text-muted: #98A2C3;
  --text-inverse: #060A18;

  --border-subtle: rgba(139, 92, 246, 0.28);
  --border-strong: rgba(139, 92, 246, 0.46);
  --border-glow: rgba(44, 238, 248, 0.58);

  --gradient-cta-pill: linear-gradient(90deg, #2CEEF8 0%, #6384FF 48%, #A855F7 82%, #D946EF 100%);
  --gradient-cta-pill-hover: linear-gradient(90deg, #52F3FB 0%, #7896FF 48%, #B76BFF 82%, #E35FF5 100%);
  --gradient-headline: linear-gradient(90deg, #2CEEF8 0%, #4FACFE 34%, #9B6BFF 68%, #E056FD 100%);
  --gradient-active-filter: linear-gradient(90deg, #2CEEF8 0%, #38BDF8 100%);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 18px 44px rgba(3, 5, 18, 0.62), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-glow: 0 0 0 1px rgba(44, 238, 248, 0.26), 0 14px 36px rgba(124, 92, 255, 0.24);
  --shadow-cta: 0 8px 28px rgba(124, 92, 255, 0.42), 0 0 18px rgba(44, 238, 248, 0.22);
  --shadow-modal: 0 30px 76px rgba(2, 4, 14, 0.82);

  /* Pure offline-safe typography stacks (zero external Google Fonts network calls) */
  --font-display: 'Plus Jakarta Sans', 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
  background-color: var(--bg-canvas);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  scroll-padding-bottom: 96px;
  overflow-x: clip;
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  max-width: 100%;
  background-color: var(--bg-canvas);
  color: var(--text-body);
  background-image:
    radial-gradient(ellipse 68% 42% at 18% 8%, rgba(99, 132, 255, 0.14), transparent 64%),
    radial-gradient(ellipse 58% 38% at 86% 14%, rgba(168, 85, 247, 0.15), transparent 62%),
    radial-gradient(ellipse 60% 40% at 50% 62%, rgba(44, 238, 248, 0.06), transparent 68%),
    radial-gradient(ellipse 72% 45% at 50% 96%, rgba(139, 92, 246, 0.14), transparent 65%),
    linear-gradient(180deg, #080A1A 0%, #0B0E23 48%, #080A1A 100%);
  background-attachment: scroll;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

a:hover {
  color: var(--accent-cyan-hover);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-strong);
  letter-spacing: -0.022em;
  line-height: 1.16;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

code,
pre,
.ypg-mono {
  font-family: var(--font-mono);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.ypg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ypg-skip-link {
  position: absolute;
  top: 8px;
  left: 16px;
  z-index: 200;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border-radius: var(--radius-sm);
  background: var(--accent-cyan);
  color: var(--text-inverse);
  font-weight: 700;
}

.ypg-skip-link:focus,
.ypg-skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 10px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  clip-path: none;
}
