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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #1a1a1a;
    color: #fff;
    min-height: 100vh;
}

#app {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.screen {
    text-align: center;
    padding: 2rem;
}

.hidden {
    display: none !important;
}

.instructions {
    margin-top: 3rem;
    max-width: 400px;
    text-align: left;
    color: #888;
}

.instructions h2 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

.instructions ol {
    padding-left: 1.5rem;
    line-height: 1.8;
}

.instructions li {
    margin-bottom: 0.5rem;
}

.instructions strong {
    color: #fff;
}

.instructions .tip {
    margin-top: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
    font-style: italic;
}

#landing {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#landing > * {
    width: 100%;
}

#landing .tagline {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: 2rem;
}

.checkbox-label {
    display: block;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: #888;
    cursor: pointer;
}

.checkbox-label input {
    margin-right: 0.5rem;
    transform: scale(1.2);
    cursor: pointer;
}

.primary-btn {
    font-size: 1.5rem;
    padding: 1rem 3rem;
    background: #fff;
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.primary-btn:hover {
    transform: scale(1.05);
    background: #eee;
}

#presentation {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
}

.slide-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    width: 100%;
    height: 100%;
}

.slide-container img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.timer {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    background: #000;
    border: 3px solid #fff;
    padding: 0.5rem 1rem;
    font-size: 2rem;
    font-weight: bold;
    font-family: monospace;
    min-width: 120px;
    text-align: center;
    transition: border-color 0.3s, color 0.3s;
}

.timer.white {
    border-color: #fff;
    color: #fff;
}

.timer.green {
    border-color: #4ade80;
    color: #4ade80;
}

.timer.yellow {
    border-color: #fbbf24;
    color: #fbbf24;
}

.timer.red {
    border-color: #ef4444;
    color: #ef4444;
    animation: blink 0.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.progress {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #888;
}

.controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s;
}

#presentation:hover .controls {
    opacity: 1;
}

.control-btn {
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
}

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

#finished {
    position: fixed;
    inset: 0;
    background: #000;
}

#finished .slide-container {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#finished .slide-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.times-up-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.times-up-overlay h2 {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #ef4444;
}

#error h2 {
    color: #ef4444;
    margin-bottom: 1rem;
}

#error p {
    color: #888;
}