/* 77 Online Hub — Social Casino UK. Unique prefix: h77- */
/* Fonts: Bricolage Grotesque, Outfit */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --h77-font-head: 'Bricolage Grotesque', sans-serif;
  --h77-font-body: 'Outfit', sans-serif;
  --h77-ink: #0f0f14;
  --h77-ink-soft: #2d2d3a;
  --h77-surface: #1a1a24;
  --h77-card: rgba(255, 255, 255, 0.06);
  --h77-border: rgba(255, 255, 255, 0.1);
  --h77-accent: #c084fc;
  --h77-accent-2: #f472b6;
  --h77-glow: rgba(192, 132, 252, 0.35);
  --h77-text: #e4e4eb;
  --h77-text-muted: #9ca3af;
  --h77-radius: 14px;
  --h77-radius-lg: 22px;
  --h77-header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

/* ——— Dynamic background ——— */
.h77-stage {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(160deg, #0f0f14 0%, #1a1520 40%, #14101a 100%);
}

.h77-stage__layer {
  position: absolute;
  inset: -50%;
  opacity: 0.5;
}

.h77-stage__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: h77-float 18s ease-in-out infinite;
}

.h77-stage__blob--1 {
  width: 60vmax;
  height: 60vmax;
  background: radial-gradient(circle, var(--h77-accent) 0%, transparent 70%);
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.h77-stage__blob--2 {
  width: 45vmax;
  height: 45vmax;
  background: radial-gradient(circle, var(--h77-accent-2) 0%, transparent 70%);
  bottom: -15%;
  right: -10%;
  animation-delay: -6s;
}

.h77-stage__blob--3 {
  width: 35vmax;
  height: 35vmax;
  background: radial-gradient(circle, #6366f1 0%, transparent 70%);
  top: 40%;
  left: 50%;
  animation-delay: -12s;
}

@keyframes h77-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(3%, -4%) scale(1.05); }
  66% { transform: translate(-2%, 3%) scale(0.98); }
}

/* Pulsating emojis (theme) */
.h77-emoji-float {
  position: fixed;
  z-index: -1;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  pointer-events: none;
  opacity: 0.7;
  animation: h77-pulse 2.2s ease-in-out infinite;
}

.h77-emoji-float--1 { top: 12%; left: 8%; animation-delay: 0s; }
.h77-emoji-float--2 { top: 22%; right: 12%; animation-delay: 0.4s; }
.h77-emoji-float--3 { top: 55%; left: 6%; animation-delay: 0.8s; }
.h77-emoji-float--4 { bottom: 25%; right: 8%; animation-delay: 0.2s; }
.h77-emoji-float--5 { bottom: 15%; left: 15%; animation-delay: 0.6s; }
.h77-emoji-float--6 { top: 35%; right: 25%; animation-delay: 0.3s; }
.h77-emoji-float--7 { top: 70%; right: 18%; animation-delay: 0.5s; }
.h77-emoji-float--8 { top: 45%; left: 20%; animation-delay: 0.7s; }

@keyframes h77-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 0.9; }
}

/* Container */
.h77-outer {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ——— Age gate modal ——— */
.h77-age-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 15, 20, 0.95);
  backdrop-filter: blur(8px);
  
}

.h77-age-overlay[aria-hidden="true"] {
  display: none;
}

.h77-age-box {
  background: var(--h77-surface);
  border: 1px solid var(--h77-border);
  border-radius: var(--h77-radius-lg);
  padding: 2rem;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.h77-age-box__title {
  font-family: var(--h77-font-head);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  color: var(--h77-text);
}

.h77-age-box__text {
  margin: 0 0 1.5rem;
  color: var(--h77-text-muted);
  font-size: 0.95rem;
}

.h77-age-box__btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ——— Cookie bar ——— */
.h77-cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 16px 20px;
  background: var(--h77-surface);
  border-top: 1px solid var(--h77-border);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.3);
}

.h77-cookie-bar[aria-hidden="true"] {
  display: none;
}

.h77-cookie-bar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.h77-cookie-bar__copy {
  flex: 1;
  min-width: 260px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--h77-text-muted);
}

.h77-cookie-bar__copy a {
  color: var(--h77-accent);
  text-decoration: underline;
}

.h77-cookie-bar__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Cookie settings modal */
.h77-cookie-settings {
  position: fixed;
  inset: 0;
  z-index: 9997;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 15, 20, 0.9);
  backdrop-filter: blur(6px);
}

.h77-cookie-settings[data-open="true"] {
  display: flex;
}

.h77-cookie-settings__panel {
  background: var(--h77-surface);
  border: 1px solid var(--h77-border);
  border-radius: var(--h77-radius-lg);
  padding: 1.75rem;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
}

