:root {
  --ink: #07111f;
  --ink-2: #0d1c2f;
  --green: #0b7a53;
  --green-2: #0f9a67;
  --gold: #f7b731;
  --card: #fff8ec;
  --red: #e63946;
  --white: #ffffff;
  --text: #f5f8fb;
  --muted: #bdd0dc;
  --body: #243244;
  --line: rgba(255, 248, 236, 0.18);
  --line-dark: rgba(7, 17, 31, 0.14);
  --shadow: 0 18px 48px rgba(7, 17, 31, 0.22);
  --container: 1180px;
  --article: 900px;
  --radius: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--gold);
}

img {
  max-width: 100%;
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.skip-link:focus {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 10000;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: var(--ink);
  background: var(--gold);
  border-radius: var(--radius);
}

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(11, 122, 83, 0.18) 0, rgba(7, 17, 31, 0) 440px),
    linear-gradient(90deg, rgba(255, 248, 236, 0.04) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 88px 88px, auto;
}

.section-inner,
.header-inner,
.footer-inner {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 17, 31, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-branding {
  flex: 0 0 auto;
  max-width: 210px;
}

.brand-link,
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo,
.custom-logo-link img,
.site-branding img,
.brand-logo img,
.brand-logo-img,
.footer-brand img {
  display: block;
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 56px;
  object-fit: contain;
}

.footer-brand img {
  max-width: 150px;
  max-height: 48px;
}

.primary-navigation {
  flex: 1 1 auto;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.primary-menu a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 11px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease, background-color 180ms ease;
}

.primary-menu a:hover,
.primary-menu a:focus-visible {
  color: var(--card);
  background: rgba(255, 248, 236, 0.08);
}

.header-action,
.button,
.search-form button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.header-action,
.button-primary,
.search-form button {
  color: var(--ink);
  background: var(--gold);
  box-shadow: 0 10px 28px rgba(247, 183, 49, 0.22);
}

.button-secondary {
  color: var(--card);
  background: rgba(255, 248, 236, 0.08);
  border-color: var(--line);
}

.header-action:hover,
.button-primary:hover,
.search-form button:hover,
.header-action:focus-visible,
.button-primary:focus-visible,
.search-form button:focus-visible {
  color: var(--ink);
  background: #ffd063;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  color: var(--card);
  background: rgba(11, 122, 83, 0.45);
  border-color: rgba(255, 248, 236, 0.35);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  color: var(--card);
  background: rgba(255, 248, 236, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.menu-toggle span:not(.screen-reader-text) {
  width: 20px;
  height: 2px;
  display: block;
  background: currentColor;
}

.hero-section {
  padding: 48px 0 64px;
}

.hero-grid,
.two-column,
.app-grid,
.rules-grid,
.faq-grid,
.page-hero-grid,
.app-page-grid,
.contact-grid,
.safety-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 34px;
  align-items: center;
}

.hero-copy h1,
.page-hero h1,
.single-header h1,
.archive-hero h1,
.not-found h1 {
  margin: 16px 0 16px;
  font-size: 3rem;
  line-height: 1.08;
  letter-spacing: 0;
  max-width: 780px;
}

.hero-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: center;
}

.hero-title-row h1 {
  margin: 16px 0;
}

.hero-title-image {
  width: 150px;
  aspect-ratio: 7 / 5;
  object-fit: cover;
  border: 1px solid rgba(255, 248, 236, 0.22);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.hero-subtitle,
.page-hero p,
.archive-hero p,
.single-header p,
.not-found p {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
}

.compliance-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compliance-line span,
.kicker,
.card-index {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.compliance-line span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(247, 183, 49, 0.36);
  border-radius: var(--radius);
  background: rgba(247, 183, 49, 0.08);
}

.hero-actions,
.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-visual,
.page-hero-image {
  position: relative;
}

.hero-img,
.page-img,
.tab-image,
.rules-image,
.safe-image,
.faq-image,
.download-image {
  display: block;
  width: 100%;
  aspect-ratio: 70 / 46;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-band {
  background: var(--card);
  color: var(--ink);
}

.section-band .kicker {
  color: var(--green);
}

.section-band p,
.section-band small {
  color: var(--body);
}

section {
  scroll-margin-top: 90px;
}

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2,
.overview-panel h2,
.feature-stack h2,
.game-tabs h2,
.start-timeline h2,
.rules-grid h2,
.safety-section h2,
.brand-article h2,
.faq-section h2,
.page-module h2 {
  margin: 8px 0 10px;
  font-size: 2rem;
  line-height: 1.18;
  letter-spacing: 0;
}

.split-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 24px;
  align-items: end;
}

.quick-access,
.app-experience,
.start-timeline,
.safety-section,
.lookup-table,
.faq-section {
  padding: 70px 0;
}

.brand-overview,
.game-tabs,
.rules-snapshot,
.reviews-section,
.brand-article,
.page-module,
.page-article-wrap,
.archive-hero,
.not-found {
  padding: 70px 0;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.quick-card {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(7, 17, 31, 0.08);
  transition: border-color 180ms ease, background-color 180ms ease;
}

.quick-card:hover,
.quick-card:focus-visible {
  color: var(--ink);
  border-color: var(--green);
  background: #f4fff8;
}

.quick-card strong {
  font-size: 1.05rem;
}

.quick-card small {
  display: block;
  font-size: 0.88rem;
}

.tone-2 {
  background: #f4fbf8;
}

.tone-3 {
  background: #fff3d5;
}

.overview-panel,
.responsible-note,
.phone-shell,
.feature-list > div,
.tab-panel,
.timeline > div,
.rule-cards article,
.safety-list div,
.review-grid article,
.contact-card,
.notice-grid article,
.source-cards div,
.download-steps div,
.faq-category,
.listing-card,
.empty-state,
.single-content,
.page-article-content,
.article-shell {
  border-radius: var(--radius);
}

.overview-panel {
  padding: 34px;
  background: rgba(255, 248, 236, 0.08);
  border: 1px solid var(--line);
}

.responsible-note {
  padding: 28px;
  color: var(--ink);
  background: var(--gold);
}

.responsible-note p {
  margin-bottom: 0;
}

.phone-shell {
  padding: 14px;
  background: #050a12;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.large-phone {
  max-width: 520px;
  margin-inline: auto;
}

.phone-image {
  display: block;
  width: 100%;
  aspect-ratio: 70 / 46;
  object-fit: cover;
  border-radius: 6px;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list > div {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  column-gap: 12px;
  padding: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
}

.feature-list span,
.safety-list span,
.checklist span {
  width: 14px;
  height: 14px;
  margin-top: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 4px var(--gold);
}

.feature-list p,
.feature-list strong {
  grid-column: 2;
  margin: 0;
}

.tabs {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 248, 236, 0.06);
}

.section-band .tabs {
  border-color: var(--line-dark);
  background: var(--white);
}

.tab-buttons {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.section-band .tab-buttons {
  border-bottom-color: var(--line-dark);
}

.tab-buttons button {
  min-height: 48px;
  flex: 1 0 auto;
  padding: 12px 18px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--line);
  cursor: pointer;
  font-weight: 800;
}

.section-band .tab-buttons button {
  color: var(--body);
  border-right-color: var(--line-dark);
}

.tab-buttons button[aria-selected="true"] {
  color: var(--ink);
  background: var(--gold);
}

.tab-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: center;
  padding: 28px;
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel a {
  color: var(--gold);
  font-weight: 800;
}

.section-band .tab-panel a,
.page-tabs .tab-panel a {
  color: var(--green);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.timeline > div {
  min-height: 220px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line-dark);
}

.timeline span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--green);
  font-weight: 900;
}

.rule-cards,
.review-grid,
.safety-list,
.flow-grid,
.rules-note-grid,
.safety-centre-grid,
.faq-category-grid,
.notice-grid,
.source-cards,
.download-steps {
  display: grid;
  gap: 14px;
}

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

.rule-cards article,
.review-grid article,
.notice-grid article,
.source-cards div,
.download-steps div,
.listing-card,
.empty-state {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  color: var(--ink);
}

.rules-image {
  margin-top: 18px;
}

.safety-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
}

