.online-start{display:flex;justify-content:center;gap:8px;margin-top:12px}
.online-start .secondary{font-size:14px;min-height:44px;padding:6px 12px;margin:0}
.online-dialog{width:min(540px,calc(100% - 28px));max-height:calc(100dvh - 32px);overflow:auto;padding:28px 22px 20px}
.online-dialog:has(.dialog-close){padding-top:62px}
.online-dialog .danger{color:#a6214e}
.online-dialog .primary{width:100%;margin-top:12px;min-height:48px;font-size:22px}
.online-dialog>.secondary{min-height:44px;margin:10px auto 0}
.online-dialog .search-input{width:100%;box-sizing:border-box}
.online-dialog textarea{resize:vertical;min-height:70px}
.form-error{color:#a6214e;min-height:24px;font-size:14px;margin-top:6px}
.board-filters{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;margin:20px 0 8px}
.board-filters>div{display:flex;gap:6px}
.board-filters button{min-height:44px;margin:0;font-size:14px;padding:6px 12px}
.board-filters button[aria-pressed=true]{background:var(--yellow);color:var(--ink)}
.board-rows{max-height:42dvh;overflow:auto;min-height:80px;text-align:left}
.board-row{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 8px;min-height:44px;border-radius:12px;border-bottom:1px solid #dcdcf4;font-size:15px}
.board-row span{overflow-wrap:anywhere}.board-row small{font-size:11px}
.board-row.is-you{background:#fff0a6}.board-row strong{white-space:nowrap}
#board-me{margin:12px 0;font-size:14px}
.rating-stars{display:flex;justify-content:center;gap:5px;margin:15px 0}
.rating-star{font-size:37px;line-height:1;min-width:47px;min-height:50px;color:#a3a7bf;background:#f3f1ff;border:2px solid var(--ink);border-radius:12px}
.rating-star[aria-pressed=true]{color:#b77700;background:#fff2a8}
.setting-row{display:flex;align-items:center;justify-content:space-between;width:100%;gap:20px;font-size:18px;min-height:50px;margin:20px 0 10px}
.online-status{font-weight:800;color:var(--yellow);font-size:17px;min-height:24px;text-align:center}
.over-links{display:flex;justify-content:center;gap:8px}.over-links .secondary{font-size:14px;min-height:44px;margin:8px 0}
#home-over{min-height:44px;font-size:14px;margin:0 auto}
.partner-line{margin:4px 4px 9px;font-size:13px;color:#fff;font-weight:700;text-align:center;pointer-events:none}
.duo-picks{background:#fff;border:2px solid var(--ink);border-radius:14px;padding:6px 10px;margin:0 0 8px;color:var(--ink)}
.duo-picks p{display:flex;justify-content:space-between;gap:8px;font-size:12px;padding:3px 0}.duo-picks span{text-align:right}
.duo-wait{background:#fff;border:3px solid var(--ink);border-radius:24px;text-align:center;padding:24px 12px;margin-top:30px}.duo-wait h2{font-size:24px}.duo-wait p{font-size:15px;margin-top:10px}
#app[data-screen=lobby] #panel{text-align:center;color:#fff;display:block;top:130px}
#app[data-screen=lobby] .zoom-controls,#app[data-screen=lobby] #map-guide{display:none}
#app[data-screen=lobby] #panel>.primary{width:100%;margin:20px 0 8px;min-height:55px;font-size:24px}
#app[data-screen=lobby] #panel>.secondary{display:block;min-height:44px;margin:8px auto}
.lobby-players{background:#fff;border:3px solid var(--ink);border-radius:20px;padding:14px;color:var(--ink);margin:20px 0}.lobby-players p{display:flex;justify-content:space-between;padding:8px 0;gap:12px}.lobby-players b{font-size:13px}
.room-link{font-size:12px;overflow-wrap:anywhere;margin:8px 0}.connection-note{position:fixed;left:12px;right:12px;bottom:8px;z-index:25;text-align:center;background:#fff3b8;border:2px solid var(--ink);border-radius:12px;padding:6px;font-size:13px;color:var(--ink)}
@media(min-width:1024px){#app[data-screen=over] #panel{padding-top:0}.final-score{margin:10px 0 6px}.stats{margin-top:12px;margin-bottom:12px}.over-play{margin-top:10px}}
@media(max-width:1023px) and (orientation:portrait){
  .start-screen .start-play{bottom:251px;min-height:60px}
  .online-start{position:absolute;bottom:199px;left:0;right:0;margin:0;pointer-events:auto}
  .online-start .secondary{font-size:13px;padding:5px 10px}
  .start-screen .start-how{bottom:155px}
  #app[data-screen=start] #globe-stage{top:250px;bottom:360px}
  .start-screen .start-links{bottom:95px;gap:0 14px}
  .start-screen .best-line{bottom:65px}
  .start-screen .start-links a,.start-languages>summary{min-height:28px}
  #app[data-screen=lobby] #panel{top:112px;bottom:20px;overflow:auto;padding:10px 18px}
  #app[data-screen=lobby] #globe-stage{opacity:.3;pointer-events:none}
  .partner-line{font-size:11px;margin:3px 0 5px}
  #app[data-screen=question] .partner-line{position:absolute;top:100%;left:0;right:0}
  #app[data-screen=locked] .panel,#app[data-screen=ready] .panel{top:85px}
  #app[data-screen=locked] #globe-stage,#app[data-screen=ready] #globe-stage{top:330px;bottom:75px}
  .duo-picks{margin-bottom:6px;padding:4px 8px}.duo-picks p{font-size:11px}
  #app[data-duo=true][data-screen=reveal] .answer-list{max-height:84px}
  #app[data-duo=true][data-screen=reveal] .reveal-top{top:180px}
  #app[data-screen=over] .panel{top:85px;overflow:hidden}
  .over-sub{margin:6px 0}.final-score{font-size:54px;margin:10px 0 6px}.stats{margin:10px 12px;padding:7px 15px}.over-play{margin-top:10px;min-height:55px}
}
@media(max-width:1023px) and (max-height:730px) and (orientation:portrait){
  #app[data-screen=start] #globe-stage{top:207px;bottom:344px}.start-screen .start-play{bottom:246px;min-height:54px}
  .start-screen .start-subtitle{font-size:18px}.online-start{bottom:195px}
  .over-sub{font-size:12px}.final-score{font-size:40px;margin:4px 0}.stats{margin:5px 12px}.stat{min-height:27px}.over-title{font-size:25px}
}
@media(max-width:600px) and (orientation:portrait){
  .draft-dialog .duo-picks{padding:2px 8px;margin-bottom:5px}
  .draft-dialog .duo-picks p{font-size:10px;line-height:12px;padding:1px 0}
  #app:is([data-screen=question],[data-screen=locked],[data-screen=ready],[data-screen=reveal]) .partner-line{position:static;margin:2px 4px 0;text-align:right;font-size:10px;line-height:12px}
  #app:is([data-screen=locked],[data-screen=ready]) .duo-wait{position:fixed;left:12px;right:12px;bottom:max(8px,env(safe-area-inset-bottom));margin:0;padding:8px;border-radius:16px}
  #app:is([data-screen=locked],[data-screen=ready]) #globe-stage{inset:112px 0 min(calc(var(--run-bottom) + 56px),90px)}
  #app:is([data-screen=locked],[data-screen=ready]) .duo-wait h2{font-size:18px}
  #app:is([data-screen=locked],[data-screen=ready]) .duo-wait p{font-size:13px;margin-top:2px}
  #app[data-duo=true][data-screen=reveal] .answer-list{max-height:88px}
  #app[data-duo=true][data-screen=reveal] .duo-picks{padding:2px 8px;margin-bottom:4px}
  #app[data-duo=true][data-screen=reveal] .duo-picks p{padding:1px 0;font-size:10px;line-height:13px}
  #app[data-screen=over] #panel{top:calc(var(--run-top) + 52px);overflow-y:auto}
  #app[data-screen=over] .final-score{font-size:38px;margin:5px 0}
  #app[data-screen=over] .stats{margin:6px 4px;padding:5px 12px}
  #app[data-screen=over] .over-play{min-height:44px;margin-top:7px}
}
@media(max-width:600px) and (orientation:portrait) and (max-height:600px){
  #app[data-duo=true][data-screen=reveal] .answer-list{max-height:44px}
}
