/* =========================================================
   FONTS
========================================================= */
@font-face {
  font-family: "SummerBlast";
  src: url("/fonts/SUMMER_BLASTER.woff2") format("woff2"),
       url("/fonts/SUMMER_BLASTER.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

/* =========================================================
   TOKENS
========================================================= */
:root {
  --primary-color: #6D22B2;
  --secondary-color: #FA79AF;
  --third-color: #FDD6D7;
  --quarter-color: #666;
  --text-color: #333;
}

/* =========================================================
   RESET / BASE
========================================================= */
*, *:before, *:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

/* TODO: esse bloco parece placeholder de docs do Google Fonts */
.sora-<uniquifier> {
  font-family: "Sora", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}

html {
  background-color: white; /* Define fundo claro */
  color: black; /* Define a cor do texto */
}

@media (prefers-color-scheme: dark) {
  /* Sobrescreve o comportamento do tema escuro */
  html {
    background-color: white; /* Mantém fundo claro */
    color: #333;
  }
}

html, body {
  position: relative;
  width: 100%;
  min-height: 100%;
  font-family: "Sora", sans-serif;
  font-weight: 400;
  color: var(--text-color);
}

.visually-hidden {
  visibility: hidden;
  position: absolute;
}

button {
  border: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "SummerBlast";
  text-transform: uppercase;
  margin: 0;
}

h1 {
  color: var(--secondary-color);
}

p {
  margin: 0;
}

/* =========================================================
   LAYOUT HELPERS
========================================================= */
.container-flex {
  display: flex;
}

/* =========================================================
   HEADER / NAV
========================================================= */
.navbar__brand {
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
}

.navbar__brand svg {
  width: 110px;
}

header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

header nav a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
}

header nav > a {
  display: none;
}

header {
  padding: 1rem 0px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

.logged-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #f7f5f2;
  border-radius: 12px;
  padding-left: 16px;
}

.address-context {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* =========================================================
   MENU (HAMBURGER + OVERLAY)
========================================================= */
.menu-wrapper {
  position: relative;
  min-width: 185px;
  justify-content: end;
  display: flex;
}

.menu-wrapper .button {
  position: relative;
  z-index: 5;
  cursor: pointer;
}

.menu {
  background-color: #F1EBDD;
  background-image: linear-gradient(
      to bottom,
      rgba(241, 235, 221, 0.5),
      rgba(241, 235, 221, 0.5)
    ),
    url(../images/pattern.svg);
  background-size: auto, 8px 8px;
  color: #6D22B2;
  position: absolute;
  z-index: 2;
  overflow: hidden;
  border-radius: 32px;
  padding-left: 32px;
  right: 0px;
  top: 0px;
  height: 0px;
  width: 0px;
  transition: all 0.2s cubic-bezier(0.65, 0, 0.35, 1);
}

.menu span {
  font-size: 24px;
  text-transform: uppercase;
  font-family: "Summer Blaster", sans-serif;
  display: block;
  margin-top: 40px;
  color: #e3d5b7;
}

.menu.opened {
  height: 450px;
  width: calc(100vw - 24px);
  right: -20px;
  top: -20px;
}

.menu ul {
  padding: 0;
  font-size: 40px;
  font-family: "Summer Blaster", sans-serif;
  text-transform: uppercase;
  line-height: 1.1;
  padding-top: 1.25rem;
  margin-top: 0;
  margin-bottom: auto;
  font-weight: 400;
  list-style: none;
}

.menu ul a {
  color: var(--primary-color);
  opacity: 0;
  transition: all 0.15s linear;
}

.menu ul li {
  opacity: 0;
}

.menu ul li:nth-child(1) {
  padding-left: 80px;
  transition: all 0.3s ease-out 0.2s;
}

.menu ul li:nth-child(2) {
  padding-left: 120px;
  transition: all 0.3s ease-out 0.25s;
}

.menu ul li:nth-child(3) {
  padding-left: 160px;
  transition: all 0.3s ease-out 0.3s;
}

.menu ul li:nth-child(4) {
  padding-left: 200px;
  transition: all 0.3s ease-out 0.35s;
}

.menu.opened ul li {
  padding-left: 0;
  opacity: 1;
}

.menu.opened ul a {
  opacity: 1;
}

.menu ul a:hover {
  color: var(--secondary-color);
}

.menu ul li:nth-child(4) a {
  color: #451B6C;
}

.menu ul li:nth-child(4) a:hover {
  color: var(--secondary-color);
}

/* Hamburger icon */
.hamburger-menu {
  width: 32px;
  height: 32px;
  display: block;
  position: relative;
  margin-top: -8px;
}

.hamburger-menu span {
  height: 6px;
  width: 32px;
  background: var(--third-color);
  display: block;
}

.line-1-menu {
  position: absolute;
  left: 0;
  top: 0;
  transition: all 0.2s linear;
}

.line-2-menu {
  position: absolute;
  left: 0;
  top: 12px;
}

.line-3-menu {
  position: absolute;
  left: 0;
  top: 24px;
  transition: all 0.2s linear;
}

.menu-wrapper:has(.menu.opened) .line-1-menu {
  transform: rotate(45deg);
  top: 12px;
}

.menu-wrapper:has(.menu.opened) .line-3-menu {
  transform: rotate(-45deg);
  top: 12px;
}

.menu-wrapper:has(.menu.opened) .line-2-menu {
  display: none;
}

/* =========================================================
   BUTTONS
========================================================= */
.button {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  background-color: var(--primary-color);
  display: inline-block;
  padding: 1.125rem 1.25rem;
  height: 3.25rem;
  border: 1px solid #451B6C;
  box-shadow: 0 3px 0 2px #451B6C, inset 0 1px #E6B3E4, inset 0 0 #38145A;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  text-align: center;
  font-weight: 800;
  text-transform: uppercase;
  background-image: url(../images/pattern.svg);
  background-position: center;
  color: #FDD6D7;
  -webkit-text-stroke: 1px #FDD6D7;
  paint-order: stroke fill;
  transition: background-color 0.3s cubic-bezier(0.65, 0, 0.35, 1),
    box-shadow 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.wallet-emoji {
  display: none;
}

@media (min-width: 341px) and (max-width: 572px) {
  .wallet-emoji {
    display: block;
  }
}

@media (max-width: 572px) {
  .token-actions .button {
    padding: 0.65rem 1.25rem;
  }

  .menu-wrapper .button-connect {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .wallet-text {
    display: none;
  }

  header nav > a {
    display: none;
  }

  #address {
    display: none;
  }
}

.controls button:disabled {
  background-color: #AC71C2;
  border-color: #AC71C2;
  opacity: 0.35;
}

.button:hover {
  background-color: #AC71C2;
  color: #FDD6D7;
}

.button-secondary {
  background-color: var(--secondary-color);
  box-shadow: 0 3px 0 2px #451B6C, inset 0 1px #E6B3E4, inset 0 0 #AB3E6C;
}

/* ATENÇÃO: aqui a classe é button--secondary, mas acima é button-secondary (mantive como está) */
.button--secondary:hover {
  background-color: #FF8DBD;
}

.button-pay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 1.2rem;
  height: auto;
  padding: 1rem 1.25rem;
  cursor: pointer;
}

.button-pay:disabled {
  cursor: wait;
  opacity: 0.72;
}

.button-pay .button-pay-details {
  display: flex;
  flex-direction: column;
  align-items: end;
  font-family: "Sora", sans-serif;
  text-transform: none;
  font-size: 1.1rem;
  gap: 3px;
}

.count-numbers {
  font-weight: 400;
  font-size: 14px;
}

/* =========================================================
   CONTAINER
========================================================= */
.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 374px) {
  header .container,
  .container {
    padding: 0 16px;
  }
}

/* =========================================================
   BODY BACKGROUNDS
========================================================= */
body {
  background: url(/images/pattern.svg) left top repeat #FFF;
  background-size: 8px 8px;
}

body #details {
  /*background: url(/images/pattern-2.svg) left top repeat #fcfcfc;
  background-size: 8px 8px;*/
}

