:root { --bg-light: #f5f5f5; --bg-dark: #17212b; --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); --dark-accent-text-color: #6ab2f2; --dark-bg-color: #17212b; --dark-bottom-bar-bg-color: #17212b; --dark-button-color: #5288c1; --dark-button-text-color: #ffffff; --dark-destructive-text-color: #ec3942; --dark-header-bg-color: #17212b; --dark-hint-color: #708499; --dark-link-color: #6ab3f3; --dark-secondary-bg-color: #232e3c; --dark-section-bg-color: #17212b; --dark-section-header-text-color: #6ab3f3; --dark-section-separator-color: #111921; --dark-subtitle-text-color: #708499; --dark-text-color: #f5f5f5; --light-accent-text-color: #168acd; --light-bg-color: #ffffff; --light-bottom-bar-bg-color: #ffffff; --light-button-color: #40a7e3; --light-button-text-color: #ffffff; --light-destructive-text-color: #d14e4e; --light-header-bg-color: #ffffff; --light-hint-color: #999999; --light-link-color: #168acd; --light-secondary-bg-color: #f1f1f1; --light-section-bg-color: #ffffff; --light-section-header-text-color: #168acd; --light-section-separator-color: #e7e7e7; --light-subtitle-text-color: #999999; --light-text-color: #000000; } * { box-sizing: border-box; margin: 0; padding: 0; } body { max-width: 400px; display: flex; flex-direction: column; height: 100vh; font-family: 'Rubik', sans-serif; background: var(--light-secondary-bg-color); color: var(--light-text-color); } body[data-theme="dark"] { background: var(--dark-secondary-bg-color); color: var(--dark-text-color); } #content { flex: 1; overflow-y: auto; padding: 16px; } #tabs { display: flex; justify-content: space-around; 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; 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: 1rem; color: var(--light-hint-color); 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; } body[data-theme="dark"] .tab { color: var(--dark-hint-color); } .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: var(--light-text-color); font-weight: bold; background: var(--light-bg-color); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); } body[data-theme="dark"] .tab.active { color: var(--dark-text-color); background: var(--dark-bg-color); } .cases-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; } .case-item { background: var(--light-bg-color); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); 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(-3px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } body[data-theme="dark"] .case-item { background: var(--dark-bg-color); } .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: var(--light-text-color); font-weight: bold; margin-bottom: 4px; text-align: center; } body[data-theme="dark"] .case-item .title { color: var(--dark-text-color); } .case-item .price { font-size: 12px; color: var(--light-hint-color); text-align: center; } body[data-theme="dark"] .case-item .price { color: var(--dark-hint-color); } #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(--light-button-color); transition: transform 0.2s ease, box-shadow 0.2s ease; } body[data-theme="dark"] #account img { border: 2px solid var(--dark-button-color); } #account img:hover { box-shadow: 0 0 12px var(--light-button-color); } body[data-theme="dark"] #account img:hover { box-shadow: 0 0 12px var(--dark-button-color); } .username { font-size: 20px; color: var(--light-text-color); text-align: center; width: 50%; max-width: 200px; margin-bottom: 30px; word-wrap: break-word; } body[data-theme="dark"] .username { color: var(--dark-text-color); } .balance-box { background: var(--light-bg-color); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 12px 24px; width: 95%; border-radius: 15px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); font-size: 16px; color: var(--light-text-color); font-weight: bold; text-align: center; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; } .balance-box:hover { box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); } body[data-theme="dark"] .balance-box { background: var(--dark-bg-color); color: var(--dark-text-color); } body[data-theme="dark"] .balance-box:hover { box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1); } #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: var(--light-bg-color); color: var(--light-text-color); padding: 24px; border-radius: 20px; width: 80%; max-width: 400px; text-align: center; } body[data-theme="dark"] #promo-modal .modal-content { background: var(--dark-bg-color); color: var(--dark-text-color); } #promo-modal .close-btn { position: absolute; top: 8px; right: 12px; font-size: 18px; color: var(--light-hint-color); cursor: pointer; } body[data-theme="dark"] #promo-modal .close-btn { color: var(--dark-hint-color); } #promo-modal input { width: 100%; padding: 8px; margin-top: 16px; border-radius: 10px; font-size: 14px; background: var(--light-secondary-bg-color); color: var(--light-text-color); font-weight: bold; } body[data-theme="dark"] #promo-modal input { background: var(--dark-secondary-bg-color); color: var(--dark-text-color); } #promo-modal button { margin-top: 16px; font-weight: bold; padding: 8px 16px; border: none; width: 100%; border-radius: 10px; background: var(--light-button-color); color: var(--light-button-text-color); font-size: 14px; cursor: pointer; } body[data-theme="dark"] #promo-modal button { background: var(--dark-button-color); color: var(--dark-button-text-color); } .case-page { display: flex; flex-direction: column; align-items: center; } .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-static-img { width: 100%; max-width: 300px; } .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(--light-bg-color); border-radius: 20px; white-space: nowrap; } body[data-theme="dark"] .case-page .roulette-strip { background: var(--dark-bg-color); } .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(--light-button-color); color: var(--light-button-text-color); border: none; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); border-radius: 10px; font-size: 14px; cursor: pointer; } body[data-theme="dark"] .case-page .buy-btn { background: var(--dark-button-color); color: var(--dark-button-text-color); } .case-page .odds-block { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: var(--light-bg-color); border: 2px solid var(--light-button-color); border-radius: 16px; padding: 16px; width: 100%; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); color: var(--light-text-color); } body[data-theme="dark"] .case-page .odds-block { background-color: var(--dark-bg-color); 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(--dark-text-color); } .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: var(--light-text-color);; margin-left: 8px; text-align: center; } body[data-theme="dark"] .case-page .odds-group .caption { color: var(--dark-text-color); } .theme-toggle { position: absolute; top: 16px; right: 16px; width: 50px; height: 28px; background: var(--light-bg-color); backdrop-filter: blur(12px); border: 2px solid var(--light-button-color); border-radius: 14px; cursor: pointer; transition: background 0.3s, border-color 0.3s; } body[data-theme="dark"] .theme-toggle { background: var(--dark-bg-color); border: 2px solid var(--dark-button-color); } .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(--light-button-color); } body[data-theme="dark"] .theme-toggle input:checked ~ .slider { background: var(--dark-button-color); } .theme-toggle .slider::before { content: ""; position: absolute; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; background: var(--dark-button-color); backdrop-filter: blur(8px); border-radius: 50%; border: 1px solid var(--light-button-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(--light-button-color); border-color: var(--dark-button-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 { 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(--light-bg-color); color: var(--light-text-color); 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(--dark-bg-color); color: var(--dark-text-color); } #win-modal .modal-close { position: absolute; top: 8px; right: 12px; cursor: pointer; font-size: 18px; color: var(--light-hint-color); } body[data-theme="dark"] #win-modal .modal-close { color: var(--dark-hint-color); } #win-modal #win-placeholder { max-width: 70%; margin: 0 auto 16px; object-fit: contain; } #win-modal #win-lottie { max-width: 70%; height: auto; 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(--light-button-color); color: var(--light-button-text-color); } body[data-theme="dark"] #win-modal .btn.exchange { background: var(--dark-button-color); color: var(--dark-button-text-color); } #win-modal .btn.none { background: var(--light-button-color); color: var(--light-button-text-color); } body[data-theme="dark"] #win-modal .btn.none { background: var(--dark-button-color); color: var(--dark-button-text-color); } #win-modal .btn.claim { background: var(--light-bg-color); color: var(--light-text-color); } body[data-theme="dark"] #win-modal .btn.claim { background: var(--dark-bg-color); color: var(--dark-text-color); } #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(--light-bg-color); color: var(--light-text-color); 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(--dark-bg-color); color: var(--dark-text-color); } #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(--light-button-color); color: var(--light-button-text-color); } body[data-theme="dark"] #success-modal .ok-btn { background: var(--dark-button-color); color: var(--dark-button-text-color); } #success-modal .story-btn { padding: 12px 0; margin-bottom: 10px; width: 100%; border: none; border-radius: 8px; font-weight: bold; cursor: pointer; background: var(--light-button-color); color: var(--light-button-text-color); } body[data-theme="dark"] #success-modal .story-btn { background: var(--dark-button-color); color: var(--dark-button-text-color); } #loading-overlay .spinner { width: 60px; height: 60px; border: 6px solid rgba(255,255,255,0.2); border-top-color: var(--light-button-color); border-radius: 50%; animation: spin 1s linear infinite; } body[data-theme="dark"] #loading-overlay .spinner { border-top-color: var(--dark-button-color); } @keyframes spin { to { transform: rotate(360deg); } } .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(--light-bg-color); 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: var(--light-text-color); text-align: center; } body[data-theme="dark"] .pay-modal__content { background: var(--dark-bg-color); color: var(--dark-text-color); } .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(--light-button-color); color: var(--light-button-text-color); font-weight: bold; font-size: 14px; cursor: pointer; } body[data-theme="dark"] .pay-modal__btn { background: var(--dark-button-color); color: var(--dark-button-text-color); } .pay-modal__content .spinner { width: 60px; height: 60px; border: 6px solid rgba(255,255,255,0.2); border-top-color: var(--light-button-color); border-radius: 50%; animation: spin 1s linear infinite; margin: 0; } body[data-theme="dark"] .pay-modal__content .spinner { border-top-color: var(--dark-button-color); } #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: var(--light-bg-color); color: var(--light-text-color); backdrop-filter: blur(8px); border-radius: 10px; } body[data-theme="dark"] #history-list .history-item { background: var(--dark-bg-color); color: var(--dark-text-color); } #history-list .history-item img { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: none; transition: none; margin: 0 12px 0 0; flex-shrink: 0; } body[data-theme="dark"] #history-list .history-item img { display: block; border: none; transition: none; object-fit: cover; flex-shrink: 0; } #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; } #history-list .history-item .desc .time-muted { font-size: 12px; color: var(--light-hint-color); margin-top: 4px; } body[data-theme="dark"] #history-list .history-item .desc .time-muted { color: var(--dark-hint-color); } .history-block .history-title { font-size: 18px; font-weight: bold; color: var(--light-hint-color); text-align: center; margin-bottom: 12px; } body[data-theme="dark"] .history-block .history-title { color: var(--dark-hint-color); } .history-block .no-ops { text-align: center; color: var(--light-hint-color); font-size: 14px; margin: 20px 0; } body[data-theme="dark"] .history-block .no-ops { color: var(--dark-hint-color); } #referral-share { display: flex; gap: 8px; margin: 20px 0 10px; width: 95%; } #share-btn { flex: 1; height: 45px; background: var(--light-button-color); color: var(--light-button-text-color); font-weight: bold; font-size: 14px; border: none; border-radius: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; } body[data-theme="dark"] #share-btn { background: var(--dark-button-color); color: var(--dark-button-text-color); } #copy-btn { width: 45px; height: 45px; background: var(--light-button-color); color: var(--light-button-text-color); font-size: 18px; border: none; border-radius: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; } body[data-theme="dark"] #copy-btn { background: var(--dark-button-color); color: var(--dark-button-text-color); } #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: var(--light-text-color); } body[data-theme="dark"] .live-title { color: var(--dark-text-color); } .live-item { display: flex; align-items: center; background: var(--light-bg-color); 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(--dark-bg-color); } .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: var(--light-text-color); } body[data-theme="dark"] .live-item .desc .text { color: var(--dark-text-color); } .live-item .desc .time { font-size: 12px; color: var(--light-hint-color); margin-top: 4px; } body[data-theme="dark"] .live-item .desc .time { color: var(--dark-hint-color); } #new-user-modal { display: none; position: fixed; inset: 0; background: var(--light-bg-color); backdrop-filter: blur(8px); justify-content: center; align-items: center; z-index: 500; } body[data-theme="dark"] #new-user-modal { background: var(--dark-bg-color); } #new-user-content { background: var(--light-bg-color); 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(--dark-bg-color); } #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(--light-hint-color); font-weight: bold; font-size: 0.9rem; text-align: center; margin: 8px 0 16px; flex-shrink: 0; } body[data-theme="dark"] #new-user-content .warning { color: var(--dark-hint-color); } .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(--light-button-color); color: var(--light-button-text-color); cursor: pointer; font-size: 1rem; } body[data-theme="dark"] .action-btn { background: var(--dark-button-color); color: var(--dark-button-text-color); } .done-btn { margin-top: auto; padding: 15px 0; width: 100%; position: relative; border: none; border-radius: 15px; background: var(--light-button-color); color: var(--light-button-text-color); font-weight: bold; cursor: pointer; justify-content: center; display: flex; align-items: center; font-size: 1.1rem; } body[data-theme="dark"] .done-btn { background: var(--dark-button-color); color: var(--dark-button-text-color); } .done-btn .btn-spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: var(--light-button-color); border-radius: 50%; animation: spin 1s linear infinite; } body[data-theme="dark"] .done-btn .btn-spinner { border-top-color: var(--dark-button-color); } #new-user-error { color: var(--light-destructive-text-color); margin-top: 8px; font-size: 0.7rem; display: none; text-align: center; } body[data-theme="dark"] #new-user-error { color: var(--dark-destructive-text-color); } #new-user-content .warning .ref-link { color: var(--light-link-color); text-decoration: underline; font-weight: bold; } body[data-theme="dark"] #new-user-content .warning .ref-link { color: var(--dark-link-color); } .promo-spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,0.3); border-top-color: var(--light-button-color); border-radius: 50%; animation: spin 1s linear infinite; } body[data-theme="dark"] .promo-spinner { border-top-color: var(--dark-button-color); } .orientation-modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #fff; backdrop-filter: blur(4px); justify-content: center; align-items: center; z-index: 99999; } body[data-theme="dark"] .orientation-modal { background: #222; } .orientation-modal__content { background: #fff; padding: 20px 30px; border-radius: 12px; max-width: 90%; text-align: center; font-size: 1.1rem; color: #333; } body[data-theme="dark"] .orientation-modal__content { background: #222; color: #eee; }