body {
    margin: 0;
    padding: 0;
    background-color: #0b1118;
    background-image: url('https://sirus.su/public/img/bg.jpg');
    /* Можно заменить на локальную картинку */
    background-size: cover;
    font-family: 'Roboto', sans-serif;
    color: white;
    overflow: hidden;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Секретные стрелки по углам */
.corner-arrow {
    position: fixed;
    width: 28px;
    height: 28px;
    background: rgba(50, 50, 50, 0.6);
    color: #888;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 9999;
    border-radius: 4px;
    transition: all 0.2s;
    user-select: none;
}

.corner-arrow:hover {
    background: rgba(80, 80, 80, 0.8);
    color: #ffd700;
}

.corner-arrow:active {
    transform: scale(0.9);
}

.corner-arrow.top-right {
    top: 5px;
    right: 5px;
}

.corner-arrow.top-left {
    top: 5px;
    left: 5px;
}

.corner-arrow.bottom-right {
    bottom: 5px;
    right: 5px;
}

.corner-arrow.bottom-left {
    bottom: 5px;
    left: 5px;
}

#snake-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 500;
    /* Поверх всего, но ниже модалок (1000) */
    pointer-events: none;
    /* Пропускать клики, чтобы можно было играть в кликер */
    display: none;
}

.snake-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 20px black;
    z-index: 400;
    /* Под канвасом, но над лаунчером */
    display: none;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
}

/* Модальное окно входа */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #1a2332;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #3c4c63;
}

.modal-content input {
    display: block;
    margin: 10px auto;
    padding: 10px;
    width: 200px;
    background: #0f1621;
    border: 1px solid #444;
    color: white;
}

.modal-content button {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: bold;
    margin: 5px;
}

.modal-content button.secondary-btn {
    background: #555;
}

.modal-content button.secondary-btn:hover {
    background: #777;
}

/* Стили для ссылок в модалке */
.modal-link-list {
    text-align: center;
    /* Центрируем ссылки */
    margin-bottom: 15px;
}

.modal-link-list a {
    color: #e0e0e0;
    /* Мягкий белый */
    display: block;
    margin: 8px 0;
    text-decoration: none;
    transition: color 0.2s;
}

.modal-link-list a:hover {
    color: #ffd700;
    /* Золотой при наведении */
    text-decoration: underline;
}

.modal-footer-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    /* Полупрозрачный */
    margin-top: 15px;
    display: block;
}

/* Основной контейнер лаунчера */
.launcher-container {
    width: 960px;
    height: 600px;
    background: rgba(16, 26, 41, 0.95);
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 550;
    /* Выше змейки (500), чтобы она ползала на фоне */
}

/* Хедер */
header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #2a3b55;
    background: rgba(0, 0, 0, 0.2);
}

.logo {
    color: #ffd700;
    font-weight: bold;
    font-size: 24px;
    font-family: serif;
    /* Упрощенно */
}

/* Принудительный Z-Index для интерактивных элементов шапки */
#launcher-logo,
#launcher-close {
    position: relative;
    z-index: 601;
    cursor: pointer;
}

nav a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    position: relative;
    z-index: 600;
    /* Выше канваса */
}

nav a:hover {
    color: white;
}

/* Контент */
.content-wrapper {
    display: flex;
    flex: 1;
}

/* Сайдбар (Топ игроков) */
.sidebar {
    width: 250px;
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-right: 1px solid #2a3b55;
    display: flex;
    flex-direction: column;
}

.leaderboard-list {
    flex: 1;
    overflow-y: auto;
    margin-top: 10px;
}

.player-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.player-row:nth-child(1) {
    color: #ff8000;
}

/* Легендарный цвет для 1 места */
.player-row:nth-child(2) {
    color: #a335ee;
}

/* Эпический */
.player-row:nth-child(3) {
    color: #0070dd;
}

/* Редкий */