/* =========================================================
   BREADCRUMBS
========================================================= */
.breadcrumbs {
  font-size: 14px;
  color: var(--text-color);
  position: relative;
  z-index: 9;
}

.breadcrumbs a {
  color: var(--primary-color);
}

/* =========================================================
   HERO
========================================================= */
.hero {
  padding: 0px 0px;
  padding-top: 90px;
  display: flex;
  justify-content: left;
  align-items: center;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.hero .banner {
  padding: 40px 16px 40px;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 380px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 24px;
  background-image: url(/images/pattern-2.svg);
  background-size: 6px 6px;
  justify-content: center;
  position: relative;
  z-index: 3;
  text-align: center;
}

.hero .banner > div.banner-lines {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.15;
}

.hero:after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  background: url(/images/lines.svg) center center no-repeat;
  background-size: 110%;
  opacity: 0.15;
  z-index: 1;
  pointer-events: none;
}

.hero:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .container img {
  transform: rotate(-2deg);
  display: inline-block;
  margin: 0;
  padding: 0;
  width: 100%;
  z-index: 4;
}

/* Reserve the title art's space before it loads, so the banner doesn't jump. */
.hero .banner picture img {
  height: auto;
  aspect-ratio: 514.6 / 112.7;
}

@media (max-width: 480px) {
  .hero .banner picture img {
    aspect-ratio: 322.7 / 221.1;
  }
}

.hero h1 {
  color: #FFF;
  font-size: 80px;
  z-index: 5;
  font-family: "Summer Blaster";
  font-style: normal;
  font-weight: 400;
  line-height: 98%;
  text-transform: uppercase;
  margin-bottom: 16px;
  text-shadow: 4px 2px 5px #2b153e79;
  transform: rotate(-2deg);
}

.hero p {
  color: #FFF;
  font-weight: 700;
  font-size: 16px;
  margin-top: 12px;
  margin-bottom: 32px;
  transform: rotate(-2deg);
  text-align: center;
}

.hero h1 b {
  color: var(--third-color);
  display: block;
}

.hero .banner > div {
  position: relative;
  width: 100%;
  z-index: 5;
}

/* =========================================================
   ACTIVE GAMES
========================================================= */
.active-games-header {
  padding-top: 64px;
  position: relative;
}

.active-games-header .container {
  flex-direction: column;
}

.active-games {
  position: relative;
  z-index: 2;
}

.active-games.network-open {
  z-index: 1002;
}

.active-games-header .container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.active-games h2 {
  font-family: "Sora", sans-serif;
  text-transform: none;
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 8px;
}

.active-games h2 + p {
  color: var(--quarter-color);
  line-height: 1.45em;
}

.active-games h2 + p span {
  display: inline-block;
  margin-left: 8px;
}

.games-sections {
  padding-bottom: 80px;
}

/* =========================================================
   SELECT NETWORK
========================================================= */
.select-network {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

h3.select-network-title {
  font-family: "Sora", sans-serif;
  font-weight: 500;
  text-transform: none;
  font-size: 14px;
  color: var(--quarter-color);
}

.network-list {
  display: flex;
  padding: 8px 0px 0px;
  gap: 8px;
}

.network-picker {
  display: none;
}

.network-item {
  border-radius: 16px;
  border: 2px solid #EEE;
  background: #FFF;
  padding: 10px 16px 10px 12px;
  display: flex;
  flex-direction: row;
  text-decoration: none;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 12px;
  font-family: "Sora", sans-serif;
  color: #222;
  cursor: pointer;
}

.network-item.active {
  border: 2px solid var(--primary-color);
}

.network-icon {
  width: 32px;
  height: 32px;
}

.network-trigger {
  width: 100%;
  min-height: 52px;
  border: 2px solid var(--primary-color);
  border-radius: 16px;
  background: #FFF;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px 8px 12px;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.network-trigger-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.network-trigger-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg) translateY(-2px);
}

.network-sheet-backdrop,
.network-sheet {
  display: none;
}

.network-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(30, 16, 44, 0.42);
}

.network-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  border-radius: 24px 24px 0 0;
  background: #FFF;
  box-shadow: 0 -12px 40px rgba(69, 27, 108, 0.24);
  padding: 18px 16px 24px;
}

.network-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.network-sheet-header h4 {
  color: #222;
  font-family: "Sora", sans-serif;
  font-size: 16px;
  font-weight: 800;
  text-transform: none;
}

