:root {
  --bg: #001f19;
  --bg-deep: #001b16;
  --panel: #06463b;
  --panel-2: #074f42;
  --header: #064d41;
  --line: #177162;
  --mint: #91e0c2;
  --text: #f6faf8;
  --orange: #ff7424;
  --orange-2: #f57f31;
  --sidebar: 260px;
  --header-height: 70px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-height);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--header);
  box-shadow: 0 4px 14px rgb(0 0 0 / 18%);
}

.brand {
  width: 180px;
  display: flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 100%;
  filter: brightness(1.02);
}

.topbar-actions {
  display: flex;
  gap: 9px;
  margin-right: max(0px, calc((100vw - 1554px) / 2 - 40px));
}

.btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #fff;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease, background .16s ease;
}

.btn:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(180deg, #ff7c2d, #ff6a0d);
  box-shadow: 0 3px 6px rgb(0 0 0 / 23%);
}

.btn-outline {
  color: #fff;
  border-color: #d5ebe3;
  background: transparent;
}

.sidebar {
  position: fixed;
  z-index: 45;
  top: var(--header-height);
  bottom: 0;
  left: 0;
  width: var(--sidebar);
  padding: 45px 26px 92px;
  background: #00261f;
  transition: transform .25s ease;
  overflow: hidden auto;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.sidebar-toggle {
  position: fixed;
  z-index: 48;
  top: calc(var(--header-height) + 16px);
  left: calc(var(--sidebar) - 20px);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #dff8ee;
  background: #075d4e;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: left .25s ease, transform .25s ease;
}

.side-menu {
  display: grid;
  gap: 1px;
}

.side-menu a {
  min-height: 39px;
  padding: 6px 0;
  display: grid;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  gap: 7px;
  color: #83dfbc;
  font-size: 16px;
  transition: color .15s ease, transform .15s ease;
}

.side-menu a:hover,
.side-menu a.active {
  color: #a7eed4;
  transform: translateX(2px);
}

.side-menu .nav-icon {
  width: 27px;
  height: 27px;
  display: block;
  color: #9dddc4;
}

.side-menu a b {
  font-size: 26px;
  font-weight: 400;
}

.menu-rule {
  height: 1px;
  margin: 13px 0;
  background: #9fd6c1;
}

.buy-token {
  position: fixed;
  bottom: 24px;
  left: 17px;
  width: 225px;
}

body.sidebar-collapsed .sidebar {
  transform: translateX(-100%);
}

body.sidebar-collapsed .sidebar-toggle {
  left: 12px;
  transform: rotate(180deg);
}

body.sidebar-collapsed .page-shell,
body.sidebar-collapsed .footer {
  margin-left: 0;
}

.page-shell {
  width: min(1294px, calc(100vw - var(--sidebar) - 56px));
  margin: calc(var(--header-height) + 0px) auto 0;
  margin-left: max(calc(var(--sidebar) + 40px), calc((100vw - 1294px + var(--sidebar)) / 2));
  padding: 0 0 34px;
  transition: margin .25s ease;
}

.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 1648 / 350;
  overflow: hidden;
  background: #001813;
}

