* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playpen Sans', 'Comic Sans MS', cursive, sans-serif !important;
}

body {
    font-family: 'Playpen Sans', 'Comic Sans MS', cursive, sans-serif;
    background: linear-gradient(135deg, #1a1a1a, #2d1b1b);
    color: #ffffff;
    min-height: 100vh;
}

/* Flashcard sign wiggle and tilt animation */
@keyframes flashcard-sign-wiggle {
    0%, 100% {
        transform: rotate(0deg) translateY(0);
    }
    25% {
        transform: rotate(2deg) translateY(-3px);
    }
    50% {
        transform: rotate(-1deg) translateY(-5px);
    }
    75% {
        transform: rotate(1.5deg) translateY(-3px);
    }
}

/* Pulsating animation for correct answer lines */
@keyframes pulsate-answer {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* White flash animation for instant scroll */
@keyframes flash-fade {
    0% {
        opacity: 0.8;
    }
    100% {
        opacity: 0;
    }
}

/* Wiggle animations for banner */
@keyframes gentleWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(0.5deg); }
    75% { transform: rotate(-0.5deg); }
}

@keyframes aggressiveWiggle {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(3deg); }
    20% { transform: rotate(-3deg); }
    30% { transform: rotate(2deg); }
    40% { transform: rotate(-2deg); }
    50% { transform: rotate(3deg); }
    60% { transform: rotate(-3deg); }
    70% { transform: rotate(2deg); }
    80% { transform: rotate(-2deg); }
    90% { transform: rotate(1deg); }
}

/* Singer Coins panel wiggle animation (4%) */
@keyframes coinsPanelWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1.44deg); }
    75% { transform: rotate(-1.44deg); }
}

/* Game Coins panel wiggle animation (softer than Singer Coins) */
@keyframes gameCoinsPanelWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(0.7deg); }
    75% { transform: rotate(-0.7deg); }
}

/* Worst quiz button wiggle animation (increased by 15%) */
@keyframes worstQuizWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1.15deg); }
    75% { transform: rotate(-1.15deg); }
}

/* Worst quiz button pulsing glow animation */
@keyframes worstQuizGlow {
    0%, 100% {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 8px 32px rgba(220, 53, 69, 0.4);
        filter: brightness(1);
    }
    50% {
        box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), 0 12px 48px rgba(220, 53, 69, 0.8);
        filter: brightness(1.2);
    }
}

/* Singer Coins number pulse animation (30%) */
@keyframes coinsNumberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* Game Coins number pulse animation (softer) */
@keyframes gameCoinsNumberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* Quiz coin celebration animation (100% size change) */
@keyframes quizCoinCelebration {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(2.0); }
}

/* Open Beta text animations */
@keyframes betaFlash {
    0%, 75% { opacity: 1; }
    25% { opacity: 0.7; }
}

@keyframes betaWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(1deg); }
    75% { transform: rotate(-1deg); }
}

/* Vertical text on sides of pages */
@keyframes textGlow {
    0%, 100% { 
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.2), 0 0 10px rgba(255, 255, 255, 0.1);
        filter: brightness(1);
    }
    50% { 
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 15px rgba(255, 255, 255, 0.2);
        filter: brightness(1.3);
    }
}

.vertical-text-left,
.vertical-text-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Times New Roman", serif !important;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.18);
    pointer-events: none;
    z-index: 1;
    user-select: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    animation: textGlow 4s ease-in-out infinite;
    filter: blur(0.5px);
}

.banner-text-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Times New Roman", serif !important;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.6);
    z-index: 10000;
    user-select: none;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    letter-spacing: 8px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.banner-text-overlay.show {
    opacity: 1;
}

.streak-text-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: "Georgia", serif !important;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6);
    z-index: 10000;
    user-select: none;
    pointer-events: none;
    opacity: 0;
    text-align: center;
    font-weight: 300;
    letter-spacing: 2px;
    line-height: 1.4;
    max-width: 500px;
    transition: opacity 1.5s ease-out;
}

.streak-text-overlay.show {
    opacity: 1;
}

.vertical-text-left.scrolling,
.vertical-text-right.scrolling {
    opacity: 0;
}

.vertical-text-left {
    left: 10px;
    transform: translateY(-50%) rotate(180deg);
}

.vertical-text-right {
    right: 10px;
    transform: translateY(-50%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 30px;
    color: #ff3333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-container {
    position: relative;
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 0;
}

.main-banner {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 51, 51, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    filter: brightness(1.2) saturate(1.2);
}

.main-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(255, 51, 51, 0.4);
    filter: brightness(1.25) saturate(1.25);
    animation: gentleWiggle 1s ease-in-out infinite;
}

.main-banner.wiggle-on-scroll {
    animation: gentleWiggle 2s ease-in-out 3;
}

.main-banner.wiggle-aggressive {
    animation: aggressiveWiggle 0.8s ease-in-out 1;
}

/* Open Beta Text */
.open-beta-text {
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    margin: 10px 0 20px 0;
    animation: betaFlash 3s infinite, betaWiggle 4s infinite;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    font-family: 'Playpen Sans', 'Comic Sans MS', cursive, sans-serif;
}

.banner-container {
    position: relative;
}

.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.login-selection, .login-form {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 51, 51, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.login-selection h2, .login-form h2 {
    margin-bottom: 30px;
    font-size: 2rem;
    color: #ff3333;
}

.about-panel {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-top: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 51, 51, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-panel h3 {
    color: #ff3333;
    margin-bottom: 20px;
    font-size: 1.8rem;
    text-align: center;
}

.about-panel h4 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.about-content {
    text-align: left;
    line-height: 1.8;
}

.about-content p {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.about-note {
    font-size: 0.55rem !important;
    font-style: italic;
    margin-top: 25px !important;
    color: rgba(255, 255, 255, 0.85) !important;
}

.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    background: linear-gradient(45deg, #ff3333, #cc0000);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
    min-width: 120px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.4);
    background: linear-gradient(45deg, #ff4444, #dd0000);
}

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

.student-btn {
    background: linear-gradient(45deg, #333333, #111111);
}

.student-btn:hover {
    background: linear-gradient(45deg, #444444, #222222);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-btn {
    background: linear-gradient(45deg, #666666, #333333);
    margin-top: 20px;
}

.back-btn:hover {
    background: linear-gradient(45deg, #777777, #444444);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #ff3333;
    font-weight: bold;
}

.input-group input, select {
    width: 100%;
    padding: 12px;
    border: 2px solid #333333;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus, select:focus {
    outline: none;
    border-color: #ff3333;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
}

.dashboard {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 35px;
    padding-top: 15px;
    border-bottom: 2px solid rgba(255, 51, 51, 0.3);
    min-height: 80px;
}

.dashboard-header h2 {
    color: #ff3333;
    font-size: 2rem;
}

.logout-btn {
    background: linear-gradient(45deg, #666666, #333333);
    padding: 10px 20px;
    font-size: 0.9rem;
}

.dashboard-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Mobile responsiveness for dashboard header */
@media (max-width: 768px) {
    .dashboard-header {
        padding: 10px;
        margin-bottom: 20px;
        padding-bottom: 20px;
        min-height: auto;
    }

    .dashboard-header h2 {
        font-size: 1.4rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        margin-right: 10px;
    }

    .dashboard-header-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .logout-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .notification-btn {
        padding: 8px 12px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .dashboard-header {
        padding: 8px;
    }

    .dashboard-header h2 {
        font-size: 1.2rem;
    }

    .logout-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .notification-btn {
        padding: 6px 10px;
        font-size: 1rem;
    }

    .dashboard-header-actions {
        gap: 6px;
    }
}

/* Quick Navigation Panel */
.quick-nav-panel {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    margin-left: auto;
    margin-right: auto;
    padding: 15px;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.12), rgba(255, 51, 51, 0.08)),
                linear-gradient(to bottom, rgba(18, 18, 18, 0.95), rgba(18, 18, 18, 0.92));
    border-radius: 12px;
    border: 1px solid rgba(255, 51, 51, 0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: top center;
    width: fit-content;
}

/* When stuck/scrolled, shrink to half size and fade */
.quick-nav-panel.is-stuck {
    transform: scale(0.55);
    opacity: 0.5;
    padding: 8px;
    margin-bottom: -20px;
}

/* Restore full visibility on hover when stuck */
.quick-nav-panel.is-stuck:hover {
    transform: scale(0.7);
    opacity: 0.9;
}

/* Force shrink on mobile after tap (overrides hover) */
.quick-nav-panel.force-shrink {
    transform: scale(0.55) !important;
    opacity: 0.5 !important;
    transition: all 0.2s ease !important;
}

/* On touch devices, only grow panel on active touch, not persistent hover */
@media (hover: none) and (pointer: coarse) {
    .quick-nav-panel.is-stuck:hover {
        transform: scale(0.55);
        opacity: 0.5;
    }

    .quick-nav-panel.is-stuck:active {
        transform: scale(0.7);
        opacity: 0.9;
    }
}

.quick-nav-btn {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.1), rgba(255, 51, 51, 0.05));
    border: 2px solid rgba(255, 51, 51, 0.2);
    border-radius: 10px;
    padding: 12px;
    font-size: 1.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    min-height: 50px;
    flex: 1;
    max-width: 80px;
}

.quick-nav-btn:hover {
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.2), rgba(255, 51, 51, 0.1));
    border-color: rgba(255, 51, 51, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 51, 51, 0.2);
}

.quick-nav-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 51, 51, 0.15);
}

/* Prevent sticky hover states on touch devices */
@media (hover: none) and (pointer: coarse) {
    .quick-nav-btn:hover {
        background: linear-gradient(135deg, rgba(255, 51, 51, 0.1), rgba(255, 51, 51, 0.05));
        border-color: rgba(255, 51, 51, 0.2);
        transform: none;
        box-shadow: none;
    }
}

.quick-nav-btn.invert-emoji {
    filter: invert(1);
}

/* Mobile styles for quick nav */
@media (max-width: 768px) {
    .quick-nav-panel {
        gap: 6px;
        padding: 8px;
        margin-bottom: 20px;
    }

    .quick-nav-panel.is-stuck {
        transform: scale(0.6);
        margin-bottom: -15px;
    }

    .quick-nav-panel.is-stuck:hover {
        transform: scale(0.75);
    }

    .quick-nav-btn {
        font-size: 1.4rem;
        padding: 8px;
        min-width: 38px;
        min-height: 38px;
        max-width: 55px;
    }
}

@media (max-width: 480px) {
    .quick-nav-panel {
        gap: 4px;
        padding: 6px;
        margin-bottom: 15px;
    }

    .quick-nav-panel.is-stuck {
        transform: scale(0.65);
        margin-bottom: -12px;
    }

    .quick-nav-panel.is-stuck:hover {
        transform: scale(0.8);
    }

    .quick-nav-btn {
        font-size: 1.2rem;
        padding: 6px;
        min-width: 32px;
        min-height: 32px;
        max-width: 45px;
        border-width: 1.5px;
    }
}

@media (max-width: 380px) {
    .quick-nav-panel {
        gap: 3px;
        padding: 5px;
    }

    .quick-nav-panel.is-stuck {
        transform: scale(0.7);
        margin-bottom: -10px;
    }

    .quick-nav-panel.is-stuck:hover {
        transform: scale(0.85);
    }

    .quick-nav-btn {
        font-size: 1.1rem;
        padding: 5px;
        min-width: 28px;
        min-height: 28px;
        max-width: 40px;
        border-width: 1px;
    }
}

.notification-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px 15px;
    font-size: 1.2rem;
    min-width: auto;
    transition: all 0.3s ease;
}

.notification-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.notification-icon {
    font-size: 1.5rem;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff3333;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.invitation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.6) !important;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 51, 51, 0.2);
    padding-bottom: 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 20px;
    font-size: 0.9rem;
    min-width: auto;
}

