/* Fairspin casino – design tokens */
:root {
  /* Backgrounds */
  --bg-main: #111111;
  --bg-surface: #222222;
  --bg-header: #161616;
  /* Accent – golden/sand */
  --color-accent: #DEB887;
  --accent: #DEB887;
  --accent-light: #E5B67C;
  --accent-dark: #C4A574;
  --accent-rgb: 222, 184, 135;
  --shimmer-warm-rgb: 222, 184, 120;
  --header-shimmer: radial-gradient(ellipse 160% 120% at 50% 15%, rgba(var(--accent-rgb),0.18) 0%, transparent 50%);
  /* Text */
  --text-primary: #F5F5F5;
  --white: #F5F5F5;
  --text-muted: #8A8A8A;
  /* Borders */
  --border-color: rgba(255, 255, 255, 0.05);
  /* Typography */
  --font-main: 'Inter', 'Poppins', 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-size-base: 15px;
  --font-size-menu: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --font-weight-logo: 800;
  --font-weight-menu: 600;
  --font-weight-heading: 600;
  --padding-block: 16px;
  --gap-nav: 16px;
  --gap-tabs: 8px;
  /* CTA / semantic */
  --cta-green: #22c55e;
  --cta-green-dark: #15803d;
  --win-green: #22c55e;
  --lose-red: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  background: var(--bg-main);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: -webkit-fill-available;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.scroll-shimmer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 160% 120% at 50% 0%, rgba(var(--accent-rgb),0.06) 0%, transparent 50%), radial-gradient(ellipse 120% 100% at 70% 100%, rgba(var(--shimmer-warm-rgb),0.04) 0%, transparent 45%);
  transition: opacity 0.15s ease;
}

body > .layout { position: relative; z-index: 1; }

a { color: var(--accent-light); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

/* Header */
.header {
  background: var(--bg-main);
  padding: var(--padding-block) 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: var(--header-shimmer);
  opacity: 0.35;
}

.header > * { position: relative; z-index: 1; }

/* Верхние табы Kaszinó / Sport */
.header-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-tabs);
  margin-left: 24px;
}
.header-nav a {
  color: var(--text-muted);
  font-size: var(--font-size-menu);
  font-weight: var(--font-weight-menu);
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}
.header-nav a:hover { color: var(--color-accent); background: var(--bg-surface); }

.logo {
  font-weight: var(--font-weight-logo);
  font-size: 1.5rem;
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  position: relative;
}

.logo img { height: 40px; width: auto; display: block; }