.h77-cookie-settings__title {
  font-family: var(--h77-font-head);
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.h77-cookie-settings__row {
  margin-bottom: 1rem;
}

.h77-cookie-settings__label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 0.95rem;
}

.h77-cookie-settings__label input {
  width: 18px;
  height: 18px;
}

.h77-cookie-settings__actions {
  margin-top: 1.25rem;
  display: flex;
  gap: 10px;
}

/* ——— Header ——— */
.h77-top {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--h77-header-h);
  background: rgba(15, 15, 20, 0.85);
  border-bottom: 1px solid var(--h77-border);
  backdrop-filter: blur(12px);
}

.h77-top__in {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.h77-brand {
  font-family: var(--h77-font-head);
  font-weight: 700;
  font-size: 1rem;
  color: var(--h77-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.h77-brand:hover {
  color: var(--h77-accent);
}

.h77-brand__tag {
  font-size: 0.45rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--h77-accent), var(--h77-accent-2));
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.h77-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.h77-nav__link {
  color: var(--h77-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.h77-nav__link:hover,
.h77-nav__link[aria-current="page"] {
  color: var(--h77-text);
  background: var(--h77-card);
}

.h77-nav__link[aria-current="page"] {
  color: var(--h77-accent);
}

/* Burger: show at 991px */
.h77-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--h77-text);
  border-radius: 8px;
  transition: background 0.2s;
}

.h77-burger:hover {
  background: var(--h77-card);
}

.h77-burger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Крестик: полоски сводятся в центр (расстояние до центра = 8px при gap 6px и высоте 2px) */
.h77-burger[aria-expanded="true"] .h77-burger__bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.h77-burger[aria-expanded="true"] .h77-burger__bar:nth-child(2) {
  opacity: 0;
}

.h77-burger[aria-expanded="true"] .h77-burger__bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.h77-drawer {
  position: fixed;
  top: var(--h77-header-h);
  right: 0;
  width: 280px;
  max-width: 100%;
  height: calc(100vh - var(--h77-header-h));
  background: var(--h77-surface);
  border-left: 1px solid var(--h77-border);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99;
  overflow-y: auto;
}

.h77-drawer[data-open="true"] {
  transform: translateX(0);
}

.h77-drawer .h77-nav {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}

.h77-drawer .h77-nav__link {
  padding: 12px 16px;
  border-radius: 10px;
}

@media (max-width: 991px) {
  .h77-burger {
    display: flex;
  }
  .h77-top .h77-nav {
    display: none;
  }
}

@media (min-width: 992px) {
  .h77-drawer {
    display: none;
  }
}

/* ——— Buttons ——— */
.h77-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--h77-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.h77-btn:focus-visible {
  outline: 2px solid var(--h77-accent);
  outline-offset: 2px;
}

.h77-btn--prime {
  background: linear-gradient(135deg, var(--h77-accent), var(--h77-accent-2));
  color: #fff;
}

.h77-btn--prime:hover {
  box-shadow: 0 8px 24px var(--h77-glow);
  transform: translateY(-1px);
}

.h77-btn--second {
  background: var(--h77-card);
  color: var(--h77-text);
  border: 1px solid var(--h77-border);
}

.h77-btn--second:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ——— Hero ——— */
.h77-banner {
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.h77-banner__badge {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--h77-text-muted);
  margin-bottom: 1rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--h77-border);
}

.h77-banner__head {
  font-family: var(--h77-font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin: 0 0 1rem;
  line-height: 1.2;
  color: var(--h77-text);
}

.h77-banner__head span {
  background: linear-gradient(135deg, var(--h77-accent), var(--h77-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.h77-banner__lead {
  margin: 0 auto 1.75rem;
  font-size: 1.05rem;
  color: var(--h77-text-muted);
  line-height: 1.65;
}

.h77-banner__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ——— Section ——— */
.h77-block {
  padding: 3rem 0;
}

.h77-block__head {
  text-align: center;
  margin-bottom: 2rem;
}

.h77-block__title {
  font-family: var(--h77-font-head);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--h77-text);
}

.h77-block__sub {
  margin: 0;
  color: var(--h77-text-muted);
  font-size: 1rem;
}

/* Cards grid (e.g. games) */
.h77-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.h77-tile {
  background: var(--h77-card);
  border: 1px solid var(--h77-border);
  border-radius: var(--h77-radius);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.h77-tile:hover {
  border-color: rgba(192, 132, 252, 0.3);
  transform: translateY(-2px);
}

.h77-tile__thumb {
  aspect-ratio: 4/3;
  background: var(--h77-ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.h77-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h77-tile__body {
  padding: 1.25rem;
}

.h77-tile__title {
  font-family: var(--h77-font-head);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--h77-text);
}

.h77-tile__meta {
  font-size: 0.85rem;
  color: var(--h77-text-muted);
  margin: 0 0 1rem;
}

/* How it works (steps) */
.h77-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  counter-reset: step;
}

.h77-step {
  position: relative;
  padding-left: 3rem;
  counter-increment: step;
}

.h77-step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--h77-accent), var(--h77-accent-2));
  color: #fff;
  font-family: var(--h77-font-head);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h77-step__title {
  font-family: var(--h77-font-head);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--h77-text);
}

.h77-step__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--h77-text-muted);
}

