:root {
    --tpw-bg: #050712;
    --tpw-bg-elevated: #0e1020;
    --tpw-bg-elevated-soft: #141628;
    --tpw-border-subtle: rgba(255, 255, 255, 0.06);
    --tpw-text-main: #f8f6ff;
    --tpw-text-muted: #a3a3c2;
    --tpw-accent: #a855ff;
    --tpw-accent-soft: #7c3aed;
    --tpw-accent-strong: #c084fc;
    --tpw-danger: #fb7185;
    --tpw-radius-lg: 18px;
    --tpw-shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
    --tpw-gradient-main: linear-gradient(135deg, #f97316, #a855ff);
}

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

body.tpw-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #16163a 0, #050712 42%, #020015 100%);
    color: var(--tpw-text-main);
}

body.tpw-playing-game {
    overflow: hidden;
}

.tpw-app {
    min-height: 100vh;
}

/* Sidebar */

.tpw-sidebar {
    width: 70px;
    background: rgba(5, 7, 18, 0.95);
    border-right: 1px solid var(--tpw-border-subtle);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 20;
}

.tpw-sidebar-logo {
    text-decoration: none;
}

.tpw-sidebar-logo .tpw-logo-icon {
    width: 46px;
    height: 46px;
    border-radius: 18px;
    background: var(--tpw-gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(248, 113, 22, 0.6);
    color: #fff;
}

.tpw-sidebar-logo i {
    font-size: 1.4rem;
}

.tpw-sidebar-nav {
    width: 100%;
}

.tpw-sidebar-btn {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: transparent;
    color: #a3a3c2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.18s ease-out;
}

.tpw-sidebar-btn i {
    font-size: 1.2rem;
}

.tpw-sidebar-btn:hover {
    background: rgba(148, 163, 253, 0.14);
    color: #e5e7ff;
}

.tpw-sidebar-btn.active {
    background: var(--tpw-gradient-main);
    color: #fff;
    box-shadow: 0 0 18px rgba(168, 85, 255, 0.7);
}

/* Main area */

.tpw-main {
    padding: 1.5rem 1.5rem 2rem;
    width: 100%;
}

.tpw-main-game .tpw-footer {
    display: none;
}

.tpw-section {
    max-width: 1200px;
}

/* Hero */

.tpw-home-section {
    position: relative;
}

.tpw-hero-shell {
    position: relative;
    overflow: hidden;
}

.tpw-hero-heading {
    font-size: clamp(2.2rem, 3.3vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    color: #f9fafb;
}

.tpw-hero-text {
    color: var(--tpw-text-muted);
    max-width: 34rem;
}

.tpw-hero-card {
    background: radial-gradient(circle at 0 0, #1f2937 0, #020617 55%);
    border-radius: var(--tpw-radius-lg);
    padding: 1.6rem 1.4rem;
    border: 1px solid var(--tpw-border-subtle);
    box-shadow: var(--tpw-shadow-soft);
}

.tpw-hero-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0.2rem;
}

.tpw-hero-stat-label {
    font-size: 0.9rem;
    color: var(--tpw-text-muted);
}

.tpw-hero-stat-value {
    font-weight: 600;
}

.tpw-hero-muted {
    color: var(--tpw-text-muted);
}

/* Floating icons */

.tpw-floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.tpw-floating-icon {
    position: absolute;
    font-size: 2.4rem;
    color: rgba(248, 250, 252, 0.06);
    animation: tpw-float 18s ease-in-out infinite;
}

.tpw-floating-icon-1 {
    top: -10px;
    left: 5%;
    animation-delay: 0s;
}

.tpw-floating-icon-2 {
    top: 40%;
    right: 2%;
    animation-delay: 3s;
}

.tpw-floating-icon-3 {
    bottom: -20px;
    left: 30%;
    animation-delay: 6s;
}

.tpw-floating-icon-4 {
    top: 10%;
    right: 40%;
    animation-delay: 9s;
}

@keyframes tpw-float {
    0%   { transform: translateY(20px); opacity: 0; }
    10%  { opacity: 1; }
    50%  { transform: translateY(-20px); opacity: 0.9; }
    90%  { opacity: 1; }
    100% { transform: translateY(20px); opacity: 0; }
}

/* Buttons */

.tpw-btn-primary {
    background: var(--tpw-gradient-main);
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 0.55rem 1.5rem;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(129, 140, 248, 0.45);
}

.tpw-btn-primary:hover {
    filter: brightness(1.05);
    color: #fff;
}

.tpw-btn-ghost {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.35);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7ff;
}

.tpw-btn-ghost:hover {
    border-color: rgba(196, 181, 253, 0.9);
}

/* Sections & cards */

.tpw-section-heading {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--tpw-text-main);
}

