/* ============================================================
   Online Demo Casino — theme
   Palette: soft turquoise · soft beige · soft purple
   ============================================================ */
:root {
  --turq-50:  #eefaf8;
  --turq-100: #d3f1ec;
  --turq-300: #7ed6c9;
  --turq-500: #2fb8a6;
  --turq-600: #22998a;
  --beige-50: #faf6ef;
  --beige-100:#f3ead9;
  --beige-200:#e9dcc4;
  --purple-100:#ece6fb;
  --purple-300:#c3b1ef;
  --purple-500:#8a6fe0;
  --purple-600:#6f52c9;

  --ink:      #23303a;
  --ink-soft: #55636d;
  --line:     #e7e2d6;
  --bg:       #fbf9f4;
  --card:     #ffffff;

  --grad-brand: linear-gradient(120deg, var(--turq-500), var(--purple-500));
  --grad-soft:  linear-gradient(135deg, var(--turq-50), var(--purple-100));

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(35,48,58,.06);
  --shadow-md: 0 12px 32px rgba(35,48,58,.10);
  --shadow-lg: 0 24px 60px rgba(111,82,201,.18);
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
p { margin: 0 0 1rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 820px; }
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-alt { background: var(--beige-50); }
.kicker {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--purple-600);
  background: var(--purple-100); padding: .35em .8em; border-radius: 999px; margin-bottom: .9rem;
}
.section-head { max-width: 640px; margin: 0 0 2.2rem; }
.section-head p { color: var(--ink-soft); }
.section-more { text-align: center; margin-top: 2.4rem; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: .6rem 1rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-weight: 650; font-size: .95rem; padding: .7rem 1.3rem; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: .95rem 1.8rem; font-size: 1.02rem; }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(111,82,201,.28); }
.btn-primary:hover { box-shadow: 0 12px 30px rgba(111,82,201,.38); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--turq-500); color: var(--turq-600); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--ink); border-color: rgba(255,255,255,.9); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,249,244,.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1rem; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.12rem; }
.brand-mark { display: inline-flex; }
.brand-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.primary-nav > a { font-weight: 550; color: var(--ink-soft); font-size: .95rem; }
.primary-nav > a:hover { color: var(--ink); }
.nav-cta { color: #fff; }
.nav-toggle { display: none; }

/* ---- Language switcher ---- */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: .45rem .8rem; cursor: pointer; color: var(--ink);
}
.lang-btn:hover { border-color: var(--turq-300); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: .4rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  min-width: 190px; max-height: 60vh; overflow: auto; display: none; z-index: 50;
}
.lang-switch.open .lang-menu { display: block; }
.lang-menu a {
  display: block; padding: .5rem .7rem; border-radius: 9px; font-size: .92rem; color: var(--ink-soft);
}
.lang-menu a:hover { background: var(--turq-50); color: var(--ink); }
.lang-menu a[aria-current="true"] { background: var(--purple-100); color: var(--purple-600); font-weight: 650; }

/* ---- Hero ---- */
.hero { background: var(--grad-soft); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 2rem; align-items: center;
  padding: clamp(3rem, 7vw, 5.5rem) 20px;
}
.hero-copy h1 { margin-bottom: .6rem; }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 .8rem; }
.hero-note { font-size: .85rem; color: var(--ink-soft); }
.hero-cards { position: relative; height: 340px; }
.hero-card {
  position: absolute; width: 210px; aspect-ratio: 1; border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 4px solid #fff;
}
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card-0 { top: 0; right: 30px; transform: rotate(-6deg); z-index: 3; }
.hero-card-1 { top: 70px; right: 170px; transform: rotate(5deg); z-index: 2; width: 180px; }
.hero-card-2 { bottom: 0; right: 60px; transform: rotate(3deg); z-index: 1; width: 170px; }

/* ---- Grids & cards ---- */
.grid { display: grid; gap: 1.2rem; }
.grid-featured { grid-template-columns: repeat(3, 1fr); }
.grid-lobby { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.grid-steps { grid-template-columns: repeat(3, 1fr); }

.game-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .25s ease, border-color .2s;
  display: flex; flex-direction: column;
}
.game-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--turq-300); }
.game-card-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--beige-100); }
.game-card-media img { width: 100%; height: 100%; object-fit: cover; }
.game-card-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; color: #fff; font-weight: 750; font-size: 1.05rem;
  text-shadow: 0 1px 6px rgba(0,0,0,.25);
}
.game-card-play {
  position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 12px);
  background: var(--grad-brand); color: #fff; font-weight: 650; font-size: .82rem;
  padding: .45rem 1rem; border-radius: 999px; opacity: 0; transition: .22s ease; box-shadow: var(--shadow-md);
}
.game-card:hover .game-card-play { opacity: 1; transform: translate(-50%, 0); }
.tag {
  position: absolute; top: 10px; left: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; padding: .3em .6em; border-radius: 7px; color: #fff;
}
.tag-bonus { background: var(--purple-500); }
.game-card-body { padding: .8rem .9rem 1rem; }
.game-card-title { font-size: .98rem; font-weight: 700; margin: 0 0 .3rem; }
.game-card-meta { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--ink-soft); }
.game-card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-soft); opacity: .5; }

/* ---- CTA band ---- */
.cta-band { background: var(--grad-brand); color: #fff; }
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem) 20px; flex-wrap: wrap;
}
.cta-band-inner h2 { margin: 0 0 .3rem; }
.cta-band-inner p { margin: 0; opacity: .92; max-width: 40rem; }
.cta-band .btn-primary { background: #fff; color: var(--purple-600); box-shadow: 0 10px 26px rgba(0,0,0,.18); }

/* ---- Steps ---- */
.step-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow-sm); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 12px; background: var(--turq-100); color: var(--turq-600); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem;
}
.step-card h3 { font-size: 1.15rem; }
.step-card p { color: var(--ink-soft); margin: 0; }

