/* Shared shell + forms for play.html and profile sections (aligned with landing.css tokens). */
:root {
  --bg: #07101d;
  --bg-soft: rgba(10, 18, 31, 0.72);
  --panel: rgba(10, 19, 33, 0.82);
  --text: #edf3ff;
  --text-soft: #a9b8d1;
  --text-dim: #8091ad;
  --line: rgba(149, 180, 235, 0.16);
  --line-strong: rgba(149, 180, 235, 0.3);
  --accent: #5d86d8;
  --accent-2: #a2b8ec;
  --accent-ink: #07101d;
  --radius: 24px;
  --radius-sm: 16px;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
  --max-width: 1220px;
  --danger: #e87878;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.82rem 1.22rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.96rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: var(--accent-ink);
  box-shadow: 0 10px 32px rgba(93, 134, 216, 0.32);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-danger {
  background: rgba(232, 120, 120, 0.12);
  border-color: rgba(232, 120, 120, 0.45);
  color: #ffd4d4;
}

.btn-sm {
  min-height: 38px;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
}

.app-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem clamp(0.75rem, 2vw, 1.25rem);
  background: rgba(7, 16, 29, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.app-topbar-title {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.app-topbar-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-right: 0.25rem;
}

.app-modal-panel {
  width: min(420px, calc(100vw - 2rem));
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.app-modal-panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
}

.app-modal-panel > p {
  margin: 0 0 1rem;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.5;
}

.bensen-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.bensen-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.bensen-panel .hint {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 0.35rem;
}

.form-field input,
.form-field select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-field input:focus,
.form-field select:focus {
  outline: 2px solid rgba(93, 134, 216, 0.45);
  outline-offset: 1px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}
