:root {
  --tty9-primary: #317556;
  --tty9-primary-hover: #3e926a;
  --tty9-accent: #b22f34;
  --tty9-bg: #0a0e17;
  --tty9-sidebar-bg: #05080f;
  --tty9-panel-bg: rgba(22, 31, 48, 0.65);
  --tty9-panel-border: rgba(255, 255, 255, 0.08);
  --tty9-text-main: #f8fafc;
  --tty9-text-dim: #94a3b8;
  --tty9-radius: 12px;
  --tty9-font-head: 'Nunito', sans-serif;
  --tty9-font-body: 'Poppins', sans-serif;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--tty9-bg);
  color: var(--tty9-text-main);
  font-family: var(--tty9-font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--tty9-font-head);
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-weight: 700;
  color: #fff;
}
a {
  color: var(--tty9-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--tty9-primary-hover);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.tty9-glass {
  background: var(--tty9-panel-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--tty9-panel-border);
  border-radius: var(--tty9-radius);
}

.tty9-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

/* Sidebar styling */
.tty9-sidebar {
  width: 260px;
  background-color: var(--tty9-sidebar-bg);
  border-right: 1px solid var(--tty9-panel-border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  transition: transform 0.3s ease;
}
.tty9-sidebar-head {
  padding: 1.5rem;
  border-bottom: 1px solid var(--tty9-panel-border);
}
.tty9-logo {
  font-family: var(--tty9-font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tty9-primary);
  letter-spacing: 0.5px;
}
.tty9-nav-menu {
  padding: 1.5rem 1rem;
  flex-grow: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.tty9-nav-link {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--tty9-text-dim);
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
}
.tty9-nav-link:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.tty9-sidebar-foot {
  padding: 1.5rem;
  border-top: 1px solid var(--tty9-panel-border);
  text-align: center;
}
.tty9-badge-solid {
  display: inline-block;
  background: var(--tty9-primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
}

/* Main Content */
.tty9-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  margin-left: 0;
}
.tty9-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: var(--tty9-sidebar-bg);
  border-bottom: 1px solid var(--tty9-panel-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.tty9-btn-menu {
  background: transparent;
  border: none;
  color: var(--tty9-text-main);
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tty9-sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px);
  z-index: 45;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.tty9-sidebar-overlay.tty9-active {
  opacity: 1;
  visibility: visible;
}

.tty9-top-ticker {
  display: flex;
  align-items: center;
  background: rgba(49, 117, 86, 0.15);
  border-bottom: 1px solid var(--tty9-primary);
  padding: 0;
  overflow: hidden;
}
.tty9-ticker-badge {
  background: var(--tty9-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 0.5rem 1rem;
  z-index: 2;
  flex-shrink: 0;
}
.tty9-ticker-wrap {
  flex-grow: 1;
  overflow: hidden;
  white-space: nowrap;
}
.tty9-ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: tty9-ticker-anim 25s linear infinite;
}
.tty9-ticker-item {
  display: inline-flex;
  align-items: center;
  color: var(--tty9-text-main);
  margin-right: 2rem;
  font-size: 13px;
}
.tty9-ticker-dot {
  width: 6px;
  height: 6px;
  background: var(--tty9-accent);
  border-radius: 50%;
  margin-right: 8px;
}
@keyframes tty9-ticker-anim {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.tty9-dashboard-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

/* Hero */
.tty9-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}
.tty9-hero-img-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.tty9-hero-img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.4) 100%);
}
.tty9-img-fluid {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tty9-hero-txt {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2rem;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}
.tty9-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(49, 117, 86, 0.3);
  border: 1px solid var(--tty9-primary);
  color: #a7f3d0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
}
.tty9-hero-title {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}
.tty9-brand-text {
  color: var(--tty9-primary);
}
.tty9-hero-slogan {
  color: var(--tty9-text-dim);
  font-size: 15px;
  margin: 0;
}

/* Stats */
.tty9-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.tty9-stat-card {
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.3s ease;
}
.tty9-stat-card:hover {
  transform: translateY(-3px);
}
.tty9-stat-val {
  font-family: var(--tty9-font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--tty9-primary);
  margin-bottom: 0.25rem;
}
.tty9-stat-lbl {
  font-size: 13px;
  color: var(--tty9-text-dim);
}

/* Showcase / Cards */
.tty9-section-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tty9-section-title {
  font-size: 1.5rem;
  position: relative;
  padding-left: 1rem;
}
.tty9-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--tty9-primary);
  border-radius: 2px;
}
.tty9-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 4px;
}
.tty9-tab-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--tty9-panel-border);
  color: var(--tty9-text-dim);
  padding: 6px 16px;
  border-radius: 99px;
  font-family: var(--tty9-font-body);
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}
.tty9-tab-btn.tty9-active, .tty9-tab-btn:hover {
  background: var(--tty9-primary);
  color: #fff;
  border-color: var(--tty9-primary);
}
.tty9-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.tty9-game-card {
  display: block;
  background: var(--tty9-panel-bg);
  border: 1px solid var(--tty9-panel-border);
  border-radius: var(--tty9-radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.tty9-game-card:hover {
  transform: translateY(-5px);
  border-color: var(--tty9-primary);
}
.tty9-card-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.tty9-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tty9-game-card:hover .tty9-card-img {
  transform: scale(1.05);
}
.tty9-card-body {
  padding: 1rem;
}
.tty9-card-title {
  font-size: 15px;
  margin-bottom: 0.25rem;
  color: #fff;
}
.tty9-card-sub {
  font-size: 13px;
  color: var(--tty9-text-dim);
  margin: 0 0 0.75rem 0;
}

/* Widgets */
.tty9-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.tty9-widget {
  padding: 1.5rem;
}
.tty9-widget-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--tty9-panel-border);
}
.tty9-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tty9-benefit-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.tty9-bn-icon {
  color: var(--tty9-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.tty9-bn-txt {
  font-size: 14px;
  color: var(--tty9-text-dim);
}
.tty9-bn-txt strong {
  color: var(--tty9-text-main);
  display: block;
  margin-bottom: 2px;
}
.tty9-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.tty9-chip, .tty9-chip-accent {
  padding: 6px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--tty9-panel-border);
}
.tty9-chip-accent {
  background: rgba(178, 47, 52, 0.2);
  border-color: var(--tty9-accent);
  color: #fca5a5;
}

/* Table */
.tty9-full-widget {
  padding: 1.5rem;
}
.tty9-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tty9-data-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
.tty9-data-table th, .tty9-data-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--tty9-panel-border);
}
.tty9-data-table th {
  font-family: var(--tty9-font-head);
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,0.02);
}
.tty9-text-primary {
  color: var(--tty9-primary) !important;
  font-weight: 600;
}

