:root{color:#e8e8e8;background-color:#12181b;font-family:Segoe UI,system-ui,sans-serif;line-height:1.5}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{min-height:100dvh;margin:0;overflow-x:hidden}#root{min-height:100vh}input,button{font:inherit}input{color:#fff;background:#1a2428;border:1px solid #ffffff26;border-radius:6px;width:100%;margin-bottom:.75rem;padding:.65rem .85rem}@media (width<=768px){input,select,textarea{font-size:16px}button{touch-action:manipulation}}input:focus{outline:2px solid #02718d}a{color:#1af4fc}.bingo-board-wrap{justify-content:center;align-items:center;width:100%;padding:1rem;display:flex}.bingo-container{aspect-ratio:1;background-color:#161616;border-radius:10px;grid-template-rows:auto repeat(5,1fr);grid-template-columns:repeat(5,1fr);gap:.35rem;width:min(100%,500px);padding:clamp(12px,3vw,30px);display:grid;box-shadow:0 0 80px #0c2d6b,0 0 120px #0c2d6b59}.bingo_title{aspect-ratio:1;color:#fff;-webkit-user-select:none;user-select:none;background-color:#02718d;border:1px solid #02718d;border-radius:5px;justify-content:center;align-items:center;margin:0;font-size:clamp(1.25rem,5vw,2.5rem);font-weight:700;transition:background-color .2s,color .2s;display:flex}.bingo_title.bingo-lit{color:#000;background-color:#00fd00;border-color:#00fd00}.bingo-cell{aspect-ratio:1;color:#000;cursor:default;-webkit-tap-highlight-color:transparent;background-color:#fff;border:none;border-radius:5px;justify-content:center;place-self:center;align-items:center;width:100%;max-width:100%;max-height:100%;margin:0;padding:0;font-size:clamp(1rem,4.5vw,2.5rem);font-weight:700;display:flex;position:relative}.bingo-cell.callable{cursor:pointer}.bingo-cell.empty{background-color:#fff}.bingo-cell.setup-fillable{cursor:pointer}.bingo-cell.setup-fillable:hover,.bingo-cell.callable:hover{background:linear-gradient(90deg,#1af4fc94,#33f7ed)}.bingo-cell.marked{cursor:default;background-color:#ff0}.bingo-cell.line-win{color:#fff;background-color:red}.bingo-num{z-index:1;line-height:1;position:relative}.bingo-cell.marked .bingo-num{color:#000}.bingo-cell.line-win .bingo-num{color:#fff}.bingo-strike{z-index:2;pointer-events:none;border-radius:5px;position:absolute;inset:0}.bingo-strike:before{content:"";background:#000;height:clamp(2px,.4vw,5px);position:absolute;top:50%;left:-15%;right:-15%;transform:translateY(-50%)rotate(-45deg)}.bingo-cell.line-win .bingo-strike:before{background:#fff}@media (width<=768px){.bingo-board-wrap{box-sizing:border-box;isolation:isolate;flex-shrink:0;width:100%;max-width:100%;padding:.25rem 0}.bingo-container{aspect-ratio:1;box-sizing:border-box;grid-template-rows:auto repeat(5,minmax(0,1fr));grid-template-columns:repeat(5,minmax(0,1fr));gap:clamp(2px,.8vw,6px);width:100%;max-width:100%;min-height:0;margin:0 auto;padding:clamp(6px,2vw,12px);overflow:hidden;box-shadow:0 0 40px #0c2d6b,0 0 60px #0c2d6b40}.bingo_title{border-radius:4px;place-self:center;width:100%;max-width:100%;height:auto;min-height:0;max-height:100%;font-size:clamp(.75rem,4.2vw,1.35rem)}.bingo-cell{touch-action:manipulation;aspect-ratio:unset;border-radius:4px;place-self:stretch stretch;width:100%;min-width:0;height:100%;min-height:0;font-size:clamp(.65rem,3.6vw,1.15rem)}.bingo-strike:before{left:-10%;right:-10%}}@media (width<=380px){.bingo-container{gap:2px;padding:5px}.bingo-cell{font-size:clamp(.6rem,3.2vw,.95rem)}.bingo_title{font-size:clamp(.65rem,3.8vw,1rem)}}.page{min-height:100vh;padding:1.5rem}.page.center{justify-content:center;align-items:center;display:flex}.card{background:#161616;border:1px solid #ffffff0f;border-radius:12px;padding:2rem;box-shadow:0 0 80px #0c2d6b66}.hero-card{text-align:center;width:100%;max-width:420px}.form-card{width:100%;max-width:380px}.lobby-card{width:100%;max-width:440px}.logo{letter-spacing:.08em;color:#02718d;margin:0 0 .5rem;font-size:3rem}.logo.logo-small{letter-spacing:.06em;text-align:center;margin:0 0 1rem;font-size:1.35rem;display:block}.app-brand-link{text-decoration:none}.subtitle{color:#888;margin-bottom:2rem}.btn{color:#fff;cursor:pointer;text-align:center;background:0 0;border:1px solid #ffffff26;border-radius:6px;padding:.6rem 1.4rem;text-decoration:none;transition:background .15s;display:inline-block}.btn:hover{background:#ffffff14}.btn.primary{background:#02718d;border-color:#02718d;width:100%}.btn.primary:hover{background:#038ca8}.btn.ghost{color:#1af4fc;border-color:#0000}.btn.small{padding:.35rem .75rem;font-size:.85rem}.btn-group{flex-direction:column;gap:.75rem;display:flex}.btn-group .btn{width:100%}.error{color:#ff6b6b;font-size:.9rem}.game-toast{color:#e8e8e8;text-align:center;background:#02718d59;border-bottom:1px solid #1af4fc59;margin:0;padding:.65rem 1rem;font-size:.9rem}.error.banner{text-align:center;background:#ff00001a;margin:0;padding:.5rem}.muted{color:#888;text-align:center;margin-top:1rem;font-size:.9rem}.link-back{text-align:center;margin-top:1.5rem;display:block}.lobby-header{flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1.5rem;display:flex}.lobby-header h2{flex:1;margin:0}.lobby-header-user{flex-shrink:0;align-items:center;gap:.75rem;display:flex}.badge{color:#1af4fc;background:#02718d33;border-radius:4px;padding:.25rem .6rem;font-size:.85rem}.lobby-section{margin-bottom:1.5rem}.lobby-section h3{color:#aaa;margin:0 0 .75rem;font-size:1rem}.lobby-section input[type=range]{width:100%;margin:.5rem 0 1rem}.game-page{flex-direction:column;min-height:100vh;display:flex}.game-header{background:#161616;border-bottom:1px solid #ffffff0f;align-items:center;gap:1rem;padding:.75rem 1rem;display:flex}.game-brand{color:#02718d;white-space:nowrap;font-size:.95rem;font-weight:600}.room-code{letter-spacing:.1em;font-weight:700}.share-room-wrap{align-items:center;gap:.35rem;display:flex}.share-room-btn{margin:0}.share-room-feedback{color:#1af4fc;white-space:nowrap;font-size:.75rem}.game-header-status{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.5rem;margin-left:auto;display:flex}.server-status{flex-wrap:wrap;align-items:center;gap:.5rem;display:flex}.server-status-item{color:#888;white-space:nowrap;background:#ffffff0a;border-radius:4px;align-items:center;gap:.35rem;padding:.2rem .45rem;font-size:.7rem;display:inline-flex}.server-status-dot{background:#666;border-radius:50%;flex-shrink:0;width:7px;height:7px}.server-status-online .server-status-dot{background:#00fd00;box-shadow:0 0 6px #00fd0099}.server-status-connecting .server-status-dot,.server-status-reconnecting .server-status-dot,.server-status-checking .server-status-dot{background:#fa0;animation:1s ease-in-out infinite server-status-pulse}.server-status-offline .server-status-dot{background:#f44}.server-status-online.server-status-item{color:#b8ffb8}.server-status-offline.server-status-item{color:#faa}@keyframes server-status-pulse{50%{opacity:.4}}.status-badge{text-transform:uppercase;background:#333;border-radius:4px;padding:.25rem .6rem;font-size:.8rem}.status-badge.playing{background:#02718d}.status-badge.finished{color:#00fd00;background:#00fd0033}.status-badge.card-status.not-ready{color:#ff6b6b;background:#ff000026;border:1px solid #ff6b6b}.status-badge.card-status.ready{color:#00fd00;background:#00fd0026;border:1px solid #00fd00}.setup-bar{text-align:center;width:min(100%,500px);margin-bottom:1rem}.setup-hint{color:#aaa;margin:0 0 .75rem;font-size:.9rem}.sidebar-hint{color:#888;margin:0;font-size:.8rem}.lobby-hint{color:#888;margin:-.5rem 0 .75rem;font-size:.8rem}.room-settings{background:#1a2428;border-radius:8px;margin-bottom:.5rem;padding:.75rem}.room-settings label{color:#aaa;margin-bottom:.35rem;font-size:.85rem;display:block}.room-settings input[type=number]{width:100%;margin-bottom:0}.turn-timer-display{color:#1af4fc;text-align:center;cursor:pointer;background:#1a2428;border:1px dashed #1af4fc59;border-radius:8px;width:100%;margin:0;padding:.5rem .65rem;font-size:.9rem;transition:background .15s,border-color .15s;display:block}.turn-timer-display:hover{background:#02718d40;border-color:#1af4fc}.turn-timer-display-static{text-align:center;margin:0}.turn-timer-modal{text-align:center;width:min(92vw,360px);padding:1.5rem 1.25rem 1.25rem}.turn-timer-modal h2{margin:0 0 .5rem;font-size:1.35rem}.turn-timer-modal-hint{color:#888;margin:0 0 1rem;font-size:.9rem;line-height:1.45}.turn-timer-modal-label{text-align:left;color:#aaa;margin-bottom:.35rem;font-size:.85rem;display:block}.turn-timer-modal input{margin-bottom:1.25rem}.turn-timer-modal-actions{flex-direction:column-reverse;gap:.65rem;display:flex}.turn-timer-modal-actions .btn{width:100%;min-height:44px;margin:0}@media (width>=480px){.turn-timer-modal-actions{flex-direction:row}.turn-timer-modal-actions .btn{flex:1}}.ready-tag{border-radius:3px;margin-left:auto;padding:.1rem .4rem;font-size:.7rem}.ready-tag.ready{color:#00fd00;background:#00fd0033}.ready-tag.not-ready{color:#ff6b6b;background:#ff000026}.game-arena{background:#12181b;flex-direction:row;flex:1;min-height:0;display:flex}.game-sidebar{background:#161616;border-right:1px solid #ffffff0f;flex-direction:column;flex-shrink:0;gap:1rem;width:250px;padding:1rem;display:flex}.game-main{flex-direction:column;flex:1;justify-content:center;align-items:center;min-height:0;padding:.5rem;display:flex;overflow-y:auto}.turn-bar{text-align:center;background:#161616;border:1px solid #ffffff1a;border-radius:8px;width:min(100%,500px);margin-bottom:1rem;padding:.6rem 1.2rem}.turn-bar.my-turn{border-color:#00fd00;box-shadow:0 0 20px #00fd0026}.turn-label{color:#1af4fc;font-size:1rem;font-weight:600;display:block}.turn-label.ready{color:#00fd00}.turn-timer{color:#fff;margin:.25rem .5rem;font-size:1.5rem;font-weight:700;display:inline-block}.turn-hint{color:#888;margin-top:.25rem;font-size:.85rem;display:block}.waiting-msg,.bingo-placeholder{color:#888;text-align:center;padding:2rem}.game-footer{text-align:center;color:#fff;flex-direction:column;gap:.35rem;width:min(100%,500px);margin-top:1rem;font-size:.9rem;display:flex}.last-called strong{color:#1af4fc}.called-list{color:#aaa;word-break:break-word;font-size:.8rem}.player-list{margin:0;padding:4px 2px;list-style:none}.player-item-wrap{border-radius:8px;margin-bottom:.35rem;list-style:none;position:relative}.player-item-wrap.has-timer{--ring-width:3px;padding:var(--ring-width);background:conic-gradient(from -90deg, var(--ring-color,#1af4fc) 0deg, var(--ring-color,#1af4fc) var(--ring-deg,360deg), transparent var(--ring-deg,360deg));border-radius:8px}.player-item-wrap.has-timer .player-item{border-radius:calc(8px - var(--ring-width));background:#1a2428;border:none;margin:0}.player-item{background:#1a2428;border:2px solid #0000;border-radius:6px;flex-wrap:wrap;align-items:center;gap:.35rem;padding:.5rem .6rem;font-size:.85rem;display:flex}.player-item.active{border-color:#0000}.player-item.me .player-name{color:#00fd00}.host-tag{background:#02718d;border-radius:3px;padding:.1rem .35rem;font-size:.7rem}.lines-badge{color:#888;margin-left:auto;font-size:.75rem}.modal-overlay{z-index:100;background:#000000bf;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal{text-align:center;max-width:360px}.winner-modal .btn.primary{width:100%;margin-bottom:.75rem}.modal-overlay.modal-overlay-top{z-index:110}.confirm-modal{text-align:center;width:min(92vw,400px);padding:1.75rem 1.5rem 1.5rem}.confirm-modal h2{color:#fff;margin:0 0 .75rem;font-size:1.35rem}.confirm-modal-message{color:#aaa;margin:0 0 1.5rem;font-size:.95rem;line-height:1.5}.confirm-modal-warning .confirm-modal-message{color:#fc8}.confirm-modal-actions{flex-direction:column-reverse;gap:.65rem;display:flex}.confirm-modal-actions .btn{width:100%;max-width:none;margin:0;padding:.75rem 1rem;font-size:1rem}.confirm-modal-stay{color:#fff;background:#02718d;border-color:#02718d}.confirm-modal-stay:hover{background:#038ca8}.confirm-modal-leave{color:#f88;background:0 0;border:1px solid #ff646480}.confirm-modal-leave:hover{color:#faa;background:#ff444426;border-color:#f66}@media (width>=480px){.confirm-modal-actions{flex-direction:row}.confirm-modal-actions .btn{flex:1}}.btn-link{color:#888;cursor:pointer;background:0 0;border:none;padding:.25rem;font-size:.85rem;text-decoration:underline}.btn-link:hover{color:#1af4fc}.vote-wait-msg{color:#1af4fc;margin:0 0 1rem;font-size:.9rem}@media (width<=768px){.page{padding:max(.75rem, env(safe-area-inset-left)) max(.75rem, env(safe-area-inset-right));padding-top:max(.75rem, env(safe-area-inset-top));padding-bottom:max(1rem, env(safe-area-inset-bottom))}.page.center{padding-top:max(1.25rem, env(safe-area-inset-top));align-items:flex-start}.card{border-radius:10px;padding:1.25rem 1rem}.hero-card,.form-card,.lobby-card{max-width:100%}.logo{font-size:2.25rem}.logo.logo-small{font-size:1.2rem}.subtitle{margin-bottom:1.25rem;font-size:.95rem}.lobby-header{flex-direction:column;align-items:stretch;gap:.5rem;margin-bottom:1rem}.lobby-header h2{flex:none;font-size:1.25rem}.lobby-header-user{justify-content:space-between;gap:.75rem;width:100%}.lobby-header-user .badge{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.lobby-header-user .btn{flex-shrink:0;min-height:44px}.btn,.btn-group .btn{min-height:44px;padding:.7rem 1rem}.btn.small{min-height:36px;padding:.4rem .65rem}.game-page{max-width:100vw;min-height:100vh;overflow:hidden}.game-header{padding:max(.5rem, env(safe-area-inset-top)) .65rem .5rem;flex-shrink:0;grid-template-rows:auto auto;grid-template-columns:auto 1fr auto;gap:.35rem .5rem;display:grid}.game-header>.btn.ghost{grid-area:1/1;margin:0;padding-left:.25rem;padding-right:.25rem}.game-brand{display:none}.game-header .room-code{letter-spacing:.06em;text-align:center;text-overflow:ellipsis;white-space:nowrap;grid-area:1/2;justify-self:center;min-width:0;font-size:.85rem;overflow:hidden}.game-header .share-room-wrap{grid-area:1/3;justify-self:end;min-width:0}.share-room-feedback{font-size:.7rem}.game-header-status{grid-area:2/1/auto/-1;justify-content:space-between;gap:.35rem;width:100%;margin-left:0}.server-status-label{display:none}.server-status-item{justify-content:center;min-width:28px;padding:.35rem}.status-badge{text-overflow:ellipsis;white-space:nowrap;max-width:50%;padding:.2rem .45rem;font-size:.7rem;overflow:hidden}.game-toast,.error.banner{flex-shrink:0;padding:.5rem .65rem;font-size:.85rem}.game-arena{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;flex-direction:column;flex:1;min-width:0;min-height:0;overflow:hidden auto}.game-arena>*{min-width:0;max-width:100%}.game-sidebar{z-index:1;background:#161616;border-bottom:1px solid #ffffff0f;border-right:none;flex-direction:column;flex-shrink:0;align-items:stretch;gap:.5rem;width:100%;padding:.5rem .65rem .65rem;position:relative}.game-sidebar .room-settings,.game-sidebar .btn.primary{width:100%;margin:0}.game-sidebar .btn.primary{min-height:44px}.sidebar-hint{text-align:center;margin:0;font-size:.75rem}.player-list{-webkit-overflow-scrolling:touch;scrollbar-width:thin;flex-flow:row;align-items:stretch;gap:.5rem;width:100%;padding:6px 4px 8px;display:flex;overflow:auto visible}.player-item-wrap{isolation:isolate;flex:none;min-width:132px;max-width:160px;margin-bottom:0}.player-item-wrap.has-timer{margin:2px 0}.player-item{padding:.45rem .5rem;font-size:.8rem}.game-main{padding:.35rem .5rem max(.75rem, env(safe-area-inset-bottom));box-sizing:border-box;z-index:0;flex:1 0 auto;justify-content:flex-start;align-items:stretch;gap:.5rem;width:100%;min-width:0;position:relative;overflow:hidden visible}.game-main .bingo-board-wrap{flex:none;order:1}.game-main .turn-bar,.game-main .setup-bar{flex-shrink:0;order:0}.game-main .game-footer{flex-shrink:0;order:2}.turn-bar,.setup-bar,.game-footer{width:100%;max-width:none;margin-bottom:.35rem}.turn-bar{margin-bottom:.25rem;padding:.5rem .75rem}.turn-label{font-size:.9rem}.turn-timer{font-size:1.25rem}.turn-hint{font-size:.8rem}.setup-bar .btn{width:100%;min-height:44px}.setup-hint{margin-bottom:.5rem;font-size:.85rem}.game-footer{margin-top:.25rem;font-size:.8rem}.called-list{font-size:.75rem;line-height:1.35}.modal-overlay{padding:max(.75rem, env(safe-area-inset-top)) max(.75rem, env(safe-area-inset-right)) max(.75rem, env(safe-area-inset-bottom)) max(.75rem, env(safe-area-inset-left));align-items:flex-end}.modal,.confirm-modal{border-radius:12px 12px 0 0;width:100%;max-width:none;max-height:90dvh;margin:0;overflow-y:auto}.confirm-modal{padding:1.25rem 1rem max(1rem, env(safe-area-inset-bottom))}.winner-modal .btn.primary{min-height:44px}}@media (width<=380px){.game-header .room-code{font-size:.78rem}.player-item-wrap{min-width:118px}}
