

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0; padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {

  --bg:       #000;
  --glass:    rgba(255,255,255,0.07);
  --border:   rgba(255,255,255,0.10);
  --blur:     28px;
  --sat:      180%;

  --t1: rgba(255,255,255,0.95);
  --t2: rgba(255,255,255,0.50);
  --t3: rgba(255,255,255,0.28);

  --blue:  #0071e3;
  --blue2: #2997ff;

  --emo-c: rgba(255,255,255,0.5);

  --dur:    260ms;
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease:   cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --r-pill: 999px;
  --r-card: 18px;

  --pad: 22px;
  --gap: 10px;
}

[data-theme="dark"] {
  --bg: #000000;
  --glass: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.10);
  --t1: rgba(255,255,255,0.95);
  --t2: rgba(255,255,255,0.50);
  --t3: rgba(255,255,255,0.28);
}
[data-theme="blue"] {
  --bg: #05111f;
  --glass: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.09);
  --t1: rgba(255,255,255,0.95);
  --t2: rgba(255,255,255,0.48);
  --t3: rgba(255,255,255,0.25);
}
[data-theme="natural"] {
  --bg: #16130f;
  --glass: rgba(255,250,240,0.07);
  --border: rgba(255,250,240,0.10);
  --t1: rgba(255,248,235,0.95);
  --t2: rgba(255,248,235,0.48);
  --t3: rgba(255,248,235,0.25);
}
[data-theme="light"] {
  --bg: #f2f2f7;
  --glass: rgba(0,0,0,0.055);
  --border: rgba(0,0,0,0.09);
  --t1: rgba(0,0,0,0.85);
  --t2: rgba(0,0,0,0.42);
  --t3: rgba(0,0,0,0.22);
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--t1);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text',
               'Inter', 'Helvetica Neue', Arial, sans-serif;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}

#loading-screen {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
#loading-screen.done {
  opacity: 0;
  transform: scale(1.03);
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.loader-logo {
  width: 60px; height: 60px;
  margin-bottom: 14px;
  animation: logoBreath 2.6s ease-in-out infinite;
}
@keyframes logoBreath {
  0%,100% { opacity: 0.55; transform: scale(1);    }
  50%      { opacity: 1;    transform: scale(1.07); }
}

.loader-wordmark {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.045em;
  color: #fff;
}
.loader-tagline {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-top: -2px;
  margin-bottom: 28px;
}

.loader-track {
  width: 170px; height: 1.5px;
  background: rgba(255,255,255,0.10);
  border-radius: 2px;
  overflow: hidden;
}
.loader-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, #fff, #2997ff);
  border-radius: 2px;
  transition: width 0.45s var(--ease);
  box-shadow: 0 0 20px #2997ff;
}
.loader-status {
  margin-top: 11px;
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  letter-spacing: 0.03em;
  text-align: center;
}

#app {
  position: fixed; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s var(--ease);
}
#app.visible {
  opacity: 1;
  pointer-events: auto;
}

.mirror {
  position: absolute; inset: 0;
  background: #000;
  overflow: hidden;
}
#video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
#overlay {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: scaleX(-1);
  transition: opacity var(--dur) var(--ease);
}
#ar-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  transform: scaleX(-1);
}

#particle-container {
  position: absolute; inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 45%, transparent 50%, rgba(0,0,0,0.52) 100%),
    linear-gradient(to bottom,
      rgba(0,0,0,0.48) 0%,
      transparent 20%,
      transparent 70%,
      rgba(0,0,0,0.65) 100%
    );
  pointer-events: none;
}

.hud {
  position: absolute; inset: 0;
  display: grid;
  grid-template-areas:
    "tl . tr"
    ".  .  ."
    "bl bc br";
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  padding: var(--pad);
  gap: var(--gap);
  pointer-events: none;
}
.hud > * { pointer-events: auto; }

