/* Lucky Roll Craps — site styles */
@font-face { font-family: 'Oswald'; src: url('../fonts/Oswald_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('../fonts/Oswald_500Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Oswald'; src: url('../fonts/Oswald_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  --bg: #07100c;
  --bg-2: #0b1a12;
  --panel: rgba(255, 255, 255, .045);
  --line: rgba(255, 255, 255, .10);
  --felt: #0E5B39;
  --gold: #F5C542;
  --gold-2: #C9962A;
  --gold-lt: #FFE9A0;
  --cream: #F2EFE6;
  --muted: #9FB3A8;
  --mint: #10B981;
  --red: #E11D2E;
  --display: 'Oswald', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--cream); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), 100% - 48px); margin-inline: auto; }
.display { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
.gold { background: linear-gradient(180deg, var(--gold-lt) 0%, var(--gold) 50%, var(--gold-2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { font-family: var(--display); font-weight: 500; letter-spacing: .28em; text-transform: uppercase; font-size: .8rem; color: var(--mint); }
.lead { color: var(--muted); font-size: 1.125rem; max-width: 58ch; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(7, 16, 12, .55); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(7, 16, 12, .85); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: 1.05rem; }
.brand img { width: auto; height: 64px; }
.nav-badge img { height: 40px; width: auto; transition: filter .2s; }
.nav-badge:hover img { filter: brightness(1.12); }
.nav-links { display: flex; gap: 30px; align-items: center; list-style: none; }
.nav-links a { font-size: .92rem; color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--cream); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-family: var(--display); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-gold { background: linear-gradient(180deg, #FFDD6B, #F5C542 55%, #D9A62F); color: #20160A; box-shadow: 0 14px 34px rgba(245, 197, 66, .28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(245, 197, 66, .38); }
.btn-ghost { border: 1px solid var(--line); color: var(--cream); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; color: var(--cream); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: currentColor; margin: 0 auto; position: relative; transition: transform .25s; content: ''; }
.nav-toggle span::before { position: absolute; top: -6px; left: 0; }
.nav-toggle span::after { position: absolute; top: 6px; left: 0; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; min-height: calc(100vh - 76px); display: flex; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7, 16, 12, .92) 0%, rgba(7, 16, 12, .72) 45%, rgba(7, 16, 12, .35) 100%), linear-gradient(180deg, rgba(7, 16, 12, .2) 0%, rgba(7, 16, 12, 0) 40%, var(--bg) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 6.4vw, 5.6rem); margin: 18px 0 22px; max-width: 12ch; }
.hero .lead { margin-bottom: 34px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-cta .badge img { height: 64px; width: auto; }
.hero-cta .badge:hover img { filter: brightness(1.08); }
.hero-phones { position: relative; height: 620px; }
.hero-phones img { position: absolute; width: 300px; height: auto; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)); }
.hero-phones .p1 { left: 8%; top: 40px; animation: float 7s ease-in-out infinite; }
.hero-phones .p2 { right: 4%; top: 0; width: 320px; animation: float 7s ease-in-out infinite 1.4s; z-index: 2; }
.hero-phones::before { content: ''; position: absolute; inset: 20% 10%; background: radial-gradient(closest-side, rgba(245, 197, 66, .22), rgba(245, 197, 66, 0)); filter: blur(30px); z-index: -1; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }

/* ---------- trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; }
.strip li { padding: 22px 12px; text-align: center; font-family: var(--display); font-weight: 500; letter-spacing: .12em; text-transform: uppercase; font-size: .84rem; color: var(--muted); border-left: 1px solid var(--line); }
.strip li:first-child { border-left: 0; }
.strip li strong { display: block; color: var(--gold); font-size: 1.15rem; letter-spacing: .05em; margin-bottom: 4px; }

/* ---------- sections ---------- */
section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin: 14px 0 16px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 28px; position: relative; overflow: hidden; transition: transform .25s, border-color .25s; }
.card:hover { transform: translateY(-4px); border-color: rgba(245, 197, 66, .35); }
.card .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: rgba(245, 197, 66, .12); color: var(--gold); margin-bottom: 20px; }
.card .icon svg { width: 26px; height: 26px; }
.card h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }

