/* NF Creatix Play – Version 4.4 Lobby Foundation */
.lobby-page{padding:0}
.lobby4601{
  width:min(100%,720px);
  margin:0 auto;
  overflow:hidden;
  border:1px solid #343434;
  border-radius:24px;
  background:
    radial-gradient(circle at 84% 8%,rgba(244,119,0,.14),transparent 17rem),
    linear-gradient(150deg,#17120e,#090909 72%);
  box-shadow:var(--shadow);
}
.lobby4601__header{
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  align-items:center;
  gap:13px;
  padding:16px 18px;
  border-bottom:3px solid var(--orange);
  background:rgba(9,9,9,.76);
}
.lobby4601__back{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid #454545;
  border-radius:13px;
  color:#fff;
  background:#1d1d1d;
  font-size:22px;
  cursor:pointer;
}
.lobby4601__header small{
  color:var(--orange);
  font-size:9px;
  font-weight:950;
  letter-spacing:.14em;
}
.lobby4601__header h1{margin:2px 0 0;font-size:27px}
.lobby4601__connection{
  padding:6px 9px;
  border:1px solid #8a5b24;
  border-radius:999px;
  color:#f2ba7c;
  background:#29180a;
  font-size:10px;
  font-weight:900;
}
.lobby4601__step{display:none;padding:20px}
.lobby4601__step.is-active{display:block}
.lobby4601__intro{text-align:center}
.lobby4601__intro>span{
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  margin:0 auto 11px;
  border:1px solid rgba(244,119,0,.44);
  border-radius:20px;
  background:#1a0d04;
  font-size:31px;
}
.lobby4601__intro h2{margin:0;font-size:27px}
.lobby4601__intro p{max-width:440px;margin:8px auto 18px;color:#aaa;line-height:1.45}
.lobby4601__choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.lobby4601__choice{
  min-height:126px;
  padding:16px;
  border:1px solid #3c3c3c;
  border-radius:18px;
  color:#fff;
  background:linear-gradient(145deg,#202020,#111);
  text-align:left;
  cursor:pointer;
}
.lobby4601__choice--primary{
  border-color:#ff9d3b;
  background:linear-gradient(145deg,#2e1706,#17100b);
}
.lobby4601__choice span,.lobby4601__choice strong,.lobby4601__choice small{display:block}
.lobby4601__choice>span{color:var(--orange);font-size:28px}
.lobby4601__choice strong{margin-top:10px;font-size:19px}
.lobby4601__choice small{margin-top:5px;color:#aaa}
.lobby4601__resume{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:13px;
  padding:12px 13px;
  border:1px solid #2e6540;
  border-radius:14px;
  background:#102418;
}
.lobby4601__resume strong,.lobby4601__resume small{display:block}
.lobby4601__resume small{margin-top:3px;color:#9fc7aa}
.lobby4601__resume button{
  min-height:38px;
  padding:7px 12px;
  border:1px solid #4c8d60;
  border-radius:10px;
  color:#fff;
  background:#267644;
  cursor:pointer;
}
.lobby4601__step>h2{margin:0 0 17px;font-size:25px}
.lobby4601__field{
  display:grid;
  gap:7px;
  margin-bottom:13px;
  color:#bbb;
  font-size:12px;
  font-weight:850;
}
.lobby4601__field input,.lobby4601__field select{
  width:100%;
  min-height:48px;
  padding:11px 13px;
  border:1px solid #3d3d3d;
  border-radius:13px;
  color:#fff;
  background:#181818;
  font-size:16px;
}
.lobby4601__code-input{
  text-align:center;
  font-size:24px!important;
  font-weight:950;
  letter-spacing:.18em;
}
.lobby4601__actions{display:grid;grid-template-columns:1fr 2fr;gap:9px;margin-top:18px}
.lobby4601__primary,.lobby4601__secondary,.lobby4601__danger{
  min-height:50px;
  padding:11px 14px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
}
.lobby4601__primary{
  border:1px solid #ffb05d;
  color:#fff;
  background:linear-gradient(180deg,#ff9932,#f06e00);
}
.lobby4601__secondary{
  border:1px solid #444;
  color:#ddd;
  background:#1d1d1d;
}
.lobby4601__danger{
  border:1px solid #743131;
  color:#ffdede;
  background:#311313;
}
.lobby4601__full{width:100%;margin-top:10px}
.lobby4601__primary:disabled{opacity:.42;cursor:not-allowed}
.lobby4601__code-card{
  padding:16px;
  border:1px solid rgba(244,119,0,.5);
  border-radius:18px;
  background:#140d08;
  text-align:center;
}
.lobby4601__code-card small,.lobby4601__code-card strong{display:block}
.lobby4601__code-card small{color:#aaa;text-transform:uppercase;letter-spacing:.12em}
.lobby4601__code-card strong{
  margin:7px 0 10px;
  color:var(--orange);
  font-size:37px;
  letter-spacing:.11em;
}
.lobby4601__code-card>div{display:flex;justify-content:center;gap:8px}
.lobby4601__code-card button{
  min-height:36px;
  padding:7px 10px;
  border:1px solid #4c4c4c;
  border-radius:10px;
  color:#fff;
  background:#242424;
  cursor:pointer;
}
.lobby4601__waiting-head{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:12px;
  margin:17px 0 11px;
}
.lobby4601__waiting-head small{color:var(--orange);font-weight:900}
.lobby4601__waiting-head h2{margin:3px 0 0}
.lobby4601__waiting-head>span{
  padding:7px 10px;
  border-radius:11px;
  color:#ff9a3d;
  background:#251409;
  font-weight:950;
}
.lobby4601__players{display:grid;gap:8px}
.lobby4601__player{
  display:grid;
  grid-template-columns:38px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:11px 12px;
  border:1px solid #333;
  border-radius:13px;
  background:#171717;
}
.lobby4601__player.has-order-controls{
  grid-template-columns:38px minmax(0,1fr) auto 74px;
  gap:8px;
}
.lobby4601__player.is-current{border-color:#8a591d;background:#211509}
.lobby4601__player-order{
  display:grid;
  place-items:center;
  width:33px;
  height:33px;
  border-radius:10px;
  color:#fff;
  background:#303030;
  font-weight:950;
}
.lobby4601__player-copy{min-width:0}
.lobby4601__player-copy strong,.lobby4601__player-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lobby4601__player-copy small{margin-top:3px;color:#929292}
.lobby4601__ready{
  padding:6px 8px;
  border-radius:999px;
  color:#aaa;
  background:#292929;
  font-size:10px;
  font-weight:900;
  white-space:nowrap;
}
.lobby4601__ready.is-ready{color:#bff2cc;background:#164329}
.lobby4601__foundation-note{
  margin:12px 0 0;
  color:#858585;
  font-size:11px;
  line-height:1.4;
  text-align:center;
}
.lobby4601__starting{text-align:center}
.lobby4601__starting>span{
  display:grid;
  place-items:center;
  width:68px;
  height:68px;
  margin:0 auto 12px;
  border-radius:50%;
  color:#fff;
  background:#247543;
  font-size:33px;
  font-weight:950;
}
.lobby4601__starting h2{margin:0;font-size:28px}
.lobby4601__starting>p{max-width:480px;margin:8px auto 18px;color:#aaa;line-height:1.45}

@media(max-width:699px){
  .content{padding-bottom:88px}
  .lobby4601__header{grid-template-columns:36px minmax(0,1fr) auto;padding:10px 12px}
  .lobby4601__back{width:36px;height:36px}
  .lobby4601__header h1{font-size:21px}
  .lobby4601__connection{font-size:8px;padding:5px 7px}
  .lobby4601__step{padding:14px}
  .lobby4601__intro>span{width:55px;height:55px;margin-bottom:8px;font-size:26px}
  .lobby4601__intro h2{font-size:23px}
  .lobby4601__intro p{margin-bottom:13px;font-size:13px}
  .lobby4601__choice{min-height:102px;padding:12px}
  .lobby4601__choice strong{font-size:15px}
  .lobby4601__choice small{font-size:11px}
  .lobby4601__code-card{padding:13px}
  .lobby4601__code-card strong{font-size:30px}
}

/* Passwordless host access inside the existing lobby area. */
.lobby-auth{
  width:min(calc(100% - 32px),540px);
  max-height:min(760px,calc(100dvh - 32px));
  margin:auto;
  padding:0;
  overflow:auto;
  border:1px solid #3f3f3f;
  border-radius:22px;
  color:#fff;
  background:#101010;
  box-shadow:0 28px 80px rgba(0,0,0,.72);
}
.lobby-auth::backdrop{
  background:rgba(0,0,0,.76);
  backdrop-filter:blur(6px);
}
.lobby-auth__card{
  padding:clamp(20px,5vw,30px);
  background:
    radial-gradient(circle at 88% 0,rgba(244,119,0,.18),transparent 15rem),
    linear-gradient(145deg,#1b1510,#0d0d0d 72%);
}
.lobby-auth__view>small,.lobby-auth__card>small{
  color:var(--orange);
  font-size:10px;
  font-weight:950;
  letter-spacing:.16em;
}
.lobby-auth h2{margin:8px 0 10px;font-size:clamp(24px,6vw,31px);line-height:1.12}
.lobby-auth p{margin:0 0 20px;color:#bcbcbc;line-height:1.5}
.lobby-auth p strong{color:#fff;overflow-wrap:anywhere}
.lobby-auth .lobby4601__field{margin-top:18px}
.lobby-auth .lobby4601__field input{
  min-height:52px;
  font-size:16px;
}
.lobby-auth__code{
  text-align:center;
  font-size:26px!important;
  font-weight:950;
  letter-spacing:.22em;
  font-variant-numeric:tabular-nums;
}
.lobby-auth__actions{display:grid;grid-template-columns:1fr 1.5fr;gap:9px;margin-top:20px}
.lobby-auth__actions button{min-width:0}
.lobby-license__actions{grid-template-columns:1fr}
#lobbyLicenseMessage{white-space:pre-line}
.lobby-license__shop{
  width:100%;
  min-width:0;
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  text-align:center;
  text-decoration:none;
  overflow-wrap:anywhere;
}
.lobby-license__shop:focus-visible{
  outline:3px solid rgba(255,176,93,.7);
  outline-offset:3px;
}
.lobby-auth__message{margin:8px 0 0!important;font-size:13px}
.lobby-auth__message--error{color:#ffb1a9!important}
.lobby-auth__message--status{min-height:20px;color:#a8d9b7!important}
.lobby-auth__secondary-actions{display:grid;gap:4px;margin-top:14px}
.lobby-auth__secondary-actions button{
  min-height:44px;
  border:0;
  border-radius:11px;
  color:#d5d5d5;
  background:transparent;
  text-decoration:underline;
  text-underline-offset:3px;
  cursor:pointer;
}
.lobby-auth__secondary-actions button:hover{color:#fff;background:rgba(255,255,255,.05)}
.lobby-auth__secondary-actions button:disabled{color:#777;cursor:not-allowed;text-decoration:none}
.lobby-auth button:disabled{opacity:.55;cursor:not-allowed}

@media(max-width:430px){
  .lobby-auth{
    width:calc(100% - 20px);
    max-height:calc(100dvh - max(20px,env(safe-area-inset-top)) - max(20px,env(safe-area-inset-bottom)));
  }
  .lobby-auth__card{padding:22px 16px max(22px,env(safe-area-inset-bottom))}
  .lobby-auth__actions{grid-template-columns:1fr}
  .lobby-auth__actions .lobby4601__primary{grid-row:1}
}
@media(max-width:430px){
  .lobby4601__choices{grid-template-columns:1fr}
  .lobby4601__choice{
    min-height:86px;
    display:grid;
    grid-template-columns:40px minmax(0,1fr);
    column-gap:10px;
    align-items:center;
  }
  .lobby4601__choice>span{grid-row:1 / span 2;font-size:24px}
  .lobby4601__choice strong{margin:0}
  .lobby4601__choice small{margin-top:2px}
  .lobby4601__player{grid-template-columns:34px minmax(0,1fr) auto}
  .lobby4601__ready{font-size:9px}
}
.lobby4601__connection.is-online{border-color:#36784a;color:#bff2cc;background:#12321e}
.lobby4601__connection.is-offline{border-color:#8b3434;color:#ffd1d1;background:#321414}
.lobby4601__connection.is-connecting{border-color:#8a6d28;color:#ffe4a6;background:#30260f}
.lobby4601__setup-warning{margin-top:12px;padding:12px 13px;border:1px solid #8a6d28;border-radius:13px;color:#f3d89b;background:#2b220d;font-size:12px;line-height:1.45}

.lobby4601__order-head{display:flex;justify-content:space-between;align-items:center;margin:2px 0 9px}
.lobby4601__order-head strong,.lobby4601__order-head small{display:block}
.lobby4601__order-head small{margin-top:3px;color:#8f8f8f;font-size:11px}
.lobby4601__order-controls{display:flex;justify-content:flex-end;gap:6px;width:74px}
.lobby4601__order-controls button{
  width:34px;height:34px;border:1px solid #5a3b1c;border-radius:9px;
  color:#ff9a3d;background:#261609;font-size:17px;font-weight:950;cursor:pointer
}
.lobby4601__order-controls button:disabled{opacity:.25;cursor:not-allowed}
.lobby4601__player.is-active-player{border-color:#f47700;box-shadow:0 0 0 1px rgba(244,119,0,.25)}
.lobby4601__ready.is-active-turn{color:#fff2d8;background:#8a4509}
.lobby4601__ready.is-paused{color:#aaa;background:#262626}
.lobby4601__player.is-paused-player{opacity:.68}

.lobby4601__resume{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:11px;
}
.lobby4601__resume-copy strong,.lobby4601__resume-copy small{display:block}
.lobby4601__resume-actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:7px;
}
.lobby4601__resume-actions button{
  min-height:40px;
  padding:7px 9px;
  border:1px solid #444;
  border-radius:10px;
  color:#ddd;
  background:#1d1d1d;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}
.lobby4601__resume-actions button.is-primary{
  border-color:#ff9d3b;
  color:#fff;
  background:linear-gradient(180deg,#ff9932,#f06e00);
}
@media(max-width:430px){
  .lobby4601__resume-actions{grid-template-columns:1fr}
  .lobby4601__player.has-order-controls{
    grid-template-columns:30px minmax(0,1fr) auto 66px;
    gap:5px;
    padding-inline:8px;
  }
  .lobby4601__player.has-order-controls .lobby4601__player-order{
    width:30px;
    height:30px;
  }
  .lobby4601__player.has-order-controls .lobby4601__ready{
    padding:5px 6px;
    font-size:9px;
  }
  .lobby4601__player.has-order-controls .lobby4601__order-controls{
    width:66px;
    gap:4px;
  }
  .lobby4601__player.has-order-controls .lobby4601__order-controls button{
    width:31px;
    height:34px;
  }
}

/* 4.6.0.2: Mobile lobby content remains reachable above fixed navigation. */
@media(max-width:699px){
  .lobby4601{
    overflow:visible;
    border-radius:18px;
  }

  .lobby4601__step.is-active{
    display:block;
    overflow:visible;
    padding-bottom:calc(26px + env(safe-area-inset-bottom));
  }

  .lobby4601__full:last-of-type{
    margin-bottom:8px;
  }
}

/* 4.6.0.3: hidden legacy resume UI removed; lobby navigation is automatic. */
.lobby4601__resume,
.lobby4601__resume-copy,
.lobby4601__resume-actions{
  display:none !important;
}
