/* 771 Casino - Responsive */
:root {
  --color-primary: #22c55e;
  --color-primary-hover: #16a34a;
  --color-bg: #0f172a;
  --color-bg-card: #1e293b;
  --color-header: #0a0a0a;
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  --color-border: #334155;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --safe-top: env(safe-area-inset-top, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-left: env(safe-area-inset-left, 0);
  --safe-right: env(safe-area-inset-right, 0);
  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
.site-header {
  background: var(--color-header);
  padding: 0.75rem 1rem;
  padding-top: max(0.75rem, var(--safe-top));
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
}
.header-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-actions-desktop { display: none !important; }
.header-actions-mobile {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 0.5rem;
}

.logo {
  display: block;
  text-decoration: none;
  line-height: 0;
}
.logo img {
  display: block;
  height: 40px;
  width: auto;
}
@media (min-width: 768px) {
  .logo img { height: 54px; }
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  font-size: 0;
  justify-self: end;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
}
@media (min-width: 768px) {
  .header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .header-actions-mobile { display: none !important; }
  .nav-toggle { display: none; }
}

.header-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-header);
  padding: 4rem 1.5rem 1.5rem;
  transition: right 0.3s;
  z-index: 999;
}
.header-nav.is-open { right: 0; }
.nav-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.nav-close:hover { color: var(--color-primary); }
@media (min-width: 768px) {
  .nav-close { display: none; }
}
@media (min-width: 768px) {
  .header-left { gap: 2rem; }
  .header-actions-desktop { display: flex !important; }
  .header-nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
  }
}

.nav-links {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.nav-links li { margin: 0; }
@media (min-width: 768px) {
  .nav-links {
    margin: 0;
    flex-direction: row;
    gap: 1.5rem;
  }
}
.nav-links a {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-text);
  text-decoration: none;
}
.nav-links a:hover { color: var(--color-primary); }

.header-actions {
  display: flex;
  gap: 0.5rem;
}
.header-actions-mobile {
  flex-direction: row;
  flex-wrap: nowrap;
}
.header-actions-mobile .btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  white-space: nowrap;
}
.header-actions-desktop {
  flex-direction: column;
}
@media (min-width: 768px) {
  .header-actions-desktop { flex-direction: row; gap: 0.75rem; }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  text-align: center;
  transition: background 0.2s;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border: none;
}
.btn-primary:hover { background: var(--color-primary-hover); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-cta {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 50%, #15803d 100%);
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4);
}
.cta-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.cta-disclaimer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.age-badge {
  display: inline-block;
  padding: 0.15em 0.4em;
  font-weight: 700;
  font-size: 0.9em;
  background: rgba(0,0,0,0.35);
  border-radius: 4px;
}

/* Hero banner (style like book-of-deadslot.com/pl/) */
.hero-banner {
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 max(1rem, var(--safe-right)) 0 max(1rem, var(--safe-left));
  box-sizing: border-box;
}
.hero-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-banner-overlay {
  position: absolute;
  inset: 0;
  
}
.hero-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem max(1rem, var(--safe-right)) 2rem max(1rem, var(--safe-left));
  width: 100%;
}
.hero-banner-lead {
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
  margin: 0 0 0.5rem;
}
.hero-banner-text {
  color: var(--color-text);
  margin: 0;
  line-height: 1.65;
  max-width: 720px;
}
.hero-banner-btn {
  margin-top: 1rem;
  display: inline-block;
}
@media (min-width: 768px) {
  .hero-banner {
    min-height: 340px;
  }
  .hero-banner-inner {
    padding: 3rem max(1rem, var(--safe-right)) 3rem max(1rem, var(--safe-left));
  }
  .hero-banner-lead {
    font-size: 1.2rem;
  }
  .hero-banner-text {
    font-size: 1.05rem;
  }
}

/* Main content */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.main-content-narrow { max-width: 800px; }
.main-content h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 1rem;
}
.intro-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

/* Page nav */
.page-nav {
  margin: 0 0 2rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
}
.page-nav summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  background: var(--color-bg-card);
  font-weight: 600;
}
.page-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem 1rem;
}
.page-nav a {
  display: block;
  padding: 0.4rem 0;
  color: var(--color-text-muted);
  text-decoration: none;
}
.page-nav a:hover { color: var(--color-primary); }

/* Game grid – rows with horizontal scroll, card size matches image (350x220) */
.game-grid-section h2 {
  margin: 0 0 1rem;
  font-size: 1.5rem;
}
.game-grid-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  margin: 0 -1rem 1rem;
  padding: 0 1rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.game-grid-scroll::-webkit-scrollbar { height: 8px; }
.game-grid-scroll::-webkit-scrollbar-track { background: var(--color-bg-card); border-radius: 4px; }
.game-grid-scroll::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 4px; }
.game-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  padding-bottom: 0.5rem;
  width: max-content;
}
.game-card {
  flex: 0 0 auto;
  width: 160px;
  background: var(--color-bg-card);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}
