@charset "UTF-8";
/* Theme colors (2026-11-19): dark by default, light when <html data-theme="light">. theme.js picks it. */
:root {
  color-scheme: dark;
  --paper: #0d1119;
  --surface: #151b27;
  --surface-muted: #1c2332;
  --surface-3: #232b3c;
  --line: #2a3345;
  --line-strong: #3a4559;
  --ink: #eef1f7;
  --muted: #9ba6b9;
  --muted-strong: #c4ccd8;
  --placeholder: #7c879b;
  --accent: #ff4d40;
  --accent-strong: #ff6a5e;
  --accent-deep: #b3190f;
  --accent-soft: #3a1716;
  --accent-line: #6b2723;
  --error: #ff8f82;
  --warn-soft: #2a2416;
  --warn-line: #5a4824;
  --amber: #f7bd48;
  --success-soft: #13261c;
  --success-line: #245038;
  --success: #6fdc9f;
  --shade: #0a0d14;
  --glow: #3d6bff;
}
html[data-theme="light"] {
  color-scheme: light;
  --paper: #f6f7f9;
  --surface: #ffffff;
  --surface-muted: #f2f4f7;
  --surface-3: #e9edf2;
  --line: #dde2e9;
  --line-strong: #c3cad5;
  --ink: #1f2430;
  --muted: #5b6573;
  --muted-strong: #444d5b;
  --placeholder: #8a93a3;
  --accent: #d42f23;
  --accent-strong: #e8473b;
  --accent-deep: #a8150c;
  --accent-soft: #fff1ef;
  --accent-line: #f3cdc7;
  --error: #b42318;
  --warn-soft: #fbf6ec;
  --warn-line: #ecd9b5;
  --amber: #8a5a00;
  --success-soft: #eaf5ee;
  --success-line: #c9e5d4;
  --success: #1f7a4a;
  --shade: #272e39;
  --glow: #3d6bff;
}
/* Text over cover art stays on the dark palette in both themes. */
html[data-theme="light"] .store-welcome.has-hero, html[data-theme="light"] .portal-hero {
  --paper: #0d1119;
  --surface: #151b27;
  --surface-muted: #1c2332;
  --surface-3: #232b3c;
  --line: #2a3345;
  --line-strong: #3a4559;
  --ink: #eef1f7;
  --muted: #9ba6b9;
  --muted-strong: #c4ccd8;
  --placeholder: #7c879b;
  --accent: #ff4d40;
  --accent-strong: #ff6a5e;
  --accent-deep: #b3190f;
  --accent-soft: #3a1716;
  --accent-line: #6b2723;
  --error: #ff8f82;
  --warn-soft: #2a2416;
  --warn-line: #5a4824;
  --amber: #f7bd48;
  --success-soft: #13261c;
  --success-line: #245038;
  --success: #6fdc9f;
  --shade: #0a0d14;
  --glow: #3d6bff;
  color: var(--ink);
}
:root {
  --font: -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  font: 15px/1.7 var(--font);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: .6;
}
svg {
  display: inline-block;
  vertical-align: middle;
  width: 21px;
  height: 21px;
  flex: none;
}
a,button,input,summary {
  -webkit-tap-highlight-color: transparent;
}
a,button {
  transition: background .18s,color .18s,border-color .18s,box-shadow .18s;
}
a:focus-visible,button:focus-visible,summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
[hidden] {
  display: none!important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 12px 20px;
  background: var(--accent);
  color: #ffffff;
  z-index: 20;
  border-radius: 6px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 21px 32px;
  display: flex;
  align-items: center;
  gap: 42px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1.1px;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-size: 11px;
  letter-spacing: 1.4px;
  font-weight: 500;
  margin-top: 5px;
  color: var(--muted);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 47px;
  background: var(--accent);
  color: white;
  border-radius: 12px;
  box-shadow: 0 3px 0 var(--accent-deep);
}
.brand-mark svg {
  width: 27px;
  height: 27px;
}
.header-inner nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.header-inner nav a {
  font-size: 15px;
  color: var(--muted);
  position: relative;
  padding: 10px 0;
}
.header-inner nav a[aria-current=page] {
  color: var(--accent);
  font-weight: 600;
}
.header-inner nav a[aria-current=page]:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.local-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  white-space: nowrap;
}
.local-label i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 11px 19px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  white-space: nowrap;
}
.button svg {
  width: 18px;
  height: 18px;
}
.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 4px #00000012;
}
.button.primary:hover {
  background: var(--accent-strong);
}
.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}
.button.secondary:hover {
  background: var(--surface-muted);
  border-color: var(--line);
}
.button.quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
}
.button.quiet:hover {
  background: var(--surface-muted);
}
.button.full {
  width: 100%;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 14px;
  min-height: 44px;
  padding: 9px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-button svg {
  width: 16px;
  height: 16px;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 45px 32px 60px;
  min-height: 74vh;
  outline: none;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 550;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(370px,.9fr);
  gap: 90px;
  align-items: start;
  padding: 24px 0 28px;
}
.auth-intro {
  padding: 28px 0;
}
.auth-intro h1 {
  font-size: 47px;
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -1.4px;
  margin: 17px 0 22px;
}
.auth-intro h1>span {
  color: var(--accent);
}
.auth-intro>p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--muted);
  max-width: 360px;
}
.intro-list {
  list-style: none;
  padding: 0;
  margin: 33px 0 0;
  display: grid;
  gap: 24px;
}
.intro-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.intro-list .feature-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-muted);
  color: var(--muted);
  flex: none;
  margin-top: 2px;
}
.feature-symbol svg {
  width: 22px;
  height: 22px;
}
.intro-list strong {
  font-size: 15px;
  font-weight: 550;
  color: var(--muted);
  display: block;
}
.intro-list p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 4px;
}
.intro-local-note {
  display: flex;
  align-items: start;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin-top: 35px;
  max-width: 340px;
}
.intro-local-note svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
}
.auth-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 8px 27px #00000006;
  padding: 29px;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-muted);
  padding: 5px;
  border-radius: 8px;
  margin-bottom: 28px;
  gap: 5px;
}
.auth-tabs button {
  border: 0;
  background: transparent;
  min-height: 44px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 15px;
}
.auth-tabs button[aria-selected=true] {
  background: var(--surface);
  box-shadow: 0 2px 6px #0000000a;
  color: var(--accent);
  font-weight: 550;
}
.auth-card h2 {
  font-size: 25px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -.6px;
  margin-bottom: 8px;
}
.form-intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 23px;
}
.form-field {
  display: block;
  margin: 18px 0;
}
.form-field>span:first-child {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 7px;
}
.form-field input {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 12px;
  min-height: 46px;
  font-size: 15px;
  line-height: 1.5;
}
.form-field input::placeholder {
  color: var(--muted);
}
.field-help {
  display: block;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 6px;
}
.password-field {
  display: flex;
  position: relative;
}
.password-field input {
  padding-right: 65px;
}
.password-toggle {
  position: absolute;
  right: 3px;
  top: 3px;
  bottom: 3px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  min-width: 52px;
  font-size: 13px;
}
.password-toggle:hover {
  background: var(--surface-muted);
}
.auth-card form>.button.full {
  margin-top: 8px;
}
.form-afterword {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.9;
  margin-top: 18px;
}
.form-afterword button {
  min-height: 34px;
  font-size: 13px;
}
.message {
  font-size: 14px;
  line-height: 1.9;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.message.error {
  color: var(--error);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.message.note {
  color: var(--amber);
  background: var(--warn-soft);
  border: 1px solid var(--line);
  border-color: var(--warn-line);
}
.message.success {
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid var(--line);
  border-color: var(--success-line);
}
.auth-card .message {
  margin: 18px 0 10px;
}
.step-line {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.step-line .current {
  color: var(--accent);
  font-weight: 550;
}
.step-line .divider {
  width: 26px;
  height: 1px;
  background: var(--surface-3);
}
.register-explainer {
  padding: 18px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 18px 0 23px;
}
.register-explainer .bot-name {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 550;
  font-size: 15px;
  color: var(--muted);
}
.register-explainer .bot-name svg {
  width: 20px;
  height: 20px;
}
.register-explainer p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 9px;
}
.group-label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 13px;
  overflow-wrap: anywhere;
}
.group-label strong {
  font-weight: 550;
  color: var(--muted);
}
.challenge-box {
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px;
  margin: 18px 0 14px;
}
.challenge-box h3 {
  font-size: 15px;
  color: var(--muted);
  font-weight: 550;
  line-height: 1.8;
}
.challenge-box p {
  font-size: 14px;
  color: var(--muted);
  margin: 7px 0 13px;
  line-height: 1.9;
}
.command-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.command-input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 11px 12px;
  font: 500 16px/1.5 var(--font);
  letter-spacing: .4px;
}
.command-row .button {
  padding: 10px 13px;
  min-height: 46px;
  font-size: 14px;
  flex: none;
}
.challenge-time {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
  line-height: 1.8;
}
.verification-state {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  padding: 15px 0;
}
.verification-state svg {
  width: 18px;
  height: 18px;
  margin-top: 4px;
}
.verification-state strong {
  display: block;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
}
.verification-state span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.verification-state.verified {
  color: var(--success);
}
.verification-state.failed strong {
  color: var(--muted);
}
.verification-state .pulse {
  width: 8px;
  height: 8px;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  margin: 10px 5px 0;
  flex: none;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--line) 19%, transparent);
  }
}
.challenge-actions {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.verified-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--success-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 20px 0;
  color: var(--success);
  border-color: var(--success-line);
}
.verified-person>span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 39px;
  background: var(--success-soft);
  border-radius: 9px;
  color: var(--success);
}
.verified-person strong {
  display: block;
  font-size: 15px;
  color: var(--success);
  font-weight: 550;
}
.verified-person p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.auth-footer-help {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 17px;
  margin-top: 24px;
  line-height: 1.9;
}
.auth-footer-help summary {
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  min-height: 39px;
  padding: 7px 0;
}
.auth-footer-help p {
  margin-top: 6px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 29px;
}
.page-heading h1 {
  font-size: 35px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 9px 0;
}
.page-heading h1>span {
  color: var(--accent);
}
.page-heading p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.9;
}
.page-heading-actions {
  display: flex;
  gap: 10px;
  flex: none;
}
.summary-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 24px;
}
.profile-card,.balance-card,.namecard-panel,.sync-panel {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  padding: 27px;
}
.profile-card {
  display: flex;
  gap: 20px;
  align-items: center;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 73px;
  height: 73px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: 29px;
  font-weight: 500;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  line-height: 1;
}
.profile-avatar img#member-avatar {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}
.profile-avatar>span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  text-align: center;
  color: var(--muted);
  background: var(--surface-muted);
  font: inherit;
  line-height: 1;
}
.profile-avatar svg {
  width: 34px;
  height: 34px;
  stroke-width: 1.2;
}
.profile-card .eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
}
.profile-card h2 {
  font-size: 25px;
  line-height: 1.6;
  letter-spacing: -.5px;
  margin: 4px 0 5px;
  font-weight: 550;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.profile-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.profile-account {
  font-size: 13px;
  color: var(--muted);
  margin-top: 7px;
}
.balance-card {
  background: var(--surface);
  border-color: var(--line);
  position: relative;
  overflow: hidden;
}
.balance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 14px;
}
.balance-top>span {
  display: flex;
  align-items: center;
  gap: 9px;
}
.balance-top svg {
  width: 20px;
  height: 20px;
}
.sync-badge {
  font-size: 12px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  color: var(--success);
  border-radius: 5px;
  background: var(--success-soft);
  white-space: nowrap;
  border-color: var(--success-line);
}
.sync-badge.offline {
  border-color: var(--warn-line);
  color: var(--amber);
  background: var(--warn-soft);
}
.balance-value {
  display: flex;
  align-items: baseline;
  gap: 11px;
  margin: 13px 0 5px;
  min-height: 63px;
}
.balance-value strong {
  font-size: 47px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -1.8px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.balance-value strong.no-balance {
  font-size: 28px;
  letter-spacing: -.5px;
  line-height: 1.6;
}
.balance-value>span {
  font-size: 15px;
  color: var(--muted);
}
.balance-time {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 310px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.panel-heading h2 {
  font-size: 21px;
  font-weight: 550;
  letter-spacing: -.4px;
}
.panel-heading>span {
  font-size: 13px;
  color: var(--muted);
}
.namecard-frame {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  border-radius: 9px;
  overflow: hidden;
  padding: 15px;
}
.namecard-frame img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 700px;
  object-fit: contain;
}
.namecard-empty {
  text-align: center;
  max-width: 370px;
  padding: 28px 20px;
}
.namecard-empty>span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 51px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  margin: 0 auto 15px;
}
.namecard-empty svg {
  width: 25px;
  height: 25px;
}
.namecard-empty h3 {
  font-size: 17px;
  font-weight: 550;
  line-height: 1.8;
  color: var(--muted);
}
.namecard-empty p {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 8px;
}
.namecard-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin-top: 15px;
}
.sync-panel {
  padding: 25px;
}
.sync-panel h2 {
  font-size: 18px;
  font-weight: 550;
  letter-spacing: -.3px;
  margin-bottom: 19px;
}
.sync-list {
  margin: 0;
  display: grid;
  gap: 15px;
}
.sync-list>div {
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.sync-list>div:last-child {
  border: 0;
  padding-bottom: 0;
}
.sync-list dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.sync-list dd {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  overflow-wrap: anywhere;
  margin: 0;
}
.sync-panel .sync-note {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 17px;
  line-height: 1.9;
}
.sync-panel .button {
  width: 100%;
  margin-top: 18px;
  font-size: 14px;
}
.link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 19px;
  min-height: 40px;
}
.link-row svg {
  width: 17px;
  height: 17px;
}
.empty-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 51px;
  background: var(--surface-muted);
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 13px;
  margin: 0 auto 17px;
}
.empty-symbol svg {
  width: 25px;
  height: 25px;
}
.loading-panel {
  text-align: center;
  padding: 90px 20px;
}
.loading-panel h1 {
  font-size: 27px;
  font-weight: 550;
  line-height: 1.6;
  margin-top: 14px;
}
.loading-panel p {
  font-size: 15px;
  color: var(--muted);
  margin: 10px 0;
}
.loading-panel>.button {
  margin-top: 15px;
}
.site-footer {
  max-width: 1136px;
  margin: auto;
  padding: 26px 0 35px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
}
.site-footer>a {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.6px;
  color: var(--muted);
}
.site-footer>a>span {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 14px;
}
.site-footer>p {
  font-size: 13px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
  padding: 14px 22px;
  background: var(--shade);
  color: #ffffff;
  border: 1px solid var(--muted-strong);
  box-shadow: 0 7px 25px #00000025;
  border-radius: 9px;
  font-size: 14px;
  line-height: 1.8;
  z-index: 30;
}
@media(max-width:1050px) {
  .auth-layout {
    gap: 45px;
    grid-template-columns: minmax(0,1fr) minmax(350px,1fr);
  }
  .auth-intro h1 {
    font-size: 40px;
  }
  .auth-card {
    padding: 25px;
  }
  .intro-list {
    gap: 21px;
  }
  .summary-grid {
    gap: 20px;
  }
  .dashboard-layout {
    gap: 20px;
    grid-template-columns: minmax(0,1fr) 285px;
  }
  .profile-card,.balance-card {
    padding: 24px;
  }
  .profile-card {
    gap: 15px;
  }
  .profile-avatar {
    width: 62px;
    height: 62px;
    border-radius: 17px;
  }
  .profile-card h2 {
    font-size: 23px;
  }
  .site-footer {
    margin: 0 32px;
  }
  .header-inner {
    gap: 28px;
  }
}
@media(max-width:800px) {
  .header-inner {
    padding: 19px 24px;
    gap: 23px;
  }
  .brand {
    font-size: 24px;
  }
  .brand-mark {
    width: 40px;
    height: 43px;
  }
  .header-inner nav {
    gap: 24px;
  }
  .local-label {
    font-size: 12px;
    padding: 5px 8px;
  }
  main {
    padding: 32px 24px 47px;
  }
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 0;
    max-width: 540px;
    margin: auto;
  }
  .auth-intro {
    padding: 7px 0;
  }
  .auth-intro h1 {
    font-size: 36px;
    margin: 13px 0 15px;
  }
  .auth-intro h1 br {
    display: none;
  }
  .auth-intro>p {
    max-width: none;
    font-size: 15px;
  }
  .intro-list {
    display: none;
  }
  .intro-local-note {
    margin-top: 14px;
    max-width: none;
    font-size: 13px;
  }
  .auth-card {
    padding: 28px;
  }
  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }
  .profile-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
  .profile-avatar {
    width: 47px;
    height: 47px;
    font-size: 24px;
    border-radius: 13px;
  }
  .profile-avatar svg {
    width: 27px;
    height: 27px;
  }
  .profile-card h2 {
    font-size: 23px;
  }
  .balance-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .balance-value {
    margin: 18px 0 11px;
  }
  .balance-value strong {
    font-size: 44px;
  }
  .balance-value strong.no-balance {
    font-size: 25px;
  }
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .sync-list {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .sync-list>div {
    border: 0;
    padding: 0;
  }
  .sync-panel .sync-note {
    margin-top: 18px;
  }
  .sync-panel .button {
    width: auto;
    margin-top: 16px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 31px;
  }
  .page-heading-actions {
    flex-direction: column;
    gap: 8px;
  }
  .page-heading-actions .button {
    padding: 9px 13px;
    min-height: 42px;
  }
  .namecard-frame {
    min-height: 230px;
  }
  .site-footer {
    margin: 0 24px;
  }
  .site-footer>p {
    font-size: 12px;
  }
}
@media(max-width:600px) {
  body {
    font-size: 14px;
  }
  .header-inner {
    padding: 17px 20px 13px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 24px;
    gap: 10px;
  }
  .brand small {
    font-size: 10px;
    letter-spacing: 1.1px;
  }
  .brand-mark {
    width: 38px;
    height: 41px;
    border-radius: 10px;
  }
  .brand-mark svg {
    width: 24px;
    height: 24px;
  }
  .header-inner nav {
    margin-left: 0;
    order: 3;
    width: 100%;
    gap: 28px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
    margin-top: 6px;
  }
  .header-inner nav a {
    font-size: 14px;
    padding: 8px 0;
  }
  .header-inner nav a[aria-current=page]:after {
    bottom: 0;
  }
  .local-label {
    margin-left: auto;
    font-size: 11px;
    padding: 5px 8px;
    gap: 5px;
  }
  .local-label i {
    width: 4px;
    height: 4px;
  }
  main {
    padding: 27px 20px 40px;
  }
  .auth-layout {
    gap: 22px;
  }
  .auth-intro {
    padding: 0;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.6px;
  }
  .auth-intro h1 {
    font-size: 31px;
    line-height: 1.45;
    letter-spacing: -.8px;
    margin: 12px 0 14px;
  }
  .auth-intro>p {
    font-size: 14px;
    line-height: 1.9;
  }
  .intro-local-note {
    font-size: 12px;
    line-height: 1.9;
    margin-top: 11px;
    gap: 7px;
  }
  .intro-local-note svg {
    width: 14px;
    height: 14px;
    margin-top: 3px;
  }
  .auth-card {
    padding: 23px 20px;
    border-radius: 12px;
  }
  .auth-tabs {
    margin-bottom: 23px;
    padding: 4px;
    gap: 4px;
  }
  .auth-tabs button {
    font-size: 14px;
    min-height: 43px;
  }
  .auth-card h2 {
    font-size: 23px;
    line-height: 1.5;
  }
  .form-intro {
    font-size: 14px;
    line-height: 1.9;
    margin-bottom: 21px;
  }
  .form-field {
    margin: 17px 0;
  }
  .form-field>span:first-child {
    font-size: 14px;
  }
  .form-field input {
    font-size: 15px;
    min-height: 46px;
    padding: 11px;
  }
  .password-field input {
    padding-right: 61px;
  }
  .password-toggle {
    font-size: 13px;
    padding: 0 9px;
    min-width: 49px;
  }
  .field-help {
    font-size: 12px;
    line-height: 1.9;
  }
  .button {
    font-size: 14px;
    min-height: 45px;
    padding: 11px 16px;
  }
  .form-afterword {
    font-size: 13px;
    margin-top: 16px;
  }
  .auth-footer-help {
    font-size: 12px;
    line-height: 1.9;
    margin-top: 21px;
    padding-top: 15px;
  }
  .auth-footer-help summary {
    font-size: 14px;
  }
  .step-line {
    font-size: 12px;
    gap: 8px;
    margin-bottom: 17px;
  }
  .step-line .divider {
    width: 20px;
  }
  .register-explainer {
    padding: 16px;
    margin: 17px 0 20px;
  }
  .register-explainer .bot-name {
    font-size: 15px;
    gap: 8px;
  }
  .register-explainer p {
    font-size: 14px;
    line-height: 1.9;
  }
  .challenge-box {
    padding: 15px;
    margin: 18px 0 12px;
  }
  .challenge-box h3 {
    font-size: 14px;
    line-height: 1.9;
  }
  .challenge-box p {
    font-size: 14px;
    line-height: 1.9;
  }
  .command-row {
    flex-direction: column;
    gap: 9px;
  }
  .command-input {
    font-size: 16px;
    padding: 12px 11px;
    min-height: 47px;
    text-align: center;
  }
  .command-row .button {
    width: 100%;
    font-size: 14px;
  }
  .challenge-time {
    font-size: 12px;
  }
  .verification-state {
    font-size: 14px;
    gap: 8px;
    padding: 13px 0;
  }
  .verification-state strong {
    font-size: 14px;
  }
  .verification-state span {
    font-size: 12px;
    line-height: 1.9;
  }
  .challenge-actions {
    gap: 9px;
    justify-content: flex-start;
  }
  .challenge-actions .text-button {
    font-size: 13px;
    min-height: 40px;
  }
  .verified-person {
    padding: 14px;
    gap: 10px;
    margin: 18px 0;
  }
  .verified-person strong {
    font-size: 14px;
  }
  .verified-person p {
    font-size: 12px;
  }
  .page-heading {
    gap: 12px;
    margin: 0 0 23px;
  }
  .page-heading h1 {
    font-size: 28px;
    margin: 8px 0;
    letter-spacing: -.6px;
  }
  .page-heading p {
    font-size: 14px;
    line-height: 1.9;
  }
  .page-heading-actions .button {
    font-size: 13px;
    padding: 9px 11px;
    min-height: 40px;
    gap: 6px;
  }
  .page-heading-actions .button svg {
    width: 16px;
    height: 16px;
  }
  .summary-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .profile-card,.balance-card {
    padding: 23px;
    border-radius: 11px;
  }
  .profile-card {
    flex-direction: row;
    gap: 17px;
    align-items: center;
  }
  .profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 26px;
  }
  .profile-avatar svg {
    width: 30px;
    height: 30px;
  }
  .profile-card h2 {
    font-size: 23px;
    line-height: 1.55;
  }
  .profile-card p {
    font-size: 14px;
  }
  .profile-account {
    font-size: 13px;
    margin-top: 6px;
  }
  .profile-card .eyebrow {
    font-size: 9px;
    letter-spacing: 1.3px;
  }
  .balance-top {
    font-size: 14px;
  }
  .sync-badge {
    font-size: 12px;
  }
  .balance-value {
    margin: 17px 0 5px;
    min-height: 56px;
    gap: 10px;
  }
  .balance-value strong {
    font-size: 43px;
    letter-spacing: -1.4px;
  }
  .balance-value strong.no-balance {
    font-size: 28px;
  }
  .balance-value>span {
    font-size: 14px;
  }
  .balance-time {
    font-size: 13px;
    line-height: 1.9;
  }
  .dashboard-layout {
    margin-top: 17px;
    gap: 17px;
  }
  .namecard-panel,.sync-panel {
    padding: 21px 19px;
    border-radius: 11px;
  }
  .panel-heading {
    margin-bottom: 18px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .panel-heading h2 {
    font-size: 21px;
  }
  .panel-heading>span {
    font-size: 12px;
  }
  .namecard-frame {
    padding: 9px;
    min-height: 210px;
    border-radius: 8px;
  }
  .namecard-empty {
    padding: 24px 9px;
  }
  .namecard-empty h3 {
    font-size: 17px;
  }
  .namecard-empty p {
    font-size: 14px;
    line-height: 1.9;
  }
  .namecard-note {
    font-size: 12px;
    line-height: 1.9;
    margin-top: 14px;
  }
  .sync-panel h2 {
    font-size: 19px;
    margin-bottom: 18px;
  }
  .sync-list {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .sync-list>div {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
  }
  .sync-list dt {
    font-size: 13px;
  }
  .sync-list dd {
    font-size: 14px;
    line-height: 1.9;
  }
  .sync-panel .sync-note {
    font-size: 12px;
    line-height: 1.9;
    padding-top: 16px;
    margin-top: 17px;
  }
  .sync-panel .button {
    width: 100%;
    font-size: 14px;
    min-height: 45px;
  }
  .link-row {
    font-size: 14px;
    margin-top: 16px;
  }
  .message {
    font-size: 14px;
    padding: 12px 13px;
    line-height: 1.9;
  }
  .loading-panel {
    padding: 65px 5px;
  }
  .loading-panel h1 {
    font-size: 24px;
  }
  .loading-panel p {
    font-size: 14px;
    line-height: 1.9;
  }
  .site-footer {
    margin: 0 20px;
    padding: 23px 0 29px;
    display: block;
  }
  .site-footer>a {
    font-size: 19px;
  }
  .site-footer>a>span {
    font-size: 13px;
    margin-left: 12px;
  }
  .site-footer>p {
    font-size: 12px;
    margin-top: 8px;
  }
  .toast {
    bottom: 18px;
    font-size: 14px;
    padding: 12px 16px;
    line-height: 1.8;
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    transition: none!important;
    animation: none!important;
    scroll-behavior: auto!important;
  }
}
.identity-confirm {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin: 19px 0 12px;
  cursor: pointer;
}
.identity-confirm input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
  margin: 5px 0 0;
  flex: none;
}
.identity-confirm span {
  flex: 1;
}
.sync-badge.offline {
  color: var(--amber);
  background: var(--warn-soft);
  border-color: var(--warn-line);
}
.identity-confirm {
  color: var(--muted);
}
.form-field input::placeholder {
  color: var(--muted);
}
.local-label {
  color: var(--muted);
}

