/* ==========================================================================
   WEBPOT INTERACTIVE PHYSICS PLAYGROUND
   Theme-synced with main site: transparent bg, var(--text) colors
   ========================================================================== */

/* ---- Section ---- */
.tech-playground-section {
    position: relative;
    background: transparent;
    border-top: 1px solid var(--border);
    overflow: hidden;
    padding: 90px 0 80px;
}

/* ---- Header ---- */
.playground-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 5;
}

.playground-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #111111;
    color: #ffffff;
    border-radius: 99px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.playground-badge svg {
    width: 14px;
    height: 14px;
}

.playground-title {
    font-family: 'DM Sans', 'Plus Jakarta Sans', system-ui, sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 12px;
}

.playground-title span {
    background: linear-gradient(135deg, #2563eb 0%, #38bdf8 40%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.playground-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Canvas Stage ---- */
.playground-stage {
    position: relative;
    width: 100%;
    height: 480px;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 24px;
    background: #000000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.playground-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    cursor: grab;
}

.playground-canvas:active {
    cursor: grabbing;
}

/* ---- Floating Hint ---- */
.playground-hint {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 999px;
    font-family: 'Space Grotesk', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 5;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.playground-hint.hidden {
    opacity: 0;
}

/* ---- Accessibility: Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    .playground-stage {
        height: auto;
        min-height: 200px;
        padding: 2rem;
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        align-items: center;
    }
    .playground-canvas {
        display: none;
    }
}
