/*
 * DESA55 Solitaire - Global Stylesheet
 * Konsep: Classic Solitaire Bertemu Suasana Pedesaan
 */

:root {
  /* Palet Warna Alami */
  --color-primary: #2f5d3a;       /* Hijau Daun Utama */
  --color-primary-dark: #1e3d26;  /* Hijau Tua Daun */
  --color-primary-light: #ecf3ee; /* Hijau Daun Sangat Muda (Background) */
  --color-secondary: #6f8f58;     /* Hijau Lembut Pedesaan */
  --color-background: #f7f3e9;    /* Krem/Beige Hangat */
  --color-surface: #ffffff;       /* Putih Bersih */
  --color-surface-warm: #fcfbfa;  /* Putih Hangat */
  --color-text: #20251f;          /* Abu-abu Sangat Gelap */
  --color-muted: #687066;         /* Abu-abu Daun Muted */
  --color-border: #dcd8ca;        /* Krem Perbatasan */
  --color-accent: #8b5a2b;        /* Cokelat Kayu Pohon */
  --color-wood-dark: #5c3a21;     /* Cokelat Kayu Gelap */
  --color-wood-light: #a67c52;    /* Cokelat Kayu Terang */
  --color-red: #c0392b;           /* Merah Klasik Kartu */
  --color-black: #2c3e50;         /* Hitam Klasik Kartu */

  /* Tipografi */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;

  /* Ukuran & Batasan */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container-max: 1200px;
  --header-height: 70px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(32, 37, 31, 0.05);
  --shadow-md: 0 4px 12px rgba(32, 37, 31, 0.08);
  --shadow-lg: 0 10px 25px rgba(32, 37, 31, 0.12);
}

/* Reset & Normalize */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
h1, h2, h3, h4 {
  color: var(--color-primary-dark);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.75rem; margin-top: 1.5em; }
h3 { font-size: 1.35rem; margin-top: 1.2em; }
p { margin-bottom: 1.25em; color: #2e342d; }

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--color-accent);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

.text-center { text-align: center; }

/* Skip Navigation Link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--color-accent);
  color: white;
  padding: 10px 20px;
  z-index: 10000;
  transition: top var(--transition-fast);
}
.skip-link:focus {
  top: 0;
}

/* Header & Navigation */
.site-header {
  height: var(--header-height);
  background-color: rgba(252, 251, 250, 0.95);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-link svg {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--color-primary-dark);
  font-weight: 550;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  background-color: var(--color-primary);
  color: white !important;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background-color var(--transition-fast);
}

.nav-cta:hover {
  background-color: var(--color-primary-dark);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  fill: var(--color-primary-dark);
}

/* Hero Section with Video Background */
.hero {
  position: relative;
  padding: 8rem 0;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background-color: #1a221b; /* Fallback background */
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 61, 38, 0.85) 0%, rgba(20, 29, 21, 0.9) 100%);
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-content {
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #ffffff; /* White text for contrast on background video */
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-subheading {
  font-size: 1.2rem;
  color: #ecf3ee; /* Warm off-white */
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary-dark);
  border: 2px solid var(--color-primary-dark);
}

.btn-secondary:hover {
  background-color: rgba(30, 61, 38, 0.05);
  transform: translateY(-2px);
}

.hero-illustration {
  display: flex;
  justify-content: center;
  z-index: 1;
}

.hero-illustration svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 15px 30px rgba(32,37,31,0.08));
}

/* Game Collection Section */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.game-card {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 2rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-secondary);
}

.game-card-icon {
  width: 60px;
  height: 60px;
  background-color: var(--color-primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--color-primary);
}

.game-card-icon svg {
  width: 32px;
  height: 32px;
}

