/* 
 * Gaming Designed for Every Screen Styling
 */

.toonz-gaming-screen-wrapper {
    position: relative;

    /* Minimal cream base */
    color: #111;
    padding: 50px 0;
    overflow: hidden;
    min-height: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-screen-bg {
    position: absolute;
    top: -300px;
    left: 0;
    width: 100%;
    height: 140%;
    /* Oversized for parallax */
    z-index: 1;
    pointer-events: none;
}

.tg-screen-bg img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tg-screen-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 800px;
    /* Reference height for platform positioning */
    margin: 0 auto;
    padding-left: 50px;
    padding-right: 50px;
}

/* --- Central Header & Core --- */
.tg-screen-header {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 15;
    width: 600px;
}

.tg-orbital-core {
    position: relative;
    width: 350px;
    height: 350px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tg-core-sphere {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.3) 100%);
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(196, 155, 98, 0.2);
    z-index: 2;
}

.tg-sphere-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(196, 155, 98, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.tg-orbit-line {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(196, 155, 98, 0.3);
    border-radius: 50%;
    animation: rotateOrbit linear infinite;
}

.tg-screen-titles {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tg-line-top {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 5px;
    margin-bottom: 10px;
    opacity: 0.6;
}

.tg-screen-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    line-height: 1;
}

.tg-line-accent {
    font-size: 32px;
    font-weight: 300;
    margin-top: 5px;
}

.orbit-1 {
    width: 380px;
    height: 380px;
    animation-duration: 20s;
}

.orbit-2 {
    width: 420px;
    height: 420px;
    animation-duration: 35s;
    transform: translate(-50%, -50%) rotate(45deg);
}

.orbit-3 {
    width: 480px;
    height: 480px;
    animation-duration: 50s;
    transform: translate(-50%, -50%) rotate(-30deg);
}

@keyframes rotateOrbit {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.tg-platform-block {
    position: absolute;
    width: 280px;
    padding: 30px;
    animation: floatPlatform 6s infinite ease-in-out;
}

@keyframes floatPlatform {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Specific Positions */
.platform-1 {
    top: 10%;
    left: 0;
    animation-delay: 0s;
}

.platform-2 {
    top: 10%;
    right: 0;
    animation-delay: 1.5s;
    text-align: right;
}

.platform-3 {
    bottom: 0%;
    left: 0;
    animation-delay: 3s;
}

.platform-4 {
    bottom: 0%;
    right: 0;
    animation-delay: 4.5s;
    text-align: right;
}

.platform-2 .tg-platform-header,
.platform-4 .tg-platform-header {
    flex-direction: row-reverse;
}

.tg-platform-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tg-platform-num {
    font-size: 28px;
    font-weight: 300;
    color: #C49B62;
    font-family: serif;
    /* Cinematic number font */
}

.tg-platform-line {
    height: 1px;
    width: 40px;
    background: #C49B62;
    flex-shrink: 0;
}

.tg-platform-title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.tg-platform-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.tg-platform-icon {
    width: 40px;
    height: 40px;
    border: 1px solid #C49B62;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #C49B62;
    font-size: 16px;
}

.platform-2 .tg-platform-icon,
.platform-4 .tg-platform-icon {
    margin-left: auto;
}

/* Floating Visuals */
.tg-floating-visual {
    position: absolute;
    z-index: -1;
}

.platform-1 .tg-floating-visual {
    top: -50px;
    right: -80px;
    width: 120px;
}

.platform-2 .tg-floating-visual {
    top: -40px;
    left: -100px;
    width: 250px;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .tg-platforms-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }

    .tg-platform-block {
        position: relative;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100%;
        text-align: left !important;
    }

    .tg-platform-header {
        flex-direction: row !important;
    }

    .tg-platform-icon {
        margin-left: 0 !important;
    }

    .tg-screen-center {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        margin-bottom: 100px;
    }
}