/* Ocean Theme & Glassmorphism Design System */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-deep-abyss: #07111e;
    --bg-ocean-dark: #0a192f;
    --bg-ocean-medium: #112240;
    --bg-ocean-light: #1d3557;
    --accent-turquoise: #00f5d4;
    --accent-sea-blue: #00b4d8;
    --text-foam-white: #f4f9f9;
    --text-mist: #a8dadc;
    --text-muted-gray: #9bb2c0;
    --glow-glow: 0 0 15px rgba(0, 245, 212, 0.4);
    --border-glass: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(17, 34, 64, 0.7);
    --glass-blur: blur(12px);
}

body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 50% 20%, #0c2340 0%, var(--bg-deep-abyss) 80%);
    color: var(--text-foam-white);
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-panel:hover {
    border-color: rgba(0, 245, 212, 0.25);
    box-shadow: 0 12px 40px 0 rgba(0, 245, 212, 0.1);
}

.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-foam-white) !important;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-turquoise);
    box-shadow: var(--glow-glow);
    outline: none;
}

.glass-input::placeholder {
    color: var(--text-muted-gray);
}

/* Custom Buttons */
.btn-ocean {
    background: linear-gradient(135deg, var(--accent-sea-blue) 0%, var(--accent-turquoise) 100%);
    border: none;
    color: #07111e;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-ocean:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 245, 212, 0.5);
    color: #07111e;
}

.btn-ocean:active {
    transform: translateY(0);
}

.btn-ocean-secondary {
    background: transparent;
    border: 1px solid var(--accent-turquoise);
    color: var(--accent-turquoise);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-ocean-secondary:hover {
    background: rgba(0, 245, 212, 0.1);
    box-shadow: var(--glow-glow);
    color: var(--accent-turquoise);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep-abyss);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-ocean-light);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-turquoise);
}

/* Animation utilities */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Logo Accent styling */
.logo-title {
    font-weight: 700;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent-turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.ocean-glow-text {
    color: var(--accent-turquoise);
    text-shadow: 0 0 10px rgba(0, 245, 212, 0.3);
}

/* Page Specific layout styling overrides */
.auth-container {
    max-width: 450px;
    width: 100%;
}

/* Glass inputs disabled state override */
input.glass-input:disabled,
input.glass-input[readonly],
.form-control.glass-input:disabled,
.form-control.glass-input[readonly] {
    background-color: rgba(10, 25, 47, 0.75) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-muted-gray) !important;
    cursor: not-allowed;
    opacity: 0.8;
}

/* Unread Sidebar Badges */
.unread-badge {
    background: linear-gradient(135deg, var(--accent-turquoise) 0%, var(--accent-sea-blue) 100%);
    color: #07111e;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-glow);
    padding: 0 6px;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 5px rgba(0, 245, 212, 0.4);
    }
    50% {
        box-shadow: 0 0 12px rgba(0, 245, 212, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 245, 212, 0.4);
    }
}

/* Local Message Search */
.chat-search-input {
    max-width: 220px;
    font-size: 0.85rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    margin-left: 1rem;
}

/* Quick Emoji Reactions Bar */
.emoji-quick-bar {
    display: flex;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    background: rgba(10, 25, 47, 0.4);
    border-radius: 16px;
    margin-bottom: 0.6rem;
    border: 1px solid var(--border-glass);
    backdrop-filter: var(--glass-blur);
    align-items: center;
    width: fit-content;
}

.emoji-quick-title {
    font-size: 0.75rem;
    color: var(--text-muted-gray);
    margin-right: 0.5rem;
    font-weight: 600;
}

.emoji-btn {
    background: transparent;
    border: none;
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 2px 6px;
    border-radius: 6px;
}

.emoji-btn:hover {
    transform: scale(1.35) translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

/* Empty Placeholders */
.empty-sidebar-placeholder {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-muted-gray);
    font-size: 0.85rem;
    font-style: italic;
}

/* Wobble / Blur animation for Drunk Mode command */
@keyframes drunkWobble {
    0% {
        transform: rotate(0deg) scale(1);
        filter: blur(0px);
    }
    20% {
        transform: rotate(0.4deg) scale(1.005) skewX(0.5deg);
        filter: blur(1.5px);
    }
    40% {
        transform: rotate(-0.3deg) scale(0.995) skewY(-0.4deg);
        filter: blur(0.8px);
    }
    60% {
        transform: rotate(0.6deg) scale(1.01) skewX(-0.6deg);
        filter: blur(2.2px);
    }
    80% {
        transform: rotate(-0.5deg) scale(0.99) skewY(0.5deg);
        filter: blur(1.2px);
    }
    100% {
        transform: rotate(0deg) scale(1);
        filter: blur(0px);
    }
}

