:root {
  --bg1: #090f1a;
  --bg2: #0e1726;
  --bg3: #132036;
  --card: rgba(16, 24, 38, 0.78);
  --cardBorder: rgba(255, 255, 255, 0.09);
  --shadow: 0 14px 36px rgba(2, 6, 23, 0.42);
  --shadowSoft: 0 8px 20px rgba(2, 6, 23, 0.26);
  --text: #f5f8ff;
  --muted: #95a4bc;
  --muted2: #78879f;
  --accent: #5f8fff;
  --accent2: #81a7ff;
  --radius: 18px;
  --radiusSm: 14px;
  --pad: 20px;
  --gap: 14px;

  --danger: #f08b8b;
  --success: #38cba2;
  --surfaceSoft: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.1);
  --lineStrong: rgba(255, 255, 255, 0.17);
  --tabH: 80px;
  --ease: 190ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", Inter, "Noto Sans Bengali", sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
  background:
    radial-gradient(120% 90% at -8% -10%, rgba(95, 143, 255, 0.18), transparent 54%),
    radial-gradient(130% 90% at 110% -8%, rgba(75, 210, 208, 0.1), transparent 56%),
    linear-gradient(180deg, var(--bg1) 0%, var(--bg2) 48%, var(--bg3) 100%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  transition: color var(--ease), background-color var(--ease);
}

.bg-orb {
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(52px);
  opacity: 0.24;
  z-index: 0;
}

.orb-1 {
  width: 220px;
  height: 220px;
  top: 6%;
  left: -80px;
  background: color-mix(in srgb, var(--accent2) 65%, transparent);
}

.orb-2 {
  width: 240px;
  height: 240px;
  right: -120px;
  bottom: 8%;
  background: color-mix(in srgb, var(--accent) 58%, transparent);
}

.app {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 10px) 14px calc(var(--tabH) + env(safe-area-inset-bottom) + 16px);
  overflow: visible;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--cardBorder);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(122%);
  -webkit-backdrop-filter: blur(18px) saturate(122%);
  padding: var(--pad);
  margin-bottom: var(--gap);
}

@supports not (backdrop-filter: blur(1px)) {
  .card {
    background: rgba(16, 24, 38, 0.95);
  }
  body.dark .card {
    background: rgba(16, 24, 38, 0.95);
  }
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  position: sticky;
  top: calc(env(safe-area-inset-top) + 4px);
  z-index: 20;
}

.kicker {
  margin: 0;
  color: var(--muted2);
  font-size: 12px;
  letter-spacing: 0.28px;
  font-weight: 600;
}

.header-meta {
  min-width: 0;
}

.header-meta h1 {
  margin: 4px 0 4px;
  font-size: clamp(22px, 5.2vw, 24px);
  line-height: 1.15;
  letter-spacing: 0.1px;
  font-weight: 700;
}

.identity {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
}

main {
  position: relative;
  min-height: 64vh;
}

.tab-content {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 210ms ease, transform 210ms ease;
}

.tab-content.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tab-content[hidden] {
  display: none !important;
}

h2,
h3 {
  margin: 0;
  line-height: 1.25;
  letter-spacing: 0.1px;
  font-weight: 650;
}

h2 {
  font-size: 19px;
}

h3 {
  font-size: 17px;
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.row > * {
  min-width: 0;
}

.today-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.caption {
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.4;
}

.big-time {
  font-size: clamp(34px, 11.6vw, 44px);
  line-height: 1.04;
  font-weight: 700;
  margin: 12px 0 14px;
  letter-spacing: 0.2px;
}

.compact-row {
  margin-bottom: 12px;
}

.compact-row-bottom {
  margin-top: 9px;
  margin-bottom: 0;
}

.progress {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surfaceSoft) 92%, transparent);
  overflow: hidden;
}

.progress-tight {
  margin-top: 8px;
}

.progress > span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent2) 70%, #ffffff 30%));
  border-radius: inherit;
  transition: width 220ms ease;
}

