* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body { min-height: 100vh; }

body {
  background: #0B0D0F;
  font-family: 'Montserrat', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  padding-top: 92px;
}

.page-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.main-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 4;
  overflow: hidden;
  flex: 1;
}

.bg-images {
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  overflow: visible;
}

.bg-images img {
  position: absolute;
  object-fit: contain;
  max-width: none;
}

.bg-images .case-howl   { width: 809.2px; height: 809.2px; left: 1201px; top: 609px; filter: blur(8px);   opacity: 0.18; transform: rotate(14.11deg); }
.bg-images .case-vulcan { width: 809.2px; height: 809.2px; left: -102px; top: 817px;  filter: blur(7.5px); opacity: 0.15; transform: rotate(-19.27deg); }
.bg-images .vice        { width: 170.99px; height: 170.99px; left: 1438px; top: 527px; filter: blur(10.75px); opacity: 0.13; transform: rotate(14.55deg); }
.bg-images .talon       { width: 360px;   height: 360px;   left: 242px;  top: 469px; filter: blur(10.75px); opacity: 0.12; transform: rotate(-14.69deg); }

.page-bg {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 1920px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
  top: 0;
}

.lb-lights-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.lb-lights-container .lb-lights-outside {
  position: absolute;
  top: 0;
  left: 50%;
  width: 2150px;
  height: 1970px;
  transform: translateX(-50%);
  pointer-events: none;
  overflow: visible;
}

.lb-lights-container .lb-lights-outside .ellipse-7,
.lb-lights-container .lb-lights-outside .ellipse-8,
.lb-lights-container .lb-lights-outside .ellipse-9 {
  position: absolute;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) rotate(-5.3deg);
}

.lb-lights-container .lb-lights-outside .ellipse-7 {
  width: 810px;
  height: 540px;
  background: #4C5864;
  opacity: 0.31;
  filter: blur(170px);
}

.lb-lights-container .lb-lights-outside .ellipse-8 {
  width: 1100px;
  height: 740px;
  background: #6207E2;
  opacity: 0.25;
  filter: blur(170px);
}

.lb-lights-container .lb-lights-outside .ellipse-9 {
  width: 690px;
  height: 300px;
  background: #6207E2;
  opacity: 0.30;
  filter: blur(70px);
}

