:root {
    --apple-bg: #000000;
    --apple-surface: #1c1c1e;
    --apple-surface-light: #2c2c2e;
    --apple-border: rgba(255, 255, 255, 0.1);
    --apple-text: #f5f5f7;
    --apple-text-secondary: rgba(255, 255, 255, 0.7);
    --apple-text-tertiary: rgba(255, 255, 255, 0.5);
    --apple-blue: #d4b5a0;
    --apple-blue-dark: #c4a590;
    --apple-green: #30d158;
    --apple-red: #ff453a;
    --apple-orange: #ff9f0a;
    --apple-purple: #e8d5c4;
    --apple-gold: #ffd60a;
    
    --border-radius: 16px;
    --border-radius-lg: 20px;
    --border-radius-xl: 24px;
    
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    
    --transition: all 0.15s ease;
    --transition-fast: all 0.1s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    background: var(--apple-bg);
    color: var(--apple-text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Static Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(212, 181, 160, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 20%, rgba(232, 213, 196, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 50% 60% at 60% 80%, rgba(196, 165, 144, 0.06) 0%, transparent 50%);
    z-index: -1;
}

/* Hide garland for Apple style */
.garland { display: none; }

.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
}

.app-header {
    margin-bottom: 16px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

.header-gradient {
    background: var(--apple-surface);
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-lg);
    padding: 14px 24px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--apple-purple), var(--apple-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--apple-text);
}

.tagline {
    color: var(--apple-text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
}

.creator-text {
    color: var(--apple-text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
}

.app-main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 16px;
    min-height: 0;
    overflow: hidden;
}

.glass-panel {
    background: var(--apple-surface);
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    height: 100%;
    transition: border-color 0.15s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--apple-border);
    flex-shrink: 0;
}

.panel-header i {
    color: var(--apple-blue);
    font-size: 1rem;
}

.panel-header h2 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.3px;
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    color: var(--apple-text-secondary);
    font-weight: 500;
    font-size: 0.8rem;
}

.form-group label i {
    width: 16px;
    color: var(--apple-blue);
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 16px;
    color: var(--apple-text-tertiary);
    z-index: 1;
}

.input-with-icon input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--apple-border);
    border-radius: 10px;
    color: var(--apple-text);
    font-size: 14px;
    font-weight: 400;
    transition: border-color 0.1s ease;
}

.input-with-icon input:focus {
    outline: none;
    border-color: var(--apple-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.15);
}

.input-with-icon input::placeholder {
    color: var(--apple-text-tertiary);
}

/* Mode Toggle */
.mode-toggle {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
}

.mode-btn {
    flex: 1;
    padding: 8px 10px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--apple-text-secondary);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.mode-btn:hover {
    color: var(--apple-text);
    background: rgba(255, 255, 255, 0.05);
}

.mode-btn.active {
    background: var(--apple-blue);
    color: white;
}

.mode-btn i { font-size: 11px; }

#keywordGroup.hidden { display: none; }

.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0;
}

button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.1s ease, transform 0.1s ease;
    position: relative;
    overflow: hidden;
}

button:active { transform: scale(0.97); }

.btn-primary {
    background: var(--apple-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--apple-blue-dark);
    box-shadow: 0 4px 20px rgba(10, 132, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--apple-text);
    border: 1px solid var(--apple-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-success {
    background: var(--apple-green);
    color: white;
}

.btn-success:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 20px rgba(48, 209, 88, 0.4);
}

.btn-instant {
    background: linear-gradient(135deg, var(--apple-orange), #ff6b00);
    color: white;
    margin-top: 8px;
}

.btn-instant:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 20px rgba(255, 159, 10, 0.4);
}

.btn-warning {
    background: var(--apple-orange);
    color: white;
    margin-top: 15px;
}

.btn-warning:hover {
    filter: brightness(1.1);
}

.btn-success:disabled,
.btn-warning:disabled,
.btn-instant:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: var(--apple-text-tertiary);
    cursor: not-allowed;
    box-shadow: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 12px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--apple-border);
}

.stat-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--apple-blue), var(--apple-purple));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--apple-text-secondary);
    font-weight: 500;
}

.status-message {
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-message.connected {
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.3);
    color: var(--apple-green);
}

.status-message.disconnected {
    background: rgba(255, 69, 58, 0.1);
    border: 1px solid rgba(255, 69, 58, 0.3);
    color: var(--apple-red);
}

.status-message.info {
    background: rgba(10, 132, 255, 0.1);
    border: 1px solid rgba(10, 132, 255, 0.3);
    color: var(--apple-blue);
}

