:root {
  --header-bg: #0f1a2e;
  --header-border: rgba(255, 255, 255, 0.08);
  --primary: #2d9cdb;
  --primary-dark: #1f7ab5;
  --accent: #e8b84a;
  --accent-dark: #c9972e;
  --success: #27ae60;
  --purple: #8e44ad;
  --bg: #eef2f7;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5c6b7f;
  --border: rgba(15, 26, 46, 0.1);
  --shadow: 0 18px 40px rgba(15, 26, 46, 0.12);
  --container: 1180px;
  --hero-overlay: linear-gradient(135deg, rgba(15, 26, 46, 0.92) 0%, rgba(26, 92, 58, 0.78) 55%, rgba(45, 156, 219, 0.35) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #f0d080);
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--header-bg);
  font-weight: 900;
}

.search-box {
  flex: 1;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  outline: none;
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-box button {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  padding: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.main-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.lang-select {
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
}

.btn-login {
  padding: 8px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s;
}

.btn-login:hover {
  background: var(--primary-dark);
}

.menu-toggle {
  display: none;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 20px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 420px;
  background: var(--hero-overlay),
    radial-gradient(circle at 80% 20%, rgba(232, 184, 74, 0.25), transparent 40%),
    linear-gradient(160deg, #0a1628 0%, #1a5c3a 50%, #0f1a2e 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(255, 255, 255, 0.02) 40px, rgba(255, 255, 255, 0.02) 42px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 40px;
  padding: 48px 0 56px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.card-stack {
  position: relative;
  width: 220px;
  height: 300px;
}

.playing-card {
  position: absolute;
  width: 140px;
  height: 200px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 48px;
}

.playing-card .suit {
  font-size: 36px;
  margin-top: -8px;
}

.playing-card.red {
  color: #c0392b;
}

.playing-card.black {
  color: #1a2332;
}

.playing-card:nth-child(1) {
  transform: rotate(-12deg) translate(-30px, 20px);
  z-index: 1;
}

.playing-card:nth-child(2) {
  transform: rotate(4deg) translate(20px, 0);
  z-index: 2;
}

.playing-card:nth-child(3) {
  transform: rotate(14deg) translate(60px, 30px);
  z-index: 3;
}

.hero-content {
  color: #fff;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 20px;
}

.hero-badge {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.15);
  font-size: 13px;
  font-weight: 700;
  transform: skewX(-8deg);
  border-left: 3px solid var(--accent);
}

.hero-badge + .hero-badge {
  margin-left: -4px;
}

.hero-title {
  margin: 0 0 8px;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.05;
  text-transform: uppercase;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 0;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.75);
  max-width: 480px;
}

/* ===== CONTENT SECTION ===== */
.content-section {
  background: var(--surface);
  padding: 40px 0 48px;
}

.content-block h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
}

.content-block p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  max-width: 780px;
}

