/* Shared Discord login gate for iytah.wtf */
.iytah-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    radial-gradient(120% 80% at 50% -10%, #1a1a1a 0%, transparent 55%),
    linear-gradient(180deg, #0a0a0a 0%, #050505 40%, #000 100%);
  color: #f2f2f2;
  font-family: "IBM Plex Sans", "IBM Plex Mono", sans-serif;
}

.iytah-gate[hidden] {
  display: none !important;
}

.iytah-gate-card {
  width: min(100%, 22rem);
  text-align: center;
}

.iytah-gate-brand {
  font-family: Syne, "IBM Plex Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.55rem;
}

.iytah-gate-sub {
  color: #9a9a9a;
  font-size: 0.95rem;
  margin-bottom: 1.6rem;
}

.iytah-gate-line {
  margin-top: 1.1rem;
  color: #9a9a9a;
  font-family: "IBM Plex Mono", "IBM Plex Sans", monospace;
  font-size: clamp(0.85rem, 2.6vw, 1rem);
  line-height: 1.55;
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

.iytah-gate-invite-msg {
  margin: 0 0 1.35rem;
  max-width: none;
  color: #f2f2f2;
  white-space: pre-wrap;
  word-break: break-word;
}

.iytah-gate-cryptic .iytah-gate-brand {
  margin-bottom: 0;
}

.iytah-gate-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.iytah-gate-btn:hover {
  opacity: 0.88;
}

.iytah-gate-error {
  margin-top: 1rem;
  color: #ff8f8f;
  font-size: 0.85rem;
}

.iytah-gate-note {
  margin-top: 1.1rem;
  color: #6e6e6e;
  font-size: 0.75rem;
}

body.iytah-locked > :not(.iytah-gate):not(script):not(link):not(style) {
  visibility: hidden !important;
}

.iytah-account {
  position: fixed;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 9000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
  max-width: min(22rem, calc(100vw - 1.5rem));
  padding: 0.35rem 0.45rem 0.35rem 0.7rem;
  border: 1px solid #fff;
  background: rgba(0, 0, 0, 0.85);
  color: #f2f2f2;
  font-family: "IBM Plex Mono", "IBM Plex Sans", monospace;
  font-size: 0.72rem;
}

.iytah-account-name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #9a9a9a;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.iytah-account-name:hover {
  color: #f2f2f2;
}

.iytah-account-panel {
  flex: 1 1 100%;
  display: grid;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.iytah-account-panel[hidden] {
  display: none !important;
}

.iytah-account-stat {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #9a9a9a;
}

.iytah-account-stat strong {
  color: #f2f2f2;
  font-weight: 500;
  text-align: right;
}

.iytah-account-hint {
  margin: 0.15rem 0 0;
  color: #6e6e6e;
  font-size: 0.62rem;
  line-height: 1.4;
}

.iytah-invite-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.iytah-invite-form label {
  display: grid;
  gap: 0.3rem;
  color: #9a9a9a;
  text-align: left;
}

.iytah-invite-form input,
.iytah-invite-form textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.45rem 0.5rem;
  border: 1px solid #fff;
  background: #000;
  color: #f2f2f2;
  font: inherit;
}

.iytah-invite-form textarea {
  min-height: 4.2rem;
  resize: vertical;
}

.iytah-invite-go,
.iytah-invite-copy {
  padding: 0.4rem 0.55rem;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font: inherit;
  cursor: pointer;
}

.iytah-invite-go:hover,
.iytah-invite-copy:hover {
  opacity: 0.85;
}

.iytah-invite-result {
  display: flex;
  gap: 0.35rem;
  align-items: stretch;
}

.iytah-invite-result[hidden] {
  display: none !important;
}

.iytah-invite-result input {
  flex: 1;
  min-width: 0;
  padding: 0.4rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: #000;
  color: #f2f2f2;
  font: inherit;
}

.iytah-invite-msg {
  margin: 0.2rem 0 0;
  color: #9a9a9a;
  font-size: 0.65rem;
  line-height: 1.35;
}

.iytah-invite-msg.is-ok {
  color: #9adf9a;
}

.iytah-invite-msg.is-error {
  color: #ff8f8f;
}

.iytah-account-logout {
  padding: 0.35rem 0.55rem;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font: inherit;
  cursor: pointer;
}

.iytah-account-logout:hover {
  opacity: 0.85;
}

.iytah-account-admin {
  padding: 0.35rem 0.55rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font: inherit;
  text-decoration: none;
}

.iytah-account-admin:hover {
  opacity: 0.85;
}