.tpw-section-subheading {
    color: var(--tpw-text-muted);
    max-width: 40rem;
}

/* Game cards */

.tpw-games-grid {
    margin-top: 2.5rem;
}

.tpw-game-card {
    background: radial-gradient(circle at 0 0, #111827 0, #020617 65%);
    border-radius: var(--tpw-radius-lg);
    padding: 1rem 1rem 1.1rem;
    border: 1px solid transparent;
    box-shadow: var(--tpw-shadow-soft);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.tpw-game-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.8);
    border-color: rgba(168, 85, 255, 0.7);
}

.tpw-game-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--tpw-gradient-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tpw-game-icon-wrap i {
    font-size: 1.4rem;
    color: #fff;
}

.tpw-game-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0.4rem 0 0.1rem;
    color: var(--tpw-text-main);
}

.tpw-game-meta {
    font-size: 0.78rem;
    color: var(--tpw-text-muted);
}

/* Game sections */

.tpw-game-section {
    max-width: 1200px;
    min-height: calc(100vh - 3rem);
}

.tpw-game-top {
    padding-inline: 0.2rem;
}

.tpw-game-top-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tpw-text-muted);
}

.tpw-game-top-name {
    font-weight: 600;
    font-size: 1.05rem;
}

.tpw-game-stage {
    background: var(--tpw-bg-elevated-soft);
    border-radius: var(--tpw-radius-lg);
    border: 1px solid var(--tpw-border-subtle);
    min-height: 320px;
    box-shadow: var(--tpw-shadow-soft);
    overflow: hidden;
}

.tpw-game-placeholder {
    width: 100%;
    height: 100%;
    min-height: 320px;
}

.tpw-placeholder-text {
    color: var(--tpw-text-muted);
}

/* Game description & instructions */

.tpw-game-description {
    color: var(--tpw-text-main);
    font-size: 0.95rem;
}

.tpw-game-instructions-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.tpw-game-instructions-list {
    padding-left: 1.1rem;
    margin-bottom: 0;
    color: var(--tpw-text-muted);
    font-size: 0.9rem;
}

/* Panels & leaderboard */

.tpw-panel {
    background: var(--tpw-bg-elevated);
    border-radius: var(--tpw-radius-lg);
    border: 1px solid var(--tpw-border-subtle);
    padding: 1rem 1rem 1rem;
    box-shadow: var(--tpw-shadow-soft);
}

.tpw-panel-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--tpw-text-main);
}

.tpw-leaderboard li {
    padding: 0.35rem 0;
    border-bottom: 1px dashed rgba(148, 163, 253, 0.18);
    color: var(--tpw-text-main);
}

.tpw-leaderboard li:last-child {
    border-bottom: none;
}

/* Make any Bootstrap "text-muted" inside panels/heroes more readable */

.tpw-hero-card .text-muted,
.tpw-game-stage .text-muted,
.tpw-panel .text-muted {
    color: var(--tpw-text-muted) !important;
}

/* Ads */

.tpw-ad-wrapper {
    border-radius: var(--tpw-radius-lg);
    border: 1px dashed rgba(148, 163, 253, 0.3);
    padding: 0.6rem;
    background: rgba(15, 23, 42, 0.4);
}

/* Footer */

.tpw-footer {
    border-top: 1px solid var(--tpw-border-subtle);
    background: rgba(5, 7, 18, 0.95);
    margin-top: 3rem;
}

.tpw-footer-link {
    color: var(--tpw-accent-strong);
    text-decoration: none;
    font-weight: 600;
}

.tpw-footer-link:hover {
    text-decoration: underline;
}