.hud-tl { grid-area: tl; display: flex; flex-direction: column; gap: var(--gap); }
.hud-tr { grid-area: tr; justify-self: end; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.studio-switcher{padding:6px 11px;font-size:11px;gap:9px;white-space:nowrap;}
.studio-switcher a{color:var(--t1);text-decoration:none;opacity:.78;transition:opacity var(--dur) var(--ease);}
.studio-switcher a:hover{opacity:1;}
.studio-switcher a span{color:var(--t2);}
.studio-switcher i{height:14px;width:1px;background:var(--border);display:block;}
.hud-bl { grid-area: bl; align-self: end; display: flex; flex-direction: column; gap: 8px; }
.hud-bc { grid-area: bc; align-self: end; display: flex; flex-direction: column; align-items: center; gap: 7px; }
.hud-br { grid-area: br; align-self: end; justify-self: end; }

.glass-pill, .glass-card {
  background: var(--glass);
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  border: 1px solid var(--border);
  color: var(--t1);
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.glass-pill {
  border-radius: var(--r-pill);
  display: flex; align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px; font-weight: 500;
}

.glass-card {
  border-radius: var(--r-card);
  padding: 14px 16px;
  position: fixed;
  max-height: 80vh;
  overflow-y: auto;
  min-width: 300px;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  animation: panelIn 0.3s var(--spring);
}

.glass-card[hidden] { display: none; }

@keyframes panelIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.close-btn {
  background: none;
  border: none;
  color: var(--t2);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color var(--dur) var(--ease);
}
.close-btn:hover { color: var(--t1); }

.panel-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-row { gap: 9px; padding: 8px 12px; }

.dot {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    transform var(--dur) var(--spring),
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}
.dot:hover  { transform: scale(1.25); }
.dot:active { transform: scale(0.88); }
.dot.active {
  border-color: rgba(255,255,255,0.82);
  box-shadow: 0 0 0 2.5px rgba(255,255,255,0.18);
}

.dot[data-theme="dark"]    { background: #1c1c1e; }
.dot[data-theme="blue"]    { background: linear-gradient(135deg,#05111f 0%,#0a84ff 100%); }
.dot[data-theme="natural"] { background: #c4a98a; }
.dot[data-theme="light"]   { background: #f2f2f7; }

.action-row { gap: 6px; padding: 6px 10px; }

.act-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  background: transparent; border: 1px solid transparent;
  color: var(--t2);
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-family: inherit; white-space: nowrap;
}

.ico {
  width: 14px; height: 14px; flex-shrink: 0;
  display: block;
}
.act-btn .ico {
  width: 13px; height: 13px; flex-shrink: 0;
  transition: color var(--dur) var(--ease);
}
.act-btn:hover, .act-btn.on {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.13);
  color: var(--t1);
}

.sep {
  width: 1px; height: 16px;
  background: var(--border);
  flex-shrink: 0;
}

.lang-row { display: flex; gap: 4px; }
.lang-btn {
  padding: 4px 8px;
  border-radius: var(--r-pill);
  background: transparent; border: 1px solid transparent;
  color: var(--t2);
  font-size: 11px; font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-family: inherit;
  letter-spacing: 0.03em;
}
.lang-btn:hover {
  background: rgba(255,255,255,0.09);
  color: var(--t1);
}
.lang-btn.active {
  background: rgba(255,255,255,0.15);
  color: var(--t1);
}

.clock-pill {
  flex-direction: column; align-items: flex-start;
  gap: 2px; padding: 10px 15px;
}
.clock-time {
  font-size: 21px; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1;
  color: var(--t1);
}
.clock-date {
  font-size: 11px; font-weight: 400;
  color: var(--t2); letter-spacing: 0.02em;
}

.stats-btn {
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}
.stats-btn:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(255,255,255,0.13);
}

#emotion-hud { max-width: 290px; width: 100%; }

.emotion-pill {
  width: 100%;
  padding: 10px 16px;
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  transition:
    opacity  0.4s var(--ease),
    transform 0.4s var(--spring),
    background 0.5s var(--ease),
    border-color 0.5s var(--ease);
  will-change: transform, opacity;
}
.emotion-pill.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.emo-emoji {
  font-size: 22px; line-height: 1; flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.15));
  transition: filter 0.4s var(--ease);
  animation: emojiPulse 0.6s ease-in-out;
}

@keyframes emojiPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

.emo-body { flex: 1; min-width: 0; }
.emo-name {
  font-size: 14px; font-weight: 600;
  letter-spacing: -0.01em; display: block;
}

.conf-track {
  height: 2px; margin-top: 5px;
  background: rgba(255,255,255,0.10);
  border-radius: 2px; overflow: hidden;
}

.conf-fill {
  height: 100%; width: 0;
  background: var(--emo-c);
  border-radius: 2px;
  transition: width 0.5s var(--ease), background 0.4s var(--ease);
  box-shadow: 0 0 10px var(--emo-c);
}

.conf-pct {
  font-size: 12px; font-weight: 600;
  color: var(--t2); letter-spacing: 0.03em; flex-shrink: 0;
}

.advice-pill {
  font-size: 13px; font-weight: 500;
  text-align: center;
  padding: 8px 18px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity  0.35s var(--ease) 0.09s,
    transform 0.35s var(--spring) 0.09s;
}
.advice-pill.show {
  opacity: 1;
  transform: translateY(0);
}

.voice-btn {
  cursor: pointer;
  padding: 6px 10px;
  font-size: 12px;
  gap: 4px;
}
.voice-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.20);
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.setting-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--t1);
  text-transform: capitalize;
}

