body {
  background-color: black;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

.form-container {
  max-width: 340px;
  margin: 30px auto;  /* less top spacing */
  padding: 12px;      /* tighter padding */
  background: #222;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  color: #fff;
}

.form-container h1 {
  font-size: 1.2rem;  /* smaller title */
  text-align: center;
  margin-bottom: 12px;
}

.form-box {
  display: flex;
  flex-direction: column;
}

.form-box label {
  font-size: 0.85rem;
  margin: 6px 0 3px;
}

.form-box input,
.form-box select {
  padding: 6px;       /* tighter input padding */
  font-size: 0.85rem;
  border: none;
  border-radius: 3px;
  margin-bottom: 10px;
}

.form-box input:focus,
.form-box select:focus {
  outline: 2px solid #007bff;
}

.btn {
  background: #007bff;
  color: #fff;
  padding: 6px;
  font-size: 0.85rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
}

.btn:hover {
  background: #0056b3;
}

.switch {
  text-align: center;
  margin-top: 8px;
  font-size: 0.8rem; /* smaller link text */
}

.switch a {
  color: #00aaff;
  text-decoration: none;
}

.switch a:hover {
  text-decoration: underline;
}

.profile-shell {
  width: min(760px, calc(100% - 32px));
  margin: 28px auto 56px;
  color: #fff;
}

.profile-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.profile-panel {
  background: #222;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.profile-panel h1,
.profile-panel h2 {
  margin: 0 0 14px;
}

.profile-panel h1 {
  font-size: 1.4rem;
}

.profile-panel h2 {
  font-size: 1rem;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.profile-list div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #333;
}

.profile-list dt {
  color: #cfcfcf;
}

.profile-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.profile-form {
  border-top: 1px solid #333;
  padding-top: 16px;
  margin-top: 16px;
}

.profile-games {
  border-top: 1px solid #333;
  padding-top: 16px;
  margin-top: 16px;
}

.profile-game-status {
  display: grid;
  gap: 8px;
}

.profile-game-status p {
  margin: 0;
}

.sandbox-danger-zone {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #683434;
  border-radius: 8px;
  background: #2a1818;
}

.sandbox-danger-zone[hidden] {
  display: none;
}

.sandbox-danger-zone h3,
.sandbox-danger-zone p {
  margin: 0;
}

.sandbox-danger-zone label {
  display: grid;
  gap: 5px;
}

.sandbox-danger-zone .terms {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.sandbox-danger-zone input[type="text"],
.sandbox-danger-zone input[type="password"] {
  background: #111;
  color: #fff;
  border: 1px solid #4b3333;
  border-radius: 8px;
  padding: 10px;
}

.danger-btn {
  background: #f4d0d0;
  color: #220909;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

.danger-btn:disabled {
  opacity: .65;
  cursor: wait;
}

.profile-form input {
  background: #111;
  color: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px;
}

.profile-action-link {
  display: inline-block;
  text-decoration: none;
}

.error {
  color: #ff8989;
}

@media (max-width: 560px) {
  .profile-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
