@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=EB+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=Noto+Sans+Thai+Looped:wght@400;500;600;700&display=swap');

:root {
  --bg:        #000000;
  --surface:   #111113;
  --surface2:  #1c1c1e;
  --surface3:  #2a2a2d;
  --border:    #2a2a2d;

  --text:      #f4f1e8;
  --text-muted:#8a8781;
  --text-dim:  #5a5853;

  --gold:      #d4af37;
  --gold-hi:   #f1d26a;
  --gold-lo:   #9e7f24;
  --gold-sheen:linear-gradient(180deg,#f6dc7b 0%,#d4af37 50%,#a6841f 100%);
  --gold-grad: linear-gradient(135deg,#f1d26a 0%,#d4af37 45%,#9e7f24 100%);
  --gold-hair: rgba(212,175,55,0.28);

  --success:   #7fa88a;
  --danger:    #b5524a;
  --accent:    var(--gold);

  --card-bg:   linear-gradient(180deg,#141416 0%,#0a0a0c 100%);
  --card-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 8px 24px rgba(0,0,0,0.35);

  --radius:     12px;
  --radius-lg:  18px;
  --radius-btn: 10px;
  --radius-badge: 8px;
  --nav-h:      68px;

  --font-serif: 'Cormorant Garamond','EB Garamond','Times New Roman',serif;
  --font-ui:    'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --font-thai:  'Noto Sans Thai Looped','Noto Sans Thai','Inter',sans-serif;
  --font-mono:  ui-monospace,SFMono-Regular,Menlo,monospace;

  --dur-fast: 0.15s;
  --dur-med:  0.25s;
  --ease:     cubic-bezier(.2,.6,.2,1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

:lang(th), .thai-text {
  font-family: var(--font-thai);
}

#app { display: flex; flex-direction: column; height: 100dvh; }

#content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.125rem;
  padding-bottom: calc(var(--nav-h) + 1rem);
}

#content::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 8%, rgba(212,175,55,0.12), transparent 28%),
    linear-gradient(180deg, rgba(127,168,138,0.08), transparent 32%);
}

#content > * {
  position: relative;
  z-index: 1;
}

/* ── Bottom Nav ───────────────────────────────────── */
#bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(0,0,0,0.86);
  backdrop-filter: blur(18px);
  border-top: 1px solid rgba(212,175,55,0.15);
  display: flex;
  align-items: center;
  padding-bottom: 4px;
  z-index: 100;
}

.nav-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 0.42rem 0.05rem;
  font-family: var(--font-ui);
  transition: color var(--dur-fast);
  min-width: 0;
}
.nav-btn.active { color: var(--gold); }
.nav-btn span { font-size: 0.56rem; letter-spacing: 0; line-height: 1; max-width: 100%; overflow: hidden; text-overflow: clip; }
.nav-btn svg { width: 20px; height: 20px; }

/* ── Cards ────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid var(--gold-hair);
  box-shadow: var(--card-shadow);
}
.card-hero {
  border-radius: var(--radius-lg);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: var(--radius-btn);
  border: none;
  font-size: 0.98rem;
  font-weight: 600;
  font-family: var(--font-ui);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: opacity var(--dur-fast);
  width: 100%;
  min-height: 44px;
}
.btn:active { opacity: 0.82; }

.btn-primary {
  background: var(--gold-sheen);
  color: #0a0a0a;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 1px 2px rgba(0,0,0,0.4);
}
.btn-success { background: var(--success); color: #0a0a0a; }
.btn-danger  { background: var(--danger);  color: var(--text); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.5);
}
.btn-dim {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--border);
}

/* ── Typography ───────────────────────────────────── */
h1 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 0.5rem;
}
h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.muted { color: var(--text-muted); font-size: 0.875rem; }

.thai {
  font-family: var(--font-thai);
  font-size: 2rem;
  line-height: 1.45;
}
.thai-sm {
  font-family: var(--font-thai);
  font-size: 1.35rem;
  line-height: 1.45;
}
.thai-lg {
  font-family: var(--font-thai);
  font-size: 2.5rem;
  line-height: 1.45;
}

.gold-text { color: var(--gold); }