.network-sheet-header button {
  background: transparent;
  color: var(--primary-color);
  font-family: "Sora", sans-serif;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.network-sheet-list {
  display: grid;
  gap: 10px;
}

.network-sheet-item {
  min-height: 56px;
  border: 2px solid #EEE;
  border-radius: 16px;
  background: #FFF;
  color: #222;
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  font-family: "Sora", sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.network-sheet-item.active {
  border-color: var(--primary-color);
  background: #F9F2FF;
}

.network-sheet-item strong {
  color: var(--primary-color);
  font-size: 11px;
}

/* =========================================================
   GROUP BY NUMBERS
========================================================= */
.group-by-numbers {
  padding-top: 48px;
}

.group-by-numbers h3 {
  font-size: 42px;
  color: var(--secondary-color);
}

/* =========================================================
   CARDS LIST
========================================================= */
.cards-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.card-item h5,
.card-item h6 {
  font-family: "Sora", sans-serif;
  font-weight: 500;
  color: var(--quarter-color);
  text-transform: none;
}

.card-background {
  width: 100%;
  border-radius: 16px;
  background: #ebebeb;
}

.card-background.no-results .card-item {
  height: 100%;
  min-height: 312px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.card-background.no-results .card-item > span {
  font-size: 90px;
}

.card-background.no-results .card-item p {
  text-align: center;
  font-size: 14px;
  line-height: 1.5em;
}

.card-background.no-results .card-item p + p {
  font-size: 12px;
  color: var(--quarter-color);
  font-weight: normal;
}

.card-background.no-results .card-item p span {
  color: var(--secondary-color);
}

.card-item {
  width: 100%;
  border-radius: 16px;
  background: #FFF;
  padding: 16px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 4px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 3px 0 2px #DDD, inset 0 1px #e7c2e6, inset 0 0 #DDD;
  position: relative;
  transition: all 0.1s linear;
}

.card-item:hover {
  transform: rotate(3deg);
}

@keyframes progress-pattern-scroll {
  from { background-position: 0 0; }
  to   { background-position: 16px 0; }
}

.card-item:hover .progress-indicator::after {
  animation: progress-pattern-scroll 1s linear infinite;
}

.card-item h4 {
  font-size: 16px;
  color: var(--primary-color);
}

.card-item h4 + p {
  font-size: 20px;
  color: var(--text-color);
}

.card-item h5 {
  font-size: 11px;
}

.card-item h5 + p {
  font-size: 14px;
  color: var(--text-color);
}

.card-header {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  align-items: center;
  margin-bottom: 24px;
}

.game-id {
  background: #fff1f2;
  color: #dfabac;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.game-total-numbers {
  background: #f1f1f1;
  color: #999;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
}

.game-progress {
  margin-top: 12px;
  font-size: 12px;
}

.game-progress h6 {
  font-size: 11px;
}

.game-details {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 16px;
  margin-top: 16px;
}

.game-details h2 {
  font-family: "Sora", sans-serif;
  text-transform: none;
  color: var(--quarter-color);
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 8px;
}

.game-details-price span,
.game-details-winner-number span {
  font-size: 24px;
  font-weight: 700;
}

.game-details-winner-number > span {
  background: #fff1c6;
  padding: 4px 8px;
  border-radius: 8px;
}

.game-details-progress {
  max-width: 320px;
}

.progress-details {
  display: flex;
  width: 100%;
  gap: 16px;
}

.progress-bar {
  margin-top: 8px;
  background: #EEE;
  border-radius: 999px;
  height: 16px;
  width: 100%;
  position: relative;
  display: block;
  overflow: hidden;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.08);
}

.progress-indicator {
  width: 20%;
  position: absolute;
  left: 0;
  top: 0;
  background: #67fbc5;
  display: block;
  height: 16px;
  border-radius: 999px;
}

.progress-indicator.progress-20 { width: 20%; }
.progress-indicator.progress-25 { width: 25%; }
.progress-indicator.progress-30 { width: 30%; }
.progress-indicator.progress-35 { width: 35%; }
.progress-indicator.progress-40 { width: 40%; }
.progress-indicator.progress-45 { width: 45%; }
.progress-indicator.progress-50 { width: 50%; }
.progress-indicator.progress-55 { width: 55%; }
.progress-indicator.progress-60 { width: 60%; }

.progress-indicator.progress-70 {
  width: 70%;
  background: rgb(255, 193, 79);
}

.progress-indicator.progress-80 {
  width: 80%;
  background: rgb(255, 193, 79);
}

.progress-indicator.progress-90 {
  width: 90%;
  background: rgb(255, 129, 79);
}

.progress-indicator.progress-95 {
  width: 95%;
  background: rgb(255, 129, 79);
}

.progress-indicator::after {
  content: "";
  width: 100%;
  height: 16px;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 999px;
  background: url(../images/progress-pattern.png) left top repeat-x;
  background-size: 16px 16px;
  opacity: 0.2;
}

.participate-link {
  margin-top: 16px;
  font-size: 16px;
  color: var(--secondary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.participate-link img {
  width: 12px;
  height: 12px;
}

.prize-payment {
  border-top: 1px dashed #eee;
  margin-top: 32px;
  padding: 32px 0px 16px;
}

.prize-payment h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: var(--primary-color);
}

.prize-payment > div {
  display: flex;
  align-items: center;
  font-size: 24px;
  margin-bottom: 8px;
}

.prize-payment > div img {
  vertical-align: middle;
  margin-right: 8px;
}

.prize-payment b {
  font-size: 32px;
}

.prize-payment .prize-hash {
  color: var(--quarter-color);
  font-size: 14px;
  margin-left: 24px;
}

.prize-payment a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 12px;
}

.prize-payment a img {
  margin-left: 12px;
  transition: all 0.2s linear;
}

/* =========================================================
   RAFFLE DETAILS / FILTERS / NUMBERS
========================================================= */
.raffle-details {
  padding: 110px 0px 0px;
}

.mobile-accordion {
  width: 100%;
  padding: 20px 24px;
  color: var(--text-color);
  font-weight: 700;
  position: relative;
  cursor: pointer;
}

.mobile-accordion.closed:after {
  transform: rotate(180deg);
}

.mobile-accordion:after {
  content: "";
  height: 16px;
  width: 16px;
  background: url(/images/chevron.svg) center center no-repeat;
  background-size: cover;
  display: block;
  position: absolute;
  right: 24px;
  top: 22px;
  transition: all 0.2s linear;
}

.filter-group {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0px;
}

.filter-group.closed {
  display: none;
}

.filter-numbers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 24px;
}

.game-numbers .filter-numbers {
  padding: 0;
}

.filter-numbers + .filter-numbers {
  margin-top: 16px;
}

.filter-label {
  font-size: 12px;
}

.filter-numbers img {
  width: 40px;
  transform: rotate(-15deg);
  margin-top: 4px;
}

.filter-numbers ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 16px;
  margin-bottom: 48px;
}

.controls button,
.filter-numbers ul button {
  display: flex;
  min-height: 36px;
  flex-shrink: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary-color);
  background: #c793da;
  padding: 6px 16px 6px;
  border-radius: 0.75rem;
  font-size: 12px;
  color: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 3px 0 2px #451B6C, inset 0 1px #E6B3E4, inset 0 0 #AB3E6C;
  cursor: pointer;
  transition: all 0.2s linear;
}

.filter-numbers ul button {
  height: 100%;
}

.filter-numbers ul li {
  font-size: 10px;
}

.controls button:hover,
.filter-numbers ul li button:hover {
  color: #FFF;
}

.filter-numbers ul li span {
  font-size: 15px;
  font-weight: 700;
}

.controls button,
.filter-numbers ul li button.btn-view-all {
  border-color: var(--primary-color);
}

.controls button,
.filter-numbers ul li button.btn-view-all.active,
.filter-numbers ul li button.active {
  background: var(--primary-color);
  color: #FFF;
}

.game-numbers {
  padding: 40px 0px 80px;
  background: var(--third-color);
}