.hero-track {
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 8px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.hero-dots button.active {
  background: var(--orange);
}

.hero-welcome {
  background:
    linear-gradient(90deg, #001c17 0, #001c17 47%, rgb(0 28 23 / 76%) 61%, rgb(0 28 23 / 4%) 82%),
    url("./tg/welcome-coins.webp") right center / auto 100% no-repeat;
}

.mobile-hero-copy {
  position: absolute;
  z-index: 2;
  top: 38px;
  left: 40px;
  display: grid;
  color: #fff;
  font-weight: 900;
}

.mobile-hero-copy small {
  margin-bottom: 9px;
  font-size: 16px;
  letter-spacing: .3px;
}

.mobile-hero-copy strong {
  color: var(--orange-2);
  font-size: 46px;
  line-height: .93;
}

.mobile-hero-copy span {
  margin-top: 9px;
  font-size: 19px;
  line-height: 1.05;
}

.mobile-hero-copy span b {
  color: var(--orange-2);
}

.playson-slide {
  background:
    linear-gradient(90deg, rgb(0 25 20 / 4%) 0, rgb(0 25 20 / 12%) 42%, rgb(0 25 20 / 88%) 60%, #001913 100%),
    url("./tg/playson-jester.webp") left center / auto 100% no-repeat;
}

.playson-copy {
  position: absolute;
  top: 17px;
  right: 7%;
  bottom: 20px;
  width: 54%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.playson-copy small {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
}

.playson-copy em {
  margin-bottom: 7px;
  font-size: 16px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 1px;
}

.playson-copy strong {
  color: #ffc21f;
  font-size: clamp(24px, 2.5vw, 40px);
  line-height: .9;
  text-shadow:
    0 2px 0 #bc3900,
    0 4px 10px rgb(0 0 0 / 55%);
}

.playson-copy b {
  margin-top: 7px;
  color: #ffd99a;
  font-size: clamp(40px, 4.5vw, 67px);
  line-height: .9;
  text-shadow:
    0 3px 0 #a55305,
    0 6px 14px rgb(0 0 0 / 55%);
}

.searchbox {
  height: 46px;
  margin: 29px 0 26px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 10px;
  background: #043128;
}

.searchbox span {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  border: 2px solid #9dddc4;
  border-radius: 50%;
}

.searchbox span::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  background: #9dddc4;
  transform: rotate(45deg);
  transform-origin: left center;
}

.searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #f5fffb;
  background: transparent;
  font-size: 17px;
}

.searchbox input::placeholder {
  color: #7e918b;
}

.gateway-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px;
}

.gateway-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.gateway-card > img {
  display: block;
  width: 100%;
  aspect-ratio: 278 / 135;
  object-fit: cover;
}

.gateway-copy {
  min-height: 220px;
  padding: 17px 14px 15px;
  display: flex;
  flex-direction: column;
}

.gateway-copy h2 {
  margin: 0 0 17px;
  font-size: 20px;
  line-height: 1.05;
}

.gateway-copy p {
  margin: 0 0 20px;
  color: #74e3b8;
  font-size: 17px;
  line-height: 1.32;
}

.gateway-copy .btn {
  width: 100%;
  margin-top: auto;
}

.payment-banner,
.crypto-banner {
  min-height: 66px;
  margin-top: 26px;
  padding: 10px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 26px;
  border: 1px solid #0c5d4f;
  border-radius: var(--radius);
  background: var(--panel);
}

.payment-banner h2,
.crypto-banner h2 {
  margin: 0;
  font-size: 20px;
}

.payment-banner h2 {
  text-align: center;
}

.payment-banner .btn,
.crypto-banner .btn {
  justify-self: end;
}

.payment-marks {
  display: flex;
  align-items: center;
  gap: 25px;
}

.payment-marks strong {
  font-size: 34px;
  font-style: italic;
}

.mastercard {
  position: relative;
  width: 50px;
  height: 32px;
}

.mastercard::before,
.mastercard::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 29px;
  height: 29px;
  border-radius: 50%;
}

.mastercard::before {
  left: 0;
  background: #ff331e;
}

.mastercard::after {
  right: 0;
  background: #ff9f00;
  opacity: .92;
}

