:root {
    --primary: #22d3ee;
    --success: #4ade80;
    --danger: #f87171;
    --warning: #facc15;
    --bg-main: #0c0c14;
    --text-light: #ffffff;
    --text-med: #a3a3a3;
    --text-dark: #737373;
    --border-radius: 8px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0c0c14;
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
}

.container {
    display: flex;
    flex-direction: column;
    height: var(--app-height, 100vh);
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    background: transparent;
}

/* --- CONNECTING OVERLAY --- */
.connecting-overlay {
    position: fixed;
    inset: 0;
    background: #0c0c14;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.connecting-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.connecting-icon {
    animation: pulse 1.5s ease-in-out infinite;
}
.connecting-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-light);
}
.connecting-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.connecting-error {
    margin-top: 16px;
    color: var(--danger);
}
.connecting-error p {
    font-size: 1rem;
    margin-bottom: 12px;
}
.retry-btn {
    padding: 8px 16px;
    background: var(--primary);
    color: var(--bg-main);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.retry-btn:hover {
    background: var(--success);
}
@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* --- RESUME OVERLAY (tab return) --- */
.resume-overlay {
    position: fixed;
    inset: 0;
    background: #000000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 10000;
    padding-top: 12px;
    box-sizing: border-box;
}
.resume-overlay.show {
    display: flex;
}
.resume-banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: fill;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

/* --- HEADER --- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    gap: 8px;
    padding: 6px 8px;
    flex-shrink: 0;
    background: rgba(12, 12, 20, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 100;
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 HEADER HEIGHT ADJUSTED FOR BIGGER LOGO 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 */
    height: 65px; /* Was 50px */
}

.header-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.header-back-btn {
    background: transparent;
    border: none;
    color: var(--text-med);
    font-size: 1rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}
.header-back-btn:hover {
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
}

.balance-group {
    display: flex;
    flex-direction: column;
    padding: 2px 8px;
    border-radius: 6px;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
}
.golden-box {
    border: 1px solid rgba(255, 215, 0, 0.7);
    background: linear-gradient(135deg, rgba(44, 44, 44, 0.7), rgba(26, 26, 26, 0.7));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.25), inset 0 0 6px rgba(255, 215, 0, 0.12);
    position: relative;
    overflow: visible;
}
.balance-row {
    font-size: 0.9rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 2px;
}
.balance-row .currency {
    color: #ffd700;
    font-size: 0.8rem;
    margin-right: 2px;
}
.secondary-balance {
    font-size: 0.6rem;
    color: var(--text-med);
    font-weight: 500;
    margin-top: 0px;
}

.header-center {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex: 1 1 auto;
    min-width: 0;
}
.app-title {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.title-icon {
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 INCREASED LOGO SIZE 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 */
    height: 60px; /* Was 46px */
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚�  */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 1;
}
.app-title h1 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}
.menu-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.1rem;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}
.menu-btn:hover {
    background-color: rgba(255,255,255,0.08);
}
.chat-btn {
    background: transparent;
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    transition: background-color 0.2s;
    flex-shrink: 0;
}
.chat-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}
.chat-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