/* Night theme (2026-11-19): dark background so game covers stand out; brand red kept as the one accent. */

body{background:
  radial-gradient(1000px 520px at 6% -120px, color-mix(in srgb, var(--accent) 25%, transparent), transparent 70%),
  radial-gradient(900px 480px at 96% -80px, color-mix(in srgb, var(--glow) 20%, transparent), transparent 70%),
  var(--paper);background-repeat:no-repeat;}
html{background:var(--paper);}
.site-header{background:color-mix(in srgb, var(--paper) 72%, transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line);}
.brand-mark{box-shadow:0 0 0 1px color-mix(in srgb, var(--accent) 33%, transparent),0 6px 22px -4px color-mix(in srgb, var(--accent) 67%, transparent);}
.header-inner nav a:hover,.header-inner nav a[aria-current=page]{color:var(--ink);}
.header-inner nav a[aria-current=page]:after{background:var(--accent);box-shadow:0 0 12px var(--accent);}
.button.primary{background:linear-gradient(180deg,var(--accent-strong),var(--accent));color:#fff;box-shadow:0 8px 22px -8px var(--accent),inset 0 1px 0 rgba(255,255,255,.25);}
.button.primary:hover{background:linear-gradient(180deg,var(--accent-strong),var(--accent));filter:brightness(1.08);}
input,select,textarea{background-color:var(--surface-muted);color:var(--ink);border-color:var(--line-strong);}
input::placeholder,textarea::placeholder{color:var(--placeholder);}
.auth-intro h1{background:linear-gradient(90deg,var(--ink) 35%,var(--accent-strong));-webkit-background-clip:text;background-clip:text;color:transparent;}
.hub-coins strong{color:var(--amber);}
.hub-coins strong.no-balance{color:var(--muted-strong);}

/* Theme switch in the header (2026-11-19) */
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; margin-left: 10px; flex: none;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .theme-toggle { width: 40px; padding: 0; justify-content: center; margin-left: 6px; } .theme-toggle-label { display: none; } }
html[data-theme="light"] .site-header { box-shadow: 0 1px 0 var(--line); }

