/* ===== TP PLAY OFFICIAL - FUTURISTIC DARK/GOLD THEME (v3.0) ===== */
:root {
  --tp-bg: #0a0a0f;
  --tp-bg-dark: #060608;
  --tp-card-bg: rgba(255, 255, 255, 0.03);
  --tp-card-border: rgba(230, 184, 0, 0.15);
  --tp-card-hover-border: rgba(230, 184, 0, 0.4);
  --tp-gold: #e6b800;
  --tp-gold-light: #ffd700;
  --tp-gold-dark: #b38f00;
  --tp-glow: rgba(230, 184, 0, 0.15);
  --tp-text: #f0f0f0;
  --tp-text-dim: #8a8a9a;
  --tp-white: #ffffff;
  --tp-green: #22c55e;
  --tp-red: #ef4444;
  --tp-blue: #0088cc;
  --tp-radius: 16px;
  --tp-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  --tp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --tp-blur: blur(12px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: 90px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--tp-text);
  background-color: var(--tp-bg);
  background-image: radial-gradient(circle at 50% 0%, rgba(230, 184, 0, 0.05) 0%, transparent 50%);
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* --- Reading Progress Bar --- */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--tp-gold), var(--tp-gold-light));
  z-index: 9999;
  transition: width 0.1s linear;
  will-change: width;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: var(--tp-blur);
  -webkit-backdrop-filter: var(--tp-blur);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--tp-card-border);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo svg {
  height: 40px;
  width: auto;
}

.logo span {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--tp-gold);
  letter-spacing: -0.5px;
}

.header-ctas {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--tp-transition);
  white-space: nowrap;
  border: 1px solid transparent;
}

.header-btn svg {
  width: 16px;
  height: 16px;
}

.btn-register {
  background: var(--tp-gold);
  color: var(--tp-bg-dark);
}
.btn-register:hover {
  background: var(--tp-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 184, 0, 0.4);
}

.btn-login {
  background: transparent;
  color: var(--tp-gold);
  border-color: var(--tp-gold);
}
.btn-login:hover {
  background: var(--tp-gold);
  color: var(--tp-bg-dark);
}

.btn-telegram {
  background: var(--tp-blue);
  color: var(--tp-white);
}
.btn-telegram:hover {
  background: #006699;
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--tp-gold);
  position: relative;
  z-index: 1;
}

.hero p {
  font-size: 1.1rem;
  color: var(--tp-text-dim);
  max-width: 750px;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--tp-card-border);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--tp-gold-light);
  backdrop-filter: blur(4px);
}

.cta-group {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--tp-transition);
  box-shadow: var(--tp-shadow);
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-btn svg {
  width: 20px;
  height: 20px;
}

.cta-btn.btn-register {
  background: linear-gradient(135deg, var(--tp-gold), var(--tp-gold-dark));
  color: var(--tp-bg-dark);
}
.cta-btn.btn-register:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(230, 184, 0, 0.4);
}

.cta-btn.btn-login {
  background: var(--tp-green);
  color: var(--tp-bg-dark);
}
.cta-btn.btn-login:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.cta-btn.btn-telegram {
  background: var(--tp-blue);
  color: var(--tp-white);
}
.cta-btn.btn-telegram:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 136, 204, 0.4);
}

/* --- Content Sections (Glassmorphism) --- */
.section {
  padding: 40px 0;
}

.section-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--tp-gold);
  margin-bottom: 16px;
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--tp-text);
  margin-top: 28px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
}

ul, ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: var(--tp-gold-light);
}

/* --- Info Cards (Glassmorphism) --- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.info-card {
  background: var(--tp-card-bg);
  backdrop-filter: var(--tp-blur);
  -webkit-backdrop-filter: var(--tp-blur);
  border: 1px solid var(--tp-card-border);
  padding: 28px;
  border-radius: var(--tp-radius);
  transition: var(--tp-transition);
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--tp-card-hover-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.info-card h3 {
  margin-top: 0;
  color: var(--tp-gold);
}

/* --- Steps List (Glassmorphism) --- */
.steps-list {
  list-style: none;
  counter-reset: step;
  padding-left: 0;
}

.steps-list li {
  counter-increment: step;
  position: relative;
  padding: 24px 24px 24px 80px;
  margin-bottom: 16px;
  background: var(--tp-card-bg);
  backdrop-filter: var(--tp-blur);
  -webkit-backdrop-filter: var(--tp-blur);
  border: 1px solid var(--tp-card-border);
  border-radius: var(--tp-radius);
  transition: var(--tp-transition);
}

