/* =========================================================
   Robert Premium Slots — Red, Gold & Cream (matches the logo)
========================================================= */
:root {
  --cherry: #1a0306;       /* page background */
  --cherry-2: #120204;     /* darker bands */
  --oxblood: #3a0810;      /* panels */
  --oxblood-2: #4d0b16;    /* hover */
  --red: #c8102e;          /* slot red */
  --red-bright: #e4253b;
  --red-deep: #7d0a1a;
  --gold: #f5c518;
  --gold-light: #ffe27a;
  --gold-deep: #a8740f;
  --cream: #fbf1dc;        /* reel cream */
  --ink: #4a0610;          /* dark text on gold / cream */
  --text: #fff4dc;
  --muted: #dcb8ab;
  --line: rgba(245, 197, 24, 0.35);
  --line-soft: rgba(255, 226, 122, 0.12);
  --facebook: #2387ff;
  --whatsapp: #25d366;

  /* Kept for chat.js loader styles */
  --bg: var(--cherry);

  --display: "Alfa Slab One", Georgia, serif;
  --body: "Poppins", system-ui, sans-serif;
  --max: 1180px;
  --header-h: 74px;

  --gold-metal: linear-gradient(180deg, #fff3b0 0%, var(--gold-light) 22%, var(--gold) 55%, var(--gold-deep) 100%);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html.chatwoot-scroll-lock,
body.chatwoot-scroll-lock {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--cherry);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.center { text-align: center; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--gold);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform .2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* =========================================================
   Header
========================================================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 150;
  background: rgba(18, 2, 4, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* gold rule under the header, like the logo's rim */
  box-shadow: 0 1px 0 var(--gold-deep), 0 2px 0 rgba(0, 0, 0, .6);
}

.topbar-inner {
  max-width: var(--max);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--gold);
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.top-nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.top-nav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}

.top-nav a:hover {
  color: var(--gold);
  background: rgba(200, 16, 46, .18);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-chat {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--text);
  background: linear-gradient(180deg, var(--red-bright), var(--red-deep));
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
}

.top-chat .pulse-dot { background: var(--gold-light); box-shadow: 0 0 0 3px rgba(255, 226, 122, .25); }

.menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--gold);
  background: var(--oxblood);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  gap: 2px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 16px 16px;
}

.mobile-menu.is-open { display: grid; }

.mobile-menu a {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 500;
  text-decoration: none;
}

.mobile-menu a i {
  width: 18px;
  color: var(--gold);
  text-align: center;
}

.mobile-menu a:hover { background: var(--oxblood); }

.pulse-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4be08a;
  box-shadow: 0 0 0 3px rgba(75, 224, 138, .2);
  animation: pulse 2s infinite;
}

/* =========================================================
   Buttons
========================================================= */
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .98rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .15s ease, transform .15s ease;
}

.button:hover { filter: brightness(1.08); }
.button:active { transform: translateY(1px); }

.button-gold {
  color: var(--ink);
  background: var(--gold-metal);
  border-color: #fff3b0;
  box-shadow: 0 6px 18px rgba(245, 197, 24, .22), inset 0 -2px 0 rgba(0, 0, 0, .15);
}

.button-red {
  color: var(--text);
  background: linear-gradient(180deg, var(--red-bright), var(--red-deep));
  border-color: var(--gold);
  box-shadow: 0 6px 18px rgba(200, 16, 46, .25);
}

.button-whatsapp {
  color: #04210f;
  background: var(--whatsapp);
}

.js-chat-trigger:disabled {
  cursor: wait;
  opacity: .62;
}