.game-card:hover { transform: translateY(-2px); }
@media (min-width: 520px) {
  .game-card { width: 175px; }
}
@media (min-width: 768px) {
  .game-card { width: 200px; }
}
.game-card-cover {
  position: relative;
  aspect-ratio: 350/220;
  overflow: hidden;
}
.game-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #dc2626;
  color: #fff;
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}
.game-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}
.game-card:hover .game-card-overlay { opacity: 1; }
.btn-play {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 100px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.2s, transform 0.2s;
}
.btn-play:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-1px);
}
.btn-demo {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 100px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-demo:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border-color: #fff;
  transform: translateY(-1px);
}
.game-card-title {
  margin: 0;
  padding: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
}
.game-grid-more {
  text-align: right;
  margin: 0;
}
.game-grid-more a {
  color: var(--color-primary);
  text-decoration: none;
}
.game-grid-more a:hover { text-decoration: underline; }

/* Content */
.main-content h2 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}
.main-content h2:first-of-type { margin-top: 1.5rem; }
.main-content h3 {
  font-size: 1rem;
  
}
.main-content p { margin: 0 0 1rem; }
.main-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.main-content li { margin-bottom: 0.25rem; }
.content-image {
  margin: 1.5rem 0;
  max-width: 560px;
}
.content-image img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.content-image--compact {
  max-width: 360px;
  margin-left: 0;
  margin-right: auto;
}
.content-image--wide {
  max-width: 1200px;
}

/* FAQ */
.faq-section h2 { margin-top: 2rem; }
.faq-accordion {
  margin-top: 1rem;
}
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1rem;
  cursor: pointer;
  background: var(--color-bg-card);
  font-weight: 600;
}
.faq-item[open] summary { border-bottom: 1px solid var(--color-border); }
.faq-answer {
  padding: 1rem;
  color: var(--color-text-muted);
}
.faq-answer p { margin: 0; }

/* Tables */
.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border);
}
.info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: var(--color-bg-card);
}
/* Header row (multi-column tables) */
.info-table thead {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.25) 0%, rgba(34, 197, 94, 0.1) 100%);
  border-bottom: 2px solid var(--color-primary);
}
.info-table thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}
.info-table thead th:not(:last-child) {
  border-right: 1px solid rgba(34, 197, 94, 0.3);
}
/* Key-value tables: first column as label */
.info-table-kv tbody th {
  background: rgba(34, 197, 94, 0.08);
  color: var(--color-text-muted);
  font-weight: 600;
  width: 36%;
  min-width: 140px;
}
/* Body rows */
.info-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s ease;
}
.info-table tbody tr:hover {
  background: rgba(34, 197, 94, 0.06);
}
.info-table tbody tr:last-child {
  border-bottom: none;
}
.info-table tbody th,
.info-table tbody td {
  padding: 0.9rem 1.25rem;
  text-align: left;
  vertical-align: top;
}
.info-table tbody td {
  color: var(--color-text);
}
/* Zebra striping for multi-column data tables */
.info-table:not(.info-table-kv) tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.15);
}
.info-table:not(.info-table-kv) tbody tr:nth-child(even):hover {
  background: rgba(34, 197, 94, 0.08);
}
/* Column separators for multi-column */
.info-table:not(.info-table-kv) tbody td:not(:last-child) {
  border-right: 1px solid var(--color-border);
}
@media (max-width: 600px) {
  .table-scroll {
    margin: 1rem 0;
    border-radius: 8px;
  }
  .info-table thead th,
  .info-table tbody th,
  .info-table tbody td {
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
  }
  .info-table-kv tbody th {
    width: 40%;
    min-width: 120px;
  }
}

/* Footer */
.site-footer {
  background: var(--color-header);
  padding: 2rem 1rem;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer-logo {
  display: block;
  line-height: 0;
}
.footer-logo img {
  display: block;
  height: 48px;
  width: auto;
  opacity: 0.9;
}
.footer-logo:hover img { opacity: 1; }
.footer-payments {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-payments img {
  height: 45px;
  width: auto;
  opacity: 0.85;
}
.footer-licenses {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-licenses a {
  display: block;
  line-height: 0;
}
.footer-licenses img {
  height: 36px;
  width: auto;
  opacity: 0.9;
}
.footer-licenses a:hover img { opacity: 1; }
.footer-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.footer-social a {
  color: var(--color-text-muted);
  transition: opacity 0.2s;
}
.footer-social a:hover { opacity: 1; }
.footer-social img {
  display: block;
  opacity: 0.8;
}
.footer-social a:hover img { opacity: 1; }
.footer-links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
}
.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--color-text); }
.footer-company,
.footer-license {
  text-align: center;
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 560px;
  line-height: 1.5;
}
.footer-copy {
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 100;
  transition: opacity 0.2s;
}
.back-to-top:hover { opacity: 0.9; }

/* Error page */
.error-page {
  text-align: center;
  padding: 3rem 1rem;
}
.error-page h1 { margin-bottom: 0.5rem; }
.error-page > p { color: var(--color-text-muted); margin-bottom: 1rem; }
.error-page .btn { margin-top: 1rem; }
.error-page-links {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.error-page-links p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.error-page-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
}
.error-page-links a {
  color: var(--color-primary);
  text-decoration: none;
}
.error-page-links a:hover { text-decoration: underline; }
