/* ═══════════════════════════════════════════════════════════════════
   DECKSCORE: Landing-page styles + content-page utilities
   Requires styles.css loaded first. In-app palette and components
   (hero, ribbon, jewel tiles, glossy buttons) live at the top;
   support/privacy/terms content-page helpers live at the bottom.
   ═══════════════════════════════════════════════════════════════════ */

/* ─── In-app design tokens ─── */
:root {
  --ds-night: #1a0b2e;
  --ds-night-2: #2d1b4e;
  --ds-night-3: #4a2c7a;
  --ds-purple: #6B46C1;
  --ds-purple-light: #8B5CF6;
  --ds-gold: #F5B800;
  --ds-gold-light: #FFD95A;
  --ds-gold-dark: #C48600;
}

/* ─── Hero: magical night ─── */
.ds-hero-magic {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(139, 92, 246, 0.35) 0%, transparent 60%),
    linear-gradient(180deg, var(--ds-night-2) 0%, var(--ds-night) 100%);
  border-radius: 28px;
  padding: 3.25rem 2rem 2.75rem;
  overflow: hidden;
  margin-top: 1.25rem;
  border: 1px solid rgba(245, 184, 0, 0.18);
}
.ds-hero-magic::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 15%, rgba(255,255,255,0.85), transparent 50%),
    radial-gradient(2px 2px at 32% 42%, rgba(255,230,150,0.9), transparent 50%),
    radial-gradient(1px 1px at 58% 22%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1.5px 1.5px at 78% 60%, rgba(255,215,100,0.8), transparent 50%),
    radial-gradient(1px 1px at 90% 28%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1px 1px at 20% 78%, rgba(255,255,255,0.65), transparent 50%),
    radial-gradient(1.5px 1.5px at 52% 88%, rgba(255,230,150,0.7), transparent 50%),
    radial-gradient(1.5px 1.5px at 70% 82%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1px 1px at 5% 55%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 42% 10%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 85% 78%, rgba(255,230,150,0.6), transparent 50%);
  animation: ds-twinkle 4s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes ds-twinkle {
  0% { opacity: 0.55; }
  100% { opacity: 1; }
}
.ds-hero-magic-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ds-royal-icon {
  width: 168px;
  height: 168px;
  border-radius: 38px;
  box-shadow:
    0 0 60px rgba(245, 184, 0, 0.25),
    0 16px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin-bottom: 1.25rem;
}

.ds-ribbon-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}
.ds-ribbon {
  display: inline-block;
  padding: 1rem 3.5rem;
  background:
    linear-gradient(180deg, #FFE489 0%, #F5B800 45%, #C48600 100%);
  color: #3a2400;
  font-family: var(--font-display, 'Bricolage Grotesque'), sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  letter-spacing: 0.1em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 -1px 0 rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 -3px 6px rgba(154, 104, 0, 0.45),
    0 6px 18px rgba(0, 0, 0, 0.45);
  position: relative;
}
.ds-ribbon::before,
.ds-ribbon::after {
  content: '';
  position: absolute;
  top: 0;
  width: 22px;
  height: 100%;
  background: linear-gradient(180deg, #F5B800 0%, #9A6800 100%);
  clip-path: polygon(0 0, 100% 0, 55% 50%, 100% 100%, 0 100%);
}
.ds-ribbon::before { left: -20px; }
.ds-ribbon::after { right: -20px; transform: scaleX(-1); }

.ds-tagline {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  letter-spacing: 0.22em;
  margin-top: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
}
.ds-tagline .dot {
  color: var(--ds-gold);
  margin: 0 0.5rem;
}

.ds-hero-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.0625rem;
  max-width: 580px;
  margin: 1rem auto 1.5rem;
  line-height: 1.6;
}

.ds-hero-ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  justify-content: center;
}

