/* 대기 화면. 들어오기 전의 화면이라 타워 시간과 상관없이 어둡다(docs/interface.md). 값은 점검 화면(apps/web/src/ops/ops.css)을 따랐다. */
.wq {
  --ink: #f4f2ec;
  --soft: rgb(244 242 236 / 66%);
  --faint: rgb(244 242 236 / 40%);
  --fill: rgb(255 255 255 / 6%);
  --line: rgb(244 242 236 / 12%);
  --lime: #c5f02c;
  --lime-ink: #1a2103;
  font-family: "Waat One", "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.01em;
  background:
    radial-gradient(70% 46% at 50% 30%, rgb(197 240 44 / 7%), transparent 70%),
    radial-gradient(90% 62% at 50% 46%, #1a2030, #0b0d13 70%) #0b0d13;
}
.wq *,
.wq *::before,
.wq *::after {
  box-sizing: border-box;
}
.wq-gate {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 26px 22px;
}
.wq-mark {
  border-radius: 13px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 50%);
  flex: none;
}
.wq-title {
  margin: 18px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.wq-graphic {
  width: 100%;
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (max-width: 600px) {
  .wq-graphic {
    margin-top: auto;
    padding-top: 18px;
  }
  .wq-note {
    margin-top: auto;
  }
  .wq-gate .wq-live {
    margin-bottom: 18px;
  }
}
@media (min-width: 601px) {
  .wq-gate {
    height: auto;
    padding: 40px 26px 26px;
  }
  .wq-note {
    margin-top: 26px;
  }
}
.wq-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.wq-hero small {
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 700;
}
.wq-hero b {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  font-variant-numeric: tabular-nums;
}
.wq-hero b i {
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--soft);
  margin-left: 4px;
}

/* 점. 영역의 크기는 인원과 상관없이 같고, 점의 묶음을 그 가운데에 둔다. */
.wq-stage {
  margin-top: 14px;
  display: grid;
  place-items: center;
  max-width: 100%;
}
.wq-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.wq-cap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 7px;
  white-space: nowrap;
}
.wq-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--dot));
  gap: var(--gap);
}
.wq-grid i {
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
}
.wq-grid .a {
  background: rgb(244 242 236 / 78%);
}
.wq-grid .b {
  background: rgb(244 242 236 / 15%);
}
.wq-grid .me {
  background: var(--lime);
  box-shadow:
    0 0 0 calc(var(--dot) / 3) rgb(197 240 44 / 24%),
    0 0 calc(var(--dot) * 1.5) rgb(197 240 44 / 70%);
}
/* 다음에 입장할 맨 앞의 점 하나만 깜빡인다. 인원이 적을 때 앞의 점이 모두 흐려 보이지 않게 한다. */
.wq-grid .a:first-child {
  animation: wq-leave 2.4s ease-in-out infinite;
}
.wq-key {
  margin-top: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px 14px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--soft);
}
.wq-key span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.wq-key i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.wq-key em {
  font-style: normal;
}
.wq-key .a {
  background: rgb(244 242 236 / 78%);
}
.wq-key .b {
  background: rgb(244 242 236 / 22%);
}
.wq-key .me {
  background: var(--lime);
}
.wq-key b,
.wq-total b {
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.wq-total {
  margin: 9px 0 0;
  font-size: 13px;
  font-weight: 650;
  color: var(--soft);
}

.wq-live {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 650;
}
.wq-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: wq-pulse 1.1s ease-in-out infinite alternate;
}
.wq-note {
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--fill);
  padding: 13px 14px 14px;
}
.wq-note p {
  margin: 0 0 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.wq-note a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--lime);
  color: var(--lime-ink);
  font-size: 13.5px;
  font-weight: 800;
  border-radius: 11px;
  padding: 10px;
}
.wq-note small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--faint);
}
.wq-bare .wq-login {
  margin-top: auto;
}
.wq-login {
  margin-top: 14px;
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgb(244 242 236 / 22%);
  text-underline-offset: 3px;
}
@keyframes wq-pulse {
  from {
    opacity: 0.45;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1.12);
  }
}
@keyframes wq-leave {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wq * {
    animation: none !important;
  }
}

@font-face {
  font-family: "Waat One";
  src: url("./WaatOne-Core.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color-scheme: dark;
  min-height: 100svh;
}
[hidden] {
  display: none !important;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
.wq-stage {
  width: 275px;
  height: 229px;
}
.wq-login {
  background: none;
  border: 0;
  padding: 0;
}
.wq-note a {
  text-decoration: none;
  overflow-wrap: anywhere;
}
.wq-note p:last-child {
  margin-bottom: 0;
}
.wq-note {
  overflow-wrap: anywhere;
}
@media (min-width: 601px) {
  .wq-stage {
    width: 415px;
    height: 159px;
  }
  .wq-bare .wq-graphic,
  .wq-bare .wq-login {
    margin-top: auto;
  }
}
dialog {
  width: min(330px, 90vw);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #181c26;
  color: var(--ink);
}
dialog::backdrop {
  background: rgb(0 0 0 / 70%);
}
dialog h2 {
  font-size: 19px;
  margin: 0 0 16px;
}
dialog form {
  display: grid;
  gap: 12px;
}
dialog input,
dialog button {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
dialog label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
dialog button[type="submit"] {
  background: var(--lime);
  color: var(--lime-ink);
}
dialog p {
  margin: 0;
  font-size: 13px;
}
