/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ocean-deep: #1a4d6f;
    --ocean-mid: #2d6a8f;
    --ocean-light: #4a8fb9;
    --ocean-foam: #a8d5e2;
    --sand: #f5deb3;
    --paper: #fef9e7;
    --text-dark: #2c3e50;
    --text-light: #ecf0f1;
    --accent: #e74c3c;
    --success: #27ae60;
    --warning: #f39c12;
    --danger: #e74c3c;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(0, 0, 0, 0.1);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: linear-gradient(to bottom, #87CEEB 0%, var(--ocean-light) 50%, var(--ocean-deep) 100%);
}

/* ===== SCREENS SYSTEM ===== */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.screen.active {
    display: flex;
    opacity: 1;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
}

.title-main {
    font-size: 4rem;
    color: var(--text-light);
    text-shadow: 3px 3px 6px var(--shadow);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--ocean-foam);
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px var(--shadow);
}

.btn-start {
    padding: 1.5rem 3rem;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px var(--shadow);
    font-weight: 600;
}

.btn-start:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px var(--shadow);
}

/* ===== WAVE ANIMATIONS ===== */
.wave-animation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%234a8fb9" opacity="0.3"/></svg>') repeat-x;
    animation: wave-movement 10s linear infinite;
}

.wave:nth-child(2) { animation-duration: 15s; opacity: 0.5; }
.wave:nth-child(3) { animation-duration: 20s; opacity: 0.3; }

@keyframes wave-movement {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* ===== OCEAN SCREEN ===== */
#ocean-screen {
    position: relative;
    background: linear-gradient(to bottom, #87CEEB 0%, var(--ocean-light) 30%, var(--ocean-mid) 70%, var(--ocean-deep) 100%);
}

#ocean-canvas {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

/* ===== FLOATING BOTTLES CONTAINER ===== */
#floating-bottles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.floating-bottle {
    position: absolute;
    width: 45px;
    height: 60px;
    cursor: pointer;
    pointer-events: auto;
    transition: var(--transition);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
    animation: bottle-float 6s ease-in-out infinite;
}

.floating-bottle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.floating-bottle:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 15px rgba(255, 255, 255, 0.6));
    animation: bottle-glow 0.5s ease-in-out;
}

@keyframes bottle-float {
    0%, 100% { transform: translateY(0) rotate(-3deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(-5px) rotate(-1deg); }
    75% { transform: translateY(-20px) rotate(3deg); }
}

@keyframes bottle-glow {
    0%, 100% { filter: drop-shadow(0 4px 15px rgba(255, 255, 255, 0.6)); }
    50% { filter: drop-shadow(0 6px 25px rgba(255, 255, 255, 0.9)); }
}

/* Diferentes patrones de movimiento para las botellas */
.floating-bottle.drift-pattern-1 { animation: bottle-drift-1 12s ease-in-out infinite; }
.floating-bottle.drift-pattern-2 { animation: bottle-drift-2 15s ease-in-out infinite; }
.floating-bottle.drift-pattern-3 { animation: bottle-drift-3 18s ease-in-out infinite; }

@keyframes bottle-drift-1 {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    25% { transform: translateX(20px) translateY(-10px) rotate(5deg); }
    50% { transform: translateX(-10px) translateY(-20px) rotate(-3deg); }
    75% { transform: translateX(15px) translateY(-5px) rotate(2deg); }
    100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

@keyframes bottle-drift-2 {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    33% { transform: translateX(-15px) translateY(-15px) rotate(-4deg); }
    66% { transform: translateX(25px) translateY(-8px) rotate(6deg); }
    100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

@keyframes bottle-drift-3 {
    0% { transform: translateX(0) translateY(0) rotate(0deg); }
    20% { transform: translateX(10px) translateY(-12px) rotate(3deg); }
    40% { transform: translateX(-20px) translateY(-5px) rotate(-2deg); }
    60% { transform: translateX(5px) translateY(-18px) rotate(4deg); }
    80% { transform: translateX(-8px) translateY(-3px) rotate(-1deg); }
    100% { transform: translateX(0) translateY(0) rotate(0deg); }
}

/* ===== MAIN CONTROLS ===== */
.main-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.control-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.95);
    border: 3px solid var(--ocean-light);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 5px 15px var(--shadow);
    backdrop-filter: blur(10px);
}

.control-btn:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow);
    background: white;
    border-color: #3498db;
}

