:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #f0f3fa;
  --text: #161b2c;
  --muted: #6f778c;
  --border: #e4e8f1;
  --primary: #5267ff;
  --primary-dark: #394cdc;
  --purple: #8d5cff;
  --orange: #ff8a4c;
  --cyan: #27b7d3;
  --green: #25c26e;
  --facebook: #1877f2;
  --shadow-sm: 0 10px 28px rgba(27, 38, 78, 0.08);
  --shadow-lg: 0 24px 70px rgba(27, 38, 78, 0.14);
  --font: "Plus Jakarta Sans", sans-serif;
  --container: 1180px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

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:
    radial-gradient(circle at 4% 7%, rgba(82, 103, 255, 0.08), transparent 24%),
    radial-gradient(circle at 95% 4%, rgba(255, 138, 76, 0.08), transparent 22%),
    var(--bg);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

a {
  color: inherit;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 96px 0;
}

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

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  border-radius: 10px;
  color: white;
  background: var(--primary);
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  border-bottom: 1px solid rgba(228, 232, 241, 0.9);
  background: rgba(246, 247, 251, 0.84);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-logo {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(82, 103, 255, 0.1), rgba(141, 92, 255, 0.06)),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.brand-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.67rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.main-nav > a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.main-nav > a:hover {
  color: var(--primary);
}

.header-chat {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 16px;
  border: 1px solid rgba(82, 103, 255, 0.16);
  border-radius: 14px;
  color: var(--primary);
  background: rgba(82, 103, 255, 0.07);
  font-size: 0.79rem;
  font-weight: 800;
  cursor: pointer;
}

.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(37, 194, 110, 0.12);
  animation: statusPulse 2.2s infinite;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 92px 0 78px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  align-items: center;
  gap: 72px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(82, 103, 255, 0.13);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(82, 103, 255, 0.06);
  font-size: 0.74rem;
  font-weight: 800;
}

.hero h1 {
  max-width: 720px;
  margin: 22px 0 0;
  font-size: clamp(3.1rem, 6.7vw, 6.1rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, var(--primary), var(--purple), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy > p {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 16px;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--purple));
  box-shadow: 0 15px 34px rgba(82, 103, 255, 0.24);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 18px 42px rgba(82, 103, 255, 0.3);
}

.button-secondary {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
  border-color: rgba(82, 103, 255, 0.25);
}

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

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 38px;
}

.trust-row > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 0.8rem;
}

.trust-icon-blue {
  color: var(--primary);
  background: rgba(82, 103, 255, 0.09);
}

.trust-icon-purple {
  color: var(--purple);
  background: rgba(141, 92, 255, 0.09);
}

.trust-icon-orange {
  color: var(--orange);
  background: rgba(255, 138, 76, 0.11);
}

.trust-row > div > span:last-child {
  display: flex;
  flex-direction: column;
}

.trust-row strong {
  font-size: 0.76rem;
}

.trust-row small {
  color: var(--muted);
  font-size: 0.65rem;
}

.hero-dashboard {
  position: relative;
  min-height: 530px;
  display: grid;
  place-items: center;
}

.dashboard-card {
  position: relative;
  width: min(430px, 88vw);
  min-height: 480px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
}

.dashboard-card::before {
  content: "";
  position: absolute;
  inset: 14px;
  pointer-events: none;
  border: 1px dashed rgba(82, 103, 255, 0.12);
  border-radius: 26px;
}

.dashboard-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.dashboard-top > div {
  display: flex;
  flex-direction: column;
}

.dashboard-top span:first-child {
  color: var(--muted);
  font-size: 0.68rem;
}

.dashboard-top strong {
  font-size: 1rem;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #17804a;
  background: rgba(37, 194, 110, 0.09);
  font-size: 0.68rem;
  font-weight: 800;
}

.dashboard-logo {
  position: relative;
  z-index: 2;
  height: 240px;
  display: grid;
  place-items: center;
}

