:root {
    --primary: #eab308; 
    --primary-hover: #ca8a04;
    --accent: #0ea5e9; 
    --whatsapp-green: #25d366;
    --whatsapp-hover: #22c35e;
    --text-main: #1e293b; 
    --text-muted: #64748b;
    --text-scale: 1; /* משתנה חכם ששולט על גודל כל הטקסטים באתר */
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    font-family: 'Rubik', sans-serif; 
    -webkit-tap-highlight-color: transparent;
}

/* --- התאמות נגישות גלובליות --- */
html { transition: font-size 0.3s ease; }
*:focus-visible { outline: 3px solid var(--accent) !important; outline-offset: 2px !important; }

body { 
    background: #ffffff;
    color: var(--text-main); 
    display: flex; 
    justify-content: center; 
    align-items: flex-start;
    min-height: 100vh; 
    padding: 20px; 
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.sun-background {
    position: fixed;
    top: 50%; left: 50%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(254, 240, 138, 0.6) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1; transform: translate3d(-50%, -50%, 0);
    animation: sun-pulse 10s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes sun-pulse {
    from { transform: translate3d(-50%, -50%, 0) scale(1); opacity: 0.4; }
    to { transform: translate3d(-50%, -50%, 0) scale(1.3); opacity: 0.7; }
}

.app-container { width: 100%; max-width: 480px; position: relative; padding-bottom: 120px; }

#setup-screen { display: flex; flex-direction: column; gap: 28px; animation: fadeIn 0.8s ease-out; }

.setup-header { 
    text-align: center; 
    margin-bottom: 5px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.setup-header .icon { 
    font-size: calc(64px * var(--text-scale, 1)); 
    margin-bottom: 10px; 
    animation: float-main 3s infinite ease-in-out; 
    display: inline-block; 
    filter: drop-shadow(0 10px 15px rgba(234, 179, 8, 0.2)); 
}

@keyframes float-main {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(0, -8px, 0); }
}

.setup-header h1 { color: var(--primary); font-size: calc(34px * var(--text-scale, 1)); font-weight: 900; letter-spacing: -1.5px; line-height: 1; }
.setup-header h1 span { display: block; font-size: calc(58px * var(--text-scale, 1)); margin-bottom: 8px; letter-spacing: -3px; }
.setup-header p { color: var(--text-muted); font-size: calc(17px * var(--text-scale, 1)); font-weight: 700; margin-top: 14px; }
.setup-step h3 { font-size: calc(18px * var(--text-scale, 1)); color: var(--text-main); margin-bottom: 14px; font-weight: 700; text-align: center;}

.school-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.option-card {
    background: rgba(255, 255, 255, 0.9); border: 2px solid #f1f5f9; border-radius: 20px;
    padding: 24px 10px; text-align: center; cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex;
    flex-direction: row; justify-content: center; align-items: center; gap: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.03);
}

.option-card:hover { transform: translateY(-5px); border-color: var(--primary); }
.option-card input { display: none; }
.option-card.selected { border-color: var(--primary); background: #fefce8; transform: translateY(-5px); box-shadow: 0 10px 20px rgba(234, 179, 8, 0.15); }

.option-emoji { font-size: calc(28px * var(--text-scale, 1)); }
.option-title { font-weight: 900; font-size: calc(16px * var(--text-scale, 1)); }

.school-hint {
    text-align: center; margin-top: 5px; font-size: calc(13px * var(--text-scale, 1)); color: var(--primary-hover);
    font-weight: 700; background: #fefce8; padding: 10px; border-radius: 16px; border: 2px solid #fef08a;
}

.toggle-container {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    background: rgba(255, 255, 255, 0.9); padding: 14px 20px; border-radius: 18px;
    border: 2px solid #f1f5f9; cursor: pointer;
}

.toggle-title { font-size: calc(17px * var(--text-scale, 1)); font-weight: 800; color: var(--text-main); margin-bottom: 2px; text-align: center; }
.toggle-hint { font-size: calc(14px * var(--text-scale, 1)); color: var(--text-muted); font-weight: 600; text-align: center; }

.smiley-switch {
    position: relative; display: inline-block; width: 56px; height: 30px;
    background: #f1f5f9; border-radius: 40px; border: 2px solid #e2e8f0; transition: 0.4s;
}
.smiley-switch input { opacity: 0; width: 0; height: 0; }
.smiley-handle {
    position: absolute; top: 1px; left: 1px; width: 24px; height: 24px; background-color: white;
    border-radius: 50%; transition: 0.4s; display: flex; align-items: center; justify-content: center; font-size: calc(14px * var(--text-scale, 1));
}
.smiley-handle::after { content: "😊"; }
input:checked + .smiley-handle { transform: translateX(24px); }
input:checked + .smiley-handle::after { content: "☹️"; }

.btn-start { 
    background: var(--primary); color: #1e293b; font-weight: 900; font-size: calc(21px * var(--text-scale, 1)); 
    padding: 16px; border: none; border-radius: 20px; cursor: pointer; 
    transition: all 0.4s; width: 100%; margin-top: -5px; box-shadow: 0 10px 20px rgba(234, 179, 8, 0.2);
}

#main-screen { display: none; flex-direction: column; gap: 20px; animation: fadeIn 0.5s ease-out; }

.main-timer-card { 
    padding: 30px 20px; border-radius: 28px; text-align: center; position: relative; overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06); background: #ffffff; border: 1px solid rgba(0,0,0,0.05);
}

.net-days { font-size: calc(85px * var(--text-scale, 1)); font-weight: 900; line-height: 1; margin: 10px 0; letter-spacing: -2px; }
.absolute-timer {
    display: flex; justify-content: center; gap: 12px; background: rgba(0,0,0,0.04); padding: 16px; border-radius: 22px; margin-top: 18px;
    position: relative; user-select: none; -webkit-user-select: none;
}
.time-box { text-align: center; min-width: 45px; }
.time-val { font-size: calc(26px * var(--text-scale, 1)); font-weight: 800; }
.time-lbl { font-size: calc(12px * var(--text-scale, 1)); font-weight: 600; color: var(--text-muted); }

.ai-btn {
    background: #f8fafc; border: 1px solid #e2e8f0; color: var(--text-muted);
    padding: 16px; border-radius: 20px; font-size: calc(15px * var(--text-scale, 1)); font-weight: 900; cursor: pointer;
    width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; 
    gap: 8px; margin-top: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02); line-height: 1.5; text-align: center;
}
.ai-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08); color: var(--text-main); }
.ai-btn.has-tip { background: #ffffff; border-color: var(--primary); box-shadow: 0 5px 15px rgba(234, 179, 8, 0.1); }
.ai-btn:disabled { cursor: default; }

.ai-sponsor {
    background: linear-gradient(135deg, #ffffff, #fff7ed); border: 2px solid #ffedd5;
    border-radius: 20px; padding: 14px 16px; margin-top: 15px; display: flex;
    align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-align: center;
    box-shadow: 0 6px 15px rgba(249, 115, 22, 0.07);
}
.ai-sponsor:hover { background: linear-gradient(135deg, #fff7ed, #ffedd5); border-color: #fed7aa; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(249, 115, 22, 0.15); }
.sponsor-text { font-size: calc(14px * var(--text-scale, 1)); font-weight: 600; color: var(--text-main); line-height: 1.4; }
.sponsor-text b { color: #f97316; font-weight: 800; }


.vip-funnel-btn {
    background: linear-gradient(to right, #eab308 0%, #fef08a 25%, #eab308 50%, #fef08a 75%, #eab308 100%);
    background-size: 200% auto; color: #422006; font-weight: 900; font-size: calc(19px * var(--text-scale, 1));
    padding: 16px; border: 2px solid #fef08a; border-radius: 20px; cursor: pointer; width: 100%;
    display: flex; justify-content: center; align-items: center; gap: 10px;
    box-shadow: 0 8px 25px rgba(234, 179, 8, 0.5); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: shine-gold 3s linear infinite, pulse-vip-gold 2s infinite;
}
.vip-funnel-btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 12px 30px rgba(234, 179, 8, 0.6); }
@keyframes shine-gold { to { background-position: -200% center; } }
@keyframes pulse-vip-gold { 0% { box-shadow: 0 0 0 0 rgba(254, 240, 138, 0.7); } 70% { box-shadow: 0 0 0 15px rgba(254, 240, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(254, 240, 138, 0); } }


.copy-data-row { display: flex; justify-content: space-between; align-items: center; background: #ffffff; padding: 12px 15px; border-radius: 14px; margin-bottom: 12px; border: 2px solid #fef08a; transition: all 0.2s; gap: 10px; }
.copy-data-row:hover { border-color: #f59e0b; background: #fffbeb; }

.copy-btn-small { background: #fef08a; color: #854d0e; border: 1px solid #fde047; padding: 0 16px; border-radius: 10px; font-weight: 800; font-size: calc(14px * var(--text-scale, 1)); cursor: pointer; transition: 0.2s; white-space: nowrap; flex-shrink: 0; display: flex; align-items: center; justify-content: center; height: 38px; }
@keyframes video-ended-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 rgba(234, 179, 8, 0); } 50% { transform: scale(1.08); box-shadow: 0 0 12px rgba(234, 179, 8, 0.6); background-color: #fde047; } }
.video-ended-highlight { animation: video-ended-pulse 1.2s infinite !important; }
.copy-btn-small:active { transform: scale(0.95); }
.copy-btn-small.copied { background: #dcfce7; color: #166534; border-color: #86efac; animation: none !important; transform: scale(1); }

@keyframes tipUpdateAnim { 0% { transform: scale(0.95); background-color: #fefce8; } 50% { transform: scale(1.02); background-color: #ffffff; } 100% { transform: scale(1); background-color: #ffffff; } }
.vacation-length-box { color: var(--text-muted); font-size: calc(15px * var(--text-scale, 1)); font-weight: 600; display: inline-block; margin-top: 4px; animation: fadeIn 0.4s; }
.vacation-length-box b { font-weight: 800; color: var(--text-main); font-size: calc(16px * var(--text-scale, 1)); }

.loader { width: 18px; height: 18px; border: 3px solid rgba(0,0,0,0.1); border-top: 3px solid #000000; border-radius: 50%; animation: spin 0.8s linear infinite; display: none; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.holiday-card { background: #ffffff; border: 1px solid #f1f5f9; border-right: 5px solid #cbd5e1; padding: 16px 20px; border-radius: 18px; display: flex; justify-content: flex-start; align-items: center; text-align: right; cursor: pointer; transition: 0.2s; }
.holiday-card.active { border-right-color: var(--primary); background: #fefce8; border-color: #fef08a; }

@keyframes subtle-jump { 0%, 100% { transform: translateY(0); } 10% { transform: translateY(-6px); } 20% { transform: translateY(0); } 30% { transform: translateY(-3px); } 40%, 100% { transform: translateY(0); } }

.action-buttons-row { display: flex; gap: 10px; margin-top: 18px; margin-bottom: 5px; width: 100%; direction: rtl; }
.btn-action { flex: 1; padding: 14px 4px; border-radius: 18px; font-weight: 800; font-size: calc(14px * var(--text-scale, 1)); display: flex; justify-content: center; align-items: center; gap: 6px; text-decoration: none; cursor: pointer; transition: all 0.3s; border: none; direction: rtl; }
.btn-share-half { background: var(--whatsapp-green); color: white; box-shadow: 0 6px 15px rgba(37, 211, 102, 0.2); animation: subtle-jump 4s infinite; }
.btn-share-half:hover { background: var(--whatsapp-hover); transform: translateY(-2px); animation-play-state: paused; }
.btn-a2hs-half { background: #0f172a; color: white; box-shadow: 0 6px 15px rgba(15, 23, 42, 0.2); }
.btn-a2hs-half:hover { background: #1e293b; transform: translateY(-2px); }

.reset-btn { background: none; border: none; color: var(--text-muted); text-decoration: underline; cursor: pointer; padding: 8px; font-size: calc(13px * var(--text-scale, 1)); margin-top: 10px; }

.seo-footer { margin-top: 40px; padding: 30px 10px; border-top: 1px solid #f1f5f9; font-size: calc(14px * var(--text-scale, 1)); color: var(--text-muted); text-align: right; line-height: 1.7; }
.seo-footer h2 { font-size: calc(18px * var(--text-scale, 1)); margin-bottom: 12px; color: var(--text-main); font-weight: 800; }
.seo-footer h3 { font-size: calc(16px * var(--text-scale, 1)); margin-top: 15px; margin-bottom: 8px; color: var(--text-main); font-weight: 700; }
.contact-area { margin-top: 25px; padding-top: 15px; border-top: 1px dashed #e2e8f0; font-size: calc(13px * var(--text-scale, 1)); font-weight: 600; }
.contact-link { color: var(--accent); text-decoration: none; }

.ios-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.7); display: none; justify-content: center; align-items: center; z-index: 1000; padding: 20px; animation: fadeIn 0.3s ease-out; backdrop-filter: blur(5px); }
.ios-modal-content { background: #ffffff; width: 100%; max-width: 380px; padding: 32px 24px; border-radius: 32px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.8); margin: auto; }
.ios-modal-close { background: #f1f5f9; color: var(--text-main); border: none; padding: 14px 30px; font-weight: 800; border-radius: 16px; font-size: calc(16px * var(--text-scale, 1)); cursor: pointer; width: 100%; transition: background 0.2s; }
.ios-modal-close:hover { background: #e2e8f0; }

/* --- עיצוב רשתות חברתיות --- */
.social-banner-container { background: transparent; padding: 10px; margin-top: 10px; text-align: center; }
.social-banner-title { font-size: calc(14px * var(--text-scale, 1)); font-weight: 800; color: var(--text-muted); margin-bottom: 22px; } /* כאן הגדלתי את הרווח מ-12 ל-22 */
.social-icons-row { display: flex; justify-content: center; gap: 20px; }
.social-icon-btn { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; text-decoration: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.social-icon-btn:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 8px 18px rgba(0,0,0,0.12); }
.icon-tiktok { background: #000000; color: white; }
.icon-insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); color: white; }
.icon-youtube { background: #ff0000; color: white; }
/* --- Emoji Rain Easter Egg (Premium) --- */
.emoji-drop {
    position: fixed;
    top: -50px;
    font-size: 28px;
    z-index: 9999;
    pointer-events: none;
    animation: emoji-fall linear forwards;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
    will-change: transform;
}
@keyframes emoji-fall {
    0% { transform: translateY(0) translateX(0) rotate(0deg) scale(0.3); opacity: 0; }
    8% { opacity: 1; transform: translateY(8vh) translateX(calc(var(--sway, 0px) * 0.2)) rotate(calc(var(--rotation, 360deg) * 0.1)) scale(1); }
    100% { transform: translateY(110vh) translateX(var(--sway, 0px)) rotate(var(--rotation, 360deg)) scale(0.6); opacity: 0; }
}

.emoji-rain-bounce {
    animation: timer-bounce 0.5s ease 3 !important;
}
@keyframes timer-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15) rotate(-3deg); }
}

/* --- Destroy the Homework Mini-Game --- */
#homework-trigger {
    position: absolute; top: 10px; left: 10px; width: 38px; height: 38px;
    font-size: 20px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 50; border-radius: 50%;
    background: rgba(255,255,255,0.85); border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); opacity: 0.6;
    transition: all 0.3s ease; animation: hw-peek 4s ease-in-out infinite;
}
#homework-trigger:hover { opacity: 1; transform: scale(1.15); box-shadow: 0 4px 15px rgba(0,0,0,0.12); }
@keyframes hw-peek {
    0%, 85%, 100% { transform: translateY(0); }
    90% { transform: translateY(-6px); }
    95% { transform: translateY(0); }
}

body.hw-crosshair-mode, body.hw-crosshair-mode * { cursor: crosshair !important; }
.hw-crosshair-mode { cursor: crosshair !important; }
.hw-crosshair-mode * { cursor: crosshair !important; }

.hw-arena-mode {
    border: 3px solid #ef4444 !important;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.3), inset 0 0 60px rgba(239, 68, 68, 0.05) !important;
    transition: all 0.3s ease;
}
.hw-arena-title {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 20px; font-weight: 900; color: #ef4444; z-index: 49;
    opacity: 0.2; pointer-events: none; white-space: nowrap;
    font-family: 'Rubik', sans-serif;
}

.hw-paper {
    position: absolute; top: -70px; z-index: 50;
    background: #fffef5; border: 2px solid #fde68a; border-radius: 14px;
    padding: 14px 18px; display: flex; align-items: center; gap: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); cursor: crosshair !important;
    animation: hw-float linear forwards; pointer-events: auto;
    transition: transform 0.1s; min-width: 90px; user-select: none; -webkit-user-select: none;
}
.hw-paper:hover { transform: scale(1.15); border-color: #ef4444; box-shadow: 0 4px 20px rgba(239,68,68,0.3); }
.hw-paper:active { transform: scale(0.9); }
.hw-paper-emoji { font-size: 26px; }
.hw-paper-text { font-size: 17px; font-weight: 800; color: #1e293b; font-family: 'Rubik', sans-serif; }

@keyframes hw-float {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    5% { opacity: 1; }
    100% { transform: translateY(600px) translateX(var(--hw-sway, 0px)) rotate(15deg); opacity: 1; }
}

.hw-explosion {
    position: absolute; font-size: 50px; z-index: 51; pointer-events: none;
    transform: translate(-50%, -50%);
    animation: hw-boom 0.5s ease-out forwards;
}
@keyframes hw-boom {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; }
}

.hw-score-display {
    position: absolute; top: 10px; right: 10px; z-index: 52;
    background: rgba(239, 68, 68, 0.9); color: white; font-weight: 900;
    font-size: 22px; padding: 10px 18px; border-radius: 16px;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3); font-family: 'Rubik', sans-serif;
    animation: fadeIn 0.3s ease-out; display: flex; align-items: center; gap: 8px;
}
.hw-score-final {
    text-align: center; flex-direction: column; gap: 4px;
    animation: hw-score-pop 0.4s ease-out;
}
@keyframes hw-score-pop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- Boss Piñata Game --- */
#boss-trigger {
    position: fixed; bottom: 20px; left: 20px; width: 60px; height: 60px;
    font-size: 35px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 9999; border-radius: 50%;
    background: rgba(255,255,255,0.95); border: 2px solid #ef4444;
    box-shadow: 0 4px 15px rgba(239,68,68,0.4);
    transition: all 0.3s ease; animation: boss-peek 3s ease-in-out infinite;
}
#boss-trigger:hover { transform: scale(1.15) rotate(-5deg); background: white; }
@keyframes boss-peek {
    0%, 85%, 100% { transform: scale(1); }
    90% { transform: scale(1.2) rotate(10deg); }
    95% { transform: scale(1) rotate(-10deg); }
}

#boss-arena {
    position: absolute; inset: 0; z-index: 60;
    background: rgba(15, 23, 42, 0.95);
    border-radius: inherit; display: flex; flex-direction: column;
    align-items: center; justify-content: center; padding: 15px;
    animation: fadeIn 0.4s ease-out;
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}

.boss-title {
    font-size: 24px; font-weight: 900; color: #f87171; margin-bottom: 20px;
    font-family: 'Rubik', sans-serif; text-align: center;
    text-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
    animation: pulse 2s infinite;
}

.boss-health-bar {
    width: 80%; height: 20px; background: #334155; border-radius: 10px;
    border: 2px solid #1e293b; overflow: hidden; margin-bottom: 30px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}
.boss-health-fill {
    width: 100%; height: 100%; background: #22c55e;
    transition: width 0.2s ease, background-color 0.3s ease;
}

.boss-container {
    position: relative; width: 100%; height: 160px; display: flex;
    align-items: center; justify-content: center; margin-bottom: 20px;
}

.boss-monster {
    font-size: 100px; cursor: crosshair; user-select: none; -webkit-user-select: none;
    transition: transform 0.1s ease; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
    animation: boss-float 3s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}
@keyframes boss-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}
.boss-hit-anim {
    animation: boss-hit 0.15s ease-out !important;
}
@keyframes boss-hit {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(0.85) rotate(-5deg); filter: brightness(1.5) drop-shadow(0 0 20px #ef4444); }
    100% { transform: scale(1); filter: brightness(1); }
}

.boss-explode-anim {
    animation: boss-explode 0.4s forwards !important;
}
@keyframes boss-explode {
    0% { transform: scale(1); filter: brightness(1) drop-shadow(0 0 20px #ef4444); }
    50% { transform: scale(1.5); filter: brightness(2) drop-shadow(0 0 50px #fcd34d); }
    100% { transform: scale(0); opacity: 0; }
}

.boss-pain-emoji {
    position: absolute; font-size: 24px; pointer-events: none; z-index: 65;
    animation: pain-fly 0.8s forwards; opacity: 0;
}
@keyframes pain-fly {
    0% { transform: translate(0, 0) scale(0.5); opacity: 1; }
    100% { transform: translate(0, -60px) scale(1.5); opacity: 0; }
}

.boss-win-emoji {
    position: absolute; font-size: 32px; pointer-events: none; z-index: 70;
    animation: win-fall linear forwards;
}
@keyframes win-fall {
    0% { transform: translateY(0) rotate(0deg); opacity: 1; }
    100% { transform: translateY(300px) rotate(360deg); opacity: 0; }
}

.boss-win-text {
    font-size: 28px; font-weight: 900; color: #fde047; text-align: center;
    line-height: 1.3; font-family: 'Rubik', sans-serif;
    animation: fadeInScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 4px 15px rgba(250, 204, 21, 0.5);
}
.boss-win-text span {
    font-size: 20px; color: #fff; font-weight: 700;
}
@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: 1; transform: scale(1); }
}

.boss-instructions {
    font-size: 16px; font-weight: 800; color: #cbd5e1; margin-top: 10px;
    animation: pulse 1s infinite;
}

.boss-close-btn {
    position: absolute; bottom: 15px; background: none; border: none;
    color: #64748b; font-size: 13px; cursor: pointer; font-weight: 700;
    padding: 6px 12px; font-family: 'Rubik', sans-serif; transition: color 0.2s;
}
.boss-close-btn:hover { color: #f87171; }

/* --- Surfer Easter Egg (Demo Site only) --- */
.net-days-container {
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.surfer-passenger {
    position: absolute;
    top: -28px;
    font-size: 24px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
    will-change: transform, right;
}

.surf-right-to-left {
    animation: surfR2L 2.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes surfR2L {
    0% {
        right: -60px;
        transform: translateY(0) rotate(-8deg) scale(0.85);
        opacity: 0;
    }
    15% {
        opacity: 1;
        transform: translateY(-6px) rotate(6deg) scale(1);
    }
    30% {
        transform: translateY(4px) rotate(-6deg) scale(1.05);
    }
    45% {
        transform: translateY(-6px) rotate(6deg) scale(1.05);
    }
    60% {
        transform: translateY(4px) rotate(-6deg) scale(1.05);
    }
    75% {
        transform: translateY(-5px) rotate(5deg) scale(1.05);
    }
    90% {
        opacity: 1;
        transform: translateY(2px) rotate(-3deg) scale(1);
    }
    100% {
        right: 100%;
        transform: translateY(0) rotate(-8deg) scale(0.85);
        opacity: 0;
    }
}

/* --- Airplane Banner Easter Egg --- */
.airplane-container {
    position: fixed;
    top: 25vh;
    left: -500px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    pointer-events: none;
    animation: airplaneFly 5s linear forwards;
    direction: ltr; /* Must be LTR so banner is on left, airplane on right */
}

@keyframes airplaneFly {
    0% { left: -500px; transform: translateY(0); opacity: 1; }
    25% { transform: translateY(-50px); }
    50% { transform: translateY(-80px); }
    75% { transform: translateY(-120px); opacity: 1; }
    100% { left: 130vw; transform: translateY(-180px); opacity: 0; }
}

.airplane-banner {
    background: #ffffff;
    border: 2px dashed #38bdf8;
    color: #0ea5e9;
    font-weight: 900;
    font-size: 22px;
    padding: 10px 25px;
    border-radius: 6px;
    box-shadow: 3px 3px 15px rgba(0,0,0,0.15);
    position: relative;
    direction: rtl; /* Text inside should be RTL */
    white-space: nowrap;
}

.airplane-banner::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 2px;
    background: #64748b;
}

.airplane-emoji {
    font-size: 55px;
    transform: rotate(45deg);
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}