/* =========================================================
   Hero
========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 72% 45%, rgba(200, 16, 46, .55), transparent 70%),
    linear-gradient(180deg, #2a0409, var(--cherry));
  border-bottom: 1px solid var(--gold-deep);
}

.hero-inner {
  max-width: var(--max);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 32px;
  margin: 0 auto;
  padding: 64px 24px 72px;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 400;
  line-height: 1.02;
  color: var(--gold);
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 var(--red-deep)) drop-shadow(0 10px 22px rgba(0, 0, 0, .45));
}

/* ---- Slot-reel bonus ---- */
.bonus {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.reels {
  display: flex;
  gap: 6px;
  padding: 7px;
  border-radius: 18px;
  background: var(--gold-metal);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .4);
}

.reel {
  width: 58px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, .28), transparent 26%, transparent 74%, rgba(0, 0, 0, .28)),
    var(--cream);
  box-shadow: inset 0 0 0 2px var(--gold-deep);
}

.reel > span {
  display: block;
  color: var(--red);
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  text-shadow: 0 2px 0 var(--red-deep);
  animation: reelIn .9s cubic-bezier(.2, 1.4, .4, 1) both;
}

.reel:nth-child(2) > span { animation-delay: .18s; }
.reel:nth-child(3) > span { animation-delay: .36s; }

.bonus p {
  margin: 0;
  max-width: 220px;
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

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

/* ---- Logo on a sunburst ---- */
.hero-logo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(100%, 480px);
  justify-self: center;
}

.hero-logo img {
  position: relative;
  z-index: 2;
  width: 86%;
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6));
}

.rays {
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(255, 70, 90, .22) 0deg 7deg, transparent 7deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 25%, transparent 66%);
  mask-image: radial-gradient(circle, #000 25%, transparent 66%);
  animation: spin 80s linear infinite;
}

/* =========================================================
   Sections
========================================================= */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
}

.section-tight { padding-top: 48px; padding-bottom: 24px; }

.section-dark {
  max-width: none;
  background: var(--cherry-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-inner {
  max-width: calc(var(--max) - 48px);
  margin: 0 auto;
}

.sec-title {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.sec-title h2,
.plaque h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
  color: var(--gold);
}

/* gold rule with three diamonds, taken from the logo */
.sec-title h2::after {
  content: "";
  display: block;
  width: 180px;
  height: 14px;
  margin: 14px auto 0;
  background: var(--gold);
  -webkit-mask:
    linear-gradient(#000, #000) left center / 60px 1px no-repeat,
    linear-gradient(#000, #000) right center / 60px 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 14'%3E%3Cpath d='M8 7l4-4 4 4-4 4zM18 7l7-7 7 7-7 7zM34 7l4-4 4 4-4 4z'/%3E%3C/svg%3E") center / 50px 14px no-repeat;
  mask:
    linear-gradient(#000, #000) left center / 60px 1px no-repeat,
    linear-gradient(#000, #000) right center / 60px 1px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 14'%3E%3Cpath d='M8 7l4-4 4 4-4 4zM18 7l7-7 7 7-7 7zM34 7l4-4 4 4-4 4z'/%3E%3C/svg%3E") center / 50px 14px no-repeat;
}

.sec-title p {
  margin: 14px 0 0;
  color: var(--muted);
}

/* ---- Live agent plaque (shape of the logo's red banner) ---- */
.plaque {
  --cut: 18px;
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px 28px;
  padding: 26px 40px;
  /* gold edge = the outer shape; red fill = ::before inset by 2px */
  background: var(--gold-metal);
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
}

.plaque::before {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%),
    linear-gradient(90deg, var(--red-deep), var(--red) 50%, var(--red-deep));
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px));
}

.plaque-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold-metal);
  font-size: 1.4rem;
}

.plaque h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  color: var(--gold-light);
}

.plaque p {
  margin: 4px 0 0;
  color: #ffe9e0;
}

.online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  color: var(--gold-light);
  font-weight: 600;
  white-space: nowrap;
}

/* ---- Games ---- */
.games-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.search-module {
  width: min(460px, 100%);
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--oxblood);
}

.search-module:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 197, 24, .15);
}

.search-module > i { color: var(--gold); }

