@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f3efe7;
  --paper-2: #eae4da;
  --paper-3: #e2dbcf;
  --surface: #fffcf7;
  --ink: #1b1814;
  --ink-2: #4b443a;
  --muted: #6b6358;
  --faint: #746a5c;
  --line: #e4ddd1;
  --line-strong: #d3c9ba;
  --accent: #d8452a;
  --accent-soft: #fae5de;
  --accent-wash: #fdf1ec;
  --accent-ink: #ab341c;
  --accent-button: #c23d23;
  --accent-button-hover: #aa331b;
  --green: #4e6b52;
  --green-wash: #edf1e8;
  --font: "Instrument Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(46, 34, 21, 0.04), 0 10px 30px -24px rgba(46, 34, 21, 0.28);
  --shadow-lg: 0 1px 3px rgba(46, 34, 21, 0.03), 0 26px 64px -38px rgba(46, 34, 21, 0.34);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(900px 560px at 88% -8%, rgba(216, 69, 42, 0.09), transparent 66%),
    radial-gradient(760px 520px at -12% 10%, rgba(95, 116, 79, 0.08), transparent 62%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] {
  display: none !important;
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
}

h1,
h2,
p {
  margin: 0;
}

ul,
ol {
  margin: 0;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

:focus-visible {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

body:has(dialog[open]) {
  overflow: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.shell {
  width: min(1180px, calc(100% - 56px));
  margin-inline: auto;
}

.view:not([hidden]) {
  animation: view-in 0.32s ease-out both;
}

@keyframes view-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.icon {
  width: 16px;
  height: 16px;
  flex: none;
}

.icon-sm {
  width: 14px;
  height: 14px;
}

/* ---------- Brand ---------- */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-mark {
  width: 23px;
  height: 23px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand:hover .brand-mark {
  transform: rotate(-9deg) scale(1.06);
}

.brand-word {
  line-height: 1;
}

/* ---------- Navigation ---------- */

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 27px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 13px;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.18s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-weight: 500;
}

.nav-cta .icon {
  transition: transform 0.2s ease;
}

.nav-cta:hover .icon {
  transform: translateX(2px);
}

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(34px, 5vw, 76px);
  padding: clamp(34px, 5vh, 64px) 0 clamp(54px, 7vh, 88px);
}

.hero-copy {
  min-width: 0;
  max-width: 620px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.17em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero h1 {
  margin-top: 20px;
  font-size: clamp(45px, 5.6vw, 76px);
  font-weight: 500;
  line-height: 0.99;
  letter-spacing: -0.055em;
}

.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--accent);
}

.lede {
  max-width: 46ch;
  margin-top: 22px;
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.68;
  color: var(--muted);
}

/* ---------- Create form ---------- */

.create-card {
  max-width: 564px;
  margin-top: 33px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 21px;
  box-shadow: var(--shadow-sm);
}

.create-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 17px;
}

.form-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.form-time {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}

.field > span,
.field-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.field input::placeholder {
  color: #a69c8e;
}

.field input:hover {
  border-color: var(--line-strong);
}

.field input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.goal-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 15px;
  padding: 13px 0;
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
}

.goal-field > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
}

.stepper {
  display: flex;
  align-items: center;
  flex: none;
  gap: 1px;
  padding: 3px;
  background: #f8f4ec;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.stepper-btn {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.stepper-btn:hover {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(46, 34, 21, 0.12);
}

.stepper input {
  width: 42px;
  height: 31px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
  appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.stepper input:focus {
  outline: none;
}

.form-error {
  margin-top: 11px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--accent-ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:disabled {
  opacity: 0.6;
}

.btn-primary {
  background: var(--accent-button);
  border-color: var(--accent-button);
  color: #fffdf9;
  box-shadow: 0 1px 2px rgba(94, 29, 15, 0.18);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-button-hover);
  border-color: var(--accent-button-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgba(137, 40, 21, 0.65);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}

.btn-create {
  justify-content: space-between;
  width: 100%;
  height: 50px;
  margin-top: 16px;
  border-radius: 12px;
  font-size: 14px;
}

.btn-create .icon {
  transition: transform 0.2s ease;
}

.btn-create:hover:not(:disabled) .icon {
  transform: translateX(2px);
}

.btn-block {
  width: 100%;
  height: 50px;
  border-radius: 12px;
}

.join-card .btn-block,
.notfound-card .btn-block {
  justify-content: space-between;
}

.btn-ghost {
  background: #fbf8f2;
  border-color: var(--line);
  color: var(--ink-2);
}

.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--line-strong);
}

