/* ============================================================
   TEMPOX Premium Game Background — Global Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap');

:root {
    --ink: #1E1B18;
    --muted: #6B6574;
    --accent: #6D28D9;
    --accent-light: #8B5CF6;
    --bg: #F4F3FF;
    --card: rgba(255, 255, 255, 0.65);
    --card-solid: #FFFFFF;
    --line: rgba(228, 224, 255, 0.5);
    --glass-blur: 18px;
}

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

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--ink);
    line-height: 1.6;
    font-size: 16px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(170deg,
        #2D1B69 0%, #5B21B6 12%, #7C3AED 22%, #A78BFA 34%,
        #C4B5FD 44%, #DDD6FE 52%, #EDE9FE 58%, #F5F3FF 64%,
        #FDF2F8 72%, #FCE7F3 78%, #FBCFE8 84%, #F9A8D4 90%,
        #F472B6 100%);
    background-attachment: fixed;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(167,139,250,0.45) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 30% 5%, rgba(196,181,253,0.3) 0%, transparent 50%),
        radial-gradient(ellipse 50% 35% at 70% 8%, rgba(232,121,249,0.2) 0%, transparent 50%);
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle 320px at 10% 15%, rgba(139,92,246,0.35) 0%, transparent 70%),
        radial-gradient(circle 260px at 85% 10%, rgba(236,72,153,0.3) 0%, transparent 70%),
        radial-gradient(circle 300px at 5% 55%, rgba(99,102,241,0.25) 0%, transparent 70%),
        radial-gradient(circle 280px at 90% 70%, rgba(251,146,60,0.2) 0%, transparent 70%),
        radial-gradient(circle 240px at 50% 85%, rgba(250,204,21,0.15) 0%, transparent 70%),
        radial-gradient(circle 200px at 75% 50%, rgba(52,211,153,0.12) 0%, transparent 70%),
        radial-gradient(circle 350px at 45% 40%, rgba(196,181,253,0.2) 0%, transparent 70%);
}

.tpx-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.tpx-particles span {
    position: absolute;
    display: block;
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    box-shadow: 0 0 6px 1px rgba(255,255,255,0.5);
    animation: tpx-twinkle 4s ease-in-out infinite alternate;
}
.tpx-particles span:nth-child(1)  { left:8%;  top:12%; animation-delay:0s;   width:4px;height:4px; }
.tpx-particles span:nth-child(2)  { left:22%; top:6%;  animation-delay:0.6s; }
.tpx-particles span:nth-child(3)  { left:45%; top:3%;  animation-delay:1.2s; width:5px;height:5px; }
.tpx-particles span:nth-child(4)  { left:68%; top:9%;  animation-delay:0.3s; }
.tpx-particles span:nth-child(5)  { left:82%; top:18%; animation-delay:1.8s; width:4px;height:4px; }
.tpx-particles span:nth-child(6)  { left:15%; top:35%; animation-delay:2.1s; }
.tpx-particles span:nth-child(7)  { left:55%; top:28%; animation-delay:0.9s; }
.tpx-particles span:nth-child(8)  { left:90%; top:42%; animation-delay:1.5s; }
.tpx-particles span:nth-child(9)  { left:35%; top:55%; animation-delay:2.4s; width:4px;height:4px; }
.tpx-particles span:nth-child(10) { left:72%; top:60%; animation-delay:0.4s; }
.tpx-particles span:nth-child(11) { left:10%; top:72%; animation-delay:1.7s; }
.tpx-particles span:nth-child(12) { left:50%; top:78%; animation-delay:2.0s; }
.tpx-particles span:nth-child(13) { left:85%; top:82%; animation-delay:0.8s; }
.tpx-particles span:nth-child(14) { left:28%; top:88%; animation-delay:1.3s; width:4px;height:4px; }
.tpx-particles span:nth-child(15) { left:62%; top:92%; animation-delay:2.6s; }
.tpx-particles span:nth-child(16) { left:5%;  top:50%; animation-delay:3.0s; width:2px;height:2px; }
.tpx-particles span:nth-child(17) { left:95%; top:25%; animation-delay:0.2s; width:2px;height:2px; }
.tpx-particles span:nth-child(18) { left:40%; top:45%; animation-delay:1.1s; width:2px;height:2px; }

@keyframes tpx-twinkle {
    0%   { opacity:0.2; transform:scale(0.8); }
    100% { opacity:1;   transform:scale(1.2); }
}
@media (prefers-reduced-motion: reduce) {
    .tpx-particles span { animation:none; opacity:0.5; }
}

/* ============================================================
   LAYOUT
   ============================================================ */
