/*
  Runa Casino Theme (Dark) — Componentized CSS
  - Semantic structure with accessible contrast
  - Responsive layout: mobile-first, desktop enhancements
  - Mobile "screen lock": body fixed; scroll via #app container
*/

/* =Root theme tokens ===================================================== */
:root {
  --color-bg: #0b0f14;
  --color-surface: #121821;
  --color-muted: #98a2b3;
  --color-text: #e5e7eb;
  --color-primary: #5eead4; /* teal-300 */
  --color-primary-contrast: #0b0f14;
  --color-border: #1f2937;
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.35);
}

/* =Base / Reset ========================================================== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body.dark-theme {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-text); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* Container utility */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* =Header ================================================================ */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(11, 15, 20, 0.9); backdrop-filter: blur(6px); border-bottom: 1px solid var(--color-border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; color: var(--color-muted); }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs li + li::before { content: "/"; color: var(--color-muted); margin: 0 4px; }

/* =Hero (banner with centered CTA on semi-transparent block) ============= */
.hero { position: relative; isolation: isolate; }
.hero img { width: 100%; height: 60vh; object-fit: cover; object-position: center; display: block; }
.hero-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 24px; text-align: center;
}
.hero-overlay > * { position: relative; z-index: 1; }
.hero-overlay h1 { font-size: 2rem; margin: 0 0 8px; }
.tagline { margin: 0 0 16px; color: var(--color-muted); }

.hero-cta { background: rgba(0, 0, 0, 0.45); backdrop-filter: blur(2px); padding: 16px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); max-width: 720px; margin: 0 16px; }

/* Buttons */
.btn { display: inline-block; padding: 12px 18px; border-radius: 10px; font-weight: 700; transition: transform .08s ease, opacity .2s ease; border: 1px solid transparent; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--color-primary); color: var(--color-primary-contrast); }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn-login { background: #22c55e; color: #052e16; }
.btn-login:hover { opacity: 0.9; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =Popular Slots Grid ==================================================== */
.popular-slots { padding: 40px 0; }
.popular-slots h2 { font-size: 1.5rem; margin: 0 0 16px; }
.slots-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.slots-grid li { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 12px; padding: 10px; box-shadow: var(--shadow-lg); }
.slots-grid img { border-radius: 8px; }

/* =About + Responsive Table ============================================= */
.about { padding: 24px 0 56px; }
.about h2 { font-size: 1.5rem; margin-bottom: 12px; }
.about p { margin-bottom: 16px; color: var(--color-text); }

.table-responsive { border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; background: var(--color-surface); }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { padding: 12px 14px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.info-table thead th { background: rgba(255, 255, 255, 0.02); color: var(--color-muted); font-weight: 600; }
.info-table tbody tr:last-child td { border-bottom: 0; }

/* Mobile table: stack into labeled blocks using data-label */
@media (max-width: 640px) {
  .info-table thead { display: none; }
  .info-table, .info-table tbody, .info-table tr, .info-table td { display: block; width: 100%; }
  .info-table tr { border-bottom: 1px solid var(--color-border); }
  .info-table td { border: 0; border-bottom: 1px solid var(--color-border); padding: 10px 14px; }
  .info-table td::before {
    content: attr(data-label);
    display: block; font-weight: 600; color: var(--color-muted); margin-bottom: 4px;
  }
}

/* =Footer ================================================================ */
.site-footer { border-top: 1px solid var(--color-border); background: rgba(18, 24, 33, 0.9); }
.footer-inner { display: flex; flex-direction: column; gap: 12px; padding: 20px 16px; align-items: center; text-align: center; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.footer-nav a { color: var(--color-muted); }
/* Payments strip */
.payments { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; opacity: 0.9; }
.payments img { filter: grayscale(1) contrast(1.1); height: 28px; width: auto; }
.payments img:hover { filter: grayscale(0.2); }

/* =Mobile screen lock pattern =========================================== */
/* Lock body, allow scrolling only inside #app to stabilize layout and prevent overscroll bounce */
@media (max-width: 640px) {
  body.mobile-locked { position: fixed; overflow: hidden; width: 100%; }
  #app { height: 100vh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  .hero img { height: 50vh; }
}

/* =Desktop enhancements ================================================== */
@media (min-width: 768px) {
  .hero img { height: 70vh; }
  .slots-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .slots-grid { grid-template-columns: repeat(6, 1fr); }
  .hero-overlay h1 { font-size: 2.5rem; }
}



