#lobby.classic-waiting {
  position:absolute;inset:0;z-index:3;align-self:stretch;
  display:block;width:auto;height:auto;max-width:none;max-height:none;
  margin:0;padding:0;border:0;border-radius:0;box-shadow:none;
  background:transparent;backdrop-filter:none;overflow:visible;pointer-events:none;
}
#lobby.classic-waiting[hidden],#lobby.classic-waiting>:not(.classic-match),#lobby:not(.classic-waiting)>.classic-match {display:none!important}
.classic-match {
  --u:.0520833333vw;
  --bottom:max(0px,env(safe-area-inset-bottom));
  --left:max(0px,env(safe-area-inset-left));--right:max(0px,env(safe-area-inset-right));
  --top:max(0px,env(safe-area-inset-top));position:absolute;inset:0;
  color:white;font-family:ClassicMaru,"Hiragino Maru Gothic ProN",sans-serif;
  font-weight:400;line-height:1.12;user-select:none;text-align:center;
}
.classic-match :is(button,.cm-circle) {pointer-events:auto;box-sizing:border-box;touch-action:manipulation;box-shadow:none}
.classic-match [hidden] {display:none!important}
.classic-match button:focus-visible,.classic-match-dialog button:focus-visible {outline:3px solid #ffdc48;outline-offset:2px}
.cm-circle,.cm-room-heading,.cm-control {
  position:absolute;margin:0;border:0;font:inherit;color:white;letter-spacing:0;
  background:none;text-shadow:none;cursor:pointer;
}
.cm-circle {
  top:calc(var(--top) + var(--u)*20);width:max(30px,calc(var(--u)*80));height:max(30px,calc(var(--u)*80));
  padding:0;border-radius:50%;background:transparent url('/classic/lobby/ring.png') center/100% 100% no-repeat;
}
.cm-circle img {object-fit:contain;width:62%;height:62%;vertical-align:middle}
.cm-leave {left:calc(var(--left) + var(--u)*20)}
.cm-share {left:calc(50% + var(--u)*260)}
.cm-room-heading {
  top:calc(var(--top) + var(--u)*20);left:50%;transform:translateX(-50%);
  width:calc(var(--u)*460);min-width:108px;min-height:22px;height:calc(var(--u)*80);
  background:rgba(57,65,76,.58);border-radius:999px;
  font-size:max(13px,calc(var(--u)*54));white-space:nowrap;line-height:1;padding:0 .15em;
}
.cm-roster {position:absolute;inset:0;pointer-events:none}
.cm-player,.cm-player-ring {position:absolute;pointer-events:none}
.cm-player {
  max-width:22%;transform:translate(-50%,-100%);color:white;font-size:max(10px,calc(var(--u)*33));
  font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  -webkit-text-stroke:.11em var(--color);paint-order:stroke fill;
  text-shadow:0 0 .15em var(--color);
}
.cm-player.cm-yourself:before {
  content:"";display:block;width:0;height:0;margin:0 auto .05em;
  border-left:.42em solid transparent;border-right:.42em solid transparent;border-top:1em solid red;
}
.cm-player.cm-offline {opacity:.55}
.cm-player-ring {
  transform:translate(-50%,-45%);border-radius:50%;
  background:radial-gradient(ellipse at center,transparent 30%,var(--color) 55%,transparent 76%);opacity:.43;
}
.cm-control {
  height:calc(var(--u)*160);min-height:34px;width:calc(var(--u)*420);
  border-radius:calc(var(--u)*35);padding:0;display:flex;align-items:center;
  background:#51afc6;font-size:max(12px,calc(var(--u)*38));line-height:1.13;text-align:center;
}
.cm-control:disabled {opacity:1;cursor:default;color:white}
.cm-control:active:not(:disabled),.cm-circle:active,.cm-room-heading:active {filter:brightness(.86)}
.cm-control .cm-caption {flex:1;white-space:pre-line;padding-inline:calc(var(--u)*12)}
.cm-control .cm-icon {margin-right:calc(var(--u)*20);width:calc(var(--u)*80);height:calc(var(--u)*80);object-fit:contain}
.cm-wolf,.cm-vote,.cm-rules {right:calc(var(--right) + var(--u)*20)}
.cm-wolf {bottom:calc(var(--bottom) + var(--u)*220);background:#c53439}
.cm-vote,.cm-rules,.cm-team,.cm-main {bottom:calc(var(--bottom) + var(--u)*40)}
.cm-main {
  width:calc(var(--u)*720);left:50%;transform:translateX(-50%);background:#3b4654;
  font-size:max(12px,calc(var(--u)*35));
}
.cm-main .cm-caption {padding-inline:calc(var(--u)*22)}
.cm-status,.cm-caution {
  position:absolute;left:50%;width:55%;transform:translateX(-50%);pointer-events:none;
  color:#22272a;font-size:max(9px,calc(var(--u)*27));text-shadow:0 1px 2px white,1px 0 2px white;
}
.cm-status {bottom:calc(var(--bottom) + var(--u)*264)}
.cm-caution {bottom:calc(var(--bottom) + var(--u)*226)}
.classic-match[data-mode=conquer] .cm-vote {left:calc(var(--left) + var(--u)*90);right:auto;background:#48aa5b}
.cm-team {width:calc(var(--u)*240);font-size:max(11px,calc(var(--u)*35));color:#333}
.cm-team .cm-icon {width:calc(var(--u)*72);height:calc(var(--u)*72)}
.cm-team-red {right:calc(var(--right) + var(--u)*280);background:#ff90f4}
.cm-team-blue {right:calc(var(--right) + var(--u)*20);background:#fff4bd}
.cm-team-color {
  position:absolute;right:calc(var(--u)*20);width:calc(var(--u)*72);color:#423e3b;
  font-weight:400;text-align:center;pointer-events:none;
}
.cm-team[aria-pressed=true] {outline:2px solid white;outline-offset:-3px}

dialog.classic-match-dialog {
  position:fixed;inset:0;margin:auto;padding:0;box-sizing:border-box;
  color:#273038;background:white;border:0;box-shadow:none;border-radius:min(1.7vw,22px);
  width:min(78vw,620px);max-width:96vw;max-height:92vh;overflow:auto;
  font:400 clamp(14px,2.4vh,26px)/1.4 ClassicMaru,"Hiragino Maru Gothic ProN",sans-serif;text-align:center;
}
dialog.classic-match-dialog::backdrop {background:rgba(0,0,0,.58);backdrop-filter:none}
.classic-match-dialog .cm-dialog-title {
  display:block;margin:0;padding:.4em 2em;background:#00b2c4;color:white;border:0;
  white-space:pre-line;font:inherit;font-size:1.25em;line-height:1.05;
}
.classic-match-dialog .cm-dismiss {
  position:absolute;right:.35em;top:.2em;z-index:1;padding:0;height:1.55em;width:1.55em;
  border:0;border-radius:100%;color:white;background:transparent;font:inherit;font-size:1.15em;
}
.cm-dialog-body {padding:1em;display:flex;gap:.65em;flex-wrap:wrap;justify-content:center;align-items:center}
.cm-dialog-body p {color:#273038;margin:.3em 0;line-height:1.55;width:100%}
.cm-dialog-actions {display:flex;justify-content:center;gap:.6em}
.classic-match-dialog .cm-option {
  display:inline-block;min-height:34px;padding:.6em 1em;color:white;background:#00a9bc;
  border:0;border-radius:.55em;font:inherit;line-height:1.2;
}
.cm-room-info {display:flex;align-items:center;justify-content:center;gap:.5em;width:100%;font-size:1.1em;color:#333}
.cm-room-info input {width:6.7em;text-align:center;font:inherit;border:1px solid #bbb;border-radius:.35em}
dialog.classic-match-dialog[data-kind=vote] {width:min(94vw,151vh);max-width:96vw;max-height:92vh}
dialog.classic-match-dialog[data-kind=vote].cm-conquer-vote {width:min(62vw,82vh)}
.classic-match-dialog[data-kind=vote] .cm-dialog-title {font-size:clamp(16px,min(3.2vw,5.5vh),48px);padding:.08em 2em}
.classic-match-dialog[data-kind=vote] .cm-dialog-body {display:block;padding:min(2.8vw,4.6vh) min(2.5vw,4vh)}
.cm-map-grid {display:grid;grid-template-columns:repeat(var(--choices),minmax(0,1fr));gap:2%}
.classic-match-dialog .cm-map-choice {
  display:flex;flex-direction:column;align-items:stretch;justify-content:space-between;overflow:hidden;
  border:0;border-radius:min(2.1vw,3vh);padding:0;background:#00adbc;color:white;
  font:inherit;line-height:1.2;cursor:pointer;
}
.cm-map-choice>img {display:block;width:100%;aspect-ratio:1.14;object-fit:cover}
.cm-map-choice>span {display:grid;place-items:center;min-height:1.9em;padding:.22em .08em;font-size:clamp(10px,min(2.45vw,3.5vh),30px)}
.cm-map-choice[aria-pressed=true] {box-shadow:0 0 0 3px #f7cd28}
/* VoteMapPopUp uses a centered 1800 × 666 panel. Its two-map variant is 960 wide. */
@media (orientation:landscape) {
  dialog.classic-match-dialog[data-kind=vote] {
    --vote-unit:min(.0520833333vw,.138138dvh);
    width:calc(1800 * var(--vote-unit));height:calc(666 * var(--vote-unit));
    max-height:92dvh;overflow:visible;border-radius:calc(35 * var(--vote-unit));
  }
  dialog.classic-match-dialog[data-kind=vote].cm-conquer-vote {width:calc(960 * var(--vote-unit))}
  .classic-match-dialog[data-kind=vote] .cm-dialog-title {
    display:grid;place-items:center;box-sizing:border-box;height:calc(120 * var(--vote-unit));
    border-radius:calc(35 * var(--vote-unit)) calc(35 * var(--vote-unit)) 0 0;
    padding:0 2em;font-size:calc(48 * var(--vote-unit));line-height:1.05;
  }
  .classic-match-dialog[data-kind=vote] .cm-dialog-body {padding:0}
  .classic-match-dialog[data-kind=vote] .cm-map-grid {
    position:absolute;inset:auto 0 calc(58.34 * var(--vote-unit));
    grid-template-columns:repeat(var(--choices),calc(390 * var(--vote-unit)));
    justify-content:center;gap:calc(46 * var(--vote-unit));
  }
  dialog.classic-match-dialog[data-kind=vote].cm-conquer-vote .cm-map-grid {column-gap:calc(70 * var(--vote-unit))}
  .classic-match-dialog .cm-map-choice {
    position:relative;height:calc(427.44 * var(--vote-unit));
    border-radius:calc(28 * var(--vote-unit));background:transparent;
  }
  .cm-map-choice>span {
    position:absolute;bottom:0;left:0;right:0;height:calc(120 * var(--vote-unit));
    box-sizing:border-box;padding:calc(32 * var(--vote-unit)) .16em 0;
    border-radius:calc(28 * var(--vote-unit));background:#00adbc;
    font-size:calc(40 * var(--vote-unit));line-height:1.04;
  }
  .cm-map-choice>img {
    position:relative;z-index:1;width:100%;height:calc(360 * var(--vote-unit));
    border-radius:calc(20 * var(--vote-unit));object-fit:fill;
  }
}
@media (orientation:portrait) {
  .classic-match {--u:.052083vw}
  .cm-circle {width:35px;height:35px}
  .cm-share {left:calc(50% + 74px)}
  .cm-room-heading {min-width:137px;min-height:32px}
  .cm-control {min-height:44px;border-radius:10px;font-size:13px}
  .cm-wolf,.cm-vote,.cm-rules {width:40%;right:calc(var(--right) + 6%)}
  .cm-wolf {bottom:calc(var(--bottom) + 113px)}
  .cm-vote,.cm-rules {bottom:calc(var(--bottom) + 62px)}
  .cm-main {width:87%;bottom:calc(var(--bottom) + 11px)}
  .cm-main .cm-icon,.cm-control .cm-icon {width:25px;height:25px;margin-right:8px}
  .cm-caution {width:88%;bottom:calc(var(--bottom) + 173px);font-size:13px}
  .cm-status {bottom:calc(var(--bottom) + 192px);font-size:12px}
  .cm-player {font-size:12px}
  .cm-team {width:19%;bottom:calc(var(--bottom) + 62px);font-size:11px}
  .cm-team-red {right:29%}.cm-team-blue {right:7%}
  .cm-team-color {width:25px;right:8px}
  .classic-match[data-mode=conquer] .cm-vote {width:43%;left:6%;bottom:calc(var(--bottom) + 62px)}
  dialog.classic-match-dialog {width:92vw}
  dialog.classic-match-dialog[data-kind=vote].cm-conquer-vote {width:94vw}
  .cm-map-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .cm-map-choice>span {font-size:14px}
}
