/* Playfina AU — SoftSwiss-style dark lobby */
:root {
  --bg: #0b0614;
  --surface: #15101f;
  --surface-2: #1c1528;
  --border: #2a2138;
  --text: #ffffff;
  --muted: #a8a0b8;
  --accent: #00e5c7;
  --accent-hover: #2ef0d4;
  --accent-dark: #00b89e;
  --login-fill: #3d2a5c;
  --login-hover: #4a3570;
  --pink: #ff4d94;
  --radius: 6px;
  --header-h: 64px;
  --container: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--accent);
  color: #04110e;
  padding: 8px 16px;
  font-weight: 600;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 6, 20, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
  flex-shrink: 0;
}

.logo:hover {
  color: var(--text);
}

.logo-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin: 0 1px;
}

.nav-main {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex: 1;
}

.nav-main a {
  color: var(--muted);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 8px 10px;
  border-radius: var(--radius);
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--text);
  background: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary,
a.btn-primary {
  background: var(--accent);
  color: #04110e;
}

.btn-primary:hover,
a.btn-primary:hover {
  background: var(--accent-hover);
  color: #04110e;
}

.btn-login,
a.btn-login {
  background: var(--login-fill);
  color: var(--text);
}

.btn-login:hover,
a.btn-login:hover {
  background: var(--login-hover);
  color: var(--text);
}

.btn-ghost,
a.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover,
a.btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

.menu-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 16px 16px;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav a {
  display: block;
  color: var(--muted);
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] {
  color: var(--text);
}

@media (min-width: 900px) {
  .nav-main {
    display: flex;
  }

  .menu-toggle {
    display: none;
  }

  .mobile-nav,
  .mobile-nav.is-open {
    display: none !important;
  }
}

