/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
  --svh: 100svh;  /* stable viewport (URL bar shown) */
  --dvh: 100dvh;  /* dynamic viewport (responds to URL bar) */
}

html {
    margin: 0;
	height: 100%;
	overflow-x: hidden;
	overscroll-behavior: none;   /* blocks rubber-band in all directions */
	touch-action: pan-y;         /* only allow vertical gestures */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #581c87, #1e3a8a, #312e81);
    min-height: var(--dvh);
    color: white;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
	margin: 0;
	height: 100%;
	overscroll-behavior: none;   /* blocks rubber-band in all directions */
	touch-action: pan-y;         /* only allow vertical gestures */
}

@supports (-webkit-touch-callout: none) {
  body { min-height: -webkit-fill-available; }
}

/* Accessibility Utilities */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 9999;
    text-decoration: none;
    border-radius: 4px;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 6px;
}

/* Focus Management */
*:focus {
    outline: 2px solid #f472b6;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #f472b6;
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ffffff;
        --secondary-color: #000000;
        --accent-color: #ffff00;
    }
    
    .primary-btn, .secondary-btn, .choice-btn {
        border: 2px solid #ffffff;
    }
    
    .meter-fill {
        background: #ffff00 !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .mic-circle.recording {
        animation: none;
    }
    
    .speaking-dot {
        animation: none;
    }
    
    .particle {
        animation: none;
        opacity: 0.3;
    }
}

/* Screen Management */
.screen {
  position: fixed;
  inset: 0;               /* replaces top/left/width */
  min-height: var(--dvh);
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: transform .3s ease-in-out, opacity .3s ease-in-out, visibility .3s ease-in-out;
  transform: translateX(100%);
  overflow-x: hidden;
  overflow-y: auto;       /* each screen scrolls internally */
  max-width: 100vw;
  contain: layout paint;  /* prevents off-screen paint from creating “extra canvas” */
  backface-visibility: hidden;
  will-change: transform;
}

.screen:not(.active){ pointer-events: none; }  /* don’t intercept gestures off-canvas */

.screen.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.screen.sliding-out {
    transform: translateX(-100%);
}

.container {
    padding: 24px;
    min-height: var(--svh); 
    display: flex;
    flex-direction: column;
	overflow-x: hidden;
	max-width: 100vw;
}

/* Typography */
h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 16px;
}

.main-title {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #f472b6, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.tagline {
    font-size: 1.25rem;
    color: #d1d5db;
    font-weight: 300;
}

/* Landing Screen */
#landing-screen {
    display: flex;
    align-items: center;
    justify-content: center;
}

#landing-screen .container {
    justify-content: center;
    text-align: center;
    max-width: 320px;
}

.header-section {
    margin-bottom: 48px;
}

.site-logo {
    max-width: 280px;
    width: 100%;
    height: auto;
    margin-bottom: 16px;
}

@media (max-width: 480px) {
    .site-logo {
        max-width: 220px;
    }
}

.description {
    margin-bottom: 48px;
}

.description p {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.5;
}

.disclaimer {
    color: #d1d5db;
    font-size: 0.75rem;
    margin-top: 24px;
}

/* Buttons */
.primary-btn {
    width: 100%;
    background: linear-gradient(135deg, #ec4899, #06b6d4);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.primary-btn:hover {
    transform: scale(1.05);
}

.primary-btn:active {
    transform: scale(0.95);
}

.secondary-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    transition: all 0.3s ease;
}

.secondary-btn:hover {
    transform: scale(1.05);
}

.secondary-btn:active {
    transform: scale(0.95);
}

/* Header with Back Button */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    position: relative;
}

.back-btn {
    background: none;
    border: none;
    color: white;
    padding: 8px;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.header h2 {
    font-size: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

/* Choice Screen */
.choice-buttons {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
    max-width: 320px;
    margin: 0 auto;
}

.choice-btn {
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: white;
    padding: 32px 24px;
    border: none;
    border-radius: 24px;
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.choice-btn.voice-btn {
    background: linear-gradient(135deg, #f97316, #dc2626);
}

.choice-btn:hover {
    transform: scale(1.05);
}

.choice-btn:active {
    transform: scale(0.95);
}

.choice-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.choice-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.choice-subtitle {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Character Counter */
.char-counter {
    background: #374151;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    min-width: 60px;
    text-align: center;
}

.char-counter.over-limit {
    background: #dc2626;
}

/* Text Rant Screen */
.text-rant-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#rant-textarea {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 24px;
    color: white;
    font-size: 1.125rem;
    line-height: 1.6;
    resize: none;
    outline: none;
    transition: all 0.3s ease;
    min-height: 300px;
}

#rant-textarea:focus {
    border-color: #f472b6;
    box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.3);
}

#rant-textarea::placeholder {
    color: #9ca3af;
}

#rant-textarea[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
}

#rant-textarea:focus[aria-invalid="true"] {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.3);
}

