@font-face {
  font-family: "Onest";
  src: url("../fonts/Onest/Onest-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
}

:root {
  --bg: #070405;
  --bg-strong: #0e0809;
  --panel: rgba(15, 12, 15, 0.76);
  --panel-strong: rgba(12, 8, 10, 0.9);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --stroke: rgba(255, 255, 255, 0.12);
  --stroke-accent: rgba(255, 136, 28, 0.45);
  --text: #fff7ef;
  --muted: rgba(255, 243, 231, 0.74);
  --muted-strong: rgba(255, 243, 231, 0.92);
  --accent: linear-gradient(94.09deg, #DB8A0F 1.4%, #FFCA3B 37.78%, #FFCB3C 66.16%, #E59F20 95.97%);
  --accent-solid: #ffca3b;
  --accent-strong: #ff9a00;
  --accent-hot: #ff5f20;
  --danger: #df2323;
  --success: #f7b932;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
  --radius-2xl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --wrap: 1120px;
  --page-offset: 56px;
}

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

html {
  min-height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  font-family: "Onest", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 120, 0, 0.12), transparent 34%),
    radial-gradient(circle at 80% 0%, rgba(255, 74, 27, 0.18), transparent 28%),
    linear-gradient(180deg, #030203 0%, #0b0405 36%, #080405 100%);
}

body.landing-page {
  background:
    linear-gradient(180deg, rgba(6, 4, 5, 0.24) 0%, rgba(6, 4, 5, 0.34) 100%),
    url("../img/bg.svg") center top / cover no-repeat;
}

body.landing-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 150, 0, 0.08), transparent 20%),
    radial-gradient(circle at 90% 16%, rgba(255, 104, 40, 0.14), transparent 22%);
  pointer-events: none;
  z-index: -3;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(calc(100% - var(--page-offset)), var(--wrap));
  margin: 0 auto;
}

main {
  position: relative;
  width: min(calc(100% - var(--page-offset)), var(--wrap));
  margin: 0 auto;
}

main .wrap {
  width: 100%;
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

[hidden] {
  display: none !important;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px);
}

.button--primary {
  color: #1a1003;
  background: var(--accent);
  box-shadow: 0 18px 40px rgba(255, 152, 0, 0.28);
}

