:root {
    --primary: #00f2ff;
    --secondary: #7000ff;
    --bg: #050505;
    --card-bg: rgba(20, 20, 20, 0.8);
    --text: #ffffff;
    --text-dim: #b0b0b0;
    --accent: #ff007a;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 242, 255, 0.15) 0%, transparent 40%);
}

.container {
    max-width: 1200px;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

h1 {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px rgba(0, 242, 255, 0.3));
}

p.subtitle {
    color: var(--text-dim);
    font-size: 1.2rem;
    letter-spacing: 2px;
}

/* Roulette Styles */
.roulette-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 50px rgba(0, 242, 255, 0.2);
    border: 4px solid var(--glass-border);
}

.pointer {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--accent);
    z-index: 100;
    filter: drop-shadow(0 0 10px var(--accent));
}

.wheel-center {
    position: absolute;
    width: 60px;
    height: 60px;
    background: var(--bg);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px var(--primary);
}

/* Controls */
.controls {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.btn {
    padding: 20px 60px;
    font-size: 1.5rem;
    font-weight: 800;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 242, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Selected Game Info */
.selected-game-card {
    margin-top: 60px;
    width: 100%;
    max-width: 600px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    text-align: center;
}

.selected-game-card.show {
    opacity: 1;
    transform: translateY(0);
}

.selected-game-card h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.selected-game-card .meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    color: var(--text-dim);
}

.selected-game-card .description {
    line-height: 1.6;
    margin-bottom: 30px;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.action-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    font-weight: 600;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.action-btn.torrent {
    background: rgba(0, 255, 122, 0.1);
    color: #00ff7a;
    border-color: rgba(0, 255, 122, 0.3);
}

.action-btn.torrent:hover {
    background: rgba(0, 255, 122, 0.2);
}

/* History */
.history-section {
    margin-top: 100px;
    width: 100%;
    max-width: 800px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.history-section h2 {
    font-size: 2rem;
    color: var(--text-dim);
}

.reset-btn {
    background: rgba(255, 0, 0, 0.1);
    color: #ff4d4d;
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.reset-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: scale(1.05);
}

.history-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.history-item {
    background: var(--glass);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    font-size: 0.9rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