/* Мейн контент */
.main-content {
    flex: 1;
    padding: 20px;
}

.banners {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.banner-card {
    flex: 1;
    height: 180px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    position: relative;
    border: 1px solid #444;
    overflow: hidden;
    cursor: pointer;
}

.banner-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    text-align: center;
}

.banner-text h2 {
    margin: 5px 0;
    font-size: 18px;
    text-transform: uppercase;
}

.banner-text h3 {
    margin: 0;
    font-size: 12px;
    color: #aaa;
}

/* Магазин/Новости */
.news-section {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #2a3b55;
}

.shop-items {
    display: flex;
    gap: 10px;
    margin: 10px 0;
}

.shop-btn {
    flex: 1;
    background: #2a3b55;
    border: 1px solid #4a6b95;
    color: white;
    padding: 10px;
    cursor: pointer;
    font-size: 12px;
}

.shop-btn:hover {
    background: #3a4b65;
}

.cost {
    color: #ffd700;
    font-weight: bold;
    display: block;
    margin-top: 5px;
}

/* Футер (Прогресс бар) */
.footer {
    height: 80px;
    background: #151e2b;
    border-top: 1px solid #2a3b55;
    display: flex;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.time-remaining {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    z-index: 10002;
    /* Ensure it's above taskbar and other elements */
    transition: color 0.3s;
}

.time-remaining:hover {
    color: #fff;
    text-shadow: 0 0 5px #ffd700;
}

.footer-links button {
    position: relative;
    z-index: 600;
}

.progress-area {
    flex: 1;
    background: #eef7f2;
    /* Цвет фона плашки */
    border-radius: 4px;
    padding: 10px 15px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    /* Показываем, что можно кликать */
    color: #1a4f35;
    /* Темно-зеленый текст */
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    user-select: none;
}

.progress-area:active {
    transform: scale(0.99);
    /* Эффект нажатия */
}

.status-icon {
    font-weight: bold;
    margin-right: 5px;
}

.progress-bar-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #ccc;
}

.progress-fill {
    height: 100%;
    background: #28a745;
    width: 0%;
    transition: width 0.2s;
}

.play-btn {
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    padding: 12px 50px;
    font-weight: bold;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.play-btn:hover {
    background: linear-gradient(135deg, #34ce57, #28a745);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.inspiration-btn {
    background: linear-gradient(135deg, #ff8000, #e67300);
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(255, 128, 0, 0.4);
}

.inspiration-btn:hover {
    background: linear-gradient(135deg, #ffaa33, #ff8000);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 128, 0, 0.6);
}

/* --- POP-IT MODAL --- */
#popit-modal {
    z-index: 2000;
    /* Самый верхний */
}

.popit-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.popit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    background: #333;
    padding: 10px;
    border-radius: 10px;
}

.popit-cell {
    display: block;
    /* Force block for non-flex/grid containers fallback */
    width: 50px;
    height: 50px;
    background-color: #ff4444;
    /* Red initially */
    border-radius: 50%;
    cursor: pointer;
    box-shadow: inset -2px -2px 5px rgba(0, 0, 0, 0.5), 2px 2px 5px rgba(255, 255, 255, 0.3);

    /* Cross-browser transitions */
    -webkit-transition: -webkit-transform 0.1s, background-color 0.2s;
    -o-transition: transform 0.1s, background-color 0.2s;
    /* Opera */
    transition: transform 0.1s, background-color 0.2s;

    /* Mobile & Touch optimization */
    touch-action: manipulation;
    /* Prevents double-tap zoom delay */
    -webkit-tap-highlight-color: transparent;
    /* Removes blue overlay on tap */
    user-select: none;
    /* Disable text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.popit-cell:active {
    -webkit-transform: scale(0.9);
    -o-transform: scale(0.9);
    /* Opera */
    transform: scale(0.9);
}

.popit-cell.popped {
    background-color: #4caf50;
    /* Green when popped */
    box-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.5);
    /* Вдавленный эффект */
}

.popit-message {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 300px;
    line-height: 1.4;
}

.popit-hint {
    font-size: 12px;
    color: #ffd700;
    opacity: 0.8;

}

/* --- WINDOWS 7 TASKBAR --- */
.win7-taskbar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(20, 20, 255, 0.4);
    /* Glass base */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
    font-family: 'Segoe UI', sans-serif;
    user-select: none;
    /* gradient gloss */
    background: linear-gradient(to bottom,
            rgba(30, 40, 60, 0.7) 0%,
            rgba(30, 40, 60, 0.8) 50%,
            rgba(0, 0, 0, 0.8) 51%,
            rgba(0, 0, 0, 0.8) 100%);
}