.feedback-message {
    margin: 8px 0;
    padding: 0 8px;
    font-size: 0.875rem;
    min-height: 20px;
}

.feedback-message.error {
    color: #fca5a5;
}

/* Text-to-Speech Controls */
.tts-controls {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 24px;
    margin: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.tts-controls.hidden {
    display: none;
}

.tts-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.tts-header h3 {
    font-size: 1.125rem;
    margin: 0;
    background: linear-gradient(135deg, #f472b6, #8b5cf6);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tts-header h3::before {
    content: "🎭";
    font-size: 1.2em;
}

.voice-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
    min-width: 120px;
}

.voice-select option {
    background: #1f2937;
    color: white;
}

.tts-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.speak-btn {
    flex: 1;
    background: linear-gradient(135deg, #8b5cf6, #a855f7) !important;
    color: white !important;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.speak-btn:hover:not(:disabled) {
    transform: scale(1.02);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.speak-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.speak-btn:disabled {
    background: #6b7280 !important;
    color: #9ca3af !important;
    cursor: not-allowed;
    transform: none;
}

.speak-btn.speaking {
    background: linear-gradient(135deg, #10b981, #14b8a6) !important;
    animation: pulse-gentle 2s infinite;
}

.tts-controls:not(.hidden) {
    display: block !important;
}

.stop-speech-btn {
    background: #dc2626 !important;
    color: white !important;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.stop-speech-btn:hover {
    background: #b91c1c !important;
    transform: scale(1.05);
}

.stop-speech-btn:active {
    transform: scale(0.95);
}

/* Enhanced Button Focus Styles */
.primary-btn:focus,
.secondary-btn:focus,
.choice-btn:focus,
.submit-btn:focus,
.record-btn:focus,
.play-btn:focus,
.clear-btn:focus,
.speak-btn:focus,
.stop-speech-btn:focus {
    outline: 3px solid #f472b6;
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(244, 114, 182, 0.3);
}

.back-btn:focus {
    outline: 2px solid #f472b6;
    outline-offset: 2px;
    background: rgba(244, 114, 182, 0.2);
}

@keyframes pulse-gentle {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
}

/*.stop-speech-btn {
    background: #dc2626;
    color: white;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stop-speech-btn:hover {
    background: #b91c1c;
    transform: scale(1.05);
}

.stop-speech-btn:active {
    transform: scale(0.95);
}*/

.rant-settings {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 20px;
    margin-top: 4px;
}

.setting-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.setting-group label {
    font-size: 0.9rem;
    color: #e5e7eb;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.setting-group label::before {
    content: "🎚️";
    font-size: 1.1em;
}

.rant-style-select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    color: white;
    font-size: 0.875rem;
    outline: none;
    cursor: pointer;
    min-width: 100px;
}

.rant-style-select option {
    background: #1f2937;
    color: white;
}

/* Speaking indicator */
.speaking-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #10b981;
    font-size: 0.875rem;
    font-weight: 600;
}

.speaking-dot {
    width: 4px;
    height: 4px;
    background: #10b981;
    border-radius: 50%;
    animation: speaking-wave 1.4s infinite ease-in-out;
}

.speaking-dot:nth-child(2) {
    animation-delay: -1.2s;
}

.speaking-dot:nth-child(3) {
    animation-delay: -1.0s;
}

.speaking-dot:nth-child(4) {
    animation-delay: -0.8s;
}

@keyframes speaking-wave {
    0%, 40%, 100% {
        transform: scaleY(1);
        opacity: 0.5;
    }
    20% {
        transform: scaleY(2);
        opacity: 1;
    }
}

.submit-btn {
    margin-top: 24px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #ec4899, #06b6d4);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.submit-btn:disabled {
    background: #6b7280;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:not(:disabled):hover {
    transform: scale(1.05);
}

.submit-btn:not(:disabled):active {
    transform: scale(0.95);
}

.btn-icon {
    width: 20px;
    height: 20px;
}

/* Recording Timer */
.recording-timer {
    background: #374151;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
}

/* Voice Rant Screen */
.voice-rant-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 320px;
    margin: 0 auto;
}

.mic-circle {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.mic-circle.recording {
    background: #dc2626;
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.voice-status {
    text-align: center;
    margin-bottom: 32px;
    color: #d1d5db;
}

.voice-controls {
    width: 100%;
}

.record-btn {
    width: 100%;
    background: linear-gradient(135deg, #f97316, #dc2626);
    color: white;
    padding: 16px 32px;
    border: none;
    border-radius: 16px;
    font-size: 1.125rem;
    font-weight: 600;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.record-btn.recording {
    background: #dc2626;
}

.record-btn:hover:not(.recording) {
    transform: scale(1.05);
}

.record-btn:active {
    transform: scale(0.95);
}

.playback-controls {
    width: 100%;
}

.playback-controls.hidden {
    display: none;
}

.control-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.play-btn {
    flex: 1;
    background: linear-gradient(135deg, #10b981, #14b8a6);
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px; /* Prevent height changes */
}

.play-btn:hover {
    transform: scale(1.05);
}

.play-btn:active {
    transform: scale(0.95);
}

.play-btn svg {
    transition: all 0.2s ease; /* Smooth icon transitions */
}

.clear-btn {
    background: #6b7280;
    color: white;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-btn:hover {
    transform: scale(1.05);
}

.clear-btn:active {
    transform: scale(0.95);
}

/* Release Screen */
#release-screen {
    position: relative;
    overflow: hidden;
}

.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.release-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 320px;
    margin: 0 auto;
    z-index: 10;
    position: relative;
}

.release-animation {
    margin-bottom: 32px;
    opacity: 0;
    transform: scale(0.5);
    transition: all 1s ease;
}

.release-animation.animate {
    opacity: 1;
    transform: scale(1);
}

.release-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.release-title {
    font-size: 2rem;
    background: linear-gradient(135deg, #f472b6, #06b6d4);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
}

.release-subtitle {
    color: #d1d5db;
    margin-bottom: 0;
}

.stress-meter {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    width: 100%;
    opacity: 0;
    transform: scale(0.5);
    transition: all 1s ease 0.5s;
}

.stress-meter.animate {
    opacity: 1;
    transform: scale(1);
}

.stress-meter h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.meter-bar {
    width: 100%;
    background: #374151;
    border-radius: 20px;
    height: 16px;
    margin-bottom: 8px;
    overflow: hidden;
	display: block !important;
    position: relative;
}

.meter-bar[role="progressbar"] {
    /* Ensure progressbar role doesn't hide the element */
    display: block !important;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(135deg, #10b981, #06b6d4);
    border-radius: 20px;
    width: 0%;
    transition: width 2s ease-out;
	display: block !important;
}

.relief-percentage {
    font-size: 1.5rem;
    font-weight: bold;
    color: #10b981;
    margin: 0;
}

.release-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    opacity: 0;
    transform: translateY(32px);
    transition: all 1s ease 1s;
}

.release-actions.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Particle Animation */
.particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0.7;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
}


/* Custom Dropdown Fixes */
.custom-select-wrapper {
    position: relative;
    width: 100%;
    min-width: 150px;
}

.custom-select-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 40px 12px 16px;
    color: white;
    font-size: 0.875rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    outline: none;
    text-align: left;
}

.custom-select-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.custom-select-btn.active {
    border-color: #f472b6;
    box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.3);
}

.custom-select-btn[aria-expanded="true"] {
    border-color: #f472b6;
    box-shadow: 0 0 0 2px rgba(244, 114, 182, 0.3);
}

.select-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.custom-select-btn.active .select-arrow {
    transform: rotate(180deg);
}

.custom-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    margin-top: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-content {
    padding: 8px 0;
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    font-size: 0.875rem;
    color: #e5e7eb;
}

.dropdown-option:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-option.selected {
    background: rgba(244, 114, 182, 0.2);
    color: #f472b6;
    font-weight: 600;
}

.dropdown-option.keyboard-focus {
    background: rgba(244, 114, 182, 0.4) !important;
    outline: 2px solid #f472b6 !important;
    outline-offset: -2px !important;
}

.dropdown-option:focus {
    background: rgba(244, 114, 182, 0.3) !important;
    outline: 2px solid #f472b6 !important;
    outline-offset: -2px !important;
}

.dropdown-option[aria-selected="true"] {
    background: rgba(244, 114, 182, 0.2);
    color: #f472b6;
    font-weight: 600;
}

.dropdown-option[aria-selected="true"]:focus {
    background: rgba(244, 114, 182, 0.4);
}

.dropdown-group-label {
    padding: 8px 16px 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 4px;
	pointer-events: none;
	outline: none !important;
}

.dropdown-group-label:not(:first-child) {
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.dropdown-group-label:focus {
    outline: none !important;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 1;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .main-title {
        font-size: 2rem;
    }
    
    .choice-btn {
        padding: 24px 16px;
    }
    
    .choice-icon {
        font-size: 2rem;
    }
    
    #rant-textarea {
        padding: 16px;
        font-size: 1rem;
        min-height: 250px;
    }
    
    .mic-circle {
        width: 100px;
        height: 100px;
    }
    
    .release-icon {
        font-size: 3rem;
    }
    
    .release-title {
        font-size: 1.5rem;
    }
    
    /* TTS Controls on mobile */
    .tts-controls {
        padding: 20px 16px;
        border-radius: 16px;
    }
    
    .tts-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .tts-header h3 {
        text-align: center;
        margin-bottom: 4px;
        font-size: 1rem;
    }
	
    .setting-group {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
    }
    
    .setting-group label {
        text-align: center;
        font-size: 0.85rem;
        justify-content: center;
    }
    
    .custom-select-btn.style-select {
        min-width: 100%;
        justify-content: center;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .choice-buttons {
        max-width: 400px;
    }
    
    .voice-rant-content {
        max-width: 400px;
    }
    
    .release-content {
        max-width: 400px;
    }
}