.gold-num {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1;
  background: var(--gold-sheen);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Inputs ───────────────────────────────────────── */
input[type="text"], input[type="password"] {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 1rem;
  padding: 0.85rem 1rem;
  width: 100%;
  outline: none;
  font-family: var(--font-ui);
  transition: border-color var(--dur-fast);
}

select.input-field,
input.input-field {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text);
  font-size: 0.95rem;
  padding: 0.75rem 0.85rem;
  width: 100%;
  outline: none;
  font-family: var(--font-ui);
}

.field-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
input[type="text"]:focus, input[type="password"]:focus {
  border-color: var(--gold);
}

/* ── Badges ───────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.22rem 0.6rem;
  border-radius: var(--radius-badge);
  font-size: 0.7rem;
  font-family: var(--font-ui);
  letter-spacing: 0.04em;
  color: var(--gold);
  border: 1px solid rgba(212,175,55,0.45);
  background: transparent;
  margin-left: 0.25rem;
}

/* ── Progress bar ─────────────────────────────────── */
.progress-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--surface2);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gold-sheen);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(241,210,106,0.4);
  transition: width 0.4s var(--ease);
}

/* ── Icon container (gold bg) ─────────────────────── */
.icon-box {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(212,175,55,0.08);
  border: 1px solid var(--gold-hair);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

/* ── Chat bubbles ─────────────────────────────────── */
.bubble-user {
  background: var(--gold-sheen);
  color: #0a0a0a;
  border-bottom-right-radius: 6px;
  font-weight: 500;
  align-self: flex-end;
  margin-left: auto;
}
.bubble-assistant {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--gold-hair);
  border-bottom-left-radius: 6px;
}

/* Home refresh */
.home-hero {
  position: relative;
  min-height: 300px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42%;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--gold-hair);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(20,20,22,0.96) 0%, rgba(10,10,12,0.92) 48%, rgba(127,168,138,0.22) 100%);
  box-shadow: var(--card-shadow);
  margin-bottom: 0.875rem;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.55rem;
}

.home-hero-copy h1 {
  font-size: 2.6rem;
  margin-bottom: 0;
}

.home-hero-copy p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 19rem;
}

.home-hero-img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: 58% center;
  filter: saturate(0.95) contrast(1.04);
}

.eyebrow {
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-action {
  width: fit-content;
  min-width: 11rem;
  margin-top: 0.4rem;
}

.daily-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.625rem;
  margin-bottom: 0.875rem;
}

.metric-card {
  background: rgba(28,28,30,0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 0.7rem;
  min-height: 6.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.metric-card strong {
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1;
}

.metric-label,
.metric-sub {
  color: var(--text-muted);
  font-size: 0.74rem;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
}

.practice-card .progress-bar {
  margin-bottom: 0.875rem;
}

.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.word-stack {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.word-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.word-row .thai-text {
  display: block;
  font-size: 1.12rem;
}

.word-row small {
  color: var(--text-muted);
}

.fail-pill,
.provider-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(212,175,55,0.3);
  background: rgba(212,175,55,0.08);
  color: var(--gold);
  font-size: 0.72rem;
  white-space: nowrap;
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--gold);
  font: 700 0.86rem var(--font-ui);
  cursor: pointer;
}

.quiet-card,
.tutor-tease {
  background: linear-gradient(180deg, rgba(28,28,30,0.9), rgba(17,17,19,0.88));
}

.tutor-tease {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.875rem;
  align-items: center;
}

.tutor-tease .btn {
  width: auto;
  white-space: nowrap;
}

@media (max-width: 430px) {
  #content {
    padding: 0.875rem;
    padding-bottom: calc(var(--nav-h) + 0.875rem);
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 390px;
  }

  .home-hero-copy {
    min-height: 260px;
    background: linear-gradient(90deg, rgba(0,0,0,0.82), rgba(0,0,0,0.36), transparent);
  }

  .home-hero-img {
    position: absolute;
    inset: 0;
    min-height: 390px;
    opacity: 0.68;
    object-position: 62% center;
  }

  .home-hero-copy h1 {
    font-size: 2.35rem;
  }

  .daily-grid {
    gap: 0.5rem;
  }

  .metric-card {
    min-height: 5.85rem;
    padding: 0.7rem 0.55rem;
  }

  .metric-card strong {
    font-size: 1.65rem;
  }

  .tutor-tease {
    grid-template-columns: 1fr;
  }

  .tutor-tease .btn,
  .hero-action {
    width: 100%;
  }
}