/* Steps */
.tty9-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.tty9-step-card {
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}
.tty9-step-num {
  position: absolute;
  top: -15px;
  right: -10px;
  font-family: var(--tty9-font-head);
  font-size: 5rem;
  font-weight: 800;
  color: rgba(255,255,255,0.03);
  line-height: 1;
}
.tty9-step-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}
.tty9-step-desc {
  font-size: 14px;
  color: var(--tty9-text-dim);
  margin: 0;
  position: relative;
  z-index: 2;
}

/* Article Wrap */
.tty9-article-wrap {
  padding: 1.5rem;
  font-size: 15px;
  line-height: 1.7;
  color: var(--tty9-text-dim);
}
.tty9-article-wrap h2, .tty9-article-wrap h3 {
  color: var(--tty9-text-main);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}
.tty9-article-wrap p {
  margin-bottom: 1rem;
}
.tty9-article-wrap ul, .tty9-article-wrap ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.tty9-article-wrap li {
  margin-bottom: 0.5rem;
}
.tty9-article-wrap a {
  text-decoration: underline;
}

/* Breadcrumbs & Pager */
.tty9-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 13px;
  color: var(--tty9-text-dim);
  align-items: center;
}
.tty9-crumb-link {
  color: var(--tty9-text-dim);
}
.tty9-breadcrumbs a::after {
  content: '/';
  margin-left: 0.5rem;
  color: rgba(255,255,255,0.2);
}
.tty9-breadcrumbs a:last-child::after {
  display: none;
}
.tty9-page-header {
  margin-bottom: 1rem;
}
.tty9-page-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.tty9-page-meta {
  font-size: 14px;
  color: var(--tty9-primary);
}

/* FAQ */
.tty9-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tty9-faq-item {
  background: var(--tty9-panel-bg);
  border: 1px solid var(--tty9-panel-border);
  border-radius: var(--tty9-radius);
  overflow: hidden;
}
.tty9-faq-q {
  padding: 1.25rem;
  font-family: var(--tty9-font-head);
  font-weight: 700;
  color: var(--tty9-text-main);
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.tty9-faq-q::-webkit-details-marker {
  display: none;
}
.tty9-faq-q::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--tty9-primary);
  transition: transform 0.3s ease;
}
.tty9-faq-item[open] .tty9-faq-q::after {
  content: '-';
}
.tty9-faq-a {
  padding: 0 1.25rem 1.25rem;
  font-size: 14px;
  color: var(--tty9-text-dim);
}

.tty9-pager-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--tty9-panel-border);
  padding-top: 1.5rem;
}
.tty9-pager-btn {
  padding: 0.75rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tty9-text-main);
  border: 1px solid var(--tty9-panel-border);
  transition: all 0.3s ease;
}
.tty9-pager-btn:hover {
  background: var(--tty9-primary);
  border-color: var(--tty9-primary);
}

.tty9-related-section {
  padding: 1.5rem;
}
.tty9-related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Footer */
.tty9-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  margin-top: auto;
}
.tty9-footer-inner {
  padding: 2rem;
}
.tty9-footer-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--tty9-panel-border);
  padding-bottom: 2rem;
}
.tty9-footer-desc {
  font-size: 14px;
  color: var(--tty9-text-dim);
  margin-top: 1rem;
  max-width: 400px;
}
.tty9-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.tty9-footer-nav a {
  font-size: 14px;
  color: var(--tty9-text-dim);
}
.tty9-footer-bottom {
  text-align: center;
}
.tty9-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1rem;
}
.tty9-copyright {
  font-size: 13px;
  color: var(--tty9-text-dim);
  margin: 0;
}

/* Animations */
.tty9-anim {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.tty9-anim.tty9-in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Explicit Rules */
@media (max-width: 768px) {
  .tty9-sidebar {
    transform: translateX(-100%);
  }
  .tty9-sidebar.tty9-open {
    transform: translateX(0);
  }
  .tty9-hero-title {
    font-size: 1.5rem;
  }
}

@media (min-width: 480px) {
  .tty9-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tty9-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tty9-related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 769px) {
  .tty9-mobile-header {
    display: none;
  }
  .tty9-sidebar {
    transform: translateX(0);
  }
  .tty9-main {
    margin-left: 260px;
    width: calc(100% - 260px);
  }
  .tty9-stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .tty9-card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .tty9-two-col {
    grid-template-columns: repeat(2, 1fr);
  }
  .tty9-section-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .tty9-footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
  .tty9-footer-bottom {
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .tty9-legal {
    margin-bottom: 0;
    text-align: left;
    max-width: 60%;
  }
}

@media (min-width: 1024px) {
  .tty9-card-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .tty9-related-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tty9-hero-title {
    font-size: 2.5rem;
  }
}
