/* ============================================================
   xx7 Game — Home Page
   Hero · OG showcase · dashboard preview · funding explainer ·
   marquee · content blocks
   ============================================================ */

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  padding-block: clamp(112px, 14vw, 156px) clamp(48px, 7vw, 84px);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
  /* Mobile: copy intro, then the app mockup, then the bonus/CTA block —
     the mockup sits above the welcome-bonus button on phone screens. */
  grid-template-areas:
    'top'
    'device'
    'bottom';
}

@media (min-width: 960px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(36px, 5vw, 76px);
    /* Desktop: copy stacked in the left column, mockup fills the right
       column and spans both rows. */
    grid-template-areas:
      'top    device'
      'bottom device';
  }
}

.hero__copy { position: relative; z-index: 2; }
.hero-top    { grid-area: top; }
.hero-bottom { grid-area: bottom; }
.hero-device { grid-area: device; }

.hero__title {
  font-size: var(--fs-hero);
  line-height: 1.04;
  margin-bottom: 22px;
}

.hero__title span { display: block; }

.hero__sub {
  max-width: 56ch;
  font-size: var(--fs-lead);
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-bottom: 30px;
}

/* Welcome-bonus plaque */
.bonus-plaque {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px 14px 16px;
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-strong);
  background:
    linear-gradient(135deg, rgba(92, 16, 35, 0.55), rgba(19, 18, 21, 0.9));
  box-shadow: var(--shadow-card), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.bonus-plaque::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(240, 201, 99, 0.16) 50%, transparent 60%);
  background-size: 280% 100%;
  animation: glareSweep 5s linear infinite;
  pointer-events: none;
}

.bonus-plaque__gift {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--gradient-gold-solid);
  color: #1A1206;
}
.bonus-plaque__gift svg { width: 24px; height: 24px; }

.bonus-plaque__label {
  display: block;
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-bottom: 2px;
}

.bonus-plaque__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.4vw, 1.85rem);
  line-height: 1.1;
  white-space: nowrap;
}

.hero .btn-row { margin-bottom: 26px; }

.hero__trust { margin-top: 30px; }

.hero__note {
  margin-top: 16px;
  font-size: var(--fs-2xs);
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   LIVE WIN MARQUEE
   ------------------------------------------------------------ */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 13px;
  border-block: 1px solid var(--color-border-soft);
  background: rgba(6, 6, 8, 0.6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marqueeScroll 44s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }

@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--fs-xs);
  color: var(--color-text-secondary);
  white-space: nowrap;
}
.marquee__item b {
  font-weight: 600;
  color: var(--color-champagne-light);
}
.marquee__item .amt {
  font-family: var(--font-display);
  color: var(--color-success);
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
}

/* ------------------------------------------------------------
   OG BANNER SHOWCASE
   ------------------------------------------------------------ */
.og-showcase {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-strong);
  box-shadow: var(--shadow-card-lg), 0 0 70px rgba(140, 31, 63, 0.22);
  background: #0A0A0C;
}

.og-showcase__media {
  position: relative;
  display: block;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
}

.og-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.og-showcase:hover .og-showcase__media img { transform: scale(1.045); }

/* Sweep of light across the banner. */
.og-showcase__media::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(108deg, transparent 38%, rgba(255, 255, 255, 0.16) 48%, transparent 58%);
  background-size: 280% 100%;
  animation: glareSweep 7s linear infinite;
}

/* Overlay CTA rail beneath the artwork. */
.og-showcase__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(20px, 3.4vw, 34px);
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.9), rgba(6, 6, 8, 0.98));
  border-top: 1px solid var(--color-border-soft);
}

.og-showcase__pitch {
  font-size: var(--fs-sm);
  color: var(--color-text-secondary);
  max-width: 60ch;
}
.og-showcase__pitch strong { color: var(--color-champagne-light); font-weight: 600; }

.og-highlights {
  display: grid;
  gap: clamp(12px, 2vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
  margin-top: clamp(24px, 3.4vw, 36px);
}

.og-highlight {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 19px;
  border-radius: var(--radius);
  background: rgba(19, 18, 21, 0.7);
  border: 1px solid var(--color-border);
  transition: all var(--t-base) var(--ease-out);
}
.og-highlight:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-3px);
}
.og-highlight svg { width: 22px; height: 22px; color: var(--color-champagne); flex: 0 0 auto; }
.og-highlight b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text-primary);
}
.og-highlight span { font-size: var(--fs-2xs); color: var(--color-text-muted); }