/* Liquid glass gold redesign */
:root {
  --glass-bg: linear-gradient(145deg, rgba(26,31,44,0.68), rgba(8,10,15,0.82));
  --glass-bg-strong: linear-gradient(145deg, rgba(35,42,58,0.78), rgba(9,11,18,0.92));
  --glass-border: rgba(228,187,80,0.34);
  --glass-border-cool: rgba(115,132,164,0.28);
  --dot-idle: #394255;
  --dot-future: #202838;
  --gold-glow: 0 0 18px rgba(241,210,106,0.55), 0 0 44px rgba(212,175,55,0.24);
  --glass-shadow: 0 18px 40px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.08);
}

body {
  background:
    radial-gradient(circle at 45% -10%, rgba(241,210,106,0.13), transparent 30%),
    radial-gradient(circle at 85% 18%, rgba(69,89,129,0.18), transparent 28%),
    #020305;
}

#content {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding-top: 0.9rem;
}

#content::before {
  background:
    linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.045) 34%, transparent 54%),
    radial-gradient(circle at 18% 18%, rgba(212,175,55,0.14), transparent 24%),
    radial-gradient(circle at 88% 4%, rgba(71,93,132,0.2), transparent 26%);
}

.card,
.glass-card,
.metric-card,
.quick-glass-card,
.word-row,
.bubble-assistant,
input[type="text"],
input[type="password"],
select.input-field,
input.input-field {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border-cool);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

.card,
.glass-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  animation: cardFloatIn 0.55s var(--ease) both;
}

.card::before,
.glass-card::before,
.metric-card::before,
.quick-glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,0.13), transparent 28%, transparent 62%, rgba(255,255,255,0.05));
  opacity: 0.46;
}

h1,
h2 {
  letter-spacing: 0;
}

.btn {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  transform: translateZ(0);
  transition: transform var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast), opacity var(--dur-fast);
}

.btn:active,
.quick-glass-card:active,
.btn-primary {
  background: linear-gradient(180deg, #ffe48a 0%, #d6ad35 48%, #8f6d19 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), var(--gold-glow);
}

.btn-primary::after,
.glass-progress-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.45) 42%, transparent 58%);
  transform: translateX(-120%);
  animation: progressShimmer 2.8s ease-in-out infinite;
}

.btn-ghost,
.btn-dim {
  background: rgba(24,30,42,0.72);
  border-color: rgba(228,187,80,0.28);
  color: var(--text);
}

.btn-ghost {
  color: var(--gold-hi);
}

#bottom-nav {
  left: 50%;
  transform: translateX(-50%);
  max-width: 430px;
  background: rgba(7,12,24,0.82);
  border-top: 1px solid rgba(228,187,80,0.22);
  box-shadow: 0 -18px 42px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

.nav-btn.active {
  color: var(--gold-hi);
  text-shadow: 0 0 16px rgba(241,210,106,0.7);
}

.nav-btn.active svg {
  filter: drop-shadow(0 0 8px rgba(241,210,106,0.55));
}

.glass-dashboard {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(145deg, rgba(11,13,19,0.94), rgba(15,23,39,0.82)),
    radial-gradient(circle at 72% 8%, rgba(212,175,55,0.22), transparent 28%);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: cardFloatIn 0.55s var(--ease) both;
}

.dashboard-top,
.year-panel,
.year-progress-block,
.dashboard-metrics,
.quick-glass-grid,
.practice-card,
.word-stack {
  position: relative;
  z-index: 1;
}

.practice-card {
  padding: 0.95rem;
}

.practice-card .section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-bottom: 0.72rem;
}

.practice-card h2 {
  font-size: 1.12rem;
  margin: 0 0 0.18rem;
}

.practice-card .muted {
  line-height: 1.2;
}