.safety-list {
  grid-template-columns: 1fr;
}

.safety-list div,
.checklist div {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font-weight: 800;
}

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

.review-grid article {
  background: #f4fbf8;
}

.review-grid p {
  margin: 0;
  color: var(--body);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  color: var(--ink);
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-dark);
  vertical-align: top;
}

th {
  background: #e8f5ef;
  color: var(--green);
}

td a {
  color: var(--green);
  font-weight: 800;
}

.brand-article {
  background: #f7fbf9;
  color: var(--ink);
}

.article-shell,
.page-article-content,
.single-content {
  max-width: var(--article);
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line-dark);
  box-shadow: 0 12px 28px rgba(7, 17, 31, 0.08);
}

.article-shell h2:first-child,
.page-article-content h2:first-child {
  margin-top: 0;
}

.article-shell p,
.page-article-content p,
.single-content p,
.article-shell li,
.page-article-content li,
.single-content li {
  color: var(--body);
}

.faq-grid {
  align-items: start;
}

.accordion,
.mini-faq,
.faq-category {
  display: grid;
  gap: 10px;
}

details {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 14px 16px;
  font-weight: 900;
  cursor: pointer;
}

details p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--body);
}

.site-footer {
  padding: 54px 0 24px;
  background: #050b14;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.8fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.footer-brand p,
.footer-contact p,
.footer-bottom p {
  color: var(--muted);
}

.footer-menu {
  display: grid;
  gap: 10px;
}

.footer-menu a {
  color: var(--card);
}

.footer-contact a {
  color: var(--gold);
  font-weight: 800;
}

.footer-bottom {
  width: min(calc(100% - 32px), var(--container));
  margin: 26px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.mobile-bottom-nav {
  display: none;
}

.floating-guide-button {
  position: fixed;
  right: 78px;
  bottom: 18px;
  z-index: 75;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 12px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(247, 183, 49, 0.98), rgba(255, 248, 236, 0.96));
  border: 1px solid rgba(255, 248, 236, 0.42);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  text-decoration: none;
}

.floating-guide-button:hover,
.floating-guide-button:focus-visible {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.42);
}

