/* Recorded reference structure with the Bink premium material palette.
   Desktop reference: 340px navigation / 38px gap / 492px content. */
.overlay{padding:98px 105px 36px 24px;backdrop-filter:none;background:#000a;align-items:flex-start}
.modal-layout{display:grid;width:870px;max-width:calc(100vw - 130px);grid-template-columns:340px minmax(0,492px);gap:38px;align-items:start;position:relative;margin:0 auto}
.modal-nav{display:block;width:100%;padding:18px;border-radius:12px}
.modal-nav button{display:flex;width:100%;justify-content:flex-start;align-items:center;gap:28px;padding:18px 20px;min-height:62px;font-size:15px;white-space:normal;text-align:left;border-radius:7px;margin:0}
.modal-nav svg{width:27px;height:27px;flex-shrink:0}
.modal-content{width:100%;border-radius:12px;min-width:0}
.close-modal{left:calc(100% + 38px);right:auto;top:0;width:62px;height:62px;border-radius:10px;font-size:36px}
.panel-section{padding:32px;background:none;border-bottom:2px solid #10161e}
.panel-section+.panel-section{box-shadow:none}.panel-section:last-child{border-bottom:0}
.panel-title{font-size:16px;margin-bottom:24px;line-height:1.9}
.modal-content .field{margin-bottom:25px}.modal-content .field:last-child{margin-bottom:0}
.field label,.field-label{font-size:13px;margin-bottom:10px}
.input-wrap{min-height:55px;padding:4px;border-radius:7px}
.input-wrap .readonly{min-height:44px;font-size:13px;padding:10px 14px}
.primary{min-height:60px;padding:17px 12px;border-radius:7px;font-size:16px}
.secondary,.input-wrap button{border-radius:5px}
.stats{gap:20px}.stats .stat{padding:0;background:none;border:0;border-radius:0;box-shadow:none;font-size:11px}.stat strong{font-size:15px;margin-top:4px}
.league-row{background:none;border:0;border-radius:0;padding:0;gap:65px}
.checkbox-row,.checkbox-row:has(input:checked){background:none;border:0;box-shadow:none;border-radius:0;min-height:35px;padding:6px 0;margin:2px 0;gap:12px}
.checkbox-row input{appearance:auto;width:17px;height:17px;flex:0 0 17px;border-radius:3px}.checkbox-row input::after{content:none}
.seed{background:none;border:0;border-radius:0;padding:0;line-height:1.8}
.green-box{padding:30px 18px;border-radius:9px}.empty-state{padding:32px;background:none}.empty-state h3{font-size:14px}
.table{border-radius:6px}.faq details{background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0}.faq summary{padding:16px 0;background:none;box-shadow:none}.faq p{padding:0}
@media(max-width:1100px){
 .overlay{padding:90px 65px 30px 18px}.modal-layout{width:760px;max-width:calc(100vw - 90px);grid-template-columns:minmax(180px,292px) minmax(0,436px);gap:26px}
 .modal-nav{padding:12px}.modal-nav button{font-size:13px;gap:18px;padding:15px 12px;min-height:54px}.modal-nav svg{width:22px;height:22px}.close-modal{left:calc(100% + 16px);width:44px;height:44px;font-size:29px}.panel-section{padding:26px}
}
/* Mobile structure measured from the two supplied recordings. */
@media(max-width:700px){
 .topbar{height:50px;padding:0 14px;gap:8px}
 .brand{flex:0 0 auto}.brand img{width:49px;height:34px}.brand span{display:none}
 .wallet-bar{position:static;transform:none;margin-left:auto;gap:4px;min-width:0}
 .balance{height:33px;min-width:0;width:132px;padding:3px 6px;border-radius:5px}
 .balance strong{font-size:11px;letter-spacing:0;line-height:1.2}.balance small{font-size:8px;letter-spacing:1px;line-height:1.2}
 .deposit{width:36px;height:33px;min-width:36px;padding:0;border-radius:6px;font-size:0;line-height:1}
 .deposit::after{content:'+';font:400 27px/1 sans-serif}.account-bar{gap:7px}.account-bar #username{display:none}
 .rank-button{display:grid;width:28px;height:32px;background:none;border:0;box-shadow:none}.rank-button .shield{width:22px;height:27px;font-size:20px}
 .menu-button{width:27px;height:32px;border-radius:4px;background:none;box-shadow:none;border:0}.menu-button span{width:18px;height:2px}
 .game-grid{width:calc(100% - 32px);grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 18px;margin:16px auto 0}
 .original-card{border-radius:9px;aspect-ratio:320/421;box-shadow:0 3px 0 #070d15}.original-card .art{width:100%;height:100%}
 .game-card .play-label{display:none}.game-card .badge{font-size:8px;padding:3px 5px;top:7px;left:7px}
 .account-menu{top:50px;left:14px;right:14px;width:auto;padding:9px;border-radius:9px;max-height:calc(100dvh - 66px)}
 .menu-item{min-height:44px;margin:0;padding:10px 12px;font-size:12px;gap:14px;border-radius:5px}.menu-item svg{width:19px;height:19px}
 .overlay{padding:14px 16px max(24px,env(safe-area-inset-bottom));align-items:flex-start;background:#000b;overflow-y:auto;overscroll-behavior:contain}
 .modal-layout{display:grid;width:100%;max-width:460px;grid-template-columns:minmax(0,1fr) 44px;grid-template-rows:46px auto;gap:12px 10px;margin:0 auto;padding:0;align-items:start}
 .modal-nav{grid-column:1;grid-row:1;display:flex;flex-wrap:nowrap;width:100%;height:46px;min-width:0;padding:5px;overflow-x:auto;scrollbar-width:none;border-radius:8px}
 .modal-nav::-webkit-scrollbar{display:none}
 .modal-nav button{flex:1 0 auto;width:auto;min-height:34px;height:34px;padding:7px 9px;margin:0;font-size:11px;letter-spacing:.35px;white-space:nowrap;justify-content:center;border-radius:5px}
 .modal-nav svg{display:none}
 .close-modal{position:static;grid-column:2;grid-row:1;width:44px;height:46px;font-size:28px;border-radius:8px;margin:0;line-height:1}
 .modal-content{grid-column:1/-1;grid-row:2;width:100%;min-width:0;border-radius:9px;overflow:hidden}
 .panel-section{padding:22px 16px}.modal-content .field{margin-bottom:23px}.modal-content .field:last-child{margin-bottom:0}
 .field label,.field-label{font-size:11px;letter-spacing:.4px;margin-bottom:10px;gap:8px}
 .input-wrap{min-height:44px;padding:3px;border-radius:6px}.input-wrap input,.input-wrap select{min-height:34px;padding:8px 10px;font-size:12px}
 .input-wrap .readonly{font-size:12px;min-height:34px;padding:8px 10px}.input-wrap button{min-height:31px;font-size:10px;padding:6px 9px}
 .primary{min-height:53px;padding:15px 10px;font-size:13px;letter-spacing:.5px;border-radius:6px}.secondary{min-height:44px;font-size:12px;padding:12px}
 .panel-title{font-size:13px;line-height:1.6;margin-bottom:23px}.panel-copy{font-size:12px;line-height:1.8}.form-note{font-size:11px;line-height:1.65}
 .subheading{font-size:12px;margin-bottom:13px;letter-spacing:.4px}.segment{gap:3px;padding:4px;margin-bottom:25px}.segment button{padding:9px 5px;font-size:11px;min-height:34px}
 .checkbox-row,.checkbox-row:has(input:checked){min-height:28px;padding:4px 0;font-size:12px;gap:10px}.checkbox-row input{width:18px;height:18px;flex-basis:18px}
 .stats{gap:20px 16px}.stats .stat{font-size:10px}.stat strong{font-size:13px}.league-row{justify-content:space-around;gap:25px}.big-shield{width:70px;height:82px;font-size:42px}.green-box{padding:25px 16px}.green-box strong{font-size:29px}
 .empty-state{padding:28px 16px;min-height:200px}.empty-state h3{font-size:12px}.empty-state p{font-size:11px}
 .table th,.table td{font-size:10px;padding:12px 6px}.faq summary{font-size:12px}
 .chat-button{width:38px;height:40px;right:14px;bottom:max(14px,env(safe-area-inset-bottom));border-radius:7px}.chat-button svg{width:22px;height:22px}
 footer{width:calc(100% - 32px);margin:22px auto 0;padding-bottom:72px;gap:12px}
}
@media(max-width:360px){
 .topbar{padding:0 10px;gap:5px}.brand img{width:42px}.balance{width:118px}.balance strong{font-size:10px}.account-bar{gap:4px}.rank-button{width:23px}
 .game-grid{width:calc(100% - 24px);gap:12px}.overlay{padding:12px}.modal-layout{gap:10px 8px}.modal-nav button{font-size:10px;padding:7px 8px}
}

.mobile-lobby-details{display:none}
@media(max-width:700px){
 .mobile-lobby-details{display:grid;gap:20px;width:calc(100% - 32px);margin:22px auto 0}
 main:has(#game-view:not([hidden])) .mobile-lobby-details{display:none}
 .lobby-activity,.solana-information{background:var(--panel);border:1px solid var(--line);border-radius:9px;box-shadow:var(--panel-shadow);padding:18px 16px}
 .lobby-activity>.segment{margin-bottom:13px}.lobby-activity .segment button{font-size:11px;letter-spacing:.3px}
 .activity-empty{min-height:230px;padding:25px 8px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
 .activity-empty h3{font-size:13px;margin:0}.activity-empty p{font-size:12px;color:var(--muted);margin:0}.activity-empty small{font-size:11px;line-height:1.7;color:var(--muted);max-width:220px}
 .race-emblem{font-size:52px;color:#98b5c7;line-height:1.2}.activity-total{text-align:center;font-size:10px;color:var(--muted);border-top:1px solid var(--line);padding-top:17px}.activity-total strong{color:var(--ink);margin-left:5px}
 .solana-information h2{display:flex;align-items:center;justify-content:center;gap:10px;font-size:25px;letter-spacing:2px;margin:0 0 12px}.solana-information h2 img{width:30px;height:30px}
 .solana-information .network-label{text-align:center;color:#a4eac7;font-size:10px;letter-spacing:.6px;border-block:1px solid var(--line);padding:14px 0}
 .solana-information h3{font-size:13px;margin:24px 0 10px}.solana-information p{font-size:12px;line-height:1.9;color:var(--muted)}.solana-information .secondary{width:100%;margin-top:10px}
}

/* Desktop Originals use one centered game frame and a separate activity panel. */
@media(min-width:1100px){
 main:has(#game-view:not([hidden])){background:#080b10;padding-top:38px}
 #game-view .game-top{display:none}
 #game-view .game-container{width:calc(100% - 64px);max-width:1400px;margin:0 auto;padding:0}
 #game-view .original-frame{height:clamp(620px,40vw,780px);border-radius:14px;background:#252e39}
 main:has(#game-view:not([hidden])) .mobile-lobby-details{display:block;width:calc(100% - 64px);max-width:1400px;margin:36px auto 0}
 main:has(#game-view:not([hidden])) .solana-information{display:none}
 .lobby-activity{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:36px;box-shadow:var(--panel-shadow)}
 .lobby-activity>.segment{margin-bottom:20px}
 .lobby-activity>.segment button{min-height:48px;flex:1}
 .activity-empty{min-height:190px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
 .activity-empty h3,.activity-empty p{margin:0}
 .activity-empty p,.activity-empty small,.activity-total{color:var(--muted)}
 .race-emblem{font-size:40px}.activity-total{text-align:center;font-size:12px;padding-top:20px;border-top:1px solid var(--line)}
}
@media(max-width:1099px){[data-activity="wins"]{display:none}}
