/* ===========================================
   TUSHYMAN AI — Victorian + Weird Styles
   =========================================== */

/* Reset within our container */
.tushyman-container *,
.tushyman-container *::before,
.tushyman-container *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.tushyman-container {
    font-family: "Courier New", Courier, monospace;
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    color: #2c1810;
    background-color: #F7E7CE;
    min-height: 100vh;
    position: relative;
}

/* ── Game Portal Button ── */
.game-portal-link {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    text-decoration: none;
    cursor: pointer;
    transition: width 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.35s ease;
    box-shadow: 0 0 10px rgba(0,255,136,0.55), 0 0 22px rgba(0,255,136,0.25);
    z-index: 5;
    display: block;
}

.game-portal-link:hover {
    width: 90px;
    height: 90px;
    box-shadow: 0 0 28px rgba(0,255,136,0.85), 0 0 56px rgba(0,255,136,0.4);
}

.game-portal-link .gp-spin {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, rgba(0,255,136,0.9) 30%, transparent 55%, rgba(0,255,136,0.5) 80%, transparent 100%);
    animation: ee-spin 2s linear infinite;
}

.game-portal-link .gp-spin-inner {
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    background: conic-gradient(from 180deg, transparent 0%, rgba(0,255,136,0.65) 35%, transparent 58%, rgba(0,255,136,0.3) 85%, transparent 100%);
    animation: ee-spin-reverse 1.5s linear infinite;
}

.game-portal-link .gp-center {
    position: absolute;
    inset: 28%;
    border-radius: 50%;
    background: #020c04;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 8px rgba(0,255,136,0.3);
}

.game-portal-link .gp-label {
    font-family: 'Courier New', monospace;
    font-size: 0;
    color: rgba(0,255,136,0.95);
    font-weight: bold;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.2s ease 0.1s, font-size 0.2s ease 0.1s;
    white-space: nowrap;
}

.game-portal-link:hover .gp-label {
    font-size: 11px;
    opacity: 1;
}

/* ── Ballad Gramophone Button ── */
@keyframes ballad-pulse {
    0%, 100% { box-shadow: 0 0 6px rgba(180, 120, 40, 0.45); }
    50%       { box-shadow: 0 0 18px rgba(180, 120, 40, 0.9), 0 0 36px rgba(180, 120, 40, 0.35); }
}

.ballad-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(44, 24, 16, 0.1);
    color: #8B5e3c;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.25s, box-shadow 0.25s, color 0.25s;
    box-shadow: 0 0 6px rgba(180, 120, 40, 0.2);
    z-index: 5;
}

.ballad-btn:hover {
    background: rgba(44, 24, 16, 0.18);
    color: #c8853c;
    box-shadow: 0 0 14px rgba(180, 120, 40, 0.55);
}

.ballad-btn.playing {
    color: #d4922e;
    animation: ballad-pulse 2s ease-in-out infinite;
}

.ballad-btn svg {
    width: 22px;
    height: 22px;
}

.ballad-btn-right {
    left: auto;
    right: 70px;
}

/* --- Header --- */
.tushyman-header {
    text-align: center;
    margin-bottom: 1rem;
}

.tushyman-header-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
}

.tushyman-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #2c1810;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 20px rgba(44, 24, 16, 0.3);
    transition: transform 0.3s ease;
    cursor: pointer;
}

/* Avatar hover wobble */
.tushyman-avatar:hover {
    animation: tushyman-wobble 0.5s ease;
}

/* Avatar thinking animation */
.tushyman-avatar-thinking {
    animation: tushyman-bounce 0.8s ease-in-out infinite !important;
}

/* Avatar celebrate animation */
.tushyman-avatar-celebrate {
    animation: tushyman-hat-tip 0.6s ease !important;
}

@keyframes tushyman-wobble {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

@keyframes tushyman-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes tushyman-hat-tip {
    0% { transform: rotate(0deg) scale(1); }
    30% { transform: rotate(-8deg) scale(1.05); }
    60% { transform: rotate(3deg) scale(1.02); }
    100% { transform: rotate(0deg) scale(1); }
}

.tushyman-avatar-small {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #2c1810;
    box-shadow: 0 2px 10px rgba(44, 24, 16, 0.3);
    flex-shrink: 0;
}

.tushyman-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: #2c1810;
    margin-bottom: 0.3rem;
    line-height: 1.2;
}