/* ---- FAQ ---- */
.faq { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 1.05rem 1.2rem; font-weight: 650; list-style: none; position: relative; padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--turq-500); transition: transform .2s;
}
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 1.2rem 1.1rem; color: var(--ink-soft); }
.faq-answer p { margin: 0; }

/* ---- Page head ---- */
.page-head { background: var(--grad-soft); border-bottom: 1px solid var(--line); padding: 2.4rem 0 2.2rem; }
.page-head p { color: var(--ink-soft); margin: 0; max-width: 44rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .85rem; color: var(--ink-soft); margin-bottom: .8rem; }
.crumbs a:hover { color: var(--turq-600); }
.h1-demo { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.game-sub { font-weight: 550; }

/* ---- Lobby toolbar ---- */
.section-lobby { padding-top: 2.4rem; }
.lobby-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.search-box { display: flex; align-items: center; gap: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1rem; flex: 1 1 260px; max-width: 380px; color: var(--ink-soft); }
.search-box input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; color: var(--ink); }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font: inherit; font-size: .85rem; font-weight: 600; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); cursor: pointer; transition: .15s; }
.chip:hover { border-color: var(--turq-300); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.lobby-count { color: var(--ink-soft); font-size: .9rem; margin: 0 0 1.2rem; }
.no-results { text-align: center; color: var(--ink-soft); padding: 3rem 0; }

/* ---- Player ---- */
.section-player { padding: clamp(1.6rem, 3vw, 2.6rem) 0 0; }
.player { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); }
.player-frame { position: relative; aspect-ratio: 16 / 10; background: #0e1418; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.player-poster > img, .player-poster-ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(2px) brightness(.55); }
.player-poster-ph { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1.6rem; }
.poster-overlay { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: .9rem; text-align: center; padding: 1rem; }
.poster-badge { color: #fff; font-weight: 700; font-size: 1.05rem; }
.poster-note { color: rgba(255,255,255,.8); font-size: .82rem; }
.player-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; justify-content: space-between; padding: 1rem 1.1rem; border-top: 1px solid var(--line); background: var(--beige-50); }
.player-selects { display: flex; gap: .8rem; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: .25rem; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.field select { font: inherit; font-size: .9rem; color: var(--ink); padding: .5rem .7rem; border-radius: 10px; border: 1px solid var(--line); background: var(--card); min-width: 130px; }
.player-tools { display: flex; align-items: center; gap: .6rem; }
.icon-btn { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink-soft); cursor: pointer; }
.icon-btn:hover { color: var(--turq-600); border-color: var(--turq-300); }
.player-hint { text-align: center; color: var(--ink-soft); font-size: .85rem; margin-top: .9rem; }

/* ---- Game layout ---- */
.game-layout { display: grid; grid-template-columns: 1fr 320px; gap: 2.5rem; align-items: start; }
.game-article h2 { margin-top: 2.2rem; }
.game-article h2:first-child { margin-top: 0; }
.game-article p { color: #3a4750; }
.howto-list { padding-left: 1.2rem; color: #3a4750; }
.howto-list li { margin-bottom: .5rem; }
.feature-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.feature-tags li { background: var(--turq-50); color: var(--turq-600); border: 1px solid var(--turq-100); font-size: .84rem; font-weight: 600; padding: .35rem .8rem; border-radius: 999px; }
.inline-cta { margin: 2.2rem 0; padding: 1.5rem; border-radius: var(--radius); background: var(--purple-100); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; }
.inline-cta p { margin: 0; font-weight: 600; color: var(--purple-600); }

.stat-card { position: sticky; top: 90px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.stat-card h2 { font-size: 1.2rem; }
.stat-list { margin: 0; }
.stat-list > div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.stat-list > div:last-child { border-bottom: 0; }
.stat-list dt { color: var(--ink-soft); font-size: .9rem; margin: 0; }
.stat-list dd { margin: 0; font-weight: 650; text-align: right; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #c7d0d6; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2rem; padding: 3rem 20px 2rem; }
.footer-about p { font-size: .9rem; }
.footer-disc { color: #8a97a0; font-size: .82rem; }
.brand--footer .brand-text { color: #fff; -webkit-text-fill-color: #fff; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { font-size: .9rem; color: #b6c0c7; }
.footer-col a:hover { color: var(--turq-300); }
.footer-langs { max-height: 260px; flex-wrap: wrap; }
.footer-langs a[aria-current="true"] { color: var(--turq-300); font-weight: 650; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 20px; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: .82rem; color: #8a97a0; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
  .grid-featured, .grid-steps { grid-template-columns: 1fr; }
  .game-layout { grid-template-columns: 1fr; }
  .stat-card { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; margin-left: auto; background: none; border: 0; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
  .primary-nav {
    position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--card); border-bottom: 1px solid var(--line); padding: 1rem; margin: 0;
    box-shadow: var(--shadow-md); display: none;
  }
  .primary-nav.open { display: flex; }
  .primary-nav > a { padding: .8rem .4rem; border-bottom: 1px solid var(--line); }
  .lang-switch { margin: .6rem 0; }
  .lang-btn { width: 100%; justify-content: space-between; }
  .lang-menu { position: static; box-shadow: none; border: 0; max-height: none; padding: 0; }
  .nav-cta { margin-top: .6rem; text-align: center; }
  .grid-lobby { grid-template-columns: repeat(2, 1fr); }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