.start-button-container {
    width: 50px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
}

.start-button img {
    width: 36px;
    height: 36px;
    transition: filter 0.2s;
    cursor: pointer;
}

.start-button img:hover {
    filter: brightness(1.2);
}

.taskbar-items {
    flex-grow: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 5px;
}

.taskbar-icon {
    width: 46px;
    /* slightly wider for hover effect */
    height: 36px;
    margin: 0 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    position: relative;
}

.taskbar-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.taskbar-icon:hover {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.2) 100%);
    box-shadow: 0 0 2px rgba(255, 255, 255, 0.8), inset 0 0 2px rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.taskbar-icon.active-app {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 100%);
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Active app needs a highlight at the top or bottom usually, Win7 has a glow */
.taskbar-icon.active-app::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 4px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
}

.system-tray {
    display: flex;
    align-items: center;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    padding: 0 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 2px 0 5px rgba(0, 0, 0, 0.2);
}

.tray-icons {
    display: flex;
    gap: 8px;
    margin-right: 10px;
}

.tray-icon {
    width: 16px;
    height: 16px;
    background-color: #ccc;
    /* Placeholder */
    opacity: 0.8;
}

.tray-icon.network {
    background: transparent;
    border: 2px solid #ccc;
    border-top: none;
    /* Very crude placeholder */
    width: 14px;
    height: 10px;
}

.tray-icon.volume {
    background: #ccc;
    clip-path: polygon(0 30%, 30% 30%, 30% 0, 100% 0, 100% 100%, 30% 100%, 30% 70%, 0 70%);
}

.clock {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 11px;
    line-height: 1.2;
    text-shadow: 0 0 3px black;
    cursor: default;
    margin-right: 10px;
}

.show-desktop {
    width: 10px;
    height: 100%;
    margin-left: 5px;
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.show-desktop:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Make sure modal is ABOVE taskbar */
.modal-overlay {
    z-index: 10000;
}

/* --- WINDOWS 7 WINDOW STYLE --- */
.win7-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    background: rgba(240, 240, 255, 0.95);
    /* Opaque enough */
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    display: flex;
    flex-direction: column;
    z-index: 10001;
    /* ABOVE everything except maybe critical modals */
    /* Below modal, above content */
    backdrop-filter: blur(5px);
    font-family: 'Segoe UI', sans-serif;
}

.title-bar {
    height: 30px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(200, 200, 255, 0.4));
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 7px 7px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    user-select: none;
    cursor: default;
    /* Could be grab if draggable */
}

.title-bar-text {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #000;
    text-shadow: 0 0 5px rgba(255, 255, 255, 1);
}

.title-bar-text img {
    width: 16px !important;
    height: 16px !important;
    margin-right: 5px;
    object-fit: contain;
    display: block;
}

.title-bar-controls {
    display: flex;
    gap: 2px;
}