.logo::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-sm);
  pointer-events: none;
  background: var(--header-shimmer);
  opacity: 0.9;
  mix-blend-mode: overlay;
}

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-menu);
  font-size: var(--font-size-menu);
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary { background: linear-gradient(135deg, var(--color-accent), var(--accent-dark)); color: #1a0f00; }
.btn-primary:hover { background: linear-gradient(135deg, var(--color-accent-alt), var(--color-accent)); color: #1a0f00; text-decoration: none; }

.btn-outline { background: transparent; color: var(--color-accent); border: 1px solid var(--color-accent); }
.btn-outline:hover { background: rgba(var(--accent-rgb),0.15); color: var(--color-accent); text-decoration: none; }

.btn-play { background: linear-gradient(135deg, var(--color-accent), var(--accent-dark)); color: #1a0f00; }
.btn-play:hover { color: #1a0f00; text-decoration: none; background: linear-gradient(135deg, var(--color-accent-alt), var(--color-accent)); }

.btn-bonusz {
  background: linear-gradient(135deg, #d4af37 0%, var(--color-accent) 25%, #b8960c 50%, var(--color-accent) 75%, var(--color-accent-alt) 100%);
  background-size: 200% 100%;
  color: #1a0f00;
  border: none;
  font-weight: 700;
  animation: bonusz-shimmer 2.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(var(--accent-rgb),0.4);
}

.btn-bonusz:hover { filter: brightness(1.1); text-decoration: none; color: #1a0f00; }

@keyframes bonusz-shimmer {
  0%, 100% { background-position: 100% 0; box-shadow: 0 0 12px rgba(var(--accent-rgb),0.4); }
  50% { background-position: 0 0; box-shadow: 0 0 18px rgba(var(--accent-rgb),0.6); }
}

/* Layout */
.layout { display: flex; min-height: calc(100vh - 52px); }

.sidebar {
  width: 220px;
  min-width: 220px;
  background: var(--bg-main);
  padding: var(--padding-block) 0;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 52px;
  align-self: flex-start;
  max-height: calc(100vh - 52px);
  overflow-y: auto;
}

.sidebar-nav { flex: 1; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--gap-nav);
  padding: var(--padding-block) 20px;
  color: var(--text-muted);
  font-size: var(--font-size-menu);
  font-weight: var(--font-weight-menu);
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover { color: var(--color-accent); background: var(--bg-surface); border-left-color: var(--color-accent); text-decoration: none; }

.sidebar-nav .nav-icon { font-size: 1.1rem; opacity: 0.9; }

.sidebar-lang { padding: var(--padding-block) 20px; border-top: 1px solid var(--border-color); }
.sidebar-lang .btn { width: 100%; justify-content: center; }
.sidebar-lang .btn-bonusz {
  background: linear-gradient(135deg, #d4af37 0%, var(--color-accent) 30%, #b8960c 50%, var(--color-accent) 70%, #e8c547 100%);
  color: #1a0f00;
  border: none;
  box-shadow: 0 2px 12px rgba(var(--accent-rgb),0.5);
}
.sidebar-lang .btn-bonusz:hover {
  background: linear-gradient(135deg, #e8c547 0%, var(--color-accent-alt) 50%, #d4af37 100%);
  color: #1a0f00;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb),0.6);
}

/* Main */
.main { flex: 1; padding: 24px 32px 48px; max-width: 1200px; margin: 0 auto; text-align: left; }

.main h1 { font-size: 1.75rem; font-weight: var(--font-weight-heading); color: var(--color-accent); margin-bottom: 20px; text-align: center; }
.main h2 { font-size: 1.35rem; font-weight: var(--font-weight-heading); color: var(--color-accent); margin: 0 0 16px; }
.main h3 { font-size: 1.1rem; font-weight: var(--font-weight-heading); color: var(--color-accent-alt); margin: 1.5em 0 0.5em; }
.main p { color: var(--text-primary); margin-bottom: 12px; }
.main .lead { font-size: 15px; color: var(--text-muted); }

/* Breadcrumb */
.breadcrumb { margin-bottom: 20px; font-size: 0.9rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; color: var(--text-muted); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 8px; color: var(--accent); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--color-accent); }

/* Hero */
.block-hero { padding-left: 0; padding-right: 0; padding-top: 0; overflow: hidden; }
.block-hero .lead,
.block-hero p { max-width: 42em; margin-left: auto; margin-right: auto; text-align: center; }

.hero-banner-wrap { width: 100%; margin: 0 0 24px 0; line-height: 0; border-radius: var(--radius-md) var(--radius-md) 0 0; overflow: hidden; }

.hero-banner {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1200 / 400;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-banner-fallback {
  min-height: 200px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.2), var(--bg-main));
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content { padding: 0 32px; text-align: center; }

.hero-play-now {
  display: inline-block;
  margin: 16px 0 20px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--cta-green) 0%, #16a34a 50%, var(--cta-green-dark) 100%);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(34,197,94,0.4);
  animation: hero-pulse 1.5s ease-in-out infinite;
}

.hero-play-now:hover { filter: brightness(1.1); text-decoration: none; }
.hero-play-now span { display: block; color: #fff; font-weight: 700; font-size: 1rem; letter-spacing: 0.05em; text-shadow: 0 1px 2px rgba(0,0,0,0.3); }

@keyframes hero-pulse {
  0%, 100% { box-shadow: 0 4px 14px rgba(34,197,94,0.4); transform: scale(1); opacity: 1; }
  50% { box-shadow: 0 4px 24px rgba(34,197,94,0.7); transform: scale(1.03); opacity: 0.95; }
}

/* Feature list */
.feature-list { list-style: none; margin: 16px 0; }
.feature-list li { position: relative; padding-left: 1.2em; margin-bottom: 8px; color: var(--white); }
.feature-list li::before { content: '•'; position: absolute; left: 0; color: var(--color-accent); }

/* Blocks */
.block { padding: 32px 0 40px; margin-bottom: 0; border: none; background: none; box-shadow: none; }
.block h2 { margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border-color); font-weight: var(--font-weight-heading); letter-spacing: 0.02em; }
.block p:last-child { margin-bottom: 0; }
.block .btn { margin-left: 0; margin-right: auto; }

.games-intro { margin-bottom: 16px; }

/* Tables – responsive wrapper for mobile */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--padding-block) 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
}

.content-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: 0.9rem;
  text-align: left;
}

.content-table th,
.content-table td { padding: 12px 16px; border-bottom: 1px solid rgba(var(--accent-rgb),0.18); white-space: nowrap; }

.content-table th { background: var(--bg-surface); color: var(--color-accent); font-weight: var(--font-weight-heading); }
.content-table tr:nth-child(even) { background: rgba(255,255,255,0.03); }
.content-table tr:last-child th,
.content-table tr:last-child td { border-bottom: none; }

/* Promo carousel */
.promo-carousel-wrap { margin-bottom: 32px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg-surface); }

.promo-carousel {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.promo-carousel::-webkit-scrollbar { height: 8px; }
.promo-carousel::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 4px; }
.promo-carousel::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

.promo-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--accent-rgb),0.2) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--border-color);
  padding: var(--padding-block) 24px;
}

