/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f5f5;
}

.screen {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hidden {
    display: none !important;
}

/* Setup Screen Styles */
#setup-screen {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0C3066 0%, #1a4a8f 100%);
}

.setup-container {
    background: white;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 480px;
    width: 90%;
}

.setup-container h1 {
    color: #0C3066;
    font-size: 28px;
    margin-bottom: 8px;
}

.setup-container p {
    color: #666;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group select,
.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: #007AFF;
}

.launch-button {
    width: 100%;
    padding: 16px;
    background: #007AFF;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.launch-button:hover {
    background: #0056b3;
}

.launch-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.help-text {
    margin-top: 16px;
    text-align: center;
    color: #999;
}

/* Display Screen Styles */
#display-screen {
    background: white;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#svg-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Rotate 90 degrees clockwise for TV portrait orientation */
    transform: rotate(90deg);
    transform-origin: center center;
}

#svg-container.rotate-anticlockwise {
    transform: rotate(-90deg);
}

#svg-container svg {
    /* Swap width/height constraints for rotated view */
    max-width: 100vh;
    max-height: 100vw;
    width: auto;
    height: auto;
}

/* Slot styling is now handled directly in the SVG */

/* Status bar for debugging/info */
#status-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 1000;
    pointer-events: none;
}

#status-bar span {
    margin-right: 16px;
}

/* Hidden reset trigger */
#reset-trigger {
    position: fixed;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    cursor: pointer;
    z-index: 1001;
}

/* SVG handles all responsive scaling automatically */