.btn-soft {
  background: var(--accent-wash);
  border-color: #f0d4ca;
  color: var(--accent-ink);
}

.btn-soft:hover {
  background: #fbe4dc;
}

.btn-sm {
  height: 36px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 12.5px;
}

.btn-copy {
  height: 44px;
  flex: none;
  padding-inline: 20px;
  border-radius: 10px;
}

.fineprint {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--faint);
}

.fineprint a {
  color: var(--muted);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.fineprint a:hover {
  color: var(--ink);
}

/* ---------- Hero art ---------- */

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 69, 42, 0.14), rgba(216, 69, 42, 0.03) 48%, transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.orbit {
  position: relative;
  z-index: 1;
  width: min(100%, 458px);
  aspect-ratio: 1;
  container-type: inline-size;
}

.orbit-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-track {
  stroke: var(--line-strong);
  stroke-width: 2;
  opacity: 0.62;
}

.ring-fill {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1231.5;
  stroke-dashoffset: 468;
  animation: ring-draw 1.5s cubic-bezier(0.2, 0.72, 0.2, 1) both;
}

@keyframes ring-draw {
  from {
    stroke-dashoffset: 1231.5;
  }
  to {
    stroke-dashoffset: 468;
  }
}

.orbit-core {
  position: absolute;
  inset: 16%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}

.mini-eyebrow {
  font-size: 2.35cqw;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.mini-time {
  margin-top: 2cqw;
  font-size: 15.5cqw;
  font-weight: 500;
  line-height: 0.95;
  letter-spacing: -0.065em;
  font-variant-numeric: tabular-nums;
}

.mini-rule {
  width: 10cqw;
  height: 1px;
  margin: 4.6cqw 0 3.4cqw;
  background: var(--line-strong);
}

.mini-goal {
  font-size: 2.7cqw;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.orbit-pill {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1.7cqw;
  padding: 1.15cqw 2.5cqw 1.15cqw 1.15cqw;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 34px -20px rgba(46, 34, 21, 0.5);
  font-size: 2.9cqw;
  animation: pill-float 6.5s ease-in-out infinite;
}

.orbit-pill .avatar {
  width: 5.2cqw;
  height: 5.2cqw;
  font-size: 2.2cqw;
}

.orbit-pill .pill-name {
  color: var(--ink-2);
  font-weight: 450;
}

.orbit-pill b {
  margin-left: 0.3cqw;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.p1 {
  top: 5%;
  left: 8%;
  animation-delay: -1.1s;
}

.p2 {
  top: 23%;
  right: -1.5%;
  animation-delay: -3.2s;
}

.p3 {
  right: 9%;
  bottom: 5%;
  animation-delay: -5.2s;
}

.p4 {
  bottom: 16%;
  left: -1.5%;
  animation-delay: -2.2s;
}

@keyframes pill-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.orbit-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17.5px;
  color: var(--muted);
  text-align: center;
}

.hand-line {
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--line-strong);
  transform: rotate(-7deg);
  flex: none;
}

/* ---------- Avatars ---------- */

.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: uppercase;
}

.av-clay {
  background: #f0d5c7;
  color: #783c29;
}

.av-sage {
  background: #dee5d1;
  color: #495b37;
}

.av-sand {
  background: #f0e5c8;
  color: #6a5525;
}

.av-sky {
  background: #d8e6e9;
  color: #335a63;
}

.av-rose {
  background: #eed7d5;
  color: #733a35;
}

/* ---------- How it works ---------- */

.how {
  padding: 52px 0 36px;
  border-top: 1px solid var(--line);
}

.how-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 37px;
}

.how-note {
  font-size: 11.5px;
  color: var(--faint);
}

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

.steps article {
  min-width: 0;
  padding-right: 38px;
}