.button--primary.button--hero {
  background: linear-gradient(95.47deg, #DA8207 -0.22%, #DD9318 10.66%, #FFCB3C 26.65%, #FFCB3C 78.95%, #E39C1E 93%, #FBC63A 97.24%);
}

.button--muted {
  color: #575757;
  background: #cacaca;
  box-shadow: none;
}

.button--muted:disabled {
  cursor: not-allowed;
  filter: grayscale(0.08);
  transform: none;
}

.button--block {
  width: 100%;
}

.button--hero {
  min-height: 56px;
  min-width: 190px;
  padding: 0 30px;
  font-size: 24px;
  font-weight: 800;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-top: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.logo {
  height: clamp(28px, 4vw, 42px);
  width: auto;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 148px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(255, 183, 0, 0.28);
  border-radius: 999px;
  background: rgba(10, 7, 9, 0.76);
  color: var(--text);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  cursor: pointer;
}

.lang-trigger__flag {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.lang-trigger__name {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.lang-trigger__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.9;
  margin-left: auto;
}

.lang-switch {
  position: relative;
}

.lang-switch.is-open .lang-trigger__chevron {
  transform: rotate(225deg) translateY(1px);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(14, 10, 12, 0.96);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  display: none;
  z-index: 30;
}

.lang-switch.is-open .lang-menu {
  display: grid;
  gap: 4px;
}

.lang-menu__item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}

.lang-menu__item img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.lang-menu__item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.lang-menu__item.is-active {
  background: rgba(255, 191, 49, 0.18);
}

.hero {
  position: relative;
  min-height: clamp(650px, 78vh, 740px);
  padding-bottom: 56px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg main.svg") center -90px / cover no-repeat;
  z-index: -2;
}

.hero::after {
  content: none;
}

.hero__content {
  max-width: 620px;
  padding-top: 64px;
}

.section-title,
.join-card__title,
.modal__title,
.leaderboard-heading__eyebrow {
  text-transform: uppercase;
}

.hero__title {
  margin: 0;
  font-size: clamp(30px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero__title-line {
  display: block;
}

.hero__title-line--primary {
  white-space: nowrap;
}

.hero__fund-label {
  margin: 28px 0 10px;
  color: var(--muted-strong);
  font-size: 17px;
  font-weight: 600;
}

.hero__fund-value {
  margin-bottom: 28px;
  color: var(--accent-solid);
  font-size: clamp(62px, 10vw, 118px);
  line-height: 0.9;
  font-weight: 900;
  /*letter-spacing: -0.05em;*/
  text-shadow: 0 18px 50px rgba(255, 139, 0, 0.18);
}

.feature-strip {
  position: relative;
  z-index: 2;
  margin-top: 14px;
}

.feature-strip .wrap {
  display: grid;
  gap: 18px;
}

.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(180deg, rgba(18, 12, 14, 0.92) 0%, rgba(10, 7, 8, 0.94) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: radial-gradient(circle at 50% 0%, rgba(255, 104, 33, 0.28), transparent 70%);
  opacity: 0.85;
  pointer-events: none;
}

.panel--showcase {
  display: grid;
  gap: 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  padding: 0;
  overflow: visible;
  border-radius: 0;
}

.panel--showcase::before,
.panel--showcase::after {
  content: none;
}

.panel--showcase .section-copy {
  text-align: center;
}

.panel--showcase .section-title {
  line-height: 1.12;
  padding-top: 24px;
}

.panel--showcase .section-description {
  margin-left: auto;
  margin-right: auto;
}

.panel--bonus {
  position: relative;
  display: block;
  min-height: 166px;
  padding-top: clamp(18px, 2.2vw, 28px);
  padding-left: clamp(18px, 2.4vw, 32px);
  padding-right: clamp(250px, 30vw, 420px);
  padding-bottom: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-2xl);
  background:
    linear-gradient(138.67deg, #340D0A 10.48%, #771514 37.85%, #AE1214 49.61%, #871716 63.36%, #340D0A 100.41%) padding-box,
    linear-gradient(180deg, #F2E2C0 50.76%, #E0B485 100%) border-box;
}

.panel--bonus::before,
.panel--bonus::after {
  content: none;
}

.section-copy,
.panel__copy {
  position: relative;
  z-index: 1;
}

.panel__copy--bonus {
  max-width: 640px;
  padding-right: clamp(12px, 2vw, 24px);
  padding-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-title--center {
  text-align: center;
}

.section-description {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.section-description--bonus {
  max-width: 420px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 84px;
  align-items: start;
}

.showcase-dots {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.showcase-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 233, 198, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 233, 198, 0.35);
  cursor: pointer;
  transition: width 0.2s ease, border-radius 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.showcase-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow:
    inset 0 0 0 1px rgba(255, 210, 110, 0.85),
    0 0 12px rgba(255, 170, 40, 0.45);
}

.showcase-card {
  --showcase-number-image: none;
  --showcase-number-width: min(44%, 132px);
  --showcase-number-height: 90%;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: clamp(210px, 20vw, 246px);
  height: clamp(210px, 20vw, 246px);
  padding: 6px 14px 20px;
  border: 2px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(18, 13, 14, 0.92) 0%, rgba(11, 8, 10, 0.94) 100%) padding-box,
    linear-gradient(180deg, #939096 0%, #C85237 100%) border-box;
}

.showcase-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  background: url("../img/lights.svg") center bottom / 100% 100% no-repeat;
  opacity: 0.95;
  pointer-events: none;
  z-index: 0;
}

.showcase-card::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  width: var(--showcase-number-width);
  height: var(--showcase-number-height);
  transform: translateY(-50%);
  background-image: var(--showcase-number-image);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right center;
  opacity: 0.36;
  pointer-events: none;
  z-index: 0;
}

.showcase-card:nth-child(1) {
  --showcase-number-image: url("../img/1.svg");
}

.showcase-card:nth-child(2) {
  --showcase-number-image: url("../img/2.svg");
}

.showcase-card:nth-child(3) {
  --showcase-number-image: url("../img/3.svg");
}

.showcase-card__media {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 0;
  margin-top: -98px;
  margin-bottom: 6px;
}

.showcase-card__media img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.32));
}

.showcase-card:nth-child(1) .showcase-card__media img,
.showcase-card:nth-child(2) .showcase-card__media img {
  height: clamp(214px, 20vw, 252px);
}

.showcase-card:nth-child(3) .showcase-card__media img {
  height: clamp(150px, 12vw, 200px);
}

.showcase-card__name {
  position: relative;
  z-index: 1;
  margin-top: 0;
  padding-top: 0;
  white-space: nowrap;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
}

.bonus-title {
  margin: 0;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.bonus-title span {
  color: var(--accent-solid);
}

.bonus-art {
  --tickets-width: clamp(520px, 40vw, 680px);
  --tickets-height: calc(var(--tickets-width) * 1024 / 1536);
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: var(--tickets-width);
  height: calc(var(--tickets-height) / 2);
  overflow: hidden;
  border-radius: 0 0 calc(var(--radius-2xl) - 2px) 0;
  background-image: url("../img/Tickets.png");
  background-repeat: no-repeat;
  background-size: var(--tickets-width) var(--tickets-height);
  background-position: right top;
  pointer-events: none;
}


.awards-section {
  position: relative;
  z-index: 1;
  padding: 72px 0 30px;
}

.award-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.award-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: space-between;
  gap: 10px;
  min-height: 92px;
  padding: 12px 14px;
  border: 2px solid transparent;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(18, 13, 14, 0.92) 0%, rgba(11, 8, 10, 0.94) 100%) padding-box,
    linear-gradient(180deg, #939096 0%, #C85237 100%) border-box;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.award-card--featured {
  min-height: 122px;
  padding: 14px 16px;
}

.award-card--featured::after {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  right: -2px;
  width: 68px;
  background: url("../img/lights-right.svg") right center / auto 100% no-repeat;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 1) 34%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 1) 34%);
  pointer-events: none;
}

