/* ==========================================================================
   777cX Game — pages.css
   Per-page overrides & page-specific components
   ========================================================================== */

/* --------------------------------------------------------------------------
   HOME — bonus banner
   -------------------------------------------------------------------------- */
.bonus-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 1.2rem + 3vw, 3.5rem);
  background: var(--grad-dark);
  color: rgba(255, 255, 255, 0.76);
  isolation: isolate;
  box-shadow: var(--shadow-xl);
}
.bonus-banner::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(620px 380px at 8% 10%, rgba(212, 175, 55, 0.28), transparent 62%),
    radial-gradient(700px 420px at 96% 88%, rgba(127, 227, 176, 0.24), transparent 62%);
}
.bonus-banner__inner { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 900px) { .bonus-banner__inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: var(--space-2xl); } }
.bonus-banner h2 { color: #fff; margin-bottom: 0.4em; }
.bonus-banner p { color: rgba(255,255,255,0.72); }

.bonus-amount {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 1.6rem + 4.6vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
  margin-bottom: 0.15em;
}
.bonus-list { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: 12px; }
.bonus-list li { display: flex; gap: 11px; align-items: flex-start; font-size: var(--fs-sm); line-height: 1.65; margin: 0; }
.bonus-list li::before {
  content: '';
  flex-shrink: 0;
  width: 20px; height: 20px; margin-top: 2px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23EACB6A' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.bonus-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.bonus-card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 12px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.14);
  font-size: var(--fs-sm);
}
.bonus-card__row:last-of-type { border-bottom: 0; }
.bonus-card__row b { color: #fff; font-family: var(--font-display); font-weight: 650; }

/* --------------------------------------------------------------------------
   HOME — providers marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  gap: var(--space-lg);
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 650;
  color: var(--color-text-primary);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}
.marquee__item span { font-size: 0.72rem; font-weight: 500; color: var(--color-text-muted); }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}

/* --------------------------------------------------------------------------
   HOME — telegram community band
   -------------------------------------------------------------------------- */
.tg-band { display: grid; gap: var(--space-lg); }
@media (min-width: 768px) { .tg-band { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tg-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.25rem);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out), border-color var(--dur-mid) var(--ease-out);
}
.tg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #9FD9F2; }
.tg-card::after {
  content: '';
  position: absolute;
  right: -70px; top: -70px;
  width: 210px; height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(55, 174, 226, 0.14), transparent 68%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   DOWNLOAD PAGE
   -------------------------------------------------------------------------- */
.install-layout { display: grid; gap: var(--space-2xl); align-items: start; }
@media (min-width: 1024px) { .install-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-3xl); } }