.tushyman-title-small {
    font-size: 1.5rem;
}

.tushyman-subtitle {
    font-size: 0.95rem;
    color: #6b4c3b;
    font-style: italic;
}

/* Flourish div — hidden by default, shown inside tab panels via content-pages.css */
.tushyman-qa-area-top { display: none; }

/* --- Q&A Area --- */
.tushyman-qa-area {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #2c1810;
    border-radius: 4px;
    padding: 2rem;
    position: relative;
}

/* Victorian corner decorations */
.tushyman-qa-area::before {
    content: "~ \2766 ~";
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(to bottom, #F7E7CE 50%, #fbf3e7 50%);
    padding: 0 1rem;
    font-size: 1.2rem;
    color: #2c1810;
}

.tushyman-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.tushyman-input {
    flex: 1;
    padding: 0.8rem 1rem;
    font-family: "Courier New", monospace;
    font-size: 1rem;
    border: 2px solid #2c1810;
    background: #fff;
    color: #2c1810;
    outline: none;
    transition: border-color 0.2s;
}

.tushyman-input:focus {
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

.tushyman-button {
    padding: 0.8rem 1.5rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    background: #2c1810;
    color: #F7E7CE;
    border: 2px solid #2c1810;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.tushyman-button:hover {
    background: #c0392b;
    border-color: #c0392b;
}

.tushyman-button:active {
    transform: scale(0.97);
}

.tushyman-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Fortune Cookie Button --- */
.tushyman-fortune-btn {
    display: block;
    width: 100%;
    padding: 0.7rem 1rem;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    background: transparent;
    border: 2px dashed #8b6f5e;
    color: #6b4c3b;
    cursor: pointer;
    transition: all 0.2s;
}

.tushyman-fortune-btn:hover {
    background: #2c1810;
    color: #F7E7CE;
    border-style: solid;
    border-color: #2c1810;
}

.tushyman-fortune-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Suggestions --- */
.tushyman-suggestions {
    margin-bottom: 1.5rem;
}

.tushyman-suggestions-label {
    font-size: 0.85rem;
    color: #6b4c3b;
    margin-bottom: 0.5rem;
    font-style: italic;
}

.tushyman-suggestion {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    background: transparent;
    border: 1px dashed #8b6f5e;
    color: #6b4c3b;
    cursor: pointer;
    transition: all 0.2s;
}

.tushyman-suggestion:hover {
    background: #2c1810;
    color: #F7E7CE;
    border-style: solid;
}

/* --- Loading --- */
.tushyman-loading {
    text-align: center;
    padding: 2rem 0;
}

.tushyman-spinner {
    display: inline-block;
    font-size: 2.5rem;
    animation: tushyman-spin 1s ease-in-out infinite;
}

@keyframes tushyman-spin {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.tushyman-loading-text {
    display: block;
    margin-top: 0.75rem;
    font-style: italic;
    color: #6b4c3b;
    font-size: 0.9rem;
}

/* --- Response --- */
.tushyman-response {
    margin-top: 1.5rem;
}

.tushyman-response-frame {
    background: #fff;
    border: 2px solid #2c1810;
    padding: 1.5rem;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.6;
}

.tushyman-response-frame::before,
.tushyman-response-frame::after {
    content: "\201C";
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    color: #d4a574;
    position: absolute;
    line-height: 1;
}

.tushyman-response-frame::before {
    top: 0.25rem;
    left: 0.5rem;
}

.tushyman-response-frame::after {
    content: "\201D";
    bottom: -0.5rem;
    right: 0.5rem;
}

#tushyman-response-text {
    padding: 0 1.5rem;
}

/* --- Actions Row (rating + sharing) --- */
.tushyman-actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- Rating --- */
.tushyman-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.tushyman-rating-label {
    font-size: 0.8rem;
    color: #6b4c3b;
    font-style: italic;
}

.tushyman-rate-btn {
    background: transparent;
    border: 1px solid #8b6f5e;
    padding: 0.3rem 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 4px;
}

.tushyman-rate-btn:hover {
    background: #2c1810;
    border-color: #2c1810;
}

.tushyman-rate-btn.tushyman-rate-active {
    background: #2c1810;
    border-color: #2c1810;
    transform: scale(1.15);
}

.tushyman-rate-msg {
    font-size: 0.8rem;
    color: #c0392b;
    font-style: italic;
    margin-left: 0.3rem;
}

.tushyman-share-buttons {
    display: flex;
    gap: 0.5rem;
}

.tushyman-share-btn {
    padding: 0.4rem 0.8rem;
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    background: transparent;
    border: 1px solid #8b6f5e;
    color: #6b4c3b;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
}

.tushyman-share-btn:hover {
    background: #2c1810;
    color: #F7E7CE;
}

/* --- Error --- */
.tushyman-error {
    margin-top: 1.5rem;
    background: #f8d7da;
    border: 2px solid #c0392b;
    padding: 1rem 1.5rem;
    color: #721c24;
    font-size: 0.95rem;
}

/* --- Chat Area --- */
.tushyman-chat-area {
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid #2c1810;
    border-radius: 4px;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 70vh;
    min-height: 400px;
}

.tushyman-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tushyman-message {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
}

.tushyman-message-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.tushyman-message-bot {
    align-self: flex-start;
}

.tushyman-msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2c1810;
    flex-shrink: 0;
    align-self: flex-end;
}

.tushyman-msg-bubble {
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
    border: 1px solid #2c1810;
}

.tushyman-message-bot .tushyman-msg-bubble {
    background: #fff;
    border-radius: 12px 12px 12px 2px;
}

.tushyman-message-user .tushyman-msg-bubble {
    background: #2c1810;
    color: #F7E7CE;
    border-radius: 12px 12px 2px 12px;
}

.tushyman-message-typing .tushyman-msg-bubble {
    font-style: italic;
    color: #8b6f5e;
}

/* Animated typing dots */
.tushyman-typing-dots {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 1rem 1.2rem !important;
    min-height: 0;
}

.tushyman-typing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #8b6f5e;
    border-radius: 50%;
    animation: tushyman-dot-bounce 1.4s ease-in-out infinite;
}

