:root { --bg-light: #f5f5f5; --bg-dark: #3F3F3F; --text-muted: #a8a8a8; --text-light: #fafafa; --border-color: #1E90FF; --glass-light: rgba(255,255,255,0.15); --glass-dark: rgba(0,0,0,0.3); } /* Reset and box-sizing */ * { box-sizing: border-box; margin: 0; padding: 0; } body { display: flex; flex-direction: column; height: 100vh; font-family: 'Arial', sans-serif; background: var(--bg-light); color: #222; } body[data-theme="dark"] { background: #000000; color: var(--text-light); } /* Content area above tabs */ #content { flex: 1; overflow-y: auto; padding: 16px; } /* Fixed bottom tabs */ #tabs { display: flex; justify-content: space-around; /* Стиль glassmorphism для панели */ background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 8px; position: sticky; bottom: 0; margin: 0 16px 16px; border-radius: 16px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); z-index: 10; } .tab { flex: 1; text-align: center; font-size: 14px; color: var(--text-muted); cursor: pointer; padding: 8px 0; margin: 0 4px; background: rgba(255, 255, 255, 0.2); border-radius: 12px; transition: background 0.2s, transform 0.2s, box-shadow 0.2s; } .tab:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .tab.active { color: #fff; font-weight: bold; background: var(--bg-dark); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } /* Сетка боксов: 2 в ряд с эффектом glassmorphism */ .cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; } .case-item { background: var(--text-light); /* Полупрозрачный фон + размывание */ backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--bg-light); border-radius: 15px; padding: 16px; display: flex; flex-direction: column; align-items: center; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; } .case-item:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } body[data-theme="dark"] .case-item { background: #3F3F3F; border: 1px solid rgba(255, 255, 255, 0.3); } .case-animation { width: 60%; height: auto; margin-bottom: 8px; overflow: hidden; } .case-placeholder { width: 60%; height: auto; object-fit: contain; margin-bottom: 8px; } .case-item .title { font-size: 14px; color: #333; font-weight: bold; margin-bottom: 4px; text-align: center; } body[data-theme="dark"] .case-item .title { color: var(--text-light); } .case-item .price { font-size: 12px; color: var(--text-muted); text-align: center; } /* Profile layout */ #account { display: flex; flex-direction: column; align-items: center; padding: 32px 16px; } #account img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 16px; border: 2px solid var(--border-color); /* Добавляем плавный переход для анимации */ transition: transform 0.2s ease, box-shadow 0.2s ease; } /* Hover-эффект: подпрыгивание и свечение */ #account img:hover { transform: translateY(-6px); box-shadow: 0 0 12px var(--border-color); } .username { font-size: 20px; color: #222; text-align: center; width: 50%; max-width: 200px; margin-bottom: 30px; word-wrap: break-word; } body[data-theme="dark"] .username { color: var(--text-light); } .balance-box { /* Glassmorphism button style */ background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 12px 24px; width: 95%; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); font-size: 16px; color: #333; font-weight: bold; text-align: center; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; } .balance-box:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } body[data-theme="dark"] .balance-box { background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.2); color: var(--text-light); } body[data-theme="dark"] .balance-box:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1); } /* Promo modal */ #promo-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.3); backdrop-filter: blur(8px); justify-content: center; align-items: center; z-index: 100; } #promo-modal .modal-content { position: relative; background: #fff; padding: 24px; border-radius: 20px; width: 80%; max-width: 400px; text-align: center; } body[data-theme="dark"] #promo-modal .modal-content { background: #000000; color: var(--text-light); } #promo-modal .close-btn { position: absolute; top: 8px; right: 12px; font-size: 18px; color: var(--text-muted); cursor: pointer; } #promo-modal input { width: 100%; padding: 8px; margin-top: 16px; border-radius: 10px; font-size: 14px; font-weight: bold; } body[data-theme="dark"] #promo-modal input { background: var(--bg-dark); color: var(--text-light); } #promo-modal button { margin-top: 16px; font-weight: bold; padding: 8px 16px; border: none; width: 100%; border-radius: 10px; background: var(--bg-dark); color: #fff; font-size: 14px; cursor: pointer; } /* Детали кейса */ .case-page { display: flex; flex-direction: column; align-items: center; } .case-page .back-btn { align-self: flex-start; margin-bottom: 16px; color: var(--text-muted); cursor: pointer; font-size: 14px; color: #333; } .case-page .back-btn:hover { color: var(--text-muted); } body[data-theme="dark"] .case-page .back-btn { color: var(--text-light); } body[data-theme="dark"] .case-page .back-btn:hover { color: var(--text-muted); } .case-page h2 { margin-bottom: 12px; font-size: 20px; text-align: center; } .case-img { width: 65%; max-width: 300px; margin-bottom: 16px; border-radius: 12px; } .case-page .roulette-container { position: relative; width: 100%; margin-bottom: 20px; } .case-page .roulette-strip { width: 100%; /* фиксированная по родителю */ height: 150px; overflow: hidden; /* обрезает всё, что выехало */ position: relative; background: var(--text-light); border-radius: 20px; white-space: nowrap; } body[data-theme="dark"] .case-page .roulette-strip { background: var(--bg-dark); } .strip-inner { display: inline-flex; transform: translateX(0); /* ширина под контент */ transition: none; white-space: nowrap; } .strip-inner .clone { opacity: 0; /* можно скрыть, если не хочется показывать дубликаты */ pointer-events: none; } .strip-inner img { height: 120px; width: auto; margin: 15px 4px; flex-shrink: 0; } .case-page .indicator { position: absolute; bottom: 145px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 10px solid red; } .case-page .buy-btn { display: block; width: 100%; margin: 0 auto 16px; padding: 12px; font-weight: bold; background: var(--border-color); color: #fff; border: none; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border-radius: 10px; font-size: 14px; cursor: pointer; } .case-page .odds-block { /* Полупрозрачный светлый фон */ background: rgba(255, 255, 255, 0.2); /* Размытие контента «за» блоком */ backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); /* Лёгкий градиент для глубины */ background: linear-gradient( to bottom right, rgba(255,255,255,0.25), rgba(255,255,255,0.15) ); border: 2px solid var(--border-color); border-radius: 16px; padding: 16px; width: 100%; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); } body[data-theme="dark"] .case-page .odds-block { /* базовый цвет из переменной */ background-color: var(--bg-dark); /* накладываем лёгкий полупрозрачный градиент на сам цвет */ background-image: linear-gradient( to bottom right, rgba(63, 63, 63, 0.6), rgba(63, 63, 63, 0.4) ); /* размытие того, что позади блока */ backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 16px; padding: 16px; width: 100%; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); color: var(--text-light); } .case-page .odds-block h3 { margin-bottom: 8px; font-size: 16px; } .case-page .odds-group { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; margin-bottom: 12px; } .case-page .odds-group img { width: 40px; height: 40px; margin-right: 4px; } .case-page .odds-group .caption { font-size: 14px; color: #333; margin-left: 8px; text-align: center; } body[data-theme="dark"] .case-page .odds-group .caption { color: var(--text-light); } /* Мини‑тогглер в правом‑верхнем углу */ .theme-toggle { position: absolute; top: 16px; right: 16px; width: 50px; height: 28px; background: var(--bg-light); backdrop-filter: blur(12px); border: 2px solid var(--border-color); border-radius: 14px; cursor: pointer; transition: background 0.3s, border-color 0.3s; } body[data-theme="dark"] .theme-toggle { background: var(--bg-dark); } .theme-toggle input { position: absolute; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; } .theme-toggle .slider { position: absolute; width: 100%; height: 100%; border-radius: 14px; transition: background 0.3s; } .theme-toggle input:checked ~ .slider { background: var(--glass-light); } body[data-theme="dark"] .theme-toggle input:checked ~ .slider { background: var(--glass-dark); } .theme-toggle .slider::before { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; background: var(--glass-dark); backdrop-filter: blur(8px); border-radius: 50%; border: 1px solid var(--border-color); box-shadow: 0 2px 6px rgba(0,0,0,0.3); transition: left 0.3s, background 0.3s, border-color 0.3s; } body[data-theme="dark"] .theme-toggle .slider::before { background: var(--glass-light); border-color: var(--border-color); } .theme-toggle input:checked ~ .slider::before { left: calc(100% - 26px); } .theme-toggle .slider::after { content: "🌞"; position: absolute; top: 50%; left: calc(2px + 12px); /* центр кружка в положении “влево” */ transform: translate(-50%, -50%); font-size: 12px; transition: left 0.3s, content 0.3s; } .theme-toggle input:checked ~ .slider::after { content: "🌙"; left: calc(100% - 2px - 12px); } /* Win modal */ #win-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(25px); justify-content: center; align-items: center; z-index: 200; } #win-modal .modal-content { background: var(--text-light); border-radius: 16px; padding: 24px; width: 90%; max-width: 320px; text-align: center; position: relative; } body[data-theme="dark"] #win-modal .modal-content { background: var(--bg-dark); color: var(--text-light); } #win-modal .modal-close { position: absolute; top: 8px; right: 12px; cursor: pointer; font-size: 18px; color: var(--text-muted); } /* Стили для PNG‑плейсхолдера */ #win-modal #win-placeholder { max-width: 70%; margin: 0 auto 16px; object-fit: contain; /* работает для img */ } /* Контейнер Lottie-анимации */ #win-modal #win-lottie { max-width: 70%; height: auto; /* задаёт пропорциональную высоту SVG */ margin: 0 auto 16px; will-change: transform, opacity; } #win-modal h3 { margin-bottom: 16px; font-size: 20px; } #win-modal .btn { display: block; width: 100%; margin: 8px 0; padding: 12px; border: none; border-radius: 10px; font-weight: bold; cursor: pointer; } #win-modal .btn.exchange { background: var(--border-color); color: #fff; } #win-modal .btn.claim { background: var(--text-light); color: #333; } body[data-theme="dark"] #win-modal .btn.claim { background: var(--bg-dark); color: #fff; } #success-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(25px); justify-content: center; align-items: center; z-index: 300; } #success-modal .modal-content { background: var(--text-light); border-radius: 16px; padding: 24px; width: 90%; max-width: 320px; text-align: center; position: relative; } body[data-theme="dark"] #success-modal .modal-content { background: var(--bg-dark); color: var(--text-light); } #success-modal img { max-width: 70%; margin: 0 auto 16px; } #success-modal #success-placeholder { max-width: 70%; margin: 0 auto 16px; object-fit: contain; } #success-modal #success-lottie { max-width: 70%; margin: 0 auto 16px; will-change: transform, opacity; } #success-modal h3 { margin-bottom: 16px; font-size: 18px; } #success-modal .ok-btn { padding: 12px 0; width: 100%; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; background: var(--border-color); color: #fff; } #loading-overlay .spinner { width: 60px; height: 60px; border: 6px solid rgba(255,255,255,0.2); border-top-color: var(--border-color); border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } } /* pay-modal.css */ .pay-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(8px); justify-content: center; align-items: center; z-index: 250; } .pay-modal__content { position: relative; background: var(--text-light); padding: 24px; border-radius: 16px; width: 80%; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 150px; max-width: 320px; color: #333; text-align: center; } body[data-theme="dark"] .pay-modal__content { background: var(--bg-dark); color: #fff; } .pay-modal__close { position: absolute; top: 8px; right: 12px; cursor: pointer; font-size: 18px; } #pay-modal #pay-placeholder { max-width: 70%; margin: 0 auto 16px; object-fit: contain; } #pay-modal #pay-lottie { max-width: 70%; margin: 0 auto 16px; will-change: transform, opacity; } .pay-modal__title { margin-bottom: 16px; } .pay-modal__btn { width: 100%; padding: 12px; border: none; border-radius: 10px; background: var(--border-color); color: #fff; font-weight: bold; font-size: 14px; cursor: pointer; } .pay-modal__content .spinner { width: 60px; height: 60px; border: 6px solid rgba(255,255,255,0.2); border-top-color: var(--border-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 0; /* центрируется флексом контейнера */ } /* Контейнер истории растягиваем на всю ширину */ #history { width: 100%; padding: 5px; /* отступы по бокам, если нужно */ } /* История: один элемент — на всю ширину */ #history-list .history-item { width: 100%; display: flex; min-height: 56px; align-items: center; padding: 12px; margin-bottom: 8px; background: #fff; color: #333; backdrop-filter: blur(8px); border-radius: 10px; } body[data-theme="dark"] #history-list .history-item { background: rgba(255,255,255,0.15); color: #fff; } #history-list .history-item img { display: block; /* чтобы margin работал предсказуемо */ width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: none; transition: none; margin: 0 12px 0 0; /* лишь отступ справа */ flex-shrink: 0; /* не даём “съезжать” */ } /* Отключаем hover вообще на этих картинках */ #history-list .history-item img:hover { transform: none !important; box-shadow: none !important; } /* Текстовая часть */ #history-list .history-item .desc { display: flex; flex-direction: column; justify-content: center; flex: 1; } /* Действие + сумма — жирным */ #history-list .history-item .desc .action-value { font-weight: bold; } /* Время — мелким и muted */ #history-list .history-item .desc .time-muted { font-size: 12px; color: var(--text-muted); margin-top: 4px; } /* Заголовок блока истории */ .history-block .history-title { font-size: 18px; font-weight: bold; color: var(--text-muted); text-align: center; margin-bottom: 12px; } /* Сообщение «Нет операций» */ .history-block .no-ops { text-align: center; color: var(--text-muted); font-size: 14px; margin: 20px 0; } /* Контейнер реферального блока */ #referral-share { display: flex; gap: 8px; margin: 20px 0 10px; width: 95%; } /* Кнопка “Поделиться” */ #share-btn { flex: 1; height: 45px; /* задаёт высоту */ background: var(--border-color); /* фон по вашей переменной */ color: #fff; font-weight: bold; font-size: 14px; border: none; border-radius: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; } /* Кнопка “Копировать” */ #copy-btn { width: 45px; /* высота = ширине */ height: 45px; background: var(--border-color); color: #fff; font-size: 18px; /* чтобы иконка была заметнее */ border: none; border-radius: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; } /* При ховере слегка осветляем фон */ #share-btn:hover, #copy-btn:hover { filter: brightness(1.1); } .live-block { width: 100%; padding: 0 16px; } .live-title { text-align: center; font-size: 18px; margin: 0 0 12px; color: #333; } body[data-theme="dark"] .live-title { color: var(--text-light); } .live-item { display: flex; align-items: center; background: #fff; backdrop-filter: blur(8px); border-radius: 10px; padding: 10px; margin-bottom: 8px; transform: translateY(-20px); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease; } body[data-theme="dark"] .live-item { background: var(--bg-dark); } .live-item.show { transform: translateY(0); opacity: 1; } .live-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; margin-right: 12px; } .live-item .desc { display: flex; flex-direction: column; } .live-item .desc .text { font-size: 14px; color: #333; } body[data-theme="dark"] .live-item .desc .text { color: var(--text-light); } .live-item .desc .time { font-size: 12px; color: var(--text-muted); margin-top: 4px; } #new-user-modal { display: none; position: fixed; inset: 0; background: var(--bg-light); backdrop-filter: blur(8px); justify-content: center; align-items: center; z-index: 500; } body[data-theme="dark"] #new-user-modal { background: var(--bg-dark); } #new-user-content { background: var(--bd-light); width: 85%; display: flex; flex-direction: column; align-items: center; position: relative; height: 86%; box-sizing: border-box; } body[data-theme="dark"] #new-user-content { background: var(--bg-dark); } /* Картинка в верхней трети */ #new-user-placeholder { width: 60%; margin-top: 8%; object-fit: contain; } #new-user-lottie { width: 60%; margin-top: 8%; will-change: transform, opacity; } /* Заголовок */ #new-user-content h2 { font-size: 1.5rem; margin: 16px 0 8px; font-weight: bold; text-align: center; } /* Текст предупреждения */ #new-user-content .warning { color: var(--text-muted); font-weight: bold; font-size: 0.9rem; text-align: center; margin: 8px 0 16px; flex-shrink: 0; } /* Ряд из двух кнопок */ .buttons-row { display: flex; gap: 10px; width: 100%; flex-shrink: 0; } .action-btn { flex: 1; padding: 8px; min-height: 50px; border: none; border-radius: 15px; background: var(--border-color); color: #fff; cursor: pointer; font-size: 1rem; } /* Кнопка внизу */ .done-btn { margin-top: auto; /* занимает всё свободное пространство до этого */ padding: 15px 0; width: 100%; position: relative; border: none; border-radius: 15px; background: var(--border-color); color: #fff; font-weight: bold; cursor: pointer; justify-content: center; display: flex; align-items: center; font-size: 1.1rem; } /* Спиннер */ .done-btn .btn-spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 1s linear infinite; } /* Ошибка */ #new-user-error { color: red; margin-top: 8px; font-size: 0.7rem; display: none; text-align: center; }