/* 今天赚了多少钱 — 金融终端风暗色主题 */
:root {
  --bg: #0d0d0f;
  --bg-elevated: #16161a;
  --text-dim: #6b7280;
  --accent: #39ff14;
  --accent-soft: rgba(57, 255, 20, 0.15);
  --accent-yellow: #facc15;
  --border: #27272a;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", "Consolas", monospace;
  --radius: 12px;
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: #e4e4e7;
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
}

body {
  padding-bottom: calc(1rem + var(--safe-bottom));
}

.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* —— 引导页 —— */
.wizard {
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(57, 255, 20, 0.08), transparent),
    var(--bg);
}

.wizard-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.75rem;
}

.wizard-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wizard-sub {
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.wizard-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.wizard-form input[type="number"],
.wizard-form input[type="time"] {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: #fafafa;
}

.wizard-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

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

.chip {
  font-family: inherit;
  font-size: 0.7rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
}

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

.btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
}

.btn.primary {
  width: 100%;
  padding: 0.85rem;
  background: var(--accent);
  color: #052e05;
  font-weight: 600;
}

.btn.primary:hover {
  filter: brightness(1.05);
}

/* —— 主看板 —— */
.dashboard {
  position: relative;
  padding: 1rem 1rem 0;
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(57, 255, 20, 0.06), transparent 55%),
    var(--bg);
}

.settings-corner {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
}

.icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-dim);
  font-size: 1rem;
  cursor: pointer;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 0.5rem 0.75rem;
  min-height: 52vh;
}

.label {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* 主金额展示（只读） */
.amount-block {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.12em;
  margin: 0;
  padding: 0.25rem 0.35rem;
  max-width: 100%;
  font-family: inherit;
  color: inherit;
}

.amount-prefix {
  font-size: clamp(2rem, min(8vmin, 11vw), 4.25rem);
  color: var(--accent-yellow);
  font-weight: 500;
  line-height: 1;
}

.amount-core {
  /* vmin 拉高主数字；窄屏用 vw 上限防止长数字撑破一行 */
  font-size: clamp(3.75rem, min(21vmin, 26vw), 11rem);
  font-weight: 700;
  color: var(--accent);
  text-shadow: 0 0 28px rgba(57, 255, 20, 0.4), 0 0 64px rgba(57, 255, 20, 0.12);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  line-height: 1.02;
  min-width: 5ch;
  max-width: 100%;
  text-align: right;
}

.hero-hint {
  margin: 0.5rem 0 0;
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* —— 时间与待发薪 —— */
.stats-strip {
  width: 100%;
  max-width: 520px;
  margin: 0 auto 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.72rem;
}

.stat-key {
  color: var(--text-dim);
  flex-shrink: 0;
}

.stat-val {
  color: #d4d4d8;
  text-align: right;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.stat-money {
  color: var(--accent-yellow);
  font-weight: 600;
}

/* —— 带薪摸鱼条 —— */
.fish-bar-block {
  padding: 0 0.25rem calc(1.25rem + var(--safe-bottom));
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
}

.fish-bar-wrap {
  padding: 0.35rem 0;
}

.fish-bar-track {
  position: relative;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 999px;
  border: 1px solid var(--border);
  overflow: hidden;
}

.fish-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(57, 255, 20, 0.35), var(--accent));
  border-radius: 999px;
  transition: width 0.35s ease-out;
}

.fish-bar-tick {
  position: absolute;
  top: -4px;
  width: 2px;
  height: 14px;
  background: var(--accent-yellow);
  border-radius: 1px;
  left: 0%;
  margin-left: -1px;
  box-shadow: 0 0 8px rgba(250, 204, 21, 0.6);
  transition: left 0.35s ease-out;
}

.fish-quote {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  color: #a1a1aa;
  line-height: 1.5;
  text-align: center;
  min-height: 2.6em;
}

[hidden] {
  display: none !important;
}
