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

/* View on desktop message - hidden until viewport too small */
.warmup-desktop-message {
    display: none;
}

@media (max-width: 1024px) {
    .warmup-desktop-message {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        width: 100%;
        padding: 2rem;
        text-align: center;
        background: #0f172a;
        z-index: 99999;
        font-family: 'Roboto', sans-serif;
    }

    .warmup-desktop-message h2 {
        font-size: 2rem;
        font-weight: 700;
        color: #ffffff;
        margin-bottom: 1rem;
    }

    .warmup-desktop-message p {
        font-size: 1.125rem;
        color: #cbd5e1;
        line-height: 1.6;
    }

    body .option-selector-overlay,
    body .container {
        display: none !important;
    }
}

body {
    background: #0f172a;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    padding: 0;
    margin: 0;
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.container {
    margin: 0 auto;
    position: relative;
    height: 100vh;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    max-width: none;
}

h1 {
    text-align: center;
    color: #ffffff;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Option Selector Modal */
.option-selector-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow: visible;
    box-sizing: border-box;
}

.option-selector-overlay.hidden {
    display: none;
}

.option-selector {
    text-align: center;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-radius: 1.5rem;
    border: 2px solid #334155;
    max-width: 550px;
    width: 90%;
    max-height: calc(100vh - 2rem);
    overflow: visible;
    box-sizing: border-box;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    margin: auto;
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.modal-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.modal-logo img {
    height: 32px;
    width: auto;
}

.modal-logo h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

.modal-logo .boxtext {
    color: #ffffff;
    font-weight: 300;
}

.modal-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.option-selector h3 {
    color: #ffffff;
    margin-bottom: 1.75rem;
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.025em;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-color: #3b82f6;
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.form-select {
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    background-color: rgba(15, 23, 42, 0.7);
    border: 2px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px;
}

.form-select:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background-color: rgba(30, 41, 59, 0.8);
}

.form-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.form-select option {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 2rem 1.25rem;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    border-radius: 1rem;
    margin: 0.25rem 0;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
}

.form-select option:hover {
    background-color: rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.form-select option:checked,
.form-select option:focus {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 600;
}

.form-select option:disabled {
    color: #64748b;
    font-style: italic;
}

.custom-select {
    position: relative;
    flex: 1;
}

.custom-select-trigger {
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    background-color: rgba(15, 23, 42, 0.7);
    border: 2px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.custom-select-trigger:hover {
    border-color: rgba(59, 130, 246, 0.5);
    background-color: rgba(30, 41, 59, 0.8);
}

.custom-select-trigger svg {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select.open .custom-select-trigger {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.custom-select.open .custom-select-trigger svg {
    transform: rotate(180deg);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background-color: #1e293b;
    border: 2px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    overflow: hidden;
    z-index: 3000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

.custom-select.open .custom-select-options {
    display: block;
}

.custom-option {
    padding: 0.875rem 1.25rem;
    color: #e2e8f0;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: rgba(59, 130, 246, 0.4);
    color: #ffffff;
}

.custom-option.selected {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 600;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    text-align: left;
}

.option-item {
    padding: 1.25rem 1.5rem;
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: 0.75rem;
    border: 2px solid rgba(51, 65, 85, 0.5);
    cursor: pointer;
    transition: all 0.2s ease;
    color: #e2e8f0;
    font-size: 1.0625rem;
    user-select: none;
    text-align: center;
}

.option-item:hover {
    background-color: rgba(30, 41, 59, 0.7);
    border-color: rgba(59, 130, 246, 0.5);
}

.option-item.selected {
    background-color: rgba(59, 130, 246, 0.3);
    border-color: #3b82f6;
    border-width: 3px;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.seconds-selector {
    margin: 0;
    text-align: center;
}

.seconds-selector label {
    display: block;
    color: #e2e8f0;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.seconds-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.seconds-control input[type="range"] {
    flex: 1;
    max-width: 300px;
    height: 8px;
    background: rgba(51, 65, 85, 0.5);
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.seconds-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
}

.seconds-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.seconds-value {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
}

.start-game-btn {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    border: none;
    color: #ffffff;
    cursor: pointer;
    background: #3b82f6;
    width: 100%;
    margin-top: 0.5rem;
}

.start-game-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.3);
}

.start-game-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

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

.start-buttons-container {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin-top: 0;
}

.start-buttons-container .start-game-btn {
    margin-top: 0;
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    flex: 1;
    transition: all 0.2s ease;
    border: none;
    color: #ffffff;
    cursor: pointer;
}

.start-buttons-container .start-game-btn:first-child {
    background: #3b82f6;
}

.start-buttons-container .start-game-btn:last-child {
    background: #60a5fa;
}

.start-buttons-container .start-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.3);
}

.start-buttons-container .start-game-btn:first-child:hover {
    background: #2563eb;
}

.start-buttons-container .start-game-btn:last-child:hover {
    background: #3b82f6;
}

.start-buttons-container .start-game-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.start-buttons-container .start-game-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.start-buttons-container .start-game-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.button-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

/* Game Content */
.game-content {
    display: none;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.game-content.show {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
}

.slide-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 2rem 2rem 2rem ;
    position: relative;
    min-height: 0;
    overflow: visible;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    flex-shrink: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Logo white (like other warm ups); text styled like modal-logo */
.header-left img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.header-left a,
.header-left .logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    margin: 0;
}

.header-left h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
}

.header-left .boxtext,
.header-left #boxtext {
    color: #ffffff;
    font-weight: 300;
}

.slide-number {
    color: #94a3b8;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    width: 100%;
    margin: 1rem 0 0 0 ;

}

.slide-content {
    text-align: center;
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 0;

}

.start-number {
    font-size: clamp(11rem, 18vmin, 15rem);
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 2rem;
    line-height: 1;
}

.instruction-box {
    width: 1800px;
    max-width: 75%;
    height: 600px;
    background-color: #ffffff;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    padding: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
}

.instruction {
    font-size: clamp(11rem, 18vmin, 16rem);
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    padding: 1rem;
    box-sizing: border-box;
    text-align: center;
}

.instruction-label {
    font-size: clamp(1.5rem, 2.5vmin, 2.5rem);
    font-weight: 600;
    color: #111827;
    text-align: center;
    margin-bottom: 1rem;
}

.start-number-display {
    font-size: clamp(9rem, 15vmin, 12rem);
    font-weight: 700;
    color: #3b82f6;
    text-align: center;
    line-height: 1;
}

.question-mark {
    font-size: clamp(11rem, 18vmin, 15rem);
    font-weight: 700;
    color: #3b82f6;
    margin: 2rem 0;
    line-height: 1;
}

.navigation-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: auto;
}

.nav-btn {
    padding: 2rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    border: none;
    background: rgba(59, 130, 246, 0.2);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid rgba(59, 130, 246, 0.4);
}

.nav-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.4);
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-btn.arrow {
    width: 120px;
    height: 30px;
    padding: 2rem;
    font-size: 1.5rem;
    font-family: 'Roboto', sans-serif;
    border-radius: 0.75rem;
    background: #3b82f6;
    border: none;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.nav-btn.arrow:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.nav-btn.arrow:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.game-controls {
    display: flex;
    gap: 1rem;
}

.control-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    border-radius: 0.5rem;
    border: none;
    background: rgba(239, 68, 68, 0.2);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid rgba(239, 68, 68, 0.4);
}

