.cg-container {
    max-width: 1320px;
    margin: 30px auto;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f7f7 100%);
    box-shadow: 0 14px 40px rgba(0,0,0,0.10);
    font-family: inherit;
}

.cg-container h2 {
    text-align: center;
    font-size: 40px;
    line-height: 1.15;
    margin-bottom: 16px;
    color: #222222;
}

.cg-container h3 {
    margin-top: 0;
    color: #222222;
}

.cg-hero {
    text-align: center;
    max-width: 1050px;
    margin: 0 auto;
}

.cg-badge {
    display: inline-block;
    padding: 8px 18px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #222222;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cg-hero-subtitle {
    max-width: 760px;
    margin: 0 auto 34px auto;
    font-size: 21px;
    line-height: 1.55;
    color: #222222;
}

.cg-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 34px 0 38px 0;
}

.cg-step-card {
    padding: 26px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.07);
    text-align: left;
    border: 1px solid #eeeeee;
}

.cg-step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #222222;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    margin-bottom: 14px;
}

.cg-step-card h3 {
    font-size: 23px;
    margin-bottom: 8px;
}

.cg-step-card p {
    font-size: 16px;
    line-height: 1.45;
    margin-bottom: 0;
    color: #333333;
}

.cg-main-button,
#cg-start-btn,
#cg-restart-btn,
#cg-confirm-btn {
    display: inline-block;
    margin: 18px auto 0 auto;
    padding: 18px 42px;
    border: none;
    border-radius: 12px;
    background: #222222;
    color: white;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cg-main-button:hover,
#cg-start-btn:hover,
#cg-restart-btn:hover,
#cg-confirm-btn:hover {
    background: #000000;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.22);
}

.cg-main-button:disabled,
#cg-start-btn:disabled,
#cg-restart-btn:disabled,
#cg-confirm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.cg-progress {
    text-align: center;
    font-size: 20px;
    margin-bottom: 18px;
    font-weight: bold;
    color: #222222;
}

/* Pantalla de juego: vídeo izquierda + valoración derecha */
.cg-play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 28px;
    align-items: stretch;
    max-width: 1280px;
    margin: 0 auto;
}

.cg-video-zone {
    min-width: 0;
}

.cg-rating-zone {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cg-rating-title {
    text-align: center;
    font-size: 22px;
    font-weight: 900;
    margin: 0 0 16px 0;
    color: #222222;
}

#cg-video-wrapper {
    margin: 0;
    max-width: none;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 28px rgba(0,0,0,0.18);
}

#cg-video-wrapper iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
}

.cg-answer-box {
    text-align: center;
}

.cg-answer-box p {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 18px;
    color: #222222;
}

.cg-slider-box {
    margin: 0 auto;
    padding: 28px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid #eeeeee;
}

.cg-slider-box-vertical {
    width: 100%;
    height: 100%;
    min-height: 520px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cg-slider-value {
    font-size: 54px;
    font-weight: 900;
    color: #222222;
    margin-bottom: 10px;
    line-height: 1;
    text-align: center;
}

.cg-vertical-slider-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-height: 300px;
}

.cg-vertical-labels {
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: right;
    font-weight: 800;
    color: #666666;
    font-size: 16px;
}

#cg-activity-slider {
    width: 300px;
    height: 12px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 999px;
    background: #dddddd;
    outline: none;
    margin: 0;
    transform: rotate(-90deg);
    transform-origin: center;
}

#cg-activity-slider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #222222;
    cursor: pointer;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.28);
}

#cg-activity-slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #222222;
    cursor: pointer;
    border: 4px solid #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.28);
}

.cg-slider-labels {
    display: none;
}

#cg-confirm-btn {
    width: 100%;
    padding: 16px 18px;
    font-size: 17px;
}

.cg-results-top {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 20px;
    margin-bottom: 24px;
}

.cg-level-card {
    background: #222222;
    color: #ffffff;
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.16);
}

.cg-level-label {
    font-size: 16px;
    opacity: 0.8;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
}

.cg-level-value {
    font-size: 34px;
    font-weight: 900;
    line-height: 1.15;
}

.cg-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cg-metric-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cg-metric-title {
    font-size: 15px;
    color: #666666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 800;
}

.cg-metric-value {
    font-size: 30px;
    font-weight: 900;
    color: #222222;
    line-height: 1.15;
}

.cg-chart-card,
.cg-details-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid #eeeeee;
}

.cg-chart-card h4,
.cg-details-card h4 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 22px;
    color: #222222;
}

#cg-chart {
    margin-top: 10px;
    margin-bottom: 10px;
}

.cg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    overflow: hidden;
    border-radius: 12px;
}

.cg-table th,
.cg-table td {
    padding: 12px 10px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

.cg-table th {
    background: #f4f4f4;
    font-weight: 900;
    color: #222222;
}

.cg-table td {
    background: #ffffff;
}

.cg-table tr:hover td {
    background: #fafafa;
}

.cg-advice {
    margin-top: 28px;
    padding: 24px 28px;
    background: #ffffff;
    border-radius: 20px;
    font-size: 17px;
    line-height: 1.55;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border: 1px solid #eeeeee;
}

.cg-advice h4 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 12px;
    color: #222222;
}

.cg-advice p {
    margin-bottom: 0;
}

/* Pantallas medianas */
@media (max-width: 1100px) {
    .cg-container {
        padding: 24px;
    }

    .cg-play-layout {
        grid-template-columns: minmax(0, 1fr) 220px;
        gap: 20px;
    }

    .cg-slider-box-vertical {
        min-height: 460px;
    }

    #cg-activity-slider {
        width: 260px;
    }

    .cg-vertical-labels {
        height: 260px;
    }

    .cg-slider-value {
        font-size: 46px;
    }
}

/* Móvil */
@media (max-width: 800px) {
    .cg-container {
        padding: 24px;
        margin: 18px auto;
    }

    .cg-container h2 {
        font-size: 30px;
    }

    .cg-hero-subtitle {
        font-size: 17px;
    }

    .cg-steps {
        grid-template-columns: 1fr;
    }

    .cg-play-layout {
        grid-template-columns: 1fr;
    }

    .cg-slider-box-vertical {
        min-height: auto;
    }

    .cg-vertical-slider-area {
        min-height: auto;
        flex-direction: column;
        gap: 8px;
    }

    #cg-activity-slider {
        width: 100%;
        transform: none;
        margin: 18px 0 14px 0;
    }

    .cg-vertical-labels {
        width: 100%;
        height: auto;
        flex-direction: row-reverse;
        justify-content: space-between;
    }

    .cg-main-button,
    #cg-start-btn,
    #cg-restart-btn,
    #cg-confirm-btn {
        width: 100%;
        font-size: 18px;
        padding: 16px 24px;
    }

    .cg-results-top {
        grid-template-columns: 1fr;
    }

    .cg-metrics-grid {
        grid-template-columns: 1fr;
    }

    .cg-level-value {
        font-size: 28px;
    }

    .cg-metric-value {
        font-size: 24px;
    }

    .cg-table {
        font-size: 14px;
    }

    .cg-table th,
    .cg-table td {
        padding: 10px 6px;
    }
}