/* Participants List */
.participants-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

.participants-list::-webkit-scrollbar {
    width: 6px;
}

.participants-list::-webkit-scrollbar-track {
    background: transparent;
}

.participants-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    color: var(--apple-text-tertiary);
    text-align: center;
    padding: 20px;
}

.empty-state i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 0.8rem;
    line-height: 1.4;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid transparent;
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--apple-border);
}

.user-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--apple-purple), var(--apple-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* Twitch Chat Panel */
.chat-section {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.chat-panel-full {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.twitch-chat-container-full {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    min-height: 0;
}

.twitch-chat-container-full iframe {
    border-radius: 10px;
}

.twitch-chat-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--apple-text-tertiary);
    gap: 12px;
}

.twitch-chat-placeholder i {
    font-size: 2.5rem;
    opacity: 0.5;
}

/* Control & Participants Sections */
.control-section .glass-panel,
.participants-section .glass-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Footer */
.app-footer {
    padding: 12px 0;
    border-top: 1px solid var(--apple-border);
    flex-shrink: 0;
}

.footer-content {
    text-align: center;
    color: var(--apple-text-tertiary);
    font-size: 0.75rem;
}

/* Winner Message */
.winner-message {
    padding: 14px;
    background: rgba(255, 214, 10, 0.05);
    border: 1px solid rgba(255, 214, 10, 0.2);
    border-radius: 12px;
    border-left: 3px solid var(--apple-gold);
    width: 100%;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.username {
    font-weight: 600;
    color: var(--apple-gold);
    font-size: 0.9rem;
}

.timestamp {
    font-size: 0.75rem;
    color: var(--apple-text-tertiary);
}

.message-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--apple-text);
    word-break: break-word;
}

/* Modals */
.roulette-modal,
.instant-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}

.winner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1100;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Roulette Layout */
.roulette-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.roulette-wheel-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roulette-controls-section {
    width: 320px;
    background: var(--apple-surface);
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-xl);
    padding: 28px;
    flex-shrink: 0;
}

.instant-container {
    width: 100%;
    max-width: 800px;
    background: var(--apple-surface);
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.roulette-header,
.instant-header {
    text-align: center;
    margin-bottom: 24px;
}

.roulette-header h3,
.instant-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
}

.roulette-header p,
.instant-header p {
    color: var(--apple-text-secondary);
    font-size: 0.9rem;
}

/* Roulette Mode Toggle */
.roulette-mode-toggle {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 12px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.roulette-mode-btn {
    flex: 1;
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--apple-text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.roulette-mode-btn:hover {
    color: var(--apple-text);
}

.roulette-mode-btn.active {
    background: var(--apple-blue);
    color: white;
}

.elimination-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 14px;
}

.elimination-info #remainingCount {
    color: var(--apple-orange);
    font-weight: 600;
}

.auto-spin-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--apple-text-secondary);
    font-weight: 500;
    font-size: 13px;
}

.auto-spin-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--apple-blue);
    cursor: pointer;
}

/* Wheel Styles */
.wheel-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.wheel-pointer {
    position: relative;
    z-index: 10;
    color: var(--apple-gold);
    font-size: 3rem;
    filter: drop-shadow(0 0 8px rgba(255, 214, 10, 0.5));
    margin-bottom: -15px;
}

.wheel-container {
    position: relative;
    width: 520px;
    height: 520px;
}

#wheelCanvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 
        0 0 0 6px rgba(255, 255, 255, 0.1),
        0 0 40px rgba(10, 132, 255, 0.3),
        inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--apple-gold), #ffb800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #1a1a1a;
    box-shadow: 0 0 30px rgba(255, 214, 10, 0.5);
    z-index: 5;
}

.roulette-controls,
.instant-controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.spin-duration-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.spin-duration-selector label {
    color: var(--apple-text-secondary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.spin-duration-selector input {
    width: 50px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--apple-border);
    border-radius: 6px;
    color: var(--apple-text);
    font-size: 13px;
    text-align: center;
    -moz-appearance: textfield;
}

.spin-duration-selector input::-webkit-outer-spin-button,
.spin-duration-selector input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.spin-duration-selector input:focus {
    outline: none;
    border-color: var(--apple-blue);
}

.duration-unit {
    color: var(--apple-text-tertiary);
    font-size: 13px;
}

.spin-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spin-buttons button {
    width: 100%;
}

/* Winner Modal */
.winner-modal-container {
    width: 100%;
    max-width: 500px;
    background: var(--apple-surface);
    border: 1px solid var(--apple-border);
    border-radius: var(--border-radius-xl);
    padding: 32px;
    position: relative;
}

.winner-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: var(--apple-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.1s ease;
}

.winner-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--apple-text);
}

