/* Shared navigation and game information: keep controls usable down to 320px. */
html body .nav_container{display:flex;gap:18px;padding-inline:24px}
html body .nav_container_wrapper_left{flex:0 0 auto;gap:18px}
html body .nav_container_wrapper_middle{margin:0 0 0 auto;flex:0 1 auto;min-width:0}
.tc-nav-games{position:relative;flex:0 0 auto}
.tc-games-toggle{display:flex;align-items:center;justify-content:center;gap:10px;height:40px;padding:0 14px;border:1px solid var(--ui-p-304c60,#304c60);border-radius:calc(8px * var(--ui-radius-scale,1));background:var(--ui-p-1b3546,#1b3546);color:var(--ui-p-dcebf4,#dcebf4);font:600 13px/1 Inter,Arial,sans-serif}
.tc-games-toggle:hover,.tc-games-toggle[aria-expanded=true]{background:var(--ui-p-2b485d,#2b485d);color:var(--ui-success,#b7f76b)}
.tc-games-chevron{font-size:9px}
.tc-games-popover{position:fixed;top:72px;left:24px;right:24px;margin:auto;max-width:820px;padding:20px;background:var(--ui-p-142d3e,#142d3e);border:1px solid var(--ui-p-365469,#365469);border-radius:calc(14px * var(--ui-radius-scale,1));box-shadow:0 16px 60px var(--ui-p-00000099,#0009);z-index:1100;text-align:left}
.tc-games-popover[hidden]{display:none!important}
.tc-games-popover-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px;color:var(--ui-p-ecf5fa,#ecf5fa);font-size:15px}
.tc-games-popover-heading a{font-size:12px;color:var(--ui-success,#b7f76b)}
.tc-games-nav-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:min(65vh,550px);overflow:auto;overscroll-behavior:contain}
.tc-games-nav-grid a{display:flex;align-items:center;gap:10px;padding:8px;border-radius:calc(8px * var(--ui-radius-scale,1));color:var(--ui-p-c6d9e5,#c6d9e5);font:600 12px/1.4 Inter,Arial,sans-serif;min-width:0}
.tc-games-nav-grid a:hover{background:var(--ui-p-29485d,#29485d);color:var(--ui-success,#b7f76b)}
.tc-games-nav-grid img{width:38px;height:38px;object-fit:cover;border-radius:calc(7px * var(--ui-radius-scale,1));flex:none}
.tc-game-cover{width:44px;height:44px;display:block;border-radius:calc(10px * var(--ui-radius-scale,1));overflow:hidden;flex:none;border:1px solid var(--ui-p-3a566b,#3a566b)}
.tc-game-cover img{width:100%;height:100%;object-fit:cover;display:block}
html body .game_page_header_wrap{margin-bottom:16px}
html body .game_page_header{margin-bottom:0}
.tc-game-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 0 0;min-height:52px}
.tc-game-boost-slot{min-width:0;flex:1 1 180px}
.tc-game-tools{display:flex;gap:8px;margin-left:auto}
.tc-game-tools button{height:40px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 13px;border:1px solid var(--ui-p-355166,#355166);border-radius:calc(8px * var(--ui-radius-scale,1));background:var(--ui-p-193447,#193447);color:var(--ui-p-b4cad8,#b4cad8);font:600 12px Inter,Arial,sans-serif}
.tc-game-tools button:hover{color:var(--ui-success,#b7f76b);background:var(--ui-p-28485b,#28485b)}
.tc-game-toolbar .lux-active-boosts{justify-content:flex-start;margin:0;padding:0;max-width:none;gap:8px}
.tc-game-toolbar .lux-active-boost{border:1px solid var(--ui-p-3d5b4a,#3d5b4a);border-radius:calc(8px * var(--ui-radius-scale,1));background:var(--ui-p-19382e,#19382e);font-size:10px;min-height:40px;padding:7px 10px;gap:8px}
.tc-game-toolbar:has(.tc-game-boost-slot:empty):not(:has(.tc-game-tools)){display:none}
@media(max-width:1000px){html body .nav_container{gap:12px;padding-inline:16px}html body .nav_container_wrapper_left{gap:12px}.tc-profile-link span{display:none}.tc-games-toggle{padding-inline:10px}}
@media(max-width:640px){html body .nav_container{gap:8px;padding-inline:10px}html body .nav_container_wrapper_left{gap:8px}html body .nav_container_wrapper_left_logo img,body.stake-auth .nav_container_wrapper_left_logo img{width:104px!important;height:28px;object-fit:contain}html body .tc-menu-button{width:32px;min-width:32px;padding:0}html body .tc-profile-link{display:none}html body .tc-currency{display:none}.tc-games-toggle{width:36px;height:36px;padding:0}.tc-games-toggle>span,.tc-games-chevron,.tc-game-tools button>span{display:none}.tc-game-tools button{width:40px;padding:0}.tc-games-popover{left:10px;right:10px;padding:14px}.tc-games-nav-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.tc-games-nav-grid a{font-size:11px;padding:6px;gap:8px}.tc-game-toolbar{gap:8px}.tc-game-boost-slot{flex-basis:140px}.tc-game-toolbar .lux-active-boosts{gap:6px}.tc-game-toolbar .lux-active-boost{flex-wrap:wrap;gap:5px;min-height:36px}html body .drop_down_header{padding:8px;min-height:36px}html body .drop_down_header_image{gap:5px}html body .drop_down_header_image img{width:18px;height:18px}html body .user_balance{font-size:12px!important}html body #nav_mobile_wallet{width:32px;min-width:32px;height:36px;margin:0;padding:0;display:flex;align-items:center;justify-content:center}}
@media(max-width:360px){html body .nav_container_wrapper_left_logo img,body.stake-auth .nav_container_wrapper_left_logo img{width:74px!important}html body .nav_container{gap:6px}html body .nav_container_wrapper_left{gap:4px}.tc-games-toggle{width:32px}html body .drop_down_header{padding-inline:6px}}
/* Legacy controls: a single field surface, shared alignment and room for units. */
html body .tc-control-panel .game_bet_amount_container{height:48px;min-height:48px;display:flex;align-items:center;padding:0;border:1px solid var(--ui-p-355166,#355166);border-radius:calc(8px * var(--ui-radius-scale,1));background:var(--ui-p-102735,#102735)}
html body .tc-control-panel .game_bet_amount_container input{min-width:0;width:0!important;flex:1;height:46px!important;padding:0 10px!important;background:transparent!important;border:0!important;box-shadow:none!important;font-size:14px;text-align:left}
html body .tc-control-panel .game_bet_amount_container img{width:22px!important;height:22px!important;object-fit:contain;margin-left:12px;flex:none}
html body .tc-control-panel .game_bet_amount_container button{height:46px!important;min-width:40px;border:0;border-left:1px solid var(--ui-p-355166,#355166);border-radius:0;margin:0;padding:0 10px;background:var(--ui-p-294556,#294556)}
html body .tc-control-panel .game_action_bar_2{display:flex;gap:12px;padding:0;background:transparent;border:0;align-items:stretch}
html body .tc-control-panel .game_action_bar_2>div{min-width:0;flex:1;background:transparent;padding:0}
html body .tc-control-panel .game_action_bar_2 .label{display:block;margin:0 0 8px;font-size:11px;line-height:16px;color:var(--ui-p-a6bfce,#a6bfce);text-align:left}
html body .tc-control-panel .game_action_bar_2 .input_wrapper{display:flex;align-items:center;gap:8px;height:48px;min-width:0!important;padding:0 12px;border:1px solid var(--ui-p-355166,#355166);border-radius:calc(8px * var(--ui-radius-scale,1));background:var(--ui-p-102735,#102735)}
html body .tc-control-panel .game_action_bar_2 input{flex:1;min-width:0;width:0!important;height:100%;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:var(--ui-p-e7f2f9,#e7f2f9);text-align:right;font-size:13px;font-variant-numeric:tabular-nums}
html body .tc-control-panel .game_action_bar_2 .input_wrapper>span{flex:none;font-size:12px;color:var(--ui-p-a8bfcd,#a8bfcd)}
@media(max-width:760px){html body .gamebox_container.tc-game-workspace>[id$="_gameboard"]{grid-row:1!important}html body .gamebox_container.tc-game-workspace>.tc-control-panel{grid-row:2!important}}
html body .tc-control-panel .game_bet_amount_input{display:flex;align-items:center;flex:1;min-width:0;height:46px;padding:0;background:transparent;border:0}
html body .tc-control-panel .game_bet_amount_currency{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:46px;background:transparent;border:0;padding:0}
html body .tc-control-panel .game_bet_amount_currency img{margin:0}
html body .tc-control-panel .game_bet_amount_input_container{display:flex;flex:1;min-width:0;height:46px;background:transparent;border:0;padding:0}
@media(max-width:640px){html body .nav_top .nav_container_wrapper_left>a,html body .nav_top .nav_container_wrapper_left_logo{display:block!important}html body .nav_top .nav_container_wrapper_left_logo img{min-width:0;max-width:none}html body .nav_top .nav_container_wrapper_middle #nav_wallet{display:none}html body .nav_top .nav_container_wrapper_middle #nav_mobile_wallet{display:flex;width:32px;min-width:32px;height:36px}html body .nav_top .nav_container_wrapper_middle{gap:0}html body .nav_top .drop_down_header{height:36px;min-height:36px}html body .nav_top .tc-menu-button{height:36px}}
@media(max-width:640px){html body .nav_top .nav_container_wrapper_middle .select_bar_drop_down{width:auto;min-width:0;flex:1}html body .nav_top .drop_down_header_image{padding:0;width:auto;min-width:0;justify-content:flex-start}html body .nav_top .drop_down_header_image .user_balance{width:auto;min-width:0;margin:0;overflow:visible;flex:none;font-size:11px!important;letter-spacing:-.3px}html body .nav_top .drop_down_header_image img{flex:none}html body .nav_top .nav_container_wrapper_middle{flex:0 0 auto}html body .nav_top .drop_down_header{max-width:none;width:auto}html body .nav_top #nav_mobile_wallet{border-radius:0 calc(6px * var(--ui-radius-scale,1)) calc(6px * var(--ui-radius-scale,1)) 0}}
html body .nav_top .amount_change{right:0;left:auto;max-width:100%;pointer-events:none}
html body .tc-control-panel .game_info_bar{height:auto;min-height:40px;display:grid;grid-template-columns:1fr;gap:10px;padding:12px;border-radius:calc(8px * var(--ui-radius-scale,1))}
html body .tc-control-panel .game_info_bar>div{position:static;display:flex;align-items:center;gap:8px;min-width:0;min-height:20px;margin:0;padding:0;font-size:12px;line-height:20px;flex-wrap:wrap}
html body .tc-control-panel .game_info_bar .outcomes{gap:16px}
html body .tc-control-panel .game_info_bar .outcomes>div{display:flex;align-items:center;gap:6px}
html body .tc-control-panel .game_info_bar img{width:18px;height:18px}
html body .tc-control-panel .game_info_bar #next_multiplier{margin-left:auto}
html body .tc-control-panel .game_info_bar #next_payout{margin-left:auto;font-variant-numeric:tabular-nums}
html.ft-dark body .tc-studio-shell :is(.ft-egg-amount,.ft-bc-amount,.ft-gems-amount,.ft-poker-amount){display:flex;align-items:center;gap:0;min-width:0;width:100%;height:48px;padding:0;border:1px solid var(--ui-p-355166,#355166);border-radius:calc(8px * var(--ui-radius-scale,1));background:var(--ui-p-102735,#102735);overflow:hidden}
html.ft-dark body .tc-studio-shell :is(.ft-egg-amount,.ft-bc-amount,.ft-gems-amount,.ft-poker-amount)>:is(.ft-egg-group,.ft-bc-group,.ft-gems-group,.ft-poker-group){display:flex;align-items:center;flex:1;min-width:0;gap:8px;padding:0 10px!important;border:0!important;border-radius:0;background:transparent!important;height:46px}
html.ft-dark body .tc-studio-shell :is(.ft-egg-amount,.ft-bc-amount,.ft-gems-amount,.ft-poker-amount) input{width:0!important;min-width:0;flex:1;border:0!important;box-shadow:none!important;background:transparent!important;height:46px;padding:0!important;font:600 12px Inter,Arial,sans-serif}
html.ft-dark body .tc-studio-shell :is(.ft-egg-amount,.ft-bc-amount,.ft-gems-amount,.ft-poker-amount) img{width:20px;height:20px;flex:none}
html.ft-dark body .tc-studio-shell :is(.ft-egg-amount,.ft-bc-amount,.ft-gems-amount,.ft-poker-amount)>button{width:36px;min-width:36px;height:46px;margin:0;padding:0;border:0!important;border-left:1px solid var(--ui-p-355166,#355166)!important;border-radius:0!important;background:var(--ui-p-294556,#294556)!important;color:var(--ui-p-d8e9f4,#d8e9f4)!important;box-shadow:none!important;font-size:12px}
html.ft-dark body .tc-studio-shell .ft-egg-box{padding:12px;min-width:0}
html.ft-dark body .tc-studio-shell .ft-egg-field{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0;margin:0}
html.ft-dark body .tc-studio-shell .ft-egg-field>span:first-child{font-size:11px;color:var(--ui-p-a6bfce,#a6bfce)}
html.ft-dark body .tc-studio-shell .ft-egg-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:space-between;padding:0}
html.ft-dark body .tc-studio-shell .ft-egg-actions button{flex:1;height:48px;font-size:12px}
html.ft-dark body .tc-studio-shell .ft-egg-auto{display:flex;align-items:center;gap:6px;font-size:12px;margin:0}
html.ft-dark body .tc-studio-shell input[type=checkbox]{accent-color:var(--ui-success,#b7f76b);width:16px;height:16px;margin:0}
html.ft-dark body .tc-studio-shell [hidden]{display:none!important}
html body .tc-control-panel .game_bet_amount_currency img{min-width:22px!important;max-width:22px!important;min-height:22px!important;max-height:22px!important}
html body .gamebox_container.tc-game-workspace .result_wrapper:empty{display:none}
html.ft-dark body .tc-studio-shell :is(.ft-egg-amount,.ft-bc-amount,.ft-gems-amount,.ft-poker-amount)>:is(.ft-egg-group,.ft-bc-group,.ft-gems-group,.ft-poker-group){background:transparent!important}
html body .game_page_header_wrap{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
html body .game_page_header_wrap>.game_page_header{width:auto;flex:1;min-width:150px;padding:12px 0;margin:0}
html body .game_page_header_wrap>.tc-game-toolbar{padding:0;min-height:40px;max-width:100%;flex:0 1 auto}
.tc-game-boost-slot:empty{display:none}
html body .game_page_header_wrap:has(.lux-active-boost)>.tc-game-toolbar{flex-wrap:wrap}
@media(max-width:360px){html body .game_page_header_wrap{gap:8px}html body .game_page_header_wrap>.game_page_header{min-width:145px}.tc-game-tools{gap:6px}.tc-game-tools button{width:36px;height:36px}}
html.ft-dark body .tc-studio-shell .tc-import-layout{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
html.ft-dark body .tc-studio-shell #poker_game .ft-poker-board{display:flex;align-items:center;justify-content:center;gap:10px;padding:24px 16px;background:var(--ui-board-skin-background,radial-gradient(ellipse,var(--ui-p-285343,#285343),var(--ui-p-122e2b,#122e2b)))!important;min-height:350px;border-radius:calc(12px * var(--ui-radius-scale,1))}
html.ft-dark body .tc-studio-shell #poker_game .ft-poker-card{width:min(80px,18%);height:auto;aspect-ratio:80/126;margin:0;flex:0 1 80px}
html.ft-dark body .tc-studio-shell #poker_game .ft-poker-hand{height:auto;min-height:32px;white-space:normal;text-align:left;font-size:10px;padding:6px;line-height:14px}
html.ft-dark body .tc-studio-shell #poker_game .ft-poker-hand span{white-space:normal;overflow:visible}
html.ft-dark body .tc-studio-shell #poker_game .ft-poker-pay-row{grid-template-columns:minmax(0,1fr) 66px;gap:6px}
html.ft-dark body .tc-studio-shell #poker_game .ft-poker-stake{order:-3;width:100%;margin:0}
html.ft-dark body .tc-studio-shell #poker_game .ft-poker-actions{order:-2;margin:0}
html.ft-dark body .tc-studio-shell #poker_game .ft-poker-actions button{width:100%;margin:0}
html.ft-dark body .tc-studio-shell #poker_game .ft-poker-combo{display:flex;gap:0;height:48px;overflow:hidden;border:1px solid var(--ui-p-355166,#355166);border-radius:calc(8px * var(--ui-radius-scale,1));background:var(--ui-p-102735,#102735)}
html.ft-dark body .tc-studio-shell #poker_game .ft-poker-boxin{display:flex;align-items:center;gap:8px;flex:1;min-width:0;padding:0 10px;background:transparent!important;border:0!important}
html.ft-dark body .tc-studio-shell #poker_game .ft-poker-boxin input{flex:1;min-width:0;width:0;padding:0;border:0!important;box-shadow:none!important;background:transparent!important;font-size:12px}
html.ft-dark body .tc-studio-shell #poker_game .ft-poker-combo>button{width:36px;min-width:36px;height:46px;margin:0;padding:0;border:0;border-left:1px solid var(--ui-p-355166,#355166);border-radius:0;background:var(--ui-p-294556,#294556)!important;color:var(--ui-p-d8e9f4,#d8e9f4)!important}
@media(max-width:760px){html.ft-dark body .tc-studio-shell #poker_game .ft-poker-board{min-height:230px;padding:16px 8px;gap:6px}}
