/* Tester sign-up: the button in the corner and the dialog.  Loaded after style.css and lang.css. */

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tester-open {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.75rem;
  padding: 0 1.05rem;
  border: 1px solid rgb(167 139 250 / 0.6);
  background: rgb(109 40 217 / 0.35);
  color: #fff;
  font: 600 0.74rem/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}
.shame-open {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.05rem;
  border: 1px solid rgb(248 113 113 / 0.7);
  background: rgb(185 28 28 / 0.45);
  color: #fff;
  font: 600 0.74rem/1 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s, border-color 0.2s;
}
.shame-open:hover,
.shame-open:focus-visible {
  background: rgb(220 38 38 / 0.8);
  border-color: #fecaca;
}
html[lang="ko"] .shame-open,
html[lang="ja"] .shame-open,
html[lang="ar"] .shame-open {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}
html[lang="ar"] .shame-open {
  letter-spacing: 0;
}
.tester-open:hover,
.tester-open:focus-visible {
  background: var(--violet-d);
  border-color: var(--lilac);
}
.tester-open svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: var(--lilac);
}
html[lang="ko"] .tester-open,
html[lang="ja"] .tester-open,
html[lang="ar"] .tester-open {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}
html[lang="ar"] .tester-open {
  letter-spacing: 0;
}

@media (max-width: 34rem) {
  .top {
    flex-wrap: wrap;
  }
  .tester-open span {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

body.modal-open {
  overflow: hidden;
}

.tm-bg {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgb(5 5 9 / 0.74);
  backdrop-filter: blur(6px);
}
.tm {
  width: min(28rem, 100%);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  border: 1px solid var(--line-strong);
  background: rgb(22 22 30 / 0.97);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.06);
}
.tm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.tm-head h2 {
  margin: 0;
  font: 800 1.05rem/1.2 "Saira", "Arial", sans-serif;
  font-stretch: 125%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
html[lang="ko"] .tm-head h2,
html[lang="ja"] .tm-head h2,
html[lang="ar"] .tm-head h2 {
  font-family: inherit;
  font-stretch: 100%;
  text-transform: none;
}
.tm-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.tm-close:hover {
  color: #fff;
}
.tm-body {
  padding: 1.1rem 1.25rem 1.4rem;
}
.tm-intro {
  margin: 0 0 1rem;
  color: var(--dim);
  font-size: 0.95rem;
}
.tm-done {
  margin: 0 0 0.6rem;
  color: var(--lilac);
  font-size: 1.05rem;
}
.tf {
  display: block;
  margin-bottom: 0.85rem;
}
.tf-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--lilac);
  font: 500 0.7rem/1.2 "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
html[lang="ko"] .tf-label,
html[lang="ja"] .tf-label,
html[lang="ar"] .tf-label {
  font-family: inherit;
  letter-spacing: 0.02em;
  text-transform: none;
}
.tf input {
  width: 100%;
  min-height: 2.8rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line-strong);
  background: rgb(255 255 255 / 0.05);
  color: var(--fg);
  font: 500 1rem/1 "Geist", system-ui, sans-serif;
  border-radius: 0;
}
.tf input:focus {
  outline: 2px solid var(--violet);
  outline-offset: 0;
  border-color: var(--lilac);
}
#t-key {
  font-family: "Geist Mono", ui-monospace, monospace;
  letter-spacing: 0.08em;
}
.tf-hint {
  display: block;
  margin-top: 0.25rem;
  color: var(--mute);
  font-size: 0.78rem;
}
.tm-msg {
  min-height: 1.4rem;
  margin: 0 0 0.6rem;
  color: #fca5a5;
  font-size: 0.9rem;
}
.tm-submit {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.tm-submit[disabled] {
  opacity: 0.6;
  cursor: progress;
}