.steps-list li:hover {
  border-color: var(--tp-card-hover-border);
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 24px;
  top: 24px;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--tp-gold), var(--tp-gold-dark));
  color: var(--tp-bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.steps-list li strong {
  display: block;
  margin-bottom: 4px;
  color: var(--tp-gold);
  font-size: 1rem;
}

.steps-list li span {
  font-size: 0.93rem;
  color: var(--tp-text-dim);
  display: block;
}

/* --- Highlight Box --- */
.highlight-box {
  background: linear-gradient(135deg, rgba(230, 184, 0, 0.08), rgba(230, 184, 0, 0.02));
  border-left: 4px solid var(--tp-gold);
  padding: 20px 24px;
  border-radius: 0 var(--tp-radius) var(--tp-radius) 0;
  margin: 24px 0;
  border: 1px solid rgba(230, 184, 0, 0.15);
  border-left: 4px solid var(--tp-gold);
}

.highlight-box strong {
  color: var(--tp-gold);
}

/* --- FAQ (Glassmorphism) --- */
.faq-item {
  background: var(--tp-card-bg);
  backdrop-filter: var(--tp-blur);
  -webkit-backdrop-filter: var(--tp-blur);
  border: 1px solid var(--tp-card-border);
  border-radius: var(--tp-radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--tp-transition);
}

.faq-item:hover {
  border-color: var(--tp-card-hover-border);
}

.faq-item summary {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  color: var(--tp-gold);
  font-size: 1rem;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--tp-gold);
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-answer {
  padding: 0 24px 20px;
  color: var(--tp-text-dim);
  font-size: 0.95rem;
}

/* --- Author Box (E-E-A-T) --- */
.author-box {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--tp-card-bg);
  backdrop-filter: var(--tp-blur);
  -webkit-backdrop-filter: var(--tp-blur);
  border: 1px solid var(--tp-card-border);
  padding: 28px;
  border-radius: var(--tp-radius);
  margin-top: 48px;
}

.author-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tp-gold), var(--tp-gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--tp-bg-dark);
  flex-shrink: 0;
}

.author-info h4 {
  font-size: 1.1rem;
  color: var(--tp-gold);
  margin-bottom: 4px;
}

.author-info p {
  font-size: 0.9rem;
  color: var(--tp-text-dim);
  margin-bottom: 8px;
}

.author-info .author-meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--tp-text-dim);
  flex-wrap: wrap;
}

.author-info .author-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* --- Footer --- */
.site-footer {
  background: var(--tp-bg-dark);
  border-top: 1px solid var(--tp-card-border);
  padding: 48px 0 24px;
  margin-top: 60px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-grid h4 {
  color: var(--tp-gold);
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-grid li {
  margin-bottom: 8px;
}

.footer-grid a {
  color: var(--tp-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--tp-gold);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--tp-card-border);
  padding-top: 24px;
  color: var(--tp-text-dim);
  font-size: 0.85rem;
}

/* --- Sticky Mobile CTA --- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: var(--tp-blur);
  -webkit-backdrop-filter: var(--tp-blur);
  border-top: 1px solid var(--tp-card-border);
  padding: 10px 15px;
  z-index: 999;
  justify-content: space-around;
  gap: 8px;
}

.sticky-cta a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  text-align: center;
}

.sticky-cta svg {
  width: 16px;
  height: 16px;
}

.sticky-cta .btn-register {
  background: var(--tp-gold);
  color: var(--tp-bg-dark);
}

.sticky-cta .btn-login {
  background: var(--tp-green);
  color: var(--tp-bg-dark);
}

.sticky-cta .btn-telegram {
  background: var(--tp-blue);
  color: var(--tp-white);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .header-ctas .header-btn span {
    display: none;
  }
  .header-ctas .header-btn {
    padding: 8px 10px;
  }
  .hero {
    padding: 50px 0 40px;
  }
  .cta-btn {
    width: 100%;
  }
  .sticky-cta {
    display: flex;
  }
  body {
    padding-bottom: 70px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .author-box {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* Audit fixes: preserve screenshot ratios and avoid page-wide portrait heroes. */
.container > img[fetchpriority="high"] { max-width: 400px !important; width: 100% !important; height: auto !important; margin-left: auto !important; margin-right: auto !important; display: block; }
.info-card > img { max-width: 100%; height: auto; }
.reveal { opacity: 1; visibility: visible; }
.table-wrap { overflow-x: auto; }
@media (max-width: 600px) { .container > img[fetchpriority="high"] { max-width: 320px !important; } }