.stat-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-box {
  border-radius: var(--radiusSm);
  background: var(--surfaceSoft);
  padding: 13px;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-box .label {
  font-size: 12px;
  color: var(--muted);
}

.stat-box .value {
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 650;
}

.next-block-title {
  margin: 10px 0 8px;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 650;
}

form {
  margin: 0;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.form-gap-top {
  margin-top: 12px;
}

.block-gap-top {
  margin-top: 14px;
}

.block-gap-top-sm {
  margin-top: 10px;
}

.muted-gap {
  margin-bottom: 6px;
}

.inline-2,
.inline-3 {
  display: grid;
  gap: 12px;
}

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

.inline-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surfaceSoft) 94%, transparent);
  color: var(--text);
  font: inherit;
  padding: 11px 13px;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 6.2 8 10.3l4.5-4.1' stroke='%2395a4bc' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px 14px;
  padding-right: 36px;
}

.textarea {
  min-height: 108px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: color-mix(in srgb, var(--accent) 62%, var(--lineStrong));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  background: color-mix(in srgb, var(--surfaceSoft) 98%, transparent);
}

.btn,
.icon-btn,
.mode-btn,
.chip,
.nav-btn {
  transition: transform 150ms ease, filter 180ms ease, color var(--ease), background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.btn,
.icon-btn {
  min-height: 46px;
  border-radius: 13px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
}

.btn:active,
.icon-btn:active,
.mode-btn:active,
.chip:active,
.nav-btn:active {
  transform: scale(0.975);
}

.btn:disabled,
.icon-btn:disabled,
.mode-btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.btn {
  padding: 0 15px;
  color: var(--text);
  border-color: var(--line);
  background: color-mix(in srgb, var(--surfaceSoft) 90%, transparent);
  box-shadow: none;
}

.btn.primary {
  color: #ffffff;
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent2) 42%, var(--accent)), var(--accent));
  box-shadow: 0 8px 16px color-mix(in srgb, var(--accent) 28%, transparent);
}

.btn.ghost {
  background: color-mix(in srgb, var(--card) 72%, transparent);
}

.btn.warn {
  background: color-mix(in srgb, var(--danger) 14%, var(--card));
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 44%, var(--line));
}

.btn.small {
  min-height: 42px;
  padding: 0 13px;
  font-size: 13px;
}

.btn.compact {
  min-height: 40px;
  padding: 0 12px;
}

.btn.with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn.with-icon svg {
  width: 17px;
  height: 17px;
}

.btn.with-icon svg path,
.break-icon-wrap svg path {
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn {
  width: 44px;
  min-width: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--surfaceSoft) 86%, transparent);
  color: var(--muted);
  border-color: var(--line);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 35px;
  border-radius: 11px;
  padding: 0 11px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surfaceSoft) 92%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.chip.active {
  color: #dce7ff;
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: color-mix(in srgb, var(--accent) 24%, var(--surfaceSoft));
}

.mode-toggle {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mode-btn {
  min-height: 46px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surfaceSoft) 92%, transparent);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.mode-btn.active {
  color: #dce7ff;
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: color-mix(in srgb, var(--accent) 24%, var(--surfaceSoft));
}

.list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 12px;
}

.item {
  border-radius: var(--radiusSm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surfaceSoft) 95%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding: 13px;
}

.item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.item-title,
.task-title {
  margin: 0;
  font-size: 15px;
  line-height: 1.38;
  font-weight: 650;
}

.task-title.done {
  text-decoration: line-through;
  color: var(--muted);
}

.task-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.task-row .btn.small {
  flex-shrink: 0;
}

.badges {
  margin-top: 9px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surfaceSoft) 90%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.badge.cat-youtube {
  color: #9dc6ff;
  border-color: rgba(125, 171, 255, 0.36);
  background: rgba(83, 121, 198, 0.19);
}

