:root {
  --color-background: #ffffff;
  --color-background-secondary: #f3f4f9;
  --color-text: #1d1d1d;
  --color-text-muted: #707588;
  --color-border: #e0e0e0;
}

html, body {
  min-height: 100%;
  overflow-x: hidden;
  font-family: "DM Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Manrope, "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

.signin-btn {
  background: linear-gradient(135deg, #0056D2 0%, #0077FF 100%);
}

.signin-btn:hover {
  filter: brightness(1.05);
}

.livebar {
  font-family: "DM Sans", system-ui, sans-serif;
}

.live-track {
  animation: ticker 42s linear infinite;
  width: max-content;
}

.live-dot {
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 1.6s infinite;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.hero-eth {
  color: #f97316;
}

.hero-glow {
  background: radial-gradient(circle, rgba(47, 245, 255, 0.5) 0%, rgba(47, 107, 255, 0.25) 42%, transparent 63%);
}

.stat-gold { color: #c9a227; }
.stat-cyan { color: #00D3F2; }
.stat-green { color: #05DF72; }
.stat-play { color: #34a853; }

.card-tilt {
  transform: rotate(-8deg);
}

.card-tilt-r {
  transform: rotate(8deg);
}

.faq-item + .faq-item {
  border-top: 1px solid #eaeaea;
}

.offer-thumb {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 40%),
    linear-gradient(160deg, rgba(255,255,255,.08), transparent 50%);
}

input:focus, select:focus {
  outline: none;
  border-color: #0077FF !important;
  box-shadow: 0 0 0 4px rgba(0, 119, 255, 0.12);
}

.survey-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.survey-modal.hidden { display: none; }
.survey-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 14, 0.72);
}
.survey-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: #111318;
  border: 1px solid #22262f;
  border-radius: 28px;
  padding: 36px 28px 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.survey-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: #9aa3b2;
  font-size: 28px;
  line-height: 1;
}
.survey-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #2a2f3a;
  border-radius: 999px;
  color: #e8ebf2;
  cursor: pointer;
  background: #16181e;
}
.survey-option:has(input:checked) {
  border-color: #3b82f6;
  background: #182033;
}
.survey-option input {
  accent-color: #60a5fa;
}
.survey-next,
.survey-submit {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
}
.survey-next {
  background: #2563eb;
}
.survey-submit {
  background: linear-gradient(90deg, #ec4899 0%, #6366f1 100%);
}
.survey-input {
  width: 100%;
  height: 48px;
  border-radius: 999px;
  border: 1px solid #2a2f3a;
  background: #16181e;
  color: #fff;
  padding: 0 18px;
}
.survey-input:focus {
  border-color: #6366f1 !important;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.partner-wrap {
  width: 100%;
  max-width: 100%;
  background: #0b1220;
  border-radius: 20px;
  padding: 16px 10px 12px;
  box-sizing: border-box;
}
.partner-heading {
  text-align: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin: 0 0 12px;
  padding: 0 4px;
}
.partner-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.partner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  background: #151c2c;
  border: 1px solid #243049;
  border-radius: 14px;
  padding: 10px 8px 12px;
  min-width: 0;
  min-height: 0;
  text-align: center;
}
.partner-card img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  flex-shrink: 0;
  background: #fff;
  object-fit: contain;
}
.partner-text {
  min-width: 0;
  width: 100%;
}
.partner-name {
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  line-height: 1.3;
  word-break: break-word;
}
.partner-tag {
  color: #fbbf24;
  font-weight: 500;
  font-size: 10px;
}
.partner-sub {
  color: #8b95a8;
  font-size: 10px;
  margin-top: 3px;
  line-height: 1.35;
}

@media (min-width: 640px) {
  .partner-wrap { border-radius: 24px; padding: 22px 16px 16px; }
  .partner-heading { font-size: 16px; letter-spacing: 0.06em; }
  .partner-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 10px;
    padding: 12px;
    min-height: 72px;
  }
  .partner-card img { width: 40px; height: 40px; border-radius: 12px; }
  .partner-text { width: auto; flex: 1; }
  .partner-name { font-size: 13px; }
  .partner-tag { font-size: 11px; }
  .partner-sub { font-size: 11px; }
}

@media (min-width: 768px) {
  .partner-wrap { padding: 28px 24px 22px; border-radius: 28px; }
  .partner-heading { font-size: 18px; letter-spacing: 0.08em; }
  .partner-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
}

@media (max-width: 639px) {
  .survey-modal { padding: 10px; align-items: flex-end; }
  .survey-panel {
    width: 100%;
    max-height: min(92vh, 100%);
    border-radius: 20px 20px 16px 16px;
    padding: 28px 16px 20px;
  }
  .survey-option {
    min-height: 44px;
    padding: 0 12px;
    font-size: 14px;
  }
}
[dir="rtl"] .text-left { text-align: right; }
[dir="rtl"] .survey-close { right: auto; left: 16px; }
[dir="rtl"] .survey-input { direction: ltr; text-align: left; }
@media (min-width: 640px) {
  [dir="rtl"] .partner-card { text-align: right; }
}