.floating-guide-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--card);
  background: var(--green);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 900;
}

.floating-guide-text {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.floating-guide-text strong {
  font-size: 0.94rem;
  letter-spacing: 0;
}

.floating-guide-text small {
  color: rgba(7, 17, 31, 0.72);
  font-size: 0.73rem;
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--gold);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.page-hero {
  padding: 48px 0 64px;
  background:
    linear-gradient(180deg, rgba(11, 122, 83, 0.2), rgba(7, 17, 31, 0)),
    var(--ink);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--gold);
}

.page-module {
  background: var(--card);
  color: var(--ink);
}

.app-page-grid {
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
}

.app-page-grid .mini-faq {
  grid-column: 1 / -1;
}

.checklist {
  display: grid;
  gap: 12px;
}

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

.flow-grid div {
  min-height: 190px;
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.flow-grid span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 50%;
  font-weight: 900;
}

.alert-panel {
  margin-top: 18px;
  padding: 16px;
  color: var(--white);
  background: var(--red);
  border-radius: var(--radius);
}

.download-steps {
  margin-top: 20px;
}

.download-steps div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.download-steps span {
  color: var(--body);
}

.card-combos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card-combos > div {
  min-height: 180px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-content: center;
  padding: 18px;
  background: #0c1a2c;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card-combos span {
  min-height: 92px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: var(--card);
  border-radius: var(--radius);
  font-weight: 900;
}

.card-combos strong {
  grid-column: 1 / -1;
  color: var(--gold);
}

.upload-visual-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.upload-visual-grid article {
  min-width: 0;
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.upload-visual-grid h3 {
  margin: 12px 0 6px;
  font-size: 1rem;
}

.upload-visual-grid p {
  margin: 0;
  color: var(--body);
  font-size: 0.95rem;
}

.upload-visual-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line-dark);
}

