/* CAFE_REFERENCE_POLISH_V1 — appearance only; existing controls and data retained. */
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])){padding:12px 28px 24px!important;background:#03040a url("/cafe/assets/reference-menu-v1/layout_BG.webp") center top/100% auto repeat-y!important;max-width:440px!important;box-shadow:none!important;border:0!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden]))::before{display:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden]))::after{display:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .content{background:transparent!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .eyebrow{display:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) #stage-connection.reference-clean-status{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .top{padding:10px 11px!important;margin:0 0 12px!important;border:1px solid #6d628c!important;border-radius:18px!important;background:linear-gradient(135deg,#101322,#07080d 65%)!important;box-shadow:0 0 4px #5765a78c,inset 0 0 3px #9472a54d!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .identity{min-height:29px!important;margin-bottom:14px!important;gap:10px!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .brand{padding:3px 10px!important;border:1px solid #7b80bd!important;border-radius:25px!important;background:linear-gradient(130deg,#273659,#101025)!important;box-shadow:0 0 4px #6375b877!important;transform:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .brand strong{font-size:20px!important;line-height:1.1!important;color:#fff!important;text-shadow:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .brand small{font:7px Arial,sans-serif!important;letter-spacing:1.3px!important;color:#cbd2e5!important;margin-top:3px!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .user{font-size:16px!important;gap:7px!important;color:#fff!important;text-shadow:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .avatar{width:29px!important;height:29px!important;border-width:1px!important;box-shadow:none!important;font-size:22px!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .avatar svg{width:18px!important;height:18px!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .balances{gap:10px!important;grid-template-columns:1.1fr 1fr!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .balance{height:35px!important;min-width:0!important;padding:0 10px!important;border:0!important;border-radius:99px!important;box-shadow:none!important;overflow:hidden!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .balance.gold{background:transparent url("/cafe/assets/reference-menu-v1/toman_BG.png") center/100% 100% no-repeat!important;color:#fff!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .balance.silver{background:transparent url("/cafe/assets/reference-menu-v1/ding_BG.webp") center/100% 100% no-repeat!important;color:#fff!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .balance .number{font:600 clamp(15px,4.6vw,20px) Arial,sans-serif!important;text-shadow:none!important;letter-spacing:0!important;white-space:nowrap!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .balance .refresh{flex:none!important;width:23px!important;height:29px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;color:#c4bdff!important;font-size:27px!important;text-shadow:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .balance .coin{flex:none!important;width:24px!important;height:24px!important;font:700 16px Arial,sans-serif!important;border:1px solid #e7c86d!important;border-radius:50%!important;box-shadow:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) #cafe-install{min-height:55px!important;width:100%!important;margin:0 0 16px!important;padding:10px 8px!important;border:3px solid #50d884!important;border-radius:14px!important;font-size:18px!important;background:linear-gradient(130deg,#31b45d,#0b8c47)!important;box-shadow:0 0 10px #18be5b35,inset 0 0 5px #86f5a745!important;text-shadow:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .menu{margin:0!important;gap:9px!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile{display:block!important;position:relative!important;min-height:0!important;height:auto!important;aspect-ratio:752/182!important;padding:0!important;border:0!important;border-radius:9px!important;background-color:transparent!important;background-size:100% 100%!important;background-repeat:no-repeat!important;background-position:center!important;box-shadow:none!important;filter:none!important;transform:none!important;text-shadow:none!important;overflow:visible!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile::before{display:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile::after{display:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile .icon{display:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile .labels{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;margin:0!important;padding:0!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile .people{position:absolute!important;left:35%!important;top:20%!important;transform:none!important;margin:0!important;gap:5px!important;font:400 clamp(14px,4.4vw,19px) Arial,sans-serif!important;color:#fff!important;text-shadow:0 1px 2px #000!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile .people svg{width:21px!important;height:21px!important;stroke:#fff!important;opacity:1!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile[data-title="اتاق بازی"]{background-image:url("/cafe/assets/reference-menu-v1/menu-game-room.webp")!important;aspect-ratio:755/193!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile[data-title="تورنومنت‌ها"]{background-image:url("/cafe/assets/reference-menu-v1/tournament.webp")!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile[data-title="کیف پول"]{background-image:url("/cafe/assets/reference-menu-v1/menu-reports.webp")!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile[data-title="بردها و رتبه‌ها"]{background-image:url("/cafe/assets/reference-menu-v1/menu-leaderboard.webp")!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile[data-title="حساب کاربری"]{background-image:url("/cafe/assets/reference-menu-v1/menu-my-profile.webp")!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile[data-title="تنظیمات"]{background-image:url("/cafe/assets/reference-menu-v1/settings.webp")!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile[data-title="بردها و رتبه ها"]{background-image:url("/cafe/assets/reference-menu-v1/menu-leaderboard.webp")!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile:focus-visible{outline:2px solid #f5d980!important;outline-offset:3px!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile:focus:not(:focus-visible){outline:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .tile:active{opacity:.92!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .bottom{gap:4px!important;margin:12px 0 0!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .bottom button{position:relative!important;flex:1 1 0!important;min-height:0!important;height:auto!important;aspect-ratio:368/133!important;padding:0!important;border:0!important;border-radius:10px!important;box-shadow:none!important;background-color:transparent!important;background-size:100% 100%!important;background-position:center!important;background-repeat:no-repeat!important;filter:none!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .bottom .exit{background-image:url("/cafe/assets/reference-menu-v1/menu-logout.webp")!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .bottom .support{background-image:url("/cafe/assets/reference-menu-v1/support.webp")!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .bottom button>*{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .bottom button:focus-visible{outline:2px solid #f5d980!important;outline-offset:3px!important}
html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) #cafe-guide-button{margin:16px auto 0!important;min-height:38px!important;font-size:12px!important;padding:8px 14px!important;border:1px solid #99804a!important;background:#14131a!important;color:#f1d88a!important;box-shadow:none!important}
@media(max-width:350px){html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])){padding:10px 18px 20px!important}html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .user{font-size:14px!important}html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .brand strong{font-size:18px!important}html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) .balance .number{font-size:15px!important}html:not([data-cafe-theme="light"]):not([data-cafe-theme="new"]) .app:has(#home-view:not([hidden])) #cafe-install{font-size:16px!important;min-height:50px!important}}