.tushyman-typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.tushyman-typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes tushyman-dot-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

/* Mood indicator */
.tushyman-mood {
    font-family: "Courier New", monospace;
    font-size: 0.8rem;
    color: #8b6f5e;
    font-style: italic;
    text-align: center;
    margin-top: 0.2rem;
}

/* Peach reaction button */
.tushyman-react-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.3;
    transition: all 0.2s;
    padding: 0.2rem;
    align-self: flex-end;
    flex-shrink: 0;
}

.tushyman-react-btn:hover {
    opacity: 0.7;
    transform: scale(1.2);
}

.tushyman-react-btn.tushyman-reacted {
    opacity: 1;
    transform: scale(1.1);
}

.tushyman-chat-input-area {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 2px solid #2c1810;
    background: rgba(255, 255, 255, 0.5);
}

.tushyman-chat-controls {
    display: flex;
    justify-content: center;
    padding: 0.5rem;
    border-top: 1px solid #d4a574;
}

.tushyman-link-btn {
    font-family: "Courier New", monospace;
    font-size: 0.85rem;
    background: none;
    border: none;
    color: #6b4c3b;
    cursor: pointer;
    text-decoration: underline;
}

.tushyman-link-btn:hover {
    color: #c0392b;
}

/* --- Footer --- */
.tushyman-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #6b4c3b;
}

.tushyman-footer a {
    color: #2c1810;
    text-decoration: underline;
}

.tushyman-footer a:hover {
    color: #c0392b;
}

/* --- Utilities --- */
.hidden {
    display: none !important;
}

/* ===========================================
   EASTER EGG — Donkey Portal Origin Story
   =========================================== */