.award-card__tag {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  min-width: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background:
    linear-gradient(#0B0B0E, #0B0B0E) padding-box,
    linear-gradient(226.97deg, #DFC99A 8.05%, #2D181A 76.09%) border-box;
  color: #FF9800;
  z-index: 1;
}

.award-card__tag--round {
  width: 32px;
  height: 32px;
  min-width: 28px;
  padding: 0;
  border-radius: 50%;
}

.award-card__place {
  margin-top: 0;
  color: var(--muted-strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.01em;
}

.award-card__value {
  margin-top: 0;
  color: transparent;
  background: var(--accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.award-card--featured .award-card__place {
  font-size: 20px;
}

.award-card--featured .award-card__value {
  font-size: clamp(52px, 6.6vw, 78px);
}

.awards-note,
.awards-wager {
  margin: 18px 0 0;
  text-align: center;
}

.awards-note {
  position: relative;
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, rgba(255, 164, 51, 0) 0%, rgba(255, 164, 51, 0.5) 50.7%, rgba(255, 164, 51, 0) 100%);
  color: rgba(255, 243, 231, 0.9);
  font-size: 15px;
  line-height: 1.25;
  overflow: hidden;
}

.awards-note::before,
.awards-note::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 152, 0, 0) 0%, #FF9800 53.37%, rgba(255, 152, 0, 0) 100%);
  filter: blur(0.8px);
  pointer-events: none;
}

.awards-note::before {
  top: 0;
}

.awards-note::after {
  bottom: 0;
}

.awards-wager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #FF9800;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.awards-wager__chip {
  width: 32px;
  height: 32px;
  min-height: 26px;
  min-width: 26px;
  border: 1px solid transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background:
    linear-gradient(#0B0B0E, #0B0B0E) padding-box,
    linear-gradient(226.97deg, #DFC99A 8.05%, #2D181A 76.09%) border-box;
  color: #FF9800;
}

.awards-wager__label {
  text-transform: none;
}

.join-section {
  position: relative;
  z-index: 1;
  padding: 20px 0 20px;
}

.join-section__title {
  margin: 10px 0 24px;
  text-align: center;
}

.join-card__title {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  padding-bottom: 24px;
}

.join-card {
  --form-radius: 18px;
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
  padding: 16px;
  border-radius: var(--form-radius);
  background: linear-gradient(180deg, rgba(29, 28, 30, 0.48) 47.6%, rgba(18, 18, 18, 0.35) 100%);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
}

.join-card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 231, 209, 0.33) 0%, rgba(173, 173, 173, 0.29) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.join-card > * {
  position: relative;
  z-index: 1;
}

.join-card__subtitle {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: "Onest", "Segoe UI", sans-serif;
  font-size: clamp(16px, 2vw, 20px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  vertical-align: middle;
  padding: 12px;
}

.auth-tabs {
  display: flex;
  gap: 22px;
  margin: 4px 0 18px;
  align-items: flex-end;
  justify-content: center;
}

.auth-tab {
  position: relative;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  font-weight: 950;
  padding: 10px 2px 12px;
  transition: background 0.16s ease, color 0.16s ease;
}

.auth-tab.is-active {
  background: transparent;
  color: var(--text);
}

.auth-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(255, 160, 0, 0) 0%,
    rgba(255, 160, 0, .6) 18%,
    rgba(255, 210, 110, .82) 50%,
    rgba(255, 160, 0, .6) 82%,
    rgba(255, 160, 0, 0) 100%
  );
}

.auth-form {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.auth-panel {
  display: grid;
  gap: 10px;
  width: 66.6667%;
  margin: 0 auto;
}

.field {
  display: block;
}

.field__label {
  display: none;
}

.field__control {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 231, 209, 0.2);
  border-radius: var(--form-radius);
  background: rgba(6, 6, 8, 0.56);
  color: var(--text);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.field__control::placeholder {
  color: rgba(255, 243, 231, 0.42);
}

.field__control:focus {
  border-color: rgba(255, 191, 49, 0.72);
  box-shadow: none;
}

.auth-panel .button {
  min-height: 50px;
  padding: 12px 22px;
  font-size: 16px;
  border-radius: var(--form-radius);
}

.status {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: var(--form-radius);
  font-size: 14px;
  line-height: 1.5;
}

.status--error {
  border: 1px solid rgba(223, 35, 35, 0.45);
  background: rgba(72, 18, 22, 0.45);
  color: #ffd7d7;
}

.status--success {
  border: 1px solid rgba(255, 191, 49, 0.38);
  background: rgba(73, 48, 11, 0.45);
  color: #ffe7ad;
}

.join-card__foot {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  justify-items: center;
}

.join-card__links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}

.join-card__links a {
  color: #ff9800;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 152, 0, 0.75);
}

.campaign-stack {
  display: grid;
  gap: 10px;
  width: 100%;
  justify-items: center;
  text-align: center;
}

.campaign-note {
  position: relative;
  width: 66.6667%;
  margin: 0 auto;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  text-align: center;
  white-space: nowrap;
  background: linear-gradient(90deg, rgba(255, 164, 51, 0) 0%, rgba(255, 164, 51, 0.5) 50.7%, rgba(255, 164, 51, 0) 100%);
}

.campaign-note::before,
.campaign-note::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 152, 0, 0) 0%, #FF9800 53.37%, rgba(255, 152, 0, 0) 100%);
  filter: blur(0.8px);
  pointer-events: none;
}