.dashboard-logo::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(82, 103, 255, 0.16), rgba(141, 92, 255, 0.08) 45%, transparent 70%);
}

.dashboard-logo img {
  position: relative;
  z-index: 2;
  width: 190px;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(26, 39, 92, 0.14));
}

.dashboard-search {
  position: relative;
  z-index: 2;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.75rem;
}

.dashboard-search i {
  color: var(--primary);
}

.dashboard-mini-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 13px;
}

.dashboard-mini-grid > div {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--muted);
  background: white;
  font-size: 0.65rem;
}

.dashboard-mini-grid i {
  color: var(--primary);
  font-size: 0.95rem;
}

.floating-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  font-size: 0.72rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.floating-badge i {
  color: var(--primary);
}

.floating-badge-one {
  left: -12px;
  bottom: 82px;
  animation: floatBadge 5s infinite ease-in-out;
}

.floating-badge-two {
  top: 95px;
  right: -22px;
  animation: floatBadge 5.8s infinite ease-in-out reverse;
}

/* Quick cards */
.quick-section {
  padding: 0 0 60px;
}

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

.quick-card {
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.quick-card:hover:not(:disabled) {
  transform: translateY(-3px);
  border-color: rgba(82, 103, 255, 0.22);
  box-shadow: 0 14px 34px rgba(27, 38, 78, 0.11);
}

.quick-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  font-size: 1.08rem;
}

.quick-icon-chat {
  color: white;
  background: linear-gradient(145deg, var(--primary), var(--purple));
}

.quick-icon-whatsapp {
  color: white;
  background: var(--green);
}

.quick-icon-phone {
  color: white;
  background: var(--orange);
}

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

.quick-copy small {
  color: var(--muted);
  font-size: 0.67rem;
}

.quick-copy strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-card > i {
  color: var(--muted);
  font-size: 0.72rem;
}

/* Sections */
.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-header > div:first-child {
  max-width: 680px;
}

.section-kicker {
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-header h2,
.rules-copy h2 {
  margin: 9px 0 12px;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-header p,
.rules-copy > p {
  margin: 0;
  color: var(--muted);
}

.centered {
  justify-content: center;
  text-align: center;
}

/* Games */
.games-section {
  background: linear-gradient(180deg, transparent, rgba(82, 103, 255, 0.025), transparent);
}

.search-box {
  width: min(390px, 100%);
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 13px 0 17px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: rgba(82, 103, 255, 0.38);
  box-shadow: 0 0 0 4px rgba(82, 103, 255, 0.07);
}

.search-box > i {
  color: var(--primary);
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.search-box input::placeholder {
  color: #9299aa;
}

.clear-search {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: var(--surface-soft);
  cursor: pointer;
}

.filter-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 34px 0 20px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--primary);
  color: white;
  background: var(--primary);
}

.result-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.72rem;
}

.result-count strong {
  color: var(--primary);
}

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

.game-card {
  position: relative;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(82, 103, 255, 0.22);
  box-shadow: 0 18px 46px rgba(27, 38, 78, 0.13);
}

.game-art {
  position: relative;
  min-height: 132px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 19px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, rgba(82, 103, 255, 0.12), rgba(141, 92, 255, 0.08));
}

.game-card[data-accent="orange"] .game-art {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, rgba(255, 138, 76, 0.16), rgba(255, 190, 92, 0.09));
}

.game-card[data-accent="cyan"] .game-art {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, rgba(39, 183, 211, 0.16), rgba(82, 103, 255, 0.08));
}

.game-card[data-accent="green"] .game-art {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.9), transparent 34%),
    linear-gradient(145deg, rgba(37, 194, 110, 0.16), rgba(39, 183, 211, 0.08));
}

.game-art img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 10px 14px rgba(28, 40, 84, 0.14));
  transition: transform 0.22s ease;
}

.game-card:hover .game-art img {
  transform: scale(1.07);
}