/* --- WALLET DROPDOWN --- */
.wallet-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(28, 28, 36, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    min-width: 180px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 4px;
}
.wallet-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.wallet-dropdown-item {
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wallet-dropdown-item:last-child {
    border-bottom: none;
}
.wallet-dropdown-item:hover {
    background-color: rgba(255,255,255,0.08);
}
.wallet-dropdown-item i {
    color: var(--primary);
    width: 16px;
    margin-right: 8px;
}
.wallet-dropdown-item span {
    font-weight: 500;
    font-size: 0.85rem;
}

/* --- HISTORY --- */
.history-container {
    padding: 0 8px;
    position: relative;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    height: 28px;
    display: flex;
    align-items: center;
    background: transparent;
    z-index: 50;
}
.history-visible {
    display: flex;
    gap: 5px;
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
    align-items: center;
    height: 100%;
}
.history-visible::-webkit-scrollbar {
    display: none;
}
.history-item {
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 12px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.15s ease;
    border: none;
    text-align: center;
    min-width: 42px;
    height: 20px;
    line-height: 20px;
    background: rgba(40, 40, 55, 0.75);
    color: #a0c4ff;
}
.history-item.range1 { background: rgba(40, 40, 55, 0.75); color: #60a5fa; }
.history-item.range2 { background: rgba(40, 40, 55, 0.75); color: #c084fc; }
.history-item.range3 { background: rgba(40, 40, 55, 0.75); color: #f87171; }
.history-item.range4 { background: rgba(40, 40, 55, 0.75); color: #60a5fa; }
.history-item.range5 { background: rgba(40, 40, 55, 0.75); color: #4ade80; }
.history-item.range6 { background: rgba(40, 40, 55, 0.75); color: #fb923c; }
.history-item.range7 { background: rgba(40, 40, 55, 0.75); color: #f472b6; }
.history-toggle-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: transparent;
    border: none;
    color: var(--text-med);
    padding: 0 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}
.history-toggle-btn:hover {
    color: var(--text-light);
}
.history-toggle-btn.expanded i {
    transform: rotate(180deg);
}
.history-full {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 28, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    z-index: 60;
    transition: max-height 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
    border-top: none;
}
.history-full.expanded {
    max-height: 180px;
    overflow-y: auto;
}
.history-full-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    gap: 5px;
    padding: 8px;
}
.history-full-grid .history-item {
    height: 22px;
    line-height: 22px;
}

/* --- GAME AREA --- */
.game-area {
    flex-grow: 1;
    flex-shrink: 1;
    min-height: 180px;
    position: relative;
    display: flex;
    padding: 8px;
    overflow: hidden;
}

/* RAIN TOP BANNER */
/* 茅藛鹿芒鈥毬┧喡姑⑩€毬� GIFT WORTH BANNER (image + dynamic amount) 茅藛鹿芒鈥毬┧喡姑⑩€毬� */
.gift-banner {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;                 /* above header, logo, balance, chat, rain, etc. */
    width: 94%;
    max-width: 380px;
    pointer-events: none;
    display: none;
    animation: giftBannerSlide 0.35s ease-out;
}

@keyframes giftBannerSlide {
    from { transform: translate(-50%, -18px); opacity: 0; }
    to   { transform: translate(-50%, 0);     opacity: 1; }
}

.gift-banner-inner {
    position: relative;
    width: 100%;
    line-height: 0;
}

.gift-worth-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 50px;
    pointer-events: none;
}

.gift-banner-amount {
    position: absolute;
    right: 36px;                   /* moved left for proper alignment with rest of texts */
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: clamp(0.82rem, 3.6vw, 1.05rem);
    letter-spacing: 0.2px;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    line-height: 1;
}

.rain-top-banner {
    position: absolute;
    top: 58px;                     /* lowered so top sits on the recent results / history line */
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 92%;
    max-width: 340px;
    animation: slideDown 0.3s ease-out;
    cursor: pointer;
}
@keyframes slideDown {
    from { transform: translate(-50%, -20px); opacity: 0; }
    to { transform: translate(-50%, 0); opacity: 1; }
}
.rtb-content {
    position: relative;
    display: block;
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
    line-height: 0;
}
.rtb-claim-img {
    width: 100%;
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 FIXED CROPPING (REMOVED FIXED HEIGHT AND COVER) 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 */
    height: auto;
    object-fit: contain;
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚�  */
    display: block;
    border-radius: 12px;
    pointer-events: none;
}
.rtb-text {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 78%;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: #f5d76e;
    text-shadow: 0 1px 3px rgba(0,0,0,0.85), 0 0 8px rgba(0,0,0,0.4);
    pointer-events: none;
    white-space: nowrap;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

/* RAIN PROMO 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮⑩€櫯∶モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟⑩€毬β捙久ヂ惵⒚⑺喡睹モ€犅Ｃ⑩€毬βヂ伮捙久モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼脦鲁芒鈥樎┟ヂ佲€溍ㄢ€扳劉 plain transparent rain.png only, no circle / glow / blink */
.rain-promo-tiny {
    position: absolute;
    top: 8px;
    left: 8px;
    width: auto;
    height: auto;
    background: none;
    border: none;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    cursor: pointer;
    transition: none;
    overflow: visible;
    animation: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.rain-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}
.rain-promo-tiny.active {
    /* stay still 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮⑩€櫯∶モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟⑩€毬β捙久ヂ惵⒚⑺喡睹モ€犅Ｃ⑩€毬βヂ伮捙久モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼脦鲁芒鈥樎┟ヂ佲€溍ㄢ€扳劉 no glow / scale / animation */
}

/* GRAPH CONTAINER 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮⑩€櫯∶モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟⑩€毬β捙久ヂ惵⒚⑺喡睹モ€犅Ｃ⑩€毬βヂ伮捙久モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼脦鲁芒鈥樎┟ヂ佲€溍ㄢ€扳劉 now holds the hero GIF */
.graph-container {
    width: 100%;
    height: 100%;
    background-color: transparent;
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

/* HERO GIF */
.hero-gif {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: block;
}

/* =========================================================
   MULTIPLIER DISPLAY 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮⑩€櫯∶モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟⑩€毬β捙久ヂ惵⒚⑺喡睹モ€犅Ｃ⑩€毬βヂ伮捙久モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼脦鲁芒鈥樎┟ヂ佲€溍ㄢ€扳劉 FURTHER INCREASED SIZE
   Bigger, bolder, bottom-center (matches screenshot)
   ========================================================= */
.multiplier-display {
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(3.6rem, 15vw, 6.2rem);
    font-weight: 900;
    color: white;
    transition: color 0.3s ease;
    text-shadow: 0 0 28px rgba(0, 0, 0, 0.9), 0 3px 12px rgba(0, 0, 0, 0.7);
    z-index: 4;
    letter-spacing: -1px;
    line-height: 1;
}
.multiplier-display.crashed {
    color: var(--danger);
}
.multiplier-display.betting {
    opacity: 0;
}

/* Status overlay */
.game-status-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.45) 100%);
    z-index: 5;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.game-status-overlay.visible {
    opacity: 1;
    pointer-events: all;
}
.status-message {
    font-size: 1rem;
    font-weight: 500;
    color: var(--warning);
    margin-top: 12px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.85);
}

/* SIMULATION BAR */
.simulation-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 15px;
    z-index: 4;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sim-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-med);
}
.sim-item i {
    font-size: 1.1rem;
    color: var(--text-dark);
}
.sim-text-group {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.sim-label {
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sim-value {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-light);
    font-family: monospace;
}
.sim-value.money {
    color: #ffd700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.45);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.sim-divider {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.12);
}

/* Power-up betting timer (replaces old circular countdown) */
.power-up-display {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: auto;
    max-width: 260px;
    z-index: 6;
    padding: 0 12px;
    position: relative;
}
.power-up-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 210px;
    max-width: 72vw;
    height: auto;
    z-index: 0;
    pointer-events: none;
    opacity: 0.95;
    object-fit: contain;
}
.power-up-text {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-size: clamp(0.78rem, 3.2vw, 0.95rem);
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85), 0 0 14px rgba(124, 106, 240, 0.3);
    white-space: nowrap;
}
.power-up-track {
    position: relative;
    z-index: 1;
    width: 180px;
    max-width: 70vw;
    height: 6px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
}
.power-up-fill {
    height: 100%;
    width: 100%;
    border-radius: 20px;
    background: linear-gradient(90deg, #6366f1 0%, #818cf8 45%, #a78bfa 100%);
    box-shadow: 0 0 10px rgba(129, 140, 248, 0.65), 0 0 3px rgba(167, 139, 250, 0.45);
    transform-origin: left center;
    transform: scaleX(1);
    will-change: transform;
}

.spinner-ring {
    width: 8px;
    height: 8px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.spinner-ring:nth-child(2) { animation-delay: 0.1s; }
.spinner-ring:nth-child(3) { animation-delay: 0.2s; }
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* FLOATING MONEY */
.floating-text {
    position: fixed;
    font-weight: 800;
    font-size: 1.2rem;
    pointer-events: none;
    z-index: 9999;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    white-space: nowrap;
}
.floating-text.win { color: #4ade80; }
.floating-text.loss { color: #f87171; }

/* =========================================================
   BETTING CONTROLS 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮⑩€櫯∶モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟⑩€毬β捙久ヂ惵⒚⑺喡睹モ€犅Ｃ⑩€毬βヂ伮捙久モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼脦鲁芒鈥樎┟ヂ佲€溍ㄢ€扳劉 PURE TRANSPARENT + GIF BG
   ========================================================= */
.bet-controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 6px;
    background: transparent;
    background-image: url('assets/bet_bg.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
    min-height: 0;
    overflow-y: visible;
    margin-bottom: 2px;
    position: relative;
}
.bet-controls-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 0;
}
.bet-controls-wrapper > * {
    position: relative;
    z-index: 1;
}

.tabs-nav {
    display: flex;
    background: rgba(20, 20, 28, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius);
    padding: 2px;
    margin-bottom: 4px;
    gap: 2px;
    min-height: 32px;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.08);
}
.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-med);
    padding: 0;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    position: relative;
}
.tab-btn.active {
    background: rgba(80, 80, 95, 0.7);
    color: var(--text-light);
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.tab-btn:hover:not(.active) {
    color: var(--text-light);
}

.btn-effect {
    transition: transform 0.05s ease, filter 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}
.btn-effect:active:not(:disabled) {
    transform: scale(0.96);
    filter: brightness(1.1);
}

.bet-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: auto;
}

.bet-control {
    background: rgba(22, 22, 30, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    transition: all 0.3s ease;
    flex-grow: 0;
    height: auto;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
}
.bet-control.auto-bet-active {
    border: 1px solid rgba(34, 211, 238, 0.6);
    background: linear-gradient(135deg, rgba(22, 22, 30, 0.7), rgba(34, 211, 238, 0.12));
}
.bet-control.auto-bet-ready {
    border-color: rgba(74, 222, 128, 0.6);
    background: linear-gradient(135deg, rgba(22, 22, 30, 0.7), rgba(74, 222, 128, 0.12));
}

.bet-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: stretch;
}
.bet-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.min-max-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    padding: 0 2px;
    line-height: 1.2;
}