/* ------------------------------------------------------------
   DASHBOARD PREVIEW (stylised mockup — not a live account)
   ------------------------------------------------------------ */
.dash {
  display: grid;
  gap: clamp(34px, 5vw, 60px);
  align-items: center;
}
@media (min-width: 940px) {
  .dash { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
  .dash--reverse > *:first-child { order: 2; }
}

.dash-panel {
  position: relative;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border-strong);
  background:
    radial-gradient(ellipse 90% 60% at 20% 0%, rgba(92, 16, 35, 0.30), transparent 62%),
    linear-gradient(165deg, #1B1A1E, #0A0A0C);
  box-shadow: var(--shadow-card-lg);
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transition: transform 0.9s var(--ease-out);
}
.dash-panel:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }

@media (max-width: 700px) {
  .dash-panel { transform: none; }
}

.dash-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.dash-user { display: flex; align-items: center; gap: 12px; }

.dash-user__avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--color-burgundy-bright), var(--color-burgundy-dim));
  border: 1px solid var(--color-border-strong);
  font-family: var(--font-display);
  color: var(--color-champagne-light);
}

.dash-user__name { font-size: var(--fs-sm); font-weight: 600; }
.dash-user__id   { font-size: var(--fs-2xs); color: var(--color-text-muted); }

.dash-balance {
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(140deg, rgba(201, 168, 118, 0.14), rgba(19, 18, 21, 0.7));
  border: 1px solid var(--color-border-soft);
  margin-bottom: 16px;
}

.dash-balance__label {
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.dash-balance__value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.4vw, 2.4rem);
  line-height: 1;
}

.dash-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.dash-mini {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(27, 26, 30, 0.75);
  border: 1px solid var(--color-border);
}
.dash-mini__label { font-size: var(--fs-2xs); color: var(--color-text-muted); }
.dash-mini__value { font-family: var(--font-display); font-size: 1.15rem; color: var(--color-champagne-light); }

/* VIP progress */
.dash-vip { margin-bottom: 18px; }

.dash-vip__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-2xs);
  color: var(--color-text-muted);
  margin-bottom: 8px;
}
.dash-vip__row b { color: var(--color-champagne); font-weight: 600; }

.progress {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(43, 36, 38, 0.9);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 68%;
  border-radius: var(--radius-pill);
  background: var(--gradient-gold-solid);
  box-shadow: 0 0 14px rgba(201, 168, 118, 0.6);
  position: relative;
  overflow: hidden;
  animation: progressGrow 2.2s var(--ease-out) both;
}
.progress__fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: glareSweep 2.8s linear infinite;
}

@keyframes progressGrow {
  from { width: 0; }
}

.dash-activity { display: grid; gap: 9px; }

.dash-activity__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: rgba(19, 18, 21, 0.7);
  border: 1px solid rgba(43, 36, 38, 0.7);
  font-size: var(--fs-xs);
}
.dash-activity__row span:first-child { color: var(--color-text-secondary); }
.dash-activity__win  { color: var(--color-success); font-weight: 600; }
.dash-activity__out  { color: var(--color-text-muted); }

.dash-note {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(228, 87, 76, 0.07);
  border: 1px solid rgba(228, 87, 76, 0.22);
  font-size: var(--fs-2xs);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* ------------------------------------------------------------
   FUNDING EXPLAINER (deposit / withdrawal)
   ------------------------------------------------------------ */
.funding {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.funding-card {
  padding: clamp(26px, 3.4vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--gradient-surface-card);
  transition: all var(--t-base) var(--ease-out);
}
.funding-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-lg);
}

.funding-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.funding-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 13px;
  border: 1px solid var(--color-border-soft);
  background: linear-gradient(150deg, rgba(201, 168, 118, 0.20), rgba(92, 16, 35, 0.30));
  color: var(--color-champagne);
}
.funding-card__icon svg { width: 23px; height: 23px; }

.funding-card__title { font-size: var(--fs-h3); }

.funding-list { display: grid; gap: 14px; margin-bottom: 22px; }

.funding-list li {
  display: flex;
  gap: 12px;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--color-text-secondary);
}

.funding-list__num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 7px;
  background: rgba(201, 168, 118, 0.14);
  border: 1px solid var(--color-border-soft);
  font-size: var(--fs-2xs);
  font-weight: 700;
  color: var(--color-champagne);
}