.game-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.58rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.game-content {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

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

.game-copy strong {
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.game-copy small {
  color: var(--muted);
  font-size: 0.65rem;
}

.game-open {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: var(--primary);
  background: rgba(82, 103, 255, 0.08);
  font-size: 0.7rem;
}

.game-card.pending {
  opacity: 0.62;
}

.empty-state {
  max-width: 520px;
  margin: 42px auto 0;
  padding: 44px 24px;
  border: 1px dashed rgba(82, 103, 255, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 18px;
  color: var(--primary);
  background: rgba(82, 103, 255, 0.08);
  font-size: 1.25rem;
}

.empty-state h3 {
  margin: 15px 0 4px;
}

.empty-state p {
  margin: 0 0 22px;
  color: var(--muted);
}

/* Rules */
.rules-section {
  background: #eef1f8;
}

.rules-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

.rules-preview-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.preview-header span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 800;
}

.preview-header i {
  color: var(--primary);
}

.preview-header small {
  color: var(--muted);
}

.rules-image {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: white;
  cursor: zoom-in;
}

.rules-image img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.rules-image:hover img {
  transform: scale(1.012);
}

.rules-image > span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: rgba(22, 27, 44, 0.8);
  backdrop-filter: blur(10px);
}

.rules-points {
  display: grid;
  gap: 14px;
  margin: 28px 0 30px;
}

.rules-points > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rules-points > div > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  color: var(--primary);
  background: rgba(82, 103, 255, 0.08);
  font-size: 0.7rem;
}

.rules-points p {
  display: flex;
  flex-direction: column;
  margin: 0;
}

.rules-points strong {
  font-size: 0.8rem;
}

.rules-points small {
  color: var(--muted);
  font-size: 0.68rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  max-width: 940px;
  margin: 42px auto 0;
}

.contact-card {
  min-width: 0;
  min-height: 122px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 19px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-card:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: rgba(82, 103, 255, 0.22);
  box-shadow: 0 16px 38px rgba(27, 38, 78, 0.11);
}

.contact-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: white;
  font-size: 1.2rem;
}

.contact-chat {
  background: linear-gradient(145deg, var(--primary), var(--purple));
}

.contact-facebook {
  background: var(--facebook);
}

.contact-whatsapp {
  background: var(--green);
}

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

.contact-copy small {
  color: var(--primary);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-copy strong {
  overflow: hidden;
  font-size: 0.96rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.71rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-card > i {
  color: var(--muted);
  font-size: 0.72rem;
}

/* Notice */
.notice {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 138, 76, 0.13);
  border-bottom: 1px solid rgba(255, 138, 76, 0.13);
  background: rgba(255, 138, 76, 0.05);
}

.notice-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #76543f;
  font-size: 0.76rem;
}

.notice-inner > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.notice-inner i {
  color: var(--orange);
}

.notice-inner a {
  color: #b45c29;
  font-weight: 800;
}

/* Footer */
.footer {
  padding: 60px 0 110px;
  background: #161b2c;
  color: white;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr 0.65fr;
  gap: 46px;
}

.footer .brand-logo {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.footer .brand-copy small {
  color: #9fa7bd;
}

.footer-brand p {
  max-width: 430px;
  margin: 18px 0 0;
  color: #9fa7bd;
  font-size: 0.8rem;
}

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

.footer-links > strong,
.footer-social > strong {
  margin-bottom: 4px;
  font-size: 0.86rem;
}

.footer-links a {
  color: #9fa7bd;
  font-size: 0.75rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

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

.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: #c5cbdb;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #7f879d;
  font-size: 0.7rem;
}

/* Dialog */
.rule-dialog {
  width: min(920px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  overflow: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-lg);
}

.rule-dialog::backdrop {
  background: rgba(18, 23, 40, 0.72);
  backdrop-filter: blur(7px);
}

.dialog-toolbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.dialog-toolbar button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  cursor: pointer;
}

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

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

