@keyframes thCtaGlow {
  0%, 100% { box-shadow: 0 0 18px 3px rgba(255,140,66,.55), 0 0 34px 8px rgba(255,166,64,.28), inset 0 0 18px rgba(255,166,64,.18); }
  50% { box-shadow: 0 0 30px 7px rgba(255,140,66,.85), 0 0 60px 16px rgba(255,166,64,.45), inset 0 0 26px rgba(255,166,64,.3); }
}

@keyframes thHeroGlow {
  0%, 100% { box-shadow: 0 0 0 1px #39D5FF, 0 0 46px rgba(57,213,255,.28); }
  50% { box-shadow: 0 0 0 1px #7DEBFF, 0 0 74px rgba(57,213,255,.48); }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body.th-body {
  min-height: 100vh;
  background: #06101E;
  color: #EAF8FF;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

a { color: #7DEBFF; text-decoration: none; }
a:hover { color: #FFD66B; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

::-webkit-scrollbar { height: 0; width: 8px; }
::-webkit-scrollbar-thumb { background: #123B5E; border-radius: 4px; }

.th-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(2,6,12,.65);
  backdrop-filter: blur(2px);
}

.th-backdrop.is-open { display: block; }

/* Header */
.th-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 28px;
  background: linear-gradient(180deg, rgba(5,13,24,.97), rgba(8,22,38,.94));
  border-bottom: 1px solid #16324C;
  backdrop-filter: blur(10px);
}

.th-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.th-hamburger.hamburger-btn {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #0C2035;
  border: 1px solid #1A3A57;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
}

.th-logo-link { display: flex; align-items: center; }

.th-logo--header {
  width: 210px;
  height: 66px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.th-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.th-search-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #0C2035;
  border: 1px solid #1A3A57;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.th-search-btn:hover {
  border-color: #39D5FF;
  box-shadow: 0 0 12px rgba(57,213,255,.4);
}

.th-btn-login {
  height: 42px;
  padding: 0 22px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid #39D5FF;
  color: #EAF8FF;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 1px;
  transition: background 0.2s, box-shadow 0.2s;
}

.th-btn-login:hover {
  background: rgba(57,213,255,.12);
  box-shadow: 0 0 14px rgba(57,213,255,.35);
}

.th-btn-signup {
  height: 42px;
  padding: 0 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #FFD66B, #D99A1F);
  color: #2A1B03;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 1px;
  box-shadow: 0 0 16px rgba(255,214,107,.35);
  transition: filter 0.2s, box-shadow 0.2s;
}

.th-btn-signup:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 24px rgba(255,214,107,.55);
}

/* Layout */
.th-layout {
  display: flex;
  align-items: stretch;
  position: relative;
}

.th-sidebar {
  width: 224px;
  flex-shrink: 0;
  background: #0A1A2C;
  border-right: 1px solid #16324C;
  padding: 22px 16px;
  position: sticky;
  top: 78px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 200;
  transition: transform 0.32s cubic-bezier(.16,1,.3,1);
}

.th-sidebar-cta-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
  padding: 8px 0;
}

.th-cta-skew {
  position: relative;
  transform: skewX(-12deg);
  border-radius: 4px;
  border: 1.5px solid #FFE9A8;
  background: linear-gradient(135deg, #FFD66B, #D99A1F);
  box-shadow: 0 0 16px rgba(255,214,107,.3);
}

.th-cta-skew--hero {
  animation: thCtaGlow 2.4s ease-in-out infinite;
}

.th-btn-play,
.th-btn-hero {
  position: relative;
  display: block;
  width: 100%;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #2A1B03;
  font-family: 'Bebas Neue', sans-serif;
  transform: skewX(12deg);
  transition: filter 0.2s;
}

.th-btn-play {
  height: 46px;
  font-size: 18px;
  letter-spacing: 1px;
}

.th-btn-play:hover,
.th-btn-hero:hover { filter: brightness(1.08); }

.th-nav-slot--mobile { display: none; }

.th-nav-slot--desktop .th-menu-list,
.th-nav-slot--mobile .th-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.th-nav-slot--desktop .th-menu-link,
.th-nav-slot--mobile .th-menu-link {
  display: block;
  padding: 12px 14px;
  border-radius: 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 17px;
  letter-spacing: 0.6px;
  color: #B9DCF0;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}

.th-nav-slot--desktop .th-menu-link:hover,
.th-nav-slot--mobile .th-menu-link:hover {
  background: #0F2A44;
  color: #7DEBFF;
  border-left-color: #39D5FF;
}

/* Main */
.th-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Hero */
.th-hero {
  margin: 26px 26px 0;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #39D5FF;
  animation: thHeroGlow 4.5s ease-in-out infinite;
}

.th-hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1774 / 887;
  object-fit: cover;
  object-position: center;
  display: block;
}

.th-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,10,20,.94) 0%, rgba(4,10,20,.72) 34%, rgba(4,10,20,.15) 62%, transparent 78%);
}

.th-hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 0 5%;
  max-width: 640px;
}