.promo-slide img { max-width: 100%; max-height: 140px; object-fit: contain; }
.promo-slide-content { text-align: center; }
.promo-slide-content strong { font-size: 1.5rem; font-weight: var(--font-weight-heading); color: var(--color-accent); }
.promo-slide-content p { margin-top: 8px; color: var(--text-muted); }
.promo-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }

.promo-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(var(--accent-rgb),0.4); border: none; cursor: pointer; padding: 0;
  transition: background 0.2s;
}

.promo-dots button.is-active { background: var(--color-accent); }

/* FAQ */
.faq-list { list-style: none; }
.faq-item {
  border: none;
  border-bottom: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--bg-surface);
  transition: box-shadow 0.25s, border-color 0.25s;
}

.faq-item[open] { box-shadow: 0 0 0 1px rgba(var(--accent-rgb),0.35); border-color: var(--color-accent); }
.faq-item summary { padding: var(--padding-block) 20px; font-weight: var(--font-weight-heading); color: var(--color-accent); cursor: pointer; list-style: none; display: flex; align-items: center; gap: var(--gap-nav); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '›'; font-size: 1.2rem; transition: transform 0.2s; }
.faq-item[open] summary::before { transform: rotate(90deg); }
.faq-item div { padding: 0 20px 20px 38px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; text-align: left; }

/* Step grid */
.step-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  border-left: 4px solid var(--color-accent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(var(--accent-rgb),0.15); }
.step-card .step-num { font-size: 0.8rem; font-weight: 700; color: var(--color-accent); margin-bottom: 6px; }
.step-card p { margin: 0; font-size: var(--font-size-base); color: var(--text-primary); text-align: left; }

/* Games */
.games-section { margin-top: 32px; }
.games-section h2 { margin-bottom: 16px; text-align: left; }

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }

.game-card {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-surface) 100%);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2), 0 4px 12px rgba(0,0,0,0.3);
}

.game-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(var(--accent-rgb),0.15); border-color: var(--color-accent); }
.game-card > a { text-decoration: none; color: inherit; display: block; }
.game-card-img { height: 180px; background: var(--bg-surface); position: relative; overflow: hidden; }
.game-card-img picture,
.game-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-card-img .game-card-img-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; background: var(--bg-surface); }
.game-card-body { padding: var(--padding-block); text-align: center; }
.game-card-title { font-weight: var(--font-weight-menu); color: var(--text-primary); font-size: var(--font-size-base); margin-bottom: 8px; line-height: 1.2; }
.game-card-meta { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 10px; }
.game-card-meta span { display: block; }
.game-card .btn-play { width: 100%; padding: 10px; font-size: 0.8rem; }