.badge.cat-borbila {
  color: #8fdde8;
  border-color: rgba(93, 198, 211, 0.34);
  background: rgba(42, 140, 156, 0.2);
}

.badge.cat-course {
  color: #b7c6ff;
  border-color: rgba(146, 161, 255, 0.35);
  background: rgba(88, 99, 178, 0.2);
}

.badge.cat-client {
  color: #a8daff;
  border-color: rgba(111, 185, 255, 0.36);
  background: rgba(63, 116, 189, 0.2);
}

.badge.cat-others {
  color: #c2ccdd;
  border-color: rgba(175, 188, 210, 0.3);
  background: rgba(96, 107, 131, 0.2);
}

.badge.cat-break {
  color: #a7f0d4;
  border-color: rgba(107, 213, 168, 0.35);
  background: rgba(48, 138, 103, 0.2);
}

.badge.priority-high {
  color: #ffb8b8;
  border-color: rgba(248, 113, 113, 0.44);
  background: rgba(130, 47, 57, 0.24);
}

.badge.priority-med {
  color: #ffe2a3;
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(128, 94, 28, 0.24);
}

.badge.priority-low {
  color: #b7f2d8;
  border-color: rgba(56, 203, 162, 0.36);
  background: rgba(32, 114, 95, 0.23);
}

.checkbox {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--accent);
}

.timer-card {
  padding-top: 18px;
}

.timer-ring-wrap {
  width: min(84vw, 320px);
  aspect-ratio: 1;
  margin: 0 auto 8px;
  position: relative;
}

.timer-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-track {
  fill: none;
  stroke: color-mix(in srgb, var(--surfaceSoft) 88%, var(--line));
  stroke-width: 12;
}

.timer-ring-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 950ms linear, stroke var(--ease);
}

.timer-ring-progress.break {
  stroke: var(--success);
}

.timer-center {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 26px;
}

.timer-display {
  font-size: clamp(42px, 13vw, 52px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.timer-meta-row {
  margin-top: 10px;
  align-items: flex-start;
  gap: 8px;
}

.timer-controls {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.timer-btn {
  min-height: 48px;
  border-radius: 14px;
}

.bar-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(74px, 34%) 1fr 60px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.bar-row > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-track {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surfaceSoft) 94%, transparent);
}

.bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent2) 65%, #ffffff 35%));
  transition: width 240ms ease;
}

.week-bars {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  min-height: 118px;
}

.week-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.week-bar-wrap {
  width: 100%;
  max-width: 34px;
  height: 84px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surfaceSoft) 88%, transparent);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.week-bar {
  width: 100%;
  height: 4%;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--accent2), var(--accent));
  transition: height 220ms ease;
}

.week-day,
.week-min {
  font-size: 11px;
}

.week-day {
  color: var(--muted);
}

.week-min {
  font-weight: 600;
}

.streak-line {
  margin-top: 10px;
}

.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radiusSm);
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surfaceSoft) 94%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.setting-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.switch {
  display: inline-flex;
  position: relative;
  width: 52px;
  height: 32px;
}

.switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.switch-ui {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surfaceSoft) 80%, transparent);
  position: relative;
  transition: background var(--ease), border-color var(--ease);
}

.switch-ui::before {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  transition: transform var(--ease), background var(--ease);
}

.switch input:checked + .switch-ui {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border-color: transparent;
}

.switch input:checked + .switch-ui::before {
  transform: translateX(20px);
}

.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom) + 6px);
  width: min(430px, calc(100vw - 14px));
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 7px;
  border-radius: 20px;
  border: 1px solid var(--cardBorder);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    color-mix(in srgb, var(--card) 90%, #0b1220 10%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.nav-btn {
  border: none;
  background: transparent;
  min-height: 54px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
  color: var(--muted2);
  font-size: 11px;
  font-weight: 650;
  cursor: pointer;
}

.nav-icon {
  width: 20px;
  height: 20px;
}