.raffle-card {
  margin-top: 24px;
  background: #FFF;
  border: 1px solid #EEE;
  border-bottom: none;
  padding: 36px 0px 0px 0px;
  border-radius: 24px 24px 0 0;
  margin-bottom: 0px;
  position: relative;
  box-shadow: inset 0 1px #f7dbf6;
}

.card-padding {
  padding: 0 16px;
}

.card-padding .card-header {
  margin-bottom: 24px;
}

.raffle-tab {
  border-top: 1px solid #EEE;
  display: flex;
  margin-top: 24px;
}

.raffle-tab > button {
  width: 50%;
  text-align: center;
  padding: 24px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.15s linear;
  position: relative;
  background: #FFF;
}

.raffle-tab > button.active:after {
  content: "";
  display: block;
  height: 5px;
  width: 100%;
  background: var(--secondary-color);
  position: absolute;
  left: 0;
  bottom: -2px;
}

.raffle-tab > button:not(.active):hover {
  background: #f8f8f8;
}

.raffle-tab > button span {
  font-weight: 400;
  font-size: 11px;
  display: block;
  color: var(--quarter-color);
  margin-top: 3px;
}

.raffle-tab > button:first-child {
  border-right: 1px solid #EEE;
}

.how-it-works {
  position: absolute;
  right: 20px;
  top: 20px;
  padding: 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 20px;
  font-weight: 700;
  color: var(--quarter-color);
}

.how-it-works b {
  font-weight: 700;
  display: none;
}

.how-it-works span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
  border: 5px solid var(--secondary-color);
  color: var(--secondary-color);
  border-radius: 24px;
  font-family: "SummerBlast";
  transform: rotate(20deg);
  margin-left: 10px;
  transition: all 0.25s linear;
}

.how-it-works:hover {
  color: var(--text-color);
  transition: all 0.25s linear;
}

.how-it-works:hover span {
  transform: scale(1.1) rotate(10deg);
}

.raffle-card h1 {
  color: var(--primary-color);
  font-size: 24px;
  vertical-align: top;
}

.raffle-card h1 > span {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 40px;
  color: var(--text-color);
  vertical-align: top;
}

.money-icon {
  font-size: 0.6em;
  vertical-align: middle;
  padding-top: 5px;
}

