:root {
  --bg: #0f212e;
  --panel: #1a2c38;
  --panel-2: #2e4556;
  --panel-3: #213847;
  --text: #ffffff;
  --muted: #b1bad3;
  --line: #2e4556;
  --accent: #18d777;
  --accent-2: #ffc20e;
  --danger: #f05d5d;
  --warning: #f6c85f;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

button,
input,
select,
summary {
  font: inherit;
}

button,
summary {
  cursor: pointer;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: #08140f;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dashboard-body {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 16rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.25rem;
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.7rem;
  background: linear-gradient(135deg, var(--accent), #14a8c8);
  color: #06150f;
  font-weight: 900;
}

.brand-logo {
  display: block;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 0.7rem;
  object-fit: cover;
  background: #f04a24;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.sidebar-brand strong,
.sidebar-brand span {
  display: block;
}

.sidebar-brand span,
.sidebar-footer,
.panel p,
.library-toolbar p,
.roulette-heading p,
.footer p {
  color: var(--muted);
  font-size: 0.9rem;
}

.sidebar-nav {
  display: grid;
  gap: 0.5rem;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.55rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.sidebar-nav a:hover,
.sidebar-nav a:focus,
.sidebar-nav a.active {
  background: var(--panel-2);
  color: var(--text);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.78rem;
  font-weight: 900;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.affiliate-mini {
  display: block;
  margin-bottom: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.55rem;
  background: #f04a24;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
}

.main-content {
  width: calc(100% - 16rem);
  margin-left: 16rem;
  padding: 1.5rem 2rem 2.5rem;
}

.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
  padding: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at 78% 16%, rgba(240, 74, 36, 0.26), transparent 17rem),
    linear-gradient(135deg, #142d38 0%, #0a1b25 58%, #111820 100%);
  box-shadow: var(--shadow);
}

.seo-hero-copy {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.seo-hero h1 {
  max-width: 48rem;
  margin: 0;
  font-size: 2.65rem;
  line-height: 1.04;
}

.hero-lede {
  max-width: 48rem;
  margin: 0;
  color: #d4e4ec;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.affiliate-button {
  background: #f04a24;
  color: #fff;
}

.affiliate-disclosure {
  max-width: 50rem;
  margin: 0;
  color: #b8c9d2;
  font-size: 0.88rem;
}

.seo-hero-media {
  display: grid;
  place-items: center;
  min-height: 17rem;
  border-radius: 0.7rem;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.12), transparent 11rem),
    #f04a24;
}

.seo-hero-media img {
  display: block;
  width: min(100%, 20rem);
  max-height: 20rem;
  object-fit: contain;
}

.affiliate-banner-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.75rem;
  background:
    linear-gradient(90deg, rgba(240, 74, 36, 0.12), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.affiliate-banner-panel p {
  max-width: 47rem;
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.stake-affiliate-banner {
  display: block;
  flex: 0 0 auto;
  padding: 0.25rem;
  border-radius: 0.55rem;
  background: #061824;
  line-height: 0;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.stake-affiliate-banner img {
  display: block;
  width: 20rem;
  max-width: 100%;
  height: auto;
  border-radius: 0.35rem;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.value-grid article {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.value-icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: #f04a24;
  color: #fff;
  font-weight: 950;
}

.value-grid h2,
.guide-intro h2,
.section-heading h2,
.faq-section h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.18;
}

.value-grid p,
.guide-intro p,
.section-heading p,
.guide-card-grid p,
.faq-section p,
.site-footer p {
  margin: 0;
  color: var(--muted);
}

.guide-intro {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 1.1rem;
}

.dashboard-header,
.library-toolbar,
.roulette-heading,
.row-between,
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-header {
  margin-bottom: 1.25rem;
}

.header-title h1,
.header-title h2,
.library-toolbar h2,
.panel h2,
.panel h3,
.panel p,
.footer p {
  margin: 0;
}

.header-title h1 {
  font-size: 1.85rem;
  line-height: 1.15;
}

.header-title h2 {
  font-size: 1.55rem;
  line-height: 1.15;
}

.label,
.eyebrow {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.session-strip {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.session-strip label {
  width: 9.5rem;
}

.session-stat,
.metric,
.seed-hash-box,
.rtp-badge {
  min-height: 3.35rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--panel);
}

.session-stat strong,
.metric strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 1.08rem;
}

.library-toolbar {
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--line);
}

.search-box {
  width: min(100%, 22rem);
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 2.45rem;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.55rem 0.65rem;
  background: #0d1b26;
  color: var(--text);
  outline: none;
}

input:focus,
select:focus,
button:focus,
summary:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(24, 215, 119, 0.2);
  outline: none;
}

.button-row {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.button {
  min-height: 2.45rem;
  border: 0;
  border-radius: 0.5rem;
  padding: 0.58rem 0.85rem;
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #07160f;
}

.button.secondary {
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.button:hover {
  filter: brightness(1.08);
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
}

.game-card {
  position: relative;
  display: grid;
  grid-template-rows: 7.5rem auto;
  min-height: 10.6rem;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.game-card::before {
  content: attr(data-art);
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 255, 255, 0.24), transparent 2rem),
    linear-gradient(135deg, var(--card-a), var(--card-b));
  color: rgba(255, 255, 255, 0.92);
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  white-space: pre;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.game-card strong,
.game-card span {
  display: block;
  padding: 0 0.8rem;
  background: var(--panel-2);
  position: relative;
  z-index: 1;
}

.game-card strong {
  padding-top: 0.75rem;
  font-size: 0.98rem;
  line-height: 1.2;
}

.game-card span {
  min-height: 2rem;
  padding-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.game-card:hover,
.game-card:focus {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.game-card.active {
  border-color: var(--accent-2);
}

.game-card.coming-soon {
  cursor: not-allowed;
  opacity: 0.76;
}

.game-card.coming-soon::before {
  filter: grayscale(0.35) saturate(0.75);
}

.game-card.coming-soon:hover,
.game-card.coming-soon:focus {
  transform: none;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.game-card-status {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 2;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  background: rgba(5, 16, 25, 0.82);
  color: #d8f7ff;
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.fairness-panel {
  display: none !important;
}

.dashboard-panels {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.seo-guide-library,
.faq-section {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.section-heading {
  display: grid;
  gap: 0.35rem;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  gap: 0.85rem;
}

.guide-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.guide-link-list a,
.related-guide-links a,
.keyword-cluster li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #d9edf4;
  font-size: 0.84rem;
  font-weight: 850;
}

.guide-link-list a,
.related-guide-links a {
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}

.guide-link-list a:hover,
.guide-link-list a:focus,
.related-guide-links a:hover,
.related-guide-links a:focus {
  border-color: var(--accent);
  color: #fff;
}

.guide-card-grid article {
  min-height: 11rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%),
    var(--panel);
}

.guide-card-grid h3 {
  margin: 0 0 0.45rem;
  font-size: 1.03rem;
}

.faq-section details {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--panel);
}

.faq-section summary {
  padding: 0.9rem 1rem;
  color: #fff;
  font-weight: 950;
}

.faq-section details p {
  padding: 0 1rem 1rem;
}

.site-footer {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.guide-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 82% 10%, rgba(240, 74, 36, 0.14), transparent 20rem),
    var(--bg);
}

.guide-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.85rem clamp(1rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(15, 33, 46, 0.94);
  backdrop-filter: blur(10px);
}

.guide-brand,
.guide-topbar nav,
.breadcrumbs,
.guide-hero-actions,
.related-guide-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.guide-brand {
  color: #fff;
  font-weight: 950;
  text-decoration: none;
}

.guide-brand img {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.6rem;
  object-fit: cover;
}

.guide-topbar nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.guide-topbar nav a:hover,
.guide-topbar nav a:focus {
  color: #fff;
}

.guide-main {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.5rem;
}

.guide-article {
  display: grid;
  gap: 1rem;
}

.breadcrumbs {
  color: var(--muted);
  font-size: 0.86rem;
}

.breadcrumbs a {
  color: #d9edf4;
  text-decoration: none;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.35fr);
  gap: 1rem;
  padding: 1.35rem;
}

.guide-hero h1 {
  max-width: 52rem;
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.04;
}

.guide-hero p,
.search-intent-panel p,
.guide-copy p,
.guide-sidebar-card p,
.guide-faq p,
.related-guides p,
.guide-footer p {
  color: var(--muted);
}

.guide-facts,
.guide-sidebar-card {
  display: grid;
  gap: 0.75rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
}

.guide-facts div {
  display: grid;
  gap: 0.15rem;
}

.guide-facts strong {
  font-size: 1.02rem;
}

.search-intent-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(16rem, 1fr);
  gap: 1rem;
  padding: 1.1rem;
}

.keyword-cluster {
  display: flex;
  align-content: start;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.keyword-cluster li {
  padding: 0.4rem 0.65rem;
}

.guide-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 20rem);
  gap: 1rem;
}

.guide-copy,
.guide-faq,
.related-guides,
.guide-index-grid a {
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.guide-copy {
  display: grid;
  gap: 0.85rem;
}

.guide-copy h2,
.guide-faq h2,
.related-guides h2,
.search-intent-panel h2 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.18;
}

.guide-copy p,
.guide-faq p,
.guide-sidebar-card p,
.guide-footer p {
  margin: 0;
}

.guide-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.guide-toc a {
  color: #d9edf4;
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.guide-key-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
}

.guide-key-table th,
.guide-key-table td {
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.guide-key-table th {
  width: 11rem;
  color: #fff;
}

.guide-key-table td {
  color: var(--muted);
}

.guide-sidebar-card {
  position: sticky;
  top: 5.5rem;
}

.guide-sidebar-card .stake-affiliate-banner img {
  width: 100%;
}

.guide-faq {
  display: grid;
  gap: 0.65rem;
}

.guide-faq details {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.035);
}

.guide-faq summary {
  padding: 0.85rem 1rem;
  font-weight: 950;
}

.guide-faq details p {
  padding: 0 1rem 1rem;
}

.related-guides {
  display: grid;
  gap: 0.8rem;
}

.guide-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 0.85rem;
}

.guide-index-grid a {
  display: grid;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
}

.guide-index-grid a:hover,
.guide-index-grid a:focus {
  border-color: var(--accent);
}

.guide-index-grid span {
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 900;
}

.guide-index-grid p {
  margin: 0;
  color: var(--muted);
}

.guide-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 2rem;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.compact-panel {
  padding: 0;
}

.compact-panel > summary {
  padding: 0.9rem 1rem;
  color: var(--text);
  font-weight: 900;
  list-style-position: inside;
}

.compact-panel[open] > summary {
  border-bottom: 1px solid var(--line);
}

.selected-game-header,
.simulator-grid,
.advanced-grid,
.result-card pre,
.history-panel .panel-header,
.history-panel .table-wrap {
  margin: 1rem;
}

.selected-game-header {
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.simulator-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(18rem, 1fr);
  gap: 1rem;
}

.game-settings,
.action-panel,
.advanced-grid {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.game-settings {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(0, 0, 0, 0.14);
}

.advanced-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.seed-hash-box {
  grid-column: 1 / -1;
}

.seed-hash-box code {
  display: block;
  margin-top: 0.35rem;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.78rem;
}

.metrics-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 1rem;
}

.result-card {
  min-height: auto;
}

.result-card pre {
  max-height: 28rem;
  overflow: auto;
  white-space: pre-wrap;
  color: #d9f2ff;
  font-size: 0.84rem;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 48rem;
}

th,
td {
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.88rem;
}

th {
  color: var(--muted);
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:last-child td {
  border-bottom: 0;
}

.profit-positive {
  color: var(--accent);
}

.profit-negative {
  color: var(--danger);
}

.notice {
  margin-top: 1rem;
  padding: 0.85rem;
  border: 1px solid rgba(246, 200, 95, 0.35);
  border-radius: 0.75rem;
  background: rgba(246, 200, 95, 0.08);
  color: #ffe3a3;
  font-size: 0.88rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 1rem clamp(1rem, 3vw, 2.5rem);
  background: rgba(15, 33, 46, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.my-bets-body {
  min-height: 100vh;
  background: #102734;
}

.my-bets-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  background: #132c39;
  border-bottom: 1px solid var(--line);
}

.my-bets-layout {
  display: grid;
  grid-template-columns: 10rem minmax(32rem, 1fr) minmax(22rem, 34rem);
  gap: 1rem;
  max-width: 1500px;
  margin: 0 auto;
  padding: 1rem;
}

.my-bets-sidebar {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.my-bets-sidebar p,
.my-bets-detail p,
.copy-status {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.my-bets-tabs {
  display: grid;
  overflow: hidden;
  border-radius: 0.45rem;
  background: #091923;
}

.my-bets-tabs a,
.my-bets-tabs span {
  padding: 0.85rem;
  color: #d6e7ef;
  font-weight: 900;
  text-decoration: none;
}

.my-bets-tabs .active {
  background: #496678;
  color: #ffffff;
}

.my-bets-tabs span {
  color: #8ba4b2;
}

.my-bets-seed-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 0.45rem;
  background: #17313f;
  border: 1px solid #315166;
}

.my-bets-seed-card h2,
.my-bets-seed-card h3 {
  margin: 0;
  color: #f6fbff;
}

.my-bets-seed-card h2 {
  font-size: 1rem;
}

.my-bets-seed-card h3 {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.my-bets-seed-card label,
.seed-readout {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.my-bets-seed-card label span,
.seed-readout span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.my-bets-seed-card input,
.seed-readout code {
  width: 100%;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid #4c748b;
  border-radius: 0.35rem;
  background: #0b202c;
  color: #f6fbff;
  font: inherit;
  overflow-wrap: anywhere;
}

.my-bets-seed-card input[readonly] {
  color: #bfd5e1;
}

.my-bets-panel,
.my-bets-detail {
  min-width: 0;
  padding: 1rem;
  border-radius: 0.45rem;
  background: #17313f;
}

.my-bets-panel-header,
.my-bets-detail-header,
.my-bets-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.my-bets-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 10rem;
  padding: 0.25rem;
  border-radius: 999px;
  background: #0d2330;
}

.my-bets-mode button {
  min-height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c8dce8;
  font-weight: 900;
}

.my-bets-mode button.active {
  background: #6f8fa1;
  color: #061924;
}

.my-bets-mode button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.my-bets-table-wrap {
  margin-top: 1rem;
  border-radius: 0.45rem;
  border-color: #315166;
}

.my-bets-table {
  min-width: 46rem;
}

.my-bets-table td {
  vertical-align: middle;
}

.my-bet-row {
  cursor: pointer;
}

.my-bet-row:hover,
.my-bet-row:focus,
.my-bet-row.active {
  background: rgba(255, 255, 255, 0.055);
}

.my-bet-row td:first-child strong,
.my-bet-row td:first-child span,
.my-bet-row td:nth-child(5) strong,
.my-bet-row td:nth-child(5) span {
  display: block;
}

.my-bet-row td:first-child span,
.my-bet-row td:nth-child(5) span {
  color: var(--muted);
  font-size: 0.75rem;
}

.my-bets-detail {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.my-bets-detail h2,
.my-bets-detail h3 {
  margin: 0;
}

.my-bets-detail h3 {
  font-size: 1rem;
}

.my-bets-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.my-bets-detail-grid > div {
  min-width: 0;
  padding: 0.7rem;
  border-radius: 0.45rem;
  background: #0f2532;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.my-bets-detail-grid strong {
  display: block;
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
  color: #f6fbff;
  font-size: 0.9rem;
}

.my-bets-fairness {
  display: grid;
  gap: 0.65rem;
}

.my-bets-detail pre {
  max-height: 28rem;
  overflow: auto;
  padding: 1rem;
  margin: 0;
  border-radius: 0.45rem;
  background: #091c27;
  color: #e5f7ff;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.empty-row {
  color: var(--muted);
  text-align: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand h1,
.brand p {
  margin: 0;
}

.brand p {
  color: var(--muted);
  font-size: 0.92rem;
}

.status-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.status-strip > div {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--panel);
}

.checker-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% -8%, rgba(52, 88, 107, 0.35), transparent 24rem),
    var(--bg);
}

.checker-topbar {
  border-bottom: 1px solid var(--line);
}

.checker-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr);
  gap: 1.25rem;
  max-width: 1260px;
  margin: 0 auto;
  padding: 1.25rem;
}

.checker-sidebar {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.checker-nav {
  display: grid;
  overflow: hidden;
  border-radius: 0.45rem;
  background: #091923;
}

.checker-nav a {
  padding: 0.85rem;
  color: #d6e7ef;
  font-weight: 900;
  text-decoration: none;
}

.checker-nav a:hover,
.checker-nav a:focus,
.checker-nav a.active {
  background: #496678;
  color: #ffffff;
}

.checker-note {
  display: grid;
  gap: 0.35rem;
  padding: 0.85rem;
  border: 1px solid #315166;
  border-radius: 0.45rem;
  background: #17313f;
}

.checker-note h2,
.checker-note p,
.checker-panel h2,
.checker-panel h3 {
  margin: 0;
}

.checker-note h2 {
  font-size: 0.9rem;
}

.checker-note p {
  color: var(--muted);
  font-size: 0.84rem;
}

.checker-panel {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border-radius: 0.45rem;
  background: #17313f;
}

.checker-panel-header,
.checker-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.checker-panel-header h2 {
  font-size: 1.35rem;
}

.checker-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0.9rem;
  border: 1px solid #315166;
  border-radius: 0.45rem;
  background: #102733;
}

.checker-form label {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.checker-form label[hidden] {
  display: none;
}

.checker-form label span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.checker-actions {
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.checker-result-layout {
  display: grid;
  grid-template-columns: minmax(18rem, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  align-items: stretch;
}

.checker-visual,
.checker-summary,
.checker-output-section {
  min-width: 0;
  padding: 1rem;
  border: 1px solid #315166;
  border-radius: 0.45rem;
  background: #102733;
}

.checker-summary {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.checker-output-section {
  display: grid;
  gap: 0.75rem;
}

.checker-hmac-output,
.checker-bytes-output {
  display: grid;
  gap: 0.85rem;
  max-height: 32rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.checker-hmac-round,
.checker-byte-group {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0.45rem;
  background: #091c27;
}

.checker-hmac-round h4,
.checker-byte-group h4 {
  margin: 0;
  overflow-wrap: anywhere;
  color: #f6fbff;
  font-size: 0.82rem;
}

.checker-byte-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(2rem, 1fr));
  gap: 0.25rem;
}

.checker-byte-grid code,
.checker-byte-group code {
  color: #c8dce8;
}

.checker-byte-grid code {
  display: grid;
  place-items: center;
  min-height: 1.8rem;
  border-radius: 0.25rem;
  background: #12303f;
  font-size: 0.72rem;
}

.checker-byte-grid.decimal code {
  color: #e5f7ff;
}

.checker-byte-group > div {
  display: grid;
  grid-template-columns: 1.5rem minmax(8rem, 1fr) minmax(10rem, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.checker-byte-group span {
  color: var(--muted);
  font-weight: 900;
}

.checker-byte-group strong {
  color: #f6fbff;
}

.checker-output-section pre,
#checkerJson {
  max-height: 34rem;
  overflow: auto;
  padding: 1rem;
  margin: 0;
  border-radius: 0.45rem;
  background: #091c27;
  color: #e5f7ff;
  font-size: 0.78rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

#activeServerHashStatus {
  display: block;
  max-width: 26rem;
  overflow-wrap: anywhere;
}

.checker-roll-visual {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  min-height: 12rem;
}

.checker-roll-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: #c6d9e4;
  font-weight: 900;
  text-align: center;
}

.checker-roll-track {
  position: relative;
  height: 1.4rem;
  border-radius: 999px;
  background: #2e4556;
  box-shadow: inset 0 0 0 0.35rem #213847;
}

.checker-roll-fill {
  position: absolute;
  inset: 0.42rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
}

.checker-roll-marker {
  position: absolute;
  top: -1.6rem;
  translate: -50% 0;
  min-width: 3.25rem;
  padding: 0.45rem;
  border-radius: 0.55rem;
  background: #f4f7fb;
  color: #079b46;
  text-align: center;
  font-weight: 900;
}

.checker-dart-visual,
.checker-case-visual,
.checker-tarot-visual,
.checker-poker-visual,
.checker-raw-result {
  display: grid;
  place-items: center;
  gap: 0.85rem;
  min-height: 15rem;
}

.checker-dart-board {
  position: relative;
  width: min(18rem, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #102432 0 34%, #17313f 35% 58%, #ffc20e 59% 62%, #fa5a23 63% 64%, #102432 65% 100%);
  box-shadow: inset 0 0 0 0.7rem #2e4556, inset 0 0 0 1.3rem #0d2330;
}

.checker-dart-band,
.checker-dart-bull,
.checker-dart-dot,
.checker-dart-marker {
  position: absolute;
  border-radius: 50%;
}

.checker-dart-bull {
  left: 50%;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  translate: -50% -50%;
  background: var(--accent);
}

.checker-dart-dot {
  left: 50%;
  top: 50%;
  width: 0.22rem;
  height: 0.22rem;
  translate: -50% -50%;
  background: #0b2014;
}

.checker-dart-marker {
  left: var(--dart-x);
  top: var(--dart-y);
  width: 1rem;
  height: 1rem;
  translate: -50% -50%;
  background: #f4f7fb;
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25), 0 0.35rem 0.8rem rgba(0, 0, 0, 0.35);
}

.checker-case-box {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 9rem;
  border-radius: 0.7rem;
  background: linear-gradient(180deg, #2d8eff, #0a5bd3);
  box-shadow: inset 0 0 0 0.45rem #9fc9ff, inset 0 0 0 0.85rem #174c93;
}

.checker-case-box span {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.25rem;
  background: #ffc20e;
}

.checker-case-box strong {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: #17313f;
}

.checker-tarot-visual {
  grid-template-columns: repeat(3, minmax(4.5rem, 1fr));
}

.checker-tarot-visual > strong {
  grid-column: 1 / -1;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: #0d2330;
}

.checker-tarot-card {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 9rem;
  border-radius: 0.55rem;
  background: linear-gradient(180deg, #f8b62d, #f06e1f);
  color: #10212c;
  font-weight: 900;
}

.checker-tarot-card:first-child,
.checker-tarot-card:nth-child(3) {
  background: linear-gradient(180deg, #6f8fa1, #294454);
  color: #f6fbff;
}

.checker-bars-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  width: min(28rem, 100%);
}

.checker-bar-cell {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  min-height: 4rem;
  border: 1px solid #315166;
  border-radius: 0.35rem;
  background: #1d3747;
  color: #c8dce8;
  font-weight: 900;
}

.checker-bar-cell.selected {
  background: #00c83a;
  color: #05140b;
}

.checker-bar-cell span {
  justify-self: start;
  padding-left: 0.35rem;
  color: inherit;
  opacity: 0.72;
  font-size: 0.72rem;
}

.checker-poker-visual {
  justify-items: stretch;
}

.checker-poker-visual > span,
.checker-poker-visual small {
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.checker-card-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(3rem, 1fr));
  gap: 0.45rem;
}

.checker-card {
  display: grid;
  place-items: center;
  min-height: 4.8rem;
  border-radius: 0.35rem;
  background: #f4f7fb;
  color: #10212c;
  font-weight: 900;
}

.checker-card.red {
  color: #d7244f;
}

.checker-raw-result strong {
  overflow-wrap: anywhere;
  font-size: 1.2rem;
}

.checker-simple-visual,
.checker-grid-visual {
  display: grid;
  place-items: center;
  gap: 0.85rem;
  min-height: 15rem;
  text-align: center;
}

.checker-simple-visual > span,
.checker-grid-visual > strong {
  color: var(--muted);
  font-weight: 900;
}

.checker-simple-visual > strong {
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  color: var(--accent);
}

.checker-simple-visual small {
  color: #c8dce8;
  font-weight: 800;
}

.checker-chip-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 100%;
}

.checker-chip-row code {
  border-radius: 999px;
  background: #2e4556;
  color: #f6fbff;
  padding: 0.35rem 0.55rem;
  font-weight: 900;
}

.checker-mini-grid {
  display: grid;
  gap: 0.35rem;
  width: min(30rem, 100%);
}

.checker-mini-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.checker-mini-grid.six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.checker-mini-grid.keno {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.checker-mini-cell,
.checker-step {
  display: grid;
  place-items: center;
  min-height: 2.5rem;
  border: 1px solid #315166;
  border-radius: 0.35rem;
  background: #1d3747;
  color: #c8dce8;
  font-weight: 900;
}

.checker-mini-cell.selected,
.checker-step.selected {
  background: #00c83a;
  color: #06150b;
}

.checker-mini-cell.danger,
.checker-step.danger {
  background: #315166;
  color: #f6fbff;
}

.checker-mini-cell.hit {
  box-shadow: inset 0 0 0 0.2rem var(--accent);
}

.checker-step-visual {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.35rem;
  width: min(30rem, 100%);
}

.checker-simple-visual.roulette strong {
  display: grid;
  place-items: center;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  color: #fff;
  background: #171f29;
}

.checker-simple-visual.roulette.red strong {
  background: #d7244f;
}

.checker-simple-visual.roulette.black strong {
  background: #10212c;
}

.checker-simple-visual.roulette.green strong {
  background: #00c83a;
  color: #06150b;
}

.my-bets-detail-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.my-bets-detail-actions a[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.footer {
  max-width: 1540px;
  margin: 0 auto;
  padding: 0 2.5rem 2.5rem;
}

@media (max-width: 980px) {
  .sidebar {
    position: static;
    width: auto;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0.85rem;
  }

  .sidebar-nav {
    grid-auto-flow: column;
    overflow-x: auto;
  }

  .sidebar-footer {
    display: none;
  }

  .main-content {
    width: 100%;
    margin-left: 0;
    padding: 1rem;
  }

  .seo-hero {
    grid-template-columns: 1fr;
  }

  .affiliate-banner-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .stake-affiliate-banner {
    width: 100%;
  }

  .stake-affiliate-banner img {
    width: min(100%, 20rem);
  }

  .seo-hero h1 {
    font-size: 2.05rem;
  }

  .seo-hero-media {
    min-height: 13rem;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .guide-topbar,
  .dashboard-header,
  .library-toolbar,
  .selected-game-header,
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .guide-topbar nav {
    justify-content: flex-start;
  }

  .guide-hero,
  .search-intent-panel,
  .guide-content-grid {
    grid-template-columns: 1fr;
  }

  .guide-sidebar-card {
    position: static;
  }

  .session-strip {
    justify-content: flex-start;
  }

  .simulator-grid,
  .advanced-grid,
  .metrics-panel {
    grid-template-columns: 1fr;
  }

  .my-bets-topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .my-bets-layout {
    grid-template-columns: 1fr;
  }

  .checker-layout {
    grid-template-columns: 1fr;
  }

  .checker-result-layout,
  .checker-form {
    grid-template-columns: 1fr;
  }

  .my-bets-sidebar {
    order: -1;
  }

  .my-bets-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .sidebar-brand div:not(.brand-mark),
  .sidebar-nav a span:not(.nav-icon) {
    display: none;
  }

  .brand-logo {
    width: 2.4rem;
    height: 2.4rem;
  }

  .seo-hero {
    padding: 1rem;
  }

  .seo-hero h1 {
    font-size: 1.72rem;
  }

  .hero-actions .button {
    width: 100%;
    text-align: center;
  }

  .guide-main,
  .guide-footer {
    width: min(100% - 1rem, 1180px);
  }

  .guide-hero,
  .guide-copy,
  .guide-faq,
  .related-guides,
  .search-intent-panel {
    padding: 0.9rem;
  }

  .guide-key-table th,
  .guide-key-table td {
    display: block;
    width: 100%;
  }

  .game-grid {
    grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  }

  .game-card {
    grid-template-rows: 6rem auto;
  }

  .session-strip label {
    width: 100%;
  }

  .my-bets-detail-grid {
    grid-template-columns: 1fr;
  }

  .checker-byte-group > div {
    grid-template-columns: 1rem 1fr;
  }

  .checker-byte-group code {
    grid-column: 2;
  }

  .checker-card-row {
    grid-template-columns: repeat(5, minmax(2.4rem, 1fr));
  }
}