.ee-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ee-overlay.ee-active {
    pointer-events: all;
    opacity: 1;
}

.ee-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 5, 2, 0);
    transition: background 0.8s ease;
}

.ee-active .ee-backdrop {
    background: rgba(10, 5, 2, 0.85);
}

.ee-portal-stage {
    position: relative;
    width: 600px;
    height: 480px;
    z-index: 2;
}

/* Green swirling portal */
.ee-portal {
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, #00ff88 0%, #00cc66 30%, #008844 60%, transparent 70%);
    box-shadow:
        0 0 40px rgba(0, 255, 136, 0.4),
        0 0 80px rgba(0, 255, 136, 0.2),
        inset 0 0 40px rgba(0, 255, 136, 0.3);
    transition: width 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.4s ease;
    z-index: 2;
    left: 50%;
    top: 50%;
    margin-left: -170px;
    margin-top: -60px;
    transform: translate(-50%, -50%);
}

.ee-portal.ee-open {
    width: 180px;
    height: 180px;
}

.ee-portal.ee-burst {
    box-shadow:
        0 0 80px rgba(0, 255, 136, 0.8),
        0 0 160px rgba(0, 255, 136, 0.4),
        inset 0 0 60px rgba(0, 255, 136, 0.6);
}

.ee-portal-spin {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(0, 255, 136, 0.3) 25%,
        transparent 50%,
        rgba(0, 255, 136, 0.2) 75%,
        transparent 100%
    );
    animation: ee-spin 2s linear infinite;
}

.ee-portal-spin-inner {
    position: absolute;
    inset: 15px;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg,
        transparent 0%,
        rgba(0, 255, 100, 0.4) 25%,
        transparent 50%,
        rgba(0, 255, 100, 0.3) 75%,
        transparent 100%
    );
    animation: ee-spin-reverse 1.5s linear infinite;
}

.ee-portal-center {
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    background: radial-gradient(circle, #001a0d 0%, #003322 40%, transparent 70%);
    box-shadow: inset 0 0 50px rgba(0, 255, 136, 0.2);
}

@keyframes ee-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ee-spin-reverse {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Donkey image */
.ee-donkey {
    position: absolute;
    width: 380px;
    height: auto;
    z-index: 1;
    opacity: 0;
    transform: scale(0.7) translateY(20px);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 16px;
    filter: drop-shadow(0 0 30px rgba(0, 255, 136, 0.3));
    left: 50%;
    top: 50%;
    margin-left: -190px;
    margin-top: -190px;
}

.ee-donkey.ee-visible {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Tushyman figures (real face + butt face) */
.ee-tushyman-real,
.ee-tushyman-butt {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #F7E7CE;
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5), 0 0 60px rgba(0, 255, 136, 0.2);
    z-index: 3;
    opacity: 0;
    left: 50%;
    top: 50%;
}

/* Real Tushyman — flipped to face the vortex, gets sucked in */
.ee-tushyman-real {
    margin-left: -340px;
    margin-top: -140px;
    transform: translate(-50%, -50%) scaleX(-1) scale(1);
    transition: opacity 0.8s ease,
                transform 3s cubic-bezier(0.4, 0, 0.7, 1),
                margin-left 3s cubic-bezier(0.4, 0, 0.7, 1),
                margin-top 3s cubic-bezier(0.4, 0, 0.7, 1),
                box-shadow 3s ease;
}

.ee-tushyman-real.ee-visible {
    opacity: 1;
}

.ee-tushyman-real.ee-looking {
    transform: translate(-50%, -50%) scaleX(-1) scale(1) rotate(-15deg);
}

.ee-tushyman-real.ee-sucked {
    opacity: 0;
    transform: translate(-50%, -50%) scaleX(-1) scale(0) rotate(720deg);
    margin-left: -170px;
    margin-top: -60px;
    box-shadow: 0 0 60px rgba(0, 255, 136, 0.9), 0 0 120px rgba(0, 255, 136, 0.4);
}

/* Butt-face Tushyman — starts tiny at portal, gets spit out */
.ee-tushyman-butt {
    margin-left: -170px;
    margin-top: -60px;
    transform: translate(-50%, -50%) scale(0) rotate(-720deg);
    transition: opacity 0.6s ease,
                transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                margin-left 1.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                margin-top 1.2s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 1.2s ease;
}

.ee-tushyman-butt.ee-spit {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    margin-left: 120px;
    margin-top: -160px;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.6), 0 0 80px rgba(0, 255, 136, 0.3);
}

/* Origin story text */
.ee-story {
    position: absolute;
    bottom: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    text-align: center;
    z-index: 4;
}

.ee-story-text {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    color: #F7E7CE;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    min-height: 80px;
}

.ee-story-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #00ff88;
    margin-left: 2px;
    animation: ee-blink 0.7s step-end infinite;
    vertical-align: text-bottom;
}

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