.campaign-note::before {
  top: 0;
}

.campaign-note::after {
  bottom: 0;
}

.campaign-note span {
  display: inline;
  color: rgba(255, 243, 231, 0.82);
  font-size: 13px;
  white-space: nowrap;
}

.campaign-note b {
  display: inline;
  margin: 0 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.campaign-note--results {
  background: linear-gradient(90deg, rgba(52, 13, 10, 0) 0%, #B50C00 50.7%, rgba(52, 13, 10, 0) 100%);
}

.campaign-note--results::before,
.campaign-note--results::after {
  background: linear-gradient(90deg, rgba(181, 12, 0, 0) 0%, rgba(255, 155, 138, 0.85) 53.37%, rgba(181, 12, 0, 0) 100%);
}

.join-card__disclaimer {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.telegram-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: max-content;
  max-width: 100%;
  margin: 28px auto 48px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 231, 209, 0.26);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 214, 104, 0.86) 0%, rgba(255, 167, 17, 0.92) 100%);
  color: #221302;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 12px 30px rgba(255, 171, 23, 0.2);
  white-space: nowrap;
}

.telegram-button__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.telegram-button__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 50;
}

.modal.is-open {
  display: flex;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.72);
  backdrop-filter: blur(10px);
}

.modal__dialog {
  position: relative;
  width: min(100%, 720px);
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  background: #111113;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
}

