/* Generated; edit src/styles/. */
:root {
  --font-sans: "SF Pro Display", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --intro-gap: 120px;
  --font-serif: "Source Han Serif SC", "Noto Serif CJK SC", "Noto Serif SC", "Songti SC", Georgia, serif;

  --bg: #ececec;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --canvas-from: #e6e6e7;
  --canvas-to: #f4f4f4;
  --ink: #0d0d0d;
  --ink-2: rgba(13, 13, 13, 0.64);
  --ink-3: rgba(13, 13, 13, 0.42);
  --ink-4: rgba(13, 13, 13, 0.16);
  --line: rgba(13, 13, 13, 0.08);
  --grid: rgba(13, 13, 13, 0.055);
  --glass: rgba(255, 255, 255, 0.72);

  --panel: #0e0f11;
  --panel-ink: #f2f2f3;
  --panel-ink-2: rgba(242, 242, 243, 0.62);
  --panel-ink-3: rgba(242, 242, 243, 0.36);
  --panel-line: rgba(255, 255, 255, 0.1);
  --panel-light: #e7e7e9;
  --check: #3ccf73;

  --dot: #111111;
  --wire: #1a1a1a;

  --phone-frame: #d4d4d8;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --page: 1180px;
  --gutter: 32px;
  --frame-gap: 12px;
  --radius-frame: 28px;
}

html.dark {
  --bg: #0a0a0b;
  --surface: #141416;
  --surface-2: #19191c;
  --canvas-from: #121214;
  --canvas-to: #1a1a1d;
  --ink: #f2f2f3;
  --ink-2: rgba(242, 242, 243, 0.66);
  --ink-3: rgba(242, 242, 243, 0.42);
  --ink-4: rgba(242, 242, 243, 0.16);
  --line: rgba(255, 255, 255, 0.08);
  --grid: rgba(255, 255, 255, 0.04);
  --glass: rgba(20, 20, 22, 0.7);

  --panel: #050506;
  --panel-light: #1d1d20;

  --dot: #e9e9ec;
  --wire: #d9d9de;

  --phone-frame: #3a3a40;
}

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

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

body {
  position: relative;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

a {
  color: inherit;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

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

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

.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: calc(var(--page) / 4) 100%, 100% 168px;
  background-position: calc(50% - var(--page) / 2) 0, 0 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 100vh, #000 calc(100% - 40vh), transparent);
  mask-image: linear-gradient(to bottom, transparent 0, #000 100vh, #000 calc(100% - 40vh), transparent);
}

.grid-lines.is-live {
  background-image: none;
}

.grid-lines canvas {
  position: sticky;
  top: 0;
  display: block;
  width: 100%;
  height: 100vh;
}

.frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-frame);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  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='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-3);
}

.display {
  font-size: clamp(38px, 5.2vw, 68px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.tone-soft {
  color: var(--ink-3);
}

.tone-ink {
  color: var(--ink);
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.pill:hover {
  transform: translateY(-2px);
}

.pill-ink {
  background: var(--ink);
  color: var(--bg);
}

.pill-line {
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--ink-4);
}

.pill-line:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink-3);
}

.pill-paper {
  background: var(--panel-ink);
  color: var(--panel);
}

.pill-glow {
  isolation: isolate;
}

.pill-glow::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 14%;
  right: 14%;
  bottom: -9px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(90deg, #ffb36b, #ff6fa8, #9b7bff, #4fc3ff, #5ff0b5);
  background-size: 200% 100%;
  filter: blur(10px);
  opacity: 0.75;
  animation: iris 6s linear infinite;
}

@keyframes iris {
  to {
    background-position: 200% 0;
  }
}