.game-card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.game-card-desc {
  font-size: 0.92rem;
  color: var(--color-muted);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.game-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.game-difficulty {
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.diff-mudah { background-color: #e8f5e9; color: #2e7d32; }
.diff-sedang { background-color: #fff8e1; color: #f57f17; }
.diff-sulit { background-color: #ffebee; color: #c62828; }

.game-card-btn {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.game-card-btn svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.game-card:hover .game-card-btn svg {
  transform: translateX(4px);
}

/* Feature Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.feature-box {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-text {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* Editorial Section (Solitaire + Pedesaan) */
.editorial-section {
  background-color: var(--color-primary-light);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.editorial-image svg {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.section-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: block;
}

.editorial-text {
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Popular Guides Section */
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.guide-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.guide-item:hover {
  border-color: var(--color-secondary);
}

.guide-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.guide-excerpt {
  font-size: 0.92rem;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.guide-link {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 3rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.faq-item {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-secondary);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.faq-question svg {
  width: 20px;
  height: 20px;
  transition: transform var(--transition-normal);
  fill: var(--color-primary);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
}

.faq-answer-content {
  padding: 0 2rem 1.5rem 2rem;
  font-size: 0.95rem;
  color: var(--color-muted);
  border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
  max-height: 500px;
}

.faq-item.active .faq-answer-content {
  border-top-color: var(--color-border);
}

/* Final CTA Section */
.final-cta {
  background-color: var(--color-primary-dark);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.final-cta h2 {
  color: white;
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.final-cta p {
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.1rem;
}

.final-cta .btn-primary {
  background-color: var(--color-surface);
  color: var(--color-primary-dark);
}

.final-cta .btn-primary:hover {
  background-color: var(--color-primary-light);
}

/* Footer styling */
.site-footer {
  background-color: #1a221b;
  color: #c9ceca;
  padding: 5rem 0 2.5rem 0;
  border-top: 3px solid var(--color-primary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand svg {
  height: 44px;
  margin-bottom: 1.25rem;
}

.footer-desc {
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: #a4aaa5;
}

.footer-title {
  color: white;
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  color: #a4aaa5;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: #838a84;
}

.footer-bottom-links {
  display: flex;
  gap: 2rem;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
  padding: 1.5rem 0;
  background-color: rgba(30, 61, 38, 0.02);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--color-muted);
}

.breadcrumb-item a {
  color: var(--color-muted);
}

.breadcrumb-item a:hover {
  color: var(--color-primary);
}

.breadcrumb-separator {
  color: var(--color-border);
}

/* Inner Page (Article/Guides, About, Contact) Layouts */
.inner-page-layout {
  padding: 4rem 0;
}

.article-container {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: 4rem;
}

.article-content {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.article-content p {
  margin-bottom: 1.5em;
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-content h2 {
  font-size: 1.85rem;
  margin-top: 2em;
  margin-bottom: 0.8em;
}

.article-content h3 {
  font-size: 1.4rem;
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.article-content ol, .article-content ul {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.widget {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.widget-title {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--color-primary-light);
  padding-bottom: 0.5rem;
}

.widget-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.widget-link-item a {
  font-weight: 550;
  color: var(--color-text);
  font-size: 0.95rem;
  display: block;
}

.widget-link-item a:hover {
  color: var(--color-primary);
}

/* Editorial Profile Info */
.author-profile {
  background-color: var(--color-primary-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  margin-top: 3rem;
}

.author-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.author-desc {
  font-size: 0.92rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Contact Page form styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.form-input {
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-warm);
  font-size: 1rem;
  outline: none;
  font-family: var(--font-sans);
}

.form-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(47, 93, 58, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 150px;
}

/* Solitaire Game Board Container */
.game-container-block {
  margin-top: 2rem;
}

.game-header {
  background-color: #264a2e;
  color: white;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.game-stats {
  display: flex;
  gap: 2rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.game-stat-val {
  color: #aed581;
}

.game-controls {
  display: flex;
  gap: 0.75rem;
}

.btn-game {
  background-color: rgba(255,255,255,0.12);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background-color var(--transition-fast);
}

.btn-game:hover {
  background-color: rgba(255,255,255,0.24);
}

.btn-game:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-game svg {
  width: 16px;
  height: 16px;
}

/* Interactive Board CSS-based cards */
.game-board {
  background: radial-gradient(circle, #2e5c38 0%, #17331e 100%);
  border: 12px solid #523624; /* Bingkai Kayu */
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  aspect-ratio: 16/9;
  min-height: 520px;
  position: relative;
  padding: 1.5rem;
  overflow: hidden;
  box-shadow: inset 0 10px 30px rgba(0,0,0,0.6), var(--shadow-lg);
  user-select: none;
}

/* Piles Positioning */
.board-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.top-row {
  margin-bottom: 2rem;
}

.pile-group {
  display: flex;
  gap: 1rem;
}

/* General Pile placeholder slot */
.card-pile {
  width: 76px;
  height: 110px;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  position: relative;
  background-color: rgba(0,0,0,0.15);
}

.card-pile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.15);
  font-size: 1.5rem;
  font-weight: 700;
}

.pile-foundation::after {
  content: '♣';
}

.pile-foundation[data-suit="H"]::after { content: '♥'; }
.pile-foundation[data-suit="D"]::after { content: '♦'; }
.pile-foundation[data-suit="S"]::after { content: '♠'; }
.pile-foundation[data-suit="C"]::after { content: '♣'; }

.pile-freecell::after {
  content: '◇';
}

/* Card Element */
.game-card-element {
  width: 76px;
  height: 110px;
  border-radius: 8px;
  position: absolute;
  background-color: var(--color-surface);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6px;
  cursor: grab;
  transform-origin: center center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  z-index: 10;
  user-select: none;
}

.game-card-element:active {
  cursor: grabbing;
}

.game-card-element.dragging {
  z-index: 1000 !important;
  pointer-events: none;
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}

.game-card-element.face-down {
  background: repeating-linear-gradient(
    45deg,
    #8b5a2b,
    #8b5a2b 10px,
    #5c3a21 10px,
    #5c3a21 20px
  );
  border: 4px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.25);
  cursor: default;
}

.game-card-element.face-down * {
  display: none !important;
}

.game-card-element.suit-red {
  color: var(--color-red);
}

.game-card-element.suit-black {
  color: var(--color-black);
}

.card-top {
  display: flex;
  justify-content: space-between;
  line-height: 1;
}

.card-value {
  font-size: 1.15rem;
  font-weight: 700;
}

.card-suit {
  font-size: 1.15rem;
}

.card-center {
  font-size: 2.2rem;
  text-align: center;
  line-height: 1;
  align-self: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Stacked Tableau Cards */
.tableau-pile {
  min-height: 380px;
  height: auto;
  background-color: transparent;
  border-style: solid;
  border-width: 0;
}

/* Win Screen Overlay */
.win-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(30, 61, 38, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.win-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.win-title {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 1rem;
}

.win-stats {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #aed581;
}

/* Accessibility Focus States */
*:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
  .game-card-element {
    transition: none !important;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  .section-padding { padding: 4rem 0; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero-subheading { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .features-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .editorial-grid { grid-template-columns: 1fr; gap: 2.5rem; text-align: center; }
  .editorial-image { order: -1; }
  .guide-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none; /* Mobile menu toggled via JS */
  }
  .nav-toggle {
    display: block;
  }
  
  .game-board {
    min-height: 400px;
    padding: 0.75rem;
  }
  
  .card-pile, .game-card-element {
    width: 48px;
    height: 70px;
    border-radius: 5px;
  }
  
  .game-card-element {
    padding: 4px;
  }
  
  .card-value, .card-suit {
    font-size: 0.8rem;
  }
  
  .card-center {
    font-size: 1.4rem;
  }
  
  .top-row {
    margin-bottom: 1rem;
  }
  
  .article-container {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .hero-buttons { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
  
  .card-pile, .game-card-element {
    width: 38px;
    height: 56px;
  }
  
  .card-value, .card-suit {
    font-size: 0.65rem;
  }
  
  .card-center {
    font-size: 1rem;
  }
  
  .game-stats {
    gap: 1rem;
    font-size: 0.9rem;
  }
}