.setting-group input[type="range"] {
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.10);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.setting-group input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2997ff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(41, 151, 255, 0.5);
}

.setting-group input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2997ff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px rgba(41, 151, 255, 0.5);
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  position: absolute;
}

.toggle-switch span {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  transition: background 0.3s var(--ease);
  border: 1px solid rgba(255,255,255,0.20);
}

.toggle-switch span::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: left 0.3s var(--ease);
}

.toggle-switch input:checked + span {
  background: #30d158;
  border-color: #30d158;
}

.toggle-switch input:checked + span::after {
  left: 21px;
}

.btn-primary, .btn-secondary {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-family: inherit;
}

.btn-primary {
  background: #0071e3;
  color: white;
}
.btn-primary:hover {
  background: #0a84ff;
  box-shadow: 0 4px 20px rgba(10, 132, 255, 0.3);
}

.btn-secondary {
  background: rgba(255,255,255,0.10);
  color: var(--t1);
  border-color: rgba(255,255,255,0.15);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-card);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.stat-card:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.20);
}

.stat-emoji {
  font-size: 24px;
  flex-shrink: 0;
}

.stat-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-label {
  font-size: 11px;
  color: var(--t2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--t1);
}

.chart-container {
  width: 100%;
  height: 200px;
  margin-bottom: 16px;
  position: relative;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 12px;
}
.stat-item:last-child {
  border-bottom: none;
}

.stat-number {
  font-weight: 600;
  color: var(--t1);
}

.wellness-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.wellness-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  font-size: 12px;
  font-weight: 500;
  color: var(--t1);
  font-family: inherit;
}

.wellness-card:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.wellness-icon {
  font-size: 28px;
}

#wellness-content {
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--r-card);
  font-size: 13px;
  line-height: 1.6;
}

.update-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.update-list li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--t1);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.update-list li:last-child {
  border-bottom: none;
}

.update-list li::before {
  content: '✨ ';
  color: #2997ff;
  font-weight: 600;
}

.update-title {
  font-weight: 600;
  font-size: 14px !important;
  color: var(--t1) !important;
  border-bottom: 1px solid var(--border) !important;
  margin-bottom: 4px;
}
.update-title::before { content: none; }

.ver-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.ver-pill {
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--border);
  font-family: inherit;
  transition: all var(--dur) var(--ease);
}
.ver-pill:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.20);
}

.new-badge {
  background: linear-gradient(135deg, #ff453a, #ff9f0a);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.particle {
  position: absolute;
  pointer-events: none;
  font-size: 20px;
  will-change: transform, opacity;
  animation: float-up 2s ease-out forwards;
}

@keyframes float-up {
  0% {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) translateX(var(--tx)) scale(0.5);
  }
}

.auth-pill {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
}

.user-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.gone { display: none !important; }

