:root {
    --primary: #00f0ff;
    --primary-dim: rgba(0, 240, 255, 0.1);
    --secondary: #7000ff;
    --accent: #ffd700;
    --bg-dark: #050510;
    --bg-card: rgba(20, 20, 30, 0.6);
    --glass: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #8899aa;
    --font-main: 'Rajdhana', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    user-select: none;
    /* Cyberpunk Grid Background Overlay */
    background-image:
        linear-gradient(rgba(5, 5, 16, 0.9), rgba(5, 5, 16, 0.9)),
        linear-gradient(0deg, transparent 24%, rgba(0, 240, 255, .03) 25%, rgba(0, 240, 255, .03) 26%, transparent 27%, transparent 74%, rgba(0, 240, 255, .03) 75%, rgba(0, 240, 255, .03) 76%, transparent 77%, transparent),
        linear-gradient(90deg, transparent 24%, rgba(0, 240, 255, .03) 25%, rgba(0, 240, 255, .03) 26%, transparent 27%, transparent 74%, rgba(0, 240, 255, .03) 75%, rgba(0, 240, 255, .03) 76%, transparent 77%, transparent);
    background-size: 100% 100%, 50px 50px, 50px 50px;
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
}

.app {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- HEADER (PREMIUM) --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    z-index: 10;
    margin-bottom: 20px;
    padding: 15px 20px;
    /* Added padding to match original header */
}

.header-left {
    flex: 1;
}

.header-right {
    display: flex;
    gap: 10px;
}

.header-glass {
    display: inline-flex;
    /* Changed from flex */
    background: rgba(20, 20, 30, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 8px 16px;
    align-items: center;
}

.wallet-widget {
    background: rgba(0, 136, 204, 0.2);
    /* TON Blue Tint */
    border: 1px solid rgba(0, 136, 204, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.wallet-widget.connected {
    background: rgba(0, 136, 204, 0.4);
    border: 1px solid #0088cc;
    box-shadow: 0 0 10px rgba(0, 136, 204, 0.3);
}

.wallet-widget:active {
    transform: scale(0.95);
    background: rgba(0, 136, 204, 0.3);
}

.wallet-icon {
    font-size: 14px;
}

.wallet-val {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.status-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00f0ff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00f0ff;
    animation: blink 2s infinite;
}

.status-text {
    font-size: 12px;
    letter-spacing: 1px;
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.settings-btn.glass-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
}

.settings-btn.glass-btn:active {
    transform: scale(0.95);
    background: var(--primary-dim);
}

/* --- MAIN SCREEN (PREMIUM) --- */
.main-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    overflow: hidden;
}

/* Balance */
.balance-section {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%;
}

.balance-label {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 3px;
    margin-bottom: 5px;
    font-weight: 600;
}

.balance-container {
    position: relative;
    display: inline-block;
}

.balance-value {
    font-size: 56px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.glitch-text {
    position: relative;
}

/* Information Strip */
.block-info-glass {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 6px 14px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.05), transparent);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 20px;
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
}

.block-icon {
    font-size: 14px;
}

.decryption-status {
    width: 100%;
    margin-top: 15px;
    padding: 0 40px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    box-shadow: 0 0 10px var(--primary);
    transition: width 0.3s ease-out;
}

.decryption-text {
    font-size: 10px;
    color: var(--primary);
    font-family: monospace;
    letter-spacing: 1px;
    text-align: right;
}

/* --- CORE ANIMATION --- */
.mining-zone {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.central-core {
    width: 280px;
    height: 280px;
    position: absolute;
    /* Behind the button */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

.core-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border-style: dashed;
    opacity: 0.6;
}

.ring-outer {
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-top: 2px solid var(--primary);
    animation: spin 15s linear infinite;
}

.ring-mid {
    inset: 20px;
    border: 1px solid rgba(112, 0, 255, 0.2);
    border-bottom: 2px solid var(--secondary);
    animation: spin 10s linear infinite reverse;
}

.ring-inner {
    inset: 50px;
    border: 1px dotted var(--primary);
    animation: spin 5s linear infinite;
}

.core-center-glow {
    position: absolute;
    inset: 70px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1), transparent 70%);
    filter: blur(10px);
    animation: breathe 3s ease-in-out infinite;
}