.rules-note-grid,
.safety-centre-grid,
.faq-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.rules-note-grid article,
.safety-centre-grid article {
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.safety-centre-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.faq-category {
  padding: 18px;
  background: #f5fbf8;
  border: 1px solid var(--line-dark);
}

.contact-grid {
  align-items: start;
}

.contact-card {
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
}

.contact-card p {
  display: grid;
  gap: 4px;
}

.contact-card a {
  color: var(--green);
  font-weight: 800;
}

.page-article-wrap {
  background: #f7fbf9;
}

.page-article-content {
  margin-inline: auto;
}

.single-header,
.archive-hero,
.not-found {
  background: var(--ink);
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 54px 0;
}

.listing-card h2 {
  margin-top: 0;
  font-size: 1.25rem;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.search-form label {
  flex: 1 1 260px;
}

.search-field {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.image-fallback {
  min-height: 280px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  color: var(--card);
  background:
    linear-gradient(135deg, rgba(11, 122, 83, 0.95), rgba(7, 17, 31, 0.96)),
    var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.image-fallback span {
  width: 120px;
  height: 160px;
  display: block;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 48px 22px 0 -8px var(--gold), -42px 28px 0 -10px rgba(255, 248, 236, 0.55);
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 1100px) {
  .quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .safety-grid,
  .rules-grid,
  .hero-grid,
  .page-hero-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body {
    padding-bottom: 150px;
  }

  .header-inner {
    justify-content: space-between;
  }

  .site-branding {
    max-width: 158px;
  }

  .custom-logo,
  .custom-logo-link img,
  .site-branding img,
  .brand-logo img,
  .brand-logo-img {
    max-width: 140px;
    max-height: 44px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .primary-navigation {
    position: absolute;
    top: 100%;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .primary-navigation.is-open {
    display: block;
  }

  .primary-menu {
    display: grid;
    gap: 4px;
  }

  .primary-menu a {
    min-height: 44px;
    justify-content: flex-start;
  }

  .header-action {
    display: none;
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-copy h1,
  .page-hero h1,
  .single-header h1,
  .archive-hero h1,
  .not-found h1 {
    font-size: 2.1rem;
    line-height: 1.12;
  }

  .hero-title-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero-title-image {
    width: min(220px, 100%);
  }

  .section-heading h2,
  .overview-panel h2,
  .feature-stack h2,
  .game-tabs h2,
  .start-timeline h2,
  .rules-grid h2,
  .safety-section h2,
  .brand-article h2,
  .faq-section h2,
  .page-module h2 {
    font-size: 1.55rem;
  }

  .split-heading,
  .app-grid,
  .two-column,
  .app-page-grid,
  .contact-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .rules-note-grid,
  .safety-centre-grid,
  .faq-category-grid,
  .listing-grid {
    grid-template-columns: 1fr;
  }

  .tab-panel {
    grid-template-columns: 1fr;
  }

  .tab-image {
    max-height: 280px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    min-height: 64px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    padding: 6px 8px 8px;
    background: rgba(5, 11, 20, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav a {
    min-height: 50px;
    display: grid;
    place-items: center;
    color: var(--card);
    font-size: 0.82rem;
    font-weight: 800;
    border-radius: var(--radius);
  }

  .mobile-bottom-nav span {
    width: 7px;
    height: 7px;
    display: block;
    background: var(--gold);
    border-radius: 50%;
  }

  .floating-guide-button {
    left: 12px;
    right: 12px;
    bottom: 78px;
    z-index: 92;
    justify-content: center;
    min-height: 58px;
    padding: 10px 14px;
    border-radius: 20px;
  }

  .floating-guide-icon {
    width: 34px;
    height: 34px;
  }

  .floating-guide-text {
    text-align: left;
  }

  .floating-guide-text strong {
    font-size: 0.96rem;
  }

  .floating-guide-text small {
    font-size: 0.72rem;
  }

  .back-to-top {
    bottom: 150px;
  }
}

@media (max-width: 640px) {
  .section-inner,
  .header-inner,
  .footer-inner,
  .footer-guide-cta,
  .footer-bottom {
    width: min(calc(100% - 24px), var(--container));
  }

  .hero-section,
  .page-hero {
    padding-bottom: 42px;
  }

  .quick-access,
  .app-experience,
  .start-timeline,
  .safety-section,
  .lookup-table,
  .faq-section,
  .brand-overview,
  .game-tabs,
  .rules-snapshot,
  .reviews-section,
  .brand-article,
  .page-module,
  .page-article-wrap,
  .archive-hero,
  .not-found {
    padding: 44px 0;
  }

  .hero-actions,
  .page-hero-actions {
    display: grid;
  }

  .button,
  .search-form button {
    width: 100%;
  }

  .quick-grid,
  .timeline,
  .flow-grid,
  .review-grid,
  .rule-cards,
  .card-combos {
    grid-template-columns: 1fr;
  }

  .quick-card,
  .timeline > div {
    min-height: 0;
  }

  .overview-panel,
  .article-shell,
  .page-article-content,
  .single-content {
    padding: 22px;
  }

  .tab-buttons button {
    min-width: 150px;
  }

  .tab-panel {
    padding: 18px;
  }

  .footer-inner {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* RummyBaazi optimisation pass */
.site-header.is-scrolled {
  background: #050b14;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.hero-section,
.quick-access,
.brand-overview,
.app-experience,
.game-tabs,
.start-timeline,
.rules-snapshot,
.safety-section,
.reviews-section,
.lookup-table,
.brand-article,
.faq-section,
.page-module,
.page-article-wrap {
  padding-top: 88px;
  padding-bottom: 88px;
}

.hero-trust-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.hero-trust-cards span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 12px;
  color: var(--card);
  background: rgba(255, 248, 236, 0.08);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 800;
}

.quick-card {
  position: relative;
  gap: 13px;
  justify-content: flex-start;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.quick-card:hover,
.quick-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(7, 17, 31, 0.14);
}

.quick-icon {
  width: 34px;
  height: 34px;
  display: inline-block;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--green) 0 52%, transparent 52%),
    linear-gradient(45deg, var(--gold) 0 48%, var(--ink) 48%);
  box-shadow: inset 0 0 0 1px rgba(7, 17, 31, 0.12);
}

.quick-card-login .quick-icon,
.quick-card-safety .quick-icon {
  background:
    radial-gradient(circle at 50% 38%, var(--gold) 0 18%, transparent 19%),
    linear-gradient(180deg, var(--ink) 0 48%, var(--green) 49%);
}

.quick-card-rules .quick-icon,
.quick-card-modes .quick-icon {
  background:
    linear-gradient(90deg, var(--card) 0 30%, var(--gold) 31% 62%, var(--green) 63%),
    var(--ink);
}

.brand-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 20px;
  align-items: stretch;
}

.brand-info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.brand-info-cards article,
.device-grid article,
.feature-grid article,
.issue-grid article,
.protection-cards article,
.rule-card-grid article,
.glossary-grid article,
.mode-hero-grid article {
  padding: 20px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.brand-info-cards h3,
.device-grid h3,
.feature-grid h3,
.issue-grid h3,
.protection-cards h3,
.rule-card-grid h3,
.mode-hero-grid h3 {
  margin-top: 0;
}

.rules-button {
  margin-top: 18px;
}

.safety-disclaimer {
  margin-top: 18px;
  padding: 16px;
  color: var(--ink);
  background: var(--gold);
  border-radius: var(--radius);
  font-weight: 800;
}

.device-grid,
.feature-grid,
.image-strip,
.issue-grid,
.protection-cards,
.rule-card-grid,
.glossary-grid,
.mode-hero-grid,
.checklist-columns {
  display: grid;
  gap: 14px;
}

.device-grid,
.mode-hero-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.feature-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 28px;
}

.feature-grid article {
  min-height: 150px;
}

.safe-check-layout,
.checklist-columns {
  margin-top: 28px;
}

.image-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.strip-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  box-shadow: 0 10px 26px rgba(7, 17, 31, 0.12);
}

.issue-grid,
.rule-card-grid,
.glossary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 28px;
}

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

.checklist-columns {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
}

.glossary-grid article {
  display: grid;
  gap: 8px;
}

.mode-hero-grid article {
  color: var(--card);
  background: rgba(255, 248, 236, 0.08);
  border-color: var(--line);
}

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

.contact-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #f7fbf9;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  font: inherit;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

.site-footer {
  padding-bottom: 28px;
}

.footer-inner {
  grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(150px, 0.75fr));
}

.footer-column {
  display: grid;
  gap: 10px;
}

.footer-column h2 {
  margin: 0 0 4px;
  color: var(--gold);
  font-size: 1rem;
}

.footer-column a {
  color: var(--card);
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--gold);
}

.footer-guide-cta {
  width: min(calc(100% - 32px), var(--container));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.65fr);
  gap: 26px;
  align-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(11, 122, 83, 0.34), rgba(7, 17, 31, 0.82)),
    #07111f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
}

.footer-guide-copy span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  color: var(--ink);
  background: var(--gold);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.footer-guide-copy h2 {
  max-width: 680px;
  margin: 14px 0 8px;
  color: var(--card);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.footer-guide-copy p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
}

.footer-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.footer-guide-actions .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 900;
}

.footer-guide-actions .btn-primary {
  color: var(--ink);
  background: var(--gold);
}

.footer-guide-actions .btn-secondary {
  color: var(--card);
  background: rgba(255, 248, 236, 0.08);
  border: 1px solid var(--line);
}

.footer-guide-media {
  display: flex;
  justify-content: flex-end;
}

.footer-guide-image {
  width: min(100%, 360px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.footer-contact-note {
  width: min(calc(100% - 32px), var(--container));
  margin: 22px auto 0;
  padding: 18px 20px;
  color: var(--card);
  background: rgba(255, 248, 236, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.footer-contact-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--gold);
  font-size: 1rem;
}

.footer-contact-note p {
  margin: 0;
  color: var(--muted);
}

.footer-contact-note a {
  color: var(--gold);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.footer-contact-note a:hover,
.footer-contact-note a:focus-visible {
  color: var(--card);
}

.footer-bottom p {
  color: var(--card);
  font-weight: 900;
  text-align: center;
}

@media (max-width: 1180px) {
  .hero-trust-cards,
  .feature-grid,
  .issue-grid,
  .rule-card-grid,
  .glossary-grid,
  .upload-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .footer-guide-cta {
    grid-template-columns: 1fr;
  }

  .footer-guide-media {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .hero-section,
  .quick-access,
  .brand-overview,
  .app-experience,
  .game-tabs,
  .start-timeline,
  .rules-snapshot,
  .safety-section,
  .reviews-section,
  .lookup-table,
  .brand-article,
  .faq-section,
  .page-module,
  .page-article-wrap {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .brand-overview-grid,
  .brand-info-cards,
  .device-grid,
  .feature-grid,
  .image-strip,
  .issue-grid,
	  .protection-cards,
	  .rule-card-grid,
	  .glossary-grid,
	  .upload-visual-grid,
	  .mode-hero-grid,
	  .checklist-columns,
	  .faq-category-wide {
	    grid-template-columns: 1fr;
	  }
}

@media (max-width: 640px) {
  .hero-trust-cards {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1,
  .single-header h1,
  .archive-hero h1,
  .not-found h1 {
    font-size: 2rem;
  }

  .section-heading h2,
  .overview-panel h2,
  .feature-stack h2,
  .game-tabs h2,
  .start-timeline h2,
  .rules-grid h2,
  .safety-section h2,
  .brand-article h2,
  .faq-section h2,
  .page-module h2 {
    font-size: 1.65rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-guide-cta {
    padding: 18px;
  }

  .footer-guide-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-guide-actions .btn {
    width: 100%;
  }
}
