/* Home */
.home {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.home__title {
  font-size: 28px;
  font-weight: 700;
  margin: 8px 0 16px;
  text-align: center;
}

.home-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.home-hero__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent);
  flex-shrink: 0;
}

.home-hero__avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-hero__greet { display: flex; flex-direction: column; }
.home-hero__title { font-size: 22px; font-weight: 800; margin: 0; color: var(--fg); }
.home-hero__sub { font-size: 13px; color: var(--fg-soft); margin-top: 2px; }

.big-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 36px 24px;
  background: var(--card-new);
  border: none;
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  color: var(--fg);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s, opacity 0.2s;
}

.big-card--review {
  background: var(--card-review);
}

.big-card:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: 0 2px 6px rgba(58, 42, 26, 0.1);
}

.big-card:disabled {
  opacity: 0.5;
  cursor: default;
}

.big-card__icon {
  font-size: 56px;
  line-height: 1;
}

.big-card__title {
  font-size: 24px;
  font-weight: 700;
}

.big-card__subtitle {
  font-size: 16px;
  color: var(--fg-soft);
}

/* Home progress stats (today goal + cumulative learned) */
.home-stats {
  display: flex;
  gap: 12px;
  margin: 4px 0 12px;
}
.home-stat {
  flex: 1;
  background: rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-button);
  padding: 14px 12px;
  text-align: center;
}
.home-stat__label {
  font-size: 13px;
  color: var(--fg-soft);
  letter-spacing: 0.05em;
}
.home-stat__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
  margin: 4px 0;
}
.home-stat__div {
  color: var(--fg-soft);
  font-size: 20px;
  font-weight: 400;
}
.home-stat__hint {
  font-size: 12px;
  color: var(--fg-soft);
}

/* Home 匯出/匯入區塊 */
.home-io {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.55);
}
.home-io__title { font-size: 15px; font-weight: 700; color: var(--fg); margin-bottom: 4px; }
.home-io__hint { font-size: 12px; color: var(--fg-soft); margin-bottom: 10px; }
.home-io__actions {
  display: flex;
  gap: 8px;
}
.home-io__actions .btn-secondary { flex: 1; }

/* Home exam honor summary */
.home-exam-honor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 15px;
  border: 2px solid rgba(255, 138, 76, 0.34);
  border-radius: var(--radius-card);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 224, 190, 0.66));
  box-shadow: 0 4px 12px rgba(58, 42, 26, 0.1);
  color: var(--fg);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.home-exam-honor:hover,
.home-exam-honor:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 7px 16px rgba(58, 42, 26, 0.15);
}
.home-exam-honor:focus-visible {
  outline: 3px solid #246f9e;
  outline-offset: 3px;
}
.home-exam-honor__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #fff7e8;
  font-size: 27px;
  box-shadow: inset 0 0 0 2px rgba(255, 138, 76, 0.32);
}
.home-exam-honor__body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.home-exam-honor__eyebrow {
  color: #a84e20;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.home-exam-honor__body strong {
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.35;
}
.home-exam-honor__body > span:last-child {
  margin-top: 2px;
  color: var(--fg-soft);
  font-size: 11px;
}
.home-exam-honor__link {
  color: #a84e20;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

/* Generic button */
.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--accent);
  color: var(--accent-fg);
  border: none;
  border-radius: var(--radius-button);
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s, opacity 0.2s;
}

.btn:active:not(:disabled) { transform: scale(0.97); }
.btn:disabled { opacity: 0.5; cursor: default; }

.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 2px solid var(--fg);
}

/* Stub screen (used by phases B/C/D placeholders) */
.stub {
  text-align: center;
  padding: 32px 16px;
}
.stub h2 { font-size: 24px; margin: 0 0 12px; }
.stub p  { color: var(--fg-soft); margin: 0 0 24px; }