.ee-dismiss {
    display: block;
    margin: 20px auto 0;
    padding: 10px 28px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 700;
    background: transparent;
    border: 2px solid #F7E7CE;
    color: #F7E7CE;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(10px);
}

.ee-dismiss.ee-show {
    opacity: 1;
    transform: translateY(0);
}

.ee-dismiss:hover {
    background: #F7E7CE;
    color: #2c1810;
}

/* Screen shake */
@keyframes ee-shake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-6px, -3px); }
    20% { transform: translate(5px, 4px); }
    30% { transform: translate(-4px, 2px); }
    40% { transform: translate(6px, -4px); }
    50% { transform: translate(-3px, 5px); }
    60% { transform: translate(4px, -2px); }
    70% { transform: translate(-5px, 3px); }
    80% { transform: translate(3px, -5px); }
    90% { transform: translate(-2px, 4px); }
}

body.ee-shaking {
    animation: ee-shake 0.5s ease-in-out;
}

/* Portal particles */
.ee-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff88;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
    animation: ee-particle-float 2s ease-out forwards;
}

@keyframes ee-particle-float {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(var(--dx), var(--dy)) scale(0);
    }
}

/* Green flash */
.ee-flash {
    position: fixed;
    inset: 0;
    background: rgba(0, 255, 136, 0.15);
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    animation: ee-flash-anim 0.3s ease-out;
}

@keyframes ee-flash-anim {
    0% { opacity: 1; }
    100% { opacity: 0; }
}


/* --- Responsive --- */
@media (max-width: 600px) {
    .tushyman-container {
        padding: 1rem;
    }

    .tushyman-title {
        font-size: 1.6rem;
    }

    .tushyman-title-small {
        font-size: 1.2rem;
    }

    .tushyman-avatar {
        width: 120px;
        height: 120px;
    }

    .tushyman-input-group {
        flex-direction: column;
    }

    .tushyman-button {
        width: 100%;
    }

    .tushyman-qa-area {
        padding: 1.5rem 1rem;
    }

    .tushyman-suggestion {
        display: block;
        margin: 0.3rem 0;
    }

    .tushyman-actions-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .tushyman-message {
        max-width: 95%;
    }

    .tushyman-chat-area {
        height: 60vh;
    }

    /* Easter egg responsive */
    .ee-portal-stage {
        width: 340px;
        height: 340px;
    }

    .ee-donkey {
        width: 260px;
        margin-left: -130px;
        margin-top: -130px;
    }

    .ee-portal {
        margin-left: -120px;
        margin-top: -40px;
    }

    .ee-portal.ee-open {
        width: 120px;
        height: 120px;
    }

    .ee-tushyman-real,
    .ee-tushyman-butt {
        width: 80px;
        height: 80px;
    }

    .ee-tushyman-real {
        margin-left: -220px;
        margin-top: -100px;
    }

    .ee-tushyman-real.ee-sucked {
        margin-left: -120px;
        margin-top: -40px;
    }

    .ee-tushyman-butt.ee-spit {
        margin-left: 60px;
        margin-top: -110px;
    }

    .ee-story {
        width: 300px;
        bottom: -80px;
    }

    .ee-story-text {
        font-size: 0.9rem;
    }
}