/* FAQ */
.h77-faq-list {
  max-width: 680px;
  margin: 0 auto;
}

.h77-faq-item {
  border-bottom: 1px solid var(--h77-border);
}

.h77-faq-item__trigger {
  width: 100%;
  padding: 1rem 0;
  text-align: left;
  font-family: var(--h77-font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--h77-text);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.h77-faq-item__trigger::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--h77-accent);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.h77-faq-item[data-open="true"] .h77-faq-item__trigger::after {
  transform: rotate(45deg);
}

.h77-faq-item__panel {
  display: none;
  padding-bottom: 1rem;
}

.h77-faq-item[data-open="true"] .h77-faq-item__panel {
  display: block;
}

.h77-faq-item__panel p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--h77-text-muted);
  line-height: 1.6;
}

/* Legal strip */
.h77-legal-strip {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--h77-border);
  border-radius: var(--h77-radius);
  padding: 1.5rem;
  margin-top: 2rem;
}

.h77-legal-strip__title {
  font-family: var(--h77-font-head);
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--h77-text);
}

.h77-legal-strip__text {
  margin: 0;
  font-size: 0.875rem;
  color: var(--h77-text-muted);
  line-height: 1.55;
}

/* ——— Footer ——— */
.h77-foot {
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--h77-border);
}

.h77-foot__grid {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .h77-foot__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .h77-foot__nav {
    flex-direction: column;
  }
}

.h77-foot__brand {
  font-family: var(--h77-font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--h77-text);
  margin-bottom: 0.5rem;
}

.h77-foot__copy {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  color: var(--h77-text-muted);
}

.h77-foot__notice {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--h77-text-muted);
  max-width: 320px;
}

.h77-foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.h77-foot__nav a {
  color: var(--h77-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.h77-foot__nav a:hover {
  color: var(--h77-accent);
}

.h77-foot__age {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--h77-text);
  margin: 0;
}

.h77-foot__compliance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.h77-foot__compliance-link {
  display: inline-block;
  line-height: 0;
  transition: opacity 0.2s;
}

.h77-foot__compliance-link:hover {
  opacity: 0.85;
}

.h77-compliance-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
      filter: invert(1);
}

.h77-foot__legal {
  grid-column: 1 / -1;
  padding-top: 1rem;
  border-top: 1px solid var(--h77-border);
}

.h77-foot__legal p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--h77-text-muted);
  line-height: 1.5;
}

/* ——— Page (inner) ——— */
.h77-sheet {
  padding: 2.5rem 0 3rem;
}

.h77-sheet__title {
  font-family: var(--h77-font-head);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--h77-text);
}

.h77-sheet__sub {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
  color: var(--h77-text-muted);
}

.h77-prose {
  max-width: 720px;
}

.h77-prose h2 {
  font-family: var(--h77-font-head);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--h77-text);
}

.h77-prose p, .h77-prose li {
  color: var(--h77-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.h77-prose ul {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.h77-prose a {
  color: var(--h77-accent);
  text-decoration: underline;
}

/* Leaderboard table */
.h77-table-wrap {
  overflow-x: auto;
  border-radius: var(--h77-radius);
  border: 1px solid var(--h77-border);
  background: var(--h77-card);
}

.h77-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.h77-table th,
.h77-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--h77-border);
}

.h77-table th {
  font-family: var(--h77-font-head);
  font-weight: 600;
  color: var(--h77-text);
  background: rgba(0, 0, 0, 0.2);
}

.h77-table tr:last-child td {
  border-bottom: none;
}

.h77-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* Bonuses cards */
.h77-bonus-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.h77-bonus-card {
  background: var(--h77-card);
  border: 1px solid var(--h77-border);
  border-radius: var(--h77-radius);
  padding: 1.5rem;
}

.h77-bonus-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.h77-bonus-card__title {
  font-family: var(--h77-font-head);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--h77-text);
}

.h77-bonus-card__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--h77-text-muted);
  line-height: 1.55;
}