.amount-control {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.12);
}
.bet-amount-input {
    flex-grow: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-light);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    width: 40px;
    padding: 0;
    -moz-appearance: textfield;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.bet-amount-input[readonly],
.auto-cashout-input[readonly] {
    cursor: pointer;
}
.bet-amount-input[readonly]:hover,
.auto-cashout-input[readonly]:hover {
    background-color: rgba(255,255,255,0.06);
}
.bet-amount-input::-webkit-outer-spin-button,
.bet-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.amount-mod {
    background: rgba(70, 70, 85, 0.7);
    color: var(--text-light);
    border: none;
    font-size: 1.2rem;
    width: 36px;
    height: 100%;
    cursor: pointer;
    transition: background-color 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    display: flex;
    align-items: center;
    justify-content: center;
}
.amount-mod:hover {
    background-color: rgba(100, 100, 120, 0.8);
}
.amount-mod.minus {
    border-radius: 5px 0 0 5px;
}
.amount-mod.plus {
    border-radius: 0 5px 5px 0;
}

.quick-bets {
    display: flex;
    justify-content: space-between;
    gap: 4px;
}
.quick-bet-btn {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 5px;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}
.quick-bet-btn:hover {
    background: rgba(60, 60, 75, 0.7);
    color: var(--text-light);
    border-color: rgba(255,255,255,0.25);
}

.action-btn {
    padding: 0 12px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    height: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 90px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================================
   CLASSIC PLACE BET BUTTONS 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮⑩€櫯∶モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟⑩€毬β捙久ヂ惵⒚⑺喡睹モ€犅Ｃ⑩€毬βヂ伮捙久モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼脦鲁芒鈥樎┟ヂ佲€溍ㄢ€扳劉 BRAND BLUE
   ========================================================= */
.place-bet-btn {
    background-color: #0ea5e9;
    color: white;
    box-shadow: 0 3px 0 #0284c7, inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.place-bet-btn:active:not(:disabled) {
    box-shadow: 0 1px 0 #0284c7;
    transform: translateY(2px);
}

.cashout-btn {
    background-color: var(--warning);
    color: var(--bg-main);
    box-shadow: 0 3px 0 #b45309;
}
.cashout-btn:active:not(:disabled) {
    box-shadow: 0 1px 0 #b45309;
    transform: translateY(2px);
}
.cancel-btn {
    background-color: var(--danger);
    color: white;
}
.waiting-btn {
    background-color: #f59e0b;
    color: #1c1c1c;
    opacity: 0.9;
}

/* Voucher applied: keep normal blue place-bet look (no pink) */
.action-btn.place-bet-btn.using-voucher {
    /* inherits .place-bet-btn blue styles 茅藛楼茂驴陆 no pink override */
}
.action-btn.place-bet-btn.using-voucher:active:not(:disabled) {
    box-shadow: 0 1px 0 #0284c7;
    transform: translateY(2px);
}
.action-btn span {
    font-size: 0.75rem;
    font-weight: 500;
    margin-top: 2px;
    letter-spacing: 0;
    text-transform: none;
}
.action-btn.place-bet-btn.using-voucher span {
    font-size: 0.7rem;
    opacity: 0.9;
    font-weight: 400;
}

.auto-panel {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 0 2px;
    margin: 0;
    align-items: center;
    min-height: 22px;
}
.auto-option {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 500;
}
.auto-cashout-input {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: var(--text-light);
    padding: 2px 4px;
    width: 48px;
    text-align: center;
    font-size: 13px;
    -moz-appearance: textfield;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    height: 22px;
    font-weight: 600;
}
.auto-cashout-input::-webkit-outer-spin-button,
.auto-cashout-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.auto-cashout-input:disabled {
    background-color: transparent;
    border-color: transparent;
    opacity: 0.5;
}

.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    flex-shrink: 0;
}
.switch input {
    display: none;
}
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: rgba(80,80,95,0.7);
    border-radius: 16px;
    transition: .4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: #1c1c1c;
    border-radius: 50%;
    transition: .4s;
}
input:checked + .slider {
    background-color: var(--success);
}
input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}
input:checked + .slider:before {
    transform: translateX(16px);
}

