:root {
  --bg: #070b16;
  --bg-strong: #02040b;
  --panel: rgba(15, 20, 35, 0.78);
  --panel-strong: rgba(18, 24, 42, 0.92);
  --panel-border: rgba(255, 255, 255, 0.08);
  --ink: #f5f7ff;
  --muted: #9aa6c3;
  --warm: #ff8a3d;
  --warm-soft: rgba(255, 138, 61, 0.16);
  --cool: #47d7ff;
  --cool-soft: rgba(71, 215, 255, 0.16);
  --success: #53d18f;
  --danger: #ff6f6f;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Franklin Gothic Medium", sans-serif;
  color: var(--ink);
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background:
    radial-gradient(circle at top left, rgba(255, 138, 61, 0.2), transparent 24%),
    radial-gradient(circle at bottom right, rgba(71, 215, 255, 0.16), transparent 26%),
    linear-gradient(180deg, #09101e 0%, var(--bg) 48%, var(--bg-strong) 100%);
}

.app-shell {
  width: min(1180px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: max(1rem, calc(env(safe-area-inset-top, 0px) + 0.35rem)) 0 max(3rem, calc(env(safe-area-inset-bottom, 0px) + 1.15rem));
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1.1rem;
  align-items: stretch;
  margin-bottom: 1rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(18, 24, 42, 0.84), rgba(12, 16, 30, 0.72));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 48px;
  max-width: 148px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 24px rgba(17, 34, 77, 0.24));
}

.brand-copy {
  display: none;
}

.brand-text {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-subtext {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-topbar-actions {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}

.view-switcher {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.24rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.view-switch-button {
  min-height: 48px;
  padding: 0.68rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.view-switch-button.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.09));
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.arena-nav-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.arena-nav-button.has-attention {
  border-color: rgba(255, 138, 61, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 138, 61, 0.14), 0 0 26px rgba(255, 138, 61, 0.08);
}

.arena-nav-button.has-attention::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 1px solid rgba(255, 138, 61, 0.22);
  opacity: 0.85;
  animation: arenaPulse 2.2s ease-in-out infinite;
  pointer-events: none;
}

.arena-nav-label {
  white-space: nowrap;
}

.arena-nav-badge {
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.18);
  color: #ffd5b8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@keyframes arenaPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.header-profile-button {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  min-height: 48px;
  padding: 0.32rem 0.78rem 0.32rem 0.34rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.header-profile-copy {
  display: grid;
  gap: 0.1rem;
  text-align: left;
}

.header-profile-name {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.1;
}

.header-profile-link {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.header-profile-avatar .avatar,
.settings-profile-avatar .avatar {
  width: 40px;
  height: 40px;
}

.app-view.is-hidden {
  display: none;
}

#dashboard-view {
  display: flex;
  flex-direction: column;
  gap: 0.72rem;
}

#arena-view {
  display: grid;
  gap: 0.85rem;
}

.is-hidden {
  display: none !important;
}

[hidden] {
  display: none !important;
}

#backend-form,
#create-circle-button,
#join-circle-button,
#sync-circle-button,
#circle-name-input,
#invite-code-input,
#circle-switch-text {
  display: none !important;
}

.auth-view {
  min-height: min(82vh, 760px);
  display: grid;
  place-items: center;
  padding: max(1rem, calc(env(safe-area-inset-top, 0px) + 0.35rem)) 0 max(1.2rem, calc(env(safe-area-inset-bottom, 0px) + 0.5rem));
}

.auth-card {
  width: min(100%, 520px);
  padding: 1.4rem;
}

.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
}

.auth-logo {
  width: min(220px, 54vw);
  max-width: 220px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 16px 34px rgba(0, 0, 0, 0.28));
}

.auth-card h1 {
  margin: 0.35rem 0 0.65rem;
}

.auth-form {
  margin-top: 1.1rem;
}

.auth-actions {
  margin-top: 0.35rem;
}

.auth-link-button {
  padding: 0;
  margin-top: 0.55rem;
  background: transparent;
  border: 0;
  color: var(--cool);
  font-weight: 700;
  text-align: left;
}

.auth-link-button:hover,
.auth-link-button:focus-visible {
  transform: none;
  text-decoration: underline;
}

.auth-message {
  margin-top: 0.2rem;
}

.auth-message.is-error {
  color: var(--danger);
}

.auth-message.is-success {
  color: var(--success);
}

.hero-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-xl);
}