.steps article + article {
  padding-left: 38px;
  border-left: 1px solid var(--line);
}

.step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--accent-ink);
}

.steps h2 {
  margin: 11px 0 7px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.steps p {
  max-width: 31ch;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---------- What's a pomodoro ---------- */

.method {
  padding: 56px 0 64px;
  border-top: 1px solid var(--line);
}

.method-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.method-title {
  margin-top: 13px;
  font-size: clamp(38px, 4.8vw, 55px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.05em;
}

.method-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.method-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: start;
  gap: clamp(32px, 6vw, 82px);
}

.method-copy {
  min-width: 0;
  max-width: 590px;
  padding-top: 5px;
}

.method-origin {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--accent-wash);
  border: 1px solid #f3d7cd;
  border-radius: 14px;
}

.method-origin-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  margin-top: 1px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.method-origin-mark .icon {
  width: 17px;
  height: 17px;
}

.method-origin p {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

.method-origin strong {
  font-weight: 600;
  color: var(--accent-ink);
}

.method-origin em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2em;
  color: var(--accent-ink);
}

.method-text {
  max-width: 52ch;
  margin-top: 24px;
  font-size: clamp(15px, 1.35vw, 16.5px);
  line-height: 1.72;
  color: var(--muted);
}

.method-text strong {
  font-weight: 550;
  color: var(--ink-2);
  white-space: nowrap;
}

.method-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--faint);
}

.method-note::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--accent);
}

.cycle-card {
  min-width: 0;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

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

.cycle-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.cycle-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.cycle-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.cycle-row + .cycle-row {
  border-top: 1px dashed var(--line);
}

.cycle-number {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
}

.cycle-cell {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.cycle-label {
  color: var(--muted);
  font-size: 11.5px;
}

.cycle-time {
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.cycle-break {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 5px 9px;
  background: #f8f4ec;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--faint);
  font-size: 9.5px;
  white-space: nowrap;
}

.cycle-break strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.cycle-break.is-long {
  background: var(--accent-wash);
  border-color: #f1d3c8;
  color: var(--accent-ink);
}

.cycle-break.is-long strong {
  color: var(--accent-ink);
}

.cycle-foot {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.55;
}

/* ---------- Manifesto ---------- */

.manifesto {
  position: relative;
  overflow: hidden;
  margin-bottom: 55px;
  padding: clamp(30px, 4.6vw, 48px);
  background: #1c1814;
  border-radius: 26px;
  color: #f6f0e5;
}

.manifesto::after {
  content: "";
  position: absolute;
  top: -85px;
  right: -65px;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 69, 42, 0.34), transparent 68%);
  pointer-events: none;
}

.manifesto p {
  position: relative;
  z-index: 1;
  max-width: 24ch;
  font-size: clamp(26px, 3.3vw, 39px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.manifesto em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: #f1a48c;
}

.manifesto-mark {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 26px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(246, 240, 229, 0.52);
}

.manifesto-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0 30px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--faint);
}

/* ---------- Loading ---------- */

.loading-view {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 100vh;
}

.loader {
  display: flex;
  gap: 5px;
}

.loader span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: loader-bounce 1s ease-in-out infinite;
}

.loader span:nth-child(2) {
  animation-delay: 0.12s;
}

.loader span:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes loader-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.45;
  }
  45% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

/* ---------- Join / not found ---------- */

.join-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
}

.tiny-note {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--faint);
}

.join-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 170px);
  padding: 28px 0 68px;
}

.join-main::before {
  content: "";
  position: absolute;
  top: 12%;
  width: min(520px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 69, 42, 0.11), transparent 66%);
  pointer-events: none;
}

.join-card {
  position: relative;
  z-index: 1;
  width: min(100%, 462px);
  padding: clamp(25px, 4vw, 37px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}

.join-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid #f2d5cb;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.join-card h1 {
  margin-top: 17px;
  font-size: clamp(33px, 4.4vw, 43px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.join-meta {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

#join-form {
  margin-top: 26px;
}

#join-form .field input {
  height: 50px;
  background: #fbf8f2;
  font-size: 15px;
}

#join-form .btn {
  margin-top: 16px;
}

.join-privacy {
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  color: var(--faint);
}

