/* casinowinoui.cl — bespoke build. Parisian-chic noir + WinOui signature green. */

* { box-sizing: border-box; }
html { overflow-x: clip; }
html, body { margin: 0; padding: 0; }
body {
  background: #0d0d0d;
  color: #f2f2f0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

:root {
  --bg: #0d0d0d;
  --bg-card: #141414;
  --bg-elevated: #1b1b1b;
  --border: #2a2a2a;
  --green: #6dfe40;
  --green-deep: #63cd42;
  --red: #ef3434;
  --text: #f2f2f0;
  --text-dim: #a7a7a4;
  --font-display: Georgia, "Times New Roman", ui-serif, serif;
  --tabular: "tnum" 1, "tnum";
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--green); color: #0d0d0d; padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 12px; top: 12px; }

.page-shell { max-width: 1160px; margin: 0 auto; padding: 0 20px; min-width: 0; }

/* tricolor flourish — nod to French origin, used sparingly */
.flourish { display: flex; height: 4px; width: 64px; border-radius: 2px; overflow: hidden; }
.flourish span { flex: 1; }
.flourish .b1 { background: #0055a4; }
.flourish .b2 { background: #ffffff; }
.flourish .b3 { background: var(--red); }

/* ---------- header ---------- */
.site-header {
  background: rgba(13,13,13,.92);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: none;
}
.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 12px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-width: 0;
}
.brand-link { display: flex; align-items: center; gap: 10px; min-width: 0; flex-shrink: 0; }
.brand-logo { height: 34px; width: auto; }
.nav-desktop { display: flex; align-items: center; gap: 22px; min-width: 0; }
.nav-desktop a {
  color: var(--text-dim); font-size: 14px; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap; padding: 6px 2px; border-bottom: 2px solid transparent;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--text); border-bottom-color: var(--green); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-cta {
  background: var(--green); color: #0d0d0d; font-weight: 800; font-size: 14px;
  padding: 10px 18px; border-radius: 8px; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(109,254,64,.25);
}
.btn-cta:hover { background: var(--green-deep); }
.btn-ghost {
  background: transparent; color: var(--text); font-weight: 700; font-size: 14px;
  padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); white-space: nowrap;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: transparent; border: 1px solid var(--border); border-radius: 8px;
}
.burger span { display: block; height: 2px; width: 18px; margin: 0 auto; background: var(--text); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile nav lives OUTSIDE header, no backdrop-filter on any containing block */
.mobile-nav {
  position: fixed; top: 0; right: 0; height: 100%; width: min(320px, 86vw);
  background: #121212; border-left: 1px solid var(--border);
  transform: translateX(100%); transition: transform .25s ease;
  z-index: 60; padding: 20px; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav nav { display: flex; flex-direction: column; gap: 4px; margin-top: 44px; }
.mobile-nav a {
  padding: 12px 10px; font-weight: 700; font-size: 15px; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav .btn-cta { margin-top: 14px; text-align: center; }
.mobile-nav-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 55;
  opacity: 0; transition: opacity .25s ease;
}
.mobile-nav-backdrop.open { opacity: 1; }

/* ---------- disclosure bar ---------- */
.status-bar { background: #161616; border-bottom: 1px solid var(--border); }
.status-bar-inner {
  max-width: 1160px; margin: 0 auto; padding: 9px 20px; display: flex; gap: 10px; align-items: flex-start;
  min-width: 0;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-top: 6px; flex-shrink: 0; }
.status-bar p { margin: 0; font-size: 13px; color: var(--text-dim); min-width: 0; }

/* ---------- hero ---------- */
.hero {
  padding: 44px 0 32px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: center;
}
.hero-copy { min-width: 0; }
.hero-kicker {
  font-family: var(--font-display); font-style: italic; color: var(--green);
  font-size: 17px; letter-spacing: .02em; margin: 0 0 10px;
}
.hero-lead { font-size: 17px; color: var(--text-dim); margin: 14px 0 20px; max-width: 56ch; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; }
.pill {
  display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  border: 1px solid var(--border); color: var(--text-dim); white-space: nowrap;
}
.pill-green { border-color: rgba(109,254,64,.4); color: var(--green); }
.pill-red { border-color: rgba(239,52,52,.4); color: #ff8a8a; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero-visual {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; display: flex; align-items: center; justify-content: center; min-width: 0;
  position: relative; overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(109,254,64,.18), transparent 70%); pointer-events: none;
}
.hero-visual img { width: 100%; max-width: 280px; height: auto; position: relative; }

/* ---------- quick facts ---------- */
.facts {
  padding: 8px 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.fact-card {
  background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--green);
  border-radius: 10px; padding: 16px; min-width: 0;
}
.fact-label {
  display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text-dim); margin: 0 0 6px; font-weight: 700;
}
.fact-value { display: block; font-size: 14.5px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }

/* ---------- game showcase ---------- */
.games-section { padding: 12px 0 44px; }
.section-label {
  font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--text); margin: 0 0 6px;
}
.section-sub { font-size: 14.5px; color: var(--text-dim); margin: 0 0 18px; max-width: 62ch; }
.chip-row { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 4px; }
.chip {
  flex-shrink: 0; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-dim);
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
}
.chip[aria-pressed="true"] { background: var(--green); color: #0d0d0d; border-color: var(--green); }

.game-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
}
.game-tile {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 300 / 226;
  background: var(--bg-card); border: 1px solid var(--border); min-width: 0;
}
.game-tile .tile-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-tile .tile-logo {
  position: absolute; left: 8%; right: 8%; top: 50%; transform: translateY(-50%);
  width: 84%; height: auto; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5));
}
.game-tile .tile-tag {
  position: absolute; left: 8px; bottom: 8px; font-size: 10.5px; font-weight: 800;
  background: rgba(13,13,13,.72); color: var(--green); padding: 3px 8px; border-radius: 999px;
  letter-spacing: .03em; text-transform: uppercase;
}