.search-module input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-module input::placeholder { color: #b98f86; }
.search-module input::-webkit-search-cancel-button { display: none; }

.search-module button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text);
  background: var(--oxblood-2);
  cursor: pointer;
}

.games-meta {
  margin: 0;
  color: var(--muted);
  font-size: .88rem;
}

.games-meta strong { color: var(--gold); }

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--oxblood), #24050a);
  text-align: center;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}

.game-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}

.game-art {
  width: 100%;
  aspect-ratio: 1 / .82;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background:
    radial-gradient(circle at 50% 50%, rgba(228, 37, 59, .55), transparent 70%),
    repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, .05) 0deg 10deg, transparent 10deg 20deg),
    #2a0409;
}

.game-art img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .5));
}

.game-name {
  margin-top: 4px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.game-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--gold);
  font-size: .85rem;
  font-weight: 500;
}

.game-action i { font-size: .72rem; }

.game-card.pending { opacity: .55; }
.game-card.pending .game-action { color: var(--muted); }
.game-card.pending:hover { transform: none; border-color: var(--line); }

.empty-state {
  max-width: 460px;
  margin: 24px auto 0;
  padding: 36px 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
}

.empty-state > i { color: var(--gold); font-size: 1.4rem; }
.empty-state h3 { margin: 12px 0 4px; font-size: 1.15rem; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }

/* ---- Cashout ---- */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--oxblood);
  font-weight: 500;
}

.steps span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--red);
  background: var(--cream);
  font-family: var(--display);
  font-size: .95rem;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.rule-preview {
  display: block;
  overflow: hidden;
  padding: 6px;
  border: 0;
  border-radius: 16px;
  background: var(--gold-metal);
  cursor: zoom-in;
  transition: transform .15s ease;
}

.rule-preview:hover { transform: translateY(-3px); }

.rule-preview img {
  width: 100%;
  display: block;
  border-radius: 11px;
}

/* ---- Contact ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
}

.phone-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 32px;
  border: 2px solid var(--gold);
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(228, 37, 59, .45), transparent 60%),
    var(--oxblood);
}

.phone-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 500;
}

.phone-label i { color: var(--whatsapp); font-size: 1.2rem; }

.phone-number {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.05;
  text-decoration: none;
  color: var(--gold);
  background: var(--gold-metal);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.fb-list {
  display: grid;
  gap: 16px;
}

.fb-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--oxblood);
  text-decoration: none;
  transition: border-color .15s ease;
}

.fb-link:hover { border-color: var(--gold); }

.fb-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: #fff;
  background: var(--facebook);
  font-size: 1.3rem;
}

.fb-copy {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.fb-copy strong { font-size: 1.02rem; }
.fb-copy small { color: var(--muted); font-size: .86rem; }
.fb-link > i { color: var(--gold); font-size: .8rem; }

/* ---- Why us ---- */
.proof {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 40px;
}

.proof > div {
  min-width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--oxblood);
}

.proof dt {
  font-family: var(--display);
  font-size: 2.2rem;
  line-height: 1.1;
  color: var(--gold);
}

.proof dd {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 36px;
}

.highlight {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.highlight-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--ink);
  background: var(--gold-metal);
}

.highlight h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
}

.highlight p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
}

.feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
}

.feedback p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  max-width: 620px;
  color: var(--muted);
  font-size: .88rem;
}

.feedback p i { margin-top: 4px; color: var(--gold); }