.practice-card .link-btn {
  min-height: 34px;
  padding: 0 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(228,187,80,0.38);
  background: rgba(212,175,55,0.1);
  white-space: nowrap;
}

.dashboard-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
  margin-bottom: 0.62rem;
}

.dashboard-top h1 {
  font-family: var(--font-ui);
  font-size: 1.78rem;
  font-weight: 700;
  margin: 0.2rem 0 0;
}

.thai-title {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.year-panel {
  padding: 0.2rem 0 0.1rem;
}

.panel-caption,
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.panel-caption strong,
.progress-meta strong {
  color: var(--gold-hi);
}

.year-grid {
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  gap: 2px;
  margin: 0.42rem 0 0.62rem;
}

.year-dot {
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 999px;
  background: linear-gradient(145deg, #465168, #2d3648);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  opacity: 0.92;
  animation: dotSettle 0.45s var(--ease) both;
}

.year-dot.is-future {
  background: #202737;
  opacity: 0.72;
}

.year-dot.is-practiced {
  background: var(--gold-sheen);
  box-shadow: var(--gold-glow);
}

.year-dot.is-today {
  background: #f1d26a;
  box-shadow: var(--gold-glow);
  animation: goldPulse 1.9s ease-in-out infinite;
}

.glass-progress {
  position: relative;
  height: 15px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32,40,56,0.9);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 8px rgba(0,0,0,0.58);
}

.glass-progress.thin {
  height: 9px;
}

.glass-progress-fill {
  position: relative;
  height: 100%;
  min-width: 16px;
  overflow: hidden;
  border-radius: inherit;
  background: var(--gold-sheen);
  box-shadow: var(--gold-glow);
  transition: width 0.6s var(--ease);
}

.progress-meta {
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-weight: 500;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 4.75rem;
  border-radius: 14px;
  padding: 0.7rem;
}

.metric-card.is-hot {
  border-color: var(--glass-border);
}

.metric-card strong {
  color: var(--gold-hi);
  text-shadow: 0 0 16px rgba(241,210,106,0.48);
}

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

.quick-glass-card {
  position: relative;
  overflow: hidden;
  min-height: 88px;
  border-radius: 15px;
  padding: 0.72rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.quick-glass-card.is-primary {
  border-color: var(--glass-border);
  box-shadow: var(--glass-shadow), 0 0 28px rgba(212,175,55,0.16);
}

.quick-glass-card svg {
  width: 26px;
  height: 26px;
  color: var(--gold);
  margin-bottom: 0.55rem;
  filter: drop-shadow(0 0 10px rgba(241,210,106,0.35));
}

.quick-glass-card span,
.quick-glass-card small {
  display: block;
}

.quick-glass-card span {
  font-weight: 800;
  margin-bottom: 0.15rem;
}

.quick-glass-card small {
  color: var(--text-muted);
}

.section-heading {
  align-items: center;
}

.word-row {
  position: relative;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(19,25,37,0.72);
}

.fail-pill,
.provider-pill,
.badge {
  background: rgba(212,175,55,0.11);
  border-color: rgba(228,187,80,0.36);
  color: var(--gold-hi);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.home-hero {
  min-height: auto;
  display: none;
}

#card-face,
.card-hero {
  border-color: rgba(228,187,80,0.34);
}

#card-face {
  box-shadow: var(--glass-shadow), 0 0 38px rgba(212,175,55,0.12);
}

.option-btn,
.cat-chip,
.speak-thai,
.roman-toggle {
  transition: transform var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.option-btn:active,
.cat-chip:active,
.speak-thai:active,
.roman-toggle:active {
  transform: scale(0.98);
}

@keyframes goldPulse {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.34); filter: brightness(1.24); }
}

@keyframes progressShimmer {
  0% { transform: translateX(-130%); }
  55%, 100% { transform: translateX(130%); }
}

@keyframes cardFloatIn {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes dotSettle {
  from { opacity: 0; transform: scale(0.65); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 430px) {
  #content {
    padding: 0.7rem;
    padding-bottom: calc(var(--nav-h) + 0.72rem);
  }

  .glass-dashboard {
    padding: 0.78rem;
  }

  .year-grid {
    gap: 2px;
  }

  .dashboard-top h1 {
    font-size: 1.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