.quick-bet-btn.gift-btn {
    border-color: rgba(255, 255, 255, 0.18);
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}
.quick-bet-btn.gift-btn img.gift-icon-img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}
.quick-bet-btn.gift-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

/* O/U CONTROLS */
.ou-container {
    background: rgba(18, 18, 26, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 0;
    height: auto;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
.ou-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ou-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.5px;
}
.ou-control-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.45);
    padding: 4px 6px;
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,0.12);
}
.ou-circle-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(50, 50, 65, 0.7);
    color: var(--text-light);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
.ou-circle-btn:active {
    transform: scale(0.95);
    background-color: rgba(80,80,95,0.8);
}
.ou-input-wrapper {
    flex-grow: 1;
    text-align: center;
    position: relative;
}
#ouBetAmount,
#ouCoefInput {
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    width: 100%;
    text-align: center;
    outline: none;
    padding: 0;
}
.ou-x-marker {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}
.ou-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    align-items: flex-start;
}
.ou-action-btn {
    flex: 1;
    border: none;
    border-radius: 8px;
    height: 50px;
    max-height: 50px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    transition: transform 0.1s;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 0 rgba(0,0,0,0.25);
}
.ou-action-btn:active:not(:disabled) {
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(0,0,0,0.25);
}
.ou-action-btn.over {
    background: linear-gradient(180deg, #fbbf24, #f59e0b);
    color: #1a1a1a;
}
/* Under button already brand blue 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮⑩€櫯∶モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟⑩€毬β捙久ヂ惵⒚⑺喡睹モ€犅Ｃ⑩€毬βヂ伮捙久モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼脦鲁芒鈥樎┟ヂ佲€溍ㄢ€扳劉 kept as-is */
.ou-action-btn.under {
    background: linear-gradient(180deg, #38bdf8, #0ea5e9);
    color: white;
}
.ou-action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.ou-act-title {
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.5px;
}
.ou-act-odds {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.85;
}
.ou-quick {
    background: rgba(50, 50, 65, 0.6);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    border-radius: 12px;
    padding: 4px 0;
    font-size: 0.75rem;
    font-weight: 600;
}
.ou-quick:hover {
    background: rgba(70, 70, 85, 0.8);
    color: white;
}
.ou-action-btn.waiting {
    background-color: rgba(80, 80, 95, 0.85) !important;
    color: var(--warning) !important;
    border: 1px solid var(--warning);
    animation: pulse-border 1.5s infinite;
}
.ou-action-btn.won {
    background-color: var(--success) !important;
    color: white !important;
    border: 1px solid var(--success);
    transform: scale(1.02);
}
.ou-action-btn.lost {
    background-color: var(--danger) !important;
    color: white !important;
    border: 1px solid var(--danger);
    opacity: 0.8;
}
@keyframes pulse-border {
    0% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(250, 204, 21, 0); }
    100% { box-shadow: 0 0 0 0 rgba(250, 204, 21, 0); }
}

/* --- NOTIFICATION --- */
#notification {
    position: fixed;
    top: 15%;
    left: 50%;
    transform: translate(-50%, 0) scale(0.9);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 11000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    visibility: hidden;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    cursor: pointer;
    pointer-events: none;
    white-space: nowrap;
}
#notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0) scale(1);
    pointer-events: auto;
}
.notification.success {
    background-color: var(--success);
    color: #000;
}
.notification.error {
    background-color: var(--danger);
    color: white;
}
.notification.warning {
    background-color: var(--warning);
    color: #000;
}

/* --- MODALS --- */
/* =========================================================
   MY BETS 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮⑩€櫯∶モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟⑩€毬β捙久ヂ惵⒚⑺喡睹モ€犅Ｃ⑩€毬βヂ伮捙久モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼脦鲁芒鈥樎┟ヂ佲€溍ㄢ€扳劉 Professional redesign (exact match to screenshot)
   ========================================================= */
.my-bets-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.my-bets-modal.show {
    opacity: 1;
    visibility: visible;
}
.my-bets-modal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
}
.my-bets-modal-content {
    background: #1a1a22;
    width: 100%;
    max-width: 380px;
    max-height: 72vh;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Tabs */
.my-bets-tabs {
    display: flex;
    background: #252530;
    margin: 12px 12px 0;
    border-radius: 10px;
    padding: 3px;
    flex-shrink: 0;
}
.my-bets-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #a3a3a3;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 9px 4px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.my-bets-tab.active {
    background: #0c0c12;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.my-bets-tab:not(.active):hover {
    color: #e5e5e5;
}

/* Column headers */
.my-bets-table-header {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 1.4fr 90px;
    gap: 6px;
    padding: 12px 14px 8px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #e5e5e5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}
.my-bets-table-header .col-action {
    /* empty header for Details column */
}

/* Scrollable body */
.my-bets-modal-body {
    padding: 0 8px 8px;
    overflow-y: auto;
    flex-grow: 1;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}
.my-bets-modal-body::-webkit-scrollbar {
    width: 3px;
}
.my-bets-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.my-bets-modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

/* Ticket rows 猫鈥炩劉猫艗 猫鈥炩€斆ヅ锯€灻ㄢ€炩劉氓啪鈥灻ㄅ犫€櫭┧喡� 芒藛露氓聛庐卯茠啪氓鈥ε该⑩€櫯∶⑩€樎┟⑩€毬β捙久モ€樎⑩€毬柯� bold black demarcation lines */
.my-bet-item {
    display: grid;
    grid-template-columns: 1.1fr 1.3fr 1.4fr 90px;
    gap: 6px;
    align-items: center;
    padding: 11px 6px;
    border-bottom: 6px solid #0a0a0e;
    font-size: 0.8rem;
    transition: background 0.15s ease;
}
.my-bet-item:last-child {
    border-bottom: 6px solid #0a0a0e;
}
.my-bet-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Time column */
.my-bet-time {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    color: #d4d4d8;
}
.my-bet-time .t-time {
    font-weight: 500;
    font-size: 0.82rem;
}
.my-bet-time .t-date {
    font-size: 0.68rem;
    color: #8b8b96;
}

/* Stake column */
.my-bet-stake {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    color: #f4f4f5;
    white-space: nowrap;
}
.my-bet-stake img.gift-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Status column */
.my-bet-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 600;
    white-space: nowrap;
}
.my-bet-status.lost {
    color: #a1a1aa;
}
.my-bet-status.won {
    color: #fbbf24;
}
.my-bet-status img.trophy-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Details button */
.my-bet-details-btn {
    background: #16a34a;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 5px 10px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    transition: background 0.15s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
}
.my-bet-details-btn:active {
    transform: scale(0.96);
}
.my-bet-details-btn i {
    font-size: 0.65rem;
}

