:root {
    --bg-dark: #0f172a;
    --bg-gradient: linear-gradient(135deg, #2e1065 0%, #0f172a 100%);
    --primary: #c084fc;
    /* Purple */
    --accent: #f472b6;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f3e8ff;
    --disk-1: #fca5a5;
    --disk-2: #fdba74;
    --disk-3: #fde047;
    --disk-4: #86efac;
    --disk-5: #67e8f9;
    --font-family: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background: var(--bg-gradient);
    color: var(--text-main);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.background-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    z-index: -1;
}

.orb-1 {
    width: 50vw;
    height: 50vw;
    background: var(--primary);
    top: -20%;
    right: -10%;
}

.orb-2 {
    width: 40vw;
    height: 40vw;
    background: var(--accent);
    bottom: -10%;
    left: -10%;
}

.game-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    max-width: 800px;
}

/* HUD */
.hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
}

.objective {
    display: flex;
    flex-direction: column;
}

.objective span:first-child {
    font-size: 0.8rem;
    opacity: 0.7;
}

.objective span:last-child {
    font-weight: 700;
    color: var(--primary);
}

.moves-box {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
}

/* Game Area */
.game-area {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.towers-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    width: 100%;
    height: 300px;
    gap: 1rem;
}

.tower {
    position: relative;
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.tower:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.tower.selected {
    background: rgba(192, 132, 252, 0.1);
    box-shadow: 0 0 15px rgba(192, 132, 252, 0.2);
    border-radius: 10px;
}

.pole {
    position: absolute;
    bottom: 0;
    width: 6px;
    height: 80%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px 3px 0 0;
    z-index: 0;
}

.base {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    z-index: 0;
}

.disks-container {
    z-index: 1;
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    /* Stack from bottom up */
    align-items: center;
    margin-bottom: 10px;
    /* Above base */
    gap: 2px;
}

.disk {
    height: 25px;
    border-radius: 12px;
    background: white;
    /* fallback */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
}

/* Disk Sizes and Colors */
.disk[data-size="1"] {
    width: 30%;
    background: var(--disk-1);
}

.disk[data-size="2"] {
    width: 45%;
    background: var(--disk-2);
}

.disk[data-size="3"] {
    width: 60%;
    background: var(--disk-3);
}

.disk[data-size="4"] {
    width: 75%;
    background: var(--disk-4);
}

.disk[data-size="5"] {
    width: 90%;
    background: var(--disk-5);
}

/* Animation for selection */
.disk.floating {
    transform: translateY(-20px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* Controls */
.controls-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding-bottom: 2rem;
}

#game-message {
    height: 20px;
    color: var(--accent);
    font-size: 0.9rem;
}

.diff-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem;
    border-radius: 20px;
}

.diff-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--text-main);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 700;
}

.diff-btn.selected {
    background: var(--primary);
    color: white;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    background: #2e1065;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--primary);
    box-shadow: 0 0 50px rgba(192, 132, 252, 0.2);
}

.cta-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    margin-top: 1rem;
    cursor: pointer;
}

.hidden {
    display: none !important;
}