.control-btn svg {
    color: var(--ocean-deep);
}

.control-btn span {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1rem;
}

/* ===== BOTTLE COUNTER ===== */
.bottle-counter {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 15px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 3px 10px var(--shadow);
    z-index: 100;
    backdrop-filter: blur(5px);
}

.bottle-counter svg { color: var(--ocean-deep); }
.bottle-counter span {
    font-weight: bold;
    color: var(--text-dark);
    font-size: 1.2rem;
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 100;
}

.lang-btn {
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: var(--transition);
    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 2px var(--shadow);
}

.lang-btn:hover, .lang-btn.active {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ocean-deep);
    border-color: white;
    transform: scale(1.1);
    text-shadow: none;
}

/* ===== MODALS ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal.hidden { display: none; }

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 17, 34, 0.8);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: var(--paper);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px var(--shadow);
    z-index: 1001;
    animation: modal-appear 0.3s ease-out;
    overflow: hidden;
}

@keyframes modal-appear {
    from {
        transform: scale(0.8) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(220, 20, 60, 0.1);
    color: #DC143C;
    font-size: 1.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1002;
}

.close-btn:hover {
    background: rgba(220, 20, 60, 0.2);
    transform: scale(1.1);
}

/* ===== STICKY SENTENCE BUILDER ===== */
.sticky-sentence-builder {
    position: sticky;
    top: 0;
    z-index: 100;
    background: linear-gradient(135deg, var(--paper) 0%, #fff9e6 100%);
    padding: 25px 30px;
    border-bottom: 3px solid var(--ocean-light);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.sticky-sentence-builder h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.sentence-preview {
    background: white;
    border: 2px dashed var(--ocean-light);
    border-radius: 10px;
    padding: 20px;
    min-height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.sentence-preview.has-content {
    border-style: solid;
    border-color: var(--success);
    background: rgba(39, 174, 96, 0.05);
}

#composed-sentence {
    color: var(--text-dark);
    font-size: 1.2rem;
    line-height: 1.6;
    text-align: center;
    margin: 0;
    word-wrap: break-word;
}

.sentence-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-clear, .btn-send {
    padding: 12px 24px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-clear {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.btn-send {
    background: linear-gradient(135deg, var(--success) 0%, #229954 100%);
    color: white;
}

.btn-send:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.btn-clear:hover, .btn-send:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* ===== SCROLLABLE CONTENT ===== */
.scrollable-content {
    max-height: calc(90vh - 220px);
    overflow-y: auto;
    padding: 40px;
    background: linear-gradient(135deg, rgba(248, 251, 255, 0.9) 0%, rgba(240, 248, 255, 0.8) 100%);
}

/* ===== WORD CATEGORIES ===== */
.word-categories {
    margin-bottom: 40px;
}

.word-category {
    margin-bottom: 35px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    border: 2px solid rgba(74, 143, 185, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.word-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
    border-color: var(--ocean-light);
}

.category-title {
    color: var(--ocean-deep);
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--ocean-foam) 0%, rgba(168, 213, 226, 0.7) 100%);
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.words-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    padding: 10px;
}

.word-btn {
    padding: 15px 20px;
    background: linear-gradient(135deg, white 0%, #f8fbff 100%);
    border: 2px solid var(--ocean-foam);
    border-radius: 25px;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.word-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transition: left 0.5s;
}

.word-btn:hover::before {
    left: 100%;
}

.word-btn:hover {
    background: linear-gradient(135deg, var(--ocean-light) 0%, var(--ocean-mid) 100%);
    color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(74, 143, 185, 0.3);
    border-color: var(--ocean-mid);
}

.word-btn:active {
    transform: translateY(-2px) scale(0.98);
    transition: transform 0.1s;
}

/* ===== COMPANIONS SECTION ===== */
.companions-section {
    margin-bottom: 40px;
    padding: 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 251, 255, 0.9) 100%);
    border-radius: 20px;
    border: 2px solid rgba(168, 213, 226, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.companions-section h3 {
    color: var(--ocean-deep);
    margin-bottom: 30px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--ocean-foam) 0%, rgba(168, 213, 226, 0.6) 100%);
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.companions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    justify-items: center;
    padding: 15px;
}

.companion-option {
    width: 100px;
    height: 100px;
    border: 3px solid var(--ocean-foam);
    border-radius: 20px;
    background: linear-gradient(135deg, white 0%, #f8fbff 100%);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.companion-option img {
    width: 75px;
    height: 75px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}

.companion-option:hover {
    border-color: var(--ocean-light);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(74, 143, 185, 0.25);
    background: linear-gradient(135deg, #f0f8ff 0%, white 100%);
}

.companion-option.selected {
    border-color: var(--success);
    background: linear-gradient(135deg, rgba(39, 174, 96, 0.15) 0%, rgba(39, 174, 96, 0.05) 100%);
    box-shadow: 0 0 25px rgba(39, 174, 96, 0.4);
    transform: translateY(-3px);
}

.companion-btn.selected::after {
    content: '✓';
    position: absolute;
    top: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    background: var(--success);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

/* ===== DECORATIVE STICKERS ===== */
.decorative-stickers {
    padding: 35px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 255, 0.8) 100%);
    border-radius: 20px;
    border: 2px solid rgba(168, 213, 226, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.decorative-stickers h3 {
    color: var(--ocean-deep);
    margin-bottom: 25px;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, var(--ocean-foam) 0%, rgba(168, 213, 226, 0.6) 100%);
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sticker-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 15px;
    justify-items: center;
    padding: 10px;
}

.sticker-btn {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, white 0%, #f8fbff 100%);
    border: 3px solid var(--ocean-foam);
    border-radius: 15px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.sticker-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    transition: all 0.3s ease;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.sticker-btn:hover::before {
    width: 100%;
    height: 100%;
}

.sticker-btn:hover {
    transform: translateY(-3px) scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
    border-color: var(--warning);
    background: linear-gradient(135deg, #fff8e1 0%, white 100%);
}

/* ===== MESSAGE CARD (READ MODAL) ===== */
.message-card {
    background: linear-gradient(to bottom, #fefefe 0%, var(--paper) 100%);
}

.message-header {
    padding: 25px 30px 15px;
    border-bottom: 2px solid var(--ocean-foam);
    text-align: center;
}

.message-header h2 {
    color: var(--text-dark);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.message-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-style: italic;
}

.message-content-container {
    padding: 25px 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.message-text-area {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 4px var(--shadow-light);
}

#received-message-text {
    font-size: 1.3rem;
    line-height: 2;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: center;
}

.message-stickers {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.message-stickers .sticker {
    font-size: 1.2rem;
    animation: sticker-bounce 0.5s ease;
}

@keyframes sticker-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.message-companion {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.companion-display {
    width: 100px;
    height: 100px;
    background: white;
    border: 3px solid var(--ocean-light);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.companion-display img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* ===== MESSAGE REPLIES ===== */
.message-replies {
    margin-top: 20px;
}

.reply-item {
    background: rgba(74, 143, 185, 0.1);
    border-left: 4px solid var(--ocean-light);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.reply-date {
    font-size: 0.8rem;
    color: #7f8c8d;
    margin-top: 5px;
}

/* ===== MESSAGE ACTIONS ===== */
.message-actions {
    display: flex;
    gap: 12px;
    padding: 20px 30px;
    justify-content: center;
    border-top: 1px solid rgba(74, 143, 185, 0.2);
}

.btn-action {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-return {
    background: linear-gradient(135deg, var(--ocean-light), var(--ocean-mid));
    color: white;
}

.btn-sink {
    background: linear-gradient(135deg, var(--danger), #c0392b);
    color: white;
}

.btn-reply {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.btn-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ===== REPLY SECTION ===== */
.reply-section {
    border-top: 2px solid var(--ocean-foam);
    padding: 25px 30px;
    background: rgba(155, 89, 182, 0.05);
}

.reply-section h4 {
    color: var(--text-dark);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.reply-preview {
    background: white;
    border: 2px dashed #9b59b6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#reply-sentence {
    color: var(--text-dark);
    font-size: 1rem;
    margin: 0;
}

.reply-words {
    margin-bottom: 20px;
}

.reply-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-cancel {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.btn-send-reply {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
}

.btn-send-reply:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* ===== EMPTY SEA MODAL ===== */
.empty-sea {
    text-align: center;
}

.empty-content {
    padding: 40px 30px;
}

.empty-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--ocean-deep);
}

.empty-content p {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

.btn-write-first {
    background: linear-gradient(135deg, var(--success), #229954);
    color: white;
    font-size: 1.1rem;
    padding: 15px 30px;
}

/* ===== BOTTLE SENDING ANIMATION ===== */
.bottle-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    pointer-events: none;
}

.bottle-animation.hidden {
    display: none;
}

.sending-bottle {
    width: 60px;
    height: 80px;
    animation: bottle-fall 2s ease-in-out forwards;
}

.splash-effect {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 30px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: splash-animation 1s ease-out 1.5s forwards;
    opacity: 0;
}

@keyframes bottle-fall {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, 200px) scale(0.8) rotate(20deg);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, 350px) scale(0.6) rotate(45deg);
        opacity: 0;
    }
}

@keyframes splash-animation {
    0% {
        transform: translateX(-50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translateX(-50%) scale(1.5);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) scale(2);
        opacity: 0;
    }
}

/* ===== FLOATING PARTICLES ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    font-size: 1.2rem;
    opacity: 0.6;
    animation: float-particle 20s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 15px 25px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    z-index: 2000;
    animation: toast-appear 0.3s ease-out;
    max-width: 300px;
    box-shadow: 0 8px 20px var(--shadow);
    backdrop-filter: blur(10px);
}

.toast:not(.error) {
    background: linear-gradient(135deg, var(--success), #2ecc71);
}

.toast.error {
    background: linear-gradient(135deg, var(--danger), #c0392b);
}

.toast.hidden { display: none; }

@keyframes toast-appear {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== SCROLLBAR STYLING ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb {
    background: var(--ocean-light);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ocean-mid); }

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .title-main { font-size: 2.5rem; }
    .subtitle { font-size: 1.2rem; }

    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .sticky-sentence-builder {
        padding: 20px 15px;
    }

    .scrollable-content {
        padding: 20px 15px;
        max-height: calc(95vh - 200px);
    }

    .companions-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    }

    .companion-btn {
        width: 70px;
        height: 70px;
    }

    .companion-btn img {
        width: 50px;
        height: 50px;
    }

    .message-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }

    .bottle-counter, .language-selector {
        top: 10px;
        padding: 10px 15px;
    }

    .lang-btn {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .floating-bottle {
        width: 35px;
        height: 50px;
    }

    .main-controls {
        bottom: 20px;
    }

    .control-btn {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .sticky-sentence-builder h2 { font-size: 1.4rem; }
    #composed-sentence { font-size: 1rem; }
    .word-btn { font-size: 0.85rem; padding: 8px 14px; }
    .btn-clear, .btn-send { font-size: 0.9rem; padding: 10px 18px; }
    .message-header h2 { font-size: 1.5rem; }
    #received-message-text { font-size: 1.1rem; }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

button:focus, .word-btn:focus, .companion-btn:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* ===== HIGH CONTRAST MODE ===== */
@media (prefers-contrast: high) {
    .word-btn, .companion-btn, .sticker-btn {
        border-width: 3px;
    }
    .modal-content {
        border: 3px solid var(--text-dark);
    }
}