/* screens gallery */
.screens { background: var(--bg-2); }
.gallery { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 0 28px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.gallery figure { flex: 0 0 240px; scroll-snap-align: start; text-align: center; }
.gallery img { width: 240px; filter: drop-shadow(0 26px 40px rgba(0, 0, 0, .6)); transition: transform .3s; }
.gallery figure:hover img { transform: translateY(-8px); }
.gallery figcaption { margin-top: 18px; font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--muted); }
.gallery figcaption strong { display: block; color: var(--cream); font-size: 1.05rem; letter-spacing: .04em; margin-bottom: 2px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 32px 26px 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1; color: var(--gold); display: block; margin-bottom: 14px; opacity: .9; }
.step h3 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: 1.25rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* odds */
.odds-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.odds-wrap > * { min-width: 0; }
.table-scroll { overflow-x: auto; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
th { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--muted); background: rgba(255, 255, 255, .03); }
tr:last-child td { border-bottom: 0; }
td.edge { font-family: var(--display); font-weight: 500; color: var(--gold); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; font-family: var(--display); font-weight: 500; }
.tag.good { background: rgba(16, 185, 129, .16); color: #6EE7B7; }
.tag.mid { background: rgba(245, 197, 66, .14); color: var(--gold); }
.tag.bad { background: rgba(225, 29, 46, .16); color: #FCA5A5; }
.note { color: var(--muted); font-size: .85rem; margin-top: 14px; }
.glossary { list-style: none; display: grid; gap: 12px; }
.glossary li { padding: 16px 18px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.glossary dt { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin-bottom: 4px; }
.glossary dd { color: var(--muted); font-size: .93rem; }

/* faq */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); margin-bottom: 12px; padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--display); font-size: 1.6rem; color: var(--gold); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 22px; }

/* download */
.download { position: relative; overflow: hidden; }
.download-card { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 40px; padding: 56px; border-radius: 32px; border: 1px solid rgba(245, 197, 66, .25); background: linear-gradient(135deg, rgba(14, 91, 57, .55), rgba(7, 16, 12, .6)); position: relative; overflow: hidden; }
.download-card::before { content: ''; position: absolute; inset: -40%; background: radial-gradient(closest-side at 80% 20%, rgba(245, 197, 66, .18), transparent 60%); pointer-events: none; }
.download-card h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 12px 0 14px; }
.download-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.download-cta .badge img { height: 68px; width: auto; }
.qr { justify-self: end; text-align: center; }
.qr img { width: 180px; height: 180px; background: #fff; padding: 12px; border-radius: 18px; margin-inline: auto; }
.qr p { margin-top: 12px; color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; font-family: var(--display); }
.meta { margin-top: 18px; color: var(--muted); font-size: .85rem; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 64px 0 36px; background: #050b08; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
.foot-grid h4 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; color: var(--gold); margin-bottom: 14px; }
.foot-grid ul { list-style: none; display: grid; gap: 10px; }
.foot-grid a { color: var(--muted); font-size: .93rem; }
.foot-grid a:hover { color: var(--cream); }
.foot-brand img { width: 120px; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); max-width: 36ch; font-size: .93rem; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.social a:hover { color: var(--gold); border-color: rgba(245, 197, 66, .4); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; display: grid; gap: 8px; }

/* legal pages */
.doc { padding: 72px 0 96px; max-width: 800px; margin-inline: auto; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin-bottom: 40px; }
.doc h2 { font-family: var(--display); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; font-size: 1.35rem; color: var(--gold); margin: 36px 0 12px; }
.doc p, .doc li { color: #C9D3CD; margin-bottom: 12px; }
.doc ul { padding-left: 22px; margin-bottom: 14px; }
.doc strong { color: var(--cream); }
.doc a { color: var(--gold); }
.back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 28px; font-size: .9rem; }

/* reveal: content is visible at rest; browsers that support scroll-driven animations get a soft entrance */
.reveal { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 38%; }
    @keyframes rise { from { opacity: .001; transform: translateY(26px); } to { opacity: 1; transform: none; } }
  }
}
.hero-phones img { will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hero-phones img { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .odds-wrap { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-phones { height: 560px; }
  .hero-phones img { width: 260px; }
  .hero-phones .p2 { width: 280px; }
}
@media (max-width: 800px) {
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; background: rgba(7, 16, 12, .97); border-bottom: 1px solid var(--line); padding: 10px 24px 18px; }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-toggle { display: grid; place-items: center; }
  .nav .btn { display: none; }
  .brand img { height: 52px; }
  .nav-badge img { height: 34px; }
  .nav { gap: 12px; }
  .hero { min-height: 0; padding: 56px 0 24px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero h1 { max-width: none; }
  .hero-phones { height: 440px; }
  .hero-phones img { width: 200px; }
  .hero-phones .p1 { left: 6%; }
  .hero-phones .p2 { width: 215px; right: 6%; }
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .strip li:nth-child(3) { border-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  section { padding: 72px 0; }
  .features, .steps { grid-template-columns: 1fr; }
  .download-card { grid-template-columns: 1fr; padding: 36px 26px; }
  .qr { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr; }
}