/* Sticky mobile auth */
.mobile-sticky-auth {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(11, 6, 20, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.mobile-sticky-auth .btn {
  flex: 1;
  height: 44px;
}

@media (min-width: 900px) {
  .mobile-sticky-auth {
    display: none;
  }
}

body {
  padding-bottom: 72px;
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(42vh, 340px);
  display: flex;
  align-items: center;
  padding: 28px 0 24px;
  background:
    linear-gradient(180deg, rgba(11, 6, 20, 0.35) 0%, rgba(11, 6, 20, 0.82) 55%, var(--bg) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 229, 199, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 50% at 15% 80%, rgba(255, 77, 148, 0.12), transparent 50%),
    linear-gradient(135deg, #1a0a2e 0%, #0b0614 45%, #12081f 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 85%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36em;
}

/* Continuous lobby body */
.lobby-body {
  padding: 8px 0 48px;
}

.lobby-body > h2,
.lobby-body section > h2,
.lobby-body article > h2,
.lobby-body .block > h2 {
  margin: 36px 0 14px;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lobby-body > h2:first-child,
.lobby-body section:first-child > h2,
.lobby-body .block:first-child > h2 {
  margin-top: 20px;
}

.lobby-body p {
  margin: 0 0 12px;
  color: var(--muted);
}

.lobby-body p + p {
  margin-top: 0;
}

.lobby-body h3 {
  margin: 22px 0 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.lobby-body section,
.lobby-body .block,
.lobby-body article {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 14px;
}

.section-head h2 {
  margin: 0 !important;
}

.section-head a {
  font-size: 0.9rem;
  color: var(--muted);
  white-space: nowrap;
}

.section-head a:hover {
  color: var(--accent);
}

/* Games tabs + grid */
.game-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.game-tabs button {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 14px;
  margin-bottom: -1px;
  cursor: pointer;
  border-radius: 0;
}

.game-tabs button:hover {
  color: var(--text);
}

.game-tabs button[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.game-panels [hidden] {
  display: none !important;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .game-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .game-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.game-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease;
  min-height: 96px;
}

.game-tile:hover {
  background: #241b33;
  color: var(--text);
}

.game-tile-art {
  aspect-ratio: 16 / 10;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 8px;
  border-bottom: 1px solid var(--border);
}

.game-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-tile-meta {
  padding: 8px 10px 10px;
}

.game-tile-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
}

.game-tile-provider {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 2px 0 0;
}

/* Tables */
.facts-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 8px 0 4px;
}

.facts-table th,
.facts-table td,
.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.facts-table th,
.data-table th {
  color: var(--muted);
  font-weight: 500;
  width: 38%;
  background: transparent;
}

.facts-table td,
.data-table td {
  color: var(--text);
}

.data-table thead th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: none;
  background: var(--surface);
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Logo / name strips */
.strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 4px;
}

.strip-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* How-to list */
.how-to {
  margin: 8px 0 4px;
  padding-left: 1.25rem;
  color: var(--muted);
}

.how-to li {
  margin-bottom: 8px;
}

.how-to li::marker {
  color: var(--accent);
  font-weight: 600;
}

/* FAQ */
.faq-list {
  margin: 8px 0 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: var(--text);
}

.faq-item p {
  margin: 0;
}

/* Bonus cards (inner page only) */
.bonus-grid {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

@media (min-width: 700px) {
  .bonus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.bonus-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bonus-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.bonus-amount {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
}

.bonus-meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.bonus-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Soft end CTA */
.soft-cta {
  margin: 36px 0 8px;
  padding: 18px 0 0;
}

.soft-cta p {
  margin: 0 0 12px;
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin: 16px 0;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.form-field input,
.form-field textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  padding: 10px 12px;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

/* Page hero (inner) */
.page-hero {
  padding: 28px 0 8px;
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 40em;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs span[aria-hidden] {
  margin: 0 6px;
}

/* Article prose */
.article-body h2 {
  margin: 28px 0 12px;
  font-size: 1.3rem;
}

.article-body p {
  color: var(--muted);
  margin: 0 0 12px;
}

/* 404 */
.page-404 {
  text-align: center;
  padding: 80px 0 60px;
}

.page-404 h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 12px;
}

.page-404 p {
  color: var(--muted);
  margin: 0 0 24px;
}

.page-404 .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Footer */
.site-footer {
  margin-top: 24px;
  padding: 36px 0 28px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand .logo {
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col h2 {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-trust a,
.footer-trust span {
  display: inline-flex;
  align-items: center;
  opacity: 0.85;
}

.footer-trust img {
  height: 36px;
  width: auto;
}

.footer-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-copy {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #6e677c;
}

/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-muted {
  color: var(--muted);
}


/* Media wiring */
.logo {
  gap: 8px;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-wordmark {
  height: 28px;
  width: auto;
}
.hero {
  background:
    linear-gradient(180deg, rgba(11, 6, 20, 0.45) 0%, rgba(11, 6, 20, 0.78) 55%, var(--bg) 100%),
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(0, 229, 199, 0.16), transparent 55%),
    url("/media/banner.webp") center / cover no-repeat,
    linear-gradient(135deg, #1a0a2e 0%, #0b0614 45%, #12081f 100%);
}
.game-tile-art {
  padding: 0;
  overflow: hidden;
}
.game-tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.strip-logos .strip-item {
  background: var(--surface);
  min-height: 44px;
}
.strip-logo {
  padding: 8px 14px;
}
.strip-logo img {
  display: block;
  height: 24px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.page-hero-visual {
  margin: 8px 0 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  max-height: 220px;
}
.page-hero-visual img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}


/* playsfina.com brand assets */
.logo-img {
  height: 36px;
  width: auto;
  max-width: 170px;
  display: block;
  object-fit: contain;
}
.logo-mark,
.logo-wordmark {
  display: none;
}
.bonus-card-media {
  margin: -18px -18px 12px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}
.bonus-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.footer-pay-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}
.footer-pay-strip img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  opacity: 0.9;
}
.page-hero-visual img {
  object-fit: cover;
}


/* Article TOC (injected by lobby.js) */
.article-toc {
  margin: 8px 0 22px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.article-toc-title {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-toc-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 6px;
}
@media (min-width: 700px) {
  .article-toc-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
  }
}
.article-toc-list a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}
.article-toc-list a:hover {
  color: var(--accent);
}

/* Early content CTA on inner pages */
.content-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin: 8px 0 22px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.content-cta-copy {
  flex: 1 1 240px;
  min-width: 0;
}
.content-cta-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}
.content-cta-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.925rem;
}
.content-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
