:root {
  --bg: #181818;
  --panel: #242424;
  --panel-2: #2d2d2d;
  --text: #f6f6f6;
  --muted: #a5a5a5;
  --gold: #e3aa31;
  --gold-2: #ffc84b;
  --line: #3b3b3b;
  --light: #f4f4f4;
  --ink: #1e2633;
  --radius: 22px;
  --shadow: 0 18px 50px rgb(0 0 0 / 28%);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 4px;
}
p,
ul,
ol,
table {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}
h2 {
  margin: 0 0 1.4rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}
h3 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

body > header {
  min-height: 72px;
  padding: 10px clamp(18px, 4vw, 54px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(38 38 38 / 96%);
  border-bottom: 1px solid rgb(255 255 255 / 4%);
  backdrop-filter: blur(12px);
}
body > header > a {
  display: inline-flex;
  align-items: center;
}
body > header img {
  width: 150px;
}
body > header nav {
  display: flex;
  gap: 10px;
}
body > header nav a,
#hero a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-2);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.82rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}
body > header nav a:first-child,
#hero a {
  background: var(--gold);
  color: #fff;
}
body > header nav a:hover,
#hero a:hover {
  transform: translateY(-2px);
  background: var(--gold-2);
  color: #171717;
}

#hero {
  min-height: 510px;
  display: grid;
  place-items: center end;
  padding: clamp(40px, 6vw, 80px);
  background:
    linear-gradient(
      90deg,
      rgb(0 0 0 / 78%),
      rgb(0 0 0 / 18%) 45%,
      rgb(0 0 0 / 72%)
    ),
    url("/images/banner.webp") center / cover no-repeat;
  border-bottom: 18px solid #232323;
}
#hero > div {
  /*width: min(620px, 100%);*/
  text-align: center;
}
#hero p {
  margin-bottom: 0;
  color: var(--gold-2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
#hero h1 {
  margin: 0.2rem 0 0.7rem;
  font-size: clamp(3.1rem, 8vw, 6.2rem);
  color: var(--gold-2);
  letter-spacing: -0.05em;
}
#hero strong {
  display: block;
  margin-bottom: 1.4rem;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  text-shadow: 0 3px 15px #000;
}
#hero a {
  min-width: 260px;
}
#hero small {
  display: block;
  margin-top: 1rem;
  color: #d6d6d6;
}

#hero p {
  color: #fff;
  text-transform: unset;
}

#menu {
  width: min(1120px, calc(100% - 32px));
  margin: 22px auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 38px);
  overflow-x: auto;
  border-radius: 32px;
  background: var(--panel);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
}
#menu a {
  white-space: nowrap;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.9rem;
}
#menu a:first-child {
  padding: 11px 18px;
  border-radius: 26px;
  background: #353535;
  color: var(--gold-2);
}
#menu a:last-child {
  margin-left: auto;
  font-size: 2rem;
}

main > section:not(#hero),
main > article {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}
main section > header > p,
main article > header > p {
  margin-bottom: 0.35rem;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

#games > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}
#games article {
  min-width: 0;
}
#games article a {
  display: block;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgb(0 0 0 / 25%);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}
#games article a > span {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #111;
}
#games article a > span::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(0 0 0 / 48%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
#games img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.3s ease;
}
#games article a > span > span {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  border: 2px solid rgb(255 255 255 / 82%);
  border-radius: 50%;
  background: rgb(227 170 49 / 94%);
  box-shadow: 0 10px 30px rgb(0 0 0 / 42%);
  opacity: 0;
  transform: translate(-50%, -46%) scale(0.72);
  transition:
    opacity 0.28s ease,
    transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.28s ease;
}
#games article a > span > span::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 25%));
}
#games article p {
  min-height: 58px;
  margin: 0;
  padding: 16px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
#games article a:hover,
#games article a:focus-visible {
  transform: translateY(-7px);
  border-color: rgb(227 170 49 / 72%);
  box-shadow: 0 20px 42px rgb(0 0 0 / 38%);
}
#games article a:hover > span::before,
#games article a:focus-visible > span::before {
  opacity: 1;
}
#games article a:hover img,
#games article a:focus-visible img {
  transform: scale(1.07);
  filter: saturate(1.08);
}
#games article a:hover > span > span,
#games article a:focus-visible > span > span {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
#games article a:hover > span > span {
  background: var(--gold-2);
}

#guide {
  max-width: 1120px;
  padding-left: clamp(24px, 6vw, 74px);
  padding-right: clamp(24px, 6vw, 74px);
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 12px;
  background: #292929;
  color: #f4f4f4;
  box-shadow: var(--shadow);
}
#guide > header {
  margin-bottom: 2rem;
}
#guide > header > p {
  color: var(--gold-2);
}
#guide h2 {
  color: #fff;
}
#guide h3 {
  color: var(--gold-2);
}
#guide > p {
  color: #ededed;
  font-size: 1.04rem;
}
#guide ul,
#guide ol {
  padding: 1.2rem 1.2rem 1.2rem 2.6rem;
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #343434;
  color: #f7f7f7;
}
#guide li + li {
  margin-top: 0.55rem;
}
#guide table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 25px rgb(0 0 0 / 22%);
}
#guide caption {
  padding: 14px;
  color: #fff;
  background: #171717;
  font-weight: 800;
  text-align: left;
}
#guide th,
#guide td {
  padding: 14px 16px;
  border-bottom: 1px solid #dedede;
  text-align: left;
  vertical-align: top;
}
#guide th {
  background: #ececec;
}
#guide tbody tr:hover {
  background: #fff8e8;
}
#guide aside {
  margin-top: 2rem;
  padding: 1.4rem 1.6rem;
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  background: #171717;
  color: #fff;
}
#guide aside h3 {
  margin-top: 0;
  color: var(--gold-2);
}