.th-hero-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.12;
  margin: 0 0 30px;
  color: #FFFFFF;
  text-shadow: 0 0 30px rgba(57,213,255,.4);
}

.th-hero-cta-wrap {
  position: relative;
  width: fit-content;
  padding: 26px 40px;
}

.th-btn-hero {
  height: 60px;
  padding: 0 48px;
  font-size: 24px;
  letter-spacing: 2px;
  white-space: nowrap;
}

/* Menu strip */
.th-menu-strip { margin: 22px 26px 0; }

.th-menu-strip-inner {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.th-strip-item {
  flex: 1;
  min-width: 150px;
  text-align: center;
  padding: 15px 10px;
  border-radius: 10px;
  background: linear-gradient(160deg, #0E2338, #081420);
  border: 1.5px solid #3FD2F2;
  box-shadow: inset 0 0 10px rgba(57,213,255,.22), 0 0 16px rgba(57,213,255,.28);
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 1px;
  color: #EAF8FF;
  transition: all 0.2s;
}

.th-strip-item:hover {
  border-color: #7DEBFF;
  box-shadow: inset 0 0 14px rgba(125,235,255,.35), 0 0 24px rgba(57,213,255,.5);
  transform: translateY(-2px);
}

/* Section head */
.th-section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}

.th-section-title {
  font-family: 'Cinzel', serif;
  color: #FFD66B;
  font-size: 26px;
  letter-spacing: 1px;
  margin: 0;
  white-space: nowrap;
}

.th-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #39D5FF, transparent 80%);
}

.th-scroll-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0C2035;
  border: 1px solid #1A3A57;
  color: #7DEBFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.th-scroll-btn:hover {
  border-color: #39D5FF;
  box-shadow: 0 0 12px rgba(57,213,255,.4);
}

/* Games */
.th-games { margin: 48px 26px 0; }

.th-games-track {
  display: flex;
  gap: 48px;
  overflow-x: auto;
  padding: 30px 4px 14px 46px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.th-games-track::-webkit-scrollbar { display: none; }

.th-game-card {
  position: relative;
  flex-shrink: 0;
  width: 250px;
  padding-top: 18px;
}

.th-game-rank {
  position: absolute;
  top: 0;
  left: -38px;
  font-family: 'Cinzel', serif;
  font-weight: 800;
  font-size: 90px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px #39D5FF;
  text-shadow: 0 0 22px rgba(57,213,255,.65);
  z-index: 2;
  user-select: none;
  white-space: nowrap;
}

.th-game-thumb {
  position: relative;
  z-index: 1;
  margin-left: 16px;
  width: calc(100% - 16px);
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #2B5978;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  transition: transform 0.28s cubic-bezier(.16,1,.3,1), box-shadow 0.28s ease, border-color 0.28s ease;
  cursor: pointer;
  display: block;
  background: transparent;
}

.th-game-thumb img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.th-game-card:hover .th-game-thumb {
  transform: translateY(-8px) scale(1.03);
  border-color: #7DEBFF;
  box-shadow: 0 0 0 2px rgba(57,213,255,.65), 0 16px 36px rgba(57,213,255,.35);
}

/* Content */
.th-content-section {
  margin: 56px 26px;
  background: #0A1A2C;
  border: 1px solid #16324C;
  border-radius: 18px;
  padding: 52px;
}

.th-content h2 {
  font-family: 'Cinzel', serif;
  color: #FFD66B;
  font-size: 26px;
  margin: 0 0 18px;
}

.th-content h3 {
  font-family: 'Cinzel', serif;
  color: #EAF8FF;
  font-size: 20px;
  margin: 32px 0 16px;
}

.th-content p {
  font-size: 15px;
  line-height: 1.75;
  color: #CDE7F5;
  max-width: 820px;
  margin: 0 0 14px;
}

.th-content ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  max-width: 820px;
}

.th-content ul li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #D9EEFA;
  font-size: 15px;
  line-height: 1.5;
}

.th-content ul li::before {
  content: '\2713';
  color: #FFD66B;
  font-weight: 700;
  flex-shrink: 0;
}

.th-content blockquote {
  position: relative;
  margin: 24px 0;
  padding: 6px 0 6px 28px;
  border-left: 4px solid #FFD66B;
  max-width: 720px;
}

.th-content blockquote p {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: #EAF8FF;
}

.th-content table {
  width: 100%;
  max-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  margin: 20px 0;
}

.th-content table th {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid #1A3A57;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  color: #FFD66B;
  font-weight: 400;
}

.th-content table td {
  padding: 12px 14px;
  border-bottom: 1px solid #12283F;
  color: #D9EEFA;
}

.th-content details {
  border-bottom: 1px solid #17324C;
  padding: 14px 0;
  max-width: 720px;
}

.th-content details summary {
  cursor: pointer;
  font-weight: 600;
  color: #EAF8FF;
  font-size: 15px;
  list-style: none;
}

.th-content details summary::-webkit-details-marker { display: none; }

.th-content details p {
  margin: 12px 0 0;
  color: #B9DCF0;
  font-size: 14px;
}

