#screen-landing,
#screen-loading,
#screen-direct-host,
#screen-direct-guest {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top center, rgba(114, 137, 218, 0.16) 0%, var(--background-body) 45%, var(--background-dark) 100%);
  width: 100%;
}

#screen-landing,
#screen-loading {
  height: 100vh;
  padding: 16px;
}

#screen-loading {
  text-align: center;
  gap: 20px;
}

.loading-card {
  background-color: var(--background);
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-soft);
}

.loading-card h2 {
  font-size: 20px;
  color: var(--text-bright);
}

.loading-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.landing-card {
  background-color: var(--background);
  padding: 32px;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  width: 100%;
  max-width: 440px;
  text-align: center;
  border: 1px solid var(--border-soft);
}

.landing-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  border-radius: 60px;
  background-color: var(--background-dark);
  border: 1px solid rgba(114, 137, 218, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.landing-card h1 {
  font-size: 24px;
  margin-bottom: 8px;
  color: var(--text-bright);
}

.landing-card p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

/* Direct 1:1 Mode Screens */
#screen-direct-host,
#screen-direct-guest {
  min-height: 100vh;
  padding: 20px;
  overflow-y: auto;
}

.direct-card {
  background: var(--background);
  width: 100%;
  max-width: 620px;
  padding: 28px;
  border-radius: 10px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.direct-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--accent-primary);
}

.direct-card-header h2 {
  color: var(--text-bright);
  margin-bottom: 2px;
}

.direct-card-subtitle {
  color: var(--text-muted);
  font-size: 12px;
}

.direct-card h2 {
  font-size: 22px;
  margin-bottom: 10px;
}

.direct-card p {
  color: var(--text-main);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
}

.direct-status {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--background-dark);
  border: 1px solid var(--border-soft);
  border-radius: 6px;
  padding: 12px;
  margin: 16px 0;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.4;
}

.direct-status .status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-warning);
  flex: 0 0 auto;
}

.direct-status.success .status-dot {
  background: var(--accent-success);
}

.direct-status.error .status-dot {
  background: var(--accent-danger);
}

.direct-url-box {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.direct-url-box input,
.direct-card input,
.direct-card textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  background: var(--background-input);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--form-text);
  font-size: 13px;
  outline: none;
  user-select: text;
  transition: background-color var(--animation-duration) linear, border-color var(--animation-duration) linear, box-shadow var(--animation-duration) linear;
}

.direct-card textarea {
  resize: vertical;
}

.direct-url-box input::placeholder,
.direct-card input::placeholder,
.direct-card textarea::placeholder {
  color: var(--form-placeholder);
}

.direct-url-box input:focus,
.direct-card input:focus,
.direct-card textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px var(--focus);
}

.direct-card label {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 14px 0 7px;
}

.direct-share-button {
  min-height: 54px;
  font-size: 16px;
  margin: 12px 0;
}

.direct-note {
  color: var(--text-muted) !important;
  font-size: 12px !important;
  margin-top: 14px !important;
}

.direct-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.direct-actions > * {
  flex: 1;
}

@media (max-width: 560px) {
  .direct-card,
  .landing-card {
    padding: 22px;
  }

  .direct-url-box {
    flex-direction: column;
  }

  .direct-actions {
    flex-direction: column;
  }
}
