/* Small-screen controls: shared touch sizes, portrait cabinets and compact tables. */
@media(max-width:640px){
 button,a,input,select{touch-action:manipulation}
 input[type=number],input[type=email],input[type=password],input[type=text],select{font-size:16px}
 dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}
 dialog button,.close-dialog{min-height:44px;min-width:44px}
 .game-filters{display:grid;grid-auto-flow:column;grid-template-rows:repeat(2,44px);grid-auto-columns:max-content;overflow-x:auto;padding:3px 2px 9px;scroll-snap-type:x proximity;overscroll-behavior-x:contain}
 .game-filters button{min-height:44px;scroll-snap-align:start;font-size:12px}
 .game-filters:after{content:'';width:8px}
 .card-action{font-size:13px;min-height:38px;display:grid;place-items:center}
 .header .wallet{min-height:44px}.text-button{min-height:44px;font-size:12px}
 .arcade-frame .a-back,.arcade-frame .a-sound{min-height:40px;min-width:40px;font-size:12px;display:grid;place-items:center;top:1%}
 .arcade-frame .a-status{font-size:11px;line-height:1.2}
 .arcade-frame .a-bet{font-size:16px}.arcade-frame .a-win button{min-height:44px;font-size:14px}
 .arcade-frame .a-demo{font-size:10px}.arcade-frame .a-demo button{min-height:32px;font-size:11px}
 .t-frame header{height:8%;font-size:11px}.t-frame header a,.t-frame header button{min-height:40px;min-width:40px;font-size:12px;display:grid;place-items:center}
 .t-frame .t-status{font-size:11px;line-height:1.2}.t-frame .t-console{height:9%;bottom:5.5%}.t-frame .t-console label{font-size:10px}.t-frame .t-bet{font-size:16px}.t-frame .t-play{font-size:16px!important}
 .t-frame footer{height:5%;bottom:.2%}.t-frame footer button{font-size:11px;min-height:30px}.t-frame footer{font-size:9px}
 .t-frame .t-chips{top:80%;height:5.5%}.t-frame .t-chips button{width:40px;height:40px;max-height:none;font-size:12px}
 .t-frame .t-win button{min-height:44px;font-size:14px}.t-frame .t-win small{font-size:11px}
 [data-table=blackjack] .t-picks{top:71%;height:8%}[data-table=blackjack] .t-picks>button{font-size:13px;min-height:44px}
 [data-table=dados] .t-scene{top:20%;height:22%}[data-table=dados] .t-tray{display:none}[data-table=dados] .t-status{top:43%;height:6%}[data-table=dados] .t-picks{top:50%;height:29%;gap:3%}
 .t-dice-ranges{height:27%;gap:3px}.t-dice-exact{height:70%;grid-template-columns:repeat(4,1fr);gap:3px}.t-dice-ranges button,.t-dice-exact button{font-size:11px;line-height:1.1;padding:2px}
 [data-table=real] .t-scene{top:19%;height:25%}[data-table=real] .t-status{top:45%;height:6%}[data-table=real] .t-picks{top:52%;height:27%}.t-outside{height:26%;gap:3px}.t-outside button{font-size:12px}.t-numbers{grid-template-columns:repeat(10,1fr);height:72%;gap:3px}.t-numbers button{font-size:12px}
 .q-frame .q-picks{top:78%;height:9%}.q-frame .q-pick{font-size:12px!important;min-height:44px}.q-frame .q-gain{top:78%;height:9%;font-size:11px}.q-frame .q-gain strong{font-size:17px}.q-door>span{font-size:11px!important}
 .r-picks{height:14%;bottom:4%}.r-picks button{min-height:44px;font-size:12px}
}
@media(max-width:640px) and (orientation:portrait){
 body.pirate-screen:before{display:none!important}
 body.pirate-screen #stage[data-game]{inset:0;transform:none;width:100vw;height:100dvh;aspect-ratio:auto;background-size:auto 100%;border-radius:0}
 body.pirate-screen #stage .game-title{display:grid;place-items:center;position:absolute;left:3%;top:9%;width:94%;height:9%;padding:0;background:#061423e8;border:1px solid #cfad69;border-radius:12px;z-index:2}
 body.pirate-screen #stage .game-title h1{font-size:clamp(19px,6vw,28px);margin:0;text-align:center}body.pirate-screen #stage .game-title:before,body.pirate-screen #stage .game-title:after,body.pirate-screen #stage #game-subtitle{display:none}
 body.pirate-screen #stage .machine{left:3%;top:20%;width:94%;height:32%;border:3px ridge #d9b56b;border-radius:9px;overflow:hidden;background:#041523ef;box-shadow:0 4px 20px #000a}
 body.pirate-screen #stage .result-message{left:3%;top:53%;width:94%;height:6%;font-size:12px;line-height:1.25;padding:4px;display:grid;place-items:center;background:#061423f2;border:1px solid #bc9d64;border-radius:6px}
 body.pirate-screen #stage .balance-meter,body.pirate-screen #stage .prize-meter{top:60%;width:45%;height:8%;padding:5px;background:#061423f2;border:1px solid #cfad69;border-radius:8px}
 body.pirate-screen #stage .balance-meter{left:3%}body.pirate-screen #stage .prize-meter{left:52%}
 body.pirate-screen #stage .meter>span,body.pirate-screen #stage .bet-meter>label{display:block;font-size:11px;letter-spacing:.5px;margin:0;text-align:center}
 body.pirate-screen #stage .meter>strong{font-size:20px;height:auto;line-height:1.2}
 body.pirate-screen #stage .bet-meter{left:3%;top:69%;width:94%;height:9%;display:flex;align-items:center;justify-content:space-around;gap:8px;background:#061423f2;border:1px solid #cfad69;border-radius:8px}
 body.pirate-screen #stage .bet-controls{height:44px;display:flex;gap:6px;align-items:center}body.pirate-screen #stage .bet-controls button{width:44px;height:44px;font-size:24px;background:#204457;border:1px solid #cfad69;border-radius:7px}body.pirate-screen #stage .bet-controls input{width:88px;height:44px;font-size:22px}
 body.pirate-screen #stage #power-panel{left:3%;top:79%;width:94%;height:8%;background:#061423f2;border-radius:8px}body.pirate-screen #stage .power-top{height:100%;display:block}body.pirate-screen #stage #power-options{gap:5px;height:100%}body.pirate-screen #stage #power-options button{font-size:17px;border:1px solid #cfad69;border-radius:7px;background:#153044;min-height:40px}
 body.pirate-screen #stage #effective-stake,body.pirate-screen #stage #risk-message{display:none}
 body.pirate-screen #stage .spin-button{left:26%;top:89%;width:48%;height:9%;min-height:44px;background:linear-gradient(#168b97,#064454);border:3px ridge #f0ce7f;border-radius:14px;box-shadow:0 0 20px #ffd77a44}body.pirate-screen #stage .spin-button span{opacity:1}body.pirate-screen #stage .spin-arrow{display:none}body.pirate-screen #stage #spin-label{font-size:22px;display:block}
 body.pirate-screen #stage .back{left:3%;top:1%;width:26%;height:7%;min-height:40px;color:#fff0b8;font-size:13px;background:#061423eb;border:1px solid #cfad69;border-radius:8px;display:grid;place-items:center}body.pirate-screen #stage .back span{opacity:1}
 body.pirate-screen #stage .game-tools button{top:1%;width:16%;height:7%;min-height:40px;border:1px solid #cfad69;border-radius:8px;background:#061423eb;color:#fff0b8;font-size:12px}body.pirate-screen #stage #sound{left:62%}body.pirate-screen #stage #rules{left:81%}body.pirate-screen #stage #pirate-profile{right:auto;left:32%;top:1%;width:27%;height:7%;min-height:40px;font-size:12px;display:grid;place-items:center;border-radius:8px;background:#061423eb}
 body.pirate-screen #stage #pirate-bonus-dock[hidden]{display:none!important}body.pirate-screen #stage #pirate-bonus-dock .pirate-bonus-help{left:3%;top:89%;width:29%;height:9%;color:#ffe8ac;font-size:12px;background:#061423f2;border:1px solid #cfad69;border-radius:8px}body.pirate-screen #stage[data-game=pirata] .spin-button{left:36%;width:61%}
 body.pirate-screen #stage #win-banner{font-size:14px;padding:16px;width:90%}body.pirate-screen #stage #win-amount{font-size:38px}body.pirate-screen #stage #skip-win{font-size:14px;min-height:44px}body.pirate-screen #stage #win-unit,body.pirate-screen #stage #win-kicker{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.game-card,.game-filters button{transition:none!important}.a-chest-opening-art{animation:none!important}}
@media(max-width:640px) and (orientation:portrait){
 body.pirate-screen #stage #sound,body.pirate-screen #stage #rules{top:1%;width:16%;height:7%;font-size:0}body.pirate-screen #stage #sound:before{content:'♫';font-size:22px;color:#ffe5a5}body.pirate-screen #stage #rules:before{content:'ⓘ';font-size:22px;color:#ffe5a5}
 body.pirate-screen #stage .back{font-size:0}body.pirate-screen #stage .back span{display:none}body.pirate-screen #stage .back:before{content:'‹ SALA';font-size:13px}
 body.pirate-screen #stage .title-rule{display:none}body.pirate-screen #stage .game-title{background:#061423}
 body.pirate-screen #stage .bet-controls button{color:#ffe6ab;flex:0 0 44px}body.pirate-screen #stage .bet-controls input{flex:0 1 88px}
}
@media(max-width:640px){.t-dice-exact{grid-template-rows:repeat(3,minmax(0,1fr))}.t-frame .t-bet{min-height:32px}.t-frame footer button{min-height:32px}.t-frame .t-console{gap:1%}}
@media(max-width:640px){
 .arcade-frame .a-bet{min-height:36px}.arcade-frame .a-minus,.arcade-frame .a-plus{min-height:36px;min-width:36px}.arcade-frame .a-info,.arcade-frame .a-menu,.arcade-frame .a-load,.arcade-frame .a-account{min-height:36px;min-width:36px}
 .r-aim-controls input{min-height:32px}
 [data-table=real] .t-scene{top:18%;height:20%}[data-table=real] .t-status{top:39%;height:6%}[data-table=real] .t-picks{top:46%;height:33%}.t-numbers{grid-template-columns:repeat(8,1fr);grid-template-rows:repeat(5,minmax(0,1fr));height:75%}.t-outside{height:23%}.t-numbers button{font-size:12px}
}
@media(max-width:640px) and (orientation:portrait){body.pirate-screen #stage #power-panel{top:78%;height:8%}body.pirate-screen #stage #effective-stake{display:block;position:absolute;top:100%;left:0;width:100%;font-size:11px;line-height:1.2;margin:1px 0 0;color:#fff0bc;text-align:center;background:#061423}}
@media(max-width:640px){.arcade-frame .a-bet{min-height:36px!important;font-size:16px!important}.arcade-frame .a-minus,.arcade-frame .a-plus,.arcade-frame .a-info,.arcade-frame .a-menu,.arcade-frame .a-load,.arcade-frame .a-account{min-height:36px!important;min-width:36px!important}.t-frame .t-bet{min-height:32px!important}.t-frame footer button{min-height:32px!important}.t-dice-exact{grid-template-rows:repeat(3,minmax(0,1fr))!important}}
@media(max-width:640px) and (orientation:portrait){body.pirate-screen #stage #win-heading{font-size:20px}}
@media(max-width:640px) and (orientation:portrait){body.pirate-screen #stage #effective-stake{clip-path:none;height:auto;overflow:visible;white-space:normal}}
/* A consistent mobile console prevents enlarged hit areas from overlapping. */
@media(max-width:640px) and (orientation:portrait){
 .arcade-frame:after{content:'';position:absolute;inset:80% 0 0;background:linear-gradient(#071824f5,#03101cf9);border-top:2px ridge #d0aa65;z-index:2;pointer-events:none}
 .arcade-frame .a-balance{left:3%!important;top:84%!important;width:25%!important;height:6%!important;font-size:19px;z-index:4;background:#071824}
 .arcade-frame .a-balance:before{content:'SALDO';display:block;position:absolute;top:-14px;left:0;width:100%;font:10px Arial;color:#edcf93}
 .arcade-frame .a-bet{left:43%!important;top:84%!important;width:12%!important;height:36px!important;z-index:4;border-bottom:1px solid #d0aa65;background:#071824!important}
 .arcade-frame .a-minus,.arcade-frame .a-plus{top:84%!important;width:36px!important;height:36px!important;z-index:4;background:#17364b;border:1px solid #d0aa65;border-radius:7px;color:#ffedbc;font-size:24px}
 .arcade-frame .a-minus{left:30%!important}.arcade-frame .a-plus{left:56%!important}.arcade-frame .a-minus:before{content:'−'}.arcade-frame .a-plus:before{content:'+'}.arcade-frame .a-minus:after{content:'APUESTA';position:absolute;bottom:calc(100% + 3px);left:0;width:90px;font:10px Arial;color:#edcf93;text-align:center}
 .arcade-frame .a-action{left:72%!important;top:82%!important;width:25%!important;height:9%!important;z-index:4;border:2px ridge #edc67c;border-radius:12px;background:linear-gradient(#16738b,#073447)}
 .arcade-frame .a-action span{position:static!important;max-width:100%;padding:2px!important;font-size:15px!important;white-space:normal;background:transparent!important;line-height:1.1}
 .arcade-frame .a-info,.arcade-frame .a-load{display:none!important}.arcade-frame .a-menu,.arcade-frame .a-account{top:92%!important;width:36px!important;height:36px!important;z-index:4;background:#17364b;border:1px solid #cfb16f;border-radius:8px;font-size:0}
 .arcade-frame .a-menu{left:3%!important}.arcade-frame .a-account{left:16%!important}.arcade-frame .a-menu:before{content:'ⓘ';font-size:22px;color:#ffe7ab}.arcade-frame .a-account:before{content:'☾';font-size:22px;color:#ffe7ab}
 .arcade-frame .a-demo{left:32%!important;right:2%!important;bottom:1%!important;top:auto!important;width:auto!important;z-index:4}.arcade-frame .a-demo>span{display:none}.arcade-frame .a-demo button{padding:3px;font-size:10px;min-height:32px}
}
@media(max-width:640px) and (orientation:portrait){.r-arena .r-canon{height:43%}}
@media(max-width:640px) and (orientation:portrait){.arcade-frame .a-minus,.arcade-frame .a-plus{font-size:0!important}.arcade-frame .a-minus:before,.arcade-frame .a-plus:before{font-size:24px}.arcade-frame .a-menu:after{display:none}}
@media(max-width:640px) and (orientation:portrait){.arcade-frame .a-status{left:3%!important;top:76%!important;width:94%!important;height:4%!important;z-index:4;font-size:11px!important;line-height:1.15;background:#071824f5}.r-arena .r-canon{height:40%}.arcade-frame .a-action span{font-size:14px!important}}
