/* Number Quest Style */
body {
    font-family: 'Outfit', sans-serif;
    background-color: #fdf6e3; /* Solarized Light / Creamy */
    color: #333;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

#game-container {
    width: 100%;
    max-width: 500px;
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

/* Header */
.level-info {
    color: #888;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.target-box {
    background: #FFAB91; /* Pastel Orange */
    color: #fff;
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-block;
    margin-bottom: 30px;
}
.target-label { font-size: 0.8rem; opacity: 0.8; }
.target-val { font-size: 2.5rem; font-weight: 800; line-height: 1; }

/* Tiles Tray */
#tiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    min-height: 100px;
    align-items: center;
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa; /* Light Tray Background */
    border-radius: 20px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.05); /* Inner Shadow */
    border: 1px solid #eee;
}

.tile {
    width: 60px;
    height: 60px;
    background: #fff;
    color: #333;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    box-shadow: 0 4px 0 #ddd, 0 5px 10px rgba(0,0,0,0.1); /* 3D Effect */
    border: 1px solid #ddd;
    transition: transform 0.1s;
    user-select: none;
}
.tile:active {
    cursor: grabbing;
    transform: translateY(4px);
    box-shadow: 0 0 0 #ddd, inset 0 2px 5px rgba(0,0,0,0.1);
}

/* Controls */
.controls {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}
.btn-reset {
    background: #fff;
    border: 2px solid #ddd;
    padding: 10px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    color: #555;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-reset:hover {
    border-color: #333;
    color: #333;
    background: #fdfdfd;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.success-glow {
    animation: pulse-green 0.8s ease-out;
    border-color: #4CAF50 !important;
}

/* Home Button */
.home-btn {
    position: fixed; /* Fixed to viewport */
    top: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid #eee;
    transition: transform 0.2s;
    z-index: 100;
}
.home-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: #4db6ac;
}

/* Orbit Board */
#orbit-board {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 20px auto;
    /* border: 1px dashed #ccc; */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#center-stage {
    width: 100px;
    height: 100px;
    background: #eee;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
    border: 2px dashed #bbb;
    z-index: 10;
    transition: all 0.2s;
}

#center-stage.has-value {
    background: #FFCA28; /* Amber */
    color: #fff;
    border-style: solid;
    border-color: #FFCA28;
    box-shadow: 0 5px 15px rgba(255, 202, 40, 0.4);
}

.placeholder-text {
    font-size: 0.8rem;
    color: #aaa;
    text-align: center;
    pointer-events: none;
}

/* Operator Zones */
.op-zone {
    position: absolute;
    width: 60px;
    height: 60px;
    background: #fff;
    border: 2px dashed #ddd;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #aaa;
    transition: all 0.2s;
}

.op-zone i { pointer-events: none; }

.op-zone.top { top: 0; left: 50%; transform: translateX(-50%); }
.op-zone.bottom { bottom: 0; left: 50%; transform: translateX(-50%); }
.op-zone.left { left: 0; top: 50%; transform: translateY(-50%); }
.op-zone.right { right: 0; top: 50%; transform: translateY(-50%); }

.op-zone.drag-over {
    background: #e0f2f1;
    border-color: #4DB6AC;
    color: #4DB6AC;
    transform: scale(1.1);
}
/* Adjust specific transforms to keep centering */
.op-zone.top.drag-over { transform: translateX(-50%) scale(1.1); }
.op-zone.bottom.drag-over { transform: translateX(-50%) scale(1.1); }
.op-zone.left.drag-over { transform: translateY(-50%) scale(1.1); }
.op-zone.right.drag-over { transform: translateY(-50%) scale(1.1); }


/* Tiles */
#tiles-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    min-height: 90px;
    align-content: center;
    margin-top: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 15px;
}