.tpw-footer-icon {
    color: var(--tpw-text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.15s ease-out;
}

.tpw-footer-icon:hover {
    color: var(--tpw-accent-strong);
}

/* Auth modal */

.tpw-auth-modal {
    background: radial-gradient(circle at 0 0, #1f2937 0, #020617 70%);
    border-radius: 1.2rem;
    border: 1px solid var(--tpw-border-subtle);
    color: var(--tpw-text-main);
    box-shadow: var(--tpw-shadow-soft);
}

.tpw-auth-modal .modal-header {
    border-bottom: 1px solid rgba(148, 163, 253, 0.25);
}

.tpw-auth-modal .modal-footer {
    border-top: 1px solid rgba(148, 163, 253, 0.25);
}

.tpw-auth-tabs .nav-link {
    border-radius: 999px;
    color: var(--tpw-text-muted);
    border: 1px solid transparent;
}

.tpw-auth-tabs .nav-link.active {
    background: var(--tpw-gradient-main);
    color: #fff;
    border-color: transparent;
}

.tpw-auth-alert {
    min-height: 1rem;
}

.tpw-auth-modal .form-control {
    background-color: #020617;
    border-color: rgba(148, 163, 253, 0.5);
    color: var(--tpw-text-main);
}

.tpw-auth-modal .form-control:focus {
    border-color: var(--tpw-accent-strong);
    box-shadow: 0 0 0 0.15rem rgba(168, 85, 255, 0.35);
}

/* Snake game */

.tpw-snake-wrapper {
    padding: 0.5rem 0.25rem 0.5rem;
}

.tpw-snake-canvas-holder {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

#tpw-snake-canvas {
    border-radius: 18px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.8);
    background-color: #020617;
}

.tpw-snake-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    background: radial-gradient(circle at 50% 0, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.95));
}

.tpw-snake-overlay-inner {
    background: rgba(15, 23, 42, 0.98);
    border-radius: 1rem;
    padding: 1.2rem 1.4rem;
    border: 1px solid rgba(168, 85, 255, 0.5);
    text-align: center;
    min-width: 220px;
}

.tpw-snake-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.tpw-snake-controls-row {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.tpw-snake-btn {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.7);
    background: radial-gradient(circle at 0 0, #1f2937, #020617);
    color: #e5e7ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.9);
}

.tpw-snake-btn i {
    font-size: 1.1rem;
}

.tpw-snake-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.tpw-snake-score {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Tetris */

.tpw-tetris-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.9fr);
    gap: 1rem;
    padding: 0.75rem;
}

.tpw-tetris-main {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tpw-tetris-grid {
    width: 100%;
    max-width: 360px;
    aspect-ratio: 10 / 20;
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    grid-template-rows: repeat(20, 1fr);
    gap: 1px;
    padding: 0.35rem;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, rgba(248, 115, 22, 0.4), rgba(168, 85, 255, 0.7));
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.9);
}

.tpw-tetris-cell {
    background: radial-gradient(circle at 0 0, #020617, #020617 40%, #020617 100%);
    border-radius: 0.2rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.tpw-tetris-filled {
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.8),
        0 0 20px rgba(129, 140, 248, 0.35);
}

.tpw-tetris-ghost {
    box-shadow: inset 0 0 0 1px rgba(148, 163, 253, 0.4);
    background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.9));
    opacity: 0.45;
}

/* Per-piece colours */

.tpw-tetris-I {
    background: linear-gradient(135deg, #22d3ee, #0ea5e9);
}

.tpw-tetris-O {
    background: linear-gradient(135deg, #facc15, #f97316);
}

.tpw-tetris-T {
    background: linear-gradient(135deg, #a855f7, #ec4899);
}

.tpw-tetris-S {
    background: linear-gradient(135deg, #4ade80, #22c55e);
}

.tpw-tetris-Z {
    background: linear-gradient(135deg, #fb7185, #e11d48);
}

.tpw-tetris-J {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
}

.tpw-tetris-L {
    background: linear-gradient(135deg, #f97316, #facc15);
}

/* Sidebar */

.tpw-tetris-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.tpw-tetris-panel {
    background: var(--tpw-bg-elevated);
    border-radius: 1rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--tpw-border-subtle);
    box-shadow: var(--tpw-shadow-soft);
}

.tpw-tetris-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--tpw-text-muted);
    margin-bottom: 0.1rem;
}

.tpw-tetris-value {
    font-weight: 600;
    font-size: 1rem;
    color: var(--tpw-text-main);
}

.tpw-tetris-mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 2px;
    padding: 0.25rem;
    border-radius: 0.6rem;
    background: radial-gradient(circle at 0 0, #020617, #111827);
}

.tpw-tetris-mini-cell {
    background: #020617;
    border-radius: 0.25rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.9);
}

.tpw-tetris-mini-filled {
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.8),
        0 0 12px rgba(129, 140, 248, 0.45);
}

.tpw-tetris-message-panel {
    font-size: 0.85rem;
}

.tpw-tetris-message {
    color: var(--tpw-text-main);
    margin-bottom: 0.25rem;
}

.tpw-tetris-help {
    color: var(--tpw-text-muted);
}

/* Mobile controls */

.tpw-tetris-mobile-controls {
    margin-top: 0.75rem;
    display: none;
    justify-content: center;
    gap: 0.6rem;
}

/* Rock, Paper, Scissors */

.tpw-rps-wrapper {
    padding: 0.9rem 0.85rem 1rem;
    background: var(--tpw-bg-elevated-soft);
    border-radius: var(--tpw-radius-lg);
    border: 1px solid var(--tpw-border-subtle);
    box-shadow: var(--tpw-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tpw-rps-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
}

.tpw-rps-hearts {
    display: flex;
    gap: 0.25rem;
}

.tpw-rps-heart {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0 0, #111827, #020617);
    border: 1px solid rgba(248, 113, 113, 0.35);
    opacity: 0.35;
}

.tpw-rps-heart-full {
    background: radial-gradient(circle at 0 0, #fb7185, #ef4444);
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.55);
    opacity: 1;
}

.tpw-rps-heart i {
    font-size: 0.75rem;
    color: #fee2e2;
}

.tpw-rps-stats {
    color: var(--tpw-text-muted);
    text-align: right;
}

.tpw-rps-arena {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
}

.tpw-rps-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--tpw-text-muted);
    margin-bottom: 0.15rem;
}