.join-quote {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--muted);
}

.join-quote em {
  color: var(--accent-ink);
}

.notfound-card h1 {
  margin-top: 16px;
}

.notfound-card .btn {
  margin-top: 24px;
}

.text-button {
  display: block;
  margin: 13px auto 0;
  padding: 4px 8px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}

.text-button:hover {
  color: var(--ink);
}

/* ---------- Group page ---------- */

.group-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.group-nav .brand {
  font-size: 16px;
}

.group-nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.member-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px 3px 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-2);
  max-width: 180px;
}

.member-chip .avatar {
  width: 24px;
  height: 24px;
  font-size: 9px;
}

.member-chip > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-main {
  padding: 35px 0 60px;
}

.group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.group-head h1 {
  margin-top: 9px;
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.048em;
  overflow-wrap: anywhere;
}

.group-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.dash {
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(0, 0.93fr);
  align-items: stretch;
  gap: 18px;
}

.card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.card-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.icon-button:hover:not(:disabled) {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.icon-button:disabled {
  opacity: 0.35;
}

.icon-button-lg {
  width: 52px;
  height: 52px;
  flex: none;
  background: var(--surface);
  border-color: var(--line);
  border-radius: 14px;
}

.icon-button-lg:hover:not(:disabled) {
  background: var(--paper);
  border-color: var(--line-strong);
}

/* ---------- Timer ---------- */

.timer-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 428px;
  padding: 25px 28px 21px;
  overflow: hidden;
}

.timer-card::before {
  content: "";
  position: absolute;
  right: -22%;
  bottom: -62%;
  width: 84%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 69, 42, 0.11), transparent 67%);
  pointer-events: none;
}

.card-top,
.mode-tabs,
.timer-block,
.timer-actions,
.timer-foot {
  position: relative;
  z-index: 1;
}

.you-stat {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.you-stat.is-done {
  color: var(--green);
}

.mode-tabs {
  display: inline-flex;
  align-self: flex-start;
  margin-top: 20px;
  padding: 3px;
  background: #f6f1e8;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.mode-tab {
  padding: 7px 13px;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 450;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.mode-tab:hover:not(:disabled) {
  color: var(--ink);
}

.mode-tab.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(46, 34, 21, 0.12);
  font-weight: 500;
}

.mode-tab:disabled {
  opacity: 0.55;
}

.timer-block {
  margin-block: auto;
  padding: 30px 0 28px;
}

.timer-time {
  font-size: clamp(76px, 8.9vw, 112px);
  font-weight: 500;
  line-height: 0.88;
  letter-spacing: -0.07em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.timer-track {
  height: 4px;
  margin-top: 29px;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: 999px;
}

.timer-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s linear;
}

.timer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-timer {
  min-width: 166px;
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 550;
}

.btn-timer .ic-play,
.btn-timer .ic-pause {
  width: 14px;
  height: 14px;
}

.btn-timer .ic-pause {
  display: none;
}

.btn-timer[data-state="running"] {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-timer[data-state="running"]:hover:not(:disabled) {
  background: #2b251f;
  border-color: #2b251f;
  box-shadow: 0 10px 24px -14px rgba(27, 24, 20, 0.55);
}

.btn-timer[data-state="running"] .ic-play {
  display: none;
}

.btn-timer[data-state="running"] .ic-pause {
  display: block;
}

.btn-timer[data-state="paused"] {
  background: var(--accent-button);
}

.timer-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  font-size: 11px;
  color: var(--faint);
}

.round-wrap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.round-dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.round-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--line-strong);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.round-dots i.is-done {
  background: var(--accent);
}

.round-dots i.is-current {
  background: var(--surface);
  box-shadow: 0 0 0 1.5px var(--accent);
}

/* ---------- Board ---------- */

.board-card {
  display: flex;
  flex-direction: column;
  min-height: 428px;
  padding: 24px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6f8a5e;
  box-shadow: 0 0 0 3px rgba(111, 138, 94, 0.12);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.board-summary {
  margin-top: 24px;
}

.board-total {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 50px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}

.board-total .board-goal {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--faint);
}

.board-progress {
  height: 3px;
  margin-top: 16px;
  overflow: hidden;
  background: var(--paper-2);
  border-radius: 999px;
}