.modal__dialog--language {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 380px;
}

.modal__dialog--success {
  width: min(100%, 560px);
  padding: 46px 40px 34px;
  display: grid;
  gap: 16px;
  justify-items: center;
  border-color: rgba(255, 200, 66, 0.22);
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 155, 20, 0.16), transparent 56%),
    linear-gradient(180deg, #0f1015 0%, #0a0b0f 100%);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.modal__dialog--success .modal__close {
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.16s ease, color 0.16s ease;
}

.modal__dialog--success .modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff7ef;
}

.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  inset: 18px 8px;
  height: 2px;
  background: currentColor;
}

.modal__close::before {
  transform: rotate(45deg);
}

.modal__close::after {
  transform: rotate(-45deg);
}

.modal__dialog--success .modal__close::before,
.modal__dialog--success .modal__close::after {
  inset: 16px 9px;
}

.modal__title {
  margin: 0;
  color: var(--accent-solid);
  font-size: clamp(36px, 7vw, 62px);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.modal__title--language {
  max-width: 420px;
}

.modal__title--success {
  margin-top: 6px;
  max-width: 9ch;
  font-size: clamp(44px, 7.2vw, 62px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  font-weight: 760;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 22px;
}

.language-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  background: rgba(20, 14, 18, 0.9);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  padding: 0 12px;
}

.language-option img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.language-option span {
  font-size: 14px;
  font-weight: 600;
}

.language-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 191, 49, 0.45);
}

.language-option.is-selected {
  border-color: rgba(255, 191, 49, 0.75);
  background: rgba(255, 166, 0, 0.12);
}

.modal__text {
  margin: 18px auto 0;
  max-width: 32ch;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.modal__text--success {
  margin: 0;
  max-width: 31ch;
  color: rgba(255, 243, 231, 0.82);
  font-size: 17px;
  line-height: 1.52;
  letter-spacing: 0.01em;
}

.modal__submit {
  width: min(320px, 100%);
}

.modal__submit--success {
  width: min(360px, 100%);
  min-height: 56px;
  margin-top: 4px;
  padding: 0 24px;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: 0;
}

.reveal {
  animation: reveal-up 0.7s ease both;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .lang-menu {
    display: none !important;
  }

  .language-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 640px;
  }

  .hero::before {
    background: url("../img/bg main.svg") 66% -55px / cover no-repeat;
  }

  .showcase-grid,
  .award-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-grid {
    padding-top: 72px;
    margin-top: 18px;
  }

  .panel--bonus {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-left: 18px;
    padding-right: 18px;
  }

  .panel__copy--bonus {
    max-width: 100%;
    padding-right: 18px;
    padding-bottom: 12px;
  }

  .showcase-card {
    min-height: 224px;
    height: 224px;
  }

  .showcase-card__media {
    margin-top: -88px;
  }

  .showcase-card:nth-child(1) .showcase-card__media img,
  .showcase-card:nth-child(2) .showcase-card__media img {
    height: 224px;
  }

  .showcase-card:nth-child(3) .showcase-card__media img {
    height: 198px;
  }

  .bonus-art {
    --tickets-width: clamp(300px, 66vw, 500px);
    --tickets-height: calc(var(--tickets-width) * 1024 / 1536);
    position: relative;
    z-index: 1;
    right: auto;
    bottom: auto;
    width: 100%;
    height: calc(var(--tickets-height) * 2 / 3);
    border-radius: 0 0 calc(var(--radius-2xl) - 2px) calc(var(--radius-2xl) - 2px);
    background-size: var(--tickets-width) var(--tickets-height);
    background-position: center top;
  }
}

