.fortune-btn[hidden],.header-nav>a.nav-btn[hidden],.nav>a.nav-btn[hidden],.profile-menu-item[hidden]{display:none!important}.header-nav .fortune-btn,.nav .fortune-btn{width:28px;height:28px;min-height:28px;max-height:28px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:rgba(14,18,28,0.9);border:1px solid currentColor;cursor:pointer;flex-shrink:0}.fortune-btn svg{width:16px;height:16px;display:block}.fortune-btn--green{color:#34d399;box-shadow:0 0 10px rgba(52,211,153,0.55)}.fortune-btn--yellow{color:#fbbf24;box-shadow:0 0 10px rgba(251,191,36,0.55)}.fortune-btn--red{color:#f87171;box-shadow:0 0 10px rgba(248,113,113,0.4)}.fortune-stage{position:relative;width:320px;height:320px;margin:6px auto 14px;filter:drop-shadow(0 14px 24px rgba(0,0,0,0.45))}.fortune-rotor{position:absolute;inset:0;border-radius:50%}.fortune-rotor svg{display:block;width:320px;height:320px}.fortune-pointer{position:absolute;left:50%;top:-2px;width:30px;height:38px;transform:translateX(-50%);z-index:4;filter:drop-shadow(0 3px 2px rgba(0,0,0,0.55));pointer-events:none}.fortune-label{position:absolute;left:50%;top:50%;width:52px;height:24px;margin:-12px 0 0 -26px;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:800;letter-spacing:-0.03em;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,0.85);pointer-events:none;transform-origin:center center}.fortune-label--gold{color:#1c1404;text-shadow:0 1px 0 rgba(255,255,255,0.28);font-size:13px}.fortune-hub{position:absolute;left:50%;top:50%;width:92px;height:92px;margin:-46px 0 0 -46px;border-radius:50%;z-index:3;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800;letter-spacing:-0.03em;color:#f6f1e4;background:radial-gradient(circle at 38% 32%,#2a3348,#0c1018 72%);border:3px solid #e6c36a;box-shadow:0 0 0 7px #121722,inset 0 0 12px rgba(0,0,0,0.45);pointer-events:none}.fortune-bulb{fill:#fff1c2}.fortune-bulb--b{fill:#c9a24a;animation:fortune-bulb 1.1s ease-in-out infinite}@keyframes fortune-bulb{0%,100%{fill:#fff1c2}50%{fill:#8d6e2f}}.fortune-result{text-align:center;font-size:18px;font-weight:800;min-height:26px;margin:2px 0 4px}.fortune-result--win{color:#fbbf24}.fortune-result--miss{color:var(--muted,#8b93a7)}.fortune-sub{text-align:center;color:var(--muted,#8b93a7);font-size:13px;line-height:1.4;min-height:36px;margin:0 8px 8px}.fortune-sub--timer{font-size:28px;font-weight:800;letter-spacing:0.06em;font-variant-numeric:tabular-nums;color:#fbbf24;line-height:1.1}.header-nav .profile-trigger,.header-nav>a.nav-btn,.nav .profile-trigger,.nav>a.nav-btn{display:inline-flex;align-items:center;justify-content:center;height:28px;min-height:28px;max-height:28px;padding:0 9px;font-size:11px;font-weight:600;line-height:1;border-radius:8px;box-sizing:border-box}.header-nav .profile-trigger,.nav .profile-trigger{padding:0 9px 0 5px;gap:5px;max-width:min(160px,42vw)}.profile-menu{position:relative;z-index:20}.profile-trigger .profile-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:120px}.profile-avatar{width:20px;height:20px;border-radius:50%;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:800;color:#08131a;background:linear-gradient(135deg,var(--accent,#5eead4),var(--accent-2,#38bdf8));letter-spacing:0.02em}.profile-chevron{font-size:9px;line-height:1;color:var(--muted,#8b93a7);margin-left:2px;transition:transform 0.15s}.profile-menu.open .profile-chevron{transform:rotate(180deg)}.profile-menu.open .profile-trigger{border-color:rgba(56,189,248,0.45);background:#232838}.profile-dropdown{position:fixed;z-index:320;min-width:240px;max-width:min(300px,calc(100vw - 24px));width:min(280px,calc(100vw - 24px));box-sizing:border-box;background:var(--panel,rgba(14,18,28,0.96));border:1px solid var(--border,#262b3a);border-radius:14px;padding:12px;box-shadow:0 16px 48px rgba(0,0,0,0.55);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);max-height:min(70vh,480px);overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}.profile-dropdown[hidden]{display:none!important}.profile-dropdown-head{margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid var(--border,#262b3a)}.profile-dropdown-name{font-size:15px;font-weight:700;color:var(--text,#e6e8ee);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-dropdown-login{font-size:12px;color:var(--muted,#8b93a7);margin-top:2px;font-family:ui-monospace,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-balance-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px;padding:10px 12px;border-radius:10px;background:var(--panel-2,rgba(22,28,42,0.92));border:1px solid var(--border,#262b3a)}.profile-balance-label{font-size:11px;color:var(--muted,#8b93a7);text-transform:uppercase;letter-spacing:0.6px}.profile-balance-value{font-size:20px;font-weight:700;font-family:ui-monospace,monospace;color:var(--accent,#5eead4)}.profile-dropdown-actions{display:flex;flex-direction:column;gap:4px}.profile-menu-item{display:block;width:100%;text-align:left;padding:10px 12px;border-radius:10px;border:none;background:transparent;color:var(--text,#e6e8ee);font-size:14px;font-weight:600;cursor:pointer;text-decoration:none;font-family:inherit;transition:background 0.12s;-webkit-tap-highlight-color:transparent;box-sizing:border-box}.profile-menu-item:hover{background:var(--panel-2,rgba(22,28,42,0.92))}.profile-menu-item--danger{color:var(--danger,#f87171)}.profile-menu-item--danger:hover{background:rgba(248,113,113,0.1)}.profile-overlay{position:fixed;inset:0;z-index:310;background:rgba(0,0,0,0.35);-webkit-tap-highlight-color:transparent;pointer-events:auto}.profile-overlay[hidden]{display:none!important}.profile-dropdown{pointer-events:auto}.profile-menu-item{pointer-events:auto;position:relative;z-index:1}body.profile-menu-open{overflow:hidden}.profile-modal-backdrop{position:fixed;inset:0;z-index:400;background:rgba(0,0,0,0.6);display:flex;align-items:flex-start;justify-content:center;padding:max(16px,env(safe-area-inset-top,0px)) 16px max(16px,env(safe-area-inset-bottom,0px));overflow-y:auto;-webkit-overflow-scrolling:touch}.profile-modal-backdrop[hidden]{display:none!important}.profile-modal{width:100%;max-width:400px;margin:auto 0;background:var(--panel,rgba(14,18,28,0.95));border:1px solid var(--border,#262b3a);border-radius:16px;padding:22px 20px 18px;box-shadow:0 20px 60px rgba(0,0,0,0.5);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);position:relative;box-sizing:border-box}.profile-modal h2{margin:0 0 6px;font-size:18px;font-weight:700}.profile-modal .sub{font-size:13px;color:var(--muted,#8b93a7);margin-bottom:16px;line-height:1.45}.profile-modal .field{margin-bottom:12px}.profile-modal .field label{display:block;font-size:11px;color:var(--muted,#8b93a7);margin-bottom:5px;text-transform:uppercase;letter-spacing:0.6px}.profile-modal .field input{width:100%;background:var(--panel-2,rgba(22,28,42,0.92));border:1px solid var(--border,#262b3a);color:var(--text,#e6e8ee);padding:11px 12px;border-radius:10px;font-size:16px;outline:none;box-sizing:border-box}.profile-modal .field input:focus{border-color:var(--accent-2,#38bdf8)}.profile-modal .err{background:rgba(248,113,113,0.1);border:1px solid rgba(248,113,113,0.3);color:var(--danger,#f87171);padding:9px 11px;border-radius:10px;font-size:13px;margin-bottom:12px;min-height:1px;word-break:break-word}.profile-modal .err:empty{display:none}.profile-modal-actions{display:flex;gap:8px;margin-top:6px;flex-wrap:wrap}.profile-modal-actions .btn-modal{flex:1 1 120px;padding:12px;border-radius:10px;border:1px solid var(--border,#262b3a);background:var(--panel-2,rgba(22,28,42,0.92));color:var(--text,#e6e8ee);font-size:14px;font-weight:600;cursor:pointer}.profile-modal-actions .btn-modal.primary{background:linear-gradient(135deg,var(--accent-2,#38bdf8),#0ea5e9);color:#08131a;border-color:transparent}.profile-modal-close{position:absolute;top:10px;right:10px;width:36px;height:36px;border:none;background:transparent;color:var(--muted,#8b93a7);font-size:24px;line-height:1;cursor:pointer;border-radius:8px}.profile-modal-close:hover{background:var(--panel-2,rgba(22,28,42,0.92));color:var(--text,#e6e8ee)}.profile-modal--wide{max-width:min(640px,100%)}.profile-modal--history{max-height:min(85vh,680px);display:flex;flex-direction:column;overflow:hidden;padding-bottom:16px}.profile-modal--history h2,.profile-modal--history .sub{flex-shrink:0}.profile-modal--history .sub{margin-bottom:12px}.profile-history-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;margin:0 -2px;padding:0 2px}.wallet-history-table{width:100%;border-collapse:collapse;font-size:13px}.wallet-history-table th,.wallet-history-table td{padding:8px 8px;border-bottom:1px solid var(--border,#262b3a);vertical-align:top;text-align:left}.wallet-history-table thead th{position:sticky;top:0;z-index:2;background:var(--panel,rgba(14,18,28,0.98));color:var(--muted,#8b93a7);font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:0.6px;box-shadow:0 1px 0 var(--border,#262b3a)}.wallet-history-time{color:var(--muted,#8b93a7);font-size:11px;white-space:nowrap}.wallet-history-reason{font-size:13px;font-weight:600}.wallet-history-detail{font-size:11px;color:var(--muted,#8b93a7);margin-top:2px;line-height:1.35;word-break:break-word}.wallet-history-amount{text-align:right;font-family:ui-monospace,monospace;font-weight:700;white-space:nowrap}.wallet-history-amount--ok{color:var(--ok,#34d399)}.wallet-history-amount--danger{color:var(--danger,#f87171)}.wallet-history-table .empty-state{text-align:center;color:var(--muted,#8b93a7);padding:24px 8px;border-bottom:none}.refund-status{display:inline-block;font-size:11px;font-weight:700;padding:3px 8px;border-radius:999px;white-space:nowrap}.refund-status--pending{color:#fbbf24;background:rgba(251,191,36,0.12)}.refund-status--refunded{color:#34d399;background:rgba(52,211,153,0.12)}.refund-status--rejected{color:#f87171;background:rgba(248,113,113,0.12)}.refund-note{margin-top:6px;font-size:12px;line-height:1.4;color:var(--text,#e6e8ee);background:rgba(248,113,113,0.08);border:1px solid rgba(248,113,113,0.28);border-radius:8px;padding:7px 9px;word-break:break-word}.topup-methods{display:grid;grid-template-columns:1fr 1fr;gap:8px}.topup-method{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:11px 12px;border-radius:10px;border:1px solid var(--border,#262b3a);background:var(--panel-2,rgba(22,28,42,0.92));color:var(--text,#e6e8ee);cursor:pointer;font-family:inherit;text-align:left;transition:border-color 0.12s,background 0.12s}.topup-method strong{font-size:14px;font-weight:700}.topup-method span{font-size:11px;color:var(--muted,#8b93a7)}.topup-method:hover:not(:disabled){border-color:rgba(56,189,248,0.4)}.topup-method.active{border-color:var(--accent-2,#38bdf8);background:rgba(56,189,248,0.12)}.topup-method:disabled{opacity:0.4;cursor:not-allowed}.topup-hint{display:block;font-size:11px;color:var(--muted,#8b93a7);margin-top:5px}.fortune-activate{width:100%;margin-top:12px;padding:12px;border-radius:10px;border:1px solid rgba(245,180,35,0.6);background:rgba(245,180,35,0.12);color:#f6c445;font-size:14px;font-weight:700;cursor:pointer}.fortune-activate:hover{background:rgba(245,180,35,0.2)}.topup-bonus-line{margin:10px 0 2px;text-align:center;font-size:15px;font-weight:800;color:#f6c445;line-height:1.35}.topup-result p{font-size:13px;line-height:1.5;margin:0 0 10px;color:var(--text,#e6e8ee)}.topup-copy{display:flex;align-items:center;gap:8px;margin-bottom:10px;background:var(--panel-2,rgba(22,28,42,0.92));border:1px solid var(--border,#262b3a);border-radius:10px;padding:8px 10px;min-width:0}.topup-copy code{flex:1;min-width:0;font-family:ui-monospace,monospace;font-size:13px;color:var(--accent,#5eead4);word-break:break-all}.btn-copy{flex-shrink:0;border:1px solid var(--border,#262b3a);background:transparent;color:var(--text,#e6e8ee);border-radius:8px;padding:6px 9px;font-size:11px;font-weight:600;cursor:pointer;font-family:inherit}.btn-copy:hover{border-color:var(--accent-2,#38bdf8)}.topup-pay-link{display:block;text-align:center;text-decoration:none;margin-bottom:12px}.topup-warn{font-size:12px!important;color:var(--muted,#8b93a7)!important;background:rgba(250,204,21,0.08);border:1px solid rgba(250,204,21,0.25);border-radius:10px;padding:9px 11px}.topup-status{font-size:13px!important;font-weight:600;color:var(--muted,#8b93a7)!important}.topup-status.ok{color:var(--accent,#5eead4)!important}.topup-status.err-text{color:var(--danger,#f87171)!important}.profile-modal--legal{max-width:min(720px,100%);max-height:min(88vh,820px)}.profile-modal--legal .sub a{color:var(--accent-2,#38bdf8)}.legal-tabs{display:flex;gap:8px;flex-shrink:0;margin:0 0 12px}.legal-tab{flex:1 1 0;padding:9px 10px;border-radius:10px;border:1px solid var(--border,#262b3a);background:var(--panel-2,rgba(22,28,42,0.92));color:var(--muted,#8b93a7);font-size:13px;font-weight:700;cursor:pointer;font-family:inherit}.legal-tab.active{color:#08131a;background:linear-gradient(135deg,var(--accent-2,#38bdf8),#0ea5e9);border-color:transparent}.legal-scroll{padding-right:6px}.legal-doc{color:var(--text,#e6e8ee)}.legal-doc h1{margin:0 0 8px;font-size:20px;font-weight:800;line-height:1.25}.legal-doc h2{margin:22px 0 8px;font-size:15px;font-weight:700;color:var(--accent,#5eead4)}.legal-doc h3{margin:14px 0 6px;font-size:14px;font-weight:700}.legal-doc p,.legal-doc li{font-size:13.5px;line-height:1.55;color:var(--text,#e6e8ee)}.legal-doc p{margin:0 0 10px}.legal-doc ul{margin:0 0 12px;padding-left:1.2em}.legal-doc li{margin:0 0 4px}.legal-meta{font-size:12px!important;color:var(--muted,#8b93a7)!important;margin-bottom:16px!important}.legal-doc a{color:var(--accent-2,#38bdf8)}@media (max-width:520px){.profile-trigger .profile-name{max-width:88px}.header-nav .profile-trigger,.nav .profile-trigger{max-width:min(140px,48vw)}.topup-methods{grid-template-columns:1fr}.profile-modal{padding:20px 16px 16px}.wallet-history-table{font-size:12px}.wallet-history-table th,.wallet-history-table td{padding:7px 6px}}@media (max-width:380px){.profile-trigger .profile-name{display:none}.header-nav .profile-trigger,.nav .profile-trigger{padding:0 7px 0 5px;max-width:none}}