.toast {
  max-width: 350px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 15px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-lg);
  font-size: 0.78rem;
  animation: toastIn 0.24s ease both;
}

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

/* Mobile dock */
.mobile-dock {
  display: none;
}

/* Animations */
@keyframes statusPulse {
  0%,
  100% {
    box-shadow: 0 0 0 5px rgba(37, 194, 110, 0.1);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(37, 194, 110, 0.025);
  }
}

@keyframes floatBadge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

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

/* Responsive */
@media (max-width: 1050px) {
  .hero-grid {
    gap: 38px;
  }

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

  .floating-badge-one {
    left: 0;
  }

  .floating-badge-two {
    right: 0;
  }
}

@media (max-width: 860px) {
  .section {
    padding: 76px 0;
  }

  .menu-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 20px;
    right: 20px;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.2s ease,
      visibility 0.2s ease,
      transform 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .main-nav > a,
  .header-chat {
    min-height: 46px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    border-radius: 12px;
  }

  .main-nav > a:hover {
    background: var(--surface-soft);
  }

  .header-chat {
    margin-top: 4px;
  }

  .hero {
    padding-top: 64px;
  }

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

  .hero-copy {
    text-align: center;
  }

  .hero-copy > p {
    margin-inline: auto;
  }

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

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

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

  .search-box {
    width: 100%;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 62px 0;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 15px;
  }

  .brand-logo img {
    width: 37px;
    height: 37px;
  }

  .brand-copy small {
    display: none;
  }

  .hero {
    padding: 52px 0 46px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 15vw, 4.7rem);
  }

  .hero-copy > p {
    font-size: 0.94rem;
  }

  .hero-actions {
    flex-direction: column;
  }

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

  .trust-row {
    gap: 14px 18px;
  }

  .hero-dashboard {
    min-height: 450px;
  }

  .dashboard-card {
    min-height: 408px;
    padding: 22px;
    border-radius: 28px;
  }

  .dashboard-logo {
    height: 200px;
  }

  .dashboard-logo img {
    width: 155px;
    max-height: 155px;
  }

  .dashboard-logo::before {
    width: 180px;
    height: 180px;
  }

  .floating-badge {
    padding: 10px 12px;
    font-size: 0.66rem;
  }

  .floating-badge-one {
    left: -4px;
    bottom: 26px;
  }

  .floating-badge-two {
    top: 58px;
    right: -4px;
  }

  .section-header h2,
  .rules-copy h2 {
    font-size: 2.42rem;
  }

  .filter-row {
    align-items: stretch;
  }

  .filter-chip {
    flex: 1 1 auto;
  }

  .result-count {
    width: 100%;
    margin: 7px 0 0;
  }

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

  .game-card {
    min-height: auto;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
  }

  .game-art {
    min-height: 88px;
  }

  .game-art img {
    width: 66px;
    height: 66px;
  }

  .game-content {
    margin-top: 0;
  }

  .game-badge {
    display: none;
  }

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

  .notice-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .footer {
    padding-bottom: 112px;
  }

  .toast-area {
    left: 14px;
    right: 14px;
    bottom: 92px;
  }

  .toast {
    max-width: none;
  }

  .mobile-dock {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 180;
    display: grid;
    grid-template-columns: 1fr 82px 1fr;
    align-items: end;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 50px rgba(27, 38, 78, 0.18);
    backdrop-filter: blur(18px);
  }

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

  .mobile-chat {
    cursor: pointer;
  }

  .mobile-chat-bubble {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-top: -28px;
    border: 5px solid white;
    border-radius: 50%;
    color: white;
    background: linear-gradient(145deg, var(--primary), var(--purple));
    box-shadow: 0 12px 25px rgba(82, 103, 255, 0.3);
  }

  .mobile-chat > span:last-child {
    color: var(--text);
    font-weight: 800;
  }
}

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

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