.title-bar-controls button {
    width: 28px;
    height: 18px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 3px;
    background: linear-gradient(to bottom, #fff, #ddd);
    box-shadow: inset 0 1px 0 #fff;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.title-bar-controls button:hover {
    box-shadow: inset 0 0 3px rgba(0, 100, 255, 0.5);
    background: #eef;
}

.title-bar-controls button:active {
    background: #dde;
}

/* Close button specific */
.title-bar-controls button:last-child {
    background: linear-gradient(to bottom, #faa, #d66);
    border-color: #a44;
}

.title-bar-controls button:last-child:hover {
    background: linear-gradient(to bottom, #fcc, #f88);
    box-shadow: 0 0 3px #f00;
}

/* Icons via CSS for buttons */
.title-bar-controls button[aria-label="Minimize"]::after {
    content: "_";
    position: absolute;
    bottom: 2px;
    left: 9px;
    font-weight: bold;
}

.title-bar-controls button[aria-label="Maximize"]::after {
    content: "□";
    position: absolute;
    top: 0px;
    left: 8px;
    font-size: 10px;
}

.title-bar-controls button[aria-label="Close"]::after {
    content: "×";
    position: absolute;
    top: -1px;
    left: 8px;
    font-size: 14px;
    color: white;
    text-shadow: 0 1px 1px black;
}


.window-body {
    padding: 5px;
    background: #f0f0f0;
    border-radius: 0 0 7px 7px;
    border: 1px solid #aaa;
    margin: 5px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.snake-status-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 2px 10px;
    font-size: 12px;
    color: #333;
    border-bottom: 1px solid #ccc;
    background: #fff;
    margin-bottom: 5px;
}

/* RESTORED Snake Canvas */
#mini-snake-canvas {
    background: #000;
    border: 2px solid #555;
    background-image: radial-gradient(#111 1px, transparent 1px);
    background-size: 10px 10px;
    box-shadow: inset 0 0 10px #000;
}

/* Specific override for Tetris window width */
#tetris-window {
    width: 360px;
    /* Wider to accommodate side panel */
}

#tetris-canvas {
    background: #111;
    border: 2px solid #555;
    box-shadow: inset 0 0 10px #000;
}

.tetris-status-bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 2px 10px;
    font-size: 12px;
    color: #333;
    border-bottom: 1px solid #ccc;
    background: #fff;
    margin-bottom: 5px;
}

.snake-controls-hint {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
}

/* FIX: Move bottom arrows above the taskbar */
.corner-arrow.bottom-left,
.corner-arrow.bottom-right {
    bottom: 50px !important;
}

/* --- MINI WIDGET (HUD) --- */
.sirus-widget-hud {
    position: fixed;
    bottom: 80px;
    /* Higher above taskbar */
    right: 20px;
    width: 220px;
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.95), rgba(10, 10, 10, 0.98));
    border: 1px solid #444;
    border-top: 2px solid #ffd700;
    /* Gold accent */
    border-radius: 6px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8), 0 0 10px rgba(255, 215, 0, 0.1);
    display: none;
    /* Hidden by default strictly */
    flex-direction: column;
    z-index: 9999;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
    animation: slideUp 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    backdrop-filter: blur(5px);
}

.widget-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}

.widget-header img {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0 0 2px rgba(255, 215, 0, 0.5));
}

