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

body {
    font-family: 'Courier New', monospace;
    background: #fae0e0;
    color: #fff;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    position: relative;
}

.version-badge {
    position: fixed;
    top: 2px;
    right: 2px;
    background: #ff1493;
    border: 2px solid #fff;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px #ff1493;
    box-shadow: 0 0 0 3px #ff1493, 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.screen {
    display: none;
    width: 100%;
    max-width: 900px;
    animation: fadeIn 0.3s ease-in;
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.container {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #a0447d 0%, #85406f 100%);
    border: 4px solid #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 0 0 4px #ff1493, 0 8px 20px rgba(0, 0, 0, 0.4);
    max-height: 90vh;
    overflow-y: auto;
}

/* Splash Screen */
.splash-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-height: 400px;
}

.age-warning-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #ff1493;
    border: 6px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px #ff1493, 0 8px 20px rgba(0, 0, 0, 0.4);
}

.age-warning-text {
    max-width: 600px;
    text-align: center;
}

.age-warning-text p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Setup Steps */
.setup-step {
    display: none;
}

.setup-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.step-indicators {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 3px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
    transition: all 0.3s;
}

.step-indicator.active {
    background: #ff1493;
    box-shadow: 0 0 0 3px #ff1493;
    transform: scale(1.1);
}

.step-navigation {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 20px;
}

.step-navigation .btn {
    flex: 1;
}

.title {
    text-align: left;
    font-size: 32px;
    color: #fff;
    text-shadow: 0 0 10px #ff1493, 0 0 20px #ff1493, 4px 4px 0 #ff1493;
    margin-bottom: 40px;
}

.step-title {
    text-align: left;
    font-size: 26px;
    color: #fff;
    text-shadow: 0 0 8px #ff1493;
    margin-bottom: 25px;
    font-weight: bold;
}

.form-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.section-title {
    font-size: 18px !important;
    text-align: left;
    text-shadow: 0 0 5px #ff1493;
}

.input-field {
    padding: 14px 18px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    background: #ff1493;
    color: #fff;
    border: 3px solid #fff;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s;
}

.input-field:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
    transform: scale(1.02);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.slider-container span {
    font-size: 18px;
    min-width: 30px;
    text-align: center;
}

.slider {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #ff1493;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: #ff1493;
    border: 3px solid #fff;
    border-radius: 50%;
    cursor: pointer;
}

#duration-value {
    color: #fff;
    font-size: 26px;
    font-weight: bold;
    text-shadow: 2px 2px 12px #ff1493;
}

.fetishes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom:0px;
}

.fetish-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 2px;
    border-radius: 6px;
    transition: background 0.2s;
}

.fetish-checkbox:hover {
    background: rgba(255, 255, 255, 0.1);
}

.fetish-checkbox input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #ff1493;
}

.fetish-checkbox label {
    font-size: 16px;
    cursor: pointer;
}

.music-grid {
    margin-bottom: 20px;
    margin-top: 20px;
}

.music-section .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.music-section .checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #ff1493;
}

.music-controls {
    display: block;
}

.music-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.music-grid .form-group {
    gap: 8px;
}

.music-grid .form-group label {
    font-size: 14px;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.button-row-thirds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.button-row-thirds .btn {
    width: 100%;
}

.btn {
    padding: 14px 30px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: bold;
    border: 3px solid #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: #ff1493;
    color: #fff;
}

.btn-secondary {
    background: #ff1493;
    color: #fff;
}

.btn-secondary.active {
    background: #00ff00;
    color: #000;
}

.btn-danger {
    background: #ff0000;
    color: #fff;
}

.btn-large {
    font-size: 32px;
    padding: 20px 60px;
}

.btn-start-final {
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    color: #000;
    font-weight: bold;
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px #00ff00, 0 0 20px rgba(0, 255, 0, 0.8), 0 4px 0 rgba(0, 0, 0, 0.3);
    animation: startGlow 2s ease-in-out infinite;
}

.btn-start-final:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 3px #00ff00, 0 0 30px rgba(0, 255, 0, 1), 0 0 50px rgba(0, 255, 0, 0.5), 0 6px 0 rgba(0, 0, 0, 0.3);
}

.btn-start-final:active {
    transform: translateY(0);
    box-shadow: 0 0 0 3px #00ff00, 0 0 15px rgba(0, 255, 0, 0.8), 0 2px 0 rgba(0, 0, 0, 0.3);
}