.funding-facts {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.funding-fact {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: var(--fs-xs);
}
.funding-fact dt { color: var(--color-text-muted); }
.funding-fact dd { color: var(--color-champagne-light); font-weight: 500; text-align: right; }

/* Payment method rail */
.pay-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pay-chip {
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  background: rgba(27, 26, 30, 0.8);
  border: 1px solid var(--color-border);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-text-secondary);
}

/* ------------------------------------------------------------
   CATEGORY EXPLAINER CARDS
   ------------------------------------------------------------ */
.cat-explain {
  display: grid;
  gap: clamp(18px, 2.4vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--gradient-surface-card);
  overflow: hidden;
  transition: all var(--t-base) var(--ease-out);
}
.cat-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-card-lg);
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-hairline);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-out);
}
.cat-card:hover::before { opacity: 1; }

.cat-card__count {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--color-champagne);
  margin-bottom: 10px;
}

.cat-card__title { font-size: var(--fs-h4); margin-bottom: 10px; }

.cat-card__text {
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  flex: 1 1 auto;
}

.cat-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-champagne);
  transition: gap var(--t-base) var(--ease-out);
}
.cat-card__link:hover { gap: 14px; }
.cat-card__link svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------
   SPLIT CONTENT BLOCK (long-form editorial)
   ------------------------------------------------------------ */
.split {
  display: grid;
  gap: clamp(30px, 4.5vw, 58px);
  align-items: start;
}
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.info-panel {
  padding: clamp(24px, 3.2vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(19, 18, 21, 0.6);
}

.info-panel h3 {
  font-size: var(--fs-h4);
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--color-champagne-light);
  margin-bottom: 12px;
}

/* ------------------------------------------------------------
   RESPONSIBLE GAMING PANEL
   ------------------------------------------------------------ */
.rg-panel {
  display: grid;
  gap: clamp(24px, 3.4vw, 40px);
  padding: clamp(28px, 4vw, 46px);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(228, 87, 76, 0.24);
  background:
    radial-gradient(ellipse 80% 100% at 100% 0%, rgba(228, 87, 76, 0.09), transparent 60%),
    linear-gradient(160deg, #17141A, #0A0A0C);
}
@media (min-width: 880px) {
  .rg-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; }
}

.rg-rules { display: grid; gap: 14px; }

.rg-rule {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 15px 17px;
  border-radius: var(--radius);
  background: rgba(10, 10, 12, 0.6);
  border: 1px solid var(--color-border);
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: var(--color-text-secondary);
}
.rg-rule svg { width: 19px; height: 19px; flex: 0 0 auto; margin-top: 2px; color: var(--color-warning); }
.rg-rule b { display: block; color: var(--color-text-primary); font-weight: 600; margin-bottom: 3px; }

.helpline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  padding: 18px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border-strong);
  background: rgba(201, 168, 118, 0.07);
}
.helpline__label {
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.helpline__number {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-champagne-light);
}

/* ------------------------------------------------------------
   COMMUNITY / TELEGRAM CARDS
   ------------------------------------------------------------ */
.community {
  display: grid;
  gap: clamp(18px, 2.6vw, 26px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.tg-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 3.4vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(46, 168, 222, 0.14), transparent 62%),
    var(--gradient-surface-card);
  overflow: hidden;
  transition: all var(--t-base) var(--ease-out);
}
.tg-card:hover {
  transform: translateY(-6px);
  border-color: rgba(46, 168, 222, 0.45);
  box-shadow: var(--shadow-card-lg), 0 0 40px rgba(46, 168, 222, 0.18);
}

.tg-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(140deg, #2FA8DE, #17699B);
  color: #fff;
  box-shadow: 0 8px 26px rgba(34, 158, 217, 0.35);
}
.tg-card__icon svg { width: 28px; height: 28px; }

.tg-card__title { font-size: var(--fs-h3); margin-bottom: 8px; }

.tg-card__handle {
  font-size: var(--fs-xs);
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  color: #6FCBF0;
  margin-bottom: 14px;
}

.tg-card__text {
  font-size: var(--fs-sm);
  line-height: 1.72;
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  flex: 1 1 auto;
}

/* ------------------------------------------------------------
   KEYWORD / RELATED SEARCH BLOCK
   ------------------------------------------------------------ */
.keywords {
  padding: clamp(26px, 3.6vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: rgba(19, 18, 21, 0.5);
}

.keywords__title {
  font-family: var(--font-body);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--color-champagne);
  margin-bottom: 18px;
}