@media (min-width: 721px) and (max-width: 980px) {
  :root {
    --page-offset: 76px;
  }

  .showcase-card {
    flex: 0 0 72%;
    min-height: 236px;
    height: 236px;
    padding: 8px 12px 16px;
    scroll-snap-align: center;
  }

  .showcase-grid {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding: 72px 2px 4px;
    margin-top: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .showcase-grid::-webkit-scrollbar {
    display: none;
  }

  .showcase-dots {
    display: flex;
    margin-top: 6px;
  }

  .panel--bonus {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 18px 16px 0;
  }

  .panel__copy--bonus {
    max-width: 100%;
    margin: 0 auto;
    padding-right: 0;
    padding-bottom: 8px;
    text-align: center;
  }

  .section-description--bonus {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .bonus-art {
    --tickets-width: clamp(420px, 92vw, 620px);
    --tickets-height: calc(var(--tickets-width) * 1024 / 1536);
    justify-self: center;
    width: 100%;
    height: calc(var(--tickets-height) * 2 / 3);
    margin-top: -8px;
    border-radius: 0 0 26px 26px;
    background-position: center -2px;
    background-size: var(--tickets-width) var(--tickets-height);
  }

  .award-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .award-card {
    min-height: 86px;
    padding: 10px 12px;
  }

  #awardGrid .award-card:first-child {
    grid-column: 1 / -1;
    min-height: 138px;
    padding: 14px 16px;
  }

  #awardGrid .award-card:first-child.award-card--featured::after {
    right: -2px;
    width: 56px;
    background-position: right center;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 1) 62%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 1) 62%);
  }

  #awardGrid .award-card:first-child .award-card__place {
    font-size: 22px;
  }

  #awardGrid .award-card:first-child .award-card__value {
    font-size: 62px;
  }

  #awardGrid .award-card:nth-child(2),
  #awardGrid .award-card:nth-child(3) {
    min-height: 108px;
    padding: 12px 14px;
  }

  #awardGrid .award-card:nth-child(2).award-card--featured::after,
  #awardGrid .award-card:nth-child(3).award-card--featured::after {
    width: 46px;
  }

  #awardGrid .award-card:nth-child(2) .award-card__value,
  #awardGrid .award-card:nth-child(3) .award-card__value {
    font-size: 46px;
  }

  #awardGrid .award-card:nth-child(n+4) {
    min-height: 76px;
    padding: 10px 12px;
    gap: 6px;
  }

  #awardGrid .award-card:nth-child(n+4) .award-card__place {
    font-size: 14px;
  }

  #awardGrid .award-card:nth-child(n+4) .award-card__value {
    font-size: 30px;
  }

  #awardGrid .award-card:nth-child(n+4) .award-card__tag {
    top: 7px;
    right: 7px;
    min-height: 22px;
    min-width: 22px;
    font-size: 10px;
  }

  .award-card__tag {
    top: 8px;
    right: 8px;
    min-height: 24px;
    min-width: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .award-card__tag--round {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }

  .award-card__place {
    font-size: 17px;
  }

  .award-card__value {
    font-size: 42px;
  }

  .award-card--featured .award-card__place {
    font-size: 19px;
  }

  .award-card--featured .award-card__value {
    font-size: 50px;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: center;
    padding-top: 18px;
  }

  .hero {
    min-height: 560px;
    padding-bottom: 52px;
  }

  .hero__content {
    max-width: 100%;
    padding-top: 180px;
  }

  .feature-strip {
    margin-top: 10px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    padding-top: 66px;
    margin-top: 16px;
  }

  .campaign-stack {
    gap: 8px;
  }
}