.waffle {
  background: linear-gradient(90deg, #f7bb91 0%, #e2a980 100%);
  padding: 9px;
  border-radius: 30px;
  margin: 0;
  box-shadow: 0 10px 20px #fbcb9b inset, 20px 20px 50px #4f374f;
}

.waffle-border {
  background: #fbd1a6;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 5px 5px 10px #a26f4a, -5px -5px 10px #ffd5b7,
    3px 3px 1px rgba(255, 232, 216, 0.5), 3px 3px 2px #ffd5b7 inset;
}

.waffle-border > div {
  background: #fbd1a6;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 0 20px #bea846, 10px 10px 5px #e2a980 inset;
}

/* =========================================================
   NUMBERS GRID (NEW) — replaces old .numbers-list block
========================================================= */
.numbers-list { 
  display: grid;
  /* Define exatamente 5 colunas no mobile */
  grid-template-columns: repeat(5, 1fr);
  gap: 8px; /* Espaçamento reduzido para mobile */
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.numbers-list li {
  width: 100%;
}

.numbers-list li button {
  /* Quadrado perfeito baseado na coluna */
  width: 100%;
  aspect-ratio: 1 / 1;

  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid #e2ceb1;
  background: transparent;
  border-radius: 8px; /* Ajustado para escala mobile */

  box-shadow: 4px 4px 8px #dba364 inset, -2px -2px 8px #ffd5b7;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

/* Mantém seus estados existentes */
.numbers-list li button.reserved {
  background: url(/images/stripe.svg) left top no-repeat #b08a5e;
  box-shadow: 5px 5px 10px rgb(77, 62, 46) inset, -5px -5px 10px #ffd5b7,
    3px 3px 1px rgba(255, 232, 216, 0.5), 3px 3px 2px #ffd5b7 inset;
  opacity: 0.65;
  cursor: not-allowed;
}

.numbers-list li button.reserved.your {
  background: url(/images/stripe-2.svg) left top no-repeat #67fbc5;
  box-shadow: 5px 5px 10px #2d8461 inset, -5px -5px 10px #ffd5b7,
    3px 3px 1px rgba(255, 232, 216, 0.5), 3px 3px 2px #ffd5b7 inset;
  opacity: 0.65;
}

.numbers-list li button.winner {
  background: #fff1c6;
  border: 3px solid #FFD660;
  box-shadow: none;
  opacity: 1 !important;
}

.numbers-list li button.winner:after {
  content: "🎉";
  font-size: 14px;
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
}

.numbers-list li button.selected span {
  height: 100%;
  width: 100%;
  background: var(--secondary-color);
  color: #FFF;
  margin: 0;
  border-radius: 6px;
}

.numbers-list li button.selected:hover span {
  background: #e05f95 !important;
}

.numbers-list li button.reserved.your span {
  color: #042c1c;
}

/* Texto dentro do botão (mobile-friendly) */
.numbers-list li span {
  height: calc(100% - 8px);
  width: calc(100% - 8px);
  display: flex;
  align-items: center;
  justify-content: center;

  font-size: clamp(14px, 4vw, 18px);
  font-weight: 800;
  color: #472d18;
  margin: 4px;

  transition: all 0.15s linear;
  border-radius: 6px;
}

/* Hover mantendo sua lógica (não aplica em reserved) */
.numbers-list li:not(.reserved):hover span {
  background: rgba(144, 90, 52, 0.6);
  color: #FFF;
}

.numbers-list li button.reserved {
  background: url(/images/stripe.svg) left top no-repeat #b08a5e;
  box-shadow: 5px 5px 10px rgb(77, 62, 46) inset, -5px -5px 10px #ffd5b7,
    3px 3px 1px rgba(255, 232, 216, 0.5), 3px 3px 2px #ffd5b7 inset;
  opacity: 0.65;
  cursor: not-allowed;
}

.numbers-list li button.winner {
  background: #fff1c6;
  border: 3px solid #FFD660;
  box-shadow: none;
  position: relative;
  opacity: 1 !important;
}

.numbers-list li button.winner:after {
  content: "🎉";
  font-size: 14px;
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  width: 100%;
  text-align: center;
}

/* Payment bar */
.payment-info {
  position: fixed;
  background: #FFF;
  padding: 24px 24px 16px 24px;
  border-radius: 24px 24px 0 0;
  bottom: 0px;
  right: 0px;
  left: 0;
  z-index: 990;
  box-shadow: 20px 20px 50px #4f374f;
}

.payment-info p {
  font-size: 12px;
  color: var(--quarter-color);
  max-width: 420px;
}

.payment-text {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-numbers ul li.btn-winner-number span {
  font-size: 14px;
}

.numbers-list li button.reserved.your {
  background: url(/images/stripe-2.svg) left top no-repeat #67fbc5;
  box-shadow: 5px 5px 10px #2d8461 inset, -5px -5px 10px #ffd5b7,
    3px 3px 1px rgba(255, 232, 216, 0.5), 3px 3px 2px #ffd5b7 inset;
  opacity: 0.65;
}

.numbers-list li button.selected span {
  height: 100%;
  width: 100%;
  background: var(--secondary-color);
  color: #FFF;
  margin: 0px;
}

.numbers-list li button.selected:hover span {
  background: #e05f95 !important;
}

.numbers-list li button.reserved.your span {
  color: #042c1c;
}

.numbers-list li span {
  height: calc(100% - 8px);
  width: calc(100% - 8px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #472d18;
  margin: 4px;
  transition: all 0.15s linear;
  border-radius: 9px;
}

.numbers-list li:not(.reserved):hover span {
  background: rgba(144, 90, 52, 0.6);
  color: #FFF;
}

/* =========================================================
   GAME RANDOM
========================================================= */
.game-random {
  padding: 40px 0px 80px;
  background: var(--third-color);
}

.random-alert {
  display: flex;
  border: 1px solid #000;
  background: var(--text-color);
  color: #FFF;
  padding: 16px;
  border-radius: 12px;
  justify-content: center;
  margin: 0 24px;
  align-items: center;
  gap: 16px;
}

.random-alert img {
  width: 16px;
  vertical-align: baseline;
  display: inline-block;
  margin-right: 16px;
}

.random-selection {
  margin: 12px 12px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 48px;
  align-items: center;
}

.random-selection .label-random {
  display: flex;
  flex-direction: column;
  align-items: start;
}

.random-selection .label-random h3 {
  font-family: "Sora", sans-serif;
  text-transform: none;
  font-size: 28px;
  color: var(--text-color);
  margin-bottom: 8px;
}

.random-selection .label-random p {
  color: var(--quarter-color);
  margin-bottom: 16px;
}

.random-selection .label-random b {
  background: var(--secondary-color);
  color: #FFF;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  margin-bottom: 16px;
}

.select-random {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.select-random .button {
  cursor: pointer;
}

.select-random input {
  height: 80px;
  width: 200px;
  border-radius: 12px;
  border: 2px solid #dfabac;
  text-align: center;
}

/* =========================================================
   PAGES PADDING / LAYOUT
========================================================= */
.participations_page,
.transactions_page,
.referral_page,
.token_page,
.about_page,
.swap_page {
  padding-top: 110px;
  padding-bottom: 0px;
}

.transactions_page .container-flex,
.referral_page .container-flex,
.token_page .container-flex,
.how-it-works_page .how-header,
.about_page .container-flex,
.swap_page .container-flex {
  margin-top: 32px;
}

.token_page .container-flex {
  flex-direction: column-reverse;
  align-items: end;
}

.swap_page .container-flex {
  flex-direction: column;
}

.token-image img {
  max-width: 100%;
}

.referral_page .container-flex {
  gap: 32px;
}

.referral_page .container-flex {
  flex-direction: column-reverse;
}

.token-text,
.swap-text {
  width: 100%;
  position: relative;
}

.token-text {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding-bottom: 80px;
}

.token-text-img {
  display: none;
}

.token-text h1 + p {
  font-size: 18px;
  text-align: left;
  margin-bottom: 56px;
}

.token-contract {
  padding: 24px;
  border-radius: 12px;
  background: #FFF;
  display: inline-flex;
  align-items: start;
  gap: 16px;
  margin-bottom: 32px;
  border: 1px solid #DDD;
  margin-top: 56px;
}

.token-contract > div > div {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 16px;
  position: relative;
}

.token-contract > div > div:after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  background: #DDD;
}

.token-contract h3 {
  font-size: 14px;
  margin-bottom: 4px;
  color: #999;
}

.token-actions p {
  font-size: 14px;
  padding-top: 4px;
}

.token-contract p {
  font-size: 16px;
  overflow-wrap: anywhere;
}

.token-contract .border-top {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #DDD;
}

.token-contract img {
  width: 40px;
}

.swap-text img {
  position: absolute;
  bottom: 0;
  right: 0;
  display: none;
}

.waffle-image {
  position: absolute;
  bottom: 0;
  right: -60px;
}

.token-text h1,
.swap-text h1 {
  font-size: 80px;
}

.token-text h1 {
  margin-top: 36px;
  color: var(--primary-color);
}

.token-text h1 span {
  color: #CCC;
}

.token-actions {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 14px;
}

.token-actions p {
  color: var(--text-color);
  max-width: 260px;
  line-height: 1.4em;
}

.swap-widget {
  width: 100%;
  display: flex;
  justify-content: end;
  padding-bottom: 80px;
}

#iframe {
  width: 100%;
  height: 620px;
}

.swap-widget .iframe-box {
  width: 100%;
  background: url(/images/loading.gif) center center no-repeat #FFF;
  border-radius: 32px;
  margin-top: 48px;
}

.swap_page #iframe {
  box-shadow: 0 4px 0 2px #AAA, inset 0 1px #E6B3E4, inset -1px 1px #AB3E6C, 10px 10px 30px #beb8b8;
  background: #FFF;
}

/* =========================================================
   HOW IT WORKS PAGE
========================================================= */
.how-it-works_page {
  padding-top: 110px;
  padding-bottom: 0px;
}

.how-header {
  display: flex;
  flex-direction: column;
}

.how-it-works_page h1 {
  font-size: 80px;
}

.how-it-works_page h2 {
  font-size: 32px;
  color: var(--text-color);
}

.stepper {
  width: 100%;
  text-align: center;
  padding: 60px 0px 0px;
  background: #FFFBF2;
  box-shadow: 0 4px 0 2px #AAA, inset 0 1px #E6B3E4;
  border-radius: 24px;
  margin-top: 60px;
  margin-bottom: 60px;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}

.step {
  font-size: 20px;
  font-family: "SummerBlast";
  display: flex;
  justify-content: center;
  align-items: center;
  height: 48px;
  width: 48px;
  border: 2px solid #cfcabf;
  color: #cfcabf;
  border-radius: 30px;
  background: #ffffff00;
  cursor: pointer;
  line-height: 44px;
}

.step.active {
  background-color: var(--secondary-color);
  color: #fff;
  border-color: var(--secondary-color);
}

.separator {
  width: 20px;
  height: 2px;
  background-color: #cfcabf;
  margin: 0 5px;
}

.text-content {
  margin: 20px 0;
  padding: 0 24px;
  color: #666;
}

.step-video {
  margin: 0 40px;
  display: none;
}

.step-video img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid #EEE;
}

.step-content ol + p {
  border-top: 1px dashed #666;
  padding-top: 30px;
}

.step-list li {
  position: relative;
}

.step-list li::marker {
  font-family: "SummerBlast";
  color: var(--secondary-color);
  font-size: 1em;
}

.steps-count {
  color: var(--primary-color);
  font-weight: 800;
}

.controls {
  background: #fdd6d7;
  padding: 30px 0px;
  margin-top: 60px;
  border-radius: 0 0 26px 26px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.how-steps {
  display: flex;
  flex-direction: column-reverse;
  line-height: 1.5em;
}

.how-steps h3 {
  font-size: 32px;
  margin-bottom: 24px;
  line-height: 1.3em;
  text-align: center;
  color: #333;
}

.how-steps ol {
  text-align: left;
  margin: 30px 0px 40px;
}

.how-steps li {
  margin: 15px 0px;
}

.how-img {
  max-width: 50%;
  display: none;
  align-items: flex-end;
  padding-bottom: 60px;
}

.terms_page {
  padding-top: 110px;
  padding-bottom: 80px;
}

.terms_page h1 {
  font-size: 10vw;
  max-width: 50%;
}

.swap-text p {
  font-size: 18px;
  max-width: 400px;
  line-height: 1.4em;
  color: var(--text-color);
}

/* =========================================================
   REFERRAL
========================================================= */
.referral-resume {
  background: #FFF;
  border-radius: 16px;
  border: 1px dashed #DDD;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.referral-resume > div {
  padding: 32px 24px;
}

.share-to-win h1 {
  font-size: 80px;
  margin-bottom: 24px;
}

.share-to-win p {
  color: var(--text-color);
  font-size: 20px;
  line-height: 1.5em;
  margin-bottom: 16px;
}

.share-to-win button {
  padding: 8px 12px;
  background: #fff1f2;
  color: #dfabac;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.referral-code h2 {
  font-size: 48px;
  color: var(--primary-color);
}

.referral-example {
  margin-top: 32px;
}

.arrow-example {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-left: 12px;
  position: relative;
  transition: all 0.2s linear;
}

.arrow-example::after {
  position: absolute;
  top: 0px;
  right: 0;
  content: "";
  border: solid #dfabac;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
}

.arrow-example.open {
  transform: rotate(180deg);
}

.referral-code {
  border-bottom: 1px solid #DDD;
  display: flex;
  justify-content: space-between;
}

.referral-code h2 + span {
  font-size: 48px;
  font-weight: 700;
  line-height: 90px;
  display: block;
}

.referral-code a {
  color: #2c53bf;
  text-decoration: underline;
}

.rewards-counter {
  border-bottom: 1px dashed #DDD;
  padding-bottom: 32px;
}

.rewards-counter h3 {
  font-size: 24px;
  color: var(--primary-color);
}

.rewards-counter p {
  font-size: 56px;
}

.rewards-counter a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-color);
}

.rewards-counter a img {
  margin-left: 12px;
  transition: all 0.2s linear;
}

.rewards-counter a:hover img {
  margin-left: 18px;
}

.referral-counter {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 32px;
}

.referral-data {
  display: flex;
  gap: 32px;
  align-items: center;
}

.referral-data b {
  font-size: 60px;
}

.referral-data span {
  font-size: 16px;
  font-weight: 500;
  color: var(--quarter-color);
}

.referral-example-text {
  padding: 0 32px;
  border-radius: 4px 12px 12px 12px;
  background: #fff7f8;
}

.referral-example-text p:first-child {
  padding-top: 32px;
}

.referral-example-text p:last-child {
  padding-bottom: 32px;
}

.referral-example-text p {
  font-size: 16px;
  color: var(--text-color);
}

#copy-code {
  display: flex;
  width: 72px;
  height: 72px;
  cursor: pointer;
}