/* Live feed */
.block-feed {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 28px 28px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.block-feed h2 { margin-top: 0; }
.live-feed { max-height: 300px; overflow-y: auto; overflow-x: hidden; position: relative; padding-right: 4px; }
.live-feed::-webkit-scrollbar { width: 6px; }
.live-feed::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); border-radius: 3px; }
.live-feed::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb),0.4); border-radius: 3px; }
.live-feed-list { list-style: none; }
.live-feed-list li {
  padding: 12px 16px; margin-bottom: 8px;
  background: rgba(0,0,0,0.2); border-radius: 10px;
  border-left: 4px solid rgba(var(--accent-rgb),0.55);
  font-size: 0.9rem;
  animation: feed-in 0.5s ease-out;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
#live-wins .live-feed-list li { border-left-color: rgba(34,197,94,0.6); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.live-feed-list .feed-user { color: var(--color-accent); font-weight: var(--font-weight-menu); margin-right: 6px; }
.live-feed-list .feed-time { color: var(--text-muted); font-size: 0.75rem; margin-left: 6px; }
.live-wins-list .feed-amount { color: var(--win-green); font-weight: 700; }
.live-bets-list .feed-amount.positive { color: var(--win-green); font-weight: 700; }
.live-bets-list .feed-amount.negative { color: var(--lose-red); font-weight: 700; }

/* Footer */
.footer { background: var(--bg-main); padding: 40px 32px 24px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-bottom: 32px; justify-content: center; max-width: 720px; margin-left: auto; margin-right: auto; }
.footer-col h3 { font-size: var(--font-size-base); font-weight: var(--font-weight-heading); color: var(--color-accent); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-accent); }
.footer-payments { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin-bottom: 24px; }
.footer-payments img { height: 28px; width: auto; object-fit: contain; filter: brightness(1.1); }
.footer-legal { font-size: 0.8rem; color: var(--text-muted); max-width: 720px; margin-left: auto; margin-right: auto; text-align: center; }
.footer-legal p { margin-bottom: 8px; }
.age-badge { display: inline-block; background: var(--color-accent); color: #1a0f00; padding: 2px 8px; border-radius: var(--radius-sm); font-weight: 700; margin-right: 8px; }

/* Back to top */
.btn-back-top {
  position: fixed; right: 24px; bottom: 28px; z-index: 50;
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(145deg, rgba(10,10,10,0.95) 0%, rgba(0,0,0,0.98) 100%);
  border: 1px solid rgba(var(--accent-rgb),0.4);
  color: var(--accent);
  font-size: 1.4rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,0,0,0.2) inset;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, border-color 0.2s, box-shadow 0.2s;
}
.btn-back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-back-top:hover { border-color: var(--color-accent); color: var(--color-accent-alt); box-shadow: 0 6px 20px rgba(var(--accent-rgb),0.25); text-decoration: none; }

/* Popup */
.popup-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.popup-overlay.is-open { opacity: 1; visibility: visible; }

.popup {
  position: fixed; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: linear-gradient(160deg, var(--bg-surface) 0%, var(--bg-main) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 32px;
  max-width: 400px;
  width: calc(100% - 32px);
  z-index: 201;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.popup-overlay.is-open .popup { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.popup-title,
.popup h2 { color: var(--color-accent); margin-bottom: var(--padding-block); font-size: 1.2rem; font-weight: var(--font-weight-heading); }
.popup-desc { color: var(--text-muted); margin-bottom: var(--padding-block); }
.popup-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: none; background: var(--bg-surface); color: var(--text-primary); border-radius: var(--radius-sm); font-size: 1.25rem; cursor: pointer; line-height: 1; }
.popup-close:hover { background: rgba(var(--accent-rgb),0.2); color: var(--color-accent); }
.popup input[type="text"],
.popup input[type="password"],
.popup input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-primary);
  font-size: var(--font-size-base);
}
.popup p { margin-bottom: 12px; }
.popup p:last-of-type { margin-bottom: 16px; }

/* Mobile */
.menu-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  color: var(--color-accent);
  font-size: 1.25rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.menu-toggle:hover { background: rgba(var(--accent-rgb),0.15); }

@media (max-width: 900px) {
  .sidebar { width: 180px; min-width: 180px; }
  .header-nav { margin-left: 12px; }
}

@media (max-width: 640px) {
  .menu-toggle { display: flex; }
  body.menu-open { overflow: hidden; }
  body.menu-open .sidebar { display: flex; max-height: 70vh; overflow-y: auto; }
  .layout { flex-direction: column; }
  .sidebar {
    display: none;
    width: 100%;
    flex-direction: column;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 90;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    padding: var(--padding-block);
    max-height: 0;
    overflow: hidden;
  }
  .sidebar-nav { display: flex; flex-direction: column; flex-wrap: nowrap; }
  .sidebar-nav a { padding: 12px var(--padding-block); border-left: 3px solid transparent; }
  .sidebar-lang { border-top: 1px solid var(--border-color); padding: 12px; }
  .header-nav { grid-template-columns: 1fr 1fr; }
  .main { padding: 16px; }
  .hero-content { padding: 0 16px; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .content-table th,
  .content-table td { white-space: normal; padding: 10px 12px; font-size: 0.85rem; }
  .table-wrap { margin-left: -16px; margin-right: -16px; width: calc(100% + 32px); }
}