@media (max-width: 560px) {
  :root {
    --page-offset: 30px;
  }

  .topbar {
    gap: 10px;
    padding-top: 14px;
  }

  .lang-trigger {
    min-width: 130px;
    height: 40px;
    padding: 0 10px;
  }

  .hero {
    min-height: 520px;
    padding-bottom: 44px;
  }

  .hero::before {
    background: url("../img/bg main.svg") right -75px bottom 0 / auto 100% no-repeat;
    filter: brightness(0.68);
    opacity: 1;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }

  .hero__title {
    font-size: clamp(28px, 10vw, 42px);
  }

  .hero__fund-label {
    margin-top: 18px;
    font-size: 14px;
  }

  .hero__fund-value {
    font-size: clamp(52px, 18vw, 76px);
    margin-bottom: 0;
  }

  .button {
    min-height: 52px;
    padding: 0 20px;
    font-size: 15px;
  }

  .button--hero {
    min-height: 46px;
    min-width: 160px;
    font-size: 18px;
  }

  .section-title {
    font-size: 26px;
  }

  .panel,
  .join-card,
  .modal__dialog {
    border-radius: 24px;
  }

  .join-card {
    --form-radius: 24px;
    padding: 12px;
  }

  .showcase-card {
    flex: 0 0 88%;
    min-height: 238px;
    height: 238px;
    padding: 8px 10px 16px;
    scroll-snap-align: center;
  }

  .showcase-card::after {
    right: 0;
    width: min(42%, 118px);
    height: 86%;
    opacity: 0.42;
  }

  .showcase-card::before {
    left: 0;
    right: 0;
    bottom: 0;
    height: 56px;
    opacity: 1;
    filter: brightness(1.35) saturate(1.2);
  }

  .showcase-card__media {
    margin-top: -86px;
  }

  .showcase-card:nth-child(1) .showcase-card__media img,
  .showcase-card:nth-child(2) .showcase-card__media img {
    height: 232px;
  }

  .showcase-card:nth-child(3) .showcase-card__media img {
    height: 206px;
  }

  .showcase-grid {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 66px 2px 4px;
    margin-top: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .showcase-grid::-webkit-scrollbar {
    display: none;
  }

  .showcase-dots {
    display: flex;
    margin-top: 4px;
  }

  .panel--bonus {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 16px 12px 0;
  }

  .panel__copy--bonus {
    padding-right: 0;
    padding-bottom: 4px;
    margin: 0 auto;
    text-align: center;
  }

  .section-description--bonus {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .bonus-art {
    --tickets-width: clamp(340px, 118vw, 520px);
    --tickets-height: calc(var(--tickets-width) * 1024 / 1536);
    justify-self: center;
    width: 100%;
    height: calc(var(--tickets-height) * 2 / 3);
    margin-top: -8px;
    border-radius: 0 0 20px 20px;
    background-position: center -4px;
    background-size: var(--tickets-width) var(--tickets-height);
  }

  .award-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .award-card {
    min-height: 74px;
    padding: 8px 10px;
  }

  #awardGrid .award-card:first-child {
    grid-column: 1 / -1;
    min-height: 126px;
    padding: 12px 14px;
  }

  #awardGrid .award-card:first-child.award-card--featured::after {
    right: -2px;
    width: 48px;
    background-position: right center;
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 1) 62%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 24%, rgba(0, 0, 0, 1) 62%);
  }

  #awardGrid .award-card:first-child .award-card__place {
    font-size: 20px;
  }

  #awardGrid .award-card:first-child .award-card__value {
    font-size: 58px;
  }

  #awardGrid .award-card:nth-child(2),
  #awardGrid .award-card:nth-child(3) {
    min-height: 98px;
    padding: 10px 12px;
  }

  #awardGrid .award-card:nth-child(2).award-card--featured::after,
  #awardGrid .award-card:nth-child(3).award-card--featured::after {
    width: 42px;
  }

  #awardGrid .award-card:nth-child(2) .award-card__value,
  #awardGrid .award-card:nth-child(3) .award-card__value {
    font-size: 42px;
  }

  #awardGrid .award-card:nth-child(n+4) {
    min-height: 68px;
    padding: 8px 10px;
    gap: 4px;
  }

  #awardGrid .award-card:nth-child(n+4) .award-card__place {
    font-size: 13px;
  }

  #awardGrid .award-card:nth-child(n+4) .award-card__value {
    font-size: 26px;
  }

  #awardGrid .award-card:nth-child(n+4) .award-card__tag {
    top: 6px;
    right: 6px;
    min-height: 20px;
    min-width: 20px;
    font-size: 9px;
  }

  .award-card__tag {
    top: 8px;
    right: 8px;
    min-height: 24px;
    min-width: 24px;
    padding: 0 8px;
    font-size: 10px;
  }

  .award-card__tag--round {
    width: 24px;
    height: 24px;
    min-width: 24px;
  }

  .award-card__place {
    font-size: 16px;
  }

  .award-card__value {
    font-size: 40px;
  }

  .award-card--featured .award-card__place {
    font-size: 18px;
  }

  .award-card--featured .award-card__value {
    font-size: 46px;
  }

  .awards-note {
    font-size: 13px;
    padding: 7px 10px;
  }

  .awards-note::before,
  .awards-note::after {
    left: 14px;
    right: 14px;
  }

  .awards-wager {
    font-size: 13px;
  }

  .awards-wager__chip {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    font-size: 10px;
  }

  .join-card__title {
    font-size: 34px;
  }

  .auth-form {
    padding: 0;
  }

  .auth-panel {
    width: 100%;
  }

  .auth-tabs {
    margin: 0 0 10px;
  }

  .auth-tab {
    min-height: 42px;
    font-size: 15px;
  }

  .join-card__links {
    flex-direction: column;
  }

  .campaign-note {
    width: 100%;
    font-size: 11px;
    padding: 8px;
    white-space: normal;
  }

  .campaign-note span {
    font-size: 11px;
    white-space: normal;
  }

  .campaign-note b {
    display: block;
    margin: 2px 0 0;
    font-size: 12px;
    white-space: normal;
  }

  .campaign-note::before,
  .campaign-note::after {
    left: 14px;
    right: 14px;
  }

  .telegram-button {
    width: auto;
    max-width: 178px;
    min-height: 42px;
    padding: 0 12px;
    margin: 18px auto 26px;
    font-size: 12px;
  }

  .telegram-button span:not(.telegram-button__icon) {
    display: block;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .modal {
    padding: 14px;
  }

  .modal__dialog {
    padding: 26px 18px 18px;
  }

  .modal__dialog--language {
    min-height: 430px;
  }

  .modal__dialog--success {
    padding: 38px 20px 22px;
    gap: 14px;
  }

  .modal__dialog--success .modal__close {
    top: 12px;
    right: 12px;
  }

  .modal__title--success {
    margin-top: 2px;
    max-width: none;
    font-size: clamp(34px, 11vw, 48px);
  }

  .modal__text--success {
    max-width: none;
    font-size: 15px;
    line-height: 1.5;
  }

  .language-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .modal__submit {
    width: 100%;
  }

  .modal__submit--success {
    min-height: 52px;
    font-size: 15px;
  }
}