.game-tile-text {
  position: relative; border-radius: 12px; aspect-ratio: 300 / 226; min-width: 0;
  background: radial-gradient(120% 140% at 20% 15%, rgba(109,254,64,.14), transparent 60%), var(--bg-card);
  border: 1px solid var(--border); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
}
.game-tile-text .name { font-weight: 800; font-size: 15px; color: var(--text); overflow-wrap: anywhere; }
.game-tile-text .desc { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* ---------- payments ---------- */
.payments-section { padding: 8px 0 46px; }
.payments-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 14px; }
.pay-badge {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 22px; display: flex; align-items: center; min-width: 0;
}
.pay-badge img { height: 20px; width: auto; }
.payments-note { font-size: 13px; color: var(--text-dim); margin-top: 12px; max-width: 62ch; }

/* ---------- article (the ONLY place with real headings) ---------- */
.content-section { padding: 8px 0 20px; }
article.content { max-width: 800px; margin: 0 auto; min-width: 0; }
article.content h1 {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); line-height: 1.2;
  margin: 0 0 18px; color: var(--text);
}
article.content h2 {
  font-family: var(--font-display); font-size: 22px; line-height: 1.3;
  margin: 34px 0 12px; color: var(--green);
}
article.content h3 { font-size: 16px; margin: 0; color: var(--text); }
article.content p { font-size: 15.5px; color: #d8d8d5; margin: 0 0 14px; }
article.content > p:first-of-type {
  font-size: 17px; color: var(--text); padding-left: 14px; border-left: 3px solid var(--green);
}

.table-wrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--border); border-radius: 10px; }
table {
  width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 420px;
}
table th, table td {
  text-align: left; padding: 10px 14px; font-size: 14px; border-bottom: 1px solid var(--border);
  overflow-wrap: anywhere;
}
table th { background: var(--bg-elevated); color: var(--green); font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
table tr:last-child td { border-bottom: none; }
@media (max-width: 560px) {
  table th, table td { padding: 8px 10px; font-size: 12.5px; }
}

.faq { margin-top: 30px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  cursor: pointer; padding: 16px 28px 16px 0; position: relative; user-select: none;
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 14px; font-size: 20px; color: var(--green);
  font-family: var(--font-display);
}
.faq-q[aria-expanded="true"]::after { content: "\2212"; }
.faq-a { padding: 0 0 16px; }
.faq-a p { margin: 0; }

/* ---------- cta banner ---------- */
.cta-banner {
  margin: 36px 0 44px; padding: 30px; border-radius: 16px; text-align: center;
  background: linear-gradient(135deg, rgba(109,254,64,.10), rgba(20,20,20,0) 60%), var(--bg-card);
  border: 1px solid var(--border); min-width: 0;
}
.cta-banner .flourish { margin: 0 auto 14px; }
.cta-banner .cta-title { font-family: var(--font-display); font-style: italic; font-size: 22px; margin: 0 0 8px; }
.cta-banner .cta-sub { font-size: 14px; color: var(--text-dim); margin: 0 0 18px; }

/* ---------- 404 ---------- */
.notfound {
  padding: 70px 0; text-align: center; max-width: 560px; margin: 0 auto;
}
.notfound h1 {
  font-family: var(--font-display); font-size: clamp(28px, 5vw, 40px); margin: 0 0 14px; color: var(--green);
}
.notfound p { color: var(--text-dim); font-size: 15.5px; margin: 0 0 24px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: #0a0a0a; padding: 36px 0 26px; }
.footer-inner { max-width: 1160px; margin: 0 auto; padding: 0 20px; min-width: 0; }
.footer-logo { height: 26px; width: auto; margin-bottom: 16px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 16px; }
.footer-nav a { font-size: 13.5px; color: var(--text-dim); font-weight: 600; }
.footer-nav a:hover { color: var(--green); }
.footer-disclosure { font-size: 12.5px; color: var(--text-dim); max-width: 74ch; margin: 0 0 10px; }
.footer-rg { font-size: 12.5px; color: #c9c9c6; font-weight: 700; margin: 0 0 10px; }
.footer-copy { font-size: 12px; color: #7a7a77; margin: 0 0 14px; }

/* ---------- blog ---------- */
.crumbs-wrap { padding: 14px 0 0; }
.crumbs-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12.5px; color: var(--text-dim); }
.crumbs-list li { display: flex; align-items: center; gap: 6px; }
.crumbs-list li:not(:last-child)::after { content: "/"; color: var(--border); margin-left: 6px; }
.crumbs-list a { color: var(--text-dim); }
.crumbs-list a:hover { color: var(--green); }
.crumbs-list li[aria-current="page"] span { color: var(--text); }

.blog-page-header { padding: 30px 0 26px; max-width: 760px; }
.blog-title {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px); line-height: 1.2;
  margin: 0 0 12px; color: var(--text);
}
.blog-lede { font-size: 15.5px; color: var(--text-dim); margin: 0; }

.blog-list-section { padding: 4px 0 48px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.blog-card {
  display: flex; flex-direction: column; gap: 8px; min-width: 0;
  background: var(--bg-card); border: 1px solid var(--border); border-left: 3px solid var(--green);
  border-radius: 12px; padding: 20px;
}
.blog-card:hover { border-color: var(--green); }
.blog-card-date { color: var(--text-dim); font-size: 12.5px; margin: 0; font-weight: 700; letter-spacing: .02em; }
.blog-card-title { color: var(--text); font-size: 17px; font-weight: 800; margin: 0; line-height: 1.35; font-family: var(--font-display); }
.blog-card-desc { color: var(--text-dim); font-size: 13.5px; margin: 0; }
.blog-card-more { color: var(--green); font-size: 13px; font-weight: 700; margin-top: 4px; }

.article-meta { color: var(--text-dim); font-size: 13px; margin: 0 0 10px; }
.article-meta time { color: var(--text-dim); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav-desktop, .header-actions .btn-cta { display: none; }
  .burger { display: flex; }
  .hero { grid-template-columns: 1fr; padding: 30px 0 24px; }
  .hero-visual { order: -1; padding: 20px; }
  .hero-visual img { max-width: 220px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .brand-logo { height: 28px; }
  .hero-kicker { font-size: 15px; }
}