.nav {
  position: fixed;
  top: calc(var(--frame-gap) + 14px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 50;
  transform: translateX(-50%);
  max-width: calc(100% - 24px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 5px;
  border-radius: 999px;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.nav.is-scrolled .nav-inner {
  background: var(--glass);
  box-shadow: 0 0 0 1px var(--line), 0 12px 32px -16px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav-links {
  display: flex;
  gap: 2px;
}

.nav-link {
  position: relative;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  transition: color 0.25s ease, background-color 0.25s ease;
}

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

@media (hover: none) {
  .nav-link:focus {
    outline: none;
  }
}

.nav-link.active {
  color: var(--ink);
  background: var(--ink-4);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.hero {
  padding: var(--frame-gap);
  padding-top: calc(var(--frame-gap) + env(safe-area-inset-top, 0px));
}

.hero-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100svh - var(--frame-gap) * 2);
  min-height: 620px;
  max-height: 1000px;
}

.halftone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px 40px;
  text-align: center;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(38px, 6.2vw, 80px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.hero-title span {
  animation: rise 1.1s var(--ease-out) both;
}

.hero-title .nobr {
  display: inline-block;
  white-space: nowrap;
  animation: none;
}

.hero-title .tone-soft {
  font-weight: 300;
  animation-delay: 0.08s;
}

.hero-title .tone-ink {
  font-weight: 500;
  animation-delay: 0.16s;
}

.hero-title .hang {
  margin-right: -0.42em;
}

.hero-lead {
  margin-top: 22px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  animation: rise 1.1s var(--ease-out) 0.24s both;
}

.hero-title.is-pair {
  row-gap: 0.16em;
}

.hero-title.is-pair .tone-ink {
  font-weight: 400;
}

.hero-lead.is-motto {
  margin-top: clamp(40px, 5vw, 64px);
  letter-spacing: 0.16em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
  animation: rise 1.1s var(--ease-out) 0.32s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
}

.marquee {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee-track span {
  display: inline-flex;
  align-items: center;
  padding: 0 34px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

@keyframes marquee {
  to {
    transform: translateX(var(--marquee-shift, -50%));
  }
}

.section {
  max-width: calc(var(--page) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 160px var(--gutter) 0;
  scroll-margin-top: 0;
}

@media (max-width: 1244px) {
  .section > .example,
  .section > .formula,
  .section > .cards,
  .section > .links,
  .section > .paths,
  .section > .plans,
  .section > .steps,
  .section > .tips,
  .section > .faq-groups,
  .section > .release-log {
    margin-left: calc(var(--frame-gap) - var(--gutter));
    margin-right: calc(var(--frame-gap) - var(--gutter));
  }
}

.section-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 340px);
  align-items: end;
  gap: 48px;
  margin-bottom: 64px;
}

.section-head .eyebrow {
  margin-bottom: 22px;
}

.section-head.is-stacked {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.section-head.is-stacked .section-note {
  max-width: 560px;
  font-size: 16px;
}

.bridge {
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.bridge .tone-soft {
  display: block;
  margin-bottom: 0.2em;
}

.section-index {
  margin-right: 0.4em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.section-note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

.manifesto {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--ink-4);
}

.principle {
  padding: 28px 32px 8px 0;
}

.principle + .principle {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.principle-index {
  display: block;
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.principle h3 {
  margin: 24px 0 10px;
  font-size: 20px;
}

.principle p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.game {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}

.game-cell {
  padding: 28px 28px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease;
}

.game-cell:hover {
  background: var(--surface-2);
}

.game-cell:nth-child(3n) {
  border-right: none;
}

.game-cell:nth-last-child(-n + 3) {
  border-bottom: none;
}

.game-key {
  color: var(--ink-3);
}

.game-cell h3 {
  margin: 36px 0 8px;
  font-size: 17px;
}

.game-cell p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

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

.step {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.step-media {
  display: flex;
  
  align-items: safe center;
  justify-content: center;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  padding: 28px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--canvas-from), var(--canvas-to));
}

.step-media .device {
  width: min(84%, 300px);
  aspect-ratio: 1 / 1;
}

.step-media .device .d-screen {
  height: 100%;
  overflow: hidden;
}

.step-media .device-add-menu .d-menu {
  margin-top: auto;
}

.step-text {
  padding: 20px 20px 22px;
}

.step-index {
  color: var(--ink-3);
}

.step h3 {
  margin: 10px 0 12px;
}

.step ol {
  list-style: none;
  counter-reset: step;
}

.step li {
  counter-increment: step;
  position: relative;
  padding: 3px 0 3px 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}

.step li::before {
  content: counter(step) ".";
  position: absolute;
  top: 5px;
  left: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}

.step li strong {
  font-weight: 500;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
  }

}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.formula + .cards {
  margin-top: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  transition: transform 0.5s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
}

.illo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 0.82;
}

.card-text {
  padding: 8px 20px 22px;
}

.card h3 {
  margin: 10px 0 8px;
}

.card p {
  font-size: 14px;
  color: var(--ink-2);
}

.card p strong {
  color: var(--ink);
}

.formula {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 20px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.formula-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 28px;
}

.formula-row + .formula-row {
  border-left: 1px solid var(--line);
}

.formula-key {
  margin-right: auto;
  color: var(--ink-3);
}

.chip {
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--ink-4);
  font-size: 14px;
  color: var(--ink-2);
}

.op {
  font-family: var(--font-mono);
  color: var(--ink-3);
}

.formula-result {
  font-size: 15px;
  font-weight: 600;
}

.example {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: stretch;
  gap: 12px;
  margin-top: 20px;
  padding: 12px;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.example-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 36px 36px;
}

.example-figure {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 0 8px;
}

.example-number {
  font-size: clamp(96px, 12vw, 168px);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}

.example-unit {
  font-size: 20px;
  color: var(--ink-3);
}

.example-lead {
  max-width: 440px;
  margin-top: 20px;
  font-size: 16px;
  color: var(--ink);
}

.example-hint {
  max-width: 440px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
}

.example-hint strong {
  color: var(--ink-2);
}

.example-vows {
  width: 100%;
  margin-top: 24px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.example-vows li {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.example-quote {
  max-width: 480px;
  margin-top: 24px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.example-quote .nobr {
  display: inline-block;
}

.example-link {
  margin-top: 24px;
  font-size: 13.5px;
  color: var(--ink);
  transition: transform 0.4s var(--ease-out);
}

.example-link:hover {
  transform: translateX(4px);
}

.example-media {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 440px;
  padding: 40px 32px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--canvas-from), var(--canvas-to));
}

.example-media .device {
  width: min(84%, 320px);
}

.example-media-illo {
  min-height: clamp(460px, 39vw, 540px);
  padding: 16px;
  background: none;
}

.illo-example {
  max-width: 600px;
}

.example + .cards,
.example + .plans,
.example + .manifesto {
  margin-top: 20px;
}

.tips {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}

.tip {
  position: relative;
  min-height: 220px;
  padding: 26px 26px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s ease;
}

.tip:hover {
  background: var(--surface-2);
}

.tip:nth-child(4n) {
  border-right: none;
}

.tip:nth-child(4n + 1):nth-last-child(-n + 4),
.tip:nth-child(4n + 1):nth-last-child(-n + 4) ~ .tip {
  border-bottom: none;
}

.tip-index {
  color: var(--ink-3);
}

.tip-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin: 34px 0 18px;
  color: var(--ink);
  transition: transform 0.5s var(--ease-out);
}

.tip:hover .tip-icon {
  transform: translateX(4px);
}

.tip h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.tip p {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.faq-groups {
  display: grid;
  gap: 20px;
}

.faq-group {
  padding: 22px 28px 12px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  scroll-margin-top: 96px;
}

.faq-group-index {
  color: var(--ink-3);
}

.faq-group h3 {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.faq {
  margin-top: 8px;
}

.faq details + details {
  border-top: 1px solid var(--line);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 16px 32px 16px 0;
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  transition: color 0.25s ease;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq-index {
  flex-shrink: 0;
  width: 28px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease-out);
}

.faq summary::after {
  transform: rotate(90deg);
}

.faq details[open]:not(.is-closing) summary::after {
  transform: rotate(0deg);
}

.faq-body {
  overflow: hidden;
}

.faq-body p {
  padding: 0 32px 18px 36px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.footer {
  padding: 160px var(--frame-gap) calc(var(--frame-gap) + env(safe-area-inset-bottom, 0px));
}

.footer-frame {
  height: calc(100svh - var(--frame-gap) * 2);
  min-height: 620px;
  max-height: 1000px;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  color: var(--panel-ink);
  box-shadow: none;
}

html.dark .footer-frame {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--panel-line);
}

.footer-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 64px;
  text-align: center;
}

.footer-body .eyebrow {
  color: var(--panel-ink-3);
}

.footer-title {
  display: flex;
  flex-direction: column;
  margin: 24px 0 20px;
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.footer-title .nobr {
  display: inline-block;
  white-space: nowrap;
}

.footer-title .tone-soft {
  color: var(--panel-ink-3);
}

.footer-title .tone-ink {
  color: var(--panel-ink);
  font-weight: 500;
}

.footer-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row-reverse;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 32px;
  border-top: 1px solid var(--panel-line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  font-size: 13px;
  color: var(--panel-ink-2);
}

.footer-links > * {
  white-space: nowrap;
}

.footer-links a {
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-copy {
  color: var(--panel-ink-3);
  letter-spacing: 0.04em;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 20px;
}

.footer-icp {
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-icp:hover {
  color: var(--panel-ink-2);
}

html.js .reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.cards .card:nth-child(3n+2) {
  transition-delay: 0.08s;
}

.cards .card:nth-child(3n) {
  transition-delay: 0.16s;
}

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

  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

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

  .marquee-track {
    animation: none;
  }
}

.doc-page {
  padding: var(--frame-gap);
}

.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s ease;
}

.doc-back:hover {
  color: var(--ink);
}

.content-area {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 72px 88px;
  border-radius: var(--radius-frame);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.doc-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.doc-title {
  margin: 18px 0 12px;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.doc-meta {
  color: var(--ink-3);
}

.doc-section {
  display: grid;
  grid-template-columns: 1fr;
  margin-bottom: 40px;
}

.doc-section h2 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 600;
}

.doc-section p {
  font-size: 15px;
  color: var(--ink-2);
}

.doc-section p + p {
  margin-top: 10px;
}

.notfound {
  min-height: calc(100svh - var(--frame-gap) * 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px;
  text-align: center;
}

.notfound-code {
  font-size: clamp(120px, 22vw, 240px);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.hero-body:not(:has(.hero-actions))::after {
  content: '';
  height: 44px;
  margin-top: 34px;
}

.hero-title.is-question {
  font-size: clamp(30px, 4.6vw, 62px);
  line-height: 1.22;
}

.hero-title.is-question .tone-soft {
  font-weight: 300;
}

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

.path {
  position: relative;
  overflow: hidden;
  padding: 36px 36px 12px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.path-ink {
  background: var(--panel);
  color: var(--panel-ink);
  box-shadow: none;
}

html.dark .path-ink {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--panel-line);
}

.path h3 {
  margin: 0 0 28px;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.path-list {
  list-style: none;
}

.path-list li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.path-ink .path-list li {
  border-color: var(--panel-line);
  color: var(--panel-ink-2);
}

.statement {
  max-width: 760px;
  margin: 96px auto 0;
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.015em;
  text-align: center;
}

.statement .tone-soft {
  display: block;
}

.statement .nobr {
  display: inline-block;
}

.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}

.link-card {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  padding: 28px 28px 30px;
  border-right: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.35s ease;
}

.link-card:last-child {
  border-right: none;
}

.link-card:hover {
  background: var(--surface-2);
}

.link-card .mono {
  color: var(--ink-3);
}

.link-card h3 {
  margin: auto 0 8px;
  padding-top: 40px;
  font-size: 20px;
}

.link-card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.link-arrow {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink);
  transition: transform 0.5s var(--ease-out);
}

.link-card:hover .link-arrow {
  transform: translateX(6px);
}

.vision {
  padding: 96px 48px;
  text-align: center;
}

.vision-quote {
  max-width: 860px;
  margin: 26px auto 0;
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.vision-quote .nobr {
  display: inline-block;
}

.vision-source {
  max-width: 520px;
  margin: 32px auto 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-2);
}

.vision + .manifesto {
  margin-top: 64px;
}

.vision.is-story {
  text-align: left;
}

.vision.is-story > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.vision.is-story .eyebrow {
  display: flex;
}

.vision.is-story .vision-quote {
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1.6;
}

.vision.is-story .vision-source {
  font-size: 15px;
}

.vision-turn {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: -0.015em;
}

.vision-turn .tone-soft {
  display: block;
}

.vision-turn .nobr {
  display: inline-block;
}

.timeline {
  list-style: none;
  max-width: 860px;
  margin-left: auto;
  border-bottom: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 32px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.timeline-key {
  padding-top: 5px;
  color: var(--ink-3);
}

.timeline p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-2);
}

.statement-sign {
  margin-top: 28px;
  color: var(--ink-3);
}

.ripple {
  position: relative;
  width: min(640px, 100%);
  aspect-ratio: 2 / 1;
  margin: 72px auto 0;
}

.ripple-ring,
.ripple-wave {
  position: absolute;
  left: 50%;
  bottom: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  pointer-events: none;
}

.ripple-ring {
  width: var(--size);
  border: 1px solid var(--ink-4);
}

.ripple-ring > span {
  position: absolute;
  top: 0;
  left: 50%;
  padding: 0 10px;
  transform: translate(-50%, -50%);
  background: var(--surface);
  color: var(--ink-2);
  white-space: nowrap;
}

.ripple-wave {
  width: 100%;
  border: 1px solid var(--ink-3);
  opacity: 0;
  animation: ripple 6s cubic-bezier(0.3, 0.5, 0.5, 1) infinite;
}

.ripple-wave:nth-child(2) {
  animation-delay: 2s;
}

.ripple-wave:nth-child(3) {
  animation-delay: 4s;
}

.vision:has(.ripple) {
  padding-bottom: 0;
}

@keyframes ripple {
  0% {
    opacity: 0.8;
    transform: translate(-50%, 50%) scale(0.04);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 50%) scale(1);
  }
}

.ideal {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 64px;
  padding: 64px 56px;
  border-radius: 24px;
  background: var(--panel);
  color: var(--panel-ink);
}

html.dark .ideal {
  box-shadow: 0 0 0 1px var(--panel-line);
}

.ideal-text p {
  position: relative;
  z-index: 1;
  font-size: 15px;
  line-height: 1.9;
  color: var(--panel-ink-2);
}

.ideal-text p + p {
  margin-top: 20px;
}

.ideal-text .ideal-history {
  color: var(--panel-ink);
}

.ideal-text .ideal-key {
  font-weight: 500;
  color: var(--panel-ink);
}

.ideal-text .ideal-question {
  margin-bottom: 32px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--panel-ink);
}

.ideal-turn {
  position: relative;
  z-index: 1;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.ideal-turn .tone-soft {
  display: block;
  color: var(--panel-ink-3);
}

.ideal-turn .nobr {
  display: inline-block;
}

.manifesto + .links {
  margin-top: 72px;
}

.example-media-pair {
  gap: 18px;
}

.example-media-pair .device {
  width: min(46%, 260px);
}

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

.plan {
  display: flex;
  flex-direction: column;
  padding: 36px 36px 32px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.plan-ink {
  background: var(--panel);
  color: var(--panel-ink);
  box-shadow: none;
}

html.dark .plan-ink {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--panel-line);
}

.plan-key {
  color: var(--ink-3);
}

.plan-ink .plan-key {
  color: var(--panel-ink-3);
}

.plan h3 {
  margin-top: 18px;
  font-size: 22px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 28px 0 6px;
}

.plan-price b {
  font-size: clamp(64px, 7vw, 96px);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}

.plan-price span {
  font-size: 16px;
  color: var(--ink-3);
}

.plan-ink .plan-price span,
.plan-ink .plan-note {
  color: var(--panel-ink-3);
}

.plan-note {
  font-size: 13px;
  color: var(--ink-3);
}

.plan-list {
  list-style: none;
  margin: 28px 0 32px;
  border-top: 1px solid var(--line);
}

.plan-ink .plan-list {
  border-color: var(--panel-line);
}

.plan-list li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}

.plan-ink .plan-list li {
  border-color: var(--panel-line);
  color: var(--panel-ink-2);
}

.plan-list li::before {
  content: "";
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
}

.plan-foot {
  margin-top: auto;
  font-size: 13px;
  line-height: 1.8;
  color: var(--ink-3);
}

.plan-ink .plan-foot {
  color: var(--panel-ink-3);
}

.plan-ink .plan-foot strong {
  color: var(--panel-ink);
}

.plan-orb {
  position: relative;
  min-height: 420px;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

@media (max-width: 900px) {
  .plan-orb {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 12px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}

.stat {
  padding: 28px 28px 30px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: none;
}

.stat .mono {
  color: var(--ink-3);
}

.stat b {
  display: block;
  margin: 26px 0 6px;
  font-size: clamp(40px, 4.6vw, 60px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat p {
  font-size: 13.5px;
  color: var(--ink-2);
}

.releases {
  position: relative;
  list-style: none;
}

.release {
  padding: 22px 28px 24px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}

.release + .release {
  margin-top: 20px;
}

.release-date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  color: var(--ink-3);
}

.release-date time {
  font-variant-numeric: tabular-nums;
}

.release-date > * + *::before {
  content: "·";
  margin-right: 10px;
  color: var(--ink-4);
}

.release-latest {
  color: var(--ink);
}

.release h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 2px;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.release h3 span {
  color: var(--ink-3);
}

.release-note {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-3);
}

.release-items {
  list-style: none;
  margin-top: 12px;
}

.release-items li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 3px 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.release-items .mono {
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.release-items li.is-break {
  margin-top: 12px;
}

@media (min-width: 901px) {
  .release {
    width: calc(50% - 10px);
  }

  .release.is-alt {
    margin-left: auto;
  }
}

@media (max-width: 600px) {
  .release {
    padding: 20px 20px 22px;
    border-radius: 20px;
  }

  .release h3 {
    font-size: 18px;
  }
}

.section-note a {
  color: var(--ink);
}

.doc-page .content-area {
  margin-top: 76px;
}

@media (max-width: 900px) {
  .paths,
  .plans {
    grid-template-columns: 1fr;
  }

  .links {
    grid-template-columns: 1fr;
  }

  .link-card {
    min-height: 0;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .link-card:last-child {
    border-bottom: none;
  }

  .link-card h3 {
    padding-top: 28px;
  }

  .statement {
    margin-top: 72px;
  }

  .vision {
    padding: 72px 24px;
  }

  .ideal {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 28px;
  }

  .doc-page .content-area {
    margin-top: 64px;
  }
}

@media (max-width: 600px) {
  .hero-title.is-question {
    font-size: clamp(26px, 7.4vw, 34px);
  }

  .path,
  .plan {
    padding: 28px 22px 10px;
  }

  .plan {
    padding-bottom: 26px;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px 0;
  }

  .timeline p {
    font-size: 15.5px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: none;
  }

  .stat b {
    margin-top: 16px;
  }

  .example-media-pair .device {
    width: 48%;
  }
}

@media (max-width: 1080px) {
  .tips {
    grid-template-columns: repeat(2, 1fr);
  }

  .tip {
    border-right: 1px solid var(--line) !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .tip:nth-child(2n) {
    border-right: none !important;
  }

  .tip:nth-child(2n + 1):nth-last-child(-n + 2),
  .tip:nth-child(2n + 1):nth-last-child(-n + 2) ~ .tip {
    border-bottom: none !important;
  }
}

@media (max-width: 900px) {
  :root {
    --gutter: 24px;
    --intro-gap: 88px;
  }

  .section {
    padding-top: 120px;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 44px;
  }

  .game {
    grid-template-columns: 1fr;
  }

  .game-cell,
  .game-cell:nth-child(3n),
  .game-cell:nth-last-child(-n + 3) {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .game-cell:last-child {
    border-bottom: none;
  }

  .manifesto {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle + .principle {
    padding: 24px 0;
    border-left: none;
  }

  .principle + .principle {
    border-top: 1px solid var(--line);
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .cards .illo {
    aspect-ratio: 2 / 1;
  }

  .formula {
    grid-template-columns: 1fr;
  }

  .formula-row + .formula-row {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .example {
    grid-template-columns: 1fr;
  }

  .example-text {
    padding: 28px 20px 20px;
  }

  .example-media {
    min-height: 380px;
  }

  .footer {
    padding-top: 120px;
  }

  .footer-bar {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 10px 20px;
  }

  .footer-meta {
    justify-content: center;
  }

  .content-area {
    padding: 44px 28px 64px;
  }
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --frame-gap: 8px;
    --radius-frame: 22px;
  }

  .nav-inner {
    gap: 0;
  }

  .nav-link {
    padding: 6px 11px;
  }

  .hero-frame,
  .footer-frame {
    min-height: 560px;
  }

  .hero-title {
    font-size: clamp(34px, 10vw, 44px);
  }

  .hero-lead {
    font-size: 14px;
  }

  .marquee-track span {
    padding: 0 22px;
    font-size: 13px;
  }

  .display {
    font-size: clamp(34px, 10vw, 42px);
  }

  .tips {
    grid-template-columns: 1fr;
  }

  .cards .illo {
    aspect-ratio: 3 / 2;
  }

  .game-cell h3 {
    margin-top: 20px;
  }

  .tip {
    min-height: 0;
    border-right: none !important;
    border-bottom: 1px solid var(--line) !important;
  }

  .tip:last-child {
    border-bottom: none !important;
  }

  .tip-icon {
    margin: 22px 0 14px;
  }

  .faq-group {
    padding: 20px 20px 8px;
    border-radius: 20px;
  }

  .faq-body p {
    padding-right: 8px;
  }

  .content-area {
    padding: 32px 20px 48px;
  }
}

:root {
  
  --d-window: #f0f0f0;
  --d-on-window: #ffffff;
  --d-component: rgba(242, 242, 242, 0.85);
  --d-on-component: #ffffff;
  --d-tab-nav: #e6e6e6;
  --d-on-tab-nav: #ffffff;
  --d-tab-icon: #ebebeb;
  --d-on-tab-icon: #ffffff;
  --d-field: rgba(0, 0, 0, 0.05);
  --d-line-text: rgba(0, 0, 0, 0.1);
  --d-tick: rgba(0, 0, 0, 0.25);
  --d-max: rgba(0, 0, 0, 0.9);
  --d-mid: rgba(0, 0, 0, 0.65);
  --d-min: rgba(0, 0, 0, 0.5);
  --d-nax: rgba(0, 0, 0, 0.3);
}

html.dark {
  
  --d-window: #101010;
  --d-on-window: #1a1a1a;
  --d-component: #1e1e1e;
  --d-on-component: rgba(255, 255, 255, 0.047);
  --d-tab-nav: rgba(255, 255, 255, 0.047);
  --d-on-tab-nav: rgba(255, 255, 255, 0.098);
  --d-tab-icon: #161616;
  --d-on-tab-icon: #202020;
  --d-field: rgba(255, 255, 255, 0.06);
  --d-line-text: rgba(255, 255, 255, 0.098);
  --d-tick: rgba(246, 246, 246, 0.35);
  --d-max: #ffffff;
  --d-mid: rgba(255, 255, 255, 0.745);
  --d-min: rgba(255, 255, 255, 0.553);
  --d-nax: rgba(255, 255, 255, 0.3);
}

.device {
  position: relative;
  display: block;
  container-type: inline-size;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  background: var(--d-window);
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -34px rgba(20, 20, 30, 0.3);
  color: var(--d-mid);
  text-align: left;
  letter-spacing: 0;
  -webkit-user-select: none;
  user-select: none;
}

html.dark .device {
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -34px rgba(0, 0, 0, 0.9);
}

.d-screen {
  --vp: calc(100cqw / 360);
  font-family: var(--font-sans);
  font-size: calc(14 * var(--vp));
  font-weight: 700;
  line-height: 1.3;
}

.d-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: calc(18 * var(--vp));
  padding: calc(15 * var(--vp)) calc(16 * var(--vp)) calc(16 * var(--vp));
}

.device:where(:not(.device-habit-form):not(.device-add-menu):not(.device-checked)) {
  aspect-ratio: 9 / 16;
}

.device:where(:not(.device-habit-form):not(.device-add-menu):not(.device-checked)) .d-screen {
  height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}

.device:where(:not(.device-habit-form):not(.device-add-menu):not(.device-checked)) .d-screen::-webkit-scrollbar {
  display: none;
}

.d-tabbar,
.d-button,
.d-note-bar {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
}

.device-focus .d-clock {
  margin: auto 0;
}

.device.is-bare,
html.dark .device.is-bare {
  overflow: visible;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.device.is-bare .d-clock {
  padding: 0;
}

.device.is-bare:not(.device-habit-form):not(.device-add-menu):not(.device-checked) {
  aspect-ratio: auto;
}

.device.is-bare:not(.device-habit-form):not(.device-add-menu):not(.device-checked) .d-screen {
  height: auto;
  overflow: visible;
}

.device.is-bare .d-dial i {
  display: none;
}

.d-screen > *,
.d-list > * {
  flex-shrink: 0;
}

.d-divider {
  flex-shrink: 0;
  display: inline-block;
  width: calc(2.5 * var(--vp));
  height: calc(10 * var(--vp));
  border-radius: calc(6 * var(--vp));
  background: var(--d-line-text);
}

.d-divider-mid {
  height: calc(12 * var(--vp));
}

.d-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(5 * var(--vp));
  height: calc(155 * var(--vp));
  padding: 0 calc(32 * var(--vp)) calc(40 * var(--vp)) calc(42 * var(--vp));
  border-radius: calc(26 * var(--vp));
  background: var(--d-on-window);
  color: var(--d-nax);
}

.d-panel b {
  position: relative;
  z-index: 1;
  font-size: calc(50 * var(--vp));
  line-height: 1;
  color: var(--d-mid);
  font-variant-numeric: tabular-nums;
}

.d-panel span {
  position: relative;
  z-index: 1;
}

.d-list {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--vp));
}

.d-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: calc(6 * var(--vp));
  height: calc(50 * var(--vp));
  padding: 0 calc(16 * var(--vp));
  border-radius: calc(16 * var(--vp));
  background: var(--d-on-window);
  color: var(--d-mid);
  white-space: nowrap;
}

.d-row em {
  font-style: normal;
  color: var(--d-nax);
}

.d-row.is-done {
  color: var(--d-nax);
}

.d-row-matter {
  gap: calc(10 * var(--vp));
  height: auto;
  padding: calc(18 * var(--vp));
}

.d-sep {
  padding: 0 calc(5 * var(--vp));
  font-size: calc(12 * var(--vp));
  color: var(--d-nax);
}

.d-check,
.d-radio {
  position: relative;
  flex-shrink: 0;
  width: calc(20 * var(--vp));
  height: calc(20 * var(--vp));
  border-radius: 50%;
  box-shadow: inset 0 0 0 calc(2.2 * var(--vp)) var(--d-mid);
}

.d-check {
  margin-left: auto;
}

.d-check::after,
.d-radio::after {
  content: "";
  position: absolute;
  opacity: 0;
}

.d-check::after {
  left: calc(5.6 * var(--vp));
  top: calc(5.4 * var(--vp));
  width: calc(8.5 * var(--vp));
  height: calc(4.6 * var(--vp));
  border-left: calc(2.2 * var(--vp)) solid var(--d-on-window);
  border-bottom: calc(2.2 * var(--vp)) solid var(--d-on-window);
  transform: rotate(-45deg);
}

.d-check.is-done {
  background: var(--d-nax);
  box-shadow: none;
}

.d-check.is-done::after {
  opacity: 1;
}

.d-radio.is-done {
  box-shadow: inset 0 0 0 calc(2.2 * var(--vp)) var(--d-nax);
}

.d-radio::after {
  inset: calc(5 * var(--vp));
  border-radius: 50%;
  background: var(--d-nax);
}

.d-radio.is-done::after {
  opacity: 1;
}

.d-check-anim {
  animation: d-check-fill 3.2s var(--ease-out) infinite;
}

.d-check-anim::after {
  animation: d-check-mark 3.2s var(--ease-out) infinite;
}

.d-row-anim b,
.d-row-anim em {
  animation: d-row-fade 3.2s ease infinite;
}

@keyframes d-check-fill {
  0%, 30% {
    background: transparent;
  }

  40%, 88% {
    background: var(--d-nax);
    box-shadow: inset 0 0 0 calc(2.2 * var(--vp)) transparent;
  }

  100% {
    background: transparent;
  }
}

@keyframes d-check-mark {
  0%, 36% {
    opacity: 0;
    transform: rotate(-45deg) scale(0.4);
  }

  46%, 88% {
    opacity: 1;
    transform: rotate(-45deg) scale(1);
  }

  100% {
    opacity: 0;
  }
}

@keyframes d-row-fade {
  0%, 36%, 100% {
    color: var(--d-mid);
  }

  50%, 86% {
    color: var(--d-nax);
  }
}

.d-tap {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: calc(36 * var(--vp));
  height: calc(36 * var(--vp));
  margin: calc(-18 * var(--vp)) 0 0 calc(-18 * var(--vp));
  border-radius: 50%;
  background: color-mix(in srgb, var(--d-max) 14%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--d-max) 20%, transparent);
  pointer-events: none;
  animation: d-tap 3.2s var(--ease-out) infinite;
}

@keyframes d-tap {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  18% {
    opacity: 1;
    transform: scale(0.75);
  }

  42% {
    opacity: 0;
    transform: scale(1.7);
  }

  100% {
    opacity: 0;
  }
}

.d-label {
  margin-bottom: calc(10 * var(--vp));
  padding-left: calc(8 * var(--vp));
  font-size: calc(12 * var(--vp));
  color: var(--d-nax);
}

.d-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(10 * var(--vp));
}

.d-day {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(3 * var(--vp));
  height: calc(135 * var(--vp));
  padding-left: calc(31 * var(--vp));
  border-radius: calc(26 * var(--vp));
  background: var(--d-on-window);
  color: var(--d-nax);
}

.d-day b {
  font-size: calc(36 * var(--vp));
  line-height: 1.1;
  color: var(--d-mid);
}

.d-data {
  display: flex;
  flex-direction: column;
  gap: calc(3 * var(--vp));
  padding: calc(20 * var(--vp));
  border-radius: calc(20 * var(--vp));
  background: var(--d-on-window);
}

.d-data b {
  font-size: calc(22 * var(--vp));
  line-height: 1.2;
  color: var(--d-max);
  font-variant-numeric: tabular-nums;
}

.d-data > span {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--vp));
  font-size: calc(12 * var(--vp));
  color: var(--d-nax);
}

.d-data-mid {
  gap: calc(6 * var(--vp));
  border-radius: calc(18 * var(--vp));
}

.d-data-mid b {
  display: flex;
  align-items: baseline;
  gap: calc(6 * var(--vp));
  color: var(--d-mid);
}

.d-data-mid b small {
  font-size: calc(12 * var(--vp));
  color: var(--d-nax);
}

.d-chev {
  display: inline-flex;
  margin-left: auto;
}

.d-chev svg {
  width: calc(12 * var(--vp));
  height: calc(12 * var(--vp));
}

.d-button {
  position: relative;
  display: grid;
  place-items: center;
  height: calc(50 * var(--vp));
  border-radius: calc(16 * var(--vp));
  background: var(--d-on-window);
  color: var(--d-mid);
}

.d-tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: calc(56 * var(--vp));
  padding: calc(5.6 * var(--vp));
  border-radius: calc(18.6 * var(--vp));
  background: var(--d-tab-icon);
}

.d-tab {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: calc(13.6 * var(--vp));
  color: var(--d-nax);
}

.d-tab svg {
  width: calc(20 * var(--vp));
  height: calc(20 * var(--vp));
}

.d-tab.is-active {
  background: var(--d-on-tab-icon);
  color: var(--d-mid);
}

.d-seg {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: calc(50 * var(--vp));
  padding: calc(4.5 * var(--vp));
  border-radius: calc(16 * var(--vp));
  background: var(--d-tab-nav);
}

.d-seg span {
  display: grid;
  place-items: center;
  border-radius: calc(12 * var(--vp));
  color: var(--d-mid);
}

.d-seg span.is-active {
  background: var(--d-on-tab-nav);
}

.d-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(10 * var(--vp));
  padding-top: calc(4 * var(--vp));
}

.device-add-menu .d-tabbar {
  margin-top: 0;
}

.d-menu-row {
  display: flex;
  gap: calc(10 * var(--vp));
}

.d-chip {
  display: inline-flex;
  align-items: center;
  height: calc(50 * var(--vp));
  padding: 0 calc(16 * var(--vp));
  border-radius: calc(16 * var(--vp));
  background: var(--d-on-window);
  color: var(--d-mid);
  box-shadow: 0 calc(6 * var(--vp)) calc(20 * var(--vp)) rgba(0, 0, 0, 0.08);
  animation: d-pop 3.2s var(--ease-out) infinite;
}

@keyframes d-pop {
  0%, 18% {
    opacity: 0;
    transform: translateY(calc(8 * var(--vp))) scale(0.92);
  }

  32%, 100% {
    opacity: 1;
    transform: none;
  }
}

.device-habit-form {
  border-radius: 28px;
  background: var(--d-component);
}

.device-habit-form .d-screen {
  --vp: calc(100cqw / 300);
  padding: calc(20 * var(--vp));
}

.d-dialog-title {
  text-align: center;
  color: var(--d-mid);
}

.d-fields {
  display: flex;
  flex-direction: column;
  gap: calc(12 * var(--vp));
}

.d-field {
  display: flex;
  align-items: center;
  height: calc(50 * var(--vp));
  padding: 0 calc(16 * var(--vp));
  border-radius: calc(16 * var(--vp));
  background: var(--d-field);
  color: var(--d-max);
  font-weight: 400;
}

.d-field-caret::after {
  content: "";
  width: calc(1.5 * var(--vp));
  height: calc(18 * var(--vp));
  margin-left: calc(2 * var(--vp));
  background: var(--d-max);
  animation: d-caret 1s steps(1) infinite;
}

@keyframes d-caret {
  50% {
    opacity: 0;
  }
}

.d-actions {
  display: grid;
  grid-template-columns: calc(68 * var(--vp)) 1fr;
  gap: calc(6 * var(--vp));
}

.d-actions span {
  display: grid;
  place-items: center;
  height: calc(50 * var(--vp));
  border-radius: calc(16 * var(--vp));
  background: var(--d-on-component);
  color: var(--d-mid);
}

.d-clock {
  padding: calc(30 * var(--vp)) calc(22 * var(--vp)) calc(22 * var(--vp));
}

.d-dial {
  position: relative;
  width: 82%;
  aspect-ratio: 1;
  margin: 0 auto;
}

.d-dial i {
  position: absolute;
  left: 50%;
  top: 0;
  width: calc(2 * var(--vp));
  height: 50%;
  transform-origin: 50% 100%;
  transform: translateX(-50%) rotate(calc(var(--i) * 6deg));
}

.d-dial i::before {
  content: "";
  display: block;
  height: 9%;
  border-radius: calc(6 * var(--vp));
  background: var(--d-tick);
  transition: background-color 0.4s ease;
}

.d-dial i.is-on::before {
  background: var(--d-mid);
}

.d-time {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: calc(44 * var(--vp));
  color: var(--d-max);
  font-variant-numeric: tabular-nums;
}

.d-ratio {
  display: flex;
  gap: calc(3 * var(--vp));
  height: calc(8 * var(--vp));
  margin-top: calc(6 * var(--vp));
}

.d-ratio i,
.d-legend span i:not(.d-divider) {
  border-radius: calc(6 * var(--vp));
  background: var(--d-mid);
  opacity: var(--o);
}

.d-legend {
  display: flex;
  flex-wrap: wrap;
  gap: calc(4 * var(--vp)) calc(12 * var(--vp));
  margin-top: calc(4 * var(--vp));
  font-size: calc(12 * var(--vp));
  color: var(--d-nax);
}

.d-legend span {
  display: inline-flex;
  align-items: center;
  gap: calc(6 * var(--vp));
}

.d-legend span i:not(.d-divider) {
  width: calc(10 * var(--vp));
  height: calc(10 * var(--vp));
  border-radius: calc(3 * var(--vp));
}

.d-legend em {
  font-style: normal;
}

.d-epoch {
  display: flex;
  align-items: center;
  gap: calc(6 * var(--vp));
  height: calc(50 * var(--vp));
  padding: 0 calc(20 * var(--vp));
  border-radius: calc(16 * var(--vp));
  background: var(--d-on-window);
  color: var(--d-mid);
}

.d-epoch em {
  font-size: calc(12.5 * var(--vp));
  font-style: normal;
  color: var(--d-nax);
}

.d-note {
  padding: 0 calc(2 * var(--vp));
  font-weight: 500;
  line-height: calc(35 * var(--vp));
  color: var(--d-mid);
}

.d-note-caret::after {
  content: "";
  display: inline-block;
  width: calc(1.5 * var(--vp));
  height: calc(18 * var(--vp));
  margin-left: calc(2 * var(--vp));
  vertical-align: middle;
  background: var(--d-mid);
  animation: d-caret 1s steps(1) infinite;
}

.d-note-bar {
  display: grid;
  grid-template-columns: calc(55 * var(--vp)) 1fr;
  gap: calc(6 * var(--vp));
}

.d-note-bar > span {
  display: grid;
  place-items: center;
  height: calc(49 * var(--vp));
  border-radius: calc(16 * var(--vp));
  background: var(--d-on-component);
  color: var(--d-mid);
}

.d-note-tool svg {
  width: calc(18 * var(--vp));
  height: calc(18 * var(--vp));
}
