/* Cards retain their native artwork and proportions; long data is paged. */
html:has(.loto-viewport),body.loto-viewport{height:100%;margin:0;overflow:hidden}.loto-viewport{height:100dvh!important;display:flex;flex-direction:column;background:#faf5e9!important}.loto-viewport #app{height:100dvh;min-height:0;display:flex;flex-direction:column}.loto-viewport [hidden],.loto-viewport [data-loto-out]{display:none!important}.loto-viewport .navbar{flex:0 0 46px;min-height:46px;padding:4px 10px}.loto-viewport .navbar>.container{max-width:1400px;padding:0;flex-wrap:nowrap;gap:7px}.loto-viewport .navbar-brand{font-size:20px;margin:0}.loto-viewport .navbar .btn{font-size:12px;padding:5px 9px;min-height:32px;white-space:nowrap}.loto-viewport .loto-nav-actions{gap:5px!important}.loto-viewport #playerStats,.loto-viewport #version{display:none}.loto-viewport .dropdown-menu{min-width:124px;font-size:13px;right:0;left:auto;max-height:none;overflow:visible}.loto-viewport .dropdown-item{padding:6px 12px}.loto-viewport.loto-shared-account #authArea{display:none!important}.loto-viewport .ig-account-link-header{position:static!important;width:32px;height:32px;min-height:32px;padding:4px;justify-content:center}.loto-viewport .ig-account-link-header>span{display:none}.loto-viewport .ig-account-link-header>span[aria-hidden]{display:block}.loto-viewport .igrodvor-home-link{font-size:19px!important;min-height:30px!important;gap:6px!important}.loto-viewport .igrodvor-home-icon{width:27px!important;height:27px!important;flex-basis:27px!important}.loto-viewport>.container,.loto-viewport #app>.container{max-width:1400px;width:100%}.loto-viewport .loto-menu{flex:1;min-height:0;margin:0!important;padding:12px 16px;display:flex;flex-direction:column;gap:8px;overflow:visible!important}.loto-menu>header{margin:0!important}.loto-menu h1{font-size:24px!important;margin:0!important;line-height:1.25}.loto-tabs{display:flex;flex-shrink:0;gap:7px}.loto-tabs button{flex:1;border:1px solid #d4bc93;border-bottom:3px solid #bb9b69;border-radius:12px;background:#fff8e8;padding:6px 8px;font-size:14px;font-weight:800;min-height:36px;color:#685337}.loto-tabs button[aria-pressed=true]{background:#f7d26e;color:#48361c}.loto-menu-pane{margin:0!important;width:100%!important;flex:1;min-height:0;max-width:900px;align-self:center;padding:0!important}.loto-menu-pane .card{border-radius:16px;box-shadow:0 4px 0 #dbc6a1!important;border:1px solid #d8bf94;height:100%}.loto-menu-pane .card-body{padding:17px;display:flex;flex-direction:column;justify-content:center}.loto-menu-pane .card-title{font-size:21px;margin-bottom:15px}.loto-menu-pane .form-label{font-size:13px;margin:0 0 5px}.loto-menu-pane .form-control,.loto-menu-pane .form-select{min-height:36px;font-size:15px;padding:6px 10px}.loto-menu-pane .btn{min-height:36px;font-size:14px}.loto-menu-pane form{--bs-gutter-y:9px;margin-top:0}.loto-menu-pane form>.col-12{margin-top:8px}.loto-menu-pane .form-text{font-size:12px;overflow-wrap:anywhere}.loto-rooms-pane{display:flex;flex-direction:column;gap:6px}.loto-rooms-pane>div:first-child{flex-shrink:0;margin:0!important}.loto-rooms-pane h5{font-size:19px}.loto-room-table{flex:1;min-height:0;position:relative;display:flex;flex-direction:column;padding-bottom:38px}.loto-room-rows{flex:1;min-height:0;overflow:visible!important}.loto-viewport table{table-layout:fixed;font-size:13px;width:100%;}.loto-viewport th,.loto-viewport td{padding:6px;overflow-wrap:anywhere}.loto-viewport th:first-child{width:17%}.loto-viewport th:nth-child(3){width:18%}.loto-viewport th:last-child{width:25%}.loto-viewport tbody{height:100%}.loto-room-table .loto-pages{position:absolute;bottom:4px;left:0;right:0}.loto-pages{display:flex;flex:0 0 30px;justify-content:center;align-items:center;gap:12px;margin:4px 0 0;min-height:30px}.loto-pages button{border:1px solid #c8ac81;border-radius:9px;border-bottom:3px solid #b08d5a;background:#fff3d3;min-height:28px;min-width:36px;font-size:20px;line-height:1;color:#6b5232}.loto-pages button:disabled{opacity:.35}.loto-pages span{font-size:12px;min-width:45px;text-align:center}.loto-pages.single{visibility:hidden}.loto-viewport>footer,.loto-viewport #app>footer{display:none}.loto-viewport #notice:empty{display:none}.loto-viewport #notice{flex-shrink:0;margin:0!important;padding:5px 10px;font-size:12px;line-height:1.3}.loto-viewport .loading{flex:1;min-height:0;padding:12px;display:flex;flex-direction:column;justify-content:center;align-items:center}.loto-viewport .loading h1{font-size:20px}.loto-viewport .loading p{font-size:13px}.loto-viewport #loadingMessage{max-width:90%;overflow-wrap:anywhere}.loto-viewport dialog:is(#info,#lotoAbout){width:min(650px,calc(100vw - 20px));height:min(640px,calc(100dvh - 20px));max-height:calc(100dvh - 20px);padding:16px;border:2px solid #cdb58c;border-bottom:5px solid #b79564;border-radius:20px;overflow:visible}.loto-viewport dialog:is(#info,#lotoAbout)[open]{display:flex;flex-direction:column;gap:8px}.loto-viewport dialog:is(#info,#lotoAbout)>header,.loto-viewport dialog:is(#info,#lotoAbout)>.d-flex{flex-shrink:0;display:flex;justify-content:space-between;align-items:center;gap:8px}.loto-viewport dialog:is(#info,#lotoAbout) h2{font-size:23px;margin:0}.loto-viewport dialog:is(#info,#lotoAbout) header button{border:0;border-radius:50%;width:32px;height:32px;background:#f3e8d6;font-size:23px}.loto-about-body{flex:1;min-height:0;margin:0!important;font-size:14px;line-height:1.55;overflow:visible}.loto-about-body>h3{font-size:20px}.loto-about-body p{margin:0 0 12px;overflow-wrap:anywhere}.loto-about-body footer{display:block}.loto-viewport :is(#registerModal,#loginModal,#winModal).modal{overflow:visible!important;padding:0!important}.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-dialog{height:calc(100dvh - 20px);max-height:640px;width:min(620px,calc(100vw - 20px));max-width:none;margin:10px auto;display:flex;align-items:center}.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-content{height:100%;max-height:100%;border-radius:18px}.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-header,.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-footer{flex-shrink:0;padding:10px 14px}.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-title{font-size:21px}.loto-viewport .loto-modal-body{flex:1;min-height:0;padding:12px 16px;overflow:visible;font-size:14px}.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-content>.loto-pages{flex-shrink:0;margin:3px 0}.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-footer .btn{font-size:13px;padding:6px 10px}.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-body label{font-size:13px}.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-body input{font-size:14px;min-height:34px}.loto-game{flex:1;min-height:0;position:relative;margin:0!important;padding:8px 12px!important;display:flex;flex-direction:column;gap:5px;overflow:visible!important}.loto-game>h1{display:none}.loto-game #gameStatus{margin:0!important;flex-shrink:0;font-size:12px!important}.loto-game-grid{flex:1;min-height:0;display:grid!important;grid-template-columns:260px minmax(0,1fr);gap:12px;--bs-gutter-x:0;--bs-gutter-y:0;margin:0!important}.loto-game-grid>section,.loto-game-grid>aside{width:auto!important;min-height:0;padding:0}.loto-game-grid .card,.loto-game-grid .card-body{height:100%;min-height:0}.loto-own-body{display:flex;flex-direction:column;padding:10px!important;gap:7px}.loto-own-body>.d-flex:first-child{margin:0!important;flex-shrink:0;gap:7px}.loto-own-body h5{font-size:17px}.loto-own-body #meName,.loto-own-body #playerLabel{font-size:12px;overflow-wrap:anywhere}.loto-card-stage{flex:1;min-height:0;display:flex!important;align-items:center;gap:12px;justify-content:center!important}.loto-card-stage .board-wrap{padding:5px;border-radius:10px;flex-shrink:0}.loto-card-stage .card-number{font-size:11px;padding:2px;margin:2px 0 0;line-height:1.2}.loto-history{width:112px;min-width:112px;height:100%;min-height:0;display:flex;flex-direction:column;padding:7px;border-radius:12px;background:#f9ead0;border:1px solid #dac09a;gap:3px}.loto-history h6{font-size:12px;text-align:center;margin:0;flex-shrink:0}.loto-latest{font-size:22px;text-align:center;color:#a75323;flex-shrink:0;line-height:1.2}.loto-history .barrel-row{flex:1;min-height:0;overflow:visible!important;width:100%!important;max-height:none!important;display:flex;align-content:flex-start;gap:4px;justify-content:center;margin:0!important}.loto-history .barrel-row>.chip{--cell:40px;padding:2px;flex-shrink:0}.loto-history .loto-pages{gap:4px}.loto-history .loto-pages button{min-width:25px;font-size:18px}.loto-history .loto-pages span{font-size:10px;min-width:30px}.loto-other-panel>.card>.card-body{display:flex;flex-direction:column;gap:5px;overflow:visible!important;padding:10px}.loto-other-panel h6{font-size:15px;flex-shrink:0}.loto-viewport #playersCollapse{display:flex!important;flex:1;min-height:0;flex-direction:column;max-height:none;overflow:visible!important}.loto-viewport #others{flex:1;min-height:0;max-height:none;overflow:visible!important;gap:7px!important}.loto-viewport #others>div{padding:5px!important;max-width:100%;overflow-wrap:anywhere;font-size:12px}.loto-viewport #others .card-board{width:180px;max-width:100%}.loto-players-toggle{display:none!important;min-height:30px;align-self:flex-end;margin:0!important;font-size:12px;padding:4px 8px;flex-shrink:0}.loto-viewport .tie-timer{font-size:13px;padding:4px;margin:0;flex-shrink:0}.loto-viewport #roomInfo,.loto-viewport #roomLabel{font-size:11px;max-width:140px;overflow-wrap:anywhere}.loto-viewport #pause{font-size:14px}.loto-viewport .pause-overlay p{font-size:12px}
@media(max-width:899px),(max-height:499px){.loto-game-grid{grid-template-columns:minmax(0,1fr)}.loto-other-panel{display:none}.loto-players-toggle{display:block!important}.loto-show-others .loto-other-panel{display:block}.loto-show-others .loto-own-panel{display:none}.loto-viewport #others{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:6px!important}.loto-viewport #others>div{display:flex;flex-direction:column;align-items:center}.loto-other-panel h6{display:none}.loto-other-panel>.card>.card-body{padding:7px}.loto-viewport .igrodvor-home-name{display:none!important}.loto-viewport .igrodvor-home-link{width:28px;min-width:28px}.loto-viewport .navbar-brand{font-size:18px}.loto-viewport .navbar .btn{font-size:11px;padding:4px 6px;min-height:30px}.loto-viewport #roomInfo,.loto-viewport #roomLabel{max-width:90px}}
@media(max-width:499px) and (orientation:portrait){.loto-viewport .navbar{padding:4px 7px;gap:4px}.loto-viewport .navbar>.container{gap:4px}.loto-viewport .loto-nav-actions{gap:4px!important}.loto-menu h1{font-size:21px!important}.loto-viewport .loto-menu{padding:10px;gap:8px}.loto-menu-pane .card-body{padding:15px}.loto-menu-pane .card-title{font-size:19px}.loto-tabs button{font-size:12px;padding:6px 4px}.loto-card-stage{flex-direction:column;gap:8px}.loto-history{width:100%;min-width:0;flex:1;min-height:95px;padding:6px;display:grid;grid-template-columns:65px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)30px;column-gap:7px}.loto-history h6{grid-column:1;grid-row:1}.loto-latest{grid-column:1;grid-row:2;font-size:29px;align-self:center}.loto-history .barrel-row{grid-column:2;grid-row:1/3;height:100%}.loto-history .loto-pages{grid-column:1/-1;grid-row:3;margin:0}.loto-own-body{padding:8px!important}.loto-viewport #others{grid-template-columns:minmax(0,1fr)}.loto-game{padding:6px!important}.loto-viewport dialog:is(#info,#lotoAbout){padding:12px}.loto-viewport #roomInfo,.loto-viewport #roomLabel{display:none!important}}
@media(max-height:360px){.loto-viewport .navbar{flex-basis:40px;min-height:40px;padding:3px 8px}.loto-viewport .loto-menu{padding:6px 12px;gap:5px}.loto-menu h1{font-size:19px!important}.loto-tabs button{font-size:12px;min-height:29px;padding:3px 6px}.loto-menu-pane .card-body{padding:9px 13px}.loto-menu-pane .card-title{font-size:17px;margin-bottom:7px}.loto-menu-pane form{display:grid;grid-template-columns:1fr 1fr;gap:6px;--bs-gutter-x:0;--bs-gutter-y:0}.loto-menu-pane form>.col-12{width:auto;padding:0;margin:0}.loto-menu-pane form>.col-12:has(button){grid-column:1/-1}.loto-menu-pane .form-label{font-size:11px;margin-bottom:3px}.loto-menu-pane .form-control,.loto-menu-pane .form-select{min-height:31px;font-size:13px;padding:4px 7px}.loto-menu-pane .btn{min-height:31px;font-size:12px;padding:4px 8px}.loto-menu-pane .form-text{margin:3px 0!important;font-size:11px}.loto-viewport th,.loto-viewport td{font-size:11px;padding:4px}.loto-rooms-pane h5{font-size:16px}.loto-viewport dialog:is(#info,#lotoAbout){padding:10px 13px;gap:5px}.loto-viewport dialog:is(#info,#lotoAbout) h2,.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-title{font-size:19px}.loto-about-body{font-size:13px;line-height:1.4}.loto-about-body p{margin-bottom:8px}.loto-about-body h3{font-size:17px}.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-header,.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-footer{padding:7px 12px}.loto-viewport .loto-modal-body{padding:8px 12px;font-size:13px}.loto-viewport :is(#registerModal,#loginModal,#winModal) .modal-body .form-label{font-size:12px}.loto-game{padding:4px 8px!important;gap:3px}.loto-own-body{padding:5px!important;gap:3px}.loto-own-body h5{font-size:14px}.loto-own-body #playerLabel,.loto-own-body #meName{font-size:11px}.loto-history{padding:4px;gap:1px}.loto-history h6{font-size:11px}.loto-latest{font-size:20px}.loto-players-toggle{font-size:11px;min-height:26px;padding:3px 7px}.loto-viewport .tie-timer{font-size:11px;padding:2px}.loto-viewport #others .card-board{--cell:18px!important;width:162px}.loto-viewport #others>div{font-size:11px;padding:3px!important}}
.loto-room-rows table{height:100%;display:flex;flex-direction:column}.loto-room-rows thead{display:table;table-layout:fixed;width:100%;flex-shrink:0}.loto-room-rows tbody{display:block;min-height:0;flex:1}.loto-room-rows tbody>tr{display:table;table-layout:fixed;width:100%}.loto-room-rows td:first-child{width:17%}.loto-room-rows td:nth-child(3){width:18%}.loto-room-rows td:last-child{width:25%}.loto-help{flex:1;min-height:0;display:flex;flex-direction:column;padding:14px;margin:0!important;gap:8px}.loto-help>h1{font-size:23px;margin:0!important}.loto-help>[data-i18n=rules_html]{flex:1;min-height:0;font-size:14px;line-height:1.5}.loto-help p{margin-bottom:10px}
/* Override the legacy phone intrinsic-height rule: the board owns the remaining frame. */
.loto-viewport #game-table{flex:1;min-height:0}.loto-viewport #game{margin:0!important}.loto-viewport #others .card-board{flex-shrink:0}
/* A bounded server-rendered shell while the layout module is downloading. */
.loto-startup{display:none}.loto-viewport:not(.loto-ready) .loto-startup{position:fixed;inset:46px 0 0;z-index:20;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:#faf5e9;color:#6b5232}.loto-startup strong{font-size:24px}.loto-startup a{display:grid;place-items:center;width:42px;height:36px;border:1px solid #c8ac81;border-radius:10px;background:#fff3d3;color:#6b5232;text-decoration:none;font-size:24px}.loto-startup-spinner{width:26px;height:26px;border:3px solid #e5d3b4;border-top-color:#bd8c45;border-radius:50%;animation:loto-startup-spin 1s linear infinite}@keyframes loto-startup-spin{to{transform:rotate(360deg)}}.loto-viewport:not(.loto-ready) main{position:absolute!important;inset:46px 0 0!important;width:100%;height:calc(100dvh - 46px);max-height:calc(100dvh - 46px);visibility:hidden}.loto-viewport:not(.loto-ready) #loading{visibility:hidden}
/* Inactive, hidden skeleton must not enlarge the document before the module is ready. */
.loto-viewport:not(.loto-ready) main{margin:0!important;contain:strict;overflow:clip}
/* Keep every locale in one header row. Room identity belongs to the game HUD. */
.loto-viewport .navbar>.container>.loto-nav-actions{width:auto!important;margin-left:auto!important;flex-wrap:nowrap!important}.loto-game-bar{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:8px;min-height:26px}.loto-room-copy{display:flex;flex-direction:column;min-width:0;gap:1px}.loto-viewport .loto-game-bar #roomInfo,.loto-viewport .loto-game-bar #roomLabel{display:block!important;max-width:none;font-size:12px;line-height:1.25;overflow-wrap:anywhere}.loto-round-state,.loto-viewport .loto-game-bar #gameStatus{display:block!important;font-size:11px!important;line-height:1.25;margin:0!important;overflow-wrap:anywhere}.loto-round-state:empty,.loto-viewport .loto-game-bar #gameStatus:empty{display:none!important}.loto-game-bar .loto-players-toggle{align-self:center}.loto-viewport .loto-game-bar #roomLabel[hidden]{display:none!important}
@media(max-width:499px){.loto-viewport .navbar #help,.loto-viewport .navbar a[href="/loto/help.html"]{font-size:0!important;width:30px;min-width:30px;height:30px;padding:0;display:grid;place-items:center}.loto-viewport .navbar #help:before,.loto-viewport .navbar a[href="/loto/help.html"]:before{content:'ⓘ';font-size:20px;line-height:1}.loto-viewport .navbar .dropdown-toggle{max-width:44px;min-width:36px;padding-inline:5px}.loto-viewport .navbar #sound,.loto-viewport .navbar #soundToggle{width:30px;min-width:30px;padding:2px}.loto-viewport .loto-nav-actions{gap:4px!important}.loto-viewport .navbar .btn{white-space:nowrap}.loto-game-bar{min-height:28px}}

:root{--igrodvor-loto-viewport-ready:1}