/* ---- Responsible strip ---- */
.responsible-strip {
  max-width: var(--max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 auto;
  padding: 20px 24px;
  color: var(--muted);
  font-size: .9rem;
}

.responsible-strip span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.responsible-strip i { color: var(--red-bright); }

.responsible-strip a {
  color: var(--gold);
  font-weight: 600;
}

/* =========================================================
   Footer
========================================================= */
.footer {
  border-top: 2px solid var(--gold-deep);
  background: var(--cherry-2);
}

.footer-main,
.footer-bottom {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.6fr .7fr .7fr;
  gap: 36px;
  padding-top: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-brand img {
  width: 96px;
  height: 96px;
  flex: 0 0 auto;
}

.footer-brand p {
  max-width: 340px;
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.footer-links,
.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.footer-links > strong,
.footer-social > strong {
  margin-bottom: 4px;
  color: var(--gold);
  font-family: var(--display);
  font-weight: 400;
}

.footer-links a {
  color: var(--muted);
  font-size: .92rem;
  text-decoration: none;
}

.footer-links a:hover { color: var(--gold); }

.footer-social > div { display: flex; gap: 8px; }

.footer-social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--gold);
  text-decoration: none;
}

.footer-social a:hover { background: var(--oxblood); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 36px;
  padding-top: 18px;
  padding-bottom: 36px;
  border-top: 1px solid var(--line-soft);
  color: #a98479;
  font-size: .85rem;
}

.footer-bottom p { margin: 0; }

/* =========================================================
   Dialog & toast
========================================================= */
.rule-dialog {
  width: min(900px, calc(100% - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 0;
  border: 2px solid var(--gold);
  border-radius: 18px;
  color: var(--text);
  background: var(--oxblood);
}

.rule-dialog::backdrop {
  background: rgba(10, 1, 3, .86);
  backdrop-filter: blur(6px);
}

.dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(58, 8, 16, .97);
}

.dialog-toolbar strong {
  color: var(--gold);
  font-family: var(--display);
  font-weight: 400;
}

.dialog-toolbar button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--oxblood-2);
  cursor: pointer;
}

.rule-dialog img { width: 100%; display: block; }

.toast-area {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 250;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border: 1px solid var(--gold);
  border-radius: 14px;
  background: var(--oxblood);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  font-size: .92rem;
  animation: toastIn .2s ease both;
}

.toast i { color: var(--gold); }

.mobile-dock { display: none; }