/* Expanded details 猫鈥炩劉猫艗 猫鈥炩€斆ヅ锯€灻ㄢ€炩劉氓啪鈥灻ㄅ犫€櫭┧喡� 芒藛露氓聛庐卯茠啪氓鈥ε该⑩€櫯∶⑩€樎┟⑩€毬β捙久モ€樎⑩€毬柯� exact match to Sporty Hero screenshot */
.my-bet-expand {
    grid-column: 1 / -1;
    background: transparent;
    border-radius: 0;
    padding: 10px 4px 6px;
    margin: 0;
    font-size: 0.75rem;
    color: #a3a3a3;
    display: none;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.my-bet-item.expanded .my-bet-expand {
    display: block;
}
.my-bet-expand-inner {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mbe-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
}
.mbe-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.mbe-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.mbe-label {
    color: #9ca3af;
    font-size: 0.72rem;
    font-weight: 500;
}
.mbe-val {
    color: #e5e7eb;
    font-size: 0.78rem;
    font-weight: 600;
}
.mbe-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    padding-top: 4px;
}
.mbe-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.mbe-meta-label {
    color: #9ca3af;
    font-size: 0.7rem;
    font-weight: 500;
}
.mbe-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.3;
}
.mbe-pill.coeff {
    background: #16a34a;
    color: #fff;
}
.mbe-pill.result {
    background: #dc2626;
    color: #fff;
}
.mbe-meta-val {
    color: #e5e7eb;
    font-size: 0.78rem;
    font-weight: 600;
}
.mbe-ticket-id {
    color: #facc15;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.mbe-icon {
    color: #22c55e;
    font-size: 0.85rem;
    margin-left: 2px;
}
.mbe-meta-item.ticket {
    margin-left: auto;
}

/* Bottom close button 猫鈥炩劉氓啪鈥灻ㄅ犫€櫭┧喡ッβ捙久⑩€樎┟ヂ佲€溍ㄢ€扳劉 white circle + centered X (outside / under the modal view) */
.my-bets-close-bottom {
    flex-shrink: 0;
    margin-top: 14px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: none;
    color: #111;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 5;
}
.my-bets-close-bottom:active {
    transform: scale(0.92);
}

/* Empty state */
.my-bets-empty {
    text-align: center;
    padding: 40px 20px;
    color: #71717a;
    font-size: 0.85rem;
}

/* Load More button 猫鈥炩劉氓啪鈥灻ㄅ犫€櫭┧喡ッβ捙久⑩€樎┟ヂ佲€溍ㄢ€扳劉 always at the bottom of the list */
.my-bets-load-more {
    display: block;
    width: 100%;
    margin: 12px 0 8px;
    padding: 12px 16px;
    background: rgba(34, 211, 238, 0.15);
    border: 1px solid rgba(34, 211, 238, 0.35);
    border-radius: 10px;
    color: #22d3ee;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, transform 0.1s;
    -webkit-tap-highlight-color: transparent;
}
.my-bets-load-more:active {
    transform: scale(0.97);
    background: rgba(34, 211, 238, 0.25);
}

.bonus-info-bar {
    background-color: rgba(34, 211, 238, 0.12);
    color: var(--primary);
    text-align: center;
    padding: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bonus-prompt-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 2500;
    display: flex !important;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.bonus-prompt-modal.show {
    opacity: 1;
    visibility: visible;
}
.bonus-prompt-content {
    background: rgba(28, 28, 36, 0.95);
    backdrop-filter: blur(12px);
    padding: 16px;
    border-radius: var(--border-radius);
    text-align: center;
    width: 90%;
    max-width: 300px;
    box-shadow: var(--shadow);
    position: relative;
    border: 1px solid rgba(255,255,255,0.1);
}
.bonus-prompt-content h3 {
    color: var(--text-light);
    margin-bottom: 6px;
    font-size: 1rem;
}
.bonus-prompt-content p {
    color: var(--text-med);
    margin-bottom: 14px;
    font-size: 0.85rem;
}
.bonus-prompt-buttons {
    display: flex;
    gap: 8px;
}
.bonus-choice-btn {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.bonus-choice-btn.bonus {
    background-color: var(--primary);
    color: var(--bg-main);
}
.bonus-choice-btn.bonus:hover {
    opacity: 0.9;
}
.bonus-choice-btn.real {
    background-color: rgba(80,80,95,0.8);
    color: var(--text-light);
}
.bonus-choice-btn.real:hover {
    background-color: rgba(100,100,115,0.9);
}
.cancel-choice-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: none;
    border: none;
    color: var(--text-med);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
}
.cancel-choice-btn:hover {
    color: var(--text-light);
}

.exit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 3500;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.exit-modal.show {
    opacity: 1;
    visibility: visible;
}
.exit-modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 450px;
    text-align: left;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
}
.exit-modal.show .exit-modal-content {
    transform: translateY(0);
}
.exit-modal-header {
    padding: 12px 16px;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
}
.exit-games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 0 16px 16px 16px;
    width: 100%;
}
.exit-game-box {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background: #e5e5e5;
}
.exit-game-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.exit-modal-actions {
    display: flex;
    width: 100%;
    height: 50px;
}
.exit-action-btn {
    border: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0;
}
.exit-action-btn.leave {
    background: #3f3f3f;
    color: white;
    flex: 0.35;
}
.exit-action-btn.stay {
    background: #16a34a;
    color: white;
    flex: 0.65;
}