body.drunk-mode {
    animation: drunkWobble 7s ease-in-out infinite alternate;
    transition: filter 0.8s ease;
}

/* LSD Psychedelic Color Cycling Effect */
@keyframes lsdRainbow {
    0% {
        filter: hue-rotate(0deg) saturate(1.1);
    }
    50% {
        filter: hue-rotate(180deg) saturate(2) contrast(1.15);
    }
    100% {
        filter: hue-rotate(360deg) saturate(1.1);
    }
}

@keyframes lsdBodyBg {
    0% { background: radial-gradient(circle at 50% 20%, #0c2340 0%, #07111e 80%); }
    20% { background: radial-gradient(circle at 50% 20%, #3a0d2d 0%, #170715 80%); }
    40% { background: radial-gradient(circle at 50% 20%, #0d381c 0%, #06190c 80%); }
    60% { background: radial-gradient(circle at 50% 20%, #3a320d 0%, #1a1706 80%); }
    80% { background: radial-gradient(circle at 50% 20%, #0d2c38 0%, #06141a 80%); }
    100% { background: radial-gradient(circle at 50% 20%, #0c2340 0%, #07111e 80%); }
}

@keyframes lsdSidebarBg {
    0% { background-color: #0a192f; }
    20% { background-color: #2b0a20; }
    40% { background-color: #0a2916; }
    60% { background-color: #2b280a; }
    80% { background-color: #0a222b; }
    100% { background-color: #0a192f; }
}

@keyframes lsdGlassBg {
    0% { background-color: rgba(17, 34, 64, 0.7); }
    20% { background-color: rgba(64, 17, 47, 0.7); }
    40% { background-color: rgba(17, 64, 32, 0.7); }
    60% { background-color: rgba(64, 59, 17, 0.7); }
    80% { background-color: rgba(17, 51, 64, 0.7); }
    100% { background-color: rgba(17, 34, 64, 0.7); }
}

body.lsd-mode {
    animation: lsdRainbow 8s linear infinite, lsdBodyBg 8s linear infinite;
    transition: filter 0.6s ease;
}

body.lsd-mode .chat-sidebar {
    animation: lsdSidebarBg 8s linear infinite;
}

body.lsd-mode .glass-panel,
body.lsd-mode .message-incoming .message-bubble,
body.lsd-mode .chat-main-header,
body.lsd-mode .chat-input-bar {
    animation: lsdGlassBg 8s linear infinite;
}

/* Command Autocomplete / Tooltip Helper */
.command-helper-popup {
    position: absolute;
    bottom: 120%;
    left: 10px;
    background: rgba(7, 17, 30, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 245, 212, 0.4);
    border-radius: 12px;
    box-shadow: 0 8px 32px 0 rgba(0, 245, 212, 0.15);
    width: 290px;
    padding: 8px;
    z-index: 200;
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.command-helper-title {
    font-size: 0.7rem;
    color: var(--text-muted-gray);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 8px;
    border-bottom: 1px solid var(--border-glass);
    margin-bottom: 6px;
}

.command-helper-item {
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-mist);
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.command-helper-item:hover {
    background: rgba(0, 245, 212, 0.12);
    color: var(--accent-turquoise);
    transform: translateX(3px);
}
body.mirror-mode {
    transform: scaleX(-1);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
body.upsidedown-mode {
    transform: scaleY(-1);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}
body.mirror-mode.upsidedown-mode {
    transform: scale(-1, -1);
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Matrix Mode styling */
body.matrix-mode {
    font-family: 'Courier New', Courier, monospace !important;
    background: #000000 !important;
    color: #00ff00 !important;
}

body.matrix-mode * {
    color: #00ff00 !important;
    border-color: #00ff00 !important;
    box-shadow: none !important;
    text-shadow: 0 0 5px #00ff00;
}

body.matrix-mode .chat-sidebar,
body.matrix-mode .chat-main-header,
body.matrix-mode .chat-input-bar,
body.matrix-mode .glass-panel,
body.matrix-mode .message-bubble,
body.matrix-mode .list-item-btn {
    background: rgba(0, 15, 0, 0.9) !important;
    border: 1px solid #00ff00 !important;
}

body.matrix-mode .list-item-btn.active {
    background: rgba(0, 255, 0, 0.2) !important;
}

body.matrix-mode input,
body.matrix-mode textarea {
    background: #000500 !important;
    border: 1px solid #00ff00 !important;
}

body.matrix-mode ::-webkit-scrollbar-thumb {
    background: #008800 !important;
}
body.matrix-mode ::-webkit-scrollbar-track {
    background: #000000 !important;
}

/* ============================================
   BLACK & WHITE MODE
   ============================================ */
body.blackwhite-mode {
    filter: grayscale(100%);
    transition: filter 0.8s ease;
}

/* ============================================
   SCROLL TO BOTTOM FLOATING BUTTON
   ============================================ */
.scroll-to-bottom-btn {
    position: absolute;
    bottom: 10px;
    right: 20px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-sea-blue), var(--accent-turquoise));
    border: none;
    color: #07111e;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 245, 212, 0.4);
    cursor: pointer;
    z-index: 50;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: bounceDown 1.5s ease-in-out infinite;
}

.scroll-to-bottom-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(0, 245, 212, 0.6);
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ============================================
   FULL EMOJI PICKER PANEL
   ============================================ */
.emoji-picker-panel {
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 380px;
    background: rgba(7, 17, 30, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 245, 212, 0.4);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 245, 212, 0.15);
    z-index: 300;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.emoji-picker-header {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-glass);
    flex-shrink: 0;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 2px;
    padding: 8px;
    overflow-y: auto;
    flex: 1;
}

.emoji-grid-btn {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    text-align: center;
    transition: background 0.15s ease, transform 0.15s ease;
}

.emoji-grid-btn:hover {
    background: rgba(0, 245, 212, 0.15);
    transform: scale(1.2);
}

/* ============================================
   GIF PICKER RESULTS
   ============================================ */
.gif-item {
    width: 140px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.gif-item:hover {
    border-color: var(--accent-turquoise);
    transform: scale(1.03);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.4);
}

/* ============================================
   PIERRE-FEUILLE-CISEAUX DUEL BUTTONS
   ============================================ */
.pfc-choice-btn {
    background: rgba(17, 34, 64, 0.8);
    border: 2px solid var(--border-glass);
    color: var(--text-foam-white);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 90px;
}

.pfc-choice-btn:hover {
    background: rgba(0, 245, 212, 0.12);
    border-color: var(--accent-turquoise);
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px rgba(0, 245, 212, 0.25);
}

.pfc-choice-btn.selected {
    border-color: var(--accent-turquoise);
    background: rgba(0, 245, 212, 0.15);
    box-shadow: 0 0 16px rgba(0, 245, 212, 0.4);
}

/* ============================================
   PRESENCE STATUS BADGES
   ============================================ */
.presence-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    border-radius: 8px;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
}

.presence-badge.active {
    background: rgba(0, 245, 212, 0.2);
    color: var(--accent-turquoise);
    border: 1px solid rgba(0, 245, 212, 0.4);
}

.presence-badge.idle {
    background: rgba(255, 200, 0, 0.15);
    color: #ffc800;
    border: 1px solid rgba(255, 200, 0, 0.3);
}

/* ============================================
   ANIMATED TYPING INDICATOR DOTS
   ============================================ */
.typing-indicator-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0.25rem 1.5rem;
    font-size: 0.82rem;
    color: var(--text-mist);
    font-style: italic;
}

.typing-dots {
    display: inline-flex;
    gap: 4px;
    align-items: flex-end;
    margin-left: 4px;
    vertical-align: middle;
}

.typing-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--accent-turquoise);
    opacity: 0.35;
    animation: typingDotBounce 1.1s ease-in-out infinite;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.18s; }
.typing-dot:nth-child(3) { animation-delay: 0.36s; }

@keyframes typingDotBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* ============================================
   MESSAGE EMOJI REACTIONS
   ============================================ */
.message-reactions {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.reaction-bubble {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.reaction-bubble:hover,
.reaction-bubble.reacted {
    background: rgba(0, 245, 212, 0.15);
    border-color: rgba(0, 245, 212, 0.4);
    transform: scale(1.08);
}

.reaction-bubble .reaction-count {
    font-size: 0.7rem;
    color: var(--text-muted-gray);
    font-weight: 600;
}

.reaction-bubble.reacted .reaction-count {
    color: var(--accent-turquoise);
}

.reaction-add-btn {
    opacity: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-muted-gray);
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    vertical-align: middle;
    margin-left: 2px;
}

.message-wrapper:hover .reaction-add-btn {
    opacity: 1;
}

.reaction-add-btn:hover {
    background: rgba(0, 245, 212, 0.15);
    border-color: var(--accent-turquoise);
    color: var(--accent-turquoise);
    transform: scale(1.15);
}

.reaction-emoji-popup {
    position: fixed;
    background: rgba(7, 17, 30, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 245, 212, 0.3);
    border-radius: 20px;
    padding: 6px 10px;
    display: flex;
    gap: 6px;
    z-index: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reaction-emoji-option {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 3px 5px;
    border-radius: 8px;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.15s ease;
    line-height: 1;
}

.reaction-emoji-option:hover {
    transform: scale(1.5) translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   PHOTO GALLERY MODAL
   ============================================ */
.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 8px;
    padding: 4px;
    overflow-y: auto;
    max-height: 55vh;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: rgba(17, 34, 64, 0.5);
}

.gallery-img:hover {
    border-color: var(--accent-turquoise);
    transform: scale(1.04);
    box-shadow: 0 0 14px rgba(0, 245, 212, 0.4);
}

/* Command helper no-results */
.command-helper-no-results {
    padding: 10px 12px;
    text-align: center;
    color: var(--text-muted-gray);
    font-size: 0.8rem;
    font-style: italic;
}

/* ============================================
   GIF PICKER - TABS & FAVORITES
   ============================================ */
.gif-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    color: var(--text-mist);
    border-radius: 20px;
    padding: 0.3rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.gif-tab-btn:hover {
    background: rgba(0, 245, 212, 0.08);
    color: var(--accent-turquoise);
    border-color: rgba(0, 245, 212, 0.3);
}

.gif-tab-btn.active {
    background: rgba(0, 245, 212, 0.15);
    border-color: rgba(0, 245, 212, 0.4);
    color: var(--accent-turquoise);
    box-shadow: 0 0 10px rgba(0, 245, 212, 0.15);
}

/* GIF card wrapper with heart button */
.gif-fav-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: rgba(10, 25, 47, 0.85);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.gif-fav-btn:hover,
.gif-fav-btn.active {
    opacity: 1;
}

.gif-fav-btn.active {
    color: #ff4d6d;
    background: rgba(255, 77, 109, 0.2);
    box-shadow: 0 0 8px rgba(255, 77, 109, 0.4);
}

/* Show heart on parent hover */
div:hover > .gif-fav-btn {
    opacity: 1;
}

/* ============================================
   PUISSANCE 4 BOARD
   ============================================ */
.p4-board {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    padding: 12px;
    background: rgba(0, 40, 90, 0.7);
    border-radius: 14px;
    border: 2px solid rgba(0, 245, 212, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(0, 180, 216, 0.05);
    width: 100%;
    max-width: 380px;
}

.p4-cell {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: rgba(7, 17, 30, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    position: relative;
}

.p4-cell:hover {
    background: rgba(0, 245, 212, 0.08);
    border-color: rgba(0, 245, 212, 0.25);
}

.p4-cell.p4-red {
    background: radial-gradient(circle at 35% 35%, #ff6b6b, #cc0000);
    border-color: rgba(255, 107, 107, 0.5);
    box-shadow: 0 2px 12px rgba(204, 0, 0, 0.5), inset 0 -3px 6px rgba(0, 0, 0, 0.3);
    animation: p4Drop 0.25s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    cursor: default;
}

.p4-cell.p4-yellow {
    background: radial-gradient(circle at 35% 35%, #ffe94d, #f7c000);
    border-color: rgba(247, 192, 0, 0.5);
    box-shadow: 0 2px 12px rgba(247, 192, 0, 0.45), inset 0 -3px 6px rgba(0, 0, 0, 0.3);
    animation: p4Drop 0.25s cubic-bezier(0.36, 0.07, 0.19, 0.97);
    cursor: default;
}

@keyframes p4Drop {
    from { transform: scale(0.6); opacity: 0.4; }
    to   { transform: scale(1);   opacity: 1; }
}