.ds-hero-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* ─── Glossy app-style buttons ─── */
.ds-btn-glossy {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.75rem;
  border-radius: 18px;
  font-family: var(--font-display, 'Bricolage Grotesque'), sans-serif;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  color: white;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18),
    0 6px 16px rgba(0, 0, 0, 0.35);
}
.ds-btn-glossy::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 10px;
  right: 10px;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
  border-radius: 14px 14px 40% 40%;
  pointer-events: none;
}
.ds-btn-glossy:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 0 rgba(0, 0, 0, 0.18),
    0 12px 24px rgba(0, 0, 0, 0.45);
}
.ds-btn-green { background: linear-gradient(180deg, #6EE7A4 0%, #10B981 100%); }
.ds-btn-gold {
  background: linear-gradient(180deg, #FFD95A 0%, #F5B800 100%);
  color: #3a2400;
}

/* ─── Section heading accent ─── */
.ds-eyebrow {
  color: var(--ds-gold);
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* ─── In-app navigation button showcase ─── */
.ds-nav-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.ds-nav-pill {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 22px;
  color: white;
  font-family: var(--font-display, 'Bricolage Grotesque'), sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -4px 0 rgba(0, 0, 0, 0.18),
    0 10px 22px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
.ds-nav-pill::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 12px;
  right: 12px;
  height: 45%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, transparent 100%);
  border-radius: 18px 18px 40% 40%;
  pointer-events: none;
}
.ds-pill-green  { background: linear-gradient(180deg, #6EE7A4 0%, #10B981 100%); }
.ds-pill-purple { background: linear-gradient(180deg, #B794F6 0%, #7C3AED 100%); }
.ds-pill-blue   { background: linear-gradient(180deg, #93C5FD 0%, #3B82F6 100%); }
.ds-pill-orange { background: linear-gradient(180deg, #FCD34D 0%, #F59E0B 100%); }
.ds-pill-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.ds-pill-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.ds-pill-meta small {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.85;
}

/* ─── Jewel tile grid (matches Game Selection screen) ─── */
.ds-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
@media (min-width: 900px) {
  .ds-tile-grid { grid-template-columns: repeat(4, 1fr); }
}
.ds-tile {
  aspect-ratio: 1;
  border-radius: 26px;
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  font-family: var(--font-display, 'Bricolage Grotesque'), sans-serif;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -5px 0 rgba(0, 0, 0, 0.18),
    0 12px 28px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}
.ds-tile::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 14px;
  right: 14px;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 100%);
  border-radius: 22px 22px 50% 50%;
  pointer-events: none;
}
.ds-tile:hover { transform: translateY(-3px); }

.ds-tile-emblem {
  width: 68px;
  height: 68px;
  background: white;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}
.ds-tile-name {
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 1;
}
.ds-tile-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.92;
  margin-top: 0.15rem;
  position: relative;
  z-index: 1;
}
.ds-tile-players {
  font-size: 0.6875rem;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.28);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  margin-top: 0.5rem;
  position: relative;
  z-index: 1;
}

.ds-tile-red    { background: linear-gradient(180deg, #FF8591 0%, #E63946 100%); }
.ds-tile-gold   { background: linear-gradient(180deg, #FFD95A 0%, #E5A000 100%); }
.ds-tile-green  { background: linear-gradient(180deg, #6EE7A4 0%, #10B981 100%); }
.ds-tile-purple { background: linear-gradient(180deg, #B794F6 0%, #7C3AED 100%); }
.ds-tile-pink   { background: linear-gradient(180deg, #F9A8D4 0%, #EC4899 100%); }
.ds-tile-blue   { background: linear-gradient(180deg, #93C5FD 0%, #3B82F6 100%); }
.ds-tile-teal   { background: linear-gradient(180deg, #5EEAD4 0%, #14B8A6 100%); }
.ds-tile-orange { background: linear-gradient(180deg, #FDBA74 0%, #F97316 100%); }

/* ─── Tile emblems ─── */
.em-abc { font-size: 1.375rem; letter-spacing: -0.04em; }
.em-abc .a { color: #E63946; }
.em-abc .b { color: #3B82F6; }
.em-abc .c { color: #10B981; }
.em-crown { color: #F5B800; font-size: 2rem; }
.em-ten { color: #10B981; font-size: 1.75rem; font-weight: 900; }
.em-suits { font-size: 1.5rem; letter-spacing: -0.15em; line-height: 1; }
.em-suits .h { color: #E63946; }
.em-suits .d { color: #3B82F6; }
.em-handfoot { font-size: 1.75rem; }
.em-canasta { font-size: 1.25rem; letter-spacing: -0.1em; }
.em-canasta .star { color: #F5B800; }
.em-canasta .club { color: #0f0f1a; }
.em-canasta .heart { color: #E63946; }
.em-skipbo { color: #14B8A6; font-size: 1.875rem; font-weight: 900; }
.em-uno { color: #E63946; font-weight: 900; font-size: 1.5rem; }

/* ─── Feature card (app palette tint) ─── */
.ds-feature-card {
  background: linear-gradient(180deg, rgba(107, 70, 193, 0.12) 0%, rgba(26, 11, 46, 0.25) 100%);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 18px;
  padding: 1.75rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.ds-feature-card:hover {
  border-color: rgba(245, 184, 0, 0.45);
  transform: translateY(-2px);
}
.ds-feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--ds-gold-light) 0%, var(--ds-gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 4px 12px rgba(245, 184, 0, 0.3);
  font-size: 1.25rem;
}
.ds-feature-card h3 {
  color: white;
  margin-bottom: 0.5rem;
}

/* ─── Timeline step ─── */
.ds-process-step {
  background: linear-gradient(180deg, rgba(107, 70, 193, 0.15) 0%, rgba(26, 11, 46, 0.35) 100%);
  border: 1px solid rgba(245, 184, 0, 0.22);
  border-radius: 18px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.ds-process-step:hover {
  border-color: rgba(245, 184, 0, 0.55);
  transform: translateY(-2px);
}
.ds-step-number {
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
  color: var(--ds-gold);
  font-size: 0.875rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
  display: block;
}

/* ─── Stats (gold-gradient values) ─── */
.ds-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 0.5rem 0;
}
@media (min-width: 720px) {
  .ds-stats { grid-template-columns: repeat(4, 1fr); }
}
.ds-stat {
  text-align: center;
  padding: 1.25rem;
  background: linear-gradient(180deg, rgba(107, 70, 193, 0.08) 0%, transparent 100%);
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 16px;
}
.ds-stat-value {
  font-family: var(--font-display, 'Bricolage Grotesque'), sans-serif;
  font-weight: 800;
  font-size: 2.25rem;
  background: linear-gradient(180deg, #FFE489 0%, #F5B800 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 0.375rem;
}
.ds-stat-label {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
}

/* ─── CTA panel ─── */
.ds-cta-magic {
  position: relative;
  background:
    radial-gradient(ellipse at center, rgba(139, 92, 246, 0.3) 0%, transparent 70%),
    linear-gradient(180deg, var(--ds-night-2) 0%, var(--ds-night) 100%);
  border-radius: 28px;
  padding: 3rem 2rem;
  text-align: center;
  border: 1px solid rgba(245, 184, 0, 0.3);
  margin: 1.5rem 0 2.5rem;
  overflow: hidden;
}
.ds-cta-magic::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(255,230,150,0.7), transparent 50%),
    radial-gradient(1px 1px at 85% 30%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(2px 2px at 50% 75%, rgba(255,215,100,0.6), transparent 50%),
    radial-gradient(1px 1px at 30% 80%, rgba(255,255,255,0.5), transparent 50%);
  pointer-events: none;
}
.ds-cta-magic > * { position: relative; z-index: 1; }

/* ─── Explainer callouts ─── */
.ds-explainer {
  margin-top: 2rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(180deg, rgba(107, 70, 193, 0.1) 0%, rgba(26, 11, 46, 0.25) 100%);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-left: 3px solid var(--ds-gold);
  border-radius: 14px;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  font-size: 0.9375rem;
  max-width: 820px;
}
.ds-explainer strong { color: var(--ds-gold-light); font-weight: 700; }

/* ─── Design principles (three-up) ─── */
.ds-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.ds-principle {
  background: linear-gradient(180deg, rgba(107, 70, 193, 0.12) 0%, rgba(26, 11, 46, 0.3) 100%);
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 18px;
  padding: 1.5rem;
}
.ds-principle-label {
  color: var(--ds-gold);
  font-family: var(--font-mono, 'JetBrains Mono'), monospace;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}
.ds-principle h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.ds-principle p {
  color: rgba(255,255,255,0.72);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.ds-principle-swatch {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.875rem;
}
.ds-swatch {
  flex: 1;
  height: 22px;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ─── Narrative "built for" panel ─── */
.ds-narrative {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.5rem;
  background:
    radial-gradient(ellipse at top right, rgba(139, 92, 246, 0.18) 0%, transparent 60%),
    linear-gradient(180deg, rgba(45, 27, 78, 0.4) 0%, rgba(26, 11, 46, 0.5) 100%);
  border: 1px solid rgba(245, 184, 0, 0.22);
  border-radius: 24px;
}
@media (min-width: 880px) {
  .ds-narrative { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
.ds-narrative h2 { color: white; font-size: 2rem; margin-bottom: 0.75rem; }
.ds-narrative p { color: rgba(255,255,255,0.78); line-height: 1.7; }
.ds-narrative p + p { margin-top: 0.875rem; }
.ds-audience {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}
.ds-audience-item {
  background: rgba(107, 70, 193, 0.18);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 14px;
  padding: 1rem;
}
.ds-audience-item .emoji { font-size: 1.5rem; display: block; margin-bottom: 0.375rem; }
.ds-audience-item strong { color: white; display: block; font-family: var(--font-display, 'Bricolage Grotesque'), sans-serif; font-size: 0.9375rem; }
.ds-audience-item span { color: rgba(255,255,255,0.65); font-size: 0.8125rem; }

/* ─── Hero "why" strip ─── */
.ds-why-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding: 0 1rem;
}
.ds-why-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}
.ds-why-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--ds-gold-light) 0%, var(--ds-gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 10px rgba(245,184,0,0.25);
}
.ds-why-item strong { color: white; font-family: var(--font-display, 'Bricolage Grotesque'), sans-serif; display: block; font-size: 0.9375rem; }
.ds-why-item span { color: rgba(255,255,255,0.68); font-size: 0.8125rem; line-height: 1.5; }

/* ─── Vertical-rhythm overrides for DeckScore sections ─── */
main#main .section { padding: 3rem 0; }
main#main .section-header { margin-bottom: 1.75rem; }
main#main .section-header h2 { margin-bottom: 0.5rem; }
main#main .section-header .section-subtitle { margin-top: 0; }

/* ─── Responsive tightening ─── */
@media (max-width: 640px) {
  .ds-ribbon { font-size: 1.5rem; padding: 0.75rem 2rem; }
  .ds-royal-icon { width: 128px; height: 128px; }
}

/* ═══════════════════════════════════════════════════════════════════
   CONTENT PAGES: privacy, terms, support
   Used by deckscore-privacy.html, deckscore-terms.html,
   deckscore-support.html. Do not remove.
   ═══════════════════════════════════════════════════════════════════ */

.ds-faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.ds-faq-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.ds-faq-item p {
  font-size: 0.9375rem;
}

.link-accent {
  color: var(--accent);
  transition: color var(--dur-fast) ease;
}
.link-accent:hover {
  color: var(--accent-hover);
}

.ds-content {
  max-width: 760px;
}
.ds-content h2,
.ds-content h3 {
  margin-top: 2rem;
}
.ds-content ul {
  margin-top: 0.75rem;
  padding-left: 1.5rem;
  list-style: disc;
}
.ds-content li {
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}

.ds-meta {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.ds-bottom-nav {
  padding-top: 2rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.ds-response-note {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.btn-group--start {
  justify-content: flex-start;
}