/* ---- Compact layout (2026-11-19): less scrolling ---- */
.header-inner { padding: 10px 32px; gap: 32px; }
.brand { font-size: 21px; gap: 10px; }
.brand-mark { width: 36px; height: 38px; border-radius: 10px; }
.brand small { margin-top: 1px; font-size: 11px; }
main { padding: 16px 32px 28px; min-height: 0; }
.back-link { margin-bottom: 8px; min-height: 28px; }
.site-footer { padding: 12px 0 16px; }
.site-footer p, .site-footer>p { margin-top: 0; font-size: 13px; line-height: 1.6; }
.theme-toggle { height: 36px; }
@media (max-width: 760px) { .header-inner { padding: 8px 16px; gap: 12px; } main { padding: 12px 16px 24px; } .theme-toggle { width: 36px; } }

/* Logo (2026-11-19): burgundy SAVE/HERE mark plus a horizontal wordmark. */
.brand-mark{display:block;width:38px;height:38px;border-radius:9px;background:none;box-shadow:0 6px 16px -8px rgba(63,13,25,.9);flex:none}
.brand-text{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;line-height:1}
.brand-word{display:block;height:18px;width:auto}
.brand-word .wm-save{fill:var(--wm-save)}
.brand-word .wm-here{fill:var(--wm-here)}
.brand-text small,.brand-text .brand-caption{margin-top:0}
@media (max-width:760px){.brand-mark{width:34px;height:34px;border-radius:8px}.brand-word{height:16px}}
:root{--wm-save:#f5eae2;--wm-here:#d9a3a0}
html[data-theme="light"]{--wm-save:#2a1418;--wm-here:#8c2a3a}
