#quest-section {
  --surface: #141419;
  --surface-2: #1b1b22;
  --line: rgba(255,255,255,.07);
  --line-2: rgba(255,255,255,.14);
  --orange: #ff781c;
  --orange-glow: rgba(255,120,28,.35);
  --white: #fff;
  --muted: #a6a6b2;
  --font-display: Unbounded, Manrope, sans-serif;
  --font-body: Manrope, system-ui, sans-serif;
  --radius-lg: 22px;
  --radius: 16px;
  --ease-out: cubic-bezier(.22,1,.36,1);
  --t-card: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
  container-type: inline-size;
  margin-block: 34px;
}

#quest-section .quests {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 26px);
}
#quest-section .quest {
  --brand: var(--orange);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.2vw, 30px);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 120, 28, 0.09), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--t-card);
}
#quest-section .quest::before {
  
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.85;
}
#quest-section .quest:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 120, 28, 0.5);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 120, 28, 0.14), 0 24px 70px -34px var(--orange-glow);
}
#quest-section .quest--betboom { --brand: #ff2b2b; }
#quest-section .quest--fonbet { --brand: #e3131b; }
#quest-section .quest--winline { --brand: #ff6a13; }

#quest-section .quest__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#quest-section .quest__logo {
  display: grid;
  place-items: center;
  height: 58px;
  padding: 0 18px;
  border-radius: 14px;
  background: #0d0d11;
  border: 1px solid var(--line);
}
#quest-section .quest__logo img { height: auto; max-height: 34px; width: auto; max-width: 150px; }
#quest-section .quest__badge {
  flex: none;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
}

#quest-section .quest__free {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 20px;
}
#quest-section .quest__free li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--white);
}
#quest-section .quest__free svg {
  width: 20px; height: 20px;
  padding: 3px;
  border-radius: 50%;
  color: #120a04;
  background: var(--orange);
}

#quest-section .quest__amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
#quest-section .amount {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
}
#quest-section .amount__value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.3vw, 2rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--white);
  white-space: nowrap;
}
#quest-section .amount__value small {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.7em;
  margin-left: 2px;
}
#quest-section .amount__label {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--muted);
}
#quest-section .amount--reward {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 120, 28, 0.22), rgba(255, 120, 28, 0.05) 60%),
    rgba(255, 120, 28, 0.04);
  border-color: rgba(255, 120, 28, 0.45);
}
#quest-section .amount--reward .amount__value { color: var(--orange); text-shadow: 0 0 26px rgba(255, 120, 28, 0.35); }
#quest-section .amount--reward .amount__label { color: #ffc69b; }

#quest-section .quest__steps {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  counter-reset: step;
}
#quest-section .quest__steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d0d0d8;
}

#quest-section .quests-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 40px;
  margin-bottom: clamp(32px, 4vw, 52px);
}
#quest-section .reward-switch { display: grid; gap: 10px; }
#quest-section .reward-switch__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--muted);
}
#quest-section .reward-switch__opts {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 5px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line-2);
}
#quest-section .reward-opt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9375rem;
  white-space: nowrap;
  transition: background-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}
#quest-section .reward-opt svg { width: 20px; height: 20px; flex: none; color: currentColor; transition: color 0.4s ease; }
#quest-section .reward-opt:hover { color: var(--white); background: rgba(255, 255, 255, 0.04); }
#quest-section .reward-opt.is-active {
  color: #120a04;
  background: linear-gradient(180deg, #ff8a35, var(--orange) 60%, #f06a10);
  box-shadow: 0 8px 22px -12px var(--orange-glow);
}
#quest-section .amount--reward { overflow: hidden; isolation: isolate; }
#quest-section .amount--reward .amount__value, #quest-section .amount--reward .amount__label { position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75); }
#quest-section .amount__art {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 66%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transform: translateX(14px) scale(1.04);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 30%, #000 62%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.55) 30%, #000 62%);
  transition: opacity 0.45s ease, transform 0.7s var(--ease-out);
  pointer-events: none;
}

#quest-section .amount__art--weapon {
  top: 50%;
  bottom: auto;
  right: 8px;
  width: 48%;
  height: auto;
  max-height: 68%;
  object-position: right center;
  object-fit: contain;
  -webkit-mask-image: none;
  mask-image: none;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.6));
}
#quest-section .amount--reward.has-art .amount__art.amount__art--weapon { transform: translateY(-50%) rotate(-16deg); }

#quest-section .amount__art.amount__art--weapon[src*="glock"] { max-height: 54%; width: 40%; right: 12px; }
#quest-section .amount--reward.has-art .amount__art.amount__art--weapon[src*="glock"] { transform: translateY(-50%) rotate(-8deg); }


#quest-section .amount__art--contain {
  width: 54%;
  object-fit: contain;
  object-position: right center;
  padding: 8px 6px 8px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%);
}