/* === RAIN MODAL === */
.rain-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.72);
    z-index: 2500;
    display: flex;
    justify-content: center;
    align-items: flex-end;          
    padding-bottom: 18px;           
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.rain-modal.show {
    opacity: 1;
    visibility: visible;
}
.rain-modal-content {
    position: relative;
    width: 92%;
    max-width: 340px;
    aspect-ratio: 340 / 420;
    background: url('assets/rain_modal.png') center / 100% 100% no-repeat;
    background-color: transparent;
    border: none;
    border-radius: 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
    overflow: visible;
}
.rain-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 20;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.rain-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.rain-modal-body {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 18px 18px;           
    text-align: center;
    pointer-events: none;
}
.rain-modal-body > * {
    pointer-events: auto;
}
.rain-gifts-left-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 ADJUST THIS VALUE TO MOVE THE PROGRESS BAR UP OR DOWN 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 */
    /* Increase the value (e.g. 160px, 180px) to move them UPWARDS */
    /* Decrease the value (e.g. 50px, 30px) to move them DOWNWARDS */
    margin-bottom: 110px; /* Increased from 28px to move upwards */
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚�  POINTED OUT CONTROL 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚�  */
}
.gifts-left {
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(220, 220, 230, 0.95);
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.rain-progress-track {
    width: 78%;
    max-width: 220px;
    height: 8px;
    background: rgba(60, 65, 80, 0.85);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.rain-progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #c5c9d4, #e8eaef);
    border-radius: 20px;
    transition: width 0.45s ease;
}
.rain-hurry-text {
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 HIDDEN BECAUSE IT'S ALREADY WRITTEN ON THE IMAGE 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 */
    display: none;
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚�  */
    font-size: 0.92rem;
    font-weight: 500;
    font-style: italic;
    color: rgba(180, 185, 200, 0.9);
    margin-bottom: 14px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* 茅藛鹿芒鈥毬┧喡姑⑩€毬� Rain waiting state (countdown, matches Sporty-style screenshot) 茅藛鹿芒鈥毬┧喡姑⑩€毬� */
.rain-waiting-wrap {
    position: absolute;
    left: 0;
    right: 0;
    top: 42%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    pointer-events: none;
    z-index: 3;
}
.rain-waiting-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
    line-height: 1.2;
}
.rain-waiting-sub {
    font-size: 0.92rem;
    font-weight: 400;
    color: rgba(220, 220, 230, 0.92);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.35;
}

/* Grey "starts in" bar (waiting state of the claim button area) */
.rain-claim-btn.waiting-state {
    width: 200%;
    max-width: 300px;
    height: auto;
    min-height: 55px;
    margin: 0 auto 22px auto;
    padding: 11px 22px;
    background: linear-gradient(180deg, #2a2d38 0%, #1e2129 100%);
    border: 1.5px solid rgba(212, 175, 55, 0.75);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    cursor: default;
    opacity: 1 !important;
}
.rain-claim-btn.waiting-state:disabled {
    opacity: 1 !important;
    cursor: default;
}
.rain-claim-btn.waiting-state .claim-text {
    display: none !important;
}
.rain-claim-btn .rain-wait-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    pointer-events: none;
}
.rain-claim-btn .rain-wait-icon {
    font-size: 1.35rem;
    line-height: 1;
    flex-shrink: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.rain-claim-btn .rain-wait-lines {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
}
.rain-claim-btn .rain-wait-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(230, 230, 240, 0.95);
    letter-spacing: 0.3px;
    line-height: 1.1;
}
.rain-claim-btn .rain-wait-detail {
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(200, 200, 210, 0.95);
    line-height: 1.2;
    white-space: nowrap;
}
.rain-claim-btn .rain-wait-detail .rain-amt {
    color: #f5c518;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}
.rain-claim-btn .rain-wait-detail .rain-starts {
    color: rgba(210, 210, 220, 0.95);
    font-weight: 500;
}
.rain-claim-btn .rain-wait-detail .rain-secs {
    color: #ffffff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.rain-claim-btn {
    width: 88%;
    max-width: 280px;
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 BUTTON VERTICAL HEIGHT REDUCED 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 */
    height: 10px; /* Reduced from 36px */
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚�  */
    
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 IF YOU NEED TO MOVE THE 'CLAIM NGN 500' TEXT UPWARDS, ADJUST THIS 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐芒藛露氓鈥βっβ嶁€斆モ€斅徝⑩€毬βモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼忙炉颅氓聛庐茂驴陆 */
    margin: 0 auto 45px auto; /* Increased bottom margin to push it upwards into the image's yellow box */
    /* 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚� 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮︹€∨犆モ€βっβ嶁€斆⑩€樎┟ヂ佲€溍ヂㄢ€灻ㄢ€炩劉茅藛楼忙炉颅氓聛庐猫炉楼氓鈥βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼氓搂鈥樏モ€樎⑩€毬β郝嵜モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚�  */
    
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    position: relative;
    z-index: 2;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.15s ease, opacity 0.2s ease;
}
.rain-claim-btn:hover:not(:disabled) {
    transform: scale(1.02);
}
.rain-claim-btn:active:not(:disabled) {
    transform: scale(0.97);
}
.rain-claim-btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.rain-claim-btn .claim-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff; /* <-- Changed to White */
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); /* Changed to dark shadow so the white text pops */
    pointer-events: none;
    white-space: nowrap;
}
.rain-timer {
    display: none !important;
}
/* 芒鈥濃偓芒鈥濃偓 Ineligibility panel (exact match to Sporty screenshot) 芒鈥濃偓芒鈥濃偓 */
/* Shorter height so the modal 脙鈥� close button stays free and tappable */
.rain-eligibility-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    height: auto;
    max-height: 68%;
    z-index: 6;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 16px 22px;
    text-align: center;
    background: rgba(18, 20, 28, 0.97);
    border-radius: 0 0 18px 18px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
    /* soft rain streaks overlay */
    background-image:
        linear-gradient(160deg, transparent 40%, rgba(180, 190, 210, 0.04) 50%, transparent 60%),
        linear-gradient(150deg, transparent 30%, rgba(180, 190, 210, 0.03) 45%, transparent 55%),
        linear-gradient(170deg, transparent 55%, rgba(180, 190, 210, 0.035) 65%, transparent 75%);
    pointer-events: auto;
}
.rain-elig-cloud {
    margin-bottom: 8px;
    line-height: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.45));
}
.rain-elig-cloud-svg {
    width: 72px;
    height: 54px;
    display: block;
}
.rain-elig-title {
    margin: 0 0 6px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #e8e8ef;
    letter-spacing: 0.15px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.25;
}
.rain-elig-sub {
    margin: 0 0 12px 0;
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(200, 205, 220, 0.9);
    line-height: 1.35;
}
.rain-elig-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    padding: 14px 14px 14px 12px;
    background: rgba(32, 36, 48, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.rain-elig-x-wrap {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.2);
    border: 1.5px solid rgba(239, 68, 68, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.rain-elig-x {
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}
.rain-elig-box-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rain-elig-box-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #e8e8ef;
    line-height: 1.3;
}
.rain-elig-box-detail {
    font-size: 0.78rem;
    font-weight: 400;
    color: rgba(180, 185, 200, 0.92);
    line-height: 1.45;
}

.rain-claimed-message,
.rain-empty-message {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 86%;
    max-width: 260px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 500;
    z-index: 4;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.rain-claimed-message {
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.45);
}
.rain-empty-message {
    background: rgba(163, 163, 163, 0.15);
    color: #d4d4d8;
    border: 1px solid rgba(163, 163, 163, 0.35);
}

/* --- VOUCHER --- */
.voucher-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2800;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.voucher-modal.show {
    opacity: 1;
    visibility: visible;
}
.voucher-modal-content {
    background: rgba(24, 24, 32, 0.96);
    backdrop-filter: blur(16px);
    width: 100%;
    max-width: 450px;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 85vh;
    border: 1px solid rgba(255,255,255,0.1);
}
.voucher-modal-header {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30,30,40,0.8);
}
.voucher-modal-header h2 {
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
}
.voucher-modal-close {
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.2rem;
    cursor: pointer;
}
.voucher-list-container {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 60vh;
    -webkit-overflow-scrolling: touch;
    transition: padding-bottom 0.3s ease;
}
.voucher-list-container.keyboard-active {
    padding-bottom: 150px !important;
}
.voucher-card {
    background-color: rgba(40,40,52,0.85);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 10px rgba(0,0,0,0.35);
    flex-shrink: 0;
    width: 100%;
    min-height: auto;
    margin-bottom: 4px;
}
.v-card-top {
    background: linear-gradient(90deg, #14b8a6, #0d9488);
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.v-header-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
}
.v-card-middle {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}
.v-title {
    color: #22d3ee;
    font-weight: 700;
    font-size: 0.9rem;
}
.v-expiry {
    color: #a3a3a3;
    font-size: 0.8rem;
    font-weight: 500;
}
.v-note {
    font-size: 0.7rem;
    color: #737373;
    margin-top: 2px;
}
.v-card-bottom {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.08);
    background-color: rgba(30,30,40,0.7);
    flex-shrink: 0;
}
.v-use-btn {
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 20px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.v-use-btn:active {
    transform: scale(0.95);
}
.v-partial-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.v-partial-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}
.v-partial-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.5);
}
.v-partial-label.active .v-partial-circle {
    background: #4ade80;
    border-color: #4ade80;
}
.v-partial-input {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;
    color: white;
    padding: 4px 8px;
    width: 100px;
    text-align: right;
    font-weight: 600;
    display: none;
    outline: none;
    font-size: 0.9rem;
}
.v-partial-input.show {
    display: block;
}
.v-partial-input::placeholder {
    color: rgba(255,255,255,0.5);
}
.voucher-ui-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}
.v-ui-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.6rem;
    color: #a3a3a3;
    padding: 0 2px;
}
.v-ui-input-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(0,0,0,0.5);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    padding: 0 8px;
    height: 36px;
    position: relative;
}
.v-ui-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    opacity: 0.55; /* faded = voucher applied & ready for betting */
}
.v-ui-amount {
    color: white;
    font-size: 1rem;
    font-weight: 700;
}
.v-ui-close-btn {
    background: #333;
    color: #aaa;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.v-ui-close-btn:hover {
    background: #444;
    color: white;
}