/* Providers */
.th-providers { margin: 0 26px 56px; }

.th-prov-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 4px 14px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.th-prov-track::-webkit-scrollbar { display: none; }

.th-prov-card {
  flex-shrink: 0;
  width: 130px;
  height: 90px;
  border-radius: 10px;
  background: #0C2035;
  border: 1px solid #17324C;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.th-prov-card:hover {
  border-color: #39D5FF;
  box-shadow: 0 0 16px rgba(57,213,255,.3);
}

.th-prov-card img {
  max-width: 82%;
  max-height: 38px;
  object-fit: contain;
}

/* Footer */
.th-footer {
  background: #03060D;
  border-top: 1px solid #16324C;
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.th-footer-logo-wrap { width: 170px; height: 54px; }

.th-logo--footer {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.th-nav-slot--footer {
  display: flex;
  justify-content: center;
  width: 100%;
}

.th-nav-slot--footer .th-footer-nav,
.th-nav-slot--footer nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 11px;
  width: 100%;
}

.th-nav-slot--footer .th-footer-link,
.th-nav-slot--footer nav a {
  display: inline-block;
  white-space: nowrap;
  font-size: 12px;
  color: #5F8CA8;
  transition: color 0.2s;
}

.th-nav-slot--footer .th-footer-link:hover,
.th-nav-slot--footer nav a:hover { color: #FFD66B; }

.th-security-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.th-security-badge {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #0C2035;
  border: 1px solid #1A3A57;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
}

.th-security-badge:hover { border-color: #39D5FF; }

.th-security-badge img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.th-social-row { display: flex; gap: 12px; }

.th-social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #0C2035;
  border: 1px solid #1A3A57;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7DEBFF;
  transition: border-color 0.2s, color 0.2s;
}

.th-social-btn:hover {
  border-color: #FFD66B;
  color: #FFD66B;
}

.th-footer-copy {
  font-size: 12px;
  color: #5F8CA8;
  text-align: center;
  line-height: 1.6;
}

@media (max-width: 768px) {
  table {
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}

@media (max-width: 860px) {
  .th-header {
    height: 64px;
    gap: 10px;
    padding: 0 14px;
  }

  .th-hamburger.hamburger-btn { display: flex; }

  .th-logo--header {
    width: 128px;
    height: 40px;
  }

  .th-search-btn { display: none; }

  .th-btn-login {
    height: 36px;
    padding: 0 12px;
    font-size: 13px;
    letter-spacing: 0.5px;
  }

  .th-btn-signup {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 12px rgba(255,214,107,.35);
  }

  .th-header-actions { gap: 8px; }

  .th-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    max-width: 80vw;
    height: 100vh;
    transform: translateX(-105%);
    overflow-y: auto;
    box-shadow: none;
  }

  .th-sidebar.is-open {
    transform: translateX(0);
    box-shadow: 20px 0 40px rgba(0,0,0,.5);
  }

  .th-nav-slot--desktop { display: none; }
  .th-nav-slot--mobile { display: block; }

  .th-hero {
    margin: 14px 14px 0;
    border: none;
    animation: none;
  }

  .th-hero-img { aspect-ratio: 1 / 1; }

  .th-hero-overlay {
    background: linear-gradient(100deg, rgba(4,10,20,.88) 0%, rgba(4,10,20,.62) 32%, rgba(4,10,20,.05) 58%, transparent 70%);
  }

  .th-hero-content {
    justify-content: flex-end;
    padding: 0 0 14% 8%;
    max-width: 62%;
  }

  .th-hero-title {
    font-size: clamp(20px, 6.4vw, 27px);
    margin-bottom: 18px;
  }

  .th-hero-cta-wrap { padding: 10px 0; }

  .th-btn-hero {
    height: 44px;
    padding: 0 18px;
    font-size: 14px;
  }

  .th-menu-strip { margin: 18px 14px 0; }

  .th-menu-strip-inner {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 2px 2px 6px;
  }

  .th-strip-item {
    flex: 0 0 auto;
    min-width: 132px;
    padding: 12px 14px;
    font-size: 15px;
    white-space: nowrap;
  }

  .th-games { margin: 38px 14px 0; }

  .th-section-head { gap: 10px; }

  .th-section-title { font-size: 20px; }

  .th-scroll-btn {
    width: 32px;
    height: 32px;
  }

  .th-games-track {
    gap: 26px;
    padding: 24px 4px 12px 30px;
  }

  .th-game-card { width: 160px; }

  .th-game-rank {
    left: -22px;
    font-size: 54px;
  }

  .th-game-thumb img { height: 236px; }

  .th-content-section {
    margin: 32px 14px;
    padding: 26px 20px;
  }

  .th-content ul { grid-template-columns: 1fr; }

  .th-content blockquote p { font-size: 18px; }

  .th-providers { margin: 0 14px 40px; }

  .th-prov-card {
    width: 104px;
    height: 72px;
  }

  .th-footer { padding: 30px 18px; }
}

@media (min-width: 861px) {
  .th-nav-slot--desktop { display: block; }
  .th-nav-slot--mobile { display: none; }
}
