/* Основные стили */
:root {
    --primary: #000000;
    --secondary: #ff6600;
    --accent: #ff9900;
    --danger: #ff3333;
    --success: #00cc66;
    --warning: #ffcc00;
    --text: #ffffff;
    --text-secondary: #cccccc;
    --card-bg: #111111;
    --border: #333333;
    --cyber-glow: 0 0 10px var(--secondary), 0 0 20px var(--secondary);
    --font-main: 'Roboto', sans-serif;
    --font-title: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 102, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 102, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    pointer-events: none;
}

.floating-icons {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-icons .icon {
    position: absolute;
    color: rgba(255, 102, 0, 0.1);
    font-size: 24px;
    animation: float 6s ease-in-out infinite;
}

.floating-icons .icon:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-icons .icon:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.floating-icons .icon:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.floating-icons .icon:nth-child(4) { bottom: 20%; right: 10%; animation-delay: 3s; }

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

/* Контейнер */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Шапка */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(90deg, #111 0%, #222 100%);
    border-radius: 15px;
    border: 2px solid var(--secondary);
    box-shadow: var(--cyber-glow);
    margin-bottom: 30px;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-icon {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

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

.logo-icon i {
    font-size: 30px;
    color: white;
}

.bunny-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    font-size: 20px;
    color: white;
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-5px); }
}

.logo h1 {
    font-family: var(--font-title);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.cyber-text {
    color: var(--secondary);
    text-shadow: var(--cyber-glow);
}

.defender-text {
    color: var(--text);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 30px;
}

.sound-control {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--secondary);
    color: var(--secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.control-btn:hover {
    background: var(--secondary);
    color: white;
    transform: scale(1.1);
}

.control-btn.active {
    background: var(--secondary);
    color: white;
}

.carrots-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.carrots-count {
    font-size: 32px;
    font-weight: bold;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 5px var(--accent); }
    to { text-shadow: 0 0 15px var(--accent); }
}

.carrots-count i {
    color: var(--accent);
}

.carrots-label {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Основной контент */
.main-content {
    display: flex;
    flex: 1;
    gap: 25px;
    margin-bottom: 30px;
}

/* Карточки */
.card {
    background: var(--card-bg);
    border-radius: 15px;
    border: 2px solid var(--border);
    overflow: hidden;
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--secondary);
    transform: translateY(-5px);
}

.card-header {
    background: linear-gradient(90deg, #222 0%, #333 100%);
    padding: 20px;
    border-bottom: 2px solid var(--secondary);
}

.card-header h2 {
    font-family: var(--font-title);
    color: var(--secondary);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 25px;
}

/* Левая панель */
.left-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
    min-width: 280px;
}

.instructions-card .card-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.cyber-button {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cyber-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.4);
}

.cyber-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.carrot-info {
    margin-top: 25px;
    padding: 20px;
    background: rgba(255, 102, 0, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--accent);
}

.carrot-info h4 {
    color: var(--accent);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.carrot-info li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
}

.correct { color: var(--success); }
.error { color: var(--danger); }
.warning { color: var(--warning); }

/* Профиль игрока */
.profile-card .player-avatar {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: rotate 20s linear infinite;
}

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

.avatar-circle i {
    font-size: 40px;
    color: white;
    animation: rotateReverse 20s linear infinite;
}

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