.nav-btn.active, .nav-btn:hover {
    background: linear-gradient(45deg, #ff3333, #cc0000);
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.form-group {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.form-group input {
    flex: 1;
    min-width: 200px;
    margin-bottom: 0;
}

.classes-list, .quiz-list, .score-history {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.quiz-list h3 {
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.6),
                 0 0 30px rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
}

.class-item, .quiz-item, .score-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #ff3333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Formatted quiz history styling */
.score-item.formatted-history {
    padding: 20px;
    margin-bottom: 15px;
}

.history-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-quiz-title {
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
}

.history-date {
    font-size: 0.9em;
    color: #ccc;
    opacity: 0.8;
}

.history-score {
    font-size: 1.4em !important;
    font-weight: bold !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.quiz-form {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.question-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.question-item input, .question-item select {
    margin-bottom: 10px;
}

.options-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.assignment-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    align-items: end;
}

.calendar-view {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.quiz-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 51, 51, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 51, 51, 0.3);
}

.quiz-header h3 {
    color: #ff3333;
    font-size: 1.5rem;
}

.timer {
    background: linear-gradient(45deg, #ff3333, #cc0000);
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(45deg, #ff3333, #cc0000);
    border-radius: 4px;
    transition: width 0.3s ease;
}

#question-container {
    margin-bottom: 30px;
}

#question-text {
    font-size: 1.3rem;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    border-left: 4px solid #ff3333;
}

#answer-options {
    display: grid;
    gap: 15px;
}

.answer-option {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.answer-option:hover {
    background: rgba(255, 51, 51, 0.2);
    border-color: #ff3333;
    transform: translateX(5px);
}

.answer-option.selected {
    background: linear-gradient(45deg, #ff3333, #cc0000);
    border-color: #ff3333;
}

.fill-blank-input {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #333333;
    border-radius: 6px;
    padding: 12px;
    color: white;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 10px;
}

.fill-blank-input:focus {
    border-color: #ff3333;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.3);
}

.feedback {
    min-height: 60px;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feedback.correct {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.feedback.incorrect {
    background: linear-gradient(45deg, #ff3333, #cc0000);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

.results-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 51, 51, 0.3);
    max-width: 500px;
    margin: 0 auto;
}

.results-container h2 {
    color: #ff3333;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.score-display {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.error-message {
    background: linear-gradient(45deg, #ff3333, #cc0000);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 51, 51, 0.3);
}

.success-message {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .login-selection, .login-form {
        padding: 20px;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 200px;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input {
        width: 100%;
        min-width: auto;
    }
    
    .admin-nav {
        flex-direction: column;
    }
    
    .assignment-form {
        grid-template-columns: 1fr;
    }
    
    .quiz-container {
        padding: 20px;
    }
    
    .quiz-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

.notification-permission {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    border: 1px solid rgba(255, 51, 51, 0.3);
}

.hidden {
    display: none !important;
}

/* Analytics Dashboard Styles */
.analytics-controls {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

.analytics-controls select {
    min-width: 200px;
    padding: 10px;
    border: 2px solid #333333;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 1rem;
}

.analytics-dashboard {
    margin-top: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
    max-width: 100%;
}

.analytics-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 51, 51, 0.2);
    backdrop-filter: blur(10px);
    height: 350px;
    max-height: 350px;
    overflow: hidden;
}

.analytics-card h4 {
    color: #ff3333;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.analytics-card canvas {
    width: 100%;
    height: 280px;
    max-height: 280px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.average-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 280px;
    max-height: 280px;
    text-align: center;
}

.average-number {
    font-size: 4rem;
    font-weight: bold;
    color: #ff3333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.average-label {
    font-size: 1.2rem;
    color: #ffffff;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .analytics-controls select {
        min-width: auto;
        width: 100%;
    }
    
    .average-number {
        font-size: 2.5rem;
    }
    
    .analytics-card {
        height: 300px;
        max-height: 300px;
    }
    
    .analytics-card canvas {
        height: 220px;
        max-height: 220px;
    }
    
    .average-display {
        height: 220px;
        max-height: 220px;
    }
}

/* Quiz Management Styles */
.quiz-upload-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: center;
}

.quiz-upload-section h4 {
    color: #ff3333;
    margin-bottom: 15px;
}

.existing-quizzes {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
}

.existing-quizzes h4 {
    color: #ff3333;
    margin-bottom: 20px;
}

.quiz-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 4px solid #ff3333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-item.has-bounty {
    background: linear-gradient(135deg, rgba(255, 249, 230, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-left: 4px solid #ffc107;
    border: 2px solid #ffc107;
}

.quiz-item-info {
    flex: 1;
}

.quiz-item-title {
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.quiz-item-details {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #ffffff;
}

.quiz-item-actions {
    display: flex;
    gap: 10px;
}

.quiz-item-actions .btn {
    padding: 8px 15px;
    font-size: 0.9rem;
    min-width: auto;
}

/* Class Students Styles */
.students-content {
    padding: 20px 0;
}

.students-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    justify-content: center;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    border: 1px solid rgba(255, 51, 51, 0.3);
    min-width: 180px;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #ffffff;
    opacity: 0.8;
}

.students-list {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.students-list h3 {
    color: #ff3333;
    margin-bottom: 25px;
    text-align: center;
}

.student-ranking-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    border-left: 4px solid #ff3333;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.student-ranking-item:hover {
    background: rgba(255, 51, 51, 0.1);
    transform: translateX(5px);
}

.student-rank {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff3333;
    margin-right: 20px;
    min-width: 40px;
}

.student-info {
    flex: 1;
}

.student-initials {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.student-details {
    font-size: 0.9rem;
    opacity: 0.7;
    color: #ffffff;
}

.student-score {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ff3333;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .students-stats {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .quiz-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .quiz-item-actions {
        justify-content: center;
    }
    
    .student-ranking-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .student-rank {
        margin-right: 0;
        margin-bottom: 10px;
    }
}

/* Contains question type styling */
.contains-input {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid #ff3333;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 1rem;
    resize: vertical;
    margin-bottom: 15px;
}

.contains-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.contains-input:focus {
    outline: none;
    border-color: #ff6666;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.3);
}

.submit-answer-btn {
    margin-top: 10px;
}

/* Admin question creation styling for contains */
textarea[data-field="keywords"] {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 2px solid #ff3333;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 0.9rem;
    resize: vertical;
    margin: 5px 0;
}

textarea[data-field="keywords"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

textarea[data-field="keywords"]:focus {
    outline: none;
    border-color: #ff6666;
    box-shadow: 0 0 10px rgba(255, 51, 51, 0.2);
}

input[data-field="minKeywords"] {
    padding: 8px 12px;
    border: 2px solid #ff3333;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 0.9rem;
}

input[data-field="minKeywords"]:focus {
    outline: none;
    border-color: #ff6666;
    box-shadow: 0 0 8px rgba(255, 51, 51, 0.2);
}

input[data-field="minKeywords"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* Student dashboard enhancements */
.student-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 51, 51, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    min-width: 180px;
}

.stat-icon {
    font-size: 2.5rem;
}

.singer-coin-icon-stat {
    display: flex;
    align-items: center;
    justify-content: center;
}

.singer-coin-image {
    width: 7.5rem;
    height: 7.5rem;
    object-fit: contain;
}

/* Singer Coins stats panel styling */
.singer-coins-panel {
    background-color: #FDD017 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 8px 32px rgba(253, 208, 23, 0.4) !important;
    animation: coinsPanelWiggle 3s ease-in-out infinite;
    /* Make 20% smaller */
    padding: 24px !important; /* 30px * 0.8 = 24px */
    min-width: 144px !important; /* 180px * 0.8 = 144px */
    transform: scale(0.9); /* Additional 10% reduction for overall smaller appearance */
}

.singer-coins-panel .stat-number {
    color: #1a1a1a !important;
    animation: coinsNumberPulse 2s ease-in-out infinite;
}

.singer-coins-panel .stat-label {
    color: #1a1a1a !important;
}

/* Game Coins stats panel styling (blue-themed) */
.game-coins-panel {
    background-color: #4A90E2 !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 8px 32px rgba(74, 144, 226, 0.25) !important;
    animation: gameCoinsPanelWiggle 3s ease-in-out infinite;
    /* Make 30% smaller than Singer Coins */
    padding: 21px !important; /* 30px * 0.7 = 21px */
    min-width: 126px !important; /* 180px * 0.7 = 126px */
    transform: scale(0.7); /* 30% reduction for overall smaller appearance */
}

.game-coins-panel .stat-number {
    color: #ffffff !important;
    animation: gameCoinsNumberPulse 2s ease-in-out infinite;
}

.game-coins-panel .stat-label {
    color: #ffffff !important;
}

/* Ichthus Collection stats panel styling (ocean blue-green themed) */
.ichthus-collection-panel {
    background: linear-gradient(135deg, #4CAFFA 0%, #2E86C1 100%) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 8px 32px rgba(76, 175, 250, 0.3) !important;
    animation: ichthysPanelWiggle 3.5s ease-in-out infinite;
}

.ichthus-collection-panel .stat-number {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ichthus-collection-panel .stat-label {
    color: #ffffff !important;
}

.ichthus-collection-panel .stat-icon {
    font-size: 3.5rem;
    animation: fishIconFloat 2.5s ease-in-out infinite;
}

@keyframes ichthysPanelWiggle {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    25% {
        transform: rotate(-1deg) scale(1.02);
    }
    50% {
        transform: rotate(0deg) scale(1);
    }
    75% {
        transform: rotate(1deg) scale(1.02);
    }
}

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

.game-coin-icon-stat {
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-coin-image {
    width: 7.5rem;
    height: 7.5rem;
    object-fit: contain;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Knockout Mode Styles */
.knockout-mode-section {
    background: rgba(255, 153, 0, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 153, 0, 0.4);
    box-shadow: 0 4px 16px rgba(255, 153, 0, 0.2);
}

.knockout-mode-section h3 {
    margin-bottom: 20px;
    color: #ff9900;
    text-align: center;
    font-size: 1.5rem;
}

.knockout-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    justify-content: center;
}

.knockout-card {
    background: rgba(255, 153, 0, 0.15);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 153, 0, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    min-width: 180px;
}

.knockout-icon {
    font-size: 2.5rem;
}

.knockout-info {
    display: flex;
    flex-direction: column;
}

.knockout-number {
    font-size: 1.8rem;
    font-weight: bold;
    color: #ffaa33;
}

.knockout-label {
    font-size: 0.9rem;
    color: #cccccc;
    margin-top: 4px;
}

.knockout-controls {
    text-align: center;
}

.knockout-btn {
    background: linear-gradient(45deg, #ff9900, #ffaa33);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 153, 0, 0.3);
}

.knockout-btn:hover {
    background: linear-gradient(45deg, #ffaa33, #ffbb44);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 153, 0, 0.4);
}

.knockout-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

/* Knockout warning message */
.knockout-warning {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9900 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    animation: pulse-warning 1.5s ease-in-out infinite;
}

.knockout-warning-content {
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1.6;
}

@keyframes pulse-warning {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
        transform: scale(1.02);
    }
}

/* Knockout lockout (already played) */
.knockout-lockout-panel {
    background: linear-gradient(135deg, #666 0%, #444 100%);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    opacity: 0.8;
}

.knockout-lockout-message {
    text-align: center;
    font-size: 1.2rem;
    color: #ddd;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Greyed out section when locked */
.knockout-mode-section.locked {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(80%);
}

.knockout-mode-section.locked .knockout-btn {
    background: linear-gradient(45deg, #666, #888);
    cursor: not-allowed;
}

#knockout-leaderboard-section {
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 153, 0, 0.2);
}

#knockout-leaderboard-section h4 {
    color: #ff9900;
    margin-bottom: 15px;
    text-align: center;
}

.leaderboard-entry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 15px;
    background: rgba(255, 153, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 5px;
    border-left: 3px solid #ff9900;
}

.leaderboard-entry:first-child {
    background: rgba(255, 215, 0, 0.2);
    border-left-color: #ffd700;
}

.leaderboard-entry:nth-child(2) {
    background: rgba(192, 192, 192, 0.2);
    border-left-color: #c0c0c0;
}

.leaderboard-entry:nth-child(3) {
    background: rgba(205, 127, 50, 0.2);
    border-left-color: #cd7f32;
}

/* Knockout Mode Quiz Interface Styles */
.knockout-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(255, 153, 0, 0.15);
    border-radius: 8px;
    border: 1px solid rgba(255, 153, 0, 0.3);
}

.knockout-progress-label {
    color: #ff9900;
    font-weight: bold;
}

.knockout-progress-score {
    color: #ffaa33;
    font-size: 1.5rem;
    font-weight: bold;
}

.feedback.knockout-ending {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
    animation: knockoutPulse 0.5s ease-in-out;
}

@keyframes knockoutPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Knockout Results Styles */
.knockout-results {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.knockout-results-content {
    background: rgba(255, 153, 0, 0.1);
    border: 2px solid rgba(255, 153, 0, 0.4);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(255, 153, 0, 0.2);
    backdrop-filter: blur(10px);
}

.knockout-results-content h2 {
    color: #ff9900;
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.knockout-final-score {
    background: rgba(255, 153, 0, 0.15);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 153, 0, 0.3);
}

.score-label {
    display: block;
    color: #cccccc;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.score-value {
    display: block;
    color: #ffaa33;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.new-high-score {
    background: linear-gradient(45deg, #ffd700, #ffaa00);
    color: #000;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 25px;
    animation: goldShine 2s ease-in-out infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes goldShine {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.4); }
}

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

.knockout-actions .knockout-btn {
    min-width: 150px;
}

.save-warning {
    background: rgba(255, 193, 7, 0.15);
    border: 1px solid rgba(255, 193, 7, 0.4);
    color: #ffc107;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1rem;
    text-align: center;
}

.performance-graph {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 51, 51, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.performance-graph h3 {
    margin-bottom: 20px;
    color: #ff3333;
}

#student-performance-chart {
    width: 100% !important;
    height: 300px !important;
    max-width: 100%;
}

@media (max-width: 768px) {
    .student-stats {
        justify-content: center;
    }

    .stat-card {
        min-width: 140px;
    }

    #student-performance-chart {
        height: 250px !important;
    }
}

/* Notification Testing Section */
.notification-test-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.notification-form {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.notification-info {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.notification-form h4,
.notification-info h4 {
    color: #ff3333;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #ff3333;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6666;
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.notification-status {
    padding: 15px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-status div {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 5px;
}

.permission-granted {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.permission-denied {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #F44336;
    color: #F44336;
}

.permission-default {
    background: rgba(255, 152, 0, 0.2);
    border: 1px solid #FF9800;
    color: #FF9800;
}

.notification-success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid #4CAF50;
    color: #4CAF50;
}

.notification-error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid #F44336;
    color: #F44336;
}

.notification-info {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid #2196F3;
    color: #2196F3;
}

.notification-info ul {
    list-style: none;
    padding-left: 0;
}

.notification-info li {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border-left: 4px solid #ff3333;
}

@media (max-width: 768px) {
    .notification-test-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .main-banner {
        max-height: 200px;
        margin: 0 auto;
        width: calc(100% - 20px);
        max-width: 90%;
    }
    
    .banner-container {
        padding: 10px 0;
        margin-bottom: 20px;
        text-align: center;
    }
}

/* Bulk Assignment Styles */
.assignment-subsection {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    border-left: 4px solid #ff3333;
}

.assignment-subsection h4 {
    color: #ff3333;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.assignment-subsection h5 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.selection-header h5 {
    margin: 0;
}

.selection-header select {
    padding: 5px 8px;
    border-radius: 5px;
    border: 1px solid rgba(255, 51, 51, 0.3);
    background: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-size: 0.9rem;
}

.bulk-assignment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.bulk-assignment-options {
    grid-column: 1 / -1;
}

.selectable-list {
    max-height: 200px;
    overflow-y: auto;
    border: 2px solid rgba(255, 51, 51, 0.3);
    border-radius: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
}

.selectable-item {
    padding: 10px 15px;
    margin: 5px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.selectable-item:hover {
    background: rgba(255, 51, 51, 0.2);
    border-color: rgba(255, 51, 51, 0.5);
}

.selectable-item.selected {
    background: rgba(255, 51, 51, 0.4);
    border-color: #ff3333;
    color: #ffffff;
    font-weight: bold;
}

.bulk-assignment-options .form-group {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.bulk-assignment-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    color: #ffffff;
}

.bulk-assignment-options input[type="radio"] {
    width: auto;
    margin: 0;
}

.bulk-assignment-options input[type="date"] {
    margin-left: 20px;
    padding: 8px 12px;
}

.bulk-assign-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff3333, #cc0000);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bulk-assign-btn:hover {
    background: linear-gradient(45deg, #cc0000, #990000);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 51, 0.4);
}

@media (max-width: 768px) {
    .bulk-assignment-form {
        grid-template-columns: 1fr;
    }
}

/* Scheduled Notifications Styles */
.scheduled-notifications-list {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 51, 51, 0.2);
}

.scheduled-notifications-list h4 {
    color: #ff3333;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(255, 51, 51, 0.3);
    padding-bottom: 8px;
}

.scheduled-notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 4px solid #ff3333;
    transition: all 0.3s ease;
}

.scheduled-notification-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.scheduled-notification-item.past {
    opacity: 0.6;
    border-left-color: #666;
}

.notification-details {
    flex: 1;
}

.notification-details strong {
    color: #ff3333;
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.notification-details p {
    color: #ffffff;
    margin-bottom: 8px;
    font-style: italic;
}

.notification-meta {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #ccc;
}

.notification-meta span {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.status-badge {
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.status-badge.scheduled {
    background: linear-gradient(45deg, #ff3333, #cc0000) !important;
    color: white !important;
}

.status-badge.sent {
    background: linear-gradient(45deg, #28a745, #1e7e34) !important;
    color: white !important;
}

.cancel-btn {
    background: linear-gradient(45deg, #dc3545, #c82333);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.cancel-btn:hover {
    background: linear-gradient(45deg, #c82333, #a71e2a);
    transform: scale(1.05);
}

/* Quiz Meta Fields Styling */
.quiz-meta-fields {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.form-field {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    flex: 1;
}

.form-field label {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.form-field select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background: white;
    color: black;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-field select:focus {
    outline: none;
    border-color: #4a90e2;
}

.form-field select:hover {
    border-color: #bbb;
}

@media (max-width: 600px) {
    .quiz-meta-fields {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-field {
        min-width: unset;
    }
}

/* Another Round Section Styling */
.another-round-section {
    background: linear-gradient(135deg, #4a1a1a 0%, #2d0000 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15), 0 4px 15px rgba(139, 0, 0, 0.2);
    border: 2px solid #660000;
    text-align: center;
}

#student-dashboard .another-round-content {
    display: flex;
    gap: 30px;
    align-items: stretch;
    margin-top: 20px;
}

.worst-quiz-suggestion {
    flex: 1;
    background: rgba(220, 53, 69, 0.1);
    border: 2px solid rgba(220, 53, 69, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.motivational-message {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 15px;
    line-height: 1.4;
    color: #ff6b7a;
}

.btn.worst-quiz-btn {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    border: none;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
    margin: 0 auto;
    display: block;
    animation: worstQuizWiggle 2s ease-in-out infinite, worstQuizGlow 3s ease-in-out infinite !important;
}

.btn.worst-quiz-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 12px 40px rgba(220, 53, 69, 0.6) !important;
    transform: translateY(-2px);
}

.choose-quiz-section {
    flex: 1;
    background: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.choose-quiz-section p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

@media (max-width: 768px) {
    #student-dashboard .another-round-content {
        flex-direction: column;
        gap: 20px;
    }
}

.another-round-section h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.another-round-section p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.another-round-quiz-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 2px solid #333333;
}

.another-round-quiz-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: #555555;
    transform: translateY(-2px);
}

.another-round-quiz-info {
    flex-grow: 1;
}

.another-round-quiz-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 1rem;
}

.another-round-quiz-meta {
    font-size: 0.85rem;
    opacity: 0.8;
}

.another-round-btn {
    background: linear-gradient(45deg, #ff3333, #cc0000);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin: 0 auto;
    display: block;
}

.another-round-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #ff4444, #dd0000);
    transform: scale(1.05);
}

.another-round-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.another-round-empty {
    text-align: center;
    padding: 30px;
    opacity: 0.7;
    font-style: italic;
}

/* Another Round Page Styling */
#another-round-page .another-round-content {
    padding: 20px;
    display: block; /* Override flex display for the page */
    gap: initial; /* Reset gap from flex */
}

.info-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #333333;
}

.info-section p {
    margin: 0;
    color: #ffffff;
    font-size: 1rem;
}

.unit-filter-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border: 2px solid #333333;
}

.unit-filter-section h4 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 1.1rem;
}

.unit-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.unit-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ffffff;
    border: 2px solid transparent;
}

.unit-filter-item:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.unit-filter-item input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.unit-filter-item span {
    font-size: 0.95rem;
    font-weight: 500;
}

.quiz-selection-list {
    display: grid;
    gap: 15px;
}

.quiz-selection-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.quiz-selection-item:hover:not(.disabled) {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.quiz-selection-item.disabled {
    background: #f8f9fa;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.6;
}

.quiz-selection-item.disabled::after {
    content: "Completed Today";
    position: absolute;
    top: 10px;
    right: 15px;
    background: #6c757d;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

/* Bounty System Styling */
.quiz-selection-item.has-bounty {
    border-color: #ffc107;
    background: linear-gradient(135deg, #fff9e6 0%, #ffffff 100%);
}

.quiz-selection-item.has-bounty:hover:not(.disabled) {
    border-color: #ff9800;
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.25);
}

.bounty-badge {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
    margin-left: 10px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
    animation: pulse-bounty 2s ease-in-out infinite;
}

@keyframes pulse-bounty {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.bounty-notice {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 8px 12px;
    margin: 12px 0;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #856404;
    font-weight: 500;
}

.bounty-success-message {
    background: linear-gradient(135deg, #4caf50 0%, #8bc34a 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.2rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    animation: bounty-celebrate 0.5s ease-out;
}

.bounty-fail-message {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    font-size: 1.1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

@keyframes bounty-celebrate {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.quiz-selection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.quiz-selection-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.quiz-selection-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.quiz-meta-badge {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.quiz-meta-badge.avg-green {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.quiz-meta-badge.avg-yellow {
    background: linear-gradient(45deg, #ffc107, #fd7e14);
}

.quiz-meta-badge.avg-red {
    background: linear-gradient(45deg, #dc3545, #c82333);
}

.quiz-meta-badge.avg-grey {
    background: linear-gradient(45deg, #6c757d, #495057);
}

.quiz-last-completed {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.quiz-selection-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.start-another-round-btn {
    background: linear-gradient(45deg, #ff3333, #cc0000);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.start-another-round-btn:hover:not(:disabled) {
    background: linear-gradient(45deg, #ff4444, #dd0000);
    transform: scale(1.05);
}

.start-another-round-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .quiz-selection-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .quiz-selection-meta {
        flex-direction: column;
        gap: 8px;
    }
}


/* Class Meta Fields - Same styling as quiz meta fields */
.class-meta-fields {
    display: flex;
    gap: 20px;
    margin: 15px 0;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .class-meta-fields {
        flex-direction: column;
        gap: 15px;
    }
}

/* Knockout Leaderboard Styling */
.leaderboard-entry.current-student {
    background-color: #e9ecef !important;
    border: 1px solid #495057 !important;
    font-weight: bold;
    color: #000 !important;
}

.leaderboard-entry.silver-medal {
    color: #000 !important;
}

/* Lifeline System Styling */
.quiz-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.lifeline-button {
    background: linear-gradient(45deg, #28a745, #34ce57);
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.lifeline-button:hover {
    background: linear-gradient(45deg, #34ce57, #5dd675);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

.lifeline-button:disabled {
    background: #6c757d;
    border-color: #6c757d;
    color: #adb5bd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lifeline-button:disabled:hover {
    background: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Answer Multiplier Display */
.multiplier-display {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(106, 17, 203, 0.4);
    transition: all 0.3s ease;
}

.multiplier-label {
    font-size: 18px;
    font-weight: 600;
    filter: brightness(1.3) saturate(1.5) hue-rotate(-10deg);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8), 0 2px 4px rgba(0, 0, 0, 0.3);
}

.multiplier-value {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    --wiggle-degrees: 0deg;
}

.multiplier-value.multiplier-active {
    animation: multiplierWiggle 0.5s ease-in-out;
    color: #ffeb3b;
    text-shadow: 0 0 10px rgba(255, 235, 59, 0.8);
}

@keyframes multiplierWiggle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    10% { transform: scale(1.1) rotate(var(--wiggle-degrees)); }
    30% { transform: scale(1.15) rotate(calc(var(--wiggle-degrees) * -1)); }
    50% { transform: scale(1.2) rotate(var(--wiggle-degrees)); }
    70% { transform: scale(1.15) rotate(calc(var(--wiggle-degrees) * -1)); }
    90% { transform: scale(1.1) rotate(var(--wiggle-degrees)); }
}

/* SingerSnap Countdown Counter */
.singersnap-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    padding: 10px 16px;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
    transition: all 0.3s ease;
    margin: 0 10px;
}

.singersnap-counter .fish-emoji {
    font-size: 24px;
    transition: transform 0.3s ease;
}

.singersnap-counter .count-text {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Intensity levels - wiggle and glow more as counter gets closer to 0 */
.singersnap-counter.intensity-0 {
    /* No animation at 0 correct */
}

.singersnap-counter.intensity-1 {
    animation: snapWiggle1 2s ease-in-out infinite;
}

.singersnap-counter.intensity-1 .fish-emoji {
    animation: fishWiggle1 2s ease-in-out infinite;
}

.singersnap-counter.intensity-2 {
    animation: snapWiggle2 1s ease-in-out infinite;
    box-shadow: 0 4px 20px rgba(0, 210, 255, 0.5), 0 0 15px rgba(0, 210, 255, 0.4);
}

.singersnap-counter.intensity-2 .fish-emoji {
    animation: fishWiggle2 1s ease-in-out infinite;
}

.singersnap-counter.intensity-3 {
    animation: snapWiggle3 0.5s ease-in-out infinite;
    box-shadow: 0 4px 30px rgba(0, 210, 255, 0.8), 0 0 25px rgba(0, 210, 255, 0.6);
}

.singersnap-counter.intensity-3 .fish-emoji {
    animation: fishWiggle3 0.5s ease-in-out infinite;
}

/* Wiggle animations for the counter container */
@keyframes snapWiggle1 {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.02) rotate(1deg); }
}

@keyframes snapWiggle2 {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(-2deg); }
    75% { transform: scale(1.05) rotate(2deg); }
}

@keyframes snapWiggle3 {
    0%, 100% { transform: scale(1) rotate(0deg); }
    12.5% { transform: scale(1.08) rotate(-3deg); }
    37.5% { transform: scale(1.1) rotate(3deg); }
    62.5% { transform: scale(1.08) rotate(-3deg); }
    87.5% { transform: scale(1.1) rotate(3deg); }
}

/* Fish emoji wiggle animations */
@keyframes fishWiggle1 {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(5deg); }
}

@keyframes fishWiggle2 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.05); }
    75% { transform: rotate(10deg) scale(1.05); }
}

@keyframes fishWiggle3 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    12.5% { transform: rotate(-15deg) scale(1.1); }
    37.5% { transform: rotate(15deg) scale(1.15); }
    62.5% { transform: rotate(-15deg) scale(1.1); }
    87.5% { transform: rotate(15deg) scale(1.15); }
}

/* Knockout mode lifeline countdown */
.knockout-countdown {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #17a2b8;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: bold;
    color: #17a2b8;
    margin: 0 10px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.knockout-countdown span {
    color: #17a2b8;
}

/* Unit Progress Chart Styling */
.unit-progress-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.unit-progress-section h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.unit-progress-section p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

#unit-progress-chart {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 20px;
    padding: 20px 0;
    min-height: 200px;
}

.unit-progress-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 60px;
}

.unit-label {
    font-weight: bold;
    font-size: 0.9rem;
    text-align: center;
    order: 2;
}

.progress-bar-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 40px;
    height: 150px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    order: 1;
}

.progress-bar-fill {
    width: 100%;
    border-radius: 0 0 10px 10px;
    transition: height 0.5s ease-in-out;
    position: relative;
    min-height: 2px;
}

.progress-bar-fill.red {
    background: linear-gradient(180deg, #e74c3c, #c0392b);
}

.progress-bar-fill.amber {
    background: linear-gradient(180deg, #f39c12, #e67e22);
}

.progress-bar-fill.green {
    background: linear-gradient(180deg, #27ae60, #2ecc71);
}

.progress-percentage {
    font-weight: bold;
    font-size: 0.8rem;
    text-align: center;
    order: 0;
    margin-bottom: 5px;
}

.unit-progress-empty {
    text-align: center;
    padding: 40px 20px;
    opacity: 0.7;
    font-style: italic;
}

/* Exception Days Selection Styles */
.exception-days-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    max-height: none;
    padding: 15px;
    margin: 10px 0;
}

.exception-day {
    padding: 12px 15px;
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 500;
    min-height: auto;
}

/* Legacy exception-days styling (kept for compatibility) */
.exception-days {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.exception-days label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.exception-days label:hover {
    background-color: rgba(0, 150, 136, 0.1);
}

.exception-days input[type="checkbox"] {
    margin: 0;
}

#repeat-options {
    background: rgba(0, 150, 136, 0.05);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(0, 150, 136, 0.2);
    margin: 10px 0;
}

.repeating-notifications-list {
    margin-top: 30px;
    border-top: 2px solid #e0e0e0;
    padding-top: 20px;
}

.repeating-notification-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    position: relative;
}

.repeating-notification-item.active {
    border-left: 4px solid #28a745;
    background: #f8fff9;
}

.repeating-notification-item.paused {
    border-left: 4px solid #ffc107;
    background: #fffef8;
}

.repeating-notification-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 4px solid #ff3333;
    transition: all 0.3s ease;
}

.repeating-notification-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.notification-actions {
    display: flex;
    gap: 10px;
    flex-direction: column;
    align-items: flex-end;
    min-width: 120px;
}

.notification-actions .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    min-width: 80px;
    margin: 0;
}

.repeat-info {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 5px;
}

.exception-info {
    font-size: 0.8rem;
    color: #dc3545;
    font-style: italic;
    margin-top: 3px;
}

/* Push Notification Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: linear-gradient(145deg, #2c2c2c, #3c3c3c);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    width: 90%;
    margin: 20px;
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    padding: 25px 30px 15px;
    border-bottom: 1px solid #444;
    text-align: center;
}

.modal-header h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin: 0;
}

.modal-body {
    padding: 25px 30px;
    color: #e0e0e0;
    line-height: 1.6;
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body li {
    margin: 8px 0;
    font-size: 0.95rem;
}

.modal-footer {
    padding: 20px 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
    border-top: 1px solid #444;
}

.modal .btn {
    flex: 1;
    padding: 12px 20px;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal .btn-primary {
    background: linear-gradient(135deg, #4a9eff, #0066cc);
    color: white;
}

.modal .btn-primary:hover {
    background: linear-gradient(135deg, #5aa8ff, #0077ee);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
}

.modal .btn-secondary {
    background: linear-gradient(135deg, #666, #555);
    color: white;
}

.modal .btn-secondary:hover {
    background: linear-gradient(135deg, #777, #666);
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Push Notification Setup Section */
.notification-setup-section {
    background: linear-gradient(145deg, #2a2a2a, #3a3a3a);
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #444;
}

.notification-setup-section h3 {
    color: #4a9eff;
    margin-bottom: 10px;
}

.notification-setup-section p {
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.notification-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-controls .btn {
    align-self: flex-start;
    padding: 12px 24px;
    font-size: 1rem;
}

.notification-status {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    min-height: 20px;
}

.notification-status.success {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.notification-status.error {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.notification-status.info {
    background: rgba(74, 158, 255, 0.2);
    color: #4a9eff;
    border: 1px solid rgba(74, 158, 255, 0.3);
}

/* Singer Coins Stat Card */
.stat-card.singer-coins-stat {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #3a3a3a, #2d2d2d);
}

/* Singer Coin Display (just the coin) */
.singer-coins-display {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFD700;
    padding: 8px;
    border-radius: 15px;
    border: 2px solid #DAA520;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.singer-coin-icon {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

/* Singer Coin Counter (completely separate panel) */
.singer-coin-counter {
    background: #FFD700;
    padding: 6px 10px;
    border-radius: 12px;
    border: 2px solid #DAA520;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.singer-coin-count {
    font-weight: 700;
    color: #8B4513;
    font-size: 1.65rem;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
    min-width: 20px;
    text-align: center;
    display: block;
}


/* Simple Wiggle Animation at 50% */
@keyframes coinWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-3deg) scale(1.25); }
    50% { transform: rotate(3deg) scale(1.5); }
    75% { transform: rotate(-2deg) scale(1.25); }
}

.singer-coin-icon.wiggle {
    animation: coinWiggle 1s ease-in-out;
}

/* Counter Animation */
@keyframes countUp {
    0% { transform: scale(1); color: #8B4513; }
    50% { transform: scale(1.3); color: #B22222; text-shadow: 0 0 10px rgba(178, 34, 34, 0.5); }
    100% { transform: scale(1); color: #8B4513; }
}

.singer-coin-count.animate {
    animation: countUp 0.5s ease-in-out;
}

/* Quiz Screen Coins Display */
.singer-coins-display.quiz-coins {
    padding: 4px;
}

.singer-coins-display.quiz-coins .singer-coin-icon {
    width: 24px;
    height: 24px;
}

/* Quiz Screen Counter */
.singer-coin-counter.quiz-counter {
    padding: 4px 8px;
    margin-left: 10px;
}

.singer-coin-counter.quiz-counter .singer-coin-count {
    font-size: 0.9rem;
}

/* Quiz coin celebration animations triggered on correct answers */
.singer-coins-display.quiz-coins.celebrate {
    animation: quizCoinCelebration 0.6s ease-in-out;
}

.singer-coin-counter.quiz-counter.celebrate {
    animation: quizCoinCelebration 0.6s ease-in-out;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .singer-coins-display {
        right: 10px;
        top: 10px;
        padding: 6px 10px;
    }

    .singer-coin-icon {
        width: 20px;
        height: 20px;
    }

    .singer-coin-count {
        font-size: 1rem;
    }

    /* Fix unit progress chart mobile layout */
    #unit-progress-chart {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }

    .unit-progress-bar {
        min-width: 45px;
        flex: 0 0 auto;
    }

    /* Fix knockout stats mobile layout */
    .knockout-stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .knockout-card {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    /* Fix quiz controls mobile layout */
    .quiz-controls {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .lifeline-button {
        padding: 6px 10px;
        font-size: 0.9rem;
    }

    .knockout-countdown {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .timer {
        font-size: 0.9rem;
    }
}

/* Avatar System Styles */

/* Student Avatar Display */
.avatar-display-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.avatar-display {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0;
}

.avatar-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 15px;
    min-width: 120px;
}

.avatar-preview {
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    background: rgba(255, 255, 255, 0.1);
}

/* Avatar is twice as large as pet */
.avatar-item:first-child .avatar-preview {
    width: 120px;
    height: 120px;
}

.avatar-item:last-child .avatar-preview {
    width: 60px;
    height: 60px;
}

/* No Pet Message */
.no-pet-message {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-label {
    font-weight: bold;
    margin-bottom: 10px;
    color: white;
}

.change-avatar-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-avatar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.shop-link {
    text-align: center;
    margin-top: 15px;
}

.shop-btn {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #1a1a1a;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

/* Avatar Shop Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.modal .close:hover,
.modal .close:focus {
    color: #fff;
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a, #2d1b1b);
    border-radius: 12px;
    max-width: 800px;
    max-height: 90vh;
    width: 90%;
    overflow-y: auto;
    border: 2px solid #4CAF50;
    position: relative;
    padding: 20px;
}

.avatar-shop-content {
    max-width: 900px;
    width: 95%;
}

.modal-header {
    background: rgba(76, 175, 80, 0.1);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(76, 175, 80, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #4CAF50;
}

.modal-close {
    background: none;
    border: none;
    color: #ff6b35;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: #ff4444;
    transform: scale(1.1);
}

.modal-body {
    padding: 20px;
}

/* Student Coins Display in Modal */
.student-coins-display {
    background: rgba(255, 215, 0, 0.1);
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.coins-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffd700;
}

.singer-coin-image-small {
    width: 24px;
    height: 24px;
}

/* Shop Categories */
.shop-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ccc;
    border: 2px solid transparent;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border-color: #4CAF50;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Shop Items Container */
.shop-items-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.student-shop-item {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.student-shop-item:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

.student-shop-item.owned {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.shop-item-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
}

.shop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-shop-item.owned .shop-item-image {
    border-color: #ffd700;
}

.shop-item-info h5 {
    color: #4CAF50;
    margin-bottom: 8px;
}

.item-description {
    font-size: 0.85rem;
    color: #ccc;
    margin-bottom: 10px;
}

.item-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.item-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #ffd700;
    font-weight: bold;
}

.item-footer .btn,
.item-footer .btn-owned {
    width: 100%;
}

.btn-owned {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #1a1a1a;
}

.btn-owned:hover {
    background: linear-gradient(135deg, #ffed4a, #ffd700);
}

/* Limited Edition Item Styles */
.student-shop-item.limited-edition {
    background: rgba(128, 128, 128, 0.15);
    border: 2px solid rgba(192, 192, 192, 0.4);
    animation: silverGlow 2s ease-in-out infinite;
}

.student-shop-item.limited-edition:hover {
    border-color: rgba(192, 192, 192, 0.8);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.4), 0 0 40px rgba(192, 192, 192, 0.2);
    transform: translateY(-2px);
}

.limited-edition-text {
    text-align: center;
    padding: 10px;
    width: 100%;
}

@keyframes silverGlow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(192, 192, 192, 0.3), 0 0 20px rgba(192, 192, 192, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(192, 192, 192, 0.5), 0 0 40px rgba(192, 192, 192, 0.3), 0 0 60px rgba(192, 192, 192, 0.1);
    }
}

@keyframes wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-2deg);
    }
    75% {
        transform: rotate(2deg);
    }
}

/* Admin Avatar Shop Styles */
.avatar-shop-form {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
}

.form-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 8px;
}

.avatar-shop-list {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px;
    border-radius: 8px;
}

.shop-items-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.filter-controls {
    display: flex;
    gap: 15px;
}

.filter-controls label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.shop-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.shop-item-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s ease;
}

.shop-item-card:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
}

.shop-item-card .shop-item-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid white;
}

.shop-item-card .shop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-item-info {
    text-align: center;
    margin-bottom: 15px;
}

.shop-item-info h5 {
    color: #4CAF50;
    margin-bottom: 5px;
}

.item-type {
    text-transform: capitalize;
    color: #ff6b35;
    font-weight: bold;
    font-size: 0.85rem;
}

.item-price {
    color: #ffd700;
    font-weight: bold;
}

.item-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-top: 5px;
}

.item-status.available {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.item-status.unavailable {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
}

.shop-item-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 0 5px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-danger {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

.no-items {
    text-align: center;
    color: #666;
    padding: 40px;
    font-style: italic;
}

.loading {
    text-align: center;
    color: #4CAF50;
    padding: 20px;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .avatar-display {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .avatar-item {
        min-width: auto;
        width: 100%;
        max-width: 200px;
    }

    .shop-items-container {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .avatar-shop-form {
        grid-template-columns: 1fr;
    }

    .shop-items-grid {
        grid-template-columns: 1fr;
    }

    .shop-items-controls {
        flex-direction: column;
        gap: 10px;
    }

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

/* Kephalay Orchard Section Styling */
.kephalay-orchard-section {
    background: linear-gradient(135deg, #1a3a1a 0%, #0d1f0d 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 2px solid #2d5a2d;
    text-align: center;
}

.kephalay-orchard-section h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #7fdb7f;
}

.kephalay-orchard-section p {
    margin: 0 0 20px 0;
    color: #b8e6b8;
    font-size: 0.9rem;
}

.orchard-stats-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    padding: 8px;
    background: rgba(0,0,0,0.2);
    border-radius: 8px;
    flex-wrap: wrap;
}

.stat-mini {
    font-size: 0.75rem;
    color: #b8e6b8;
    padding: 4px 10px;
    border-radius: 5px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(127,219,127,0.2);
    font-weight: 500;
}

.stat-mini.fruit {
    color: #7fdb7f;
    border-color: rgba(127,219,127,0.4);
}

.stat-mini.autumn {
    color: #ffb347;
    border-color: rgba(255,179,71,0.4);
}

.stat-mini.dead {
    color: #999;
    border-color: rgba(153,153,153,0.4);
}

.stat-mini.prestige {
    color: #ffd700;
    border-color: rgba(255,215,0,0.4);
    background: rgba(255,215,0,0.05);
}

.orchard-coin-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
}

#orchard-coin-display {
    transition: transform 0.3s ease-out;
}

.orchard-coin-image {
    width: 35px;
    height: 35px;
    animation: pulse 2s ease-in-out infinite;
}

.orchard-grid-container {
    background: url('/kephalay-orchard-resources/SingleSoilTile.jpg');
    background-repeat: repeat;
    background-size: 100px 100px;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.orchard-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.orchard-claim-btn {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: white;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #7fdb7f;
    transition: all 0.3s ease;
}

.orchard-claim-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #66BB6A 0%, #4CAF50 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76,175,80,0.4);
}

.orchard-claim-btn:disabled {
    background: #555;
    border-color: #777;
    cursor: not-allowed;
    opacity: 0.6;
}

.orchard-prestige-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    border: 2px solid #FFEB3B;
    transition: all 0.3s ease;
}

.orchard-prestige-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #FFE44D 0%, #FFB733 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,215,0,0.4);
}

.orchard-prestige-btn:disabled {
    background: #555;
    border-color: #777;
    cursor: not-allowed;
    opacity: 0.6;
}

.orchard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
}

/* Mobile: ensure at least 2 trees per row */
@media (max-width: 768px) {
    .orchard-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
}

/* Tablet and larger: more columns */
@media (min-width: 769px) {
    .orchard-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

.orchard-tree-card {
    background: transparent;
    padding: 5px;
    border-radius: 0;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
    cursor: pointer;
    min-height: 40px;
    overflow: hidden;
}

.orchard-tree-card:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.tree-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
}

.orchard-grid::-webkit-scrollbar {
    width: 8px;
}

.orchard-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}

.orchard-grid::-webkit-scrollbar-thumb {
    background: #7fdb7f;
    border-radius: 10px;
}

.orchard-grid::-webkit-scrollbar-thumb:hover {
    background: #66BB6A;
}

/* Orchard Tree Modal/Popup */
.orchard-tree-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.orchard-tree-modal-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    text-align: center;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.orchard-tree-modal-content.dead {
    border: 5px solid #e74c3c;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe5e5 100%);
}

.orchard-tree-modal-content.autumn {
    border: 5px solid #f39c12;
    background: linear-gradient(135deg, #fff9f0 0%, #fff0db 100%);
}

.orchard-tree-modal-content.fruit {
    border: 5px solid #27ae60;
    background: linear-gradient(135deg, #f0fff4 0%, #d4f4dd 100%);
}

.orchard-tree-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.orchard-tree-modal-close:hover {
    color: #000;
}

.orchard-tree-modal-content h3 {
    margin: 0 0 20px 0;
    font-size: 1.5rem;
    color: #333;
}

.tree-score-display {
    font-size: 3rem;
    font-weight: bold;
    margin: 20px 0;
}

.orchard-tree-modal-content.dead .tree-score-display {
    color: #e74c3c;
}

.orchard-tree-modal-content.autumn .tree-score-display {
    color: #f39c12;
}

.orchard-tree-modal-content.fruit .tree-score-display {
    color: #27ae60;
}

.tree-date {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.tree-message {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
    margin: 20px 0;
    padding: 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.6);
}

.tree-difficulty {
    font-size: 0.9rem;
    color: #666;
    margin-top: 15px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.tree-quiz-btn {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(76, 175, 80, 0.3);
    width: 100%;
}

.tree-quiz-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049 0%, #4CAF50 100%);
}

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

.tree-quiz-btn-disabled {
    background: linear-gradient(135deg, #999 0%, #888 100%);
    cursor: not-allowed;
    opacity: 0.7;
    box-shadow: none;
}

.tree-quiz-btn-disabled:hover {
    transform: none;
    box-shadow: none;
    background: linear-gradient(135deg, #999 0%, #888 100%);
}

/* Flashcard Modal Styling */
.flashcard-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease;
}

.flashcard-modal-content {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
}

.flashcard-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.flashcard-modal-close:hover {
    opacity: 1;
}

.flashcard-progress {
    text-align: center;
    color: #fff;
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.8;
}

.flashcard-card {
    background: white;
    border-radius: 15px;
    min-height: 300px;
    padding: 40px;
    cursor: pointer;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    margin-bottom: 20px;
}

.flashcard-card:hover {
    transform: scale(1.02);
}

.flashcard-card.flipped {
    transform: rotateY(180deg);
}

.flashcard-card.flipped:hover {
    transform: rotateY(180deg) scale(1.02);
}

.flashcard-front,
.flashcard-back {
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.flashcard-back {
    transform: rotateY(180deg);
}

.flashcard-label {
    font-size: 12px;
    text-transform: uppercase;
    color: #666;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.flashcard-text {
    font-size: 20px;
    color: #333;
    text-align: center;
    line-height: 1.6;
}

.flashcard-hint {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    color: #999;
    font-style: italic;
}

.flashcard-navigation {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.flashcard-navigation button {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #4a9eff 0%, #357abd 100%);
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.flashcard-navigation button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.4);
}

.flashcard-navigation button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Student Plaza Section Styling */
.student-plaza-section {
    background: linear-gradient(135deg, #2c1810 0%, #1a1a1a 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: 2px solid #8B4513;
    text-align: center;
}

.student-plaza-section h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #D2691E;
}

.student-plaza-section p {
    margin: 0 0 20px 0;
    opacity: 0.9;
    font-size: 0.95rem;
    color: #F4A460;
}

.student-plaza-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
    padding: 20px;
    justify-items: center;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid rgba(139, 69, 19, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
}

/* Custom scrollbar for Student Plaza */
.student-plaza-grid::-webkit-scrollbar {
    width: 8px;
}

.student-plaza-grid::-webkit-scrollbar-track {
    background: rgba(139, 69, 19, 0.1);
    border-radius: 4px;
}

.student-plaza-grid::-webkit-scrollbar-thumb {
    background: rgba(210, 105, 30, 0.5);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.student-plaza-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(210, 105, 30, 0.7);
}

.student-card {
    background: rgba(139, 69, 19, 0.2);
    border: 2px solid rgba(139, 69, 19, 0.4);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 100px;
    max-width: 140px;
}

.student-card:hover {
    background: rgba(139, 69, 19, 0.3);
    border-color: rgba(210, 105, 30, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.3);
}

.student-card.current-user {
    background: rgba(210, 105, 30, 0.2);
    border: 2px solid rgba(210, 105, 30, 0.6);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.student-card.current-user:hover {
    background: rgba(210, 105, 30, 0.3);
    border-color: rgba(210, 105, 30, 0.8);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.5);
}

.student-card.current-user .student-initials {
    color: #F4A460;
    text-shadow: 0 1px 3px rgba(210, 105, 30, 0.3);
}

.student-initials {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #D2691E;
}

.student-avatars {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.student-avatar-item {
    position: relative;
}

.student-avatar-img {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 2px solid rgba(210, 105, 30, 0.6);
    object-fit: cover;
    transition: all 0.3s ease;
}

.student-pet-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(210, 105, 30, 0.6);
    object-fit: cover;
    transition: all 0.3s ease;
    background-color: white;
    padding: 2px;
}

.student-card:hover .student-avatar-img,
.student-card:hover .student-pet-img {
    border-color: #D2691E;
    transform: scale(1.1);
}

.student-no-pet {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px dashed rgba(139, 69, 19, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: rgba(139, 69, 19, 0.6);
    background: rgba(0, 0, 0, 0.1);
}

.student-plaza-empty {
    text-align: center;
    padding: 40px;
    opacity: 0.7;
    font-style: italic;
    color: #8B4513;
}

/* Online student green glow */
.student-card.online {
    box-shadow: 0 0 14px rgba(40, 167, 69, 0.6), 0 0 28px rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.8);
    animation: onlineGlow 2s ease-in-out infinite;
    cursor: pointer;
}

.student-card.online:hover {
    box-shadow: 0 0 17.5px rgba(40, 167, 69, 0.8), 0 0 35px rgba(40, 167, 69, 0.4);
    border-color: rgba(40, 167, 69, 1);
}

/* Gold glow for prestiged students */
.student-card.online.prestiged {
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.6), 0 0 28px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.8);
    animation: goldGlow 2s ease-in-out infinite;
}

.student-card.online.prestiged:hover {
    box-shadow: 0 0 17.5px rgba(255, 215, 0, 0.8), 0 0 35px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 1);
}

/* Online classmate green glow (for game lobbies) */
.classmate-card.online {
    box-shadow: 0 0 14px rgba(40, 167, 69, 0.6), 0 0 28px rgba(40, 167, 69, 0.3);
    border-color: rgba(40, 167, 69, 0.8) !important;
    animation: onlineGlow 2s ease-in-out infinite;
}

.classmate-card.online:hover {
    box-shadow: 0 0 17.5px rgba(40, 167, 69, 0.8), 0 0 35px rgba(40, 167, 69, 0.4);
    border-color: rgba(40, 167, 69, 1) !important;
}

@keyframes onlineGlow {
    0%, 100% {
        box-shadow: 0 0 14px rgba(40, 167, 69, 0.6), 0 0 28px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 0 21px rgba(40, 167, 69, 0.8), 0 0 42px rgba(40, 167, 69, 0.5);
    }
}

@keyframes goldGlow {
    0%, 100% {
        box-shadow: 0 0 14px rgba(255, 215, 0, 0.6), 0 0 28px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 21px rgba(255, 215, 0, 0.8), 0 0 42px rgba(255, 215, 0, 0.5);
    }
}

/* Prestige badge styling */
.prestige-badge {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    font-weight: bold;
    font-size: 0.75em;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.student-pet-container {
    position: relative;
}

/* Play With Student Modal Styling */
.play-with-student-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 0;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.play-with-student-content .modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.play-with-student-content .modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.play-modal-body {
    padding: 50px 40px 40px;
    text-align: center;
    color: white;
}

.play-modal-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

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

.play-modal-body h2 {
    margin: 0 0 20px 0;
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.play-modal-emojis {
    font-size: 32px;
    margin: 20px 0;
    letter-spacing: 10px;
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.play-modal-message {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.play-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.play-confirm-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border: none;
    padding: 15px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.play-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.play-modal-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 15px 30px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-modal-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Mystery Game Card Styling */
.mystery-game-card {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
    border: 2px dashed rgba(255, 255, 255, 0.3);
    opacity: 0.7;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.mystery-game-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: mysteryShine 3s linear infinite;
}

@keyframes mysteryShine {
    0% {
        transform: rotate(0deg) translate(-50%, -50%);
    }
    100% {
        transform: rotate(360deg) translate(-50%, -50%);
    }
}

.mystery-game-card:hover {
    transform: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
}

.mystery-icon {
    animation: mysteryBounce 2s ease-in-out infinite;
}

@keyframes mysteryBounce {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(-5deg);
    }
    75% {
        transform: translateY(-5px) rotate(5deg);
    }
}

.mystery-game-card h4 {
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 5px;
}

.mystery-game-card p {
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Mobile responsive for Student Plaza */
@media (max-width: 768px) {
    .student-plaza-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }

    .student-card {
        min-width: 80px;
        max-width: 120px;
        padding: 12px;
    }

    .student-avatar-img {
        width: 60px;
        height: 60px;
    }

    .student-pet-img, .student-no-pet {
        width: 40px;
        height: 40px;
    }
}

/* Countdown Timer Styles */
.countdown-timer-panel {
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ffcc02, #78c142, #0093d0, #9b59b6);
    background-size: 400% 400%;
    animation: gradientShift 3s ease-in-out infinite, timerWiggle 2s ease-in-out infinite;
    padding: 20px;
    margin: 20px 0;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3), 0 4px 15px rgba(255, 107, 53, 0.5), 0 0 30px rgba(255, 107, 53, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.countdown-message {
    font-size: 1.2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 15px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 8px;
    border-radius: 8px;
    min-width: 70px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.time-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: numberPulse 1s ease-in-out infinite;
}

.time-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 3px;
}

.time-separator {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    animation: separatorBlink 1s ease-in-out infinite;
}

/* Countdown Timer Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes timerWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(0.5deg) scale(1.02); }
    75% { transform: rotate(-0.5deg) scale(0.98); }
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes separatorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes textGlow {
    from { text-shadow: 2px 2px 4px rgba(0,0,0,0.7), 0 0 10px rgba(255,255,255,0.3); }
    to { text-shadow: 2px 2px 4px rgba(0,0,0,0.7), 0 0 20px rgba(255,255,255,0.6); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .countdown-timer-panel {
        margin: 10px 0;
        padding: 15px;
    }

    .countdown-display {
        gap: 8px;
    }

    .time-unit {
        min-width: 55px;
        padding: 8px 6px;
    }

    .time-value {
        font-size: 1.4rem;
    }

    .time-separator {
        font-size: 1.5rem;
    }
}

/* Daily Reward System */
.daily-reward-section {
    margin: 20px 0;
    text-align: center;
}

.green-unit-reward-section {
    margin: 20px 0;
    text-align: center;
}

.daily-reward-btn {
    background: linear-gradient(135deg, #ff6b35, #f7931e, #ffcc02, #78c142, #0093d0, #9b59b6, #ff1744);
    background-size: 400% 400%;
    animation: rewardGradientShift 3s ease-in-out infinite, rewardWiggle 2s ease-in-out infinite;
    border: none;
    border-radius: 15px;
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 2px 10px rgba(255, 107, 53, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-family: 'Playpen Sans', cursive;
    min-width: 200px;
    transform-origin: center;
}

.daily-reward-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 4px 15px rgba(255, 107, 53, 0.7);
}

.daily-reward-btn.claimed {
    background: linear-gradient(135deg, #666, #888);
    animation: none;
    transform: scale(0.8) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.daily-reward-btn.claimed:hover {
    transform: scale(0.8) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.reward-icon {
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    animation: iconBounce 2s ease-in-out infinite;
}

.daily-reward-btn.claimed .reward-icon {
    animation: none;
    filter: grayscale(100%);
}

.reward-text {
    text-align: left;
}

.reward-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 2px;
}

.reward-amount {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    font-weight: 600;
}

/* Daily Reward Animations */
@keyframes rewardGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes rewardWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(1deg) scale(1.02); }
    75% { transform: rotate(-1deg) scale(0.98); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.1); }
}

/* Coin Animation for Counter Update */
@keyframes coinIncrement {
    0% {
        transform: scale(1);
        color: inherit;
    }
    50% {
        transform: scale(1.2);
        color: #ffcc02;
        text-shadow: 0 0 10px #ffcc02;
    }
    100% {
        transform: scale(1);
        color: inherit;
    }
}

.coin-increment {
    animation: coinIncrement 0.3s ease-in-out;
}

/* Game Coins Reward Button (Blue themed) */
.game-coins-reward-btn {
    background: linear-gradient(135deg, #2E5B8C, #4A90E2, #6BB6FF, #4A90E2, #2E5B8C);
    background-size: 400% 400%;
    animation: gameCoinsGradientShift 3s ease-in-out infinite, gameCoinsWiggle 2s ease-in-out infinite;
    border: none;
    border-radius: 15px;
    padding: 15px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0 auto;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3), 0 2px 10px rgba(74, 144, 226, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-family: 'Playpen Sans', cursive;
    min-width: 200px;
    transform-origin: center;
}

.game-coins-reward-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4), 0 4px 15px rgba(74, 144, 226, 0.5);
}

.game-coins-reward-btn.claimed {
    background: linear-gradient(135deg, #666, #888);
    animation: none;
    transform: scale(0.8) !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.game-coins-reward-btn.claimed:hover {
    transform: scale(0.8) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Game Coins Animations */
@keyframes gameCoinsGradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes gameCoinsWiggle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(0.5deg) scale(1.01); }
    75% { transform: rotate(-0.5deg) scale(0.99); }
}

/* Increase Max Game Coins Button (positioned below collect button) */
.increase-game-coins-btn {
    background: black;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    font-family: 'Playpen Sans', cursive;
    font-weight: 600;
    padding: 4px 8px;
    margin: 15px auto 0 auto;
    display: block;
    transition: all 0.3s ease;
    font-size: 0.715rem;
    border-radius: 6px;
    width: fit-content;
    text-align: center;
    clear: both;
}

.increase-game-coins-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    background: #1a1a1a;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .daily-reward-btn {
        padding: 12px 20px;
        min-width: 180px;
        gap: 12px;
    }

    .reward-icon {
        font-size: 1.7rem;
    }

    .reward-title {
        font-size: 1rem;
    }

    .reward-amount {
        font-size: 0.8rem;
    }
}

/* Daily Reward Coin Increment Animation */
.coin-increment-glow {
    text-shadow: 0 0 10px #ffcc02, 0 0 20px #ffcc02, 0 0 30px #ffcc02;
    transform: scale(1.1);
    transition: all 0.1s ease;
}

/* Wiggle animation for Singer Coin icon */
.wiggle {
    animation: wiggleAnimation 1s ease-in-out;
}

@keyframes wiggleAnimation {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-10deg) scale(1.1); }
    20% { transform: rotate(10deg) scale(1.1); }
    30% { transform: rotate(-10deg) scale(1.1); }
    40% { transform: rotate(10deg) scale(1.1); }
    50% { transform: rotate(-5deg) scale(1.05); }
    60% { transform: rotate(5deg) scale(1.05); }
    70% { transform: rotate(-2deg) scale(1.02); }
    80% { transform: rotate(2deg) scale(1.02); }
    90% { transform: rotate(-1deg) scale(1.01); }
}

/* Play Hard Section */
.play-hard-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    color: white;
}

.play-hard-section h3 {
    margin-top: 0;
    font-size: 2rem;
}

.play-hard-section p {
    opacity: 0.9;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .play-hard-section {
        padding: 20px;
    }
}

.game-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    text-align: center;
    transition: all 0.3s ease;
}

.game-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.game-icon {
    font-size: 3rem;
}

.game-info h4 {
    margin: 0 0 5px 0;
    font-size: 1.3rem;
}

.game-info p {
    margin: 0 0 15px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.game-btn {
    width: 100%;
}

/* Chess Game Styles */
.games-content {
    padding: 20px;
}

.game-mode-selection {
    text-align: center;
    padding: 40px 20px;
}

.mode-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 30px 40px;
    font-size: 1rem;
    min-width: 200px;
}

.mode-icon {
    font-size: 3rem;
}

.mode-title {
    font-size: 1.3rem;
    font-weight: bold;
}

.mode-desc {
    font-size: 0.9rem;
}

/* Classmate Selection Styles */
.classmate-selection {
    padding: 20px;
}

.classmates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.classmate-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.classmate-card:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.classmate-card .initials {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.classmate-card .coins {
    font-size: 0.9rem;
    opacity: 0.8;
}

.classmate-avatars {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.classmate-avatar-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.classmate-pet-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background-color: white;
    padding: 2px;
}

.classmate-no-pet {
    font-size: 0.7rem;
    opacity: 0.5;
    font-style: italic;
}

.match-card {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 15px;
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.match-card.waiting {
    border-color: #ffc107;
}

.match-card.active {
    border-color: #28a745;
    animation: pulse 2s ease-in-out infinite;
}

.match-info {
    flex: 1;
}

.match-actions {
    display: flex;
    gap: 10px;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(40, 167, 69, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(40, 167, 69, 0.8);
    }
    opacity: 0.8;
}

.chess-game-container {
    max-width: 900px;
    margin: 0 auto;
}

.chess-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    gap: 20px;
}

.player-info {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.player-name {
    font-weight: bold;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.player-pieces {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-height: 40px;
}

.player-pieces img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.game-status {
    flex: 1;
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
}

.chess-board-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.chess-board {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(8, 1fr);
    width: min(600px, 90vw);
    height: min(600px, 90vw);
    border: 4px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.chess-square {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chess-square.light {
    background-color: #f0d9b5;
}

.chess-square.dark {
    background-color: #b58863;
}

.chess-square.selected {
    background-color: #baca44 !important;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.chess-square.valid-move {
    background-color: #646f40 !important;
}

.chess-square.valid-move::after {
    content: '';
    position: absolute;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.2);
}

.chess-square.valid-capture::after {
    content: '';
    position: absolute;
    width: 90%;
    height: 90%;
    border: 4px solid rgba(255, 0, 0, 0.5);
    border-radius: 50%;
}

.chess-piece {
    width: 85%;
    height: 85%;
    object-fit: contain;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.chess-square:hover .chess-piece {
    transform: scale(1.1);
}

.chess-piece.destroyed {
    animation: pieceDestroy 0.6s ease-out forwards;
}

@keyframes pieceDestroy {
    0% { transform: scale(1) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 0.5; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

.chess-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Chess Quiz Modal */
.chess-quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chess-quiz-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.chess-quiz-content h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
}

#chess-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.chess-quiz-option {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: white;
}

.chess-quiz-option:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.chess-quiz-option.correct {
    background: #28a745;
    border-color: #28a745;
}

.chess-quiz-option.incorrect {
    background: #dc3545;
    border-color: #dc3545;
}

.chess-quiz-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    text-align: center;
    font-size: 1.1rem;
}

.chess-quiz-feedback.correct {
    background: #28a745;
}

.chess-quiz-feedback.incorrect {
    background: #dc3545;
}

/* Showdown Modal */
.showdown-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showdown-content {
    background: linear-gradient(135deg, #fc4a1a 0%, #f7b733 100%);
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    text-align: center;
    animation: showdownPulse 2s ease-in-out infinite;
}

@keyframes showdownPulse {
    0%, 100% { box-shadow: 0 20px 60px rgba(252, 74, 26, 0.5); }
    50% { box-shadow: 0 20px 80px rgba(252, 74, 26, 0.8); }
}

.showdown-content h2 {
    font-size: 2.5rem;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.showdown-content h3 {
    font-size: 1.4rem;
    margin: 20px 0;
}

#showdown-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.showdown-option {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    color: white;
    font-weight: bold;
}

.showdown-option:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.showdown-option.correct {
    background: #28a745;
    border-color: #28a745;
}

.showdown-option.incorrect {
    background: #dc3545;
    border-color: #dc3545;
}

.showdown-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.showdown-feedback.correct {
    background: #28a745;
}

.showdown-feedback.incorrect {
    background: #dc3545;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .chess-game-header {
        flex-direction: column;
    }

    .chess-board {
        width: 95vw;
        height: 95vw;
    }

    .mode-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    /* Position quiz modals lower on mobile for better accessibility */
    .chess-quiz-modal,
    .showdown-modal {
        align-items: flex-end;
        padding-bottom: 20px;
    }

    .chess-quiz-content,
    .showdown-content {
        margin-bottom: 0;
        max-height: 80vh;
        overflow-y: auto;
    }

    .mode-btn {
        width: 100%;
    }

    /* Fix match card buttons on mobile */
    .match-card {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .match-actions {
        flex-direction: column;
        width: 100%;
    }

    .match-actions .btn {
        width: 100%;
        padding: 12px;
        font-size: 0.95rem;
    }
}

/* Singer Blast Game Styles */
.blast-content {
    padding: 20px;
    text-align: center;
}

.blast-menu-content {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
}

.blast-instructions {
    text-align: left;
    margin: 20px 0;
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 10px;
}

.blast-instructions h4 {
    margin-top: 15px;
    margin-bottom: 10px;
    color: #ffcc02;
}

.blast-instructions ul {
    margin-left: 20px;
}

.blast-instructions li {
    margin: 5px 0;
}

.wager-input {
    width: 100px;
    padding: 12px;
    font-size: 1.5rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    color: #ffeb3b;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-weight: bold;
}

.wager-btn {
    width: 50px;
    height: 50px;
    font-size: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wager-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.wager-btn:active {
    transform: scale(0.95);
}

.blast-game-container {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
}

.blast-game-board {
    background: #000;
    border: 3px solid #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

#singer-blast-canvas {
    display: block;
    border-radius: 8px;
}

.blast-game-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 200px;
}

.blast-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

.blast-stats h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #ffcc02;
}

.blast-stat {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
    font-size: 1.1rem;
}

.blast-stat label {
    font-weight: bold;
}

.blast-stat span {
    color: #00f0f0;
    font-weight: bold;
}

.blast-controls-reminder {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
}

.blast-controls-reminder h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #ffcc02;
}

.blast-touch-controls {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    font-size: 0.9rem;
}

.blast-touch-controls h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #ffcc02;
}

/* Singer Blast Quiz Modal */
.blast-quiz-modal-content {
    max-width: 300px;
    width: 300px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: 600px;
    overflow-y: auto;
}

.blast-question-container {
    padding: 20px;
}

.blast-question-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.blast-quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blast-quiz-option {
    padding: 15px 20px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-family: 'Playpen Sans', cursive;
}

.blast-quiz-option:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(5px);
}

.blast-quiz-option.correct {
    background: #28a745;
    border-color: #28a745;
}

.blast-quiz-option.incorrect {
    background: #dc3545;
    border-color: #dc3545;
}

.blast-quiz-input {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 10px;
    font-family: 'Playpen Sans', cursive;
    margin-bottom: 10px;
}

.blast-quiz-feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.1rem;
}

.blast-quiz-feedback.correct {
    background: #28a745;
    color: white;
}

.blast-quiz-feedback.incorrect {
    background: #dc3545;
    color: white;
}

/* Singer Blast Piece Selection Modal */
.blast-piece-selection-backdrop {
    background: transparent !important;
}

.blast-piece-modal-content {
    max-width: 300px;
    width: 300px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blast-piece-modal-content h2 {
    background: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.blast-piece-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 10px;
    background: transparent;
}

.blast-piece-option {
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.blast-piece-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.blast-piece-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsive for Singer Blast */
@media (max-width: 768px) {
    .blast-game-container {
        flex-direction: column;
        align-items: center;
    }

    .blast-game-board {
        margin-bottom: 20px;
    }

    .blast-piece-options {
        grid-template-columns: repeat(2, 1fr);
    }

    #singer-blast-canvas {
        width: 90vw;
        height: auto;
    }
}

/* Code execution animations */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    50% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}

@keyframes rainbow {
    0% { color: #ff0000; }
    16% { color: #ff8800; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    66% { color: #0088ff; }
    83% { color: #8800ff; }
    100% { color: #ff0000; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

/* Harvest Reward Styles */
.harvest-reward-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 215, 0, 0.05);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    max-width: 75%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .harvest-reward-section {
        max-width: 100%;
    }
}

.harvest-reward-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.harvest-reward-image-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
}

.harvest-reward-image-blur {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: blur(12px);
    border: 3px solid #FFD700;
    animation: silverGlow 2s ease-in-out infinite;
}

.harvest-reward-name {
    font-size: 1.1em;
    color: #FFD700;
    font-weight: bold;
    text-align: center;
}

.harvest-countdown-panel {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.harvest-countdown-message {
    font-size: 1.1em;
    color: #FFD700;
    font-weight: bold;
    text-align: center;
    margin-bottom: 15px;
}

.harvest-countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
    animation: harvestWiggle 3s ease-in-out infinite;
}

@keyframes harvestWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg); }
    75% { transform: rotate(2deg); }
}

.harvest-time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    min-width: 60px;
    flex: 0 0 auto;
}

@media (max-width: 600px) {
    .harvest-time-unit {
        padding: 6px;
        min-width: 45px;
    }

    .harvest-time-value {
        font-size: 1em !important;
    }

    .harvest-time-label {
        font-size: 0.55em !important;
    }

    .harvest-time-separator {
        font-size: 1em !important;
    }

    .harvest-countdown-display {
        gap: 2px;
    }
}

.harvest-time-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #FFD700;
}

.harvest-time-label {
    font-size: 0.7em;
    color: #ccc;
    margin-top: 2px;
}

.harvest-time-separator {
    font-size: 1.5em;
    color: #FFD700;
    font-weight: bold;
}

.harvest-management-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 20px;
}

.harvest-test-section {
    padding: 20px;
    background: rgba(255, 152, 0, 0.1);
    border: 2px solid rgba(255, 152, 0, 0.3);
    border-radius: 8px;
}

.harvest-preview {
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

#harvest-settings-preview {
    color: #ccc;
}

/* Flashcard System Styles */
.flashcard-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.flashcard-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.flashcard-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.flashcard-tab:hover {
    color: #fff;
}

.flashcard-tab.active {
    color: #fff;
    border-bottom-color: #9c27b0;
}

.flashcard-tab-content {
    display: none;
}

.flashcard-tab-content.active {
    display: block;
}

.flashcard-set-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.flashcard-set-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s;
}

.flashcard-set-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.flashcard-set-item.viewed {
    opacity: 0.6;
}

.flashcard-set-info {
    flex: 1;
}

.flashcard-set-title {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    color: #fff;
}

.flashcard-set-meta {
    font-size: 0.9em;
    color: #888;
}

.btn-disabled {
    background: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

/* Flashcard Viewer Styles */
.flashcard-viewer {
    padding: 20px;
}

.flashcard-progress {
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #888;
}

.flashcard-container {
    perspective: 1000px;
    margin: 0 auto 30px;
    width: 100%;
    max-width: 600px;
    height: 400px;
    cursor: pointer;
}

.flashcard {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flashcard.flipped {
    transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.flashcard-front {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.flashcard-back {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    transform: rotateY(180deg);
}

.flashcard-label {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flashcard-content {
    font-size: 1.1em;
    line-height: 1.6;
    color: #fff;
    text-align: center;
    overflow-y: auto;
    max-height: 280px;
}

.flashcard-navigation {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.flashcard-navigation .btn {
    min-width: 140px;
}

.flashcard-navigation .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flashcard-container {
        height: 300px;
    }

    .flashcard-content {
        font-size: 1em;
        max-height: 200px;
    }

    .flashcard-front,
    .flashcard-back {
        padding: 30px 20px;
    }
}

/* Flashcard Big Button */
.flashcard-big-button {
    width: 100%;
    padding: 30px 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.flashcard-big-button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.flashcard-big-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.flashcard-big-button:active {
    transform: translateY(-2px);
}

.flashcard-button-icon {
    font-size: 3.5em;
    margin-bottom: 10px;
    animation: bounce 2s infinite;
}

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

.flashcard-button-text {
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.flashcard-button-subtitle {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: normal;
}

/* Programming Gauntlet Glowing Animation */
.gauntlet-glow {
    animation: gauntletGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

@keyframes gauntletGlow {
    0% {
        box-shadow: 0 0 20px rgba(220, 38, 38, 0.5), 0 0 30px rgba(220, 38, 38, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(153, 27, 27, 0.8), 0 0 50px rgba(153, 27, 27, 0.5), 0 0 70px rgba(153, 27, 27, 0.3);
    }
}

/* Leaderboard Section */
.leaderboard-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.leaderboard-section h3 {
    color: white;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.week-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.week-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.week-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.week-nav-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.week-display {
    color: white;
    font-size: 1.2em;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    text-align: center;
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.leaderboard-category {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    overflow: visible;
}

.leaderboard-category h4 {
    color: white;
    text-align: center;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.leaderboard-podium {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.podium-entry {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: visible;
}

.podium-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.podium-entry.rank-1 {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border: 3px solid #FFD700;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.podium-entry.rank-2 {
    background: linear-gradient(135deg, #C0C0C0 0%, #808080 100%);
    border: 3px solid #C0C0C0;
}

.podium-entry.rank-3 {
    background: linear-gradient(135deg, #CD7F32 0%, #8B4513 100%);
    border: 3px solid #CD7F32;
}

.podium-rank {
    font-size: 2em;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    min-width: 40px;
    text-align: center;
}

.podium-avatars {
    display: flex;
    gap: 8px;
    align-items: center;
}

.podium-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.5);
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.podium-pet {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.podium-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 60px;
}

.podium-initials {
    font-size: 1.2em;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.podium-score {
    font-size: 1.5em;
    font-weight: bold;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    min-width: 60px;
    text-align: right;
    flex-shrink: 0;
    word-wrap: break-word;
}

.podium-empty {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Shine effect for gold medal */
.podium-entry.rank-1::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

/* Mobile Responsive Fixes for Leaderboard */
@media (max-width: 768px) {
    .leaderboard-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .leaderboard-section {
        padding: 20px 15px;
        margin: 20px 0;
    }

    .leaderboard-section h3 {
        font-size: 1.8em;
    }

    .week-navigation {
        gap: 8px;
        margin: 15px 0;
    }

    .week-nav-btn {
        padding: 8px 12px;
        font-size: 0.85em;
        border-radius: 8px;
    }

    .week-display {
        font-size: 0.95em;
        min-width: 120px;
    }

    .leaderboard-category {
        padding: 15px;
    }

    .leaderboard-category h4 {
        font-size: 1.1em;
    }

    .podium-entry {
        padding: 12px;
        gap: 10px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .podium-rank {
        font-size: 1.5em;
        min-width: 35px;
    }

    .podium-avatar {
        width: 40px;
        height: 40px;
    }

    .podium-pet {
        width: 30px;
        height: 30px;
    }

    .podium-initials {
        font-size: 1em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.2;
    }

    .podium-score {
        font-size: 1.2em;
        min-width: 50px;
    }

    .podium-info {
        flex: 1;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .leaderboard-section h3 {
        font-size: 1.5em;
    }

    .week-navigation {
        gap: 5px;
        margin: 10px 0;
    }

    .week-nav-btn {
        padding: 6px 10px;
        font-size: 0.75em;
    }

    .week-display {
        font-size: 0.85em;
        min-width: 100px;
    }

    .leaderboard-category h4 {
        font-size: 1em;
    }

    .podium-entry {
        padding: 10px 8px;
        gap: 8px;
    }

    .podium-rank {
        font-size: 1.3em;
        min-width: 30px;
    }

    .podium-avatar {
        width: 35px;
        height: 35px;
    }

    .podium-pet {
        width: 25px;
        height: 25px;
    }

    .podium-initials {
        font-size: 0.9em;
    }

    .podium-score {
        font-size: 1em;
        min-width: 45px;
    }
}

/* Additional Mobile Overflow Prevention */
.leaderboard-section {
    overflow: hidden;
    box-sizing: border-box;
}

.leaderboard-grid {
    box-sizing: border-box;
    width: 100%;
}

.leaderboard-category {
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
}

.podium-entry {
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.podium-avatars {
    flex-shrink: 0;
}

.podium-info {
    overflow: hidden;
}

@media (max-width: 768px) {
    .leaderboard-section {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .leaderboard-grid,
    .leaderboard-category,
    .podium-entry {
        max-width: 100%;
    }

    .podium-score {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .leaderboard-section {
        padding: 15px 10px;
    }

    .leaderboard-category {
        padding: 12px 10px;
    }

    .podium-entry {
        padding: 8px 6px;
    }
}

/* Unclaimed Fruit Tree Animation */
.unclaimed-fruit-tree {
    animation: fruitTreePulse 2s ease-in-out infinite;
}

.unclaimed-fruit-tree .tree-image {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 15px rgba(50, 205, 50, 0.8)) drop-shadow(0 0 25px rgba(50, 205, 50, 0.5));
}

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

/* Streak Management Styles */
.streak-management-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}

.streak-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.streak-classes-list h4 {
    margin-bottom: 15px;
    color: #fff;
}

.streak-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.streak-class-card {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.streak-class-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.streak-class-card.selected {
    background: rgba(74, 144, 226, 0.3);
    border-color: #4a90e2;
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.4);
}

.streak-class-card.paused {
    border-color: #ffa500;
    background: rgba(255, 165, 0, 0.1);
}

.streak-class-card.paused .streak-status-badge {
    background: #ffa500;
}

.streak-class-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.streak-class-name {
    font-size: 1.1em;
    font-weight: bold;
    color: white;
}

.streak-status-badge {
    background: #4caf50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
}

.streak-class-code {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
    margin-bottom: 8px;
}

.streak-class-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85em;
}

.btn-primary {
    background: #4a90e2;
}

.btn-primary:hover {
    background: #357abd;
}

.btn-success {
    background: #4caf50;
}

.btn-success:hover {
    background: #45a049;
}

/* Fishing Mini-Game Styles */
.fishing-minigame-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.fishing-game-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    width: 90%;
}

.fishing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.fishing-header h2 {
    color: #fff;
    margin: 0;
    font-size: 1.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.fishing-timer {
    font-size: 2em;
    font-weight: bold;
    color: #4CAF50;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    min-width: 80px;
    text-align: center;
}

.fishing-instructions {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.1em;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
}

.fishing-game-area {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    max-width: fit-content;
}

.fishing-track {
    position: relative;
    width: 150px;
    height: 500px;
    background: linear-gradient(to bottom, #4a90e2 0%, #1e3c72 50%, #0d1b2a 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.fishing-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(135deg, #4CAF50, #45a049);
    border: 3px solid #fff;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.3);
    transition: top 0.016s linear;
    overflow: hidden;
}

.bar-shimmer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%);
    }
    100% {
        transform: translateX(100%) translateY(100%);
    }
}

.fishing-fish {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    transition: top 0.016s linear, filter 0.2s ease-in-out;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    animation: fishWiggle 0.5s ease-in-out infinite;
}

.fishing-furniture {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 0 10px rgba(139, 69, 19, 0.8));
    z-index: 5;
    transition: filter 0.2s ease-in-out;
}

/* Furniture being caught effect - shake and brighten */
.fishing-furniture.being-caught {
    animation: furnitureShake 0.15s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(139, 69, 19, 1))
            brightness(1.3)
            saturate(1.3);
    transition: filter 0.2s ease-in-out;
}

@keyframes furnitureShake {
    0% {
        transform: translateX(-50%) rotate(-8deg) translateY(-2px);
    }
    25% {
        transform: translateX(-50%) rotate(8deg) translateY(2px);
    }
    50% {
        transform: translateX(-50%) rotate(-6deg) translateY(-1px);
    }
    75% {
        transform: translateX(-50%) rotate(6deg) translateY(1px);
    }
    100% {
        transform: translateX(-50%) rotate(-8deg) translateY(-2px);
    }
}

.furniture-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes fishWiggle {
    0%, 100% {
        transform: translateX(-50%) rotate(-5deg);
    }
    50% {
        transform: translateX(-50%) rotate(5deg);
    }
}

/* Fish being caught effect - shake and brighten */
.fishing-fish.being-caught {
    animation: fishShake 0.15s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1))
            brightness(1.3)
            saturate(1.3);
    transition: filter 0.2s ease-in-out;
}

@keyframes fishShake {
    0% {
        transform: translateX(-50%) rotate(-8deg) translateY(-2px);
    }
    25% {
        transform: translateX(-50%) rotate(8deg) translateY(2px);
    }
    50% {
        transform: translateX(-50%) rotate(-6deg) translateY(-1px);
    }
    75% {
        transform: translateX(-50%) rotate(6deg) translateY(1px);
    }
    100% {
        transform: translateX(-50%) rotate(-8deg) translateY(-2px);
    }
}

.fish-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: fishSpin 3s linear infinite;
}

@keyframes fishSpin {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.fishing-progress-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.fishing-rod-container {
    position: relative;
    width: 120px;
    height: 500px;
    flex-shrink: 0;
}

.fishing-rod-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 120px;
    height: 500px;
    object-fit: contain;
    pointer-events: none;
}

.fishing-rod-reel {
    position: absolute;
    top: 325px; /* Moved up 10% (50px higher) */
    left: 50%;
    transform: translateX(-50%);
    width: 109px;
    height: 103px;
    object-fit: contain;
    pointer-events: none;
    transform-origin: center center;
}

.fishing-progress-bar {
    width: 60px;
    height: 500px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.fishing-progress-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: #2196F3;
    transition: height 0.1s ease-out, background-color 0.3s ease;
    border-radius: 30px;
    box-shadow: 0 0 20px currentColor;
}

.progress-label {
    color: #fff;
    font-size: 1.2em;
    font-weight: bold;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Responsive adjustments for fishing game */
@media (max-width: 768px) {
    .fishing-game-content {
        padding: 20px;
    }

    .fishing-header h2 {
        font-size: 1.4em;
    }

    .fishing-timer {
        font-size: 1.5em;
        padding: 8px 15px;
    }

    .fishing-game-area {
        gap: 5px;
    }

    .fishing-track {
        width: 120px;
        height: 400px;
    }

    .fishing-rod-container {
        width: 96px; /* Scale down proportionally: 120px * 0.8 */
        height: 400px;
    }

    .fishing-rod-main {
        width: 96px;
        height: 400px;
    }

    .fishing-rod-reel {
        top: 260px; /* Moved up 10% (40px higher on mobile) */
        width: 87px; /* Scale down proportionally: 109px * 0.8 */
        height: 82px; /* Scale down proportionally: 103px * 0.8 */
    }

    .fishing-bar {
        height: 80px;
    }

    .fishing-fish {
        width: 40px;
        height: 40px;
    }

    .fishing-progress-bar {
        width: 50px;
        height: 400px;
    }
}

/* Pulse animation for fishing success message */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Fish Management Styles */
.fish-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.fish-card {
    background: linear-gradient(135deg, rgba(30, 60, 114, 0.8), rgba(42, 82, 152, 0.8));
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.fish-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    margin-bottom: 15px;
    animation: fishFloat 3s ease-in-out infinite;
}

@keyframes fishFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.fish-info {
    text-align: center;
    margin-bottom: 15px;
    width: 100%;
}

.fish-info h4 {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.fish-stats {
    display: flex;
    justify-content: space-around;
    gap: 10px;
    margin-top: 10px;
}

.fish-stats span {
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
    color: #fff;
}

.fish-actions {
    display: flex;
    gap: 10px;
    width: 100%;
}

.fish-actions button {
    flex: 1;
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-small:hover {
    background: #357abd;
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    position: relative;
}

.modal-content .close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

.modal-content .close:hover {
    color: #f44336;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions button {
    flex: 1;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .fish-grid {
        grid-template-columns: 1fr;
    }
}

/* Fishing Intro Screen */
.fishing-intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.fishing-intro-content {
    text-align: center;
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fishing-intro-image {
    margin-bottom: 30px;
}

.fishing-intro-image img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
    animation: fishIntroFloat 2s ease-in-out infinite;
}

.fishing-intro-image img.shiny {
    filter: drop-shadow(0 0 40px rgba(255, 215, 0, 1)) 
            drop-shadow(0 0 60px rgba(255, 0, 255, 0.8));
    animation: fishIntroFloat 2s ease-in-out infinite, shinySparkle 1s ease-in-out infinite;
}

@keyframes fishIntroFloat {
    0%, 100% {
        transform: translateY(0px) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes shinySparkle {
    0%, 100% {
        filter: drop-shadow(0 0 40px rgba(255, 215, 0, 1)) 
                drop-shadow(0 0 60px rgba(255, 0, 255, 0.8));
    }
    50% {
        filter: drop-shadow(0 0 50px rgba(255, 215, 0, 1)) 
                drop-shadow(0 0 80px rgba(255, 0, 255, 1))
                drop-shadow(0 0 40px rgba(0, 255, 255, 0.8));
    }
}

.fishing-intro-text {
    color: #fff;
    font-size: 2.5em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    margin-bottom: 30px;
    line-height: 1.4;
}

.fishing-intro-text .shiny-text {
    color: #FFD700;
    font-size: 1.2em;
    text-shadow: 0 0 20px #FFD700, 0 0 40px #FF00FF;
    animation: shinyTextGlow 1s ease-in-out infinite;
    word-break: break-word;
    overflow-wrap: break-word;
}

@keyframes shinyTextGlow {
    0%, 100% {
        text-shadow: 0 0 20px #FFD700, 0 0 40px #FF00FF;
    }
    50% {
        text-shadow: 0 0 30px #FFD700, 0 0 60px #FF00FF, 0 0 40px #00FFFF;
    }
}

.fishing-intro-text .size-text {
    font-size: 0.7em;
    color: #FFC107;
    display: block;
    margin-top: 10px;
}

.fishing-intro-continue {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2em;
    animation: blink 1.5s ease-in-out infinite;
}

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

/* ===== Ichthys Tank Section ===== */
.ichthys-tank-section {
    background: linear-gradient(135deg, #1a3a52 0%, #2c5f7f 100%);
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(76, 175, 250, 0.3);
}

.ichthys-tank-section h3 {
    color: #FFD700;
    text-align: center;
    margin-bottom: 10px;
    font-size: 1.8em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ichthys-tank-section p {
    color: #B3E5FC;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1em;
}

/* Tank viewer avatar display */
.tank-viewer-avatar-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 20px auto 10px auto;
}

.tank-viewer-avatar-container,
.tank-viewer-pet-container {
    position: relative;
}

.tank-viewer-avatar-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(76, 175, 250, 0.6);
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tank-viewer-pet-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid rgba(76, 175, 250, 0.6);
    object-fit: cover;
    background: white;
    padding: 2px;
    transition: all 0.3s ease;
}

.tank-viewer-no-pet {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    border: 3px solid rgba(76, 175, 250, 0.3);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    font-style: italic;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .tank-viewer-avatar-img {
        width: 60px;
        height: 60px;
    }

    .tank-viewer-pet-img {
        width: 48px;
        height: 48px;
    }

    .tank-viewer-no-pet {
        width: 48px;
        height: 48px;
        font-size: 9px;
    }
}

.ichthys-tank-container {
    position: relative;
    background: linear-gradient(180deg, #1e3a5f 0%, #2c5f7f 100%);
    border-radius: 15px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

/* Featured tank golden glow */
.ichthys-tank-container.featured-tank {
    box-shadow:
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 215, 0, 0.8);
    animation: featuredGlow 2s ease-in-out infinite;
}

@keyframes featuredGlow {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4),
            0 0 60px rgba(255, 215, 0, 0.2),
            0 8px 32px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow:
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 215, 0, 0.6),
            0 0 90px rgba(255, 215, 0, 0.4),
            0 8px 32px rgba(0, 0, 0, 0.3);
    }
}

.ichthys-tank-container:not(.featured-tank) {
    box-shadow:
        inset 0 0 30px rgba(0, 0, 0, 0.5),
        0 4px 20px rgba(76, 175, 250, 0.3);
    border: 3px solid #4CAFFA;
}

/* Arcane fish golden glow animation */
@keyframes arcaneFishGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8))
                drop-shadow(0 0 12px rgba(255, 215, 0, 0.6))
                brightness(1.2);
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(255, 215, 0, 1))
                drop-shadow(0 0 20px rgba(255, 215, 0, 0.8))
                brightness(1.3);
    }
}

.ichthys-tank-container {
    margin: 0 auto;
    max-width: 800px;
}

#ichthys-tank-canvas {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

.tank-fish-count {
    background: rgba(0, 0, 0, 0.7);
    color: #FFD700;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 215, 0, 0.5);
    text-align: center;
    margin: 0 auto 15px auto;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.2);
    width: fit-content;
}

.ichthys-tank-section > .tank-fish-count {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive tank */
@media (max-width: 768px) {
    .ichthys-tank-section {
        padding: 20px;
    }

    .ichthys-tank-section h3 {
        font-size: 1.4em;
    }

    .ichthys-tank-section p {
        font-size: 0.9em;
    }

    #ichthys-tank-canvas {
        height: 300px;
    }
}

/* ===== IchthusDex Button ===== */
.ichthysdex-button-container {
    text-align: center;
    margin: 15px 0;
}

.ichthysdex-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 1.1em;
    padding: 12px 30px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.ichthysdex-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* ===== IchthusDex Modal ===== */
.ichthysdex-modal-content {
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.ichthysdex-title {
    color: #FFD700;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ichthysdex-subtitle {
    text-align: center;
    color: #B3E5FC;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.ichthysdex-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

.ichthysdex-stats span {
    color: #FFD700;
    font-weight: bold;
    font-size: 1.1em;
}

.ichthysdex-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

.ichthysdex-entry {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 15px;
    padding: 20px;
    border: 3px solid #4CAFFA;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.ichthysdex-entry.caught {
    border-color: #4CAF50;
}

.ichthysdex-entry.shiny-caught {
    border-color: #FFD700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.ichthysdex-entry.seen {
    border-color: #FFA500;
}

.ichthysdex-entry.unknown {
    border-color: #666;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.ichthysdex-entry:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(76, 175, 250, 0.5);
}

.ichthysdex-entry-header {
    text-align: center;
    margin-bottom: 15px;
}

.ichthysdex-entry-number {
    color: #888;
    font-size: 0.9em;
    font-weight: bold;
}

.ichthysdex-entry-name {
    color: #4CAFFA;
    font-size: 1.4em;
    font-weight: bold;
    margin: 5px 0;
}

.ichthysdex-entry.caught .ichthysdex-entry-name {
    color: #4CAF50;
}

.ichthysdex-entry.shiny-caught .ichthysdex-entry-name {
    color: #FFD700;
}

.ichthysdex-entry-etymology {
    color: #B3E5FC;
    font-size: 0.9em;
    font-style: italic;
}

.ichthysdex-sprites {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
    min-height: 80px;
}

.ichthysdex-sprite {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.ichthysdex-sprite.silhouette {
    filter: brightness(0) opacity(0.5);
}

.shiny-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.ichthysdex-info {
    margin-top: 15px;
}

.ichthysdex-info-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ichthysdex-info-label {
    color: #888;
    font-weight: bold;
}

.ichthysdex-info-value {
    color: #FFF;
}

.ichthysdex-descriptor {
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    color: #E0E0E0;
    font-size: 0.95em;
    line-height: 1.5;
    border-left: 3px solid #4CAFFA;
}

.mystery-text {
    color: #666;
    font-weight: bold;
}

.arcane-rarity {
    color: #FFD700;
    font-weight: bold;
    text-shadow:
        0 0 8px rgba(255, 215, 0, 0.8),
        0 0 12px rgba(255, 215, 0, 0.6),
        0 0 16px rgba(255, 215, 0, 0.4);
    animation: arcaneTextGlow 2s ease-in-out infinite;
}

@keyframes arcaneTextGlow {
    0%, 100% {
        text-shadow:
            0 0 8px rgba(255, 215, 0, 0.8),
            0 0 12px rgba(255, 215, 0, 0.6),
            0 0 16px rgba(255, 215, 0, 0.4);
    }
    50% {
        text-shadow:
            0 0 12px rgba(255, 215, 0, 1),
            0 0 20px rgba(255, 215, 0, 0.8),
            0 0 28px rgba(255, 215, 0, 0.6);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .ichthysdex-grid {
        grid-template-columns: 1fr;
    }
    
    .ichthysdex-title {
        font-size: 2em;
    }
    
    .ichthysdex-stats {
        flex-direction: column;
        gap: 10px;
    }
}

/* ===== Ichthus Market Button ===== */
.ichthus-market-btn {
    background: linear-gradient(135deg, #F2994A 0%, #F2C94C 100%);
    font-size: 1.1em;
    padding: 12px 30px;
    box-shadow: 0 4px 15px rgba(242, 153, 74, 0.4);
    transition: all 0.3s ease;
    margin-left: 10px;
}

.ichthus-market-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 153, 74, 0.6);
}

/* Mobile styles for buttons */
@media (max-width: 768px) {
    .ichthysdex-btn,
    .ichthus-market-btn {
        font-size: 0.9em;
        padding: 8px 16px;
        margin: 5px;
    }

    .ichthysdex-button-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .ichthus-market-btn {
        margin-left: 0;
    }
}

/* ===== Ichthus Market Modal ===== */
.ichthus-market-modal-content {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
}

.ichthus-market-title {
    color: #F2C94C;
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.ichthus-market-subtitle {
    text-align: center;
    color: #B3E5FC;
    font-size: 1.1em;
    margin-bottom: 20px;
}

/* Market Tabs */
.market-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.market-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: #B3E5FC;
    padding: 12px 25px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
}

.market-tab:hover {
    background: rgba(255, 255, 255, 0.15);
}

.market-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #FFF;
}

.inbox-badge {
    background: #FF4444;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8em;
    margin-left: 5px;
}

/* Tab Content */
.market-tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.market-tab-content.active {
    display: block;
}

.market-tab-content h3 {
    color: #F2C94C;
    margin-bottom: 10px;
}

.market-tab-content p {
    color: #B3E5FC;
    margin-bottom: 20px;
}

/* Fish Grid */
.market-fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.market-fish-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 20px;
    border: 3px solid #4CAFFA;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.market-fish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(76, 175, 250, 0.5);
}

.market-fish-card.shiny {
    border-color: #FFD700;
    box-shadow: 0 4px 20px rgba(255, 215, 0, 0.4);
}

.market-fish-image {
    width: 100%;
    height: 120px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 4px rgba(255, 255, 255, 0.6))
            drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.market-fish-image.silhouette {
    filter: brightness(0) opacity(0.5);
}

.market-fish-name {
    color: #4CAFFA;
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 5px;
    text-align: center;
}

.market-fish-name.arcane {
    color: #FFD700;
    text-shadow:
        0 0 8px rgba(255, 215, 0, 0.8),
        0 0 12px rgba(255, 215, 0, 0.6),
        0 0 16px rgba(255, 215, 0, 0.4);
    animation: arcaneTextGlow 2s ease-in-out infinite;
}

.market-fish-caught-by {
    color: #888;
    font-size: 0.85em;
    text-align: center;
    margin-bottom: 10px;
}

.market-fish-stats {
    display: flex;
    justify-content: space-around;
    margin: 10px 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.market-fish-stat {
    text-align: center;
}

.market-fish-stat-label {
    color: #888;
    font-size: 0.8em;
    display: block;
}

.market-fish-stat-value {
    color: #FFF;
    font-size: 1.1em;
    font-weight: bold;
}

.market-value {
    text-align: center;
    margin: 15px 0;
    padding: 12px;
    background: linear-gradient(135deg, #F2994A 0%, #F2C94C 100%);
    border-radius: 10px;
    font-weight: bold;
    font-size: 1.2em;
    color: #000;
}

/* Pokemon-style Storage Box Grid */
.pokemon-box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 8px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    max-height: 500px;
    overflow-y: auto;
}

/* Mobile: smaller boxes to fit more per row */
@media (max-width: 768px) {
    .pokemon-box-grid {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
        padding: 12px;
    }
}

.pokemon-box-slot {
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #4CAFFA;
    border-radius: 8px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pokemon-box-slot:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(76, 175, 250, 0.6);
    border-color: #FFF;
}

.pokemon-box-slot.shiny {
    border-color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.pokemon-box-slot.shiny:hover {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
}

.pokemon-box-slot.arcane {
    border-color: #FFD700;
    animation: arcaneGlow 2s ease-in-out infinite;
}

.pokemon-box-fish-img {
    width: 100%;
    height: 60%;
    object-fit: contain;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    margin-bottom: 2px;
}

.pokemon-box-fish-size {
    font-size: 0.65em;
    color: #FFF;
    font-weight: bold;
    margin-top: auto;
    z-index: 1;
}

/* Mobile: even smaller text */
@media (max-width: 768px) {
    .pokemon-box-fish-img {
        height: 55%;
    }

    .pokemon-box-fish-size {
        font-size: 0.6em;
    }

    .pokemon-box-shiny-badge {
        font-size: 0.7em;
    }

    .pokemon-box-nickname {
        font-size: 0.5em;
        bottom: 1px;
    }
}

.pokemon-box-shiny-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.75em;
    z-index: 2;
}

.pokemon-box-nickname {
    position: absolute;
    bottom: 2px;
    left: 2px;
    right: 2px;
    font-size: 0.55em;
    color: #FFD700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 3px;
    padding: 1px 2px;
    z-index: 1;
}

/* Storage Action Modal */
.storage-action-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 3px solid #4CAFFA;
    border-radius: 15px;
    padding: 25px;
    z-index: 10001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7);
    max-width: 400px;
}

.storage-action-modal.shiny {
    border-color: #FFD700;
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.4);
}

.storage-action-fish-display {
    text-align: center;
    margin-bottom: 20px;
}

.storage-action-fish-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}

.storage-action-fish-name {
    font-size: 1.5em;
    color: #4CAFFA;
    font-weight: bold;
    margin: 10px 0;
}

.storage-action-fish-name.shiny {
    color: #FFD700;
}

.storage-action-fish-details {
    color: #AAA;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.storage-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.storage-action-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.storage-action-btn:hover {
    transform: scale(1.02);
}

.storage-action-btn.move {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
}

.storage-action-btn.sell {
    background: linear-gradient(135deg, #F2994A 0%, #F2C94C 100%);
    color: black;
}

.storage-action-btn.cancel {
    background: linear-gradient(135deg, #555 0%, #444 100%);
    color: white;
}

.storage-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
}

.market-fish-actions {
    display: flex;
    gap: 8px;
    margin-top: 15px;
}

.market-fish-actions .btn {
    flex: 1;
    font-size: 0.85em;
    padding: 8px 4px;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-sell {
    flex: 1;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto;
    text-align: center;
}

.btn-sell:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.5);
}

.btn-offer {
    flex: 1;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-offer:hover {
    transform: scale(1.05);
}

/* Trade Offers */
.trade-offer-card {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 3px solid #667eea;
}

.trade-offer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.trade-offer-type {
    color: #F2C94C;
    font-weight: bold;
    font-size: 1.2em;
}

.trade-offer-time {
    color: #888;
    font-size: 0.9em;
}

.trade-offer-body {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 20px 0;
}

.trade-fish-display {
    flex: 1;
    text-align: center;
}

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

.trade-arrow {
    font-size: 2em;
    color: #4CAFFA;
}

.trade-offer-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.btn-accept {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.btn-reject {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
}

.btn-cancel {
    background: linear-gradient(135deg, #888 0%, #666 100%);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .market-tabs {
        flex-direction: column;
    }
    
    .market-fish-grid {
        grid-template-columns: 1fr;
    }
    
    .trade-offer-body {
        flex-direction: column;
    }
}
