@import url("https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #262626;
  --bg-2: #202020;
  --bg-3: #2b2b2b;
  --border: #383838;
  --text: #8b8b8b;
  --title: #eef4f6;
  --primary: #1975ef;
  --primary-hover: #3083f1;
  --primary-rgb: 25, 117, 239;
  --white: #fff;
  --danger: #f24f63;
  --radius: 10px;
  --header-h: 64px;
  --bottom-h: 72px;
  --font: "Rubik", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.app {
  min-height: 100dvh;
  padding-bottom: calc(var(--bottom-h) + 24px);
}

/* Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(38, 38, 38, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.navbar__inner {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand__name {
  display: flex;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}

.brand__name::before {
  content: "Wilder";
}

.brand__name span {
  color: var(--title);
}

.brand__name span::before {
  content: "";
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: var(--bg-2);
  color: var(--title);
  display: grid;
  place-items: center;
}

.btn-primary {
  appearance: none;
  border: 0;
  background: var(--primary);
  color: var(--white);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-white {
  appearance: none;
  border: 0;
  background: var(--white);
  color: #111;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
}

/* Main */
.main {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 16px;
}

/* Promo slider */
.home-slider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a56d6 0%, #1975ef 45%, #3d8bfd 100%);
  min-height: 180px;
  color: var(--white);
}

.home-slider__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 40%, rgba(255, 255, 255, 0.18), transparent 35%),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 0 8px,
      transparent 8px 18px
    );
  opacity: 0.55;
}

.home-slider__irish {
  position: absolute;
  right: -8%;
  top: 0;
  height: 100%;
  width: auto;
  pointer-events: none;
  opacity: 0.95;
}

.home-slider__content {
  position: relative;
  z-index: 1;
  padding: 22px 20px;
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-slider__title {
  display: inline-block;
  width: fit-content;
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
}

.home-slider__text {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 34ch;
}

.home-slider .btn-white {
  width: fit-content;
  margin-top: 4px;
}

/* Promo code */
.promo-card {
  margin-top: 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.35);
  background: linear-gradient(180deg, rgba(var(--primary-rgb), 0.12), rgba(32, 32, 32, 0.9));
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.promo-card__label {
  color: var(--title);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

.promo-card__hint {
  font-size: 13px;
}

.promo-card__code-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.promo-code {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--primary);
  background: rgba(0, 0, 0, 0.28);
  border: 1px dashed rgba(var(--primary-rgb), 0.55);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 160px;
  text-align: center;
}

.btn-copy {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
}

.btn-copy.is-copied {
  background: #52cba4;
}

/* Telegram */
.tg-card {
  margin-top: 14px;
  border: 1px solid rgba(40, 158, 217, 0.35);
  background: linear-gradient(180deg, rgba(40, 158, 217, 0.14), rgba(32, 32, 32, 0.92));
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tg-card__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tg-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #289ed9;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  flex: 0 0 auto;
}

.tg-card__title {
  color: var(--title);
  font-weight: 700;
  font-size: 16px;
}

.tg-card__hint {
  font-size: 13px;
  margin-top: 2px;
}

.btn-tg {
  appearance: none;
  border: 0;
  background: #289ed9;
  color: #fff !important;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.btn-tg:hover {
  background: #35a9e0;
}

/* Giveaway */
.giveaway {
  margin-top: 14px;
  border: 1px solid rgba(var(--primary-rgb), 0.25);
  background: var(--bg-2);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

.giveaway__title {
  color: var(--title);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px;
}

.giveaway__text {
  margin: 0 0 8px;
  font-size: 15px;
}

.giveaway__text strong {
  color: var(--primary);
  font-weight: 700;
}

.giveaway__link {
  font-weight: 600;
}

.giveaway__timer {
  color: var(--title);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Tabs */
.tabs {
  margin-top: 18px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tab.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.12);
}

.tab__count {
  font-size: 12px;
  opacity: 0.8;
}

/* Slots grid */
.slots-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 768px) {
  .slots-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
  }

  .home-slider {
    min-height: 220px;
  }

  .home-slider__title {
    font-size: 22px;
  }
}

@media (min-width: 1100px) {
  .slots-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.slots-item {
  position: relative;
}

.slots-item a {
  display: block;
  color: inherit;
}

.slots__badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  transform: translate(-8px, -25%);
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 0 8px 0 8px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  border-left: 2px solid rgba(255, 255, 255, 0.5);
}

.slots__picture {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
  background: #111;
  aspect-ratio: 275 / 368;
}

.slots__picture .img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.slots__overlay {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    15deg,
    rgba(var(--primary-rgb), 1) 0%,
    rgba(var(--primary-rgb), 0) 100%
  );
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 10px;
}

.slots__name {
  color: var(--white);
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
}

.slots__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-size: 22px;
}

.slots-item a:hover .img,
.slots-item a:focus-visible .img {
  transform: scale(1.12);
  filter: blur(2px);
}

.slots-item a:hover .slots__overlay,
.slots-item a:focus-visible .slots__overlay {
  opacity: 1;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 20px));
  height: var(--bottom-h);
  background: #1b1b1b;
  border: 1px solid #333;
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  z-index: 60;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  padding: 0 6px;
}

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #cfcfcf;
  font-size: 10px;
  font-weight: 500;
  min-height: 56px;
}

.bottom-nav__item i {
  font-size: 18px;
}

.bottom-nav__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: -22px;
  box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.45);
  border: 3px solid #1b1b1b;
}

.bottom-nav__play i {
  font-size: 22px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-h) + 24px);
  transform: translateX(-50%) translateY(20px);
  background: #111;
  color: #fff;
  border: 1px solid #333;
  padding: 10px 14px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
  z-index: 70;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.age-note {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #666;
}

@media (max-width: 480px) {
  .home-slider__irish {
    right: -22%;
    opacity: 0.75;
  }

  .home-slider__content {
    max-width: 78%;
  }

  .giveaway {
    flex-direction: column;
    align-items: flex-start;
  }

  .giveaway__timer {
    font-size: 28px;
  }
}