.download-panel {
  position: sticky;
  top: 108px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.download-panel__app {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding-bottom: var(--space-lg);
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
/* Same precise logo crop as the header brand mark, sized for the app row */
.download-panel__icon {
  position: relative;
  width: 108px;
  aspect-ratio: 3.592 / 1;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0A1F12;
  box-shadow: 0 6px 18px -6px rgba(11, 31, 22, 0.45), inset 0 0 0 1px rgba(127, 227, 176, 0.24);
}
.download-panel__icon img {
  position: absolute;
  width: 174.5%;
  height: auto;
  max-width: none;
  left: -14.77%;
  top: -138.8%;
  filter: saturate(1.12) contrast(1.05);
}
.download-panel__name { font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--color-text-primary); line-height: 1.2; }
.download-panel__dev { font-size: 0.78rem; color: var(--color-text-muted); }

.qr-box {
  width: 176px;
  margin: 0 auto var(--space-lg);
  padding: 14px;
  border-radius: var(--radius-md);
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.qr-box__code {
  aspect-ratio: 1;
  border-radius: var(--radius-xs);
  background:
    repeating-conic-gradient(var(--color-text-primary) 0% 25%, #FFFFFF 0% 50%) 0 0 / 11px 11px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
/* Three QR-style finder patterns (dark ring · white gap · dark core) */
.qr-box__code::before {
  content: '';
  position: absolute;
  inset: 0;
  --d: var(--color-text-primary);
  background:
    linear-gradient(var(--d), var(--d)) 18px 18px / 12px 12px no-repeat,
    linear-gradient(var(--d), var(--d)) calc(100% - 18px) 18px / 12px 12px no-repeat,
    linear-gradient(var(--d), var(--d)) 18px calc(100% - 18px) / 12px 12px no-repeat,
    linear-gradient(#fff, #fff) 12px 12px / 24px 24px no-repeat,
    linear-gradient(#fff, #fff) calc(100% - 12px) 12px / 24px 24px no-repeat,
    linear-gradient(#fff, #fff) 12px calc(100% - 12px) / 24px 24px no-repeat,
    linear-gradient(var(--d), var(--d)) 6px 6px / 36px 36px no-repeat,
    linear-gradient(var(--d), var(--d)) calc(100% - 6px) 6px / 36px 36px no-repeat,
    linear-gradient(var(--d), var(--d)) 6px calc(100% - 6px) / 36px 36px no-repeat;
}
.qr-box__code::after {
  content: 'QR';
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 9px;
  background: #fff;
  border: 3px solid var(--color-text-primary);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-text-primary);
}
.qr-box p { font-size: 0.7rem; color: var(--color-text-muted); margin: 10px 0 0; line-height: 1.4; }

.meta-list { list-style: none; margin: var(--space-lg) 0 0; padding: 0; text-align: left; }
.meta-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.84rem;
  margin: 0;
}
.meta-list li:last-child { border-bottom: 0; }
.meta-list span { color: var(--color-text-muted); }
.meta-list b { font-family: var(--font-display); font-weight: 600; color: var(--color-text-primary); }

/* Install step (numbered, connected) */
.install-steps { list-style: none; margin: 0; padding: 0; counter-reset: istep; position: relative; }
.install-steps::before {
  content: '';
  position: absolute;
  left: 25px; top: 30px; bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-border-strong));
  border-radius: 2px;
}
@media (min-width: 640px) { .install-steps::before { left: 29px; } }
.install-steps > li {
  counter-increment: istep;
  position: relative;
  padding-left: 70px;
  margin-bottom: var(--space-xl);
}
@media (min-width: 640px) { .install-steps > li { padding-left: 82px; } }
.install-steps > li:last-child { margin-bottom: 0; }
.install-steps > li::before {
  content: counter(istep);
  position: absolute;
  left: 0; top: 0;
  display: grid; place-items: center;
  width: 52px; height: 52px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--color-accent);
  color: var(--color-accent-darker);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(15, 157, 88, 0.08);
  z-index: 1;
}
@media (min-width: 640px) { .install-steps > li::before { width: 60px; height: 60px; font-size: 1.3rem; } }
.install-steps h3 { font-size: 1.15rem; margin-bottom: 0.4em; padding-top: 10px; }
.install-steps p { font-size: var(--fs-sm); line-height: var(--lh-loose); }

.note-box {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  margin-top: var(--space-md);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: 0.855rem;
  line-height: 1.7;
}
.note-box svg { flex-shrink: 0; margin-top: 3px; color: var(--color-accent-deep); }
.note-box--warn { background: #FEF6E7; border-color: #F2DFB6; }
.note-box--warn svg { color: #B4880F; }

/* --------------------------------------------------------------------------
   ABOUT PAGE
   -------------------------------------------------------------------------- */
.value-grid { display: grid; gap: var(--space-lg); }
@media (min-width: 768px)  { .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pillar {
  position: relative;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  background: var(--color-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(15, 157, 88, 0.14);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pillar__num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--color-border-strong);
  position: absolute;
  right: 18px; top: 8px;
  pointer-events: none;
}

.about-figure {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
}
.about-figure img { width: 100%; height: auto; }

/* --------------------------------------------------------------------------
   GAMES PAGE
   -------------------------------------------------------------------------- */
.games-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}
@media (min-width: 900px) {
  .games-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}
.games-count {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  font-family: var(--font-display);
  font-weight: 550;
  white-space: nowrap;
}
.games-count b { color: var(--color-accent-deep); }

.load-more-wrap { display: flex; justify-content: center; margin-top: var(--space-2xl); }
.game-card[hidden] { display: none; }

/* --------------------------------------------------------------------------
   GAMES DETAILS / GUIDE PAGE
   -------------------------------------------------------------------------- */
.guide-layout { display: grid; gap: var(--space-2xl); align-items: start; }
@media (min-width: 1024px) { .guide-layout { grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-3xl); } }

.mech-grid { display: grid; gap: var(--space-lg); }
@media (min-width: 768px) { .mech-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mech {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  box-shadow: var(--shadow-xs);
}
.mech h4 { margin-bottom: 0.35em; }
.mech p { font-size: var(--fs-sm); line-height: var(--lh-loose); margin: 0; }

/* --------------------------------------------------------------------------
   CONTACT PAGE
   -------------------------------------------------------------------------- */
.contact-layout { display: grid; gap: var(--space-2xl); align-items: start; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--space-3xl); } }

.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 11px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: var(--fs-sm);
  margin: 0;
}
.hours-list li:last-child { border-bottom: 0; }
.hours-list b { font-family: var(--font-display); font-weight: 600; color: var(--color-text-primary); }

/* --------------------------------------------------------------------------
   LEGAL PAGES
   -------------------------------------------------------------------------- */
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-xs);
  margin-bottom: var(--space-2xl);
}
.legal-meta div { display: flex; gap: 7px; align-items: center; }
.legal-meta b { font-family: var(--font-display); color: var(--color-text-primary); font-weight: 600; }

.prose section { scroll-margin-top: 110px; }
.prose section + section { margin-top: var(--space-3xl); }

/* --------------------------------------------------------------------------
   SHARED SMALL BITS
   -------------------------------------------------------------------------- */
.kw-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.kw-cloud span {
  display: inline-block;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: 0.775rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.mini-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: var(--space-md); }
@media (min-width: 768px) { .mini-stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.mini-stat {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xs);
}
.mini-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--color-text-primary);
  line-height: 1.1;
}
.mini-stat span { font-size: 0.76rem; color: var(--color-text-muted); }