.nav-icon path,
.nav-icon rect,
.nav-icon circle {
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-btn.active {
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 21%, var(--surfaceSoft));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}

.nav-btn.active .nav-icon {
  color: #cfe1ff;
}

.nav-btn span {
  line-height: 1;
}

.empty {
  margin-top: 10px;
  border-radius: 12px;
  border: 1px dashed var(--line);
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surfaceSoft) 88%, transparent);
}

.danger-text {
  min-height: 18px;
  font-size: 12px;
  color: var(--danger);
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(var(--tabH) + env(safe-area-inset-bottom) + 6px);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  color: #fff;
  border-radius: 11px;
  border: 1px solid var(--lineStrong);
  background: rgba(12, 18, 30, 0.92);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.38);
  padding: 10px 14px;
  font-size: 13px;
  white-space: nowrap;
  transition: opacity var(--ease), transform var(--ease);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, -2px);
}

.break-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  place-items: center;
  background: rgba(8, 12, 20, 0.32);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  padding: 16px;
}

.break-modal.show {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}

.break-card {
  width: min(100%, 340px);
  border-radius: 20px;
  border: 1px solid var(--cardBorder);
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.break-card h3 {
  margin: 8px 0 6px;
  font-size: 20px;
}

.break-card .muted {
  margin: 0 0 12px;
}

.break-icon-wrap {
  margin: 2px auto 6px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--accent) 24%, var(--surfaceSoft));
  color: var(--accent);
}

.break-icon-wrap svg {
  width: 20px;
  height: 20px;
}

.break-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.confetti {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.confetti span {
  position: absolute;
  width: 7px;
  height: 11px;
  border-radius: 999px;
  top: -16px;
  opacity: 0;
  animation: confettiFall 2.6s linear infinite;
}

.confetti span:nth-child(3n + 1) { background: #60a5fa; }
.confetti span:nth-child(3n + 2) { background: #34d399; }
.confetti span:nth-child(3n + 3) { background: #fbbf24; }

.confetti span:nth-child(1) { left: 8%; animation-delay: 0.1s; }
.confetti span:nth-child(2) { left: 16%; animation-delay: 0.5s; }
.confetti span:nth-child(3) { left: 24%; animation-delay: 0.2s; }
.confetti span:nth-child(4) { left: 32%; animation-delay: 1s; }
.confetti span:nth-child(5) { left: 40%; animation-delay: 0.7s; }
.confetti span:nth-child(6) { left: 48%; animation-delay: 1.2s; }
.confetti span:nth-child(7) { left: 56%; animation-delay: 0.35s; }
.confetti span:nth-child(8) { left: 64%; animation-delay: 1.5s; }
.confetti span:nth-child(9) { left: 72%; animation-delay: 0.9s; }
.confetti span:nth-child(10) { left: 80%; animation-delay: 1.1s; }
.confetti span:nth-child(11) { left: 88%; animation-delay: 0.65s; }
.confetti span:nth-child(12) { left: 20%; animation-delay: 1.8s; }
.confetti span:nth-child(13) { left: 29%; animation-delay: 2.2s; }
.confetti span:nth-child(14) { left: 37%; animation-delay: 1.9s; }
.confetti span:nth-child(15) { left: 69%; animation-delay: 2.3s; }

@keyframes confettiFall {
  0% {
    transform: translateY(-8px) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  100% {
    transform: translateY(190px) rotate(260deg);
    opacity: 0;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 380px) {
  .card {
    padding: 16px;
  }
  .header-meta h1 {
    font-size: 22px;
  }
  .identity {
    font-size: 11px;
  }
  .stat-box .value {
    font-size: 16px;
  }
  #settingsForm .inline-2 {
    grid-template-columns: 1fr;
  }
  .bottom-nav {
    width: calc(100vw - 12px);
  }
}

@media (min-width: 720px) {
  .app {
    padding-left: 16px;
    padding-right: 16px;
  }
}