.control-btn:hover {
    background: rgba(239, 68, 68, 0.4);
    border-color: #ef4444;
    transform: translateY(-2px);
}

.control-btn.new-game {
    background: #ffb12b;
    color: #111827;
    border: none;
    padding: 1.125rem 2.25rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.control-btn.new-game:hover {
    background: #fda948;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.auto-progress-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 600;
    display: none;
}

.auto-progress-indicator.active {
    display: block;
}

.progress-bar-wrapper {
    width: 1800px;
    max-width: 75%;
    margin: 0 auto 2rem auto;
    min-height: 50px;
    display: flex;
    align-items: center;
    gap: 1rem;
    visibility: hidden;
}

.progress-bar-wrapper.active {
    visibility: visible;
}

.progress-bar-container {
    flex: 1;
    height: 8px;
    background-color: rgba(51, 65, 85, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-container.active {
    visibility: visible;
}

.progress-controls {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.progress-btn {
    width: 50px;
    height: 50px;
    background-color: transparent;
    border:none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.progress-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);

    background-color: rgba(255, 255, 255, 0.1);
}

.progress-btn:active {
    transform: scale(0.98);
}

.progress-btn svg {
    width: 24px;
    height: 24px;
}

.progress-btn svg rect,
.progress-btn svg path {
    fill: #ffffff;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 4px;
    transition: width 0.1s linear;
}

/* Responsive: clamp() and vmin above handle scaling; keep slide-content flexible so text fits */
.slide-content {
    overflow: hidden;
}

/* Custom scrollbar */
.option-selector::-webkit-scrollbar {
    width: 8px;
}

.option-selector::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 4px;
}

.option-selector::-webkit-scrollbar-thumb {
    background: rgba(51, 65, 85, 0.8);
    border-radius: 4px;
}

.option-selector::-webkit-scrollbar-thumb:hover {
    background: rgba(71, 85, 105, 0.9);
}