.section-wrapper {
  width: 1026px;
  max-width: 95%;
  z-index: 4;
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.section-spacing {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 120px;
  padding-bottom: 60px;
  flex: 1;
}

.top-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 92px;
  padding: 8px 5%;
  background: rgba(9, 10, 12, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  z-index: 1000;
  min-width: 0;
}

.top-bar .left {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.top-bar .left .logo-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.top-bar .left .logo-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.top-bar .left .logo-wrapper .logo-default { opacity: 0; }
.top-bar .left .logo-wrapper .logo-gem     { opacity: 1; }
.top-bar .left .logo-wrapper .logo-win     { opacity: 0; }

.logo-text {
  display: flex;
  font-style: italic;
  font-weight: 900;
  font-size: 20px;
  line-height: 20px;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-text .griff { color: #FFFFFF; }
.logo-text .rewards { color: #6207E2; }

    .top-bar .middle {
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: clamp(20px, 4vw, 44px);
      height: 40px;
    }

    .top-bar .middle a {
      text-decoration: none;
      color: #B3BBC4;
      font-size: clamp(12px, 1.2vw, 16px);
      font-weight: 600;
      line-height: 20px;
      transition: color 0.25s ease;
      white-space: nowrap;
    }

.top-bar .middle a:hover:not(.leaderboards):not(.raffles) { color: #6207E2; }

.top-bar .middle .leaderboards,
.top-bar .middle .raffles { display: flex; align-items: center; gap: 4px; }

.top-bar .middle .leaderboards .lb-text { color: #B3BBC4; transition: color 0.25s ease; }
.top-bar .middle .leaderboards .prize   { color: #6207E2; }
.top-bar .middle .leaderboards:hover .lb-text { color: #6207E2; }

.top-bar .middle .raffles .rf-text { color: #6207E2; transition: color 0.25s ease; }
.top-bar .middle .raffles .prize   { color: #6207E2; }
.top-bar .middle .raffles:hover .rf-text { color: #6207E2; }

.top-bar .middle a.active-nav { color: #6207E2; }
.top-bar .middle a.active-nav .lb-text,
.top-bar .middle a.active-nav .rf-text { color: #6207E2; }

.top-bar .right { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 14px 26px;
  border-radius: 7px;
  border-top: 2px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  transition: filter 0.3s ease;
  white-space: nowrap;
}

.btn--join { background: #6207E2; }
.btn--join:hover { filter: brightness(0.65); }

.bonuses-page-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  isolation: isolate;
  width: 491.46px;
  max-width: 100%;
  position: relative;
  margin-top: 20px;
}

.bonuses-page-title .check-out-exclusive {
  width: 230px;
  height: 11px;
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  text-align: center;
}

.bonuses-page-title .bonuses-title {
  width: 100%;
  max-width: 487px;
  height: 67px;
  font-weight: 900;
  font-size: clamp(48px, 12vw, 96px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #6207E2;
  transform: matrix(1, 0, -0.07, 1, 0, 0);
  text-align: center;
  white-space: nowrap;
  z-index: 1;
  margin-bottom: 15px;
  text-shadow: 0 0 28px rgba(98, 7, 226, 0.6), 0 0 60px rgba(98, 7, 226, 0.3);
}

.bonuses-page-title .ellipse-bonus-bg {
  position: absolute;
  width: 353px;
  max-width: 90%;
  height: 55px;
  left: 52.49px;
  top: 34px;
  background: #6207E2;
  mix-blend-mode: screen;
  filter: blur(65.45px);
  transform: rotate(-2.76deg);
  z-index: 2;
  pointer-events: none;
  border-radius: 50%;
}

.raffles-wrapper {
  width: 940px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  position: relative;
  z-index: 5;
  margin-top: -50px;
}

.switch-tabs {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 29px;
  width: 100%;
  max-width: 700px;
  height: 61px;
  flex-wrap: nowrap;
  z-index: 5;
}

.tab-btn {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px 44px;
  height: 61px;
  border-radius: 7px;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(24, 141, 178, 0.05);
  opacity: 0.5;
  flex: 0 1 auto;
}

.tab-btn.active {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #6207E2;
  opacity: 1;
}

.tab-btn:hover { opacity: 0.8; }

.tab-btn.disabled { opacity: 0.25; cursor: not-allowed; pointer-events: none; }
.tab-btn.disabled img { filter: grayscale(1) brightness(0.6); }

.tab-btn img { object-fit: contain; filter: brightness(0.7); }

.tab-btn.roobet-tab img,
.tab-btn.csgogem-tab img { width: 130px; height: 35px; }

.tab-btn.csgowin-tab img { width: 130px; height: 17px; }

.tab-btn.active img { filter: brightness(1); }

.rate-card {
  position: relative;
  width: 100%;
  padding: 34px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  background: #080A0C4f;
  border: 1.3px solid #4a1a8a;
  border-radius: 6.5px;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.7s ease;
}

.rate-card .card-lights {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  border-radius: inherit;
}

.rate-card .card-lights .ellipse-7,
.rate-card .card-lights .ellipse-8,
.rate-card .card-lights .ellipse-9 {
  position: absolute;
  border-radius: 50%;
  transition: transform 0.7s ease, background 0.7s ease;
  transform: rotate(-5.3deg);
}

.rate-card .card-lights .ellipse-7 {
  width: 518.25px; height: 348.04px;
  background: #4C5864; opacity: 0.23; filter: blur(210.5px);
  left: calc(50% - 259.125px + 222.51px);
  top: calc(50% - 174.02px + 4.87px);
}

.rate-card .card-lights .ellipse-8 {
  width: 704.57px; height: 473.17px;
  background: #6207E2; opacity: 0.18; filter: blur(210.5px);
  left: calc(50% - 352.285px + 217.13px);
  top: calc(50% - 236.585px - 3.46px);
}

.rate-card .card-lights .ellipse-9 {
  width: 439.51px; height: 192.69px;
  background: #6207E2; opacity: 0.23; filter: blur(85.95px);
  left: calc(50% - 219.755px + 229.51px);
  top: calc(50% - 96.345px + 48.03px);
}

.rate-card:hover .card-lights .ellipse-7 { transform: translate(-380px, 120px) rotate(-5.3deg); }
.rate-card:hover .card-lights .ellipse-8 { transform: translate(-370px, 110px) rotate(-5.3deg); }
.rate-card:hover .card-lights .ellipse-9 { transform: translate(-400px, 130px) rotate(-5.3deg); }

.rate-side { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 2; }

.rate-num {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: clamp(40px, 9vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.rate-label { font-weight: 700; font-size: 14px; color: #B3BBC4; }

.rate-eq {
  position: relative;
  font-weight: 900;
  font-size: clamp(32px, 6vw, 52px);
  color: #6207E2;
  z-index: 2;
  text-shadow: 0 0 20px rgba(98, 7, 226, 0.6);
}

.rate-note {
  width: 100%;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #B3BBC4;
  margin-top: -10px;
}

.prize-pool {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.prize-pool-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px;
}

.prize-pool-head .title,
.prize-pool-head .total {
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #B3BBC4;
}

.prize-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 8px;
  width: 100%;
}

.prize-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  background: rgba(98, 7, 226, 0.055);
  border: 1.3px solid rgba(98, 7, 226, 0.2);
  border-radius: 6.5px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.prize-pill:hover {
  border-color: rgba(98, 7, 226, 0.55);
  background: rgba(98, 7, 226, 0.12);
}

.prize-pill .amount {
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.prize-pill .coin {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
}

.stat-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 22px;
  background: #080A0C4f;
  border: 1.3px solid #4a1a8a;
  border-radius: 6.5px;
}

.stat-tile .stat-name {
  font-weight: 600;
  font-size: 13px;
  color: #B3BBC4;
}

.stat-tile .stat-value {
  font-weight: 900;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}

.stat-tile .stat-value.purple { color: #6207E2; }

.ticket-table {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
}

.ticket-head,
.ticket-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 110px 150px;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

.ticket-head {
  height: 50px;
  background: #080A0C;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px 5px 0 0;
  font-weight: 600;
  font-size: 14px;
  color: #4C5864;
}

.ticket-head span:nth-child(1),
.ticket-head span:nth-child(3),
.ticket-head span:nth-child(4) { text-align: center; }

.ticket-body-wrap {
  position: relative;
  height: 500px;
  border-radius: 0 0 5px 5px;
}

.ticket-body {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.ticket-body::-webkit-scrollbar { display: none; }

.ticket-scrollbar {
  position: absolute;
  top: 4px;
  bottom: 4px;
  right: 2px;
  width: 4px;
  border-radius: 2px;
  background: transparent;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.ticket-scrollbar.visible { opacity: 1; }

.ticket-scrollbar .thumb {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  background: rgba(98, 7, 226, 0.6);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.ticket-scrollbar .thumb:hover { background: rgba(98, 7, 226, 0.9); }

.ticket-row {
  height: 50px;
  background: rgba(98, 7, 226, 0.055);
  border-left: 1px solid rgba(98, 7, 226, 0.12);
  border-right: 1px solid rgba(98, 7, 226, 0.12);
  border-bottom: 1px solid rgba(98, 7, 226, 0.12);
  font-weight: 700;
  font-size: 14px;
  color: #FFFFFF;
}

.ticket-row:last-child { border-radius: 0 0 5px 5px; }

.ticket-row .rank {
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.ticket-row .rank .hash { color: #6207E2; }
.ticket-row .rank .place-num { color: #FFFFFF; }

.ticket-row .who { display: flex; align-items: center; gap: 8px; min-width: 0; }

.ticket-row .who img {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(98, 7, 226, 0.3);
}

.ticket-row .who span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  font-size: 14px;
  color: #B3BBC4;
}

.ticket-row .tix {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
  color: #B3BBC4;
}

.ticket-row .tix svg { width: 13px; height: 13px; flex-shrink: 0; color: #6207E2; }

.ticket-row .chance {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
  color: #B3BBC4;
  align-items: center;
  text-align: center;
}

.ticket-row .chance .bar {
  width: 70%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin: 0 auto;
}

.ticket-row .chance .bar i {
  display: block;
  height: 100%;
  background: #6207E2;
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.ticket-empty {
  padding: 40px 24px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  color: #B3BBC4;
  background: rgba(98, 7, 226, 0.055);
  border: 1px solid rgba(98, 7, 226, 0.12);
  border-top: 0;
}

.footer-lights {
  position: absolute;
  width: 100%;
  height: 500px;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.footer-lights .ellipse-7 {
  position: absolute;
  width: 787px;
  height: 400px;
  left: 50%;
  top: 50px;
  background: #4C5864;
  opacity: 0.25;
  filter: blur(150px);
  transform: translateX(-50%) rotate(-5.3deg);
  border-radius: 50%;
}

.footer-lights .ellipse-9 {
  position: absolute;
  width: 667px;
  height: 300px;
  left: 50%;
  top: 100px;
  background: #6207E2;
  opacity: 0.25;
  filter: blur(80px);
  transform: translateX(-50%) rotate(-5.3deg);
  border-radius: 50%;
}

.footer {
  box-sizing: border-box;
  width: 100%;
  background: #080A0C;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
  z-index: 5;
  flex-shrink: 0;
  padding: 75px 40px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 421px;
}

.footer .footer-main {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1451px;
  z-index: 1;
  position: relative;
  gap: 40px;
  flex: 1;
}

.footer .footer-left {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 60px;
  flex-wrap: wrap;
}

.footer .footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 17px; }

.footer .footer-griff-rewards {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-style: italic;
  font-weight: 900;
  font-size: 48px;
  line-height: 90%;
  letter-spacing: -0.02em;
  transform: matrix(1, 0, -0.07, 1, 0, 0);
  text-align: center;
  margin-right: 125px;
}

.footer .footer-griff-rewards .griff { color: #FFFFFF; display: block; }
.footer .footer-griff-rewards .rewards { color: #6207E2; display: block; margin-top: -5px; }

.footer .footer-copyright-line { display: flex; flex-direction: row; align-items: center; padding: 0px; }

.footer .footer-copyright-text {
  font-weight: 700;
  font-size: 13px;
  line-height: 16px;
  color: #4E5B69;
  white-space: nowrap;
}

.footer .footer-nav { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }

.footer .footer-nav-title { font-weight: 700; font-size: 14px; line-height: 17px; color: #B3BBC4; }

.footer .footer-nav a {
  font-weight: 700;
  font-size: 12px;
  line-height: 15px;
  color: #4E5B69;
  text-decoration: none;
  transition: color 0.25s ease;
}

.footer .footer-nav a:hover { color: #6207E2; }

.footer .footer-right { display: flex; flex-direction: column; align-items: flex-end; gap: 27px; }

.footer .footer-socials-block { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.footer .footer-socials-label { font-weight: 700; font-size: 14px; line-height: 17px; color: #B3BBC4; }

.footer .footer-social-icons { display: flex; flex-direction: row; justify-content: flex-end; align-items: center; gap: 15px; }

.footer .footer-social-icons a { display: inline-flex; line-height: 0; }

.footer .footer-social-icons img {
  width: 21px;
  height: 21px;
  object-fit: contain;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  filter: brightness(0) saturate(100%) invert(16%) sepia(89%) saturate(5320%) hue-rotate(265deg) brightness(0.9);
}

.footer .footer-social-icons img:hover { opacity: 1; }

.footer .footer-credits {
  width: 242px;
  height: 15px;
  font-weight: 700;
  font-size: 12px;
  line-height: 15px;
  text-align: left;
  text-transform: uppercase;
  margin-bottom: -15px;
  transform: translateX(50px);
  color: #4C5864;
}

.footer .footer-credits .credit-link { color: #4C5864; text-decoration: none; transition: color 0.25s ease; }

.footer .footer-credits .credit-link:hover { color: #6207E2; }

.footer .footer-disclaimer {
  width: 100%;
  max-width: 714px;
  font-weight: 700;
  font-size: 14px;
  line-height: 17px;
  text-align: center;
  color: #4E5B69;
  opacity: 0.5;
  z-index: 1;
  position: relative;
  margin-top: 40px;
  padding-top: 20px;
}