#faq {
  margin-top: 70px;
  margin-bottom: 70px;
  padding: clamp(42px, 6vw, 72px) clamp(24px, 6vw, 72px);
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 12px;
  background: #f4f4f4;
  color: var(--ink);
  box-shadow: var(--shadow);
}
#faq > header {
  margin-bottom: clamp(26px, 4vw, 38px);
}
#faq > header > p {
  margin: 0 0 0.6rem;
  color: var(--gold);
}
#faq h2 {
  margin: 0;
  color: var(--ink);
}
#faq article {
  margin: 0 0 12px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #ececec;
  box-shadow: 0 5px 14px rgb(0 0 0 / 4%);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
#faq article:last-child {
  margin-bottom: 0;
}
#faq article.open {
  border-color: rgb(227 170 49 / 62%);
  box-shadow: 0 12px 28px rgb(0 0 0 / 10%);
}
#faq h3 {
  margin: 0;
  font-size: 1rem;
}
#faq h3 a {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 20px 18px 22px;
  color: #141c29;
  font-weight: 800;
  line-height: 1.35;
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
#faq h3 a:hover,
#faq h3 a:focus-visible {
  background: #e6e6e6;
}
#faq article.open h3 a {
  background: #e9e9e9;
}
#faq h3 span {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  position: relative;
  border: 1px solid rgb(227 170 49 / 55%);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#faq h3 span::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 2px solid #171717;
  border-bottom: 2px solid #171717;
  transform: rotate(45deg);
  transition: border-color 0.3s ease;
}
#faq a[aria-expanded="true"] span {
  border-color: var(--gold);
  background: var(--gold-2);
  transform: rotate(180deg);
}
#faq article > div {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  background: #fff;
  transition:
    height 0.48s cubic-bezier(0.22, 0.75, 0.22, 1),
    opacity 0.3s ease,
    visibility 0s linear 0.48s;
}
#faq article.open > div {
  visibility: visible;
  opacity: 1;
  transition:
    height 0.48s cubic-bezier(0.22, 0.75, 0.22, 1),
    opacity 0.34s ease 0.08s,
    visibility 0s linear 0s;
}
#faq article > div p {
  margin: 0;
  padding: 22px 26px 26px;
  color: #242b35;
  line-height: 1.7;
}

#providers {
  border-top: 1px solid var(--line);
}
#providers > header {
  margin-bottom: clamp(24px, 4vw, 38px);
}
#providers > div {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
#providers a {
  min-width: 0;
  min-height: 124px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 24px 18px;
  border: 1px solid rgb(255 255 255 / 7%);
  border-radius: 12px;
  background: #292929;
  box-shadow: 0 12px 28px rgb(0 0 0 / 20%);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}
#providers a::before {
  content: "";
  width: 80px;
  height: 180%;
  position: absolute;
  top: -40%;
  left: -110px;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(255 255 255 / 10%),
    transparent
  );
  transform: rotate(18deg);
  transition: left 0.55s ease;
}
#providers img {
  width: min(100%, 170px);
  height: 62px;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 1;
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}
#providers a:hover,
#providers a:focus-visible {
  transform: translateY(-6px);
  border-color: rgb(227 170 49 / 65%);
  background: #333;
  box-shadow: 0 20px 38px rgb(0 0 0 / 32%);
}
#providers a:hover::before,
#providers a:focus-visible::before {
  left: calc(100% + 40px);
}
#providers a:hover img,
#providers a:focus-visible img {
  transform: scale(1.05);
  filter: drop-shadow(0 7px 12px rgb(0 0 0 / 28%));
}

body > footer {
  padding: 38px max(24px, calc((100% - 1080px) / 2));
  color: #949494;
  background: #292929;
  font-size: 0.92rem;
}
body > footer img {
  width: 135px;
  opacity: 0.8;
}
body > footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
body > footer nav a {
  color: #c7c7c7;
}
body > footer nav a:hover {
  color: var(--gold-2);
}

#up {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: #222;
  color: var(--gold-2);
  font-size: 1.5rem;
  font-weight: 900;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
#up.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 980px) {
  #games > div {
    grid-template-columns: repeat(3, 1fr);
  }
  #providers > div {
    grid-template-columns: repeat(3, 1fr);
  }
  #hero {
    min-height: 440px;
    place-items: center;
  }
}

@media (max-width: 620px) {
  body > header {
    padding: 9px 14px;
  }
  body > header img {
    width: 118px;
  }
  body > header nav a {
    min-height: 38px;
    padding: 0 13px;
    font-size: 0.7rem;
  }
  #hero {
    min-height: 470px;
    padding: 34px 18px;
    background-position: 40% center;
  }
  #hero h1 {
    font-size: 3.2rem;
  }
  #hero a {
    min-width: 220px;
  }
  #menu {
    border-radius: 18px;
  }
  #games > div {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  #providers > div {
    grid-template-columns: repeat(2, 1fr);
  }
  #guide,
  #faq {
    width: calc(100% - 20px);
  }
  #guide {
    padding-left: 18px;
    padding-right: 18px;
  }
  #faq {
    padding: 34px 14px;
  }
  #faq > header {
    padding: 0 4px;
    margin-bottom: 24px;
  }
  #faq h3 a {
    min-height: 62px;
    padding: 16px 14px 16px 16px;
    gap: 14px;
  }
  #faq h3 span {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }
  #faq article > div p {
    padding: 18px 18px 22px;
  }
  #guide table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  h2 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}