@font-face {
  font-family: 'NeueHaasDisplay-Bold';
  src: local('NeueHaasDisplay-Bold'),
    url('../fonts/NeueHaasDisplay-Bold.woff2') format('woff2'),
    url('../fonts/NeueHaasDisplay-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'NeueHaasDisplay-Black';
  src: local('NeueHaasDisplay-Black'),
    url('../fonts/NeueHaasDisplay-Black.woff2') format('woff2'),
    url('../fonts/NeueHaasDisplay-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary-light: #2058B1;
  --primary-color: #0B1563;
  --primary-color-dark: #03082F;

  --border-color: #2A76CC;

  --secondary-color: #F8B900;

  --header-background: linear-gradient(180deg, var(--primary-color) 15.06%, var(--primary-light) 136.31%);
  --footer-background: linear-gradient(180deg, var(--primary-color) 15.06%, var(--primary-light) 136.31%);

  --text-color: #B8B8B8;

  --step-background-color: linear-gradient(180deg, var(--primary-light) 0%, #0C1965 100%);
  --game-overlay-opacity: 0;
}

* {
  box-sizing: border-box;
}

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
  background-color: var(--primary-color-dark);
}

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

textarea {
  resize: vertical;
}

.hidden,
[hidden] {
  display: none !important;
}

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

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

.invisible {
  visibility: hidden;
}

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

img {
  width: 100%;
}

body {
  margin: 0;
}

main {
  padding-bottom: 30px;
}

h1 {
  font-family: "NeueHaasDisplay-Black", sans-serif;
  font-size: 22px;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
}

h2,
.second--title {
  font-family: "NeueHaasDisplay-Bold", sans-serif;
  font-size: 20px;
  text-align: center;
  color: #fff;
  text-transform: uppercase;
}

h5 {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: #fff;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

ul {
  padding-left: 10px;
  margin: 0 0 0 6px;
}

ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li,
ol li {
  font-family: "Montserrat", sans-serif;
  color: var(--text-color);
  font-size: 14px;
}

ul li strong {
  color: white;
}

ul li::marker {
  color: var(--secondary-color);
}

ol li {
  counter-increment: item;
  padding-left: 15px;
}

ol li::before {
  content: counter(item) ") ";
  margin-left: -14px;
  font-weight: bold;
}

section {
  padding-top: 20px;
  padding-bottom: 10px;
}

section .container .link-button {
  max-width: 220px;
  width: 100%;
  margin: 0 auto;
}

.section-block {
  padding: 30px;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  border-radius: 20px;
  background: rgba(13, 27, 103, 0.51);
}

p {
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  color: var(--text-color);
}

p strong {
  color: #fff;
}

.highlight {
  color: var(--secondary-color);
}

p.highlight {
  font-weight: bold;
  text-transform: uppercase;
}

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

.container {
  max-width: 1240px;
  padding: 0 20px;
  margin: 0 auto;
}

section .container:not(.container-grid) {
  display: flex;
  flex-direction: column;
  gap: 15px
}

.section-inner {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

section .container-grid {
  display: grid;
  gap: 30px;
}

.link-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.link-button span {
  font-family: 'NeueHaasDisplay-Black', 'sans-serif';
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: white;
  z-index: 4;
  padding: 8px 14px;
  white-space: nowrap;
}

.link-button img {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
}

.link-button img:not(.hover) {
  z-index: 2;
}

.link-button img.hover {
  z-index: 1;
}

.link-button:hover img.hover {
  z-index: 3;
}

.link-button.--blue span {
  text-shadow: 0 1px 2px rgba(11, 21, 99, 0.82);
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #112275;
}

.link-button.--green span {
  text-shadow: 0 1px 2px rgba(14, 53, 13, 0.82);
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #184A0D;
}

.link-button.--large {
  padding: 0 20px;
}

.link-button.--large span {
  font-size: 20px;
}

.banner {
  padding: 215px 20px 48px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  border: 2px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
}

.banner::after {
  content: '';
  position: absolute;
  background: linear-gradient(to top, #070C39 36.26%, rgba(6, 10, 57, 0.00) 100%);
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}

.banner-content {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  gap: 20px;
  z-index: 2;
}

.banner .banner-title {
  font-family: "NeueHaasDisplay-Black", sans-serif;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: #F7EC02;
  background: linear-gradient(0deg, #F1D300 0%, #E19600 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 30px;
  line-height: 35px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.48px;
}

.banner .banner-text {
  font-family: "NeueHaasDisplay-Bold", sans-serif;
  font-size: 16px;
  color: white;
}

header {
  display: flex;
  align-items: center;
  background: var(--header-background);
  padding: 12px 0;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 0 10px 0 0;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.logo,
.logo img {
  height: 100%;
  max-width: 105px;
}

.game-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.game {
  aspect-ratio: 0.67 / 1;
  overflow: hidden;
  position: relative;
  display: grid;
}

.game-picture {
  position: relative;
  overflow: hidden;
  grid-area: 1 / 1 / 2 / -1;
  border-radius: 12px;
  margin: 2% 2% 3%;
}

.game::before {
  content: '';
  background: rgba(4, 14, 68, var(--game-overlay-opacity)) url("../img/games/border.png") no-repeat center 100%/100%;
  aspect-ratio: 0.67 / 1;
  z-index: 2;
  grid-area: 1 / 1 / -1 / -1;
  background-size: 100% 100%;
}

.game::after {
  position: relative;
  grid-area: 1 / 1 / -1 / -1;
  width: calc(100% - 2px);
  background: url("../img/games/animation.webp") center/cover;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .2s;
  content: "";
}

.game a:not(.link-button) {
  position: relative;
  grid-area: 1 / 1 / -1 / -1;
  border-radius: 16px;
  z-index: 4;
}

.game img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: top center;
  transition: transform .2s;
}

.game .game-action {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  bottom: 0;
  transition: bottom .2s, opacity .1s;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.game .link-button {
  width: max-content !important;
}

.game .link-button span {
  font-size: 20px !important;
}

.game .game-demo {
  font-size: 14px;
  font-family: "NeueHaasDisplay-Bold", sans-serif;
  color: #feba00;
  text-underline-offset: 4px;
}

.game .game-demo:hover {
  color: #e58517;
}

.game:hover {
  --game-overlay-opacity: .5;
}

.game:hover .game-picture img {
  transform: scale(1.05);
}

.game:hover::after {
  opacity: 0.9;
}

@media (hover: hover) and (pointer: fine) {
  .game a[aria-label] {
    display: none;
  }

  .game:hover .game-action {
    bottom: 30%;
    opacity: 1;
  }
}

.steps {
  display: grid;
  gap: 15px;
  padding: 0 20px;
}

.step {
  padding: 20px 26px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 2px solid var(--border-color);
  background: var(--step-background-color);
}

.step h3 {
  color: var(--secondary-color);
  font-family: "NeueHaasDisplay-Black", sans-serif;
  font-size: 30px;
  text-shadow: 0 2px 0 #001687;
  text-transform: uppercase;
}

.step p {
  color: white;
}

.faq {
  border: 2px solid var(--border-color);
  background: var(--step-background-color);
  border-radius: 10px;
  overflow: hidden;
  padding: 0 20px;
  color: var(--text-color);
  height: max-content;
}

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

.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 0;
  font-family: "NeueHaasDisplay-Bold", sans-serif;
  color: white;
  font-size: 18px;
}

.faq-body {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  padding-top: 10px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
  color: white;
}

.faq-body span {
  display: block;
  margin-bottom: 10px;
}

.faq.active .faq-header {
  color: var(--secondary-color);
}

.faq-header svg {
  flex-shrink: 0;
  flex-grow: 0;
}

.faq-header path {
  fill: var(--secondary-color);
}

footer {
  background: var(--footer-background);
  padding: 10px;
  font-family: "Montserrat", sans-serif;
  font-size: 14px;
  color: white;
  font-weight: bold;
  text-align: center;
}

@media screen and (min-width: 768px) {
  main {
    padding-top: 30px;
  }

  .container {
    max-width: 720px;
  }

  .banner {
    width: 100%;
    max-width: 590px;
    margin: 0 auto;
    padding: 330px 20px 48px;
  }

  .banner::after {
    background: linear-gradient(to top, #070C39 4.26%, rgba(6, 10, 57, 0.00) 60%);
  }

  .banner-content {
    gap: 30px;
  }

  .banner .banner-title {
    font-size: 35px;
    line-height: 40px;
  }

  .banner .banner-text {
    font-size: 18px;
  }

  .banner .link-button {
    font-size: 16px;
    width: 180px;
  }

  h1 {
    font-size: 27px;
  }

  h2,
  .second--title {
    font-size: 25px;
  }

  p {
    font-size: 16px;
  }

  section .container:not(.container-grid) {
    gap: 20px;
  }

  section .container-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
  }

  .game-list {
    padding: 0 45px;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  .faq {
    max-width: 515px;
    margin: 0 auto;
  }

  .faq-header {
    min-height: 68px;
  }
}

@media screen and (min-width: 1280px) {
  main {
    padding-top: 40px;
  }

  .container {
    max-width: 1240px;
  }

  .banner {
    padding: 60px;
    align-items: flex-start;
    max-width: 1200px;
  }

  .banner::after {
    background: linear-gradient(90deg, #070C39 0%, rgba(6, 10, 57, 0.00) 60%);
  }

  .banner .banner-text {
    font-size: 20px;
  }

  .game-list {
    padding: 0;
    grid-template-columns: repeat(6, 1fr);
  }

  .steps {
    padding: 0;
    grid-template-columns: repeat(4, 1fr);
  }

  .faq-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
  }

  .faq {
    max-width: none;
    width: 100%;
  }
}

/* === 404 Slot Machine (Pure CSS) === */
.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-container main {
  margin-top: auto;
  padding-top: 0;
}

.page-container .footer {
  margin-top: auto;
}

.not-found-wrapper {
  padding: 40px 0;
  text-align: center;
}

.slot-404 {
  margin: 40px auto 25px;
  text-align: center;
}

.slot-machine {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* Slot window */
.slot-window {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(to top, #070C39 55%, rgba(6, 10, 57, 0.00) 75%);
  border: 2px solid var(--border-color);
}

/* Reel */
.slot-reel {
  display: flex;
  flex-direction: column;
  animation: spin-reel 4.8s cubic-bezier(.22, .61, .36, 1) forwards;
}

/* Stagger spin timing */
.reel-1 {
  animation-duration: 2.4s;
}

.reel-2 {
  animation-duration: 3.6s;
}

.reel-3 {
  animation-duration: 4.8s;
}

.slot-reel span {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: white;
}

/* 404 as slot symbol */
.slot-reel .slot-404-symbol {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #e8c547;
  text-shadow:
    0 0 8px rgba(232, 197, 71, 0.6),
    0 0 16px rgba(232, 197, 71, 0.35);
}

/* Label */
.slot-label {
  margin-top: 14px;
  font-size: 44px;
  letter-spacing: 0.12em;
  text-transform: none;
}

.not-found-text {
  font-size: 16px;
  line-height: 30px;
}

.cta-wrapper {
  display: flex;
  justify-content: center;
  margin: 32px auto 0;
}

.cta-wrapper .link-button {
  width: max-content;
}

/* Spin animation
   4 symbols × 96px = 384px
   Final symbol = "404"
*/
@keyframes spin-reel {
  0% {
    transform: translateY(0);
  }

  70% {
    transform: translateY(-384px);
  }

  100% {
    transform: translateY(-384px);
  }
}