.referral-dashboard {
  padding: 32px 24px;
  background: #FFF;
  border-radius: 16px;
  border: 1px dashed #DDD;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 4px;
  font-weight: 700;
  font-size: 12px;
}

.referral-dashboard h2 {
  font-size: 48px;
  color: var(--text-color);
  margin-bottom: 24px;
}

/* =========================================================
   TRANSACTIONS / PARTICIPATIONS
========================================================= */
.transactions_page .container-flex {
  justify-content: space-between;
  align-items: center;
}

.participations_page .filter-numbers,
.transactions_page .filter-numbers {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.participations_page h1,
.transactions_page h1 {
  font-size: 80px;
  hyphens: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
  margin-top: 32px;
}

.participations-filter,
.transactions-filter {
  background: var(--third-color);
  background: #f3f3f3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 0px 0px;
  border-radius: 16px 16px 0 0;
}

.participations-filter {
  border-radius: 16px;
}

.participations-filter .filter-numbers ul,
.transactions-filter .filter-numbers ul {
  margin-bottom: 4px;
}

.transactions-list {
  margin-bottom: 80px;
  background: #FFF;
  padding: 24px 16px;
  border-radius: 0 0 16px 16px;
  border: 1px solid #DDD;
  border-top: none;
  list-style: none;
}

.list-header {
  display: none;
  border-bottom: 1px solid var(--third-color);
  padding-bottom: 8px;
  gap: 16px;
  justify-content: space-between;
  font-size: 14px;
  color: #999;
}

.list-header .left-col {
  display: flex;
  gap: 16px;
}

.list-header .left-col > div:first-child {
  width: 160px;
}

.transactions-list ul {
  margin: 0;
  padding: 0;
}

.transactions-list li {
  display: flex;
  flex-direction: row;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0px;
  gap: 12px;
  border-bottom: 1px solid #eee;
}

.transactions-list li:last-child {
  border-bottom: none;
}

.transaction-type-col {
  min-width: 80px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.transaction-type-col img {
  width: 25px;
}

.transactions-list li .left-col {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
}

.transactions-list li .right-col {
  text-align: right;
  white-space: nowrap;
  font-size: 14px;
}

.id-col {
  flex: 1;
}

.id-col > div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 2px;
}

.id-col b {
  color: var(--primary-color);
  display: block;
}

.id-col span {
  color: #999;
  font-size: 12px;
  display: block;
}

.participations-list ul {
  margin: 32px 0px 80px;
  padding: 0;
}

.participations-list li {
  width: 100%;
  border-radius: 16px;
  background: #FFF;
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 16px;
  font-weight: 700;
  font-size: 12px;
  box-shadow: 0 3px 0 2px #DDD, inset 0 1px #e7c2e6, inset 0 0 #DDD;
  position: relative;
  transition: all 0.1s linear;
  margin-bottom: 20px;
}

.participations-list li:has(.winner) {
  background: #fdfaf0;
  box-shadow: 0 3px 0 2px #ffe38e, inset 0 1px #ffe1ec, inset 0 0 #DDD;
}

.participations-list li:has(.winner) .participation-numbers {
  background: #fbf3dc;
}

.participations-list li:has(.winner) .participation-numbers h4 {
  color: #e6b930;
}

.participations-list li:has(.winner) .participation-numbers p span:after {
  content: ".";
  color: #e3bd49;
  margin-left: 4px;
}

.participations-list li:last-child {
  margin-bottom: 4px;
}

.participation-card .card-header {
  margin-bottom: 16px;
}

.participation-card .card-header > div {
  min-width: 45%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: start;
  gap: 2px;
}

.participation-card .card-header > div + div {
  align-items: end;
}

.participation-card .right-col {
  text-align: right;
  align-items: end;
}

.participation-card .game-status {
  color: var(--text-color);
  border-radius: 6px;
  padding: 6px 0px;
  font-size: 16px;
  text-align: right;
  display: block;
}

.participation-card .game-data {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.participation-card .game-data b {
  font-size: 14px;
}

.participation-card .game-data .left-col {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.participation-card .game-data .card-label {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--quarter-color);
  margin-bottom: 4px;
}

.participation-numbers h4 {
  font-family: "Sora", sans-serif;
  text-transform: none;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.participation-numbers p {
  display: flex;
  flex-wrap: wrap;
  color: var(--text-color);
  gap: 12px;
}

.participation-numbers p span:after {
  content: ".";
  color: #BBB;
  margin-left: 4px;
}

.participations-list li .participation-numbers {
  background: #f6f6f6;
  color: #BBB;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 16px;
}

.select-transparent {
  background: rgba(255, 255, 255, 0.05);
  width: 120px;
  padding: 8px;
  min-height: 36px;
  border-radius: 12px;
  font-size: 14px;
  border: 1px solid #CCC;
  width: 100%;
}

.transactions-list li.no-results,
.participations-list li.no-results {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  justify-content: center !important;
  align-items: center;
  color: var(--quarter-color);
}

.transactions-list li.no-results span,
.participations-list li.no-results span {
  font-size: 32px;
  vertical-align: middle;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  padding: 80px 0px;
  background: #FFF;
  color: var(--text-color);
  min-height: 20vh;
}

footer .navbar__brand {
  display: flex;
  margin: 0 auto;
}

footer .navbar__brand svg {
  width: 160px;
  height: auto;
}

.footer-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.footer-col-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.footer-col-left > div:not(.menu-footer) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-col-left p {
  font-size: 10px;
  text-align: center;
}

.menu-footer {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 24px;
  margin-bottom: 60px;
}

.menu-footer a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 14px;
  line-height: 20px;
}

.social-footer {
  display: flex;
  gap: 16px;
}

.social-footer a {
  width: 64px;
  height: 64px;
  display: inline-flex;
  padding: 10px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  justify-content: center;
  align-items: center;
  transition: all 0.2s linear;
}

.social-footer a:hover {
  transform: rotate(15deg) scale(1.2);
}

.social-footer a svg {
  width: 28px;
  color: var(--primary-color);
}

.menu-footer div {
  padding: 0 0 0 24px;
  border-left: 1px solid var(--text-color);
  display: flex;
  gap: 24px;
}

main:has(.game-numbers) + footer .menu-footer div,
main:has(.game-random) + footer .menu-footer div {
  padding: 0 0 0 24px;
  border-left: 1px solid #dfabac;
}

main:has(.game-numbers) + footer .social-footer a,
main:has(.game-random) + footer .social-footer a {
  background: #dfabac;
  border: none;
}

main:has(.game-numbers) + footer .social-footer a svg,
main:has(.game-random) + footer .social-footer a svg {
  width: 28px;
  color: var(--third-color);
}

main:has(.game-numbers) + footer,
main:has(.game-random) + footer {
  border-top: 1px solid #FFF;
  background: var(--third-color);
  color: #d19697;
}

main:has(.game-numbers) + footer .terms,
main:has(.game-random) + footer .terms {
  border-color: #d19697;
  color: #d19697;
}

main:has(.game-numbers) + footer .menu-footer a,
main:has(.game-random) + footer .menu-footer a {
  color: #d19697;
}

main:has(.game-numbers) + footer .navbar__brand,
main:has(.game-random) + footer .navbar__brand {
  color: #d19697;
}

.terms {
  border-top: 1px solid var(--primary-color);
  padding-top: 16px;
  margin-top: 48px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4em;
  color: var(--quarter-color);
}

.terms p {
  text-align: center;
}





/* =========================================================
   MEDIA QUERIES: >= 430/480px 
========================================================= */

@media (min-width: 430px) {
  .game-numbers .filter-numbers {
    padding: 0 16px;
  }
  .waffle-border{
    padding: 16px;
  }
  .numbers-list {
    gap: 18px;
  }
  .waffle {
    padding: 12px;
    border-radius: 40px;
  }
}
@media (max-width: 480px) {
    .waffle {
        padding: 8px; /* Reduz a borda externa no mobile */
    }
    .waffle-border, .waffle-border > div {
        padding: 12px; /* Ganha mais espaço para os números */
    }
}

@media (max-width: 767px) {
  .select-network {
    width: 100%;
  }

  .network-list {
    display: none;
  }

  .network-picker {
    display: block;
    width: 100%;
    max-width: 260px;
    padding-top: 8px;
  }

  .network-sheet-backdrop,
  .network-sheet {
    display: block;
  }
}

/* =========================================================
   MEDIA QUERIES: >= 768px 
========================================================= */
@media (min-width: 768px) {
  .filter-numbers + .filter-numbers {
    margin-top: 0;
  }

  .select-transparent {
    width: auto;
  }

  .filter-group.closed {
    display: flex;
  }

  .menu.opened {
    height: 450px;
    width: 580px;
    right: -20px;
    top: -20px;
  }

  .menu span {
    font-size: 2.75rem;
  }

  .menu ul {
    font-size: 4rem;
  }

  .hero .banner {
    padding: 40px 64px 40px;
    min-height: 480px;
  }

  .hero p {
    margin-top: 24px;
    font-size: 32px;
  }

  .navbar__brand svg {
    width: 140px;
  }

  .menu-wrapper,
  header nav > a {
    display: flex;
  }

  .active-games h2 {
    font-size: 40px;
  }

  .active-games-header .container {
    flex-direction: row;
    align-items: end;
  }

  .select-network {
    margin-top: 0;
    align-items: end;
  }

  .active-games-header .container::after {
    height: 700px;
    width: 1000px;
    top: -250px;
    left: -250px;
  }

  #iframe {
    width: 494px;
    height: 620px;
  }

  .group-by-numbers h3 {
    font-size: 48px;
  }

  .raffle-card {
    padding: 48px 0px 0px 0px;
    border-radius: 40px 40px 0 0;
  }

  .card-item {
    padding: 24px 24px 24px;
    height: 100%;
  }

  .game-id {
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 16px;
  }

  .card-item h4 {
    font-size: 22px;
  }

  .card-item h4 + p {
    font-size: 32px;
  }

  .card-item h5 {
    font-size: 12px;
  }

  .card-item h5 + p {
    font-size: 16px;
  }

  .game-progress h6 {
    font-size: 12px;
  }

  .participate-link {
    margin-top: 32px;
    font-size: 16px;
  }

  .participate-link img {
    width: 16px;
    height: 16px;
  }

  .token-contract > div > div {
    flex-direction: row;
  }

  .token-contract > div > div:after {
    display: none;
  }

  .game-details {
    flex-direction: row;
    gap: 48px;
  }

  .game-numbers,
  .game-random {
    padding: 40px 0px 120px;
  }

  .card-padding .card-header {
    margin-bottom: 40px;
  }

  .game-total-numbers {
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 16px;
  }

  .raffle-card h1 {
    font-size: 48px;
  }

  .raffle-card h1 > span {
    font-size: 64px;
  }

  .progress-details {
    width: 320px;
  }

  .card-padding {
    padding: 0 48px;
  }

  .raffle-tab > button {
    padding: 32px 48px;
    font-size: 24px;
    border: none;
    background: none;
  }

  .raffle-tab > button.active {
    background: #FFF;
  }

  .raffle-tab > button > span {
    font-size: 14px;
  }

  .filter-numbers {
    padding: 0 24px;
  }

  .random-selection {
    margin: 64px 24px;
    flex-direction: row;
  }

  .random-selection .label-random h3 {
    font-size: 32px;
  }

  .payment-info {
    padding: 32px 32px 24px 32px;
    border-radius: 24px;
    bottom: 24px;
    right: 24px;
    left: auto;
  }

  .token-actions p {
    font-size: 16px;
  }

  .how-it-works span {
    width: 48px;
    height: 48px;
    font-size: 28px;
  }

  .how-it-works b {
    display: inline-block;
  }

  .stepper {
    max-width: 100%;
  }

  .how-header {
    flex-direction: row;
    align-items: center;
  }

  .token_page .container-flex {
    align-items: end;
    flex-direction: row;
  }

  .token-text, .swap-text {
    width: 60%;
    position: relative;
  }

  .swap-text img {
    display: block;
  }

  .how-img {
    display: flex;
  }

  .how-steps h3 {
    font-size: 48px;
  }

  .how-steps {
    flex-direction: row;
  }

  .text-content {
    padding: 0 60px;
  }

  .separator {
    width: 30px;
  }

  .waffle {
    padding: 24px;
    margin: 0 24px;
  }

  .waffle-border {
    padding: 32px;
  }

  .waffle-border > div {
    padding: 32px;
  }

  .numbers-list {
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
  }

  .raffle-tab {
    margin-top: 48px;
  }

  .filter-numbers ul button {
    font-size: 12px;
  }

  .how-it-works_page h1,
  .token-text h1, .swap-text h1 {
    font-size: 120px;
  }

  .how-it-works_page h2 {
    font-size: 48px;
    padding-left: 10%;
  }

  .token-text h1 {
    margin-top: 0;
  }

  .swap-widget {
    width: 40%;
  }

  .token-text-img {
    display: block;
    position: absolute;
    right: 25%;
    top: -20px;
    width: 28%;
  }

  .swap_page .container-flex {
    flex-direction: row;
  }

  .referral_page .container-flex {
    flex-direction: row;
    margin-bottom: 60px;
  }

  .menu-footer {
    text-align: left;
    margin-bottom: 0;
  }

  .footer-col-left,
  .menu-footer,
  .footer-row {
    flex-direction: row;
  }

  .terms {
    margin-top: 16px;
  }

  .terms p {
    text-align: left;
  }

  .menu-footer a {
    font-size: 14px;
  }

  footer .navbar__brand {
    margin: 0;
  }

  footer .navbar__brand svg {
    width: 140px;
    height: auto;
  }

  .list-header {
    display: flex;
  }

  .transactions-list li {
    flex-direction: row;
    gap: 24px;
  }

  .transactions-list li .left-col {
    flex-direction: row;
  }

  .transaction-type-col {
    min-width: 160px;
    margin-bottom: 0;
  }

  .id-col > div {
    flex-direction: row;
    gap: 16px;
  }

  .id-col span {
    font-size: 14px;
  }

  .participation-card .card-header > div {
    min-width: 50%;
    flex-direction: row;
    justify-content: start;
    gap: 8px;
  }

  .participation-card .card-header > div + div {
    justify-content: end;
  }

  .participation-card .game-data {
    gap: 32px;
  }

  .participation-card .game-data .left-col {
    gap: 32px;
    flex-wrap: nowrap;
  }

  .participation-card .game-data .card-label {
    font-size: 14px;
  }

  .participation-numbers h4 {
    font-size: 16px;
  }

  .transactions-list {
    padding: 32px 24px;
  }

  .transactions-list li {
    padding: 24px 0px;
  }

  .participations-list li {
    padding: 24px 24px 24px;
  }

  .filter-group {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }

  .filter-label {
    font-size: 14px;
  }

  .mobile-accordion {
    display: none;
  }

  .participations_page h1,
  .transactions_page h1 {
    font-size: 120px;
  }

  .game-numbers .filter-numbers {
    padding: 0 24px;
  }
}

/* =========================================================
   MEDIA QUERIES: >= 998px 
========================================================= */
@media (min-width: 998px) {
  .waffle {
    padding: 16px;
  }

  .numbers-list {
    grid-template-columns: repeat(15, 1fr);
    gap: 16px;
  }

  .participations-list li {
    gap: 24px;
  }

  .filter-label {
    font-size: 16px;
  }

  .participation-card .game-data b {
    font-size: 18px;
  }

  .filter-numbers + .filter-numbers {
    margin-top: 0px;
  }

  .participations_page .filter-numbers,
  .transactions_page .filter-numbers,
  .participations-filter,
  .transactions-filter {
    flex-direction: row;
  }

  .participations_page .filter-numbers,
  .transactions_page .filter-numbers {
    justify-content: start;
    align-items: center;
  }

  .participations_page .filter-numbers + .filter-numbers,
  .transactions_page .filter-numbers + .filter-numbers {
    justify-content: end;
  }

  .participations_page .filter-numbers,
  .transactions_page .filter-numbers {
    gap: 16px;
  }

  .participations-list li {
    flex-direction: row;
  }

  .participation-card,
  .participations-list li .participation-numbers {
    width: 50%;
  }

  .referral-code h2 + span {
    font-size: 80px;
  }

  .referral-dashboard {
    width: 480px;
  }

  .referral-resume {
    width: calc(100% - 500px);
  }

  .participations_page h1,
  .transactions_page h1 {
    font-size: 180px;
  }

  .how-it-works_page h1 {
    font-size: 180px;
    max-width: 50%;
  }

  .token-text h1, .swap-text h1 {
    font-size: 180px;
  }

  .card-background {
    width: calc(20% - 12px);
  }

  .menu-footer a {
    font-size: 12px;
  }
}