@media (max-width: 640px) {
  :root { --pad: 14px; --gap: 8px; }

  .clock-time { font-size: 16px; }
  .clock-date { font-size: 10px; }

  #toggle-label { display: none; }
  .act-btn { padding: 5px 7px; }

  .hud {

    grid-template-areas:
      "tl tl tl"
      "tr tr tr"
      ".  .  ."
      "bc bc bc"
      "bl .  br";
    grid-template-rows: auto auto 1fr auto auto;
  }
  .hud-tr { justify-self: end; gap:6px; }
  .studio-switcher{padding:5px 9px;font-size:10px;}
  .hud-bc { align-self: auto; }
  .hud-bl, .hud-br { align-self: end; }

  #emotion-hud { max-width: 100%; padding: 0 4px; }

  .glass-card {
    min-width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    bottom: 16px;
    left: 16px;
    right: 16px;
    max-height: 60vh;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wellness-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 400px) {
  .clock-pill { display: none; }
  .dot { width: 14px; height: 14px; }

  .glass-card {
    min-width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}

:focus-visible {
  outline: 2px solid var(--blue2);
  outline-offset: 3px;
  border-radius: 6px;
}
button:focus:not(:focus-visible) { outline: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes hudIn {
    from { opacity: 0; translate: var(--hud-from, 0 16px); filter: blur(12px); }
    to { opacity: 1; translate: 0 0; filter: none; }
  }
  @keyframes focusIn {
    from { filter: blur(22px) brightness(.55) saturate(.6); }
    to { filter: none; }
  }
  @keyframes sheen {
    from { transform: translateX(-100%); opacity: 1; }
    75% { opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
  }
  @keyframes riseIn {
    from { opacity: 0; transform: translateY(14px); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
  }

  #app.visible #video { animation: focusIn 1.4s cubic-bezier(.2,.8,.2,1) both; }

  #app.visible .mirror::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.14) 46%, rgba(255,255,255,.04) 54%, transparent 66%);
    animation: sheen 2s .35s cubic-bezier(.45,0,.2,1) both;
  }

  #app.visible .hud-tl > *,
  #app.visible .hud-tr > *,
  #app.visible .hud-bl > *,
  #app.visible .hud-br > * { animation: hudIn .9s cubic-bezier(.2,.8,.2,1) backwards; }
  #app.visible .hud-tl > *,
  #app.visible .hud-tr > * { --hud-from: 0 -16px; }
  #app.visible .hud-bl > * { --hud-from: -18px 0; }
  #app.visible .hud-br > * { --hud-from: 18px 0; }
  #app.visible .hud-tl > :nth-child(1) { animation-delay: .25s; }
  #app.visible .hud-tl > :nth-child(2) { animation-delay: .33s; }
  #app.visible .hud-tr > :nth-child(1) { animation-delay: .3s; }
  #app.visible .hud-tr > :nth-child(2) { animation-delay: .38s; }
  #app.visible .hud-tr > :nth-child(3) { animation-delay: .44s; }
  #app.visible .hud-tr > :nth-child(4) { animation-delay: .5s; }
  #app.visible .hud-bl > :nth-child(1) { animation-delay: .45s; }
  #app.visible .hud-bl > :nth-child(2) { animation-delay: .53s; }
  #app.visible .hud-br > * { animation-delay: .6s; }

  .stats-panel:not([hidden]) .stat-card,
  .stats-panel:not([hidden]) .stat-item,
  .settings-panel:not([hidden]) .setting-group { animation: riseIn .6s cubic-bezier(.2,.8,.2,1) backwards; }
  .stats-panel:not([hidden]) .stat-card:nth-child(2),
  .settings-panel:not([hidden]) .setting-group:nth-child(2) { animation-delay: .06s; }
  .stats-panel:not([hidden]) .stat-card:nth-child(3),
  .settings-panel:not([hidden]) .setting-group:nth-child(3) { animation-delay: .12s; }
  .stats-panel:not([hidden]) .stat-card:nth-child(4),
  .settings-panel:not([hidden]) .setting-group:nth-child(4) { animation-delay: .18s; }
  .settings-panel:not([hidden]) .setting-group:nth-child(5) { animation-delay: .24s; }
  .stats-panel:not([hidden]) .stat-item { animation-delay: .26s; }
  .stats-panel:not([hidden]) .stat-item + .stat-item { animation-delay: .32s; }

  .act-btn:active,
  .dot:active,
  .close-btn:active,
  button.glass-pill:active { scale: .94; }
}