.tpw-rps-pick {
    background: radial-gradient(circle at 0 0, #020617, #020617 40%, #0b1120 100%);
    border-radius: 1rem;
    padding: 0.5rem 0.7rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(148, 163, 253, 0.35);
}

.tpw-rps-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #4f46e5, #ec4899);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(168, 85, 255, 0.7);
}

.tpw-rps-icon-circle i {
    color: #fff;
    font-size: 1.25rem;
}

.tpw-rps-pick-name {
    font-weight: 600;
}

.tpw-rps-vs {
    display: flex;
    justify-content: center;
}

.tpw-rps-vs-pill {
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #a855ff, #f97316);
    font-weight: 700;
    letter-spacing: 0.16em;
    font-size: 0.75rem;
}

.tpw-rps-message {
    font-size: 0.9rem;
    color: var(--tpw-text-main);
}

.tpw-rps-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.tpw-rps-choice-btn {
    flex: 1 1 120px;
    max-width: 190px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.5);
    background: radial-gradient(circle at 0 0, #111827, #020617);
    padding: 0.4rem 0.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
    color: #e5e7ff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.8);
}

.tpw-rps-choice-btn:hover {
    border-color: rgba(196, 181, 253, 0.9);
    filter: brightness(1.05);
}

.tpw-rps-choice-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4f46e5, #ec4899);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tpw-rps-choice-icon i {
    color: #fff;
    font-size: 1rem;
}

.tpw-rps-choice-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.tpw-rps-key-hint {
    font-size: 0.75rem;
    color: var(--tpw-text-muted);
}

.tpw-rps-bottom {
    display: flex;
    justify-content: center;
}

.tpw-rps-scoreline {
    display: flex;
    gap: 0.9rem;
    font-size: 0.9rem;
}

/* Overlay reuse */

.tpw-rps-overlay .tpw-snake-overlay-inner h3 {
    font-size: 1.1rem;
}

/* Responsive */

