:root {
  color-scheme: light;
  --ink: #2f261d;
  --muted: #786b61;
  --line: rgba(96, 66, 38, 0.16);
  --paper: rgba(255, 252, 245, 0.92);
  --accent: #ff705f;
  --accent-2: #6bc7d7;
  --gold: #f7c44e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 215, 116, 0.42), transparent 28%),
    radial-gradient(circle at 84% 10%, rgba(107, 199, 215, 0.34), transparent 28%),
    linear-gradient(135deg, #fff7e9 0%, #f9efe2 52%, #edf7f4 100%);
}
a { color: inherit; }
.account-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 24px;
  align-items: center;
  padding: 38px 0;
}
.intro-panel,
.account-card {
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 24px 70px rgba(68, 47, 27, 0.14);
}
.intro-panel {
  min-height: 620px;
  border-radius: 28px;
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.intro-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: conic-gradient(from 120deg, #ff6f61, #f8c94a, #71c88d, #68c7df, #b29df5, #ff6f61);
  opacity: 0.14;
}
.brand {
  position: absolute;
  top: 28px;
  left: 34px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.04em;
}
.brand span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff705f, #f6c44d 42%, #63cbd7 72%, #9b7cff);
}
.kicker {
  margin: 0 0 14px;
  color: #a75a24;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  max-width: 620px;
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
}
.lead {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.quick-actions,
.button-row,
.form-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.quick-actions a,
.link-button,
.primary,
.logout {
  min-height: 48px;
  border-radius: 16px;
  padding: 13px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 900;
}
.quick-actions a:first-child,
.primary {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #ff705f, #dc5fe8);
}
.quick-actions a:not(:first-child),
.ghost {
  background: rgba(255, 255, 255, 0.7);
}
.account-card {
  border-radius: 24px;
  padding: 28px;
}
.card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.card-head h2 { margin-bottom: 0; font-size: 28px; }
.state-pill {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
  white-space: nowrap;
}
.login-form { display: grid; gap: 14px; }
.login-form label { display: grid; gap: 8px; font-weight: 800; }
.login-form span { font-size: 13px; color: var(--muted); }
input {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
}
button { cursor: pointer; font: inherit; }
button:disabled { opacity: 0.62; cursor: wait; }
.message { min-height: 1.4em; color: #b14738; font-weight: 800; }
.form-links { justify-content: space-between; font-size: 13px; font-weight: 800; color: #7c5b3d; }
.turnstile-slot { min-height: 0; }
.profile-panel { display: grid; gap: 16px; }
.success {
  color: #208b6b;
  background: rgba(75, 192, 146, 0.13);
  border: 1px solid rgba(75, 192, 146, 0.26);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
}
.profile-main {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 1000;
  background: linear-gradient(135deg, #ff705f, #f6c44d 48%, #65c7d8);
}
.profile-main h3 { margin-bottom: 4px; font-size: 24px; }
.profile-main p { margin: 0; color: var(--muted); font-size: 13px; word-break: break-all; }
.balance-card {
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(247, 196, 78, 0.42);
  background: linear-gradient(135deg, rgba(255, 246, 210, 0.95), rgba(255, 255, 255, 0.72));
}
.balance-card span { display: block; color: #91621f; font-size: 13px; font-weight: 900; }
.balance-card strong { font-size: 34px; }
.friend-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  padding: 16px;
}
.friend-card span { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: 0.12em; }
.friend-card h4 { margin: 3px 0 8px; font-size: 22px; }
.friend-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.logout {
  width: 100%;
  background: #fff;
  color: var(--muted);
}
@media (max-width: 900px) {
  .account-shell { grid-template-columns: 1fr; padding: 20px 0; }
  .intro-panel { min-height: auto; padding: 92px 24px 28px; }
  .account-card { padding: 22px; }
}