@keyframes startGlow {
    0%, 100% {
        box-shadow: 0 0 0 3px #00ff00, 0 0 20px rgba(0, 255, 0, 0.8), 0 4px 0 rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 3px #00ff00, 0 0 35px rgba(0, 255, 0, 1), 0 0 55px rgba(0, 255, 0, 0.6), 0 4px 0 rgba(0, 0, 0, 0.3);
    }
}

/* Session Screen */
.session-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #ff1493;
}

.progress-container {
    width: 100%;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border: 3px solid #fff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff1493, #ff6ec7);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-bar.blinking {
    animation: blink 1s ease-in-out infinite;
}

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

.session-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: bold;
}

.toy-status-inline {
    display: flex;
    gap: 12px;
    font-size: 13px;
    opacity: 0.8;
    font-family: 'Courier New', monospace;
}

.toy-status-inline span {
    padding: 3px 8px;
    background: rgba(255, 20, 147, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 6px;
}

.toy-status-inline span svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.toy-status {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 20px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
}

.toy-status span {
    padding: 4px 12px;
    background: rgba(255, 20, 147, 0.3);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.toy-status span svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.session-controls {
    margin-bottom: 25px;
}

.session-controls-row {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 0px;
}

.volume-controls-compact {
    display: flex;
    gap: 15px;
    flex: 1;
    align-items: center;
}

.volume-control-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.volume-control-compact label {
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.8);
    white-space: nowrap;
    min-width: 60px;
}

.volume-control-compact input[type="range"] {
    flex: 1;
}

.button-row-compact {
    display: flex;
    gap: 10px;
}

.button-row-compact .btn {
    padding: 10px 18px;
    font-size: 14px;
}

.volume-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.volume-control {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.volume-control label {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    text-shadow: 0 0 5px rgba(255, 20, 147, 0.8);
}

.volume-control input[type="range"] {
    width: 100%;
}

.chat-log {
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid #fff;
    border-radius: 8px;
    padding: 15px;
    min-height: 300px;
    max-height: 350px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
}

.chat-message {
    padding: 15px;
    background: rgba(255, 20, 147, 0.2);
    border-left: 4px solid #ff1493;
    border-radius: 6px;
    animation: slideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chat-message.old {
    padding: 10px 15px;
    font-size: 16px;
    opacity: 0.7;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.chat-message.newest {
    font-size: 24px;
    border-left-width: 6px;
    background: rgba(255, 20, 147, 0.4);
}

.chat-message.recent {
    font-size: 20px;
    opacity: 0.9;
}

.chat-message.old {
    font-size: 16px;
    opacity: 0.7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: linear-gradient(135deg, #ff6ec7 0%, #ff85d8 100%);
    border: 4px solid #fff;
    border-radius: 12px;
    padding: 40px;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 0 0 4px #ff1493, 0 8px 20px rgba(0, 0, 0, 0.6);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-title {
    text-align: center;
    font-size: 32px;
    color: #fff;
    text-shadow: 0 0 10px #ff1493;
    margin-bottom: 30px;
}

.modal-info {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.6;
}

.modal-info code {
    background: rgba(255, 20, 147, 0.3);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

.modal-info p {
    margin: 8px 0;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-subtitle {
    font-size: 22px;
    color: #fff;
    text-shadow: 0 0 8px #ff1493;
    margin-bottom: 5px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: linear-gradient(135deg, #ff1493 0%, #ff6ec7 100%);
    color: #fff;
    padding: 16px 24px;
    border-radius: 8px;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px #ff1493;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    max-width: 400px;
    min-width: 300px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease-out;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast.hiding {
    opacity: 0;
    transform: translateX(100px);
}

.toast.error {
    background: linear-gradient(135deg, #ff0000 0%, #ff4444 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px #cc0000;
}

.toast.success {
    background: linear-gradient(135deg, #00cc00 0%, #00ff44 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px #00aa00;
}

.toast.warning {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px #f57c00;
}

.toast.info {
    background: linear-gradient(135deg, #0099ff 0%, #00ccff 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 2px #0077cc;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .title {
        font-size: 36px;
    }
    
    .container {
        padding: 20px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    #toast-container {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .toast {
        min-width: unset;
        width: 100%;
    }
}
