/* YouCas Social — youcassocial.com
   Brand: black + cobalt blue (#2B59C3)
   Performance-first, CLS-safe, responsive 320–1440+ */

:root {
  --bg: #07090f;
  --bg-2: #0e1220;
  --bg-3: #151b2e;
  --surface: #1a2238;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(43, 89, 195, 0.45);
  --text: #eef1f8;
  --text-muted: #9aa3b8;
  --accent: #2b59c3;
  --accent-2: #4a7ae8;
  --accent-soft: rgba(43, 89, 195, 0.16);
  --success: #3dbe8c;
  --warning: #e8b84a;
  --danger: #e25a5a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  --container: 1120px;
  --header-h: 72px;
  --font-display: "Outfit", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --focus: 0 0 0 3px rgba(74, 122, 232, 0.55);
  --transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(43, 89, 195, 0.22), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(74, 122, 232, 0.12), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 40%, var(--bg) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: #7aa0f5;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 9, 15, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  line-height: 0;
}

.logo img {
  width: auto;
  height: 40px;
  max-width: min(160px, 42vw);
  object-fit: contain;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform var(--transition);
}

.nav-toggle-bars::before {
  position: absolute;
  top: -6px;
}

.nav-toggle-bars::after {
  position: absolute;
  top: 6px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--accent-soft);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(43, 89, 195, 0.35);
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--text);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
}

.hero-compact {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.25rem, 3vw, 2rem);
}

.hero-compact h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.hero-compact .hero-lead {
  max-width: 42rem;
  margin: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.hero-visual {
  position: relative;
}

.hero-visual a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-decoration: none;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 400ms ease;
}

.hero-visual a:hover img {
  transform: scale(1.03);
}

/* Sections */
.section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-block: 1px solid var(--border);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 48rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 2rem 0 0.85rem;
}

.prose h2 {
  font-size: 1.55rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose h4 {
  font-size: 1.08rem;
  color: #d5dcf0;
}

.prose p {
  margin: 0 0 1.1rem;
  color: #d7deef;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  color: #d7deef;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose li::marker {
  color: var(--accent-2);
}

.prose strong {
  color: #fff;
  font-weight: 700;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-size: 0.95rem;
  overflow-x: auto;
  display: block;
}

.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  text-align: left;
  min-width: 120px;
}

.prose th {
  background: var(--accent-soft);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.prose tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.02);
}

.breadcrumb {
  padding: 1rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.4rem;
  color: #5d6680;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent-2);
}

.page-hero {
  padding: 1.5rem 0 0.5rem;
}

.page-hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.page-hero .lead {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Cards / grids — interaction containers only */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.card {
  background: linear-gradient(180deg, rgba(26, 34, 56, 0.9), rgba(14, 18, 32, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card a {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: var(--bg-3);
}

.card-body {
  padding: 1rem 1.1rem 1.2rem;
}

.card-body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.85rem;
}

.game-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-3);
  transition: transform var(--transition), border-color var(--transition);
}

.game-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
}

.game-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.game-card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 800 / 1076;
  object-fit: contain;
  background: #0a0c14;
}

.game-card span {
  display: block;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.brand-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition);
}

.brand-item:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
  color: var(--text);
}

.brand-item strong {
  font-family: var(--font-display);
  font-size: 1rem;
}

.brand-item span {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Highlight / opportunity cards */
.highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.highlight-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(43, 89, 195, 0.14), rgba(14, 18, 32, 0.95) 55%);
  text-decoration: none;
  color: inherit;
  min-height: 100%;
  transition: border-color var(--transition), transform var(--transition);
}

.highlight-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  color: inherit;
}

.highlight-card .hl-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.highlight-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.highlight-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.highlight-card .hl-link {
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-2);
}

/* Social */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.social-card:hover {
  border-color: var(--border-strong);
  background: var(--accent-soft);
  color: var(--text);
  transform: translateY(-2px);
}

.social-card img {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
}

.social-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.social-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.15rem;
}

.support-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.support-note a {
  font-weight: 700;
}

@media (max-width: 1024px) {
  .highlight-grid,
  .social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .highlight-grid,
  .social-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.15rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--accent-2);
  font-size: 1.25rem;
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item .faq-answer {
  padding: 0 1.15rem 1.1rem;
  color: var(--text-muted);
}

.faq-item .faq-answer p {
  margin: 0;
}

/* CTA band */
.cta-band {
  margin: 0.5rem 0 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(120deg, rgba(43, 89, 195, 0.28), rgba(14, 18, 32, 0.9) 55%),
    var(--bg-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-band h2,
.cta-band h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
  max-width: 42ch;
}

/* Compare */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.compare-col {
  padding: 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.compare-col h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.compare-col.plus {
  border-color: rgba(61, 190, 140, 0.35);
}

.compare-col.minus {
  border-color: rgba(226, 90, 90, 0.3);
}

/* Banner clickable */
.promo-banner {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 1.5rem 0;
}

.promo-banner img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: #05070c;
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0.75rem 0 0;
  max-width: 32ch;
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #c9d2e8;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-col a:hover {
  color: var(--accent-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.age-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(226, 90, 90, 0.45);
  border-radius: 6px;
  color: #f0a0a0;
  font-weight: 700;
}

/* Toc */
.toc {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.toc h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-family: var(--font-display);
}

.toc ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
}

.toc a {
  text-decoration: none;
}

/* Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  animation: fade-up 0.55s ease both;
}

/* Responsive */
@media (max-width: 1024px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .game-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem;
    background: rgba(7, 9, 15, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 200ms ease, opacity 200ms ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    border-radius: var(--radius-sm);
  }

  .header-actions .btn-secondary {
    display: none;
  }

  .hero-grid,
  .compare,
  .brand-strip {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 1.25rem, var(--container));
  }

  .card-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .prose table {
    font-size: 0.85rem;
  }
}

@media (max-width: 320px) {
  body {
    font-size: 1rem;
  }
}