/* =========================================================
   TINY KEYBOARD
   ========================================================= */
.tiny-keyboard {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 100%);
    width: 100%;
    max-width: 450px;
    background: rgba(12, 12, 18, 0.96);
    backdrop-filter: blur(16px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 6px;
    gap: 6px;
    border-top: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.25s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}
.tiny-keyboard.visible {
    transform: translate(-50%, 0);
}
.tk-row {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
}
.tk-btn {
    flex: 1;
    background: rgba(50, 50, 65, 0.85);
    color: white;
    border: none;
    border-radius: 4px;
    height: 38px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 0 rgba(0,0,0,0.4);
    -webkit-tap-highlight-color: transparent;
}
.tk-btn:active {
    transform: translateY(2px);
    box-shadow: none;
    background: rgba(70, 70, 85, 0.9);
}
.tk-btn.action {
    background: #b91c1c;
    color: white;
    flex-grow: 0.8;
}
.tk-btn.done {
    background: #15803d;
    color: white;
    flex-grow: 0.8;
}
.tk-btn.clear {
    background: #c2410c;
    color: white;
}

/* =========================================================
   RANGE BET PANEL
   ========================================================= */
.range-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 4px;
}
.range-slot-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 2px;
}
.range-slot-btn {
    flex: 1;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(30, 30, 42, 0.7);
    color: var(--text-med);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}