.progress-container {
    margin-bottom: 25px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.progress-bar {
    height: 20px;
    background: var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    border-radius: 10px;
    width: 0%;
    transition: width 1s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

.stat {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgba(255, 102, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 102, 0, 0.2);
}

.stat-label {
    color: var(--text-secondary);
}

.stat-value {
    color: var(--accent);
    font-weight: bold;
    font-size: 18px;
}

/* Центральная панель */
.center-panel {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bunny-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.bunny-animation {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
    border: 2px solid var(--secondary);
    box-shadow: var(--cyber-glow);
    display: flex;
    align-items: center;
    gap: 30px;
    animation: bunnyEntrance 0.8s ease-out;
}

@keyframes bunnyEntrance {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.bunny-avatar {
    position: relative;
}

#bunny-image {
    width: 150px;
    height: 150px;
    filter: drop-shadow(0 0 10px var(--secondary));
    animation: bunnyFloat 3s ease-in-out infinite;
}

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

.bunny-status {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    animation: statusPulse 1.5s infinite;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.bunny-message {
    flex: 1;
    background: rgba(255, 102, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary);
    font-size: 18px;
    line-height: 1.6;
}

.levels-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 30px;
}

.section-title {
    font-family: var(--font-title);
    color: var(--secondary);
    font-size: 24px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.level-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #222 100%);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.level-card.active {
    border-color: var(--secondary);
    box-shadow: 0 0 20px rgba(255, 102, 0, 0.3);
}

.level-card.locked {
    opacity: 0.7;
    filter: grayscale(0.5);
}

.level-card:hover {
    transform: translateY(-5px);
}

.level-card:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from { width: 0; }
    to { width: 100%; }
}

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

.level-number {
    font-family: var(--font-title);
    font-size: 32px;
    font-weight: bold;
    color: var(--secondary);
    opacity: 0.3;
}

.level-status {
    font-size: 14px;
    padding: 5px 15px;
    border-radius: 15px;
    background: rgba(255, 102, 0, 0.1);
    border: 1px solid var(--secondary);
    color: var(--secondary);
}

.level-status.locked {
    background: rgba(255, 51, 51, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.level-content h3 {
    font-family: var(--font-title);
    font-size: 22px;
    color: var(--text);
    margin-bottom: 10px;
}

.level-desc {
    color: var(--secondary);
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.level-hint {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
}

.level-btn {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

/* Правая панель */
.right-panel {
    flex: 1.2;
    min-width: 320px;
}

.chat-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 2s infinite;
}

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

.indicator-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.app-label {
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-body-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-time {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 20px;
    padding: 5px;
    background: rgba(255, 102, 0, 0.05);
    border-radius: 5px;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}

.chat-body::-webkit-scrollbar {
    width: 6px;
}

.chat-body::-webkit-scrollbar-track {
    background: rgba(255, 102, 0, 0.1);
    border-radius: 3px;
}

.chat-body::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    animation: messageAppear 0.3s ease-out;
}

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

.message-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.friend-message .message-avatar {
    background: linear-gradient(135deg, #4285f4, #34a853);
}

.message-content {
    flex: 1;
    background: var(--border);
    padding: 15px;
    border-radius: 15px;
    border-top-left-radius: 0;
}

.friend-message .message-content {
    background: #222;
    border: 1px solid #4285f4;
}

.message-sender {
    font-weight: bold;
    color: var(--secondary);
    margin-bottom: 5px;
    font-size: 14px;
}

.friend-message .message-sender {
    color: #4285f4;
}

.message-text {
    line-height: 1.5;
    margin-bottom: 5px;
}

.message-text .link {
    color: var(--accent);
    text-decoration: underline;
    cursor: pointer;
}

.message-time {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: right;
}

.chat-question {
    background: rgba(255, 102, 0, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--warning);
}

.question-text {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.carrot-hint {
    color: var(--accent);
    font-weight: bold;
    animation: carrotBlink 1s infinite;
}

@keyframes carrotBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option {
    background: var(--border);
    border: 2px solid transparent;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.option:hover {
    background: #222;
    transform: translateX(5px);
}

.option.correct {
    border-color: var(--success);
    background: rgba(0, 204, 102, 0.1);
}

.option-number {
    width: 30px;
    height: 30px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.option.correct .option-number {
    background: var(--success);
}

.option-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.4;
}

.option-hint {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.option.correct .option-hint {
    background: rgba(0, 204, 102, 0.3);
    color: var(--success);
}

/* Подвал */
.footer {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px 30px;
    border-top: 2px solid var(--secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.game-tip {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 60%;
}

.game-tip i {
    color: var(--warning);
    font-size: 20px;
}

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

.footer-btn {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.footer-btn:hover {
    color: var(--secondary);
    border-color: var(--secondary);
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

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

.cyber-modal {
    background: var(--card-bg);
    border-radius: 20px;
    border: 3px solid var(--secondary);
    box-shadow: var(--cyber-glow);
    width: 90%;
    max-width: 600px;
    overflow: hidden;
    animation: modalSlideIn 0.4s ease-out;
}

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

.modal-header {
    background: linear-gradient(90deg, #222 0%, #333 100%);
    padding: 25px;
    border-bottom: 2px solid var(--secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-family: var(--font-title);
    color: var(--secondary);
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close {
    color: var(--secondary);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close:hover {
    background: var(--secondary);
    color: white;
}

.modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 20px 30px;
    background: rgba(255, 102, 0, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.instruction-step {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    align-items: flex-start;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: var(--font-title);
    flex-shrink: 0;
}

.step-content h4 {
    color: var(--secondary);
    margin-bottom: 8px;
    font-size: 18px;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Модальное окно дополнительного задания */
.warning-modal {
    border-color: var(--warning);
}

.warning-modal .modal-header {
    border-bottom-color: var(--warning);
}

.warning-modal .modal-header h2 {
    color: var(--warning);
}

.warning-icon {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    font-size: 50px;
}

.warning-icon i {
    animation: warningPulse 2s infinite;
}

.warning-icon i:nth-child(1) { color: var(--accent); animation-delay: 0s; }
.warning-icon i:nth-child(2) { color: var(--danger); animation-delay: 0.2s; }
.warning-icon i:nth-child(3) { color: var(--warning); animation-delay: 0.4s; }

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

.extra-task {
    background: rgba(255, 204, 0, 0.1);
    padding: 25px;
    border-radius: 10px;
    margin-top: 25px;
    border: 1px solid var(--warning);
}

.extra-task h4 {
    color: var(--warning);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.task-question {
    color: var(--text);
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.task-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.task-option:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

.task-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--secondary);
}

.task-option span {
    flex: 1;
    color: var(--text);
}

.cyber-button.secondary {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.cyber-button.secondary:hover {
    background: var(--secondary);
    color: white;
}

/* Адаптивность */
@media (max-width: 1200px) {
    .main-content {
        flex-wrap: wrap;
    }
    
    .left-panel, .right-panel {
        flex: 1 1 100%;
    }
    
    .center-panel {
        order: -1;
    }
    
    .levels-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .header-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .bunny-animation {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .game-tip {
        max-width: 100%;
    }
    
    .chat-options .option {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .option-hint {
        align-self: flex-start;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .cyber-modal {
        width: 95%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .levels-grid {
        grid-template-columns: 1fr;
    }
    
    .chat-options .option {
        padding: 12px;
    }
    
    .cyber-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Анимации для планшетов */
@media (min-width: 769px) and (max-width: 1024px) {
    .bunny-animation {
        padding: 20px;
    }
    
    #bunny-image {
        width: 120px;
        height: 120px;
    }
    
    .levels-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Темная тема по умолчанию */
@media (prefers-color-scheme: dark) {
    :root {
        --primary: #0a0a0a;
        --card-bg: #1a1a1a;
    }
}

/* Анимация загрузки */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading .bunny-loading {
    width: 100px;
    height: 100px;
    animation: rotate 2s linear infinite;
}

.loading-text {
    margin-top: 20px;
    font-family: var(--font-title);
    color: var(--secondary);
    font-size: 24px;
    animation: loadingText 2s ease-in-out infinite;
}

@keyframes loadingText {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}