@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: "Roboto";
  src: url("../fonts/Roboto-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #000;
  --panel: #121212;
  --panel-border: rgba(255, 255, 255, 0.38);
  --text: #fff;
  --green: #08d226;
  --green-hot: #5ffd63;
  --yellow: #ffd500;
  --red: #f44336;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Poppins", Arial, sans-serif;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  padding: 34px 20px 0;
}

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

.hero__logo {
  width: min(230px, 68vw);
  height: auto;
  display: block;
}

.info-bar {
  width: min(1010px, 100%);
  overflow: hidden;
  border-radius: 4px;
  background: #161616;
  color: #f5f5f5;
}

.info-bar__track {
  display: flex;
  width: max-content;
  min-width: 100%;
  gap: 42px;
  padding: 11px 20px;
  white-space: nowrap;
  animation: info-scroll 18s linear infinite;
}

.info-bar__track span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
}

.info-bar__track strong,
.hero__copy span {
  color: #00ff00;
  font-weight: 900;
}

.hero__copy {
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero__copy p {
  margin: 0;
  font-size: clamp(16px, 2.6vw, 20px);
}

.mobile-only {
  display: none;
}

.games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: min(880px, 100%);
  margin: 62px auto 0;
}

.game-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  background: var(--panel);
}

.game-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.game-card img[src$="roulette-donald.png"] {
  background: #111;
}

.progress {
  position: relative;
  height: 35px;
  border-radius: 5px;
  background: #f0f0f0;
}

.progress__bar {
  width: 50%;
  height: 100%;
  border-radius: 5px;
  background-color: var(--yellow);
  background-image: linear-gradient(
    -45deg,
    transparent 25%,
    rgba(255, 255, 255, 0.42) 25%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 50%,
    transparent 75%,
    rgba(255, 255, 255, 0.42) 75%
  );
  background-size: 27px 27px;
  animation: barberpole 4s linear infinite;
}

.progress__bar.is-red {
  background-color: var(--red);
}

.progress__bar.is-green {
  background-color: var(--green-hot);
  animation: barberpole 4s linear infinite, glow 1s infinite alternate;
}

.progress__text {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 3px;
  background: var(--green);
  color: #fff;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.footer-art {
  display: flex;
  justify-content: center;
  padding: 42px 0 0;
}

.footer-art img {
  display: block;
  width: min(527px, 74vw);
  height: auto;
}

.custom-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 20;
  display: flex;
  align-items: center;
  max-width: calc(100vw - 28px);
  padding: 10px 12px;
  overflow: hidden;
  border: 1px solid #fff;
  border-radius: 5px;
  background: #d0f0c0;
  color: #333;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  opacity: 0;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  transition: opacity 0.45s ease;
  white-space: nowrap;
}

.custom-notification.is-active {
  opacity: 1;
}

.custom-notification__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 50%;
  background: #006400;
  animation: pulse 1s infinite;
}

.custom-notification__name {
  margin-right: 5px;
  font-weight: 900;
}

@keyframes barberpole {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 100px 0;
  }
}

@keyframes glow {
  0%,
  100% {
    box-shadow:
      0 0 5px var(--green-hot),
      0 0 10px var(--green-hot),
      0 0 15px var(--green-hot),
      0 0 20px var(--green-hot),
      0 0 25px var(--green-hot);
  }

  50% {
    box-shadow:
      0 0 5px var(--green-hot),
      0 0 10px var(--green-hot),
      0 0 20px var(--green-hot),
      0 0 30px var(--green-hot),
      0 0 40px var(--green-hot);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes info-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (max-width: 767px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .site-shell {
    width: 100%;
    max-width: 100vw;
    padding: 48px 14px 0;
    overflow: hidden;
  }

  .hero {
    gap: 24px;
  }

  .hero__logo {
    width: min(260px, 74vw);
  }

  .info-bar {
    width: min(302px, 86vw);
  }

  .info-bar__track {
    gap: 32px;
    animation-duration: 13s;
  }

  .hero__copy {
    gap: 16px;
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .hero__copy p {
    max-width: 100%;
    font-size: 16px;
    overflow-wrap: anywhere;
    white-space: normal;
    word-break: normal;
  }

  .mobile-only {
    display: block;
  }

  .games {
    grid-template-columns: 1fr;
    gap: 20px;
    width: calc(100vw - 28px);
    max-width: 342px;
    margin: 58px 0 0;
    justify-self: start;
  }

  .game-card {
    width: calc(100vw - 28px);
    max-width: 342px;
    padding: 12px;
    overflow: hidden;
  }

  .progress {
    height: 35px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .games {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(640px, 100%);
  }
}