.content-section {
  margin-top: 28px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.content-section h2,
.section-heading h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.heading-icon {
  width: 17px;
  height: 17px;
  display: inline-block;
  color: var(--orange);
  vertical-align: -3px;
}

.section-heading a {
  color: var(--orange);
  font-weight: 800;
}

.games-scroller,
.providers-scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 207px;
  gap: 9px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.games-scroller::-webkit-scrollbar,
.providers-scroller::-webkit-scrollbar {
  display: none;
}

.game-card {
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: transparent;
  scroll-snap-align: start;
  cursor: pointer;
}

.game-card img {
  display: block;
  width: 100%;
  aspect-ratio: 392 / 499;
  object-fit: cover;
  transition: transform .25s ease, filter .25s ease;
}

.game-card:hover img {
  transform: scale(1.03);
  filter: brightness(1.08);
}

.game-card.is-hidden {
  display: none;
}

.empty-search {
  margin: 18px 0 0;
  color: var(--mint);
}

.crypto-banner {
  min-height: 97px;
  padding: 16px 24px;
}

.crypto-banner h2 {
  line-height: 1.22;
}

.coin-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.coin-row img {
  width: 33px;
  height: 33px;
  object-fit: contain;
  border-radius: 50%;
}

.providers > h2,
.winners > h2 {
  margin-bottom: 27px;
}

.providers-scroller {
  grid-auto-columns: 183px;
  gap: 8px;
}

.providers-scroller > div {
  height: 96px;
  padding: 13px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #085345;
}

.providers-scroller img {
  display: block;
  width: 100%;
  max-height: 70px;
  object-fit: contain;
  filter: grayscale(1) brightness(4.2);
}

.winners {
  margin-top: 39px;
}

.winners-tabs {
  display: flex;
  gap: 17px;
  margin-bottom: 22px;
}

.winners-tabs button {
  padding: 0 16px 9px;
  border: 0;
  border-bottom: 1px solid transparent;
  color: #6fddb5;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.winners-tabs button.active {
  color: #fff;
  border-color: #b8efda;
}

.table-wrap {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-size: 16px;
}

th {
  padding: 0 16px 5px;
  color: #65d8ad;
  font-size: 14px;
  font-weight: 400;
  text-align: left;
}

th:not(:first-child),
td:not(:first-child) {
  text-align: center;
}

th:last-child,
td:last-child {
  text-align: right;
}

td {
  height: 77px;
  padding: 12px 16px;
  background: #075345;
}

tbody tr:nth-child(even) td {
  background: transparent;
}

td:first-child {
  border-radius: 8px 0 0 8px;
}

td:last-child {
  border-radius: 0 8px 8px 0;
}

td.positive {
  color: #70e4b8;
}

.seo-section {
  margin-top: 35px;
  padding: 26px 14px 30px;
  border-radius: 7px;
  color: #fff;
  background: #075345;
}

.seo-content h1 {
  margin: 0 0 18px;
  font-size: 28px;
  line-height: 1.14;
}

.seo-content h2 {
  margin: 22px 0 10px;
  font-size: 21px;
  line-height: 1.18;
}

.seo-content p {
  margin: 0 0 13px;
  color: #fff;
  font-size: 14px;
  line-height: 1.42;
}

.seo-content strong {
  font-weight: 800;
}

.footer {
  min-height: 430px;
  margin-left: var(--sidebar);
  padding: 34px 40px 70px;
  background: #075345;
  transition: margin .25s ease;
}

.footer-inner {
  width: min(1294px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1.1fr 1.05fr 1fr;
  gap: 55px;
}

.footer h3 {
  margin: 9px 0 17px;
  font-size: 17px;
}

.footer a {
  display: block;
  margin-bottom: 16px;
  color: #74e3b8;
  line-height: 1.2;
}

.footer-brand > img {
  width: 190px;
  margin-bottom: 11px;
}

.footer-brand p {
  margin: 0 0 23px;
  color: #6fe0b6;
  font-size: 13px;
}

.age-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.age-row span:first-child {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 50%;
  font-weight: 800;
}

.age-row span:last-child {
  padding: 3px 5px;
  border: 2px solid #fff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  line-height: .9;
}

.socials {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 14px;
}

.socials a {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.socials img {
  display: block;
  width: 33px;
  height: 33px;
}

.mobile-nav {
  display: none;
}

.chat-button {
  position: fixed;
  z-index: 60;
  right: 50px;
  bottom: 45px;
  width: 61px;
  height: 61px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--orange);
  background: var(--orange);
  box-shadow: 0 6px 18px rgb(0 0 0 / 32%);
  cursor: pointer;
}

.chat-button::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
}

.chat-button span {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 5px;
  padding: 2px 3px;
  border-radius: 3px;
  color: var(--orange);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: 300px;
  padding: 13px 18px;
  border: 1px solid #70e4b8;
  border-radius: 8px;
  color: #fff;
  background: #075345;
  box-shadow: 0 10px 30px rgb(0 0 0 / 35%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1500px) {
  .page-shell {
    width: calc(100vw - var(--sidebar) - 40px);
    margin-left: calc(var(--sidebar) + 20px);
  }

  .gateway-grid {
    gap: 16px;
  }

  .games-scroller {
    grid-auto-columns: 16.5vw;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 74px;
  }

  body {
    padding-bottom: 57px;
    font-size: 16px;
  }

  .topbar {
    padding: 0 19px;
  }

  .brand {
    width: 72px;
    display: grid;
    align-content: center;
    line-height: 1;
  }

  .brand img {
    display: none;
  }

  .brand::before {
    content: "TG·";
    color: var(--orange-2);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 1px;
  }

  .brand::after {
    content: "CASINO◆";
    margin-top: 2px;
    color: #fff;
    font-size: 12px;
    letter-spacing: .2px;
  }

  .topbar-actions {
    gap: 10px;
    margin: 0;
  }

  .topbar .btn {
    min-height: 49px;
    padding: 0 16px;
    font-size: 18px;
  }

  .sidebar {
    z-index: 70;
    top: var(--header-height);
    width: 260px;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 28px rgb(0 0 0 / 45%);
  }

  .sidebar-toggle,
  .buy-token {
    display: none;
  }

  .page-shell,
  body.sidebar-collapsed .page-shell {
    width: auto;
    margin: var(--header-height) 16px 0;
    padding-bottom: 28px;
  }

  .hero {
    height: 233px;
    margin: 0;
    aspect-ratio: auto;
  }

  .hero-slide img {
    object-fit: cover;
  }

  .hero-welcome {
    background:
      linear-gradient(90deg, rgb(0 28 23 / 96%) 0, rgb(0 28 23 / 84%) 39%, rgb(0 28 23 / 8%) 71%),
      url("./tg/welcome-coins.webp") right center / auto 100% no-repeat;
  }

  .mobile-hero-copy {
    position: absolute;
    z-index: 2;
    top: 27px;
    left: 27px;
    display: grid;
    color: #fff;
    font-weight: 900;
  }

  .mobile-hero-copy small {
    margin-bottom: 8px;
    font-size: 13px;
    letter-spacing: .3px;
  }

  .mobile-hero-copy strong {
    color: var(--orange-2);
    font-size: 33px;
    line-height: .97;
  }

  .mobile-hero-copy span {
    margin-top: 8px;
    font-size: 16px;
    line-height: 1.03;
  }

  .mobile-hero-copy span b {
    color: var(--orange-2);
  }

  .hero-dots {
    bottom: 4px;
  }

  .playson-slide {
    background:
      linear-gradient(90deg, rgb(0 25 20 / 5%) 0, rgb(0 25 20 / 30%) 38%, rgb(0 25 20 / 92%) 62%, #001913 100%),
      url("./tg/playson-jester.webp") left center / auto 100% no-repeat;
  }

  .playson-copy {
    top: 18px;
    right: 3%;
    bottom: 18px;
    width: 58%;
  }

  .playson-copy small {
    font-size: 12px;
  }

  .playson-copy em {
    font-size: 12px;
  }

  .playson-copy strong {
    font-size: 20px;
  }

  .playson-copy b {
    font-size: 35px;
  }

  .searchbox {
    height: 51px;
    margin: 32px 0 28px;
    padding-left: 15px;
  }

  .searchbox input {
    font-size: 20px;
  }

  .gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 29px 28px;
  }

  .gateway-card {
    border-radius: 12px;
  }

  .gateway-card > img {
    aspect-ratio: 224 / 109;
  }

  .gateway-copy {
    min-height: 252px;
    padding: 14px 12px 0;
  }

  .gateway-copy h2 {
    margin-bottom: 18px;
    font-size: 23px;
    min-height: 49px;
    white-space: normal;
  }

  .gateway-copy p {
    margin-bottom: 17px;
    font-size: 20px;
    line-height: 1.2;
  }

  .gateway-copy .btn {
    width: calc(100% + 24px);
    min-height: 55px;
    margin-left: -12px;
    border-radius: 5px 5px 0 0;
    font-size: 18px;
  }

  .payment-banner,
  .content-section,
  .crypto-banner,
  .providers,
  .winners,
  .footer {
    display: none;
  }

  .seo-section {
    margin-top: 28px;
    padding: 20px 14px 25px;
  }

  .seo-content h1 {
    font-size: 24px;
    line-height: 1.17;
  }

  .seo-content h2 {
    margin-top: 21px;
    font-size: 19px;
  }

  .seo-content p {
    font-size: 15px;
    line-height: 1.5;
  }

  .mobile-nav {
    position: fixed;
    z-index: 65;
    right: 0;
    bottom: 0;
    left: 0;
    height: 57px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #075345;
    box-shadow: 0 -6px 18px rgb(0 0 0 / 22%);
  }

  .mobile-nav a,
  .mobile-nav button {
    min-width: 0;
    padding: 4px 1px 3px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 0;
    color: #9ae4c7;
    background: transparent;
    font-size: clamp(10px, 2.35vw, 12px);
    white-space: nowrap;
  }

  .mobile-nav .nav-icon {
    width: 28px;
    height: 28px;
    color: #9ae4c7;
  }

  .chat-button {
    right: 10px;
    bottom: 76px;
  }

  .toast {
    right: 16px;
    bottom: 72px;
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 430px) {
  .topbar {
    padding: 0 14px;
  }

  .topbar .btn {
    padding: 0 12px;
    font-size: 16px;
  }

  .page-shell,
  body.sidebar-collapsed .page-shell {
    margin-right: 12px;
    margin-left: 12px;
  }

  .hero {
    height: 210px;
  }

  .mobile-hero-copy {
    top: 21px;
    left: 20px;
  }

  .mobile-hero-copy strong {
    font-size: 29px;
  }

  .gateway-grid {
    gap: 24px 16px;
  }

  .gateway-copy h2 {
    font-size: 19px;
  }

  .gateway-copy p {
    font-size: 17px;
  }
}

@media (max-width: 360px) {
  .topbar {
    padding: 0 10px;
  }

  .brand {
    width: 58px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .topbar .btn {
    min-height: 44px;
    padding: 0 8px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
