/* ============================================================
   tttph.click - core stylesheet (mobile-first, max 430px)
   All custom classes use the v9c8- prefix.
   ============================================================ */

:root {
  --v9c8-bg: #212F3D;
  --v9c8-bg-2: #18222d;
  --v9c8-primary: #AD1457;
  --v9c8-accent: #FF5722;
  --v9c8-text: #BDC3C7;
  --v9c8-text-strong: #ffffff;
  --v9c8-gold: #F4A460;
  --v9c8-card: #243441;
  --v9c8-border: rgba(244, 164, 96, 0.18);
  --v9c8-radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--v9c8-bg);
  color: var(--v9c8-text);
  font-family: "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--v9c8-gold);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: var(--v9c8-text-strong);
  font-weight: 700;
  line-height: 1.25;
}

/* ---------- Layout ---------- */
.v9c8-wrapper {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

main {
  padding-bottom: 8rem;
}

/* ---------- Header ---------- */
.v9c8-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(135deg, var(--v9c8-bg-2) 0%, var(--v9c8-bg) 100%);
  border-bottom: 1px solid var(--v9c8-border);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.v9c8-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  gap: 0.8rem;
}

.v9c8-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
}

.v9c8-logo img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.v9c8-logo-text {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--v9c8-text-strong);
  letter-spacing: 0.5px;
}

.v9c8-logo-text span {
  color: var(--v9c8-accent);
}

.v9c8-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v9c8-menu-btn {
  background: transparent;
  border: 1px solid var(--v9c8-border);
  color: var(--v9c8-text-strong);
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.v9c8-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 1.2rem;
  border: none;
  border-radius: 999px;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  line-height: 1;
}

.v9c8-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.v9c8-btn-primary {
  background: linear-gradient(135deg, var(--v9c8-accent), var(--v9c8-primary));
  color: #fff;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.35);
}

.v9c8-btn-ghost {
  background: transparent;
  color: var(--v9c8-text-strong);
  border: 1px solid var(--v9c8-gold);
}

/* ---------- Mobile menu ---------- */
.v9c8-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--v9c8-bg-2);
  border-bottom: 1px solid var(--v9c8-border);
  padding: 0.6rem 1rem 1rem;
  z-index: 9999;
}

.v9c8-mobile-menu.v9c8-menu-open {
  display: block;
}

