/* Lucky Star BR - dark theme from design.md. Shell structure from reference-layout.md */
:root {
  --bg: #0B1021;
  --bg-header: #080C1A;
  --bg-footer: #080C1A;
  --card: #141B38;
  --card-border: #232C52;
  --text: #FFFFFF;
  --muted: #AEB4C6;
  --accent: #00CE68;
  --accent-ink: #0B1021;
  --link: #00CE68;
  --trow-bg: #1D284F;
  --trow-secondary-bg: #26356B;
  --thead-bg: #0C4A3A;
  --thead-border: #00CE68;
  --trow-border: #3A4A86;
  --frame: #2A3566;
  --radius: 12px;
  --tile-radius: 10px;
  --header-h: 61px;
  --sidebar-w: 224px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; padding-top: var(--header-h); background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; }
h1 { font-size: 1.7rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
[hidden], .gtm-frame { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* icons (CSS backgrounds, so tables and cards never hold an img) */
.ico { display: inline-block; width: 24px; height: 24px; flex: none; background-repeat: no-repeat; background-position: center; background-size: contain; }
.ico-lg { width: 44px; height: 44px; border-radius: 50%; background-color: #0F1A3F; border: 1px solid var(--card-border); background-size: 24px; }
.ico-todos { background-image: url(../img/categories/todos.svg); }
.ico-populares { background-image: url(../img/categories/populares.svg); }
.ico-slots { background-image: url(../img/categories/slots.svg); }
.ico-ao-vivo { background-image: url(../img/categories/ao-vivo.svg); }
.ico-jogos-rapidos { background-image: url(../img/categories/jogos-rapidos.svg); }
.ico-aviator { background-image: url(../img/categories/aviator.svg); }
.ico-esportes { background-image: url(../img/categories/esportes.svg); }
.ico-bonus { background-image: url(../img/categories/bonus.svg); }
.ico-torneios { background-image: url(../img/categories/torneios.svg); }
.ico-pix { background-image: url(../img/categories/pix.svg); }
.ico-provedores { background-image: url(../img/categories/provedores.svg); }
.ico-app { background-image: url(../img/categories/app.svg); }
.ico-inicio { background-image: url(../img/categories/inicio.svg); }
.ico-login { background-image: url(../img/categories/login.svg); }
.ico-analise { background-image: url(../img/categories/analise.svg); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--accent); font: 700 .95rem/1.2 var(--font); text-decoration: none; text-align: center; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #12e077; }
.btn-outline { background: transparent; color: var(--accent); }
.btn-outline:hover { background: rgba(0, 206, 104, .12); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }

/* header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h); display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--bg-header); border-bottom: 1px solid var(--card-border); }
.burger { width: 38px; height: 38px; flex: none; display: grid; place-items: center; background: transparent; border: 1px solid var(--card-border); border-radius: 8px; color: var(--text); cursor: pointer; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--text); content: ""; position: relative; }
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }
.logo { display: block; flex: none; }
.logo img { height: 34px; width: auto; }
.header-actions { margin-left: auto; display: flex; gap: 8px; }
.header-actions .btn { min-height: 40px; padding: 0 12px; font-size: .88rem; }

/* layout */
.layout { display: block; }
.sidebar { position: fixed; top: var(--header-h); left: 0; bottom: 0; width: 272px; z-index: 60; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; padding: 16px 14px 24px; background: var(--bg-header); border-right: 1px solid var(--card-border); }
.sidebar.is-open { transform: none; }
.backdrop { position: fixed; inset: var(--header-h) 0 0 0; z-index: 55; background: rgba(0, 0, 0, .6); }
.search-box input { width: 100%; min-height: 44px; padding: 0 12px; background: #0F1530; border: 1px solid var(--card-border); border-radius: 10px; color: var(--text); font: inherit; }
.search-box input::placeholder { color: var(--muted); }
.side-title { display: block; margin: 20px 0 8px; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.side-menu, .toc ol { list-style: none; margin: 0; padding: 0; }
.side-menu a { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .95rem; }
.side-menu a:hover, .side-menu a[aria-current="page"] { background: var(--card); }
.toc a { display: block; padding: 6px 10px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .88rem; line-height: 1.35; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--accent); border-left-color: var(--accent); background: rgba(0, 206, 104, .07); }
.main { min-width: 0; }
.content { padding: 18px 14px 0; }
.section { margin: 0 0 36px; scroll-margin-top: 84px; }
.section > :is(p, .table-wrap) { max-width: 880px; }
h1, h2, h3 { scroll-margin-top: 84px; }
.note { font-size: .85rem; color: var(--muted); }

/* hero */
.hero { display: grid; gap: 22px; padding: 20px; margin-bottom: 20px; border-radius: var(--radius); border: 1px solid var(--card-border); background: linear-gradient(135deg, #141B38 0%, #0F1A3F 60%, #0A3A30 100%); }
.hero-label { display: block; margin-bottom: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.hero-tagline { display: block; font-size: 1.3rem; font-weight: 700; line-height: 1.35; margin-bottom: 4px; }
.hero-devices { position: relative; padding-bottom: 6%; }
.device-desktop { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top; border: 3px solid var(--frame); border-radius: 12px; background: #000; }
.device-phone { aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border: 3px solid var(--frame); border-radius: 22px; background: #000; }
.hero-devices .device-phone { position: absolute; right: 3%; bottom: 0; width: 26%; box-shadow: 0 8px 24px rgba(0, 0, 0, .5); }

/* category panel */
.cat-panel { margin-bottom: 32px; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.cat-list a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--tile-radius); color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 600; }
.cat-list a:hover { border-color: var(--accent); }

/* rows */
.row-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.row-head h2 { margin: 0; }
.view-all { font-weight: 700; text-decoration: none; }
.arrows { display: flex; gap: 8px; }
.arrow { width: 36px; height: 36px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; color: var(--text); font-size: 1.2rem; cursor: pointer; }
.arrow:hover { border-color: var(--accent); }

/* game tiles: equal-height names, buttons pressed to the bottom */
.tiles { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--tile-radius); }
.tile-cover { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.tile-name { display: block; min-height: 3.75em; font-size: .9rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.tile-meta > span { display: block; }
.tile-meta { display: block; min-height: 2.6em; font-size: .78rem; line-height: 1.3; color: var(--muted); }
.tile .btn { margin-top: auto; width: 100%; padding: 0 8px; }

/* text cards */
.cards { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.card { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); }
.card-title { display: block; font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.card-meta { display: block; min-height: 1.4em; font-size: .82rem; color: var(--accent); }
.card-text { margin: 0; flex: 1; font-size: .92rem; color: var(--muted); }
.card .btn { margin-top: auto; }
.scroller { list-style: none; margin: 14px 0 0; padding: 0 0 8px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.scroller > .card { flex: 0 0 240px; scroll-snap-align: start; }

/* providers and payments */
.providers { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.providers li { display: grid; place-items: center; min-height: 64px; padding: 8px; text-align: center; font-weight: 700; font-size: .9rem; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--tile-radius); }
.pay-grid { display: grid; gap: 12px; margin-top: 14px; }
.pay-group { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); }
.group-title { display: block; font-weight: 700; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 40px; padding: 4px 14px; border: 1px solid var(--accent); border-radius: 8px; font-weight: 700; color: var(--text); text-decoration: none; background: #0F1A3F; }
.pay-group .note { margin: 0; }
.pay-group .btn { margin-top: auto; align-self: flex-start; }

/* tables */
.table-wrap { overflow-x: auto; margin: 14px 0 22px; border: 1px solid var(--trow-border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--trow-border); }
thead th { background: var(--thead-bg); border-bottom: 2px solid var(--thead-border); color: var(--text); }
tbody tr { background: var(--trow-bg); }
tbody tr:nth-child(even) { background: var(--trow-secondary-bg); }
tbody tr:last-child td { border-bottom: 0; }
.col-key { font-weight: 700; color: var(--accent); }

/* steps and app */
.panels { display: grid; gap: 16px; margin-top: 14px; }
.panel { padding: 16px; background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); }
.panel h3 { margin-top: 0; }
.steps { list-style: none; counter-reset: step; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.steps > li { counter-increment: step; position: relative; padding: 12px 12px 12px 56px; background: #0F1530; border: 1px solid var(--card-border); border-radius: 10px; }
.steps > li::before { content: counter(step); position: absolute; left: 12px; top: 12px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.step-title { display: block; font-weight: 700; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: .93rem; }
.steps .btn { margin-top: 10px; }
.panel .device-phone { width: min(220px, 70%); margin: 0 auto; }

/* faq */
details { margin-bottom: 8px; background: var(--card); border: 1px solid var(--card-border); border-radius: 10px; }
summary { min-height: 44px; padding: 10px 16px; font-weight: 700; cursor: pointer; }
details p { margin: 0; padding: 0 16px 14px; color: var(--muted); }

/* footer */
.site-footer { margin-top: 40px; padding: 28px 14px 110px; background: var(--bg-footer); border-top: 1px solid var(--card-border); }
.footer-top { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.footer-top p { margin: 0; font-size: .88rem; color: var(--muted); }
.footer-cols { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols a { display: block; padding: 6px 0; color: var(--text); text-decoration: none; font-size: .92rem; }
.footer-cols a:hover { color: var(--accent); }
.copy { margin: 24px 0 0; font-size: .82rem; color: var(--muted); }

/* offer bar */
.offer { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 40; display: flex; align-items: center; gap: 10px; width: calc(100% - 24px); max-width: 420px; padding: 10px 12px; background: var(--card); border: 1px solid var(--accent); border-radius: 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .55); }
.offer-text { flex: 1; font-size: .88rem; line-height: 1.3; }
.offer .btn { min-height: 40px; padding: 0 12px; font-size: .85rem; }
.offer-close { width: 32px; height: 32px; flex: none; display: grid; place-items: center; background: transparent; border: 0; color: var(--muted); font-size: 1.1rem; cursor: pointer; }

@media (min-width: 700px) {
  .pay-grid { grid-template-columns: 1fr 1fr; }
  .panels { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(160px, 260px)); }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1fr 1fr; align-items: center; padding: 28px; }
  .hero-tagline { font-size: 1.5rem; }
}
@media (min-width: 1025px) {
  :root { --header-h: 69px; }
  .logo img { height: 40px; }
  .header-actions .btn { min-height: 44px; padding: 0 20px; }
  .burger, .backdrop { display: none !important; }
  .layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .sidebar { position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); width: auto; transform: none; transition: none; z-index: 1; }
  .content { padding: 24px 28px 0; }
  .site-footer { padding-left: 28px; padding-right: 28px; }
  .offer { max-width: 420px; bottom: 18px; }
  h1 { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sidebar { transition: none; }
}

/* breadcrumbs */
.breadcrumbs { margin: 0 0 14px; font-size: .85rem; color: var(--muted); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--link); text-decoration: none; }
/* footer conversion buttons and socials */
.footer-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; list-style: none; margin: 16px 0 0; padding: 0; }
.footer-social a { color: var(--text); font-size: .92rem; text-decoration: none; }
.footer-social a:hover { color: var(--accent); }
/* app bar (mobile/offer bar) icon */
.offer-icon { flex: none; border-radius: 10px; }