.daily-status-line {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.mobile-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.status-pill-card {
  padding: 0.85rem 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.status-pill-value {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-copy {
  max-width: 44rem;
}

.hero-profile {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-avatar .avatar {
  width: 62px;
  height: 62px;
  font-size: 1.55rem;
}

.hero-profile-copy {
  display: grid;
  gap: 0.18rem;
}

.hero-profile-badges,
.leaderboard-badge-row,
.achievements-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.achievements-strip {
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
}

.achievements-strip::-webkit-scrollbar {
  display: none;
}

.hero-profile-label {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-profile-name {
  margin-bottom: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mini-badge,
.leaderboard-mini-badge,
.achievement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.mini-badge-soft,
.leaderboard-mini-badge.is-soft,
.achievement-badge.is-soft {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.mini-badge.is-flame,
.achievement-badge.is-flame {
  background: rgba(255, 138, 61, 0.16);
  color: #ffc198;
}

.mini-badge.is-live,
.leaderboard-mini-badge.is-live,
.achievement-badge.is-live {
  background: rgba(71, 215, 255, 0.16);
  color: #9feeff;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--cool);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.7rem, 8vw, 4.8rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 0.35rem;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

h3 {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.tagline {
  margin-bottom: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.5;
}

.hero-note {
  min-width: 250px;
  align-self: stretch;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.2), rgba(15, 20, 35, 0.72));
  border: 1px solid rgba(255, 138, 61, 0.24);
}

.hero-note-label {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-note-value {
  margin-bottom: 0.45rem;
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.hero-note-subtext {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.hero-presence {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-presence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-presence-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-presence-chip-soft {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}

.panel-grid,
.content-grid,
.side-stack,
.activity-form-grid,
.stats-grid,
.activity-list,
.leaderboard-list {
  display: grid;
}

.panel-grid,
.content-grid {
  gap: 0.72rem;
}

.panel-grid {
  grid-template-columns: 0.95fr 1.35fr;
  margin-bottom: 0.55rem;
}

.panel-grid-single {
  grid-template-columns: 1fr;
}

.content-grid {
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  align-items: start;
}

.side-stack,
.activity-form-grid {
  gap: 0.72rem;
}

.panel {
  padding: 1rem;
  border-radius: var(--radius-lg);
}

.settings-panel {
  padding: 1.35rem;
}

.settings-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.settings-back-button {
  align-self: center;
}

.arena-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.arena-panel {
  padding: 1.2rem;
}

.arena-live-panel,
.arena-self-panel {
  display: grid;
  gap: 0.8rem;
}

.arena-status-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.arena-poll-panel {
  display: grid;
  gap: 0.9rem;
}

.arena-hero-panel {
  background:
    radial-gradient(circle at top left, rgba(255, 138, 61, 0.18), transparent 36%),
    radial-gradient(circle at top right, rgba(71, 215, 255, 0.14), transparent 32%),
    var(--panel);
}

.arena-event-card {
  display: grid;
  gap: 0.22rem;
  margin-top: 0.2rem;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 138, 61, 0.11), rgba(71, 215, 255, 0.07)),
    rgba(255, 255, 255, 0.03);
}

.arena-event-card h3 {
  margin: 0.1rem 0 0;
}

.arena-start-date,
.arena-countdown-text,
.arena-prize-line {
  margin: 0;
}

.arena-start-date {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.04rem;
}

.arena-countdown-text {
  color: #a6f5c5;
  font-weight: 700;
}

.arena-prize-line {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.55;
}

.arena-board-list,
.arena-eliminated-list {
  display: grid;
  gap: 0.7rem;
}

.arena-board-row,
.arena-eliminated-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.arena-board-row.is-current-user {
  border-color: rgba(71, 215, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(71, 215, 255, 0.08);
}

.arena-board-row.is-danger {
  border-color: rgba(255, 122, 122, 0.18);
  background: linear-gradient(135deg, rgba(255, 122, 122, 0.1), rgba(255,255,255,0.025));
}

.arena-board-row.is-safe {
  border-color: rgba(83, 209, 143, 0.16);
}

.arena-board-topline,
.arena-eliminated-topline {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.arena-board-name,
.arena-eliminated-name {
  font-weight: 800;
  color: var(--ink);
}

.arena-board-total {
  color: #ffc198;
  font-weight: 800;
}

.arena-board-meta-line,
.arena-eliminated-meta {
  color: var(--muted);
  margin: 0;
}

.arena-board-empty,
.arena-eliminated-empty,
.arena-admin-debug {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.arena-admin-debug {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.82rem;
}

.arena-hero-copy {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.25rem;
  color: var(--ink);
}

.arena-hero-copy p {
  margin: 0;
  line-height: 1.6;
}

.arena-rules-list,
.arena-prize-list {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.arena-cta-panel {
  text-align: center;
  padding-block: 1.35rem;
  background:
    linear-gradient(135deg, rgba(255, 138, 61, 0.08), rgba(71, 215, 255, 0.06)),
    var(--panel);
}

.arena-cta-line {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.arena-cta-panel h3 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.35rem, 4vw, 1.9rem);
}

.one-percent-nav-button {
  border-color: rgba(245, 185, 66, 0.12);
}

.one-percent-nav-button.is-active {
  border-color: rgba(245, 185, 66, 0.18);
  box-shadow: 0 10px 24px rgba(245, 185, 66, 0.08);
}

.one-percent-hero-panel {
  background:
    radial-gradient(circle at top left, rgba(245, 185, 66, 0.18), transparent 32%),
    radial-gradient(circle at bottom right, rgba(83, 209, 143, 0.12), transparent 28%),
    var(--panel);
}

.one-percent-panel {
  padding: 1.2rem;
}

.one-percent-chip-strip {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0 0.15rem 0.2rem;
  scrollbar-width: none;
}

.one-percent-chip-strip::-webkit-scrollbar {
  display: none;
}

.one-percent-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.one-percent-chip:hover,
.one-percent-chip:focus-visible {
  color: var(--ink);
  border-color: rgba(245, 185, 66, 0.18);
  background: rgba(245, 185, 66, 0.08);
}

.one-percent-hero-quote {
  margin: 0.45rem 0 0;
  font-size: clamp(1.12rem, 3.5vw, 1.4rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--ink);
}

.one-percent-groups {
  display: grid;
  gap: 1rem;
}

.one-percent-group-block {
  display: grid;
  gap: 0.7rem;
}

.one-percent-record-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.one-percent-record-card {
  display: grid;
  gap: 0.38rem;
  padding: 1rem;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(10, 15, 28, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.one-percent-record-card.is-empty {
  color: var(--muted);
}

.one-percent-record-card.is-unclaimed {
  border-color: rgba(245, 185, 66, 0.12);
}

.one-percent-record-label {
  margin: 0;
  color: var(--cool);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.one-percent-record-holder {
  margin: 0;
  font-size: 1.2rem;
}

.one-percent-record-holder.is-unclaimed {
  color: var(--ink);
}

.one-percent-record-value {
  margin: 0;
  color: #f5d08a;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.05;
}

.one-percent-record-period,
.one-percent-record-note {
  margin: 0;
  color: var(--muted);
}

.one-percent-record-note {
  font-style: italic;
}

.one-percent-record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-top: 0.15rem;
}

.one-percent-record-cta {
  justify-self: start;
  margin-top: 0.15rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #f7dca4;
  font-size: 0.82rem;
  font-weight: 700;
}

.one-percent-record-cta:hover,
.one-percent-record-cta:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.one-percent-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(245, 185, 66, 0.12);
  color: #f7dca4;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.one-percent-tag.is-soft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.one-percent-disclaimer-panel {
  text-align: center;
}

.one-percent-disclaimer-title {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.one-percent-empty {
  margin: 0;
  color: var(--muted);
}

.one-percent-standard-text,
.one-percent-crown-text {
  margin: 0;
}

.one-percent-standard-text {
  color: #f7dca4;
  font-weight: 600;
}

.one-percent-crown-text {
  color: var(--muted);
}

.one-percent-crown-text.is-crown {
  color: #aef2c4;
}

.arena-reaction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.arena-reaction-button {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  justify-items: start;
  min-height: 74px;
  padding: 0.78rem 0.9rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.arena-reaction-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.055);
}

.arena-reaction-button.is-selected {
  border-color: var(--reaction-accent, rgba(255, 138, 61, 0.75));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--reaction-accent, #ff8a3d) 42%, transparent), 0 12px 28px rgba(0, 0, 0, 0.18);
  background: linear-gradient(135deg, color-mix(in srgb, var(--reaction-accent, #ff8a3d) 18%, rgba(255,255,255,0.03)), rgba(255,255,255,0.03));
}

.arena-reaction-button:disabled {
  opacity: 0.68;
  cursor: default;
  transform: none;
}

.arena-reaction-emoji {
  font-size: 1.2rem;
}

.arena-reaction-label {
  font-weight: 700;
  line-height: 1.2;
  font-size: 0.98rem;
}

.arena-reaction-count {
  color: var(--cool);
  font-size: 0.88rem;
  font-weight: 700;
}

.arena-reaction-message {
  margin: 0;
  color: var(--muted);
}

.arena-reaction-message.is-error {
  color: #ff7a7a;
}

.arena-reaction-message.is-success {
  color: #a6f5c5;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.settings-sections,
.settings-two-column,
.settings-actions,
.backfill-list {
  display: grid;
  gap: 0.85rem;
}

.settings-sections {
  gap: 1rem;
}

.settings-preview-card,
.settings-form-panel {
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.settings-help-card,
.developer-settings,
.circle-summary-card {
  margin-top: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.settings-help-card summary,
.developer-settings summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}

.setup-help-list {
  display: grid;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.setup-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.checklist-item {
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-weight: 700;
}

.checklist-item.is-complete {
  color: var(--ink);
  border-color: rgba(83, 209, 143, 0.22);
  background: rgba(83, 209, 143, 0.08);
}

.checklist-item.is-complete::before {
  content: "✓ ";
  color: #9ff0c2;
}

.circle-summary-card.is-hidden {
  display: none;
}

.circle-invite-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 0.7rem;
}

.circle-invite-code {
  padding: 0.6rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.developer-settings-body {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.developer-settings-body .stack-form.is-hidden {
  display: none;
}

.developer-actions {
  grid-template-columns: 1fr;
}

.settings-preview-card {
  padding: 1.15rem;
}

.settings-profile-preview {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 0.9rem;
}

.settings-profile-copy {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.settings-form-panel {
  padding: 1.15rem;
}

.settings-two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-note-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
}

.settings-note {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.settings-status-badge {
  width: fit-content;
  margin-bottom: 0;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.settings-status-badge.is-connected {
  background: rgba(83, 209, 143, 0.18);
  color: #9ff0c2;
}

.settings-status-badge.is-failed {
  background: rgba(255, 111, 111, 0.18);
  color: #ffb0b0;
}

.settings-textarea {
  min-height: 72px;
}

.backfill-history-heading {
  margin-top: 1.2rem;
}

.backfill-item,
.leaderboard-empty {
  padding: 0.95rem 1rem;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
}

.backfill-item {
  display: grid;
  gap: 0.35rem;
}

.backfill-title {
  margin-bottom: 0;
  font-weight: 700;
}

.backfill-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel-heading p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.5;
}

.panel-heading-compact {
  margin-bottom: 0;
}

.stack-form,
.goal-form {
  display: grid;
  gap: 0.75rem;
}

.stack-form {
  margin-top: 1.1rem;
}

.activity-form {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.action-panel {
  position: relative;
  overflow: visible;
}

.quick-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.65rem 0 0;
}

.quick-log-grid {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.65rem;
}

.quick-log-group {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.quick-chip-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-chip-button {
  min-height: 42px;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 138, 61, 0.18);
  background: rgba(255, 138, 61, 0.11);
  color: #ffd4ba;
  font-weight: 800;
}

.quick-chip-button-cool {
  border-color: rgba(71, 215, 255, 0.18);
  background: rgba(71, 215, 255, 0.12);
  color: #baf3ff;
}

.inactivity-nudge {
  margin-top: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 138, 61, 0.18);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.inactivity-nudge.is-hidden {
  display: none;
}

.latest-effort-card {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.85rem 1rem;
}

.panel-grid-single {
  order: 4;
}

.chase-card {
  order: 5;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.12), rgba(255, 255, 255, 0.02));
}

.chase-copy,
.leaders-copy {
  display: grid;
  gap: 0.22rem;
}

.chase-title {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.chase-detail,
.chase-meta {
  margin: 0;
}

.chase-detail {
  color: #ffcfb3;
  font-weight: 700;
}

.chase-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.leaders-card {
  order: 6;
  padding: 0.95rem 1rem;
}

.leader-line {
  display: grid;
  gap: 0.12rem;
}

.leader-line + .leader-line {
  margin-top: 0.3rem;
}

.leader-line-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leader-line-value {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.panel-inline {
  margin-bottom: 0.55rem;
}

.latest-effort-copy {
  display: grid;
  gap: 0.12rem;
}

.latest-effort-text {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
}

.latest-effort-time {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.leader-message-card {
  order: 8;
  display: grid;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(135deg, rgba(255, 186, 91, 0.09), rgba(71, 215, 255, 0.06));
}

.topbar-leader-message {
  order: 0;
  flex: 1 1 auto;
  min-width: 0;
  align-content: start;
  align-self: center;
  gap: 0.35rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 186, 91, 0.08), rgba(71, 215, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.topbar-leader-message .leader-message-copy {
  gap: 0.15rem;
}

.topbar-leader-message .section-kicker {
  margin-bottom: 0.05rem;
}

.topbar-leader-message .leader-message-text {
  font-size: 0.94rem;
  line-height: 1.28;
}

.topbar-leader-message .leader-message-meta {
  font-size: 0.8rem;
}

.topbar-leader-message .leader-message-form {
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.topbar-leader-message .leader-message-input {
  min-height: 62px;
}

.topbar-leader-message.is-empty-state .leader-message-copy {
  gap: 0.08rem;
}

.topbar-leader-message.is-empty-state .leader-message-text {
  font-size: 0.86rem;
  font-weight: 800;
}

.topbar-leader-message.is-empty-state .leader-message-meta {
  font-size: 0.78rem;
}

.topbar-leader-message.is-empty-state .leader-message-form {
  display: none;
}

#latest-effort-card {
  order: 7;
}

.hero-card {
  order: 3;
}

.content-grid {
  order: 9;
}

.leader-message-copy {
  display: grid;
  gap: 0.2rem;
}

.leader-message-text {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
}

.leader-message-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.leader-message-meta.is-error {
  color: var(--danger);
}

.leader-message-meta.is-success {
  color: var(--success);
}

.leader-message-form {
  gap: 0.7rem;
}

.leader-message-input {
  min-height: 92px;
}

.quick-action-button {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--warm), var(--warm-strong));
  color: white;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  padding-inline: 1.05rem;
  box-shadow: 0 18px 34px rgba(255, 122, 73, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.quick-action-button::after {
  content: "Tap to log";
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.82;
}

.quick-action-button:hover,
.quick-action-button:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.quick-action-button-cool {
  background: linear-gradient(135deg, var(--cool), var(--cool-strong));
}

.quick-status-card {
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.quick-status-card-embedded {
  margin-top: 0.35rem;
}

.momentum-progress-track {
  margin-top: 0.3rem;
  height: 12px;
}

.quick-status-row {
  margin-bottom: 0.55rem;
}

.quick-status-title {
  margin: 0.1rem 0 0;
}

.profile-customize {
  display: grid;
  gap: 0.75rem;
}

.profile-helper-text {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.avatar-picker,
.color-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(52px, 1fr));
  gap: 0.65rem;
}

.avatar-choice,
.color-choice {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.avatar-choice {
  min-height: 56px;
  display: grid;
  place-items: center;
  padding: 0.7rem 0.45rem;
  border-radius: 18px;
  font-size: 1.45rem;
}

.avatar-choice.is-active,
.color-choice.is-active {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.avatar-choice:hover,
.color-choice:hover {
  transform: translateY(-1px);
}

.color-choice {
  height: 46px;
  border-radius: 999px;
}

.field-label,
.section-kicker {
  font-weight: 700;
}

.section-kicker {
  margin-bottom: 0.1rem;
  color: var(--cool);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input-row {
  display: flex;
  gap: 0.75rem;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(7, 11, 22, 0.72);
  color: var(--ink);
}

input::placeholder {
  color: #7d88a3;
}

textarea::placeholder {
  color: #7d88a3;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(71, 215, 255, 0.14);
  border-color: var(--cool);
}

textarea {
  resize: vertical;
  min-height: 96px;
}

button {
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.95rem 1.15rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, opacity 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

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

button:active {
  transform: translateY(0);
}

button:disabled,
input:disabled {
  opacity: 0.7;
}

.primary-button {
  background: linear-gradient(135deg, #ff8a3d 0%, #ff5b62 100%);
  color: #fff;
}

.primary-button:hover {
  opacity: 0.95;
}

.accent-alt-button {
  background: linear-gradient(135deg, #47d7ff 0%, #3f8cff 100%);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.secondary-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.message-box {
  min-height: 0;
  margin: 0;
  padding: 0;
  font-weight: 700;
}

.message-box-toast {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  z-index: 40;
  width: min(calc(100% - 1.25rem), 520px);
  padding: 0.85rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 24, 0.92);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  transform: translate(-50%, 120%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.message-box-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.modal-shell.is-hidden {
  display: none;
}

.celebration-popup {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.15rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.celebration-popup.is-hidden {
  display: none;
}

.celebration-popup.is-active {
  opacity: 1;
}

.celebration-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.celebration-popup-card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(88vh, 760px);
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 14, 24, 0.95);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  transform: scale(0.96);
  transition: transform 220ms ease, opacity 220ms ease;
  opacity: 0;
}

.celebration-popup.is-active .celebration-popup-card {
  transform: scale(1);
  opacity: 1;
}

.celebration-popup-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.28), rgba(71, 215, 255, 0.18));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.celebration-image-frame {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.celebration-image {
  display: block;
  width: 100%;
  max-height: min(62vh, 460px);
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
}

.celebration-copy {
  padding: 0 0.2rem 0.1rem;
  text-align: center;
}

.celebration-copy h3 {
  margin: 0.2rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .celebration-popup,
  .celebration-popup-card {
    transition: none;
  }
}

.delete-submission-details {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 16, 0.7);
  backdrop-filter: blur(10px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 1rem;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18, 24, 42, 0.98), rgba(10, 14, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
}

.arena-nudge-card {
  width: min(100%, 420px);
}

.arena-nudge-copy {
  margin: 0.25rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.arena-nudge-actions {
  grid-template-columns: 1fr;
  margin-top: 1rem;
}

.modal-close-button {
  align-self: start;
}

.receipt-launch-button {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  align-self: stretch;
  min-height: 46px;
  padding: 0.68rem 1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.1);
}

.receipt-modal-card {
  width: min(100%, 620px);
  padding: 1rem;
}

#receipt-modal {
  display: block;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding:
    max(16px, env(safe-area-inset-top))
    1rem
    max(24px, env(safe-area-inset-bottom));
}

#receipt-modal .modal-backdrop {
  position: fixed;
}

.receipt-modal-header p {
  max-width: 32ch;
}

.receipt-toolbar {
  display: grid;
  gap: 0.85rem;
  margin: 0.9rem 0 1rem;
}

.receipt-period-toggle,
.receipt-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.receipt-actions .primary-button,
.receipt-actions .secondary-button {
  flex: 1 1 120px;
}

.receipt-preview-shell {
  padding: 0.25rem;
}

#receipt-modal .receipt-preview-shell {
  width: 100%;
}

.receipt-card {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top center, rgba(255, 138, 61, 0.15), transparent 26%),
    radial-gradient(circle at bottom right, rgba(124, 255, 157, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(16, 19, 29, 0.98), rgba(6, 8, 14, 0.98));
  border: 1px solid rgba(157, 255, 146, 0.2);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.receipt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124, 255, 157, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 255, 157, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.25;
  pointer-events: none;
}

.receipt-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.45), rgba(124, 255, 157, 0.22), rgba(255, 255, 255, 0.05));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.receipt-brand-row,
.receipt-subhead-row,
.receipt-user-row,
.receipt-main-grid,
.receipt-detail-list,
.receipt-footer-cta {
  position: relative;
  z-index: 1;
}

.receipt-brand-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.65rem;
  align-items: center;
}

.receipt-brand-line {
  display: block;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}

.receipt-brand-logo {
  display: block;
  width: min(100%, 200px);
  margin: 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(255, 102, 0, 0.14));
}

.receipt-subhead-row {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  color: #9eff9d;
}

.receipt-performance-label {
  margin: 0;
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.28em;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-chevron {
  color: rgba(255, 255, 255, 0.18);
  font-size: 1.6rem;
  line-height: 1;
}

.receipt-user-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.95rem;
  align-items: center;
  margin-top: 0.9rem;
}

.receipt-avatar {
  width: 66px;
  height: 66px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: radial-gradient(circle at center, rgba(124, 255, 157, 0.18), rgba(124, 255, 157, 0.04));
  border: 2px solid rgba(158, 255, 157, 0.7);
  box-shadow: 0 0 24px rgba(124, 255, 157, 0.22);
}

.receipt-avatar .avatar {
  width: 100%;
  height: 100%;
  border: 0;
  box-shadow: none;
  background: transparent;
  font-size: 1.8rem;
}

.receipt-user-kicker {
  margin: 0 0 0.22rem;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  font-weight: 800;
}

.receipt-user-name {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 0.96;
}

.receipt-main-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0;
  border-radius: 22px;
  border: 1px solid rgba(158, 255, 157, 0.26);
  background: linear-gradient(180deg, rgba(10, 14, 20, 0.84), rgba(6, 9, 14, 0.9));
  overflow: hidden;
}

.receipt-primary-stat,
.receipt-rank-stat {
  padding: 0.9rem 1rem 1rem;
}

.receipt-rank-stat {
  border-left: 1px solid rgba(158, 255, 157, 0.22);
}

.receipt-stat-label {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #b2ffab;
  font-weight: 900;
}

.receipt-total-reps,
.receipt-rank {
  margin: 0;
  line-height: 0.88;
  font-weight: 900;
}

.receipt-total-reps {
  font-size: clamp(2.8rem, 11vw, 5.4rem);
}

.receipt-rank {
  font-size: clamp(2.8rem, 10vw, 4.8rem);
  color: #8eff73;
  text-shadow: 0 0 24px rgba(142, 255, 115, 0.2);
}

.receipt-rank-context {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
}

.receipt-detail-list {
  margin-top: 0.8rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 6, 10, 0.45);
}

.receipt-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.78rem 0.95rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.receipt-detail-row:last-child {
  border-bottom: 0;
}

.receipt-detail-row span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
}

.receipt-detail-row strong {
  text-align: right;
  font-size: 1rem;
}

.receipt-status-value {
  color: #8eff73;
}

.receipt-change-positive {
  color: #8eff73;
}

.receipt-change-negative {
  color: #ff9a7d;
}

.receipt-footer-cta {
  margin-top: 0.9rem;
  padding: 0.9rem 0.9rem 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.receipt-footer-cta p {
  margin: 0;
}

.receipt-footer-cta h4 {
  margin: 0.28rem 0 0.4rem;
  font-size: clamp(1.9rem, 7vw, 2.9rem);
  line-height: 0.95;
  color: #9eff9d;
}

.receipt-share-url {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
}

.receipt-qr-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 0.55rem;
}

.receipt-qr-image {
  width: 74px;
  height: 74px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  padding: 0.35rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.receipt-qr-copy {
  display: grid;
  gap: 0.2rem;
  text-align: left;
}

.receipt-qr-label {
  color: rgba(158, 255, 157, 0.92);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#receipt-modal .receipt-modal-card {
  width: min(100%, 620px);
  max-width: 620px;
  margin: 0 auto;
}

#receipt-modal .receipt-card {
  width: 100%;
  height: auto;
  min-height: auto;
}

body.is-modal-open {
  overflow: hidden;
}

.message-box.is-error {
  color: var(--danger);
}

.message-box.is-success {
  color: var(--success);
}

.stats-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.goal-progress-grid,
.insight-grid,
.charts-grid {
  display: grid;
  gap: 1rem;
}

.panel-heading-inline {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

.goal-progress-grid,
.insight-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.insight-grid-compact {
  grid-template-columns: 0.8fr 1.2fr;
  margin-top: 0.85rem;
}

.stat-card,
.progress-card,
.insight-card,
.chart-panel,
.mini-chart,
.activity-item,
.leaderboard-row {
  border-radius: var(--radius-md);
}

.stat-card {
  padding: 1rem;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-card-warm {
  box-shadow: inset 0 0 0 1px rgba(255, 138, 61, 0.06);
}

.stat-card-cool {
  box-shadow: inset 0 0 0 1px rgba(71, 215, 255, 0.06);
}

.stat-label {
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.stat-value {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.progress-card {
  margin-top: 1rem;
  padding: 1.1rem;
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.08), rgba(18, 24, 42, 0.9));
  border: 1px solid rgba(255, 138, 61, 0.12);
}

.goal-progress-grid .progress-card {
  margin-top: 0;
}

.progress-card-cool {
  background: linear-gradient(180deg, rgba(71, 215, 255, 0.08), rgba(18, 24, 42, 0.9));
  border-color: rgba(71, 215, 255, 0.14);
}

.progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.progress-percent {
  margin-bottom: 0;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.progress-track {
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-track-cool {
  background: rgba(71, 215, 255, 0.12);
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8a3d 0%, #ff5b62 100%);
  transition: width 0.2s ease;
}

.progress-fill-cool {
  background: linear-gradient(90deg, #47d7ff 0%, #3f8cff 100%);
}

.progress-text {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.goal-manager {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.goal-helper-text {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.goal-form.is-locked {
  opacity: 0.72;
}

.goal-form.is-locked button,
.goal-form.is-locked input {
  cursor: not-allowed;
}

.insight-card,
.chart-panel,
.mini-chart {
  padding: 1rem;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.insight-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0 0.75rem;
}

.card-avatar-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.card-avatar .avatar {
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
}

.card-avatar-label {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.insight-label {
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.insight-value {
  margin-bottom: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.insight-value.is-flame {
  color: #ffb07b;
}

.weekly-summary-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.weekly-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  color: var(--muted);
}

.weekly-row strong {
  color: var(--ink);
  font-size: 1rem;
}

.chart-panel {
  margin-top: 1rem;
}

.charts-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1rem;
}

.chart-panel-compact {
  margin-top: 0;
}

.charts-grid-compact {
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.mini-chart-compact {
  padding: 0.85rem;
}

.chart-topline {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

.chart-total {
  margin-bottom: 0;
  font-weight: 800;
  color: var(--ink);
}

.chart-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
  align-items: end;
  min-height: 168px;
}

.chart-bars-compact {
  min-height: 108px;
  gap: 0.35rem;
}

.chart-day {
  display: grid;
  gap: 0.45rem;
  align-items: end;
}

.chart-bar-wrap {
  height: 130px;
  display: flex;
  align-items: end;
}

.chart-bars-compact .chart-bar-wrap {
  height: 78px;
}

.chart-bar {
  width: 100%;
  min-height: 6px;
  border-radius: 999px 999px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.95), rgba(255, 91, 98, 0.7));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.chart-bar.is-cool {
  background: linear-gradient(180deg, rgba(71, 215, 255, 0.95), rgba(63, 140, 255, 0.7));
}

.chart-day-label,
.chart-day-value {
  margin-bottom: 0;
  text-align: center;
}

.chart-day-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.chart-day-value {
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 700;
}

.activity-list {
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.activity-item,
.activity-empty {
  padding: 0.95rem 1rem;
  background: var(--panel-strong);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.activity-item.is-removable {
  cursor: pointer;
}

.activity-item.is-removable:hover {
  border-color: rgba(255, 138, 61, 0.22);
}

.activity-helper-text {
  margin: 0.22rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.activity-own-note {
  display: inline-block;
  margin-top: 0.32rem;
  color: var(--warm);
  font-size: 0.78rem;
  font-weight: 700;
}

.activity-note {
  width: fit-content;
  max-width: 100%;
  margin: 0 0 0.38rem;
  padding: 0.52rem 0.7rem;
  border-radius: 14px;
  background: rgba(124, 255, 157, 0.08);
  border: 1px solid rgba(124, 255, 157, 0.14);
  color: #d8ffe1;
  font-size: 0.9rem;
  line-height: 1.45;
}

.latest-effort-time.is-stale {
  color: #ffb2b2;
}

.activity-main,
.leaderboard-athlete-main {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  min-width: 0;
}

.avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border: 2px solid var(--avatar-accent, rgba(255, 138, 61, 0.28));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.avatar.is-small {
  width: 44px;
  height: 44px;
  font-size: 1.15rem;
}

.avatar.is-leaderboard {
  width: 52px;
  height: 52px;
}

.avatar-fallback {
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.activity-count {
  margin-bottom: 0.18rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.activity-date {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.activity-tag {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
}

.activity-tag.is-warm {
  background: var(--warm-soft);
  color: #ffc198;
}

.activity-tag.is-cool {
  background: var(--cool-soft);
  color: #9feeff;
}

.activity-tag.is-arena {
  background: rgba(255, 138, 61, 0.14);
  color: #ffd6b0;
}

.activity-empty {
  border-style: dashed;
  color: var(--muted);
}

.leaderboard-panel {
  padding: 1.35rem;
}

.section-toggle-button {
  white-space: nowrap;
}

.leaderboard-topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.leaderboard-controls {
  display: grid;
  gap: 0.6rem;
}

.leaderboard-compare-text {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.leaderboard-reset-text {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.sync-status-text {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.sync-status-text.is-syncing {
  color: #9feeff;
}

.sync-status-text.is-synced {
  color: #9ff0c2;
}

.sync-status-text.is-failed {
  color: #ffb0b0;
}

.collapsible-content.is-collapsed {
  display: none;
}

.toggle-group {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-button {
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}

#year-toggle {
  min-width: 0;
}

.toggle-button.is-active {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.08));
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.08);
}

.leaderboard-header,
.leaderboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 0.7fr 0.7fr;
  gap: 0.8rem;
  align-items: center;
}

.leaderboard-header {
  padding: 0 1rem 0.8rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.leaderboard-list {
  gap: 0.8rem;
}

.leaderboard-row {
  padding: 0.86rem 0.92rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-row.is-current-user {
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.18), rgba(71, 215, 255, 0.08));
  border-color: rgba(255, 138, 61, 0.24);
}

.leaderboard-athlete {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.leaderboard-rank {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.leaderboard-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.leaderboard-name {
  font-size: 1.08rem;
  font-weight: 700;
}

.leaderboard-meta {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.leaderboard-badge {
  width: fit-content;
  padding: 0.22rem 0.52rem;
  border-radius: 999px;
  background: rgba(255, 138, 61, 0.16);
  color: #ffc198;
  font-size: 0.8rem;
  font-weight: 700;
}

.leaderboard-score,
.leaderboard-context {
  text-align: right;
}

.leaderboard-score {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.leaderboard-score.is-warm {
  color: #ffb07b;
}

.leaderboard-score.is-cool {
  color: #97ecff;
}

.leaderboard-context {
  color: var(--muted);
  font-weight: 700;
}

.achievements-list {
  margin-top: 1rem;
}

.achievements-list.is-empty {
  display: block;
}

@media (max-width: 980px) {
  .app-topbar,
  .hero-card,
  .leaderboard-topbar,
  .settings-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-grid,
  .content-grid,
  .arena-grid,
  .settings-layout,
  .settings-two-column,
  .settings-actions {
    grid-template-columns: 1fr;
  }

  .hero-note {
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .app-shell {
    width: min(100% - 1rem, 100%);
    padding-top: max(0.8rem, calc(env(safe-area-inset-top, 0px) + 0.45rem));
    padding-bottom: max(2rem, calc(env(safe-area-inset-bottom, 0px) + 1rem));
  }

  .app-topbar {
    padding: 0.55rem 0.7rem;
    border-radius: 20px;
  }

  .app-topbar-actions,
  .topbar-leader-message {
    width: 100%;
  }

  .app-topbar-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .topbar-leader-message {
    flex: 0 0 auto;
    padding: 0.68rem 0.78rem;
  }

  .brand {
    gap: 0;
  }

  .brand-logo {
    height: 42px;
    max-width: 118px;
  }

  .brand-text {
    font-size: 1rem;
  }

  .brand-subtext {
    font-size: 0.73rem;
  }

  .setup-checklist {
    grid-template-columns: 1fr;
  }

  .circle-invite-row {
    align-items: stretch;
  }

  .circle-invite-row .secondary-button {
    width: 100%;
  }

  .panel {
    border-radius: 22px;
  }

  .hero-card {
    display: none;
  }

  .mobile-status-strip {
    gap: 0.55rem;
    margin-bottom: 0.75rem;
  }

  .status-pill-card {
    padding: 0.7rem 0.75rem;
  }

  .status-pill-value {
    font-size: 0.9rem;
  }

  .quick-action-row {
    margin-top: 0.45rem;
  }

  .input-row,
  .activity-item,
  .progress-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-profile,
  .card-avatar-row {
    align-items: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .goal-progress-grid,
  .insight-grid,
  .charts-grid {
    grid-template-columns: 1fr;
  }

  .panel-heading-inline {
    align-items: start;
    flex-direction: column;
  }

  .insight-grid-compact,
  .charts-grid-compact {
    grid-template-columns: 1fr;
  }

  .leaderboard-controls,
  .toggle-group,
  .view-switcher {
    width: 100%;
  }

  .receipt-launch-button {
    width: 100%;
  }

  .toggle-button,
  .view-switch-button {
    flex: 1;
    padding-inline: 0.55rem;
    font-size: 0.84rem;
  }

  .arena-nav-button {
    gap: 0.28rem;
  }

  .arena-nav-badge {
    font-size: 0.62rem;
    padding-inline: 0.34rem;
  }

  .leaderboard-header {
    display: none;
  }

  .leaderboard-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .leaderboard-score,
  .leaderboard-context {
    text-align: left;
  }

  .message-box-toast {
    bottom: 0.7rem;
    width: min(calc(100% - 0.9rem), 520px);
  }

  .modal-shell {
    align-items: end;
    padding: 0;
  }

  .modal-card {
    width: 100%;
    max-width: none;
    padding: 1rem 1rem 1.2rem;
    border-radius: 24px 24px 0 0;
  }

  .receipt-modal-card {
    width: 100%;
    padding: 0.95rem;
  }

  #receipt-modal {
    padding:
      max(10px, env(safe-area-inset-top))
      0
      max(18px, env(safe-area-inset-bottom));
  }

  #receipt-modal .receipt-modal-card {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    border-radius: 24px 24px 0 0;
  }

  .receipt-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .receipt-actions .primary-button,
  .receipt-actions .secondary-button {
    width: 100%;
  }

  .receipt-card {
    padding: 0.9rem;
    border-radius: 24px;
  }

  .receipt-qr-row {
    align-items: flex-start;
    gap: 0.65rem;
  }

  .receipt-qr-image {
    width: 62px;
    height: 62px;
  }

  .receipt-qr-copy {
    gap: 0.16rem;
  }

  .receipt-main-grid {
    grid-template-columns: 1fr;
  }

  .receipt-rank-stat {
    border-left: 0;
    border-top: 1px solid rgba(158, 255, 157, 0.22);
  }

  .receipt-detail-row {
    align-items: start;
    flex-direction: column;
  }

.receipt-detail-row strong {
  text-align: left;
}
}

.one-percent-nav-button {
  border-color: rgba(245, 185, 66, 0.12);
}

.one-percent-nav-button.is-active {
  border-color: rgba(245, 185, 66, 0.2);
  box-shadow: 0 12px 26px rgba(245, 185, 66, 0.12);
}

.daily-status-line {
  color: #bac5de;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.status-pill-card {
  padding: 0.78rem 0.82rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

#dashboard-view > .leader-message-card {
  display: none !important;
}

.topbar-leader-message {
  gap: 0.18rem;
  padding: 0.62rem 0.82rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 186, 91, 0.07), rgba(71, 215, 255, 0.045));
}

.topbar-leader-message .leader-message-text {
  font-size: 0.9rem;
  line-height: 1.22;
}

.topbar-leader-message .leader-message-meta {
  font-size: 0.78rem;
}

.topbar-leader-message .leader-message-input {
  min-height: 56px;
}

.action-panel {
  background:
    radial-gradient(circle at top left, rgba(255, 138, 61, 0.14), transparent 32%),
    radial-gradient(circle at bottom right, rgba(71, 215, 255, 0.08), transparent 28%),
    var(--panel);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.22);
}

.latest-effort-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
}

.chase-card {
  border-color: rgba(255, 138, 61, 0.16);
}

.leaders-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(71, 215, 255, 0.035));
}

.quick-action-button {
  box-shadow: 0 14px 34px rgba(255, 138, 61, 0.18);
}

.arena-live-panel,
.arena-self-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 138, 61, 0.12), transparent 28%),
    var(--panel);
}

.arena-board-row.is-danger {
  box-shadow: inset 0 0 0 1px rgba(255, 122, 122, 0.08);
}

.arena-board-row.is-safe {
  background: linear-gradient(135deg, rgba(83, 209, 143, 0.08), rgba(255,255,255,0.025));
}

#one-percent-featured-grid .one-percent-record-card {
  background:
    radial-gradient(circle at top left, rgba(245, 185, 66, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(10, 15, 28, 0.9);
}

.one-percent-record-card {
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.one-percent-record-card:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 185, 66, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 14px 26px rgba(0,0,0,0.14);
}

.settings-group-label {
  margin: 0.15rem 0 -0.2rem;
  color: #b8c7e6;
}

.leaderboard-row {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.leaderboard-score {
  font-size: 1.34rem;
}

.leaderboard-context {
  line-height: 1.45;
  max-width: 17rem;
  justify-self: end;
}

.is-pulsing,
.is-pulsing-soft,
.is-pulsing-wide {
  animation: uiPulse 0.85s ease;
}

.is-pulsing-soft {
  animation-name: uiPulseSoft;
}

.is-pulsing-wide {
  animation-name: uiPulseWide;
}

@keyframes uiPulse {
  0% { transform: translateY(0); box-shadow: 0 0 0 rgba(255, 138, 61, 0); }
  40% { transform: translateY(-2px); box-shadow: 0 0 0 10px rgba(255, 138, 61, 0.08); }
  100% { transform: translateY(0); box-shadow: 0 0 0 rgba(255, 138, 61, 0); }
}

@keyframes uiPulseSoft {
  0% { opacity: 1; }
  50% { opacity: 0.72; }
  100% { opacity: 1; }
}

@keyframes uiPulseWide {
  0% { transform: scale(1); }
  50% { transform: scale(1.01); }
  100% { transform: scale(1); }
}