.v9c8-mobile-menu a {
  display: block;
  padding: 1rem 0.6rem;
  font-size: 1.4rem;
  color: var(--v9c8-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.v9c8-mobile-menu a:hover {
  color: var(--v9c8-gold);
}

/* ---------- Hero ---------- */
.v9c8-hero {
  position: relative;
  padding: 2rem 0 1.6rem;
  text-align: center;
  background:
    radial-gradient(circle at 20% 0%, rgba(173, 20, 87, 0.35), transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(255, 87, 34, 0.25), transparent 55%);
}

.v9c8-hero h1 {
  font-size: 2.4rem;
  margin: 0.4rem 0;
}

.v9c8-hero p {
  font-size: 1.35rem;
  color: var(--v9c8-text);
  margin: 0.4rem 0 1.2rem;
}

.v9c8-hero-cta {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.v9c8-hero-badge {
  display: inline-block;
  background: rgba(244, 164, 96, 0.15);
  color: var(--v9c8-gold);
  font-size: 1.15rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

/* ---------- Section title ---------- */
.v9c8-section {
  padding: 1.6rem 0;
}

.v9c8-section-title {
  font-size: 1.7rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.v9c8-section-title i {
  color: var(--v9c8-accent);
}

/* ---------- Tabs ---------- */
.v9c8-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 0.8rem;
  scrollbar-width: none;
}

.v9c8-tabs::-webkit-scrollbar {
  display: none;
}

.v9c8-tab-btn {
  flex: 0 0 auto;
  background: var(--v9c8-card);
  color: var(--v9c8-text);
  border: 1px solid transparent;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 600;
}

.v9c8-tab-btn.v9c8-tab-active {
  background: linear-gradient(135deg, var(--v9c8-primary), var(--v9c8-accent));
  color: #fff;
}

.v9c8-tab-pane {
  display: none;
}

.v9c8-tab-pane.v9c8-tab-active {
  display: block;
}

/* ---------- Game grid ---------- */
.v9c8-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.v9c8-card {
  background: var(--v9c8-card);
  border-radius: var(--v9c8-radius);
  overflow: hidden;
  border: 1px solid var(--v9c8-border);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.v9c8-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.v9c8-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.v9c8-card-name {
  font-size: 1.1rem;
  color: var(--v9c8-text-strong);
  text-align: center;
  padding: 0.4rem 0.3rem 0.6rem;
  font-weight: 600;
  min-height: 32px;
}

/* ---------- Promo banner ---------- */
.v9c8-banner {
  background: linear-gradient(135deg, var(--v9c8-primary), var(--v9c8-accent));
  color: #fff;
  padding: 1.4rem;
  border-radius: var(--v9c8-radius);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.2rem 0;
}

.v9c8-banner h3 {
  color: #fff;
  margin: 0;
  font-size: 1.6rem;
}

.v9c8-banner p {
  margin: 0;
  font-size: 1.25rem;
  opacity: 0.95;
}

/* ---------- Content blocks ---------- */
.v9c8-content {
  font-size: 1.35rem;
  color: var(--v9c8-text);
}

.v9c8-content h2 {
  font-size: 1.7rem;
  margin: 1.2rem 0 0.6rem;
  color: var(--v9c8-text-strong);
}

.v9c8-content h3 {
  font-size: 1.45rem;
  margin: 1rem 0 0.4rem;
}

.v9c8-content p {
  margin: 0 0 0.9rem;
}

.v9c8-content ul {
  padding-left: 1.4rem;
  margin: 0 0 1rem;
}

.v9c8-content li {
  margin-bottom: 0.4rem;
}

/* ---------- FAQ ---------- */
.v9c8-faq {
  border: 1px solid var(--v9c8-border);
  border-radius: var(--v9c8-radius);
  margin-bottom: 0.6rem;
  overflow: hidden;
  background: var(--v9c8-card);
}

.v9c8-faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--v9c8-text-strong);
  font-size: 1.3rem;
}

.v9c8-faq-body {
  display: none;
  padding: 0 1.2rem 1rem;
  color: var(--v9c8-text);
  font-size: 1.25rem;
}

.v9c8-faq-open .v9c8-faq-body {
  display: block;
}

/* ---------- Footer ---------- */
.v9c8-footer {
  background: var(--v9c8-bg-2);
  border-top: 1px solid var(--v9c8-border);
  padding: 1.6rem 0 2.4rem;
  margin-top: 1.6rem;
}

.v9c8-footer-text {
  font-size: 1.2rem;
  color: var(--v9c8-text);
  margin-bottom: 0.8rem;
}

.v9c8-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  margin: 0.8rem 0;
}

.v9c8-footer-links a {
  font-size: 1.15rem;
  color: var(--v9c8-gold);
}

.v9c8-footer-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.8rem 0;
}

.v9c8-copyright {
  font-size: 1.1rem;
  color: var(--v9c8-text);
  opacity: 0.7;
  margin-top: 1rem;
}

/* ---------- Mobile bottom nav ---------- */
.v9c8-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 62px;
  background: linear-gradient(180deg, var(--v9c8-bg-2), #11181f);
  border-top: 1px solid var(--v9c8-border);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.4);
}

.v9c8-bottom-nav a,
.v9c8-bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  min-height: 60px;
  background: transparent;
  border: none;
  color: var(--v9c8-text);
  font-size: 1.05rem;
  gap: 2px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
}

.v9c8-bottom-nav a:hover,
.v9c8-bottom-nav button:hover {
  text-decoration: none;
}

.v9c8-bottom-nav .material-icons,
.v9c8-bottom-nav i {
  font-size: 22px;
  color: var(--v9c8-text);
}

.v9c8-bottom-nav .v9c8-bnav-current {
  color: var(--v9c8-gold);
}

.v9c8-bottom-nav .v9c8-bnav-current i,
.v9c8-bottom-nav .v9c8-bnav-current .material-icons {
  color: var(--v9c8-gold);
}

.v9c8-bottom-nav .v9c8-bnav-active {
  background: linear-gradient(135deg, var(--v9c8-primary), var(--v9c8-accent));
  color: #fff;
}

.v9c8-bottom-nav .v9c8-bnav-active i,
.v9c8-bottom-nav .v9c8-bnav-active .material-icons,
.v9c8-bottom-nav .v9c8-bnav-active span {
  color: #fff;
}

.v9c8-bnav-label {
  font-size: 1.05rem;
  font-weight: 600;
}

/* ---------- Desktop ---------- */
@media (min-width: 769px) {
  .v9c8-bottom-nav {
    display: none;
  }

  main {
    padding-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .v9c8-desktop-only {
    display: none !important;
  }
}