.content-block .designer {
  margin-top: 20px;
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn-action {
  padding: 12px 28px;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-action.teal {
  background: #1abc9c;
}

.btn-action.blue {
  background: var(--primary);
}

.btn-action.purple {
  background: var(--purple);
}

.btn-action.gold {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--text);
}

/* ===== GAME SHOWCASE ===== */
.game-showcase {
  padding: 48px 0;
  background: var(--bg);
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.game-card {
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(15, 26, 46, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.game-card-thumb {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  position: relative;
}

.game-card-thumb.indian {
  background: linear-gradient(135deg, #1a5c3a, #27ae60);
}

.game-card-thumb.gin {
  background: linear-gradient(135deg, #2c3e6b, #3498db);
}

.game-card-thumb.points {
  background: linear-gradient(135deg, #6b2c3e, #e74c3c);
}

.game-card-body {
  padding: 20px;
}

.game-card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.game-card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.game-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.game-card-actions {
  display: flex;
  gap: 8px;
}

.game-card-actions a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.game-card-actions .play {
  background: var(--primary);
}

.game-card-actions .learn {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.live-count {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(39, 174, 96, 0.12);
  color: var(--success);
  font-size: 12px;
  font-weight: 700;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===== FORUM PREVIEW ===== */
.forum-preview {
  padding: 48px 0;
  background: var(--surface);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 32px);
}

.section-header a {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.thread-list {
  display: grid;
  gap: 12px;
}

.thread-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.thread-item:hover {
  border-color: var(--primary);
  background: #e8f4fc;
}

.thread-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.thread-meta {
  font-size: 13px;
  color: var(--muted);
}

.thread-stats {
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}

.thread-stats strong {
  display: block;
  font-size: 18px;
  color: var(--text);
}

/* ===== STATS BAR ===== */
.stats-bar {
  padding: 32px 0;
  background: linear-gradient(135deg, var(--header-bg), #1a3a5c);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: var(--accent);
}

.stat-item span {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

/* ===== DECORATIVE BAND ===== */
.decor-band {
  padding: 40px 0;
  background: #fff;
  text-align: center;
  overflow: hidden;
}

.decor-band p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--muted);
}

.decor-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  font-size: 36px;
}

/* ===== INNER PAGES ===== */
.page-hero {
  padding: 36px 0;
  background: linear-gradient(135deg, var(--header-bg), #1a3a5c);
  color: #fff;
}

.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
}

.page-content {
  padding: 40px 0 60px;
}

.page-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(15, 26, 46, 0.04);
}

.page-card h2 {
  margin: 28px 0 12px;
  font-size: 20px;
  color: var(--primary);
}

.page-card h2:first-child {
  margin-top: 0;
}

.page-card p,
.page-card li {
  color: var(--muted);
  font-size: 15px;
}

.page-card ul {
  padding-left: 22px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-item:last-child {
  border-bottom: 0;
}

.faq-q {
  font-weight: 700;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-a {
  color: var(--muted);
  font-size: 15px;
  display: none;
}

.faq-item.open .faq-a {
  display: block;
}

.games-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.game-list-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
  align-items: center;
  transition: border-color 0.2s;
}

.game-list-item:hover {
  border-color: var(--primary);
}

.game-list-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 28px;
  flex-shrink: 0;
}

.game-list-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
}

.game-list-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.forum-categories {
  display: grid;
  gap: 16px;
}

.forum-category {
  padding: 22px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.forum-category h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.forum-category p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}

.forum-category-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--muted);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: var(--bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.news-card:hover {
  transform: translateY(-3px);
}

.news-card-thumb {
  height: 140px;
  display: grid;
  place-items: center;
  font-size: 48px;
}

.news-card-body {
  padding: 18px;
}

.news-card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.news-card-body p {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--muted);
}

.news-date {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
}

.leaderboard-table th,
.leaderboard-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.leaderboard-table th {
  background: var(--bg);
  font-weight: 700;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leaderboard-table tr:hover td {
  background: #e8f4fc;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
}

.rank-badge.gold { background: #ffd700; color: #7a6200; }
.rank-badge.silver { background: #c0c0c0; color: #555; }
.rank-badge.bronze { background: #cd7f32; color: #fff; }

/* ===== FOOTER ===== */
.site-footer {
  background: #0a1220;
  color: rgba(255, 255, 255, 0.72);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  font-size: 16px;
  transition: background 0.2s;
}

.social-links a:hover {
  background: var(--primary);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: var(--accent);
}

.back-to-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: 0;
  font-size: 18px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 90;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: #f0f0f0;
  border-top: 1px solid #ddd;
  padding: 16px 0;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-inner {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cookie-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.cookie-text h4 {
  margin: 0 0 4px;
  font-size: 16px;
}

.cookie-text p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 600px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.cookie-actions button {
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}

.cookie-actions .reject {
  background: #ddd;
  color: var(--text);
}

.cookie-actions .accept {
  background: var(--primary);
  color: #fff;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 300;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--surface);
  border-radius: 16px;
  padding: 32px;
  max-width: 420px;
  width: min(100% - 32px, 420px);
  text-align: center;
  box-shadow: var(--shadow);
}

.modal-box h3 {
  margin: 0 0 12px;
}

.modal-box p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
}

.modal-box button {
  padding: 10px 28px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

/* ===== ARTICLES ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 26, 46, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.article-card-thumb {
  height: 140px;
  display: grid;
  place-items: center;
  font-size: 42px;
  color: #fff;
}

.article-card-body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.article-card-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  flex: 1;
}

.article-meta {
  font-size: 12px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 12px;
}

.article-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

.article-content {
  max-width: 820px;
}

.article-content h2 {
  margin: 32px 0 14px;
  font-size: 22px;
  color: var(--primary);
}

.article-content h2:first-of-type {
  margin-top: 0;
}

.article-content p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.article-content ul,
.article-content ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--muted);
  line-height: 1.8;
}

.article-content li {
  margin-bottom: 8px;
}

.article-byline {
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

/* ===== LEGAL NOTICE ===== */
.legal-notice {
  padding: 40px 0;
  background: #e8f0f8;
  border-top: 1px solid var(--border);
}

.legal-notice h2 {
  margin: 0 0 20px;
  font-size: 22px;
}

.legal-notice h3 {
  margin: 20px 0 10px;
  font-size: 16px;
  color: var(--text);
}

.legal-notice p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.legal-notice .legal-note {
  margin-top: 16px;
  font-size: 13px;
  color: #888;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-subtitle {
    margin: 0 auto;
  }

  .showcase-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .top-bar-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }

  .brand {
    font-size: 17px;
    gap: 8px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .search-box {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: 54px;
    left: 0;
    right: 0;
    background: var(--header-bg);
    flex-direction: column;
    padding: 12px 16px 16px;
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
    z-index: 99;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 15px;
  }

  .lang-select {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 32px 0 36px;
    gap: 24px;
  }

  .hero-visual {
    order: -1;
  }

  .card-stack {
    width: 180px;
    height: 240px;
  }

  .playing-card {
    width: 110px;
    height: 160px;
    font-size: 36px;
  }

  .playing-card .suit {
    font-size: 28px;
  }

  .playing-card:nth-child(1) {
    transform: rotate(-10deg) translate(-20px, 16px);
  }

  .playing-card:nth-child(3) {
    transform: rotate(12deg) translate(40px, 24px);
  }

  .hero-title {
    font-size: clamp(28px, 8vw, 42px);
  }

  .hero-subtitle {
    font-size: 15px;
  }

  .hero-badge {
    padding: 6px 14px;
    font-size: 12px;
  }

  .content-section {
    padding: 32px 0 36px;
  }

  .content-block h2,
  .section-header h2,
  .page-hero h1 {
    font-size: clamp(22px, 5vw, 28px);
  }

  .content-block p {
    font-size: 15px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .btn-action {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
  }

  .forum-preview,
  .game-showcase {
    padding: 32px 0;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .showcase-grid,
  .news-grid,
  .games-list-grid,
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .stats-bar {
    padding: 24px 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .stat-item strong {
    font-size: clamp(24px, 6vw, 32px);
  }

  .stat-item span {
    font-size: 13px;
  }

  .thread-item {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }

  .thread-stats {
    text-align: left;
  }

  .thread-title {
    font-size: 14px;
  }

  .page-hero {
    padding: 28px 0;
  }

  .page-hero p {
    font-size: 14px;
  }

  .page-content {
    padding: 28px 0 40px;
  }

  .page-card {
    padding: 20px 16px;
  }

  .article-content h2 {
    font-size: 19px;
    margin-top: 24px;
  }

  .article-content p,
  .article-content li {
    font-size: 15px;
  }

  .article-card-body {
    padding: 18px;
  }

  .article-card-body h3 {
    font-size: 16px;
  }

  .legal-notice {
    padding: 28px 0;
  }

  .legal-notice h2 {
    font-size: 19px;
  }

  .legal-notice h3 {
    font-size: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer {
    padding: 32px 0 20px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cookie-banner {
    padding: 14px 0;
  }

  .cookie-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }

  .cookie-icon {
    font-size: 36px;
  }

  .cookie-text p {
    font-size: 12px;
  }

  .cookie-actions {
    margin-left: 0;
    width: 100%;
    flex-direction: column;
  }

  .cookie-actions button {
    width: 100%;
  }

  .back-to-top {
    bottom: 24px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .leaderboard-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }

  .forum-category {
    padding: 16px;
  }

  .forum-category-meta {
    flex-direction: column;
    gap: 6px;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .brand {
    font-size: 15px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .hero-inner {
    padding: 24px 0 28px;
  }

  .card-stack {
    width: 150px;
    height: 200px;
  }

  .playing-card {
    width: 90px;
    height: 130px;
    font-size: 28px;
    border-radius: 8px;
  }

  .playing-card .suit {
    font-size: 22px;
  }

  .hero-title {
    font-size: clamp(24px, 7vw, 32px);
    letter-spacing: 0;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .content-block h2,
  .section-header h2,
  .page-hero h1 {
    font-size: 20px;
  }

  .content-block p,
  .article-content p {
    font-size: 14px;
  }

  .btn-action {
    font-size: 14px;
    padding: 12px 16px;
  }

  .article-card-thumb {
    height: 110px;
    font-size: 32px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .stat-item strong {
    font-size: 22px;
  }

  .page-card {
    padding: 16px 14px;
    border-radius: 12px;
  }

  .article-byline {
    font-size: 13px;
  }

  .legal-notice h2 {
    font-size: 17px;
  }

  .thread-item {
    padding: 12px 14px;
  }

  .decor-band {
    padding: 28px 0;
  }

  .decor-band p {
    font-size: 15px;
  }

  .decor-icons {
    font-size: 28px;
    gap: 14px;
  }
}