/* --- PREMIUM BUTTON --- */
.mine-btn-premium {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.mine-btn-premium:active {
    transform: scale(0.92);
}

.btn-glass-layer {
    position: absolute;
    inset: 0;
    background: radial-gradient(130% 130% at 50% -10%, rgba(255, 255, 255, 0.05), transparent 60%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(0, 240, 255, 0.05);
    backdrop-filter: blur(5px);
}

.btn-content-premium {
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 120%, rgba(0, 240, 255, 0.1), transparent 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    gap: 5px;
}

.btn-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.btn-icon-large {
    font-size: 36px;
    filter: drop-shadow(0 0 10px var(--primary));
    margin-bottom: 5px;
}

.btn-text-group {
    text-align: center;
}

.btn-action {
    display: block;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(to right, #fff, #bffffa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-reward {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- STATS PANEL --- */
/* --- HASHRATE MONITOR --- */
.hashrate-panel {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 100px;
    padding: 0 20px;
}

.monitor-line {
    background: rgba(10, 20, 30, 0.8);
    border: 1px solid var(--primary-dim);
    border-radius: 12px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

.monitor-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 2px;
}

.monitor-val {
    font-size: 16px;
    font-family: monospace;
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 5px var(--primary-dim);
}

/* Keyframes */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes breathe {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(0.9);
    }

    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- LEADERBOARD --- */
.rating-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    font-size: 13px;
}

.rating-row.gold {
    border-left: 3px solid #ffd700;
    background: rgba(255, 215, 0, 0.05);
}

.rating-row.silver {
    border-left: 3px solid #c0c0c0;
    background: rgba(192, 192, 192, 0.05);
}

.rating-row.bronze {
    border-left: 3px solid #cd7f32;
    background: rgba(205, 127, 50, 0.05);
}

.rating-pos {
    font-weight: 700;
    width: 35px;
    text-align: center;
    color: var(--text-muted);
}

.rating-name {
    flex: 1;
    color: #fff;
    font-weight: 500;
}

.rating-val {
    font-family: monospace;
    color: var(--primary);
    font-weight: 700;
}

/* Экраны */
.screen {
    position: absolute;
    top: 70px;
    bottom: 80px;
    left: 0;
    right: 0;
    background: #050510;
    display: none;
    flex-direction: column;
    z-index: 20;
}

.screen:not(.hidden) {
    display: flex;
}

.screen-title {
    font-size: 24px;
    font-weight: 700;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffd700;
}

.screen-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* --- MARKETPLACE (PREMIUM) --- */
.shop-section-title {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 2px;
    margin: 20px 0 10px 0;
    padding-left: 5px;
    border-left: 3px solid var(--primary);
}

.shop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.shop-item-premium {
    position: relative;
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.shop-item-premium:active {
    transform: scale(0.96);
    background: rgba(20, 20, 30, 0.8);
}

.shop-item-premium.large {
    grid-column: span 2;
    flex-direction: row;
    gap: 15px;
    text-align: left;
    padding: 20px;
    background: linear-gradient(90deg, rgba(20, 20, 30, 0.8), rgba(20, 20, 30, 0.4));
}

/* Glow Effect behind large items */
.shop-bg-glow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 150px;
    height: 150px;
    opacity: 0.2;
    filter: blur(30px);
    pointer-events: none;
}

.shop-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.shop-item-premium.large .shop-icon-wrapper {
    width: 60px;
    height: 60px;
    margin-bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.shop-icon-lg {
    font-size: 24px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.shop-details {
    flex: 1;
    z-index: 1;
}

.shop-name {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.shop-buff {
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 8px;
}

.shop-cost {
    font-size: 12px;
    font-weight: 700;
    color: #0088cc;
    /* TON Blue */
    background: rgba(0, 136, 204, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

/* --- NAVBAR (PREMIUM) --- */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 50;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 5px;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, var(--primary-dim), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 50%;
}

.tab-btn.active {
    color: #fff;
}

.tab-btn.active::before {
    opacity: 1;
}

.tab-icon {
    font-size: 24px;
    z-index: 1;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s;
}

.tab-btn.active .tab-icon {
    transform: translateY(-2px);
    filter: drop-shadow(0 0 8px var(--primary));
}

.tab-label {
    font-size: 10px;
    font-weight: 700;
    font-family: var(--font-main);
    letter-spacing: 1px;
    z-index: 1;
}

/* --- MODAL (PREMIUM) --- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease-out;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(20, 20, 30, 0.9);
    width: 90%;
    max-width: 340px;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(1);
    animation: slideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    font-size: 18px;
    letter-spacing: 2px;
    color: var(--primary);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #fff;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s;
}

.toggle-btn.active {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary-dim);
    border-color: var(--primary);
}

/* Анимации */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

#floaters .floater {
    position: absolute;
    font-size: 24px;
    font-weight: 700;
    color: #ffd700;
    animation: floatUp 1s forwards;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes floatUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    100% {
        transform: translateY(-80px) scale(0.8);
        opacity: 0;
    }
}

.rating-row {
    display: flex;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    margin-bottom: 8px;
    align-items: center;
}

.rating-row.highlight {
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.rating-pos {
    width: 40px;
    font-weight: 700;
    color: #888;
}

.rating-val {
    margin-left: auto;
    color: #ffd700;
    font-weight: 700;
}

/* Уведомление о блоке */
.block-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ffff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    z-index: 2000;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.3);
}

.block-notification h3 {
    color: #00ffff;
    font-size: 32px;
    margin-bottom: 10px;
}

.block-notification p {
    color: #fff;
    letter-spacing: 2px;
}

@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* --- STATS SCREEN --- */
.stats-card {
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.stats-supply-bar-bg {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 10px;
}

.stats-supply-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f0ff, #7000ff);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.stats-row {
    display: flex;
    justify-content: space-between;
}

.stats-row-center {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.stat-big-icon {
    font-size: 32px;
}

.stat-big-info .label {
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.stat-big-info .val {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.stat-big-info .val.highlight {
    color: var(--accent);
}

.stats-sub-val .label {
    font-size: 9px;
    color: var(--text-muted);
}

.stats-sub-val .val {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.stats-sub-val.right {
    text-align: right;
}

/* Simulated Graph */
.graph-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    padding-top: 20px;
    gap: 10px;
}

.graph-bar {
    width: 12%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: all 0.5s;
}

.graph-bar.active {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary-dim);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px) scale(0.9);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Glitch Effect */
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-1 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    5% {
        clip: rect(70px, 9999px, 90px, 0);
    }

    10% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    15% {
        clip: rect(80px, 9999px, 50px, 0);
    }

    20% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    25% {
        clip: rect(40px, 9999px, 30px, 0);
    }

    30% {
        clip: rect(60px, 9999px, 90px, 0);
    }

    35% {
        clip: rect(20px, 9999px, 40px, 0);
    }

    40% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    45% {
        clip: rect(50px, 9999px, 30px, 0);
    }

    50% {
        clip: rect(30px, 9999px, 70px, 0);
    }

    55% {
        clip: rect(90px, 9999px, 10px, 0);
    }

    60% {
        clip: rect(20px, 9999px, 40px, 0);
    }

    65% {
        clip: rect(60px, 9999px, 70px, 0);
    }

    70% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    75% {
        clip: rect(50px, 9999px, 90px, 0);
    }

    80% {
        clip: rect(20px, 9999px, 60px, 0);
    }

    85% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    90% {
        clip: rect(40px, 9999px, 60px, 0);
    }

    95% {
        clip: rect(70px, 9999px, 20px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 80px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    5% {
        clip: rect(80px, 9999px, 10px, 0);
    }

    10% {
        clip: rect(20px, 9999px, 60px, 0);
    }

    15% {
        clip: rect(60px, 9999px, 30px, 0);
    }

    20% {
        clip: rect(40px, 9999px, 90px, 0);
    }

    25% {
        clip: rect(20px, 9999px, 40px, 0);
    }

    30% {
        clip: rect(90px, 9999px, 10px, 0);
    }

    35% {
        clip: rect(10px, 9999px, 80px, 0);
    }

    40% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    45% {
        clip: rect(70px, 9999px, 30px, 0);
    }

    50% {
        clip: rect(40px, 9999px, 50px, 0);
    }

    55% {
        clip: rect(60px, 9999px, 20px, 0);
    }

    60% {
        clip: rect(80px, 9999px, 60px, 0);
    }

    65% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    70% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    75% {
        clip: rect(40px, 9999px, 70px, 0);
    }

    80% {
        clip: rect(10px, 9999px, 30px, 0);
    }

    85% {
        clip: rect(50px, 9999px, 20px, 0);
    }

    90% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    95% {
        clip: rect(30px, 9999px, 10px, 0);
    }

    100% {
        clip: rect(70px, 9999px, 30px, 0);
    }
}

/* --- DIFFICULTY GRAPH --- */
.graph-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100px;
    margin-top: 15px;
    padding: 0 10px;
}

.graph-bar {
    width: 12%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: height 0.3s ease;
    position: relative;
}

.graph-bar.active {
    background: linear-gradient(180deg, #ff4444, rgba(255, 68, 68, 0.2));
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.3);
}

.graph-bar:hover {
    background: rgba(255, 255, 255, 0.2);
}