.range-slot-btn.active {
    background: linear-gradient(135deg, rgba(120, 100, 255, 0.35), rgba(80, 60, 200, 0.4));
    border-color: rgba(160, 140, 255, 0.55);
    color: #e0d4ff;
    box-shadow: 0 0 12px rgba(120, 100, 255, 0.25);
}
.range-amount-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(25, 25, 35, 0.7);
    border-radius: 12px;
    padding: 6px 8px;
    border: 1px solid rgba(255,255,255,0.08);
}
.range-circle-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(50, 50, 65, 0.8);
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.range-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.range-input-label {
    font-size: 0.65rem;
    color: var(--text-med);
    line-height: 1;
    margin-bottom: 1px;
}
#rangeBetAmount {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 700;
    width: 100%;
    text-align: center;
    outline: none;
    padding: 0;
}
.range-quick-bets {
    display: flex;
    gap: 6px;
    justify-content: space-between;
}
.range-quick-bets .quick-bet-btn {
    flex: 1;
}
.range-bounds-row {
    display: flex;
    gap: 8px;
}
.range-bound-box {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(25, 25, 35, 0.7);
    border-radius: 12px;
    padding: 6px 6px;
    border: 1px solid rgba(255,255,255,0.08);
}
.range-bound-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(50, 50, 65, 0.8);
    color: var(--text-light);
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.range-bound-value-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.range-bound-label {
    font-size: 0.6rem;
    color: var(--text-med);
    line-height: 1;
}
.range-bound-value {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

/* =========================================================
   RANGE PLACE BET BUTTON 猫鈥炩劉猫艗 猫鈥灺澝┧喡ッβモ€犅Ｃ⑩€毬βヂ伮⑩€櫯∶モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟⑩€毬β捙久ヂ惵⒚⑺喡睹モ€犅Ｃ⑩€毬βヂ伮捙久モ€βっβ嶁€斆ヂ伮⑩€櫯∶モ€ε该⑩€櫯∶⑩€樎┟ヂ佲€溍︹€孤ㄢ€炩€斆ヂ嵚⒚ㄢ€炩劉茅藛楼脦鲁芒鈥樎┟ヂ佲€溍ㄢ€扳劉 BRAND BLUE
   ========================================================= */
.range-action-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
    box-shadow: 0 4px 0 #0284c7;
    margin-top: 2px;
}
.range-action-btn .range-pays {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.9;
}

.tabs-nav .tab-btn[data-tab="range"].active {
    color: #c4b5fd;
}
.tabs-nav .tab-btn[data-tab="range"].active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: #a78bfa;
    border-radius: 2px;
}

/* Responsive adjustments */
@media (max-height: 500px) {
    .app-title h1 { display: none; }
    .header-left { min-width: 0; padding: 0; }
    .balance-group { padding: 2px; }
    .balance-row { font-size: 0.75rem; }
    .secondary-balance { display: none !important; }
    .header-center { padding: 0; }
    header { height: 45px; padding: 0 4px; } /* Slightly taller to fit increased logo */
    .title-icon { height: 42px; width: auto; max-width: 160px; object-fit: contain; } /* Increased logo scaling */
    .menu-btn { width: 24px; height: 24px; font-size: 0.9rem; }
    .chat-btn { width: 24px; height: 24px; }
    .chat-icon { width: 18px; height: 18px; }
    .history-container { height: 22px; padding: 0 4px; }
    .history-item { height: 16px; line-height: 16px; font-size: 9px; min-width: 34px; padding: 0 6px; border-radius: 10px; }
    .history-toggle-btn { padding: 0 4px; font-size: 0.7rem; }
    .game-area { max-height: none; min-height: 30%; flex-grow: 1; padding: 4px; }
    .multiplier-display { font-size: 3.2rem; bottom: 10px; }   /* still large on short screens */
    .rain-promo-tiny { top: 4px; left: 4px; }
    .rain-icon-img { width: 22px; height: 22px; }
    .status-message { font-size: 0.8rem; margin-top: 4px; }
    .power-up-text { font-size: 0.72rem; letter-spacing: 0.5px; }
    .power-up-track { width: 140px; height: 5px; }
    .power-up-display { gap: 8px; max-width: 200px; }
    .power-up-badge { width: 160px; }
    .bet-controls-wrapper { padding: 2px; gap: 2px; flex-shrink: 1; overflow-y: auto; min-height: 0; }
    .tabs-nav { min-height: 20px; margin-bottom: 2px; padding: 1px; }
    .tab-btn { font-size: 0.65rem; padding: 2px; }
    .bet-control { padding: 2px; gap: 2px; flex-shrink: 0; min-height: auto; overflow: visible; }
    .bet-amount-input { font-size: 12px; width: 30px; padding: 0; }
    .amount-mod { width: 20px; height: 20px; font-size: 0.8rem; }
    .quick-bet-btn { font-size: 0.55rem; min-height: 16px; padding: 1px; }
    .action-btn { min-width: 50px; font-size: 0.8rem; padding: 2px; }
    .action-btn span { font-size: 0.6rem; }
    .auto-panel { display: flex !important; opacity: 1 !important; min-height: 20px; align-items: center; margin: 0; justify-content: space-between; width: 100%; visibility: visible !important; }
    .auto-option span { display: none; }
    .min-max-labels { font-size: 0.55rem; padding: 0; }
    .switch { width: 28px; height: 16px; display: inline-block; border: 1px solid rgba(255,255,255,0.15); border-radius: 16px; }
    .slider:before { width: 10px; height: 10px; left: 2px; bottom: 2px; }
    input:checked + .slider:before { transform: translateX(12px); }
    .auto-cashout-input { width: 40px; font-size: 10px; padding: 1px; display: inline-block !important; visibility: visible !important; border-color: var(--text-med); height: 18px; }
    .ou-container { padding: 2px; gap: 2px; }
    .ou-label { display: none; }
    .ou-circle-btn { width: 20px; height: 20px; font-size: 0.6rem; }
    #ouBetAmount, #ouCoefInput { font-size: 0.9rem; }
    .ou-action-btn { padding: 4px; height: 36px; max-height: 36px; }
    .ou-act-title { font-size: 0.7rem; }
    .ou-act-odds { font-size: 0.6rem; }
}

@media (max-height: 350px) {
    header { height: 36px; }
    .balance-row { font-size: 0.65rem; }
    .history-container { height: 18px; }
    .history-item { font-size: 8px; min-width: 30px; }
    .game-area { min-height: 35%; }
    .bet-control { border-radius: 2px; }
    .bet-grid { gap: 2px; }
    .amount-control { border-radius: 2px; }
    .quick-bet-btn { font-size: 0.5rem; }
    .bet-amount-input { font-size: 10px; }
    .action-btn { font-size: 0.7rem; }
    .auto-cashout-input { width: 32px; font-size: 9px; height: 16px; }
    .switch { width: 24px; height: 14px; }
    .slider:before { width: 8px; height: 8px; left: 2px; bottom: 2px; }
    input:checked + .slider:before { transform: translateX(10px); }
}