#quest-section .amount__art--photo {
  width: 62%;
  filter: brightness(0.82) contrast(1.12) saturate(1.1);
  -webkit-mask-image: radial-gradient(ellipse 62% 70% at 62% 50%, #000 38%, transparent 78%);
  mask-image: radial-gradient(ellipse 62% 70% at 62% 50%, #000 38%, transparent 78%);
}
#quest-section .amount--reward.has-art .amount__art { opacity: 1; transform: none; }

#quest-section .quest__steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--orange);
  background: rgba(255, 120, 28, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 120, 28, 0.3);
}

#quest-section .quest__cta {
  margin-top: auto;
  padding-top: 22px;
  display: grid;
  gap: 8px;
}

#quest-section .copy {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  text-align: left;
  transition: border-color 0.4s ease, background-color 0.4s ease;
}
#quest-section .copy:hover { border-color: rgba(255, 120, 28, 0.6); background: rgba(255, 120, 28, 0.05); }
#quest-section .copy__text {
  min-width: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--muted);
}
#quest-section .copy__text b { display: block; color: #d6d6de; font-weight: 700; font-size: 0.875rem; }
#quest-section .copy__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 8px;
  color: var(--orange);
  background: rgba(255, 120, 28, 0.1);
  transition: background-color 0.4s ease, color 0.4s ease;
}
#quest-section .copy__icon svg { width: 16px; height: 16px; }
#quest-section .copy.is-copied { border-style: solid; border-color: rgba(255, 120, 28, 0.7); }
#quest-section .copy.is-copied .copy__icon { background: var(--orange); color: #120a04; }

#quest-section .quests-note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: clamp(22px, 2.4vw, 32px);
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
#quest-section .age {
  flex: none;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--white);
  border: 2px solid var(--orange);
}
#quest-section .quests-note p + p { margin-top: 4px; }


#quest-section .partner-quests-heading h2 {
  font: 800 clamp(24px, 3.45cqi, 50px)/1.2 var(--font-display);
  letter-spacing: -.035em;
}
#quest-section .partner-quests-heading p {
  max-width: 660px;
  margin: 16px 0 0;
  color: #d0d0d8;
  font-size: 16px;
  line-height: 1.55;
}
#quest-section ul, #quest-section ol { list-style: none; padding: 0; }
#quest-section .quest__free, #quest-section .quest__steps { margin-bottom: 0; }
#quest-section #quest-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.8cqi, 26px); }
#quest-section .quest-vk {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 10px 14px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  background: linear-gradient(180deg,#ff8b3b,#ff781c 60%,#f06a10);
  color: #120a04;
  text-align: center;
  font-weight: 800;
  font-size: 16px;
}
#quest-section .quest-vk:hover { filter: brightness(1.08); }
#quest-section .quest-vk svg { width: 23px; height: 23px; }
#quest-section svg:has(use[href^="#q-"]) { stroke: none; }
#quest-section .copy__icon svg:last-child { display: none; }
#quest-section .copy.is-copied .copy__icon svg:first-child { display: none; }
#quest-section .copy.is-copied .copy__icon svg:last-child { display: block; }

@container (max-width: 1080px) {
  #quest-section .quest { padding: 17px; }
  #quest-section .quests-top { gap: 18px; margin-bottom: 24px; }
  #quest-section .quest__logo { height: 48px; padding: 0 12px; }
  #quest-section .quest__logo img { max-width: 122px; max-height: 27px; }
  #quest-section .quest__free { gap: 7px 10px; margin-top: 15px; }
  #quest-section .quest__free li, #quest-section .quest__steps li { font-size: 13px; }
  #quest-section .quest__free svg { width: 17px; height: 17px; }
  #quest-section .amount { padding: 13px 10px; }
  #quest-section .amount__value { font-size: 24px; }
  #quest-section .amount__label { font-size: 11px; }
  #quest-section .quest__steps { gap: 8px; margin-top: 16px; }
  #quest-section .quest__steps li { grid-template-columns: 24px 1fr; gap: 8px; }
  #quest-section .quest__steps li::before { width: 24px; height: 24px; }
  #quest-section .quest__cta { padding-top: 16px; }
  #quest-section .quest-vk { min-height: 49px; padding: 8px; font-size: 13px; gap: 7px; }
  #quest-section .quest-vk svg { width: 19px; height: 19px; }
  #quest-section .copy { padding: 6px 8px; gap: 6px; }
  #quest-section .copy__text b { font-size: 12px; }
}
@container (max-width: 750px) {
  #quest-section #quest-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 510px) {
  #quest-section #quest-list { grid-template-columns: minmax(0, 1fr); }
  #quest-section .reward-switch { width: 100%; }
  #quest-section .reward-opt { flex-direction: column; gap: 4px; min-height: 50px; padding: 0 5px; font-size: 12px; }
  #quest-section .reward-opt svg { width: 18px; height: 18px; }
  #quest-section .partner-quests-heading p { font-size: 14px; margin-top: 10px; }
  #quest-section .quest { padding: 19px; }
  #quest-section .copy__long { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  #quest-section .quest, #quest-section .reward-opt { transition: none; }
  #quest-section .quest:hover { transform: none; }
}