.tpx-page {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.tpx-header {
    background: rgba(109,40,217,0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 14px 20px;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.tpx-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.tpx-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}
.tpx-logo img { height:34px; width:auto; }
.tpx-logo-text { font-size:20px; font-weight:900; letter-spacing:-0.3px; }

.tpx-nav-right {
    display: flex;
    gap: 10px;
    align-items: center;
}

.tpx-nav-link {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    transition: all 0.2s;
    white-space: nowrap;
}
.tpx-nav-link:hover, .tpx-nav-link[aria-current] {
    background: #fff;
    color: var(--accent);
}

.tpx-lang { display:flex; gap:3px; }
.tpx-lang-btn {
    padding: 5px 10px;
    border-radius: 999px;
    border: none;
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
    font-weight: 800;
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.3px;
}
.tpx-lang-btn.active { background:#fff; color:var(--accent); }

.tpx-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============================================================
   HERO — 2-column
   ============================================================ */
.tpx-hero { padding: 60px 0 70px; }

.tpx-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tpx-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.tpx-hero h1 {
    font-size: 48px;
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: -1px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.12);
}

.tpx-hero-desc {
    font-size: 17px;
    color: rgba(255,255,255,0.92);
    margin-bottom: 32px;
    max-width: 460px;
    line-height: 1.65;
}

.tpx-hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.tpx-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tpx-hero-logo {
    width: 240px;
    height: 240px;
    border-radius: 48px;
    box-shadow:
        0 20px 60px rgba(109,40,217,0.35),
        0 0 0 4px rgba(255,255,255,0.2),
        0 0 80px rgba(139,92,246,0.2);
    animation: tpx-float 6s ease-in-out infinite;
}

@keyframes tpx-float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
@media (prefers-reduced-motion: reduce) {
    .tpx-hero-logo { animation:none; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.tpx-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #fff;
    padding: 15px 30px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 15px;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(109,40,217,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
}
.tpx-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(109,40,217,0.5), inset 0 1px 0 rgba(255,255,255,0.2);
}
.tpx-btn:active { transform: translateY(0); }

.tpx-btn-ghost {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    box-shadow: none;
}
.tpx-btn-ghost:hover { background: rgba(255,255,255,0.2); box-shadow: none; }

.tpx-play-badge {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #000;
    color: #fff;
    padding: 14px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.tpx-play-badge:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.tpx-play-badge-icon { font-size:28px; line-height:1; }
.tpx-play-badge-text small {
    font-size:10px;
    color:#aaa;
    display:block;
    text-transform:uppercase;
    letter-spacing:0.5px;
    font-weight:600;
}
.tpx-play-badge-text strong { font-size:17px; font-weight:800; display:block; }

.tpx-btn-green {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 4px 20px rgba(37,211,102,0.35);
}
.tpx-btn-green:hover { box-shadow: 0 8px 28px rgba(37,211,102,0.45); }

/* ============================================================
   SECTION TITLES — dark text for contrast on light gradient
   ============================================================ */
.tpx-section-title { text-align:center; margin-bottom:48px; }
.tpx-section-title h2 {
    font-size: 36px;
    font-weight: 900;
    color: #1E1B18;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}
.tpx-section-title p {
    font-size: 16px;
    color: #5B5560;
    max-width: 520px;
    margin: 0 auto;
}

/* ============================================================
   FEATURE CARDS
   ============================================================ */
.tpx-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding-bottom: 80px;
}

.tpx-feature {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(228, 224, 255, 0.7);
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    transition: transform 0.25s, box-shadow 0.25s;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(109, 40, 217, 0.08);
}
.tpx-feature::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 20px 20px 0 0;
}
.tpx-feature:nth-child(1)::before { background: linear-gradient(90deg, #EC4899, #F472B6); }
.tpx-feature:nth-child(2)::before { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.tpx-feature:nth-child(3)::before { background: linear-gradient(90deg, #3B82F6, #60A5FA); }
.tpx-feature:nth-child(4)::before { background: linear-gradient(90deg, #10B981, #34D399); }

.tpx-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(109,40,217,0.12);
}

.tpx-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}
.tpx-feature:nth-child(1) .tpx-feature-icon { background: rgba(236,72,153,0.18); }
.tpx-feature:nth-child(2) .tpx-feature-icon { background: rgba(245,158,11,0.18); }
.tpx-feature:nth-child(3) .tpx-feature-icon { background: rgba(59,130,246,0.18); }
.tpx-feature:nth-child(4) .tpx-feature-icon { background: rgba(16,185,129,0.18); }

.tpx-feature h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 8px;
}
.tpx-feature p {
    font-size: 13px;
    color: #6B6574;
    margin: 0;
    line-height: 1.55;
}

/* ============================================================
   STEPS — 3-column
   ============================================================ */
.tpx-steps-wrap {
    padding: 40px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(228, 224, 255, 0.5);
    box-shadow: 0 4px 24px rgba(109, 40, 217, 0.06);
}

.tpx-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tpx-step { text-align: center; }

.tpx-step-num {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 26px;
    margin: 0 auto 20px;
    box-shadow: 0 6px 24px rgba(109,40,217,0.3);
}

.tpx-step h3 {
    font-size: 18px;
    font-weight: 800;
    color: #1E1B18;
    margin-bottom: 8px;
}
.tpx-step p {
    font-size: 14px;
    color: #5B5560;
    line-height: 1.55;
    max-width: 260px;
    margin: 0 auto;
}

/* ============================================================
   CTA
   ============================================================ */
.tpx-cta {
    padding: 80px 0;
    text-align: center;
    background: rgba(109, 40, 217, 0.08);
    border-radius: 28px;
    margin: 0 24px 40px;
}
.tpx-cta h2 {
    font-size: 36px;
    font-weight: 900;
    color: #1E1B18;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}
.tpx-cta p {
    font-size: 17px;
    color: #5B5560;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================================
   FOOTER
   ============================================================ */
.tpx-footer {
    text-align: center;
    padding: 30px 16px 36px;
    color: #6B6574;
    font-size: 13px;
    margin-top: auto;
    border-top: 1px solid rgba(228, 224, 255, 0.4);
}
.tpx-footer a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
}
.tpx-footer a:hover { text-decoration: underline; }

/* ============================================================
   CARD (for policy/terms pages)
   ============================================================ */
.tpx-card {
    background: var(--card);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 24px rgba(109,40,217,0.06), 0 1px 3px rgba(0,0,0,0.04);
}
.tpx-card h2 {
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 14px;
    font-weight: 800;
}
.tpx-card p, .tpx-card li { font-size:15px; color:var(--ink); margin-bottom:10px; }
.tpx-card ul { padding-left:20px; margin:8px 0; }
.tpx-card li { margin-bottom:6px; }
.tpx-card strong { font-weight:800; }
.tpx-card a { color:var(--accent); font-weight:700; text-decoration:none; }
.tpx-card a:hover { text-decoration:underline; }

.tpx-cta-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 340px;
    margin: 0 auto;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .tpx-hero-grid { grid-template-columns:1fr; text-align:center; }
    .tpx-hero h1 { font-size:36px; }
    .tpx-hero-desc { margin: 0 auto 32px; }
    .tpx-hero-actions { justify-content:center; }
    .tpx-hero-visual { order:-1; margin-bottom:10px; }
    .tpx-hero-logo { width:160px; height:160px; border-radius:36px; }
    .tpx-features { grid-template-columns: repeat(2, 1fr); }
    .tpx-nav-link { display:none; }
}

@media (max-width: 480px) {
    .tpx-hero { padding:40px 0 50px; }
    .tpx-hero h1 { font-size:28px; }
    .tpx-hero-logo { width:130px; height:130px; border-radius:28px; }
    .tpx-hero-badge { font-size:11px; padding:5px 10px; }
    .tpx-features { grid-template-columns:1fr; gap:14px; }
    .tpx-steps { grid-template-columns:1fr; gap:36px; }
    .tpx-section-title h2 { font-size:26px; }
    .tpx-cta h2 { font-size:26px; }
    .tpx-btn { padding:13px 24px; font-size:14px; }
    .tpx-container { padding:0 16px; }
}