@media (max-width: 768px) {
    .tpw-rps-arena {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .tpw-rps-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .tpw-rps-stats {
        text-align: left;
    }
}

/* Red Light Mouse Dash */

.tpw-rlgl-wrapper {
    padding: 0.9rem 0.85rem 1rem;
    background: var(--tpw-bg-elevated-soft);
    border-radius: var(--tpw-radius-lg);
    border: 1px solid var(--tpw-border-subtle);
    box-shadow: var(--tpw-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tpw-rlgl-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
}

.tpw-rlgl-timer strong {
    font-weight: 700;
}

.tpw-rlgl-hearts {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.tpw-rlgl-heart {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 0 0, #111827, #020617);
    border: 1px solid rgba(248, 113, 113, 0.45);
    opacity: 0.3;
}

.tpw-rlgl-heart-full {
    background: radial-gradient(circle at 0 0, #fb7185, #ef4444);
    box-shadow: 0 0 14px rgba(248, 113, 113, 0.55);
    opacity: 1;
}

.tpw-rlgl-heart i {
    font-size: 0.75rem;
    color: #fee2e2;
}

.tpw-rlgl-stats {
    text-align: right;
    color: var(--tpw-text-muted);
}

.tpw-rlgl-middle {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr);
    gap: 0.9rem;
    align-items: center;
}

.tpw-rlgl-light-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.tpw-rlgl-light {
    width: 56px;
    height: 56px;
    border-radius: 999px;
    border: 3px solid rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.9);
}

.tpw-rlgl-light-red {
    background: radial-gradient(circle at 0 0, #f97373, #b91c1c);
    box-shadow: 0 0 22px rgba(248, 113, 113, 0.9);
}

.tpw-rlgl-light-green {
    background: radial-gradient(circle at 0 0, #6ee7b7, #16a34a);
    box-shadow: 0 0 22px rgba(45, 212, 191, 0.9);
}

.tpw-rlgl-light-label {
    font-size: 0.85rem;
    color: var(--tpw-text-muted);
    text-align: center;
}

.tpw-rlgl-track {
    width: 100%;
    height: 12px;
    border-radius: 999px;
    background: radial-gradient(circle at 0 0, #020617, #020617 40%, #0b1120 100%);
    border: 1px solid rgba(148, 163, 253, 0.4);
    overflow: hidden;
}

.tpw-rlgl-track-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(135deg, #4f46e5, #ec4899, #f97316);
    box-shadow: 0 0 20px rgba(168, 85, 255, 0.7);
    transition: width 0.12s ease-out;
}

.tpw-rlgl-message {
    font-size: 0.9rem;
}

.tpw-rlgl-controls {
    display: flex;
    justify-content: center;
}

.tpw-rlgl-run-btn {
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.6);
    background: radial-gradient(circle at 0 0, #111827, #020617);
    color: #e5e7ff;
    padding: 0.55rem 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.9);
}

.tpw-rlgl-run-btn:hover {
    border-color: rgba(196, 181, 253, 0.95);
    filter: brightness(1.05);
}

.tpw-rlgl-run-btn-tap {
    transform: translateY(1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.85);
}

.tpw-rlgl-run-label {
    font-weight: 600;
}

.tpw-rlgl-key-hint {
    font-size: 0.78rem;
    color: var(--tpw-text-muted);
}

.tpw-rlgl-bottom {
    display: flex;
    justify-content: center;
    font-size: 0.9rem;
}

.tpw-rlgl-score strong {
    font-weight: 700;
}

/* Small hit flash when clicking on red */
.tpw-rlgl-hit {
    animation: tpw-rlgl-hit 0.2s ease-in;
}

@keyframes tpw-rlgl-hit {
    0% {
        box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.7);
    }
    100% {
        box-shadow: 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Overlay tweaks (reuse snake overlay) */
.tpw-rlgl-overlay .tpw-snake-overlay-inner h3 {
    font-size: 1.1rem;
}

/* RLGL responsive tweaks */

@media (max-width: 768px) {
    .tpw-rlgl-middle {
        grid-template-columns: 1fr;
    }

    .tpw-rlgl-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .tpw-rlgl-stats {
        text-align: left;
    }
}

@media (max-width: 992px) {
    .tpw-tetris-wrapper {
        grid-template-columns: minmax(0, 1.4fr);
    }

    .tpw-tetris-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .tpw-tetris-panel {
        flex: 1 1 44%;
    }

    .tpw-tetris-mobile-controls {
        display: flex;
    }
}

/* 2048 Number Merge */

.tpw-2048-wrapper {
    padding: 0.9rem 0.9rem 1rem;
    border-radius: var(--tpw-radius-lg);
    background: radial-gradient(circle at 0 0, #020617, #020617 45%, #020015 100%);
    border: 1px solid var(--tpw-border-subtle);
    box-shadow: var(--tpw-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tpw-2048-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.tpw-2048-score-box {
    text-align: left;
}

.tpw-2048-score-label {
    font-size: 0.78rem;
    color: var(--tpw-text-muted);
}

.tpw-2048-score-value {
    font-weight: 700;
    font-size: 1.1rem;
}

.tpw-2048-best-box {
    text-align: right;
}

.tpw-2048-best-tile {
    font-size: 0.78rem;
    color: var(--tpw-text-muted);
}

.tpw-2048-best-value {
    font-weight: 600;
}

.tpw-2048-progress-wrap {
    margin-top: 0.25rem;
}

.tpw-2048-progress-bar {
    width: 100%;
    height: 7px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 253, 0.4);
    overflow: hidden;
}

.tpw-2048-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(135deg, #4f46e5, #a855ff, #f97316);
    box-shadow: 0 0 14px rgba(168, 85, 255, 0.7);
    transition: width 0.16s ease-out;
}

/* Grid */

.tpw-2048-grid-wrapper {
    display: flex;
    justify-content: center;
}

.tpw-2048-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.55rem;
    background: radial-gradient(circle at 0 0, #020617, #020617 50%, #0b1120 100%);
    padding: 0.7rem;
    border-radius: 1.2rem;
    border: 1px solid rgba(148, 163, 253, 0.35);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.9);
    width: 100%;
    max-width: 360px;
}

.tpw-2048-cell {
    position: relative;
    padding-top: 100%;
    border-radius: 0.9rem;
    background: radial-gradient(circle at 0 0, #020617, #020617 55%, #020015 100%);
    overflow: hidden;
}

.tpw-2048-tile {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 0 9px rgba(15, 23, 42, 0.9);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.95);
}

/* Tile colour mapping */

.tpw-2048-tile-2 {
    background: linear-gradient(135deg, #4c1d95, #7c3aed);
    color: #fefce8;
}

.tpw-2048-tile-4 {
    background: linear-gradient(135deg, #1d4ed8, #4f46e5);
    color: #eff6ff;
}

.tpw-2048-tile-8 {
    background: linear-gradient(135deg, #0f766e, #22c55e);
    color: #ecfdf5;
}

.tpw-2048-tile-16 {
    background: linear-gradient(135deg, #15803d, #84cc16);
    color: #ecfccb;
}

.tpw-2048-tile-32 {
    background: linear-gradient(135deg, #ea580c, #f97316);
    color: #fff7ed;
}

.tpw-2048-tile-64 {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    color: #fef2f2;
}

.tpw-2048-tile-128 {
    background: linear-gradient(135deg, #9d174d, #ec4899);
    color: #fdf2f8;
    font-size: 1rem;
}

.tpw-2048-tile-256 {
    background: linear-gradient(135deg, #7e22ce, #a855f7);
    color: #f5f3ff;
    font-size: 1rem;
}

.tpw-2048-tile-512 {
    background: linear-gradient(135deg, #0369a1, #0ea5e9);
    color: #ecfeff;
    font-size: 0.95rem;
}

.tpw-2048-tile-1024 {
    background: linear-gradient(135deg, #0369a1, #22d3ee);
    color: #ecfeff;
    font-size: 0.88rem;
}

.tpw-2048-tile-2048 {
    background: linear-gradient(135deg, #a16207, #facc15);
    color: #fefce8;
    font-size: 0.88rem;
}

/* Spawn / merge animations */

.tpw-2048-tile-spawn {
    animation: tpw-2048-pop 0.18s ease-out;
}

.tpw-2048-tile-merged {
    animation: tpw-2048-merge 0.2s ease-out;
}

@keyframes tpw-2048-pop {
    0% { transform: scale(0.4); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes tpw-2048-merge {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

/* Bottom line + hint */

.tpw-2048-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: var(--tpw-text-muted);
}

.tpw-2048-keys {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.tpw-2048-keycap {
    border-radius: 6px;
    padding: 0.1rem 0.35rem;
    border: 1px solid rgba(148, 163, 253, 0.7);
    background: rgba(15, 23, 42, 0.9);
    font-size: 0.7rem;
    color: #e5e7ff;
}

/* Overlay re-use from snake */

.tpw-2048-overlay .tpw-snake-overlay-inner h3 {
    font-size: 1.1rem;
}

/* Shaky nudge when no moves */

.tpw-2048-stuck {
    animation: tpw-2048-stuck 0.35s ease-out;
}

@keyframes tpw-2048-stuck {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* Responsive */

@media (max-width: 576px) {
    .tpw-2048-grid {
        max-width: 100%;
    }
}

/* Memory Match Mania */

.tpw-memory-wrapper {
    padding: 0.9rem;
    border-radius: var(--tpw-radius-lg);
    background: radial-gradient(circle at 0 0, #020617, #020617 45%, #020015 100%);
    border: 1px solid var(--tpw-border-subtle);
    box-shadow: var(--tpw-shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.tpw-memory-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.6rem;
}

.tpw-memory-title {
    font-weight: 700;
    margin: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tpw-memory-title i {
    color: var(--tpw-accent-strong);
}

.tpw-memory-stats {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.85rem;
    color: var(--tpw-text-muted);
}

.tpw-memory-stat strong {
    color: var(--tpw-text-main);
    font-weight: 700;
}

.tpw-memory-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.tpw-memory-select {
    background: rgba(15, 23, 42, 0.9);
    color: var(--tpw-text-main);
    border: 1px solid rgba(148, 163, 253, 0.45);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.85rem;
    outline: none;
}

.tpw-memory-grid-wrap {
    display: flex;
    justify-content: center;
}

.tpw-memory-grid {
    display: grid;
    gap: 0.55rem;
    width: 100%;
    max-width: 520px;
}

.tpw-memory-card {
    position: relative;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 253, 0.22);
    background: rgba(2, 6, 23, 0.92);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.85);
    cursor: pointer;
    user-select: none;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    transform-style: preserve-3d;
    transition: transform 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.tpw-memory-card:hover {
    border-color: rgba(168, 85, 255, 0.65);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.95);
}

.tpw-memory-card.is-disabled {
    cursor: default;
    opacity: 0.9;
}

.tpw-memory-card-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.22s ease-out;
}

.tpw-memory-card.is-flipped .tpw-memory-card-inner {
    transform: rotateY(180deg);
}

.tpw-memory-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}

.tpw-memory-front {
    background: radial-gradient(circle at 0 0, #0b1120, #020617 60%);
}

.tpw-memory-front::after {
    content: "";
    position: absolute;
    inset: -35%;
    background: linear-gradient(135deg, rgba(168, 85, 255, 0.18), rgba(249, 115, 22, 0.16));
    transform: rotate(15deg);
    filter: blur(18px);
}

.tpw-memory-front i {
    position: relative;
    font-size: 1.25rem;
    color: rgba(229, 231, 255, 0.85);
    text-shadow: 0 0 12px rgba(168, 85, 255, 0.35);
}

.tpw-memory-back {
    transform: rotateY(180deg);
    background: radial-gradient(circle at 0 0, #020617, #020617 55%, #020015 100%);
}

.tpw-memory-icon {
    font-size: 1.8rem;
    color: #fff;
    text-shadow: 0 0 14px rgba(168, 85, 255, 0.55);
}

.tpw-memory-card.is-matched {
    border-color: rgba(34, 197, 94, 0.7);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.12), 0 18px 44px rgba(15, 23, 42, 0.95);
}

.tpw-memory-bottom {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.82rem;
    color: var(--tpw-text-muted);
    flex-wrap: wrap;
}

.tpw-memory-tip {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.tpw-memory-tip i {
    color: var(--tpw-accent-strong);
}

.tpw-memory-overlay .tpw-snake-overlay-inner h3 {
    font-size: 1.1rem;
}

/* Responsive grid sizing helpers */
@media (max-width: 576px) {
    .tpw-memory-grid {
        max-width: 100%;
    }
    .tpw-memory-icon {
        font-size: 1.55rem;
    }
}

/* Hyper Clicker */
.tpw-clicker-wrap {
    padding: 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.tpw-clicker-stage {
    background: radial-gradient(circle at 0 0, #020617, #020015 70%);
    border-radius: var(--tpw-radius-lg);
    border: 1px solid var(--tpw-border-subtle);
    box-shadow: var(--tpw-shadow-soft);
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
}

.tpw-clicker-btn {
    border: none;
    border-radius: 999px;
    padding: 0.85rem 1.2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #a855ff, #f97316);
    box-shadow: 0 18px 35px rgba(168, 85, 255, 0.25);
    width: 100%;
}

.tpw-clicker-btn:active {
    transform: translateY(1px) scale(0.99);
}

.tpw-clicker-burst {
    position: absolute;
    pointer-events: none;
    font-weight: 800;
    opacity: 0;
    transform: translateY(0) scale(0.9);
    animation: tpwClickerPop 700ms ease-out forwards;
}

@keyframes tpwClickerPop {
    0% { opacity: 0; transform: translateY(10px) scale(0.9); }
    25% { opacity: 1; }
    100% { opacity: 0; transform: translateY(-35px) scale(1.15); }
}

.tpw-clicker-chip {
    border: 1px solid rgba(148, 163, 253, 0.25);
    background: rgba(15, 23, 42, 0.65);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    color: #e5e7ff;
    font-size: 0.85rem;
}

.tpw-clicker-small {
    color: var(--tpw-text-muted);
    font-size: 0.9rem;
}

/* Pong game */

.tpw-pong-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
}

.tpw-pong-wrap canvas {
    width: min(100%, 680px);
    height: auto;
    border-radius: 18px;
    background: #020617;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.8);
    touch-action: none; /* stops mobile scroll while dragging paddle */
}

/* Endless Runner Rush */

.tpw-runner-wrap {
    padding: 0.5rem 0.25rem 0.75rem;
}

.tpw-runner-topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.tpw-runner-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tpw-runner-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 253, 0.22);
    background: rgba(2, 6, 23, 0.55);
    color: #e5e7ff;
    font-size: 0.85rem;
    font-weight: 600;
}

.tpw-runner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.tpw-runner-canvas-holder {
    position: relative;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
}

#tpw-runner-canvas {
    width: min(100%, 820px);
    height: auto;
    border-radius: 18px;
    background-color: #020617;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.8);
    touch-action: none;
}

.tpw-runner-status {
    margin-top: 0.65rem;
    color: var(--tpw-text-muted);
    font-size: 0.92rem;
    line-height: 1.35;
}

/* Overlay */

.tpw-runner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    backdrop-filter: blur(7px);
    background: radial-gradient(circle at 50% 0, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.92));
}

.tpw-runner-overlay-inner {
    width: min(420px, 92%);
    background: rgba(15, 23, 42, 0.98);
    border-radius: 1rem;
    padding: 1.2rem 1.2rem;
    border: 1px solid rgba(168, 85, 255, 0.5);
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}

.tpw-runner-overlay-title {
    font-weight: 800;
    font-size: 1.25rem;
    color: #f8f6ff;
}

.tpw-runner-overlay-sub {
    margin-top: 0.3rem;
    color: var(--tpw-text-muted);
}

.tpw-runner-overlay-score {
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

.tpw-runner-overlay-hint {
    color: var(--tpw-text-muted);
    font-size: 0.85rem;
}

/* assets/css/game-lines.css */
/* Colour Lines Logic – TPW */

.tpw-lines-wrap{
    background: rgba(2,6,23,0.55);
    border: 1px solid rgba(148,163,253,0.18);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.tpw-lines-topbar{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
}

.tpw-lines-chips{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
}

.tpw-lines-chip{
    display:inline-flex;
    gap:8px;
    align-items:center;
    padding:8px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.65);
    border: 1px solid rgba(148,163,253,0.18);
    color: rgba(226,232,240,0.95);
    font-weight: 600;
    font-size: 13px;
}

.tpw-lines-actions{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
}

.tpw-lines-grid-shell{
    border-radius: 18px;
    overflow:hidden;
    border: 1px solid rgba(148,163,253,0.18);
    background: rgba(2,6,23,0.55);
}

.tpw-lines-grid{
    display:grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    padding: 12px;
}

.tpw-lines-cell{
    aspect-ratio: 1 / 1;
    border-radius: 14px;
    border: 1px solid rgba(148,163,253,0.16);
    background: rgba(15,23,42,0.55);
    position: relative;
    cursor: pointer;
    user-select: none;
    transition: transform .08s ease, border-color .12s ease, background .12s ease;
}

.tpw-lines-cell:hover{
    transform: translateY(-1px);
    border-color: rgba(196,181,253,0.38);
    background: rgba(15,23,42,0.75);
}

.tpw-lines-cell.is-selected{
    outline: 2px solid rgba(196,181,253,0.55);
    outline-offset: 2px;
}

.tpw-lines-ball{
    position:absolute;
    inset: 12%;
    border-radius: 999px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.22);
    transform: translateZ(0);
}

.tpw-lines-ball::after{
    content:"";
    position:absolute;
    inset: 18% 30% auto 18%;
    width: 30%;
    height: 30%;
    border-radius: 999px;
    background: rgba(255,255,255,0.35);
    filter: blur(0.2px);
}

.tpw-lines-ball.is-pulse{
    animation: tpwLinesPulse .7s ease-in-out infinite;
}

@keyframes tpwLinesPulse{
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.tpw-lines-small{
    color: rgba(226,232,240,0.75);
    font-size: 13px;
    line-height: 1.35;
    margin-top: 10px;
}

.tpw-lines-hint{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    align-items:center;
    justify-content:space-between;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(15,23,42,0.55);
    border: 1px solid rgba(148,163,253,0.16);
    margin-top: 10px;
}

.tpw-lines-next{
    display:flex;
    gap:8px;
    align-items:center;
    flex-wrap:wrap;
}

.tpw-lines-next-dot{
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.24);
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}

.tpw-lines-overlay{
    position:absolute;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:18px;
    background: rgba(2,6,23,0.72);
    backdrop-filter: blur(8px);
}

.tpw-lines-overlay-inner{
    width:min(520px, 92%);
    text-align:center;
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(148,163,253,0.18);
    background: rgba(15,23,42,0.72);
    box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.tpw-lines-overlay-title{
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 6px;
    color: rgba(226,232,240,0.95);
}

.tpw-lines-overlay-sub{
    color: rgba(226,232,240,0.75);
    font-size: 13px;
    margin-bottom: 12px;
}

.tpw-lines-overlay-score{
    font-size: 14px;
    color: rgba(226,232,240,0.85);
}

/* Responsive tweaks */

@media (max-width: 992px) {
    .tpw-sidebar {
        position: fixed;
        height: auto;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        padding-inline: 1rem;
        border-right: none;
        border-bottom: 1px solid var(--tpw-border-subtle);
    }

    .tpw-sidebar-nav {
        flex-direction: row !important;
        overflow-x: auto;
        justify-content: center;
    }

    .tpw-sidebar-bottom {
        flex-direction: row !important;
    }

    .tpw-main {
        padding-top: 5.2rem;
    }

    .tpw-game-section {
        padding-top: 1rem;
    }
}