:root {
    --primary: #00ff88;
    --primary-glow: #00ff8880;
    --secondary: #7000ff;
    --bg-dark: #0a0b1e;
    --bg-card: #151632;
    --text-main: #ffffff;
    --text-muted: #8b8ca5;
    --accent-red: #ff0055;
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

.app-container {
    width: 100%;
    max-width: 1200px;
    padding: 20px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon {
    font-size: 32px;
}

.btn {
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary), #a033ff);
    color: white;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(112, 0, 255, 0.6);
}

.btn-large {
    width: 100%;
    font-size: 18px;
    background: linear-gradient(135deg, var(--primary), #00cc6a);
    color: #000;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-large:hover {
    box-shadow: 0 0 30px var(--primary-glow);
}

/* Room Selector */
.room-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.room-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.room-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.room-card.active {
    background: linear-gradient(rgba(0, 255, 136, 0.1), rgba(0, 0, 0, 0));
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
}

.room-card h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.room-card p {
    color: var(--text-muted);
    font-size: 14px;
}

.status-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 12px;
    background: rgba(0, 255, 136, 0.2);
    color: var(--primary);
    padding: 4px 8px;
    border-radius: 20px;
}

/* Game Arena */
.game-arena {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .game-arena {
        grid-template-columns: 1fr;
    }
}

.vis-container {
    background: var(--bg-card);
    border-radius: 24px;
    min-height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.5);
}

/* Wheel Styles */
#wheelCanvas {
    max-width: 100%;
    max-height: 100%;
}

.pointer {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 30px;
    text-shadow: 0 4px 4px rgba(0,0,0,0.5);
    z-index: 10;
}

/* Controls */
.controls-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.pot-info h2 {
    font-size: 36px;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pot-info p {
    color: var(--text-muted);
    font-size: 18px;
}

.input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    color: white;
    font-size: 18px;
    font-family: var(--font-main);
}

input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn-sm {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 20px;
    cursor: pointer;
}

.chance-text {
    margin-top: 15px;
    text-align: center;
    color: var(--text-muted);
}

.chance-text span {
    color: var(--primary);
    font-weight: bold;
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: 1fr;
    }
}

.feed-panel, .participants-panel {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 16px;
}

h3 {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 400;
    padding: 10px;
    font-size: 14px;
}

td {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: monospace;
}

.feed-list {
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.feed-item {
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.feed-item .amount {
    color: var(--primary);
    font-weight: bold;
}

/* Footer */
footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
}

a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: white;
}

.hidden {
    display: none !important;
}