.winner-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.winner-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--apple-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.winner-modal-info {
    text-align: center;
    margin-bottom: 24px;
}

.winner-modal-avatar {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--apple-gold), #ffb800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 auto 16px;
    box-shadow: 0 0 30px rgba(255, 214, 10, 0.4);
}

.winner-modal-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--apple-gold);
    margin-bottom: 8px;
}

.winner-modal-text {
    color: var(--apple-text-secondary);
    font-size: 1rem;
}

.winner-modal-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--apple-text-secondary);
    font-size: 0.9rem;
}

.winner-wait-time {
    font-weight: 600;
    color: var(--apple-text);
}

.winner-wait-time.counting {
    color: var(--apple-orange);
}

.winner-wait-time.final {
    color: var(--apple-green);
}

/* Winner Chat */
.winner-modal-chat {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 14px;
    overflow: hidden;
}

.winner-modal-chat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid var(--apple-border);
    font-weight: 500;
    font-size: 0.9rem;
}

.winner-modal-chat-header i {
    color: var(--apple-blue);
}

.winner-modal-chat-messages {
    max-height: 200px;
    overflow-y: auto;
    padding: 12px;
}

.winner-chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    color: var(--apple-text-tertiary);
    text-align: center;
}

.winner-chat-empty i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.winner-chat-message {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 8px;
}

.winner-chat-message:last-child {
    margin-bottom: 0;
}

/* Elimination Toast */
.elimination-toast {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--apple-surface);
    border: 1px solid var(--apple-border);
    border-radius: 14px;
    padding: 16px 24px;
    z-index: 2000;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.elimination-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.elimination-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--apple-red);
    font-weight: 600;
}

.elimination-toast-content i {
    font-size: 1.2rem;
}

#eliminationToastName {
    color: var(--apple-text);
}

.elimination-toast-text {
    color: var(--apple-text-secondary);
}

/* Roulette Active Notice */
.roulette-active-notice {
    background: rgba(255, 159, 10, 0.1);
    border: 1px solid rgba(255, 159, 10, 0.3);
    border-radius: 10px;
    padding: 10px 14px;
    margin-top: 12px;
    font-size: 0.8rem;
    color: var(--apple-orange);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive */
@media (max-width: 1200px) {
    .app-main {
        grid-template-columns: 1fr 1fr;
    }
    .chat-section {
        grid-column: 1 / -1;
        order: 3;
    }
    
    .roulette-layout {
        flex-direction: column;
        gap: 24px;
    }
    
    .roulette-controls-section {
        width: 100%;
        max-width: 400px;
    }
    
    .wheel-container {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .app-container { 
        padding: 12px; 
        height: auto;
        min-height: 100vh;
        overflow: auto;
    }
    .app-main { 
        grid-template-columns: 1fr; 
        gap: 16px;
        overflow: visible;
    }
    .header-content { flex-direction: column; gap: 12px; text-align: center; }
    .logo { justify-content: center; }
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
    
    .wheel-container {
        width: 300px;
        height: 300px;
    }
    
    .wheel-center {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .wheel-pointer {
        font-size: 2.5rem;
    }
    
    .roulette-controls-section {
        padding: 20px;
    }
    
    .control-section .glass-panel,
    .chat-panel-full,
    .participants-section .glass-panel {
        height: auto;
        min-height: 350px;
    }
    
    .participants-list {
        height: 250px;
        flex: none;
    }
    
    .twitch-chat-container-full {
        height: 350px;
        flex: none;
    }
    
    .wheel-container {
        width: 280px;
        height: 280px;
    }
    
    .wheel-center {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .roulette-container,
    .instant-container {
        padding: 20px;
    }
    
    .roulette-header h3,
    .instant-header h3 {
        font-size: 1.4rem;
    }
    
    .spin-duration-selector {
        margin-right: 0;
        margin-bottom: 12px;
        width: 100%;
        justify-content: center;
    }
    
    .roulette-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .spin-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .spin-buttons button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-text h1 { font-size: 1.3rem; }
    .glass-panel { padding: 14px; }
    
    .wheel-container {
        width: 240px;
        height: 240px;
    }
    
    .winner-modal-container {
        padding: 20px;
    }
    
    .winner-modal-avatar {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .winner-modal-name {
        font-size: 1.3rem;
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