.board-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ink);
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.board-caption {
  margin-top: 9px;
  font-size: 11px;
  color: var(--faint);
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  max-height: 328px;
  margin-top: 18px;
  padding: 12px 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border-top: 1px solid var(--line);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

.member-list::-webkit-scrollbar {
  width: 5px;
}

.member-list::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.member-row {
  display: grid;
  grid-template-columns: 17px 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 7px 8px;
  border-radius: 12px;
  transition: background 0.18s ease;
}

.member-row:hover {
  background: #faf6ee;
}

.member-row.is-me {
  background: var(--accent-wash);
}

.rank {
  font-size: 10px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.member-main {
  min-width: 0;
}

.member-line {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.member-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.you-tag {
  flex: none;
  padding: 2px 6px;
  background: #f6d8ce;
  border-radius: 999px;
  color: var(--accent-ink);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.goal-check {
  display: inline-flex;
  flex: none;
  color: var(--green);
}

.goal-check .icon {
  width: 12px;
  height: 12px;
}

.row-bar {
  height: 2px;
  margin-top: 6px;
  overflow: hidden;
  background: var(--line);
  border-radius: 999px;
}

.row-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: #7f7467;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.is-me .row-bar span {
  background: var(--accent);
}

.member-count {
  display: flex;
  align-items: baseline;
  gap: 2px;
  justify-self: end;
  color: var(--faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.member-count strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.is-me .member-count strong {
  color: var(--accent-ink);
}

.member-count.is-complete strong {
  color: var(--green);
}

.activity {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 17px;
  margin: 14px 0 12px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--faint);
}

.activity::before {
  content: "";
  width: 4px;
  height: 4px;
  flex: none;
  border-radius: 50%;
  background: var(--line-strong);
}

.activity.is-live::before {
  background: var(--accent);
}

.activity b {
  font-weight: 500;
  color: var(--ink-2);
}

.invite-strip {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  margin-top: auto;
  padding: 11px 13px;
  background: transparent;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  color: var(--ink-2);
  font-size: 12px;
  text-align: left;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.invite-strip:hover {
  background: var(--accent-wash);
  border-color: #ecccc1;
  color: var(--accent-ink);
}

.invite-plus {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 12px;
  line-height: 1;
}

.invite-strip .icon {
  margin-left: auto;
}

.group-foot {
  margin-top: 23px;
  font-size: 11px;
  text-align: center;
  color: var(--faint);
}

/* ---------- Notification opt-in ---------- */

.notify-prompt {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 26px;
  grid-template-areas: "icon copy action close";
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 11px 13px;
  background: var(--accent-wash);
  border: 1px solid #f1d4c9;
  border-radius: 14px;
  animation: notify-in 0.3s ease-out both;
}

@keyframes notify-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.notify-icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--surface);
  border: 1px solid #f0d2c7;
  border-radius: 50%;
  color: var(--accent-ink);
}

.notify-icon .icon {
  width: 17px;
  height: 17px;
}

.notify-copy {
  grid-area: copy;
  min-width: 0;
}

.notify-copy strong {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.notify-copy span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}

.notify-btn {
  grid-area: action;
  height: 34px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid #ebcfc4;
  border-radius: 999px;
  color: var(--accent-ink);
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.notify-btn:hover {
  background: #fff;
  border-color: #dfb8aa;
  transform: translateY(-1px);
}

.notify-close {
  grid-area: close;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}

.notify-close:hover {
  background: var(--surface);
  color: var(--ink);
}

#notification-status.is-on {
  color: var(--green);
  font-weight: 500;
}

#notification-status.is-blocked {
  color: var(--accent-ink);
}

/* ---------- Dialogs ---------- */

.dialog {
  padding: 14px;
  background: transparent;
  border: 0;
  max-width: none;
  max-height: none;
  overflow: visible;
  color: var(--ink);
}

.dialog::backdrop {
  background: rgba(24, 20, 16, 0.42);
  backdrop-filter: blur(5px);
}

.dialog-card {
  position: relative;
  width: min(480px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 34px 100px -34px rgba(28, 20, 12, 0.55);
  animation: dialog-in 0.24s ease-out both;
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(9px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.dialog-close {
  position: absolute;
  top: 15px;
  right: 15px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.dialog-close:hover {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.dialog-card h2 {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.dialog-lede {
  margin: 10px 0 20px;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--muted);
}

.dialog-lede strong {
  font-weight: 550;
  color: var(--ink-2);
}

.invite-link-row {
  display: flex;
  gap: 8px;
}

.invite-link-row input {
  flex: 1;
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  background: #fbf8f2;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 11.5px;
}

.invite-link-row input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.invite-hint {
  margin-top: 10px;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--faint);
}

#share-invite {
  margin-top: 14px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.setting-title {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.setting-note {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--faint);
}

.choice-group {
  display: flex;
  flex: none;
  gap: 2px;
  padding: 3px;
  background: #f6f1e8;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.choice-btn {
  min-width: 38px;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.choice-btn:hover {
  color: var(--ink);
}

.choice-btn.is-active {
  background: var(--surface);
  color: var(--ink);
  font-weight: 550;
  box-shadow: 0 1px 3px rgba(46, 34, 21, 0.13);
}

.switch {
  position: relative;
  display: block;
  width: 42px;
  height: 24px;
  flex: none;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.switch-track {
  position: absolute;
  inset: 0;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(46, 34, 21, 0.25);
  transition: transform 0.2s ease;
}

.switch input:checked + .switch-track {
  background: var(--accent);
  border-color: var(--accent);
}

.switch input:checked + .switch-track::after {
  transform: translateX(18px);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--accent-ink);
  outline-offset: 3px;
}

.dialog-note {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--faint);
}

/* ---------- Toasts ---------- */

.toasts {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(440px, calc(100vw - 28px));
  transform: translateX(-50%);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  background: #1c1814;
  border-radius: 13px;
  color: #f6f0e5;
  box-shadow: 0 20px 46px -20px rgba(20, 13, 7, 0.6);
  font-size: 12.5px;
  line-height: 1.45;
  pointer-events: auto;
  animation: toast-in 0.26s ease-out both;
}

.toast.is-leaving {
  animation: toast-out 0.2s ease-in forwards;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes toast-out {
  to {
    opacity: 0;
    transform: translateY(5px);
  }
}

.toast-dot {
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: #f0a48d;
}

.toast.is-error .toast-dot {
  background: #ff8f73;
}

.toast-message {
  flex: 1;
  min-width: 0;
}

.toast-action {
  flex: none;
  padding: 2px;
  background: transparent;
  border: 0;
  color: #f2b7a5;
  font-size: 11.5px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.toast-action:hover {
  color: #ffd4c7;
}

.clipboard-helper {
  position: fixed;
  top: 0;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* ---------- Confetti ---------- */

.confetti {
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -20px;
  width: 6px;
  height: 10px;
  border-radius: 1px;
  background: var(--c);
  animation: confetti-fall var(--dur) cubic-bezier(0.2, 0.55, 0.35, 1) var(--delay) forwards;
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(var(--x), -8vh, 0) rotate(0);
  }
  8% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(calc(var(--x) + var(--drift)), 105vh, 0) rotate(var(--spin));
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding-top: 38px;
  }

  .hero-copy {
    max-width: 650px;
  }

  .hero-art {
    justify-self: center;
    width: min(100%, 520px);
  }

  .orbit {
    width: min(100%, 430px);
  }

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

  .timer-card {
    min-height: 390px;
  }

  .timer-block {
    padding: 34px 0 30px;
  }

  .board-card {
    min-height: auto;
  }

  .member-list {
    max-height: none;
  }

  .group-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 760px) {
  .shell {
    width: calc(100% - 40px);
  }

  .site-nav {
    padding-block: 22px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    gap: 40px;
    padding-top: 30px;
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: clamp(44px, 9.5vw, 64px);
  }

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

  .create-card {
    padding: 18px;
  }

  .how {
    padding: 42px 0 28px;
  }

  .how-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 28px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .steps article {
    padding-right: 0;
  }

  .steps article + article {
    padding-top: 23px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .steps p {
    max-width: 44ch;
  }

  .method {
    padding: 42px 0 46px;
  }

  .method-head {
    margin-bottom: 26px;
  }

  .method-title {
    font-size: clamp(35px, 9.5vw, 46px);
  }

  .method-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .method-copy {
    max-width: 560px;
    padding-top: 0;
  }

  .method-origin {
    padding: 13px 14px;
  }

  .method-text {
    margin-top: 20px;
    font-size: 15px;
  }

  .cycle-card {
    padding: 20px;
  }

  .manifesto {
    margin-bottom: 38px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 26px;
  }

  .group-main {
    padding-top: 27px;
  }

  .timer-card {
    min-height: 368px;
    padding: 21px;
  }

  .card {
    padding: 21px;
  }

  .board-card {
    padding: 21px;
  }

  .timer-time {
    font-size: clamp(69px, 19vw, 98px);
  }

  .mode-tabs {
    display: flex;
    width: 100%;
  }

  .mode-tab {
    flex: 1;
    padding-inline: 5px;
  }

  .timer-block {
    padding: 33px 0 29px;
  }

  .btn-timer {
    flex: 1;
    min-width: 0;
  }

  .join-main {
    min-height: calc(100vh - 140px);
    padding-top: 18px;
    padding-bottom: 50px;
  }

  .notify-prompt {
    grid-template-columns: 34px minmax(0, 1fr) 26px;
    grid-template-areas:
      "icon copy close"
      "action action action";
    row-gap: 10px;
    padding: 12px;
  }

  .notify-icon {
    width: 34px;
    height: 34px;
  }

  .notify-btn {
    width: 100%;
    height: 36px;
  }

  .dialog-card {
    padding: 24px;
  }

  .tiny-note {
    display: none;
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 32px);
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero h1 {
    font-size: clamp(41px, 11.3vw, 56px);
  }

  .lede {
    margin-top: 18px;
    font-size: 15px;
  }

  .create-card {
    margin-top: 26px;
  }

  .create-head .form-time {
    display: none;
  }

  .goal-field {
    gap: 12px;
  }

  .hero-art {
    width: 100%;
  }

  .orbit {
    width: min(100%, 370px);
  }

  .orbit-pill {
    font-size: 3.2cqw;
    padding: 1.3cqw 2.8cqw 1.3cqw 1.3cqw;
  }

  .orbit-caption {
    margin-top: 12px;
    font-size: 15px;
  }

  .group-nav-actions {
    gap: 6px;
  }

  .member-chip {
    max-width: 120px;
  }

  .group-head h1 {
    font-size: clamp(31px, 8.5vw, 40px);
  }

  .group-meta {
    font-size: 12px;
  }

  .timer-card {
    padding: 19px;
  }

  .board-card {
    padding: 19px;
  }

  .timer-time {
    letter-spacing: -0.068em;
  }

  .timer-foot {
    font-size: 10.5px;
  }

  .member-row {
    grid-template-columns: 12px 28px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 47px;
    padding: 6px 5px;
  }

  .member-row .avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .activity {
    font-size: 10.5px;
  }

  .board-total {
    font-size: 46px;
  }

  .join-card {
    padding: 24px;
    border-radius: 22px;
  }

  .join-card h1 {
    font-size: 34px;
  }

  .dialog-card {
    padding: 22px;
    border-radius: 20px;
  }

  .dialog-card h2 {
    font-size: 25px;
  }

  .invite-link-row {
    flex-direction: column;
  }

  .invite-link-row .btn {
    width: 100%;
  }

  .setting-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .switch {
    align-self: flex-end;
    margin-top: -33px;
  }

  .toasts {
    bottom: 16px;
  }
}

@media (max-width: 380px) {
  .member-chip {
    padding-right: 3px;
  }

  .member-chip #member-chip-name {
    display: none;
  }

  .group-nav-actions .btn-sm {
    padding-inline: 11px;
    font-size: 12px;
  }

  .hero h1 {
    font-size: 39px;
  }

  .orbit-caption {
    font-size: 14px;
  }

  .group-head h1 {
    font-size: 30px;
  }

  .cycle-row {
    grid-template-columns: 20px minmax(0, 1fr);
    row-gap: 7px;
  }

  .cycle-break {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
