:root {
    --bg-color: #2b1d0e;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-primary: #ff9e00;
    --accent-secondary: #d00000;
    --accent-glow: #ffcdb2;
    --text-color: #fdf0d5;
    --text-muted: #9d8189;
    --card-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.6);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 20% 30%, rgba(208, 0, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 158, 0, 0.1) 0%, transparent 40%);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1rem;
    padding: 1rem;
    min-height: 100vh;
}

.title-nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.title-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    flex: 1;
    min-width: 0;
}

.main-title {
    text-align: center;
    margin-bottom: 0;
    font-size: clamp(1.2rem, 5vw, 1.6rem);
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 158, 0, 0.3));
    line-height: 1.1;
}

.preset-subtitle {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    opacity: 0.8;
    text-transform: capitalize;
}

.btn-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.3s;
}

.btn-nav:hover {
    background: var(--accent-primary);
    color: var(--bg-color);
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--accent-primary);
}

@media (max-width: 1000px) {
    .container {
        grid-template-columns: 1fr;
        height: auto;
        overflow-y: auto;
    }
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

/* Wheel Area */
.wheel-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.wheel-container {
    position: relative;
    width: clamp(250px, 75vmin, 450px);
    max-width: 450px;
    aspect-ratio: 1;
    filter: drop-shadow(0 0 30px rgba(0, 0, 0, 0.5));
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.wheel-pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 50px;
    background: white;
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    z-index: 10;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.5));
}

.btn-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--bg-color);
    border: 4px solid var(--glass-border);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    font-weight: 800;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px rgba(0, 0, 0, 1);
}

.btn-spin:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--accent-primary);
    border-color: white;
    box-shadow: 0 0 40px var(--accent-primary);
}

.btn-spin:active {
    transform: translate(-50%, -50%) scale(0.95);
}

.result-display {
    padding: 1rem 2rem;
    text-align: center;
    min-width: 250px;
}

.result-display h2 {
    font-size: 1.5rem;
    background: linear-gradient(45deg, var(--accent-glow), #ffffff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.result-display h2.spinning {
    background: none;
    -webkit-text-fill-color: white;
}

/* Sidebar */
.sidebar-presets {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow-y: auto;
    padding: 1rem;
    margin: -1rem;
}

.panel {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

.header {
    margin-bottom: 1.25rem;
}

.btn-share {
    width: fit-content;
    margin: 1rem auto 0;
    padding: 0.8rem 2rem;
    background: rgba(76, 201, 240, 0.1);
    border: 1px solid rgba(76, 201, 240, 0.3);
    border-radius: 20px;
    color: #4cc9f0;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-share:hover {
    background: rgba(76, 201, 240, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 201, 240, 0.2);
}

.header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-glow));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header p {
    color: var(--text-muted);
}

.preset-manager h2 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.preset-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.btn-preset {
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    font-weight: 600;
}

.btn-preset:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
}

.btn-preset.active {
    background: var(--accent-primary);
    color: #2b1d0e;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(255, 158, 0, 0.3);
}

.promo-box {
    background: rgba(255, 158, 0, 0.05);
    padding: 1.5rem;
    border-radius: 20px;
    border: 1px dashed var(--accent-primary);
    text-align: center;
    margin-bottom: 2rem;
}

.promo-box p {
    font-size: 0.85rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.btn-promo {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #ffffff;
    color: #2b1d0e;
    text-decoration: none;
    border-radius: 99px;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-promo:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.current-info {
    padding: 1rem 1.5rem;
    width: 100%;
    max-width: 650px;
    margin-top: 0.5rem;
}

.current-info h2 {
    font-size: clamp(0.7rem, 3vw, 0.9rem);
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    text-align: center;
}

.options-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.option-tag {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
}

.option-tag.excluded {
    text-decoration: line-through;
    opacity: 0.4;
    filter: grayscale(1);
}

.option-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.tag-color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.btn-hub-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    margin: 1rem;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-hub-link:hover {
    background: var(--accent-primary);
    color: #2b1d0e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 158, 0, 0.3);
    border-color: var(--accent-primary);
}

.notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150px);
    padding: 1rem 2rem;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 600px) {
    .container {
        padding: 1rem;
        gap: 1rem;
    }


    .wheel-container {
        width: 100%;
        max-width: 350px;
    }

    .btn-spin {
        width: 70px;
        height: 70px;
        font-size: 0.9rem;
    }

    .preset-grid {
        grid-template-columns: 1fr;
    }
}