:root {
     --saffron: #FF9933;
     --white: #FFFFFF;
     --green: #138808;
     --navy: #000080;
     --error: #FF5733;
     --success: #2E7D32;
}

/* NAVBAR */
.dd-navbar {
    width: 100%;
    background: linear-gradient(90deg, #232946 0%, #1c1f2a 100%);
    color: #fff;
    display: flex;
    align-items: center;
    padding: 0.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px #23294655;
    font-family: 'Montserrat', Arial, sans-serif;
}
.dd-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
}
.dd-logo {
    height: 44px;
    width: 44px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 10px #23294655;
    object-fit: contain;
}
.dd-navbar-title {
    font-size: 1.38rem;
    font-family: 'Orbitron', Arial, sans-serif;
    font-weight: 700;
    color: #ff6700;
    letter-spacing: 1px;
    text-shadow: 0 2px 14px #00968833;
}
.dd-navbar-links {
    display: flex;
    gap: 2.1em;
    list-style: none;
    margin-left: auto;
    margin-bottom: 0;
    padding: 0;
    align-items: center;
}
.nav-link {
    color: #fff;
    font-size: 1.07rem;
    font-weight: 600;
    padding: 10px 0;
    text-decoration: none;
    position: relative;
    transition: color 0.18s;
    border-radius: 4px;
}
.nav-link:hover, .nav-link:focus, .nav-link.active {
    color: #ff6700;
    background: rgba(255, 103, 0, 0.06);
}
.underline-anim::after {
    content: '';
    display: block;
    height: 2.5px;
    width: 0;
    background: linear-gradient(90deg, #ff6700 55%, #009688 100%);
    transition: width 0.27s cubic-bezier(.83,0,.17,1);
    border-radius: 2px;
    margin-top: 2px;
    position: absolute;
    left: 0;
}
.nav-link:hover.underline-anim::after, .nav-link:focus.underline-anim::after, .nav-link.active.underline-anim::after {
    width: 100%;
}
@media (max-width: 900px) {
    .dd-navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 1rem;
    }
    .dd-navbar-links {
        flex-direction: column;
        gap: 0.2em;
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
    .nav-link {
        padding: 13px 0 13px 10px;
        width: 100%;
    }
    .dd-logo {
        height: 36px;
        width: 36px;
    }
    .dd-navbar-title {
        font-size: 1.02rem;
    }
}

/* PAGE BACKGROUND & GAME CONTAINER */
body {
     margin: 0;
     padding: 15px;
     min-height: 80vh;
     font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     background: linear-gradient(135deg, var(--saffron) 0%, var(--white) 50%, var(--green) 100%);
     color: var(--navy);
}

.game-container {
     max-width: 1000px;
     margin: 40px auto 0 auto;
}

header {
     text-align: center;
     margin-bottom: 20px;
     background-color: var(--white);
     padding: 15px;
     border-radius: 12px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
     margin: 0;
     font-size: 2em;
     color: var(--navy);
     text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
     font-family: 'Orbitron', Arial, sans-serif;
}

.stats-container {
     display: flex;
     justify-content: center;
     gap: 2px;
     margin-top: 12px;
}

.score-box,
.time-box {
     text-align: center;
     background-color: var(--navy);
     color: var(--white);
     padding: 10px 20px;
     border-radius: 6px;
     font-size: .9em;
     font-weight: bold;
}

.info-panel {
     text-align: center;
     margin-bottom: 16px;
     background-color: var(--white);
     padding: 10px 20px;
     border-radius: 6px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.game-area {
     display: flex;
     flex-direction: column;
     gap: 2px;
}

.drop-zones,
.draggables-container {
     display: flex;
     justify-content: center;
     flex-wrap: wrap;
     gap: 5px;
     min-height: 100px;
     padding: 14px;
}

.box {
     width: 120px;
     height: 60px;
     background: var(--white);
     border: 2px solid var(--navy);
     border-radius: 6px;
     display: flex;
     justify-content: center;
     align-items: center;
     font-size: 0.8em;
     text-align: center;
     transition: all 0.3s ease;
     color: var(--navy);
}

.box.over {
     background: rgba(255, 255, 255, 0.9);
     transform: scale(1.05);
     border-style: dashed;
}

.box.success {
     background: var(--success);
     color: var(--white);
     border-color: var(--success);
}

.draggable {
     width: 160px;
     background: var(--white);
     border-radius: 6px;
     cursor: grab;
     padding: 12px;
     box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
     transition: transform 0.2s;
     border: 2px solid var(--saffron);
}

.draggable:active {
     cursor: grabbing;
}

.draggable .content {
     font-size: 0.8em;
     font-weight: bold;
     margin-bottom: 8px;
     color: var(--navy);
}

.draggable .description {
     font-size: 0.8em;
     color: #444;
}

.draggable.dragging {
     opacity: 0.5;
     transform: scale(1.05);
}

button {
     background: var(--navy);
     color: var(--white);
     border: none;
     padding: 6px 12px;
     border-radius: 25px;
     font-size: 1.2em;
     cursor: pointer;
     margin: 6px;
     transition: transform 0.2s;
}

button:hover {
     transform: scale(1.05);
     background: var(--saffron);
}

.hidden {
     display: none;
}

@media (max-width: 900px) {
    .game-container {
        padding: 0 5px;
    }
    .drop-zones, .draggables-container {
        padding: 8px;
        gap: 2px;
    }
}
@media (max-width: 768px) {
     .box,
     .draggable {
          width: 180px;
     }
     .box {
          height: 100px;
     }
     .game-container {
          padding: 0 2vw;
     }
}