/* =========================================================
   Animations
========================================================= */
@keyframes reelIn {
  0% { transform: translateY(-260%); filter: blur(2px); }
  70% { filter: blur(0); }
  100% { transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 960px) {
  .top-nav { display: none; }
  .top-actions { margin-left: auto; }
  .menu-toggle { display: grid; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 32px;
    text-align: center;
  }

  .hero-logo {
    order: -1;
    width: min(78vw, 360px);
  }

  .bonus,
  .hero-actions { justify-content: center; }

  .plaque {
    grid-template-columns: auto 1fr;
    padding: 24px 28px;
  }

  .plaque > .button { grid-column: 1 / -1; justify-self: start; }

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

  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  :root { --header-h: 64px; }

  .topbar-inner { gap: 12px; padding: 0 14px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 1.2rem; }

  .top-chat { padding: 0 14px; }
  .top-chat .js-chat-label { display: none; }
  .top-chat::after { content: "Chat"; }

  .hero-inner { padding: 20px 16px 48px; }

  .bonus {
    flex-direction: column;
    gap: 12px;
  }

  .bonus p { max-width: none; }

  .reel { width: 52px; height: 66px; }
  .reel > span { font-size: 2.3rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }

  .section { padding: 52px 16px; }
  .section-tight { padding-top: 32px; padding-bottom: 8px; }

  .plaque {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 28px 22px;
    text-align: center;
  }

  .plaque > .button { justify-self: stretch; }
  .online { display: flex; justify-content: center; margin: 8px 0 0; }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-name { font-size: .95rem; }

  .steps { flex-direction: column; align-items: stretch; }
  .rule-grid { gap: 10px; }

  .phone-card { padding: 24px; }
  .contact-actions { width: 100%; }
  .contact-actions .button { flex: 1; }

  .proof > div { min-width: 0; flex: 1 1 100%; }
  .highlights { grid-template-columns: 1fr; gap: 22px; }

  .feedback { flex-direction: column; align-items: stretch; }

  .responsible-strip {
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
  }

  .footer-main { grid-template-columns: 1fr; gap: 28px; padding-inline: 16px; }
  .footer-brand { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; padding: 18px 16px 112px; }

  .toast-area { left: 14px; right: 14px; bottom: 96px; }
  .toast { max-width: none; }

  /* Bottom dock */
  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 190;
    display: grid;
    grid-template-columns: 1fr 84px 1fr;
    align-items: end;
    padding: 6px;
    border: 1px solid var(--gold-deep);
    border-radius: 20px;
    background: rgba(26, 3, 6, .96);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .mobile-dock > a,
  .mobile-chat {
    min-height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font-size: .75rem;
    text-decoration: none;
  }

  .mobile-dock > a i { color: var(--gold); font-size: 1.05rem; }
  .mobile-chat { cursor: pointer; }

  .mobile-chat > span {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-top: -30px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    color: var(--text);
    background: linear-gradient(180deg, var(--red-bright), var(--red-deep));
    box-shadow: 0 6px 20px rgba(200, 16, 46, .45);
    font-size: 1.2rem;
  }

  .mobile-chat small {
    color: var(--text);
    font-size: .75rem;
    font-weight: 600;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .rays { animation: none; }
}

/* =========================================================
   CHAT BUTTON STATES (set by chat.js on every .js-chat-trigger)
========================================================= */
.js-chat-trigger[data-state="connecting"] {
  cursor: progress;
  opacity: 0.9;
}

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

/* Nothing floats over the chat or its loading screen */
html.rc-chat-open .toast-area,
html.rc-loading .toast-area,
html.rc-chat-open .mobile-dock,
html.rc-loading .mobile-dock {
  display: none !important;
}

/* =========================================================
   ROCKET.CHAT — RESPONSIVE WIDGET
   html.rc-prewarm   (Chrome, Android, Firefox...): the chat is kept open
                     invisibly at full size so a tap shows it instantly.
   html.rc-safari    (iPhone/iPad/Mac Safari): no background tricks -
                     Rocket.Chat keeps its normal small size until the
                     visitor taps, because Safari can't show a chat that
                     was opened while invisible.
   html.rc-chat-open (all browsers): the chat is on screen.
========================================================= */

/* Rocket.Chat's own bubble stays hidden - the page has its own button */
html:not(.rc-chat-open) .rocketchat-widget {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Background pre-open (not Safari): keep it mounted and full size */
html.rc-prewarm:not(.rc-chat-open) .rocketchat-widget {
  opacity: 0.001 !important;
  z-index: -1 !important;
}

html.rc-chat-open .rocketchat-widget {
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 2147483000 !important;
}

html.rc-prewarm .rocketchat-widget,
html.rc-chat-open .rocketchat-widget {
  display: block !important;
  visibility: visible !important;
  position: fixed !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  bottom: env(safe-area-inset-bottom, 0px) !important;
  right: env(safe-area-inset-right, 0px) !important;
}

html.rc-prewarm .rocketchat-widget .rocketchat-container,
html.rc-prewarm .rocketchat-widget iframe,
html.rc-chat-open .rocketchat-widget .rocketchat-container,
html.rc-chat-open .rocketchat-widget iframe {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
  background: #ffffff;
}

/* ---------- Tablet (769px – 1024px) ---------- */
@media (min-width: 769px) and (max-width: 1024px) {
  html.rc-prewarm .rocketchat-widget,
  html.rc-chat-open .rocketchat-widget {
    width: min(440px, 100vw) !important;
    height: min(680px, 88vh) !important;
    height: min(680px, 88dvh) !important;
  }
}

/* ---------- Desktop (1025px+) ---------- */
@media (min-width: 1025px) {
  html.rc-prewarm .rocketchat-widget,
  html.rc-chat-open .rocketchat-widget {
    width: 400px !important;
    height: min(600px, calc(100vh - 24px)) !important;
    height: min(600px, calc(100dvh - 24px)) !important;
  }
}

/* ---------- Phones (≤768px) and phones in landscape: full screen ---------- */
@media (max-width: 768px), (max-height: 500px) and (orientation: landscape) {
  html.rc-prewarm .rocketchat-widget,
  html.rc-chat-open .rocketchat-widget {
    top: var(--rc-vtop, 0px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    height: var(--rc-vh, 100dvh) !important;
    max-height: var(--rc-vh, 100dvh) !important;
    margin: 0 !important;
    padding:
      env(safe-area-inset-top, 0px)
      env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px)
      env(safe-area-inset-left, 0px) !important;
    background: #ffffff;
    border-radius: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  html.rc-prewarm .rocketchat-widget .rocketchat-container,
  html.rc-prewarm .rocketchat-widget iframe,
  html.rc-chat-open .rocketchat-widget .rocketchat-container,
  html.rc-chat-open .rocketchat-widget iframe {
    border-radius: 0 !important;
    overflow: hidden !important;
  }

  /* iOS: stop the iframe growing wider than the screen */
  html.rc-chat-open .rocketchat-widget iframe {
    width: 1px !important;
    min-width: 100% !important;
    max-width: 100% !important;
  }

  html.rc-chat-open,
  html.rc-chat-open body {
    overflow-x: hidden !important;
  }

  html.rc-chat-open .toast-container {
    display: none;
  }
}

/* =========================================================
   CHAT LOADING SCREEN (#rcLoader, built by chat.js)
========================================================= */
.rc-loader {
  position: fixed;
  z-index: 2147483001;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image: radial-gradient(circle at 50% 35%, rgba(255,255,255,0.06) 0%, transparent 60%);
  color: var(--text);
  font-family: var(--body);
  text-align: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.rc-loader.is-visible {
  display: flex;
  animation: rcLoaderIn 0.15s ease forwards;
}

.rc-loader.is-hiding {
  animation: none;
  opacity: 0;
  pointer-events: none;
}

@keyframes rcLoaderIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.rc-loader-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem;
}

.rc-loader-spinner {
  width: 48px;
  height: 48px;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--gold);
  animation: rcSpin 0.8s linear infinite;
}

@keyframes rcSpin {
  to { transform: rotate(360deg); }
}

.rc-loader-title {
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.rc-loader-sub {
  font-size: 0.9rem;
  color: var(--muted);
}

.rc-loader-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.rc-loader-close:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

@media (min-width: 1025px) {
  .rc-loader {
    right: 0;
    bottom: 0;
    width: 400px;
    height: min(600px, calc(100dvh - 24px));
    border-radius: 16px 16px 0 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .rc-loader {
    right: 0;
    bottom: 0;
    width: min(440px, 100vw);
    height: min(680px, 88dvh);
    border-radius: 16px 16px 0 0;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.1);
  }
}

@media (max-width: 768px), (max-height: 500px) and (orientation: landscape) {
  .rc-loader {
    top: var(--rc-vtop, 0px);
    left: 0;
    right: 0;
    width: 100vw;
    height: 100dvh;
    height: var(--rc-vh, 100dvh);
    padding:
      env(safe-area-inset-top, 0px)
      env(safe-area-inset-right, 0px)
      env(safe-area-inset-bottom, 0px)
      env(safe-area-inset-left, 0px);
  }

  .rc-loader-close {
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
  }

  html.rc-loading .toast-container {
    display: none;
  }
}

/* "Taking longer than usual" backup (shown by chat.js after a few seconds) */
.rc-loader-slow {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.rc-loader.is-slow .rc-loader-slow {
  display: flex;
}

.rc-loader-alt {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

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

/* Test-mode panel (?chatdebug=1) */
.rc-debug {
  position: fixed;
  left: 6px;
  right: 6px;
  bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  z-index: 2147483647;
  margin: 0;
  padding: 6px 8px;
  max-height: 45vh;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.85);
  color: #7CFC00;
  font: 11px/1.35 Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-all;
  border-radius: 8px;
  pointer-events: none;
}