.widget-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.widget-percent {
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid #333;
    border-radius: 4px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.widget-percent:hover {
    border-color: #ffd700;
    background: rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.widget-percent:active {
    transform: scale(0.96);
}

#widget-percent-text {
    font-size: 24px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

.widget-controls {
    display: flex;
    gap: 8px;
}

.widget-controls button {
    flex: 1;
    background: linear-gradient(to bottom, #3a3a3a, #222);
    border: 1px solid #444;
    color: #eee;
    padding: 8px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.widget-controls button:hover {
    background: linear-gradient(to bottom, #4a4a4a, #333);
    border-color: #ffd700;
    color: #fff;
    box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.widget-controls button:active {
    background: #111;
    transform: translateY(1px);
}

.launcher-hidden {
    display: none !important;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- ROULETTE WINDOW --- */
.roulette-display {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, #444, #000);
    border: 4px solid #ffd700;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 56px;
    font-weight: bold;
    color: #fff;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2), inset 0 0 30px rgba(0, 0, 0, 0.8);
    text-shadow: 0 0 10px #fff;
    transition: transform 0.1s;
    position: relative;
}

.roulette-display::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid #ff4444;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.5));
}

.roulette-display.spinning {
    animation: spin-pulse 0.1s infinite alternate;
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700;
}

@keyframes spin-pulse {
    from {
        transform: scale(1) rotate(0deg);
    }

    to {
        transform: scale(1.02) rotate(2deg);
    }
}

.roulette-info {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #444;
}

.win7-btn {
    padding: 10px 40px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    background: linear-gradient(to bottom, #b30000, #590000);
    border: 1px solid #ff4444;
    border-radius: 4px;
    color: #ffd700;
    box-shadow: 0 0 10px rgba(179, 0, 0, 0.5), inset 0 1px rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px #000;
    transition: all 0.2s;
}

.win7-btn:hover {
    background: linear-gradient(to bottom, #d90000, #800000);
    box-shadow: 0 0 15px rgba(217, 0, 0, 0.7), inset 0 1px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.win7-btn:active {
    transform: scale(0.95);
    background: #400000;
}

.win7-btn:disabled {
    filter: grayscale(1);
    cursor: not-allowed;
    transform: none;
}

/* --- INVENTORY WINDOW --- */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #333;
}

.inv-item {
    background: linear-gradient(#2a2a2a, #1a1a1a);
    border: 1px solid #444;
    border-radius: 4px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: help;
    transition: all 0.2s;
}

.inv-item:hover {
    background: #333;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.inv-item.locked {
    opacity: 0.3;
    filter: grayscale(100%);
    border-style: dashed;
}

.inv-item-icon {
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    /* Initials if no image */
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    /* WoW style */
    margin-bottom: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.5);
    background-size: cover;
    background-position: center;
    border: 1px solid #000;
}

.inv-item-count {
    font-size: 11px;
    color: #ccc;
    background: rgba(0, 0, 0, 0.5);
    padding: 1px 4px;
    border-radius: 3px;
    margin-top: auto;
}

/* Ranks colors (Sirus Style) */
.item-rank-1 .inv-item-icon {
    border-color: #ff8000;
    box-shadow: 0 0 5px #ff8000;
}

/* Legendary */
.item-rank-2 .inv-item-icon {
    border-color: #a335ee;
    box-shadow: 0 0 5px #a335ee;
}

/* Epic */
.item-rank-3 .inv-item-icon {
    border-color: #0070dd;
    box-shadow: 0 0 5px #0070dd;
}

/* Rare */
.item-rank-4 .inv-item-icon {
    border-color: #1eff00;
    box-shadow: 0 0 5px #1eff00;
}

/* Uncommon */
.item-rank-5 .inv-item-icon {
    border-color: #ffffff;
}

/* Common */
.item-rank-6 .inv-item-icon {
    border-color: #9d9d9d;
}

/* Junk */

/* Item Names Colors in Tooltip */
.item-rank-1 .inv-item-tooltip b {
    color: #ff8000;
}

.item-rank-2 .inv-item-tooltip b {
    color: #a335ee;
}

.item-rank-3 .inv-item-tooltip b {
    color: #0070dd;
}

.item-rank-4 .inv-item-tooltip b {
    color: #1eff00;
}

.item-rank-5 .inv-item-tooltip b {
    color: #ffffff;
}

.item-rank-6 .inv-item-tooltip b {
    color: #9d9d9d;
}

/* Tooltip */
.inv-item-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 25, 0.95);
    border: 1px solid #555;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    font-size: 12px;
    width: 180px;
    text-align: center;
    display: none;
    z-index: 1000;
    pointer-events: none;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    line-height: 1.4;
}

.inv-item:hover .inv-item-tooltip {
    display: block;
}