/* =========================================================
   同频 TONGPIN · v0.1 concept prototype
   A warm, tactile little signal layer for two people.
   ========================================================= */

:root {
  --paper: #f6efe5;
  --paper-2: #fbf7f0;
  --paper-3: #f1e7da;
  --card: #fffaf3;
  --ink: #2b211d;
  --ink-soft: #5b4a41;
  --muted: #98877c;
  --muted-2: #b7a89d;
  --line: rgba(68, 49, 39, 0.10);
  --line-strong: rgba(68, 49, 39, 0.16);
  --coral: #f16a5b;
  --coral-deep: #d95549;
  --coral-soft: #fde4dc;
  --peach: #f7d3b7;
  --sage: #8fa68d;
  --sage-soft: #e7eee3;
  --butter: #f0d489;
  --butter-soft: #f8efcf;
  --lav: #c9bfe3;
  --lav-soft: #ece7f4;
  --pink: #f4bfc7;
  --pink-soft: #fae3e7;
  --sky-soft: #e4eef0;
  --dark: #2a201d;
  --dark-2: #382925;
  --serif: "Iowan Old Style", "Palatino Linotype", "Songti SC", "STSong", "Noto Serif SC", Georgia, serif;
  --sans: "Avenir Next", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --ease: cubic-bezier(0.22, 0.88, 0.26, 1);
  --ease-spring: cubic-bezier(0.18, 0.9, 0.28, 1.18);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100dvh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

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

p,
h1,
h2,
h3,
h4 {
  margin: 0;
}

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

svg {
  display: block;
}

.icon {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

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

::selection {
  background: rgba(241, 106, 91, 0.22);
}

/* ---------------------------------------------------------
   Ambient desktop atmosphere
   --------------------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1100px 620px at 50% -10%, rgba(255, 248, 238, 0.95), transparent 70%),
    linear-gradient(135deg, #f8f0e5 0%, #f3e8da 44%, #efe4d5 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.75;
}

.blob-a {
  width: 760px;
  height: 760px;
  top: -390px;
  left: -190px;
  background: radial-gradient(circle at 55% 55%, rgba(247, 181, 143, 0.48), rgba(247, 181, 143, 0) 68%);
}

.blob-b {
  width: 700px;
  height: 700px;
  right: -260px;
  bottom: -320px;
  background: radial-gradient(circle at 45% 45%, rgba(169, 188, 163, 0.30), rgba(169, 188, 163, 0) 68%);
}

.blob-c {
  width: 420px;
  height: 420px;
  right: 14%;
  top: 2%;
  background: radial-gradient(circle, rgba(241, 106, 91, 0.10), rgba(241, 106, 91, 0) 70%);
}

.ambient-ring {
  position: absolute;
  border: 1px solid rgba(93, 68, 53, 0.07);
  border-radius: 50%;
}

.ring-a {
  width: 520px;
  height: 520px;
  left: 8%;
  bottom: -280px;
  box-shadow: 0 0 0 50px rgba(93, 68, 53, 0.018), 0 0 0 110px rgba(93, 68, 53, 0.012);
}

.ring-b {
  width: 360px;
  height: 360px;
  right: 7%;
  top: 11%;
  box-shadow: 0 0 0 36px rgba(93, 68, 53, 0.018);
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------
   Desktop stage chrome
   --------------------------------------------------------- */

.stage-head {
  width: min(1180px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 26px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex: 0 0 auto;
}

.stage-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff8ef;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.35), transparent 34%),
    linear-gradient(140deg, #f9927e, var(--coral) 55%, #dc564d);
  box-shadow: 0 12px 22px -12px rgba(217, 85, 73, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.brand-mark .icon {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 5px;
}

.brand-copy strong {
  font-size: 17px;
  letter-spacing: 0.20em;
  font-weight: 750;
}

.brand-copy small {
  font-size: 7px;
  letter-spacing: 0.30em;
  color: var(--muted);
  font-weight: 650;
}

.stage-tagline {
  font-family: var(--serif);
  font-size: clamp(17px, 1.55vw, 21px);
  letter-spacing: 0.02em;
  color: #57443a;
  text-align: center;
  white-space: nowrap;
}

.stage-tagline em {
  font-style: normal;
  color: var(--coral-deep);
  position: relative;
}

.stage-tagline em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -3px;
  height: 5px;
  border-radius: 99px;
  background: rgba(241, 106, 91, 0.16);
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.46);
  color: var(--ink-soft);
  font-size: 9px;
  letter-spacing: 0.05em;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.stage-badge span {
  color: var(--muted);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(241, 106, 91, 0.11);
}

.stage-hint {
  width: min(1180px, calc(100vw - 64px));
  margin: 10px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.03em;
  flex: 0 0 auto;
}

.hint-ping {
  position: relative;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.hint-ping::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(143, 166, 141, 0.5);
  animation: hintPing 2.4s ease-out infinite;
}

.hint-arrow {
  color: var(--coral);
  font-size: 13px;
  transform: translateY(-1px);
  animation: nudgeRight 2.4s var(--ease) infinite;
}

.stage {
  --phone-w: clamp(320px, 27vw, 380px);
  --phone-h: min(calc(var(--phone-w) * 2.21), calc(100dvh - 145px));
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 4px 0 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(46px, 7vw, 112px);
  position: relative;
  min-height: 0;
}

.stage-foot {
  width: min(1180px, calc(100vw - 64px));
  margin: 0 auto;
  padding: 8px 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.10em;
  flex: 0 0 auto;
}

.foot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted-2);
}

/* ---------------------------------------------------------
   Phone frame
   --------------------------------------------------------- */

.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 0 0 auto;
  position: relative;
  z-index: 2;
}

.phone-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 6px 9px;
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  min-height: 14px;
}

.phone-label .label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin-right: 1px;
}

.phone-label .label-dot.me {
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(241, 106, 91, 0.12);
}

.phone-label .label-dot.ta {
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(143, 166, 141, 0.14);
}

.phone-label .label-name {
  color: var(--ink-soft);
  font-weight: 700;
  letter-spacing: 0.10em;
}

.phone-label .label-sub {
  margin-left: auto;
  color: var(--muted-2);
  font-size: 7.5px;
  letter-spacing: 0.08em;
}

.phone {
  position: relative;
  width: var(--phone-w);
  height: var(--phone-h);
  padding: 9px;
  border-radius: 52px;
  background:
    linear-gradient(145deg, #302724 0%, #171311 40%, #251d1a 100%);
  box-shadow:
    0 50px 90px -38px rgba(50, 31, 22, 0.65),
    0 22px 38px -24px rgba(50, 31, 22, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.13),
    inset 0 1px 1px rgba(255, 255, 255, 0.18);
}

.phone::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  height: 34%;
  border-radius: 42px 42px 24px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent);
  pointer-events: none;
}

.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 84px;
  right: -3px;
  top: 25%;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #5a4a43, #1c1715);
  box-shadow: 0 96px 0 #2b2320;
}

.phone-btn {
  position: absolute;
  left: -3px;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: linear-gradient(180deg, #55463f, #1a1513);
}

.phone-btn.one {
  top: 18%;
  height: 28px;
}

.phone-btn.two {
  top: 26%;
  height: 48px;
}

.phone-btn.three {
  top: 35%;
  height: 48px;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 44px;
  overflow: hidden;
  background: var(--paper-2);
  isolation: isolate;
}

.phone-screen::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(32px + env(safe-area-inset-bottom, 0px));
  z-index: 35;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(251, 247, 240, 0.62) 0%, var(--paper-2) 54%);
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(63, 45, 35, 0.07);
}

.dynamic-island {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 25px;
  border-radius: 999px;
  background: #100d0c;
  z-index: 60;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.dynamic-island::after {
  content: "";
  position: absolute;
  right: 9px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 32%, #2d3040, #101216 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.statusbar {
  flex: 0 0 auto;
  height: 44px;
  padding: 3px 23px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
  position: relative;
  z-index: 55;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}

.phone-screen:has(.signal-overlay) .statusbar {
  color: rgba(255, 247, 234, 0.82);
}

.status-time {
  padding-top: 2px;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 2px;
}

.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 9px;
}

.signal-bars i {
  display: block;
  width: 2.5px;
  border-radius: 1px;
  background: currentColor;
}

.signal-bars i:nth-child(1) { height: 4px; opacity: 0.55; }
.signal-bars i:nth-child(2) { height: 6px; opacity: 0.7; }
.signal-bars i:nth-child(3) { height: 8px; }
.signal-bars i:nth-child(4) { height: 9px; }

.wifi-icon {
  width: 13px;
  height: 10px;
}

.battery {
  width: 20px;
  height: 10px;
  border: 1.3px solid currentColor;
  border-radius: 3px;
  padding: 1.5px;
  position: relative;
}

.battery::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 2.5px;
  width: 1.8px;
  height: 3.5px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
  opacity: 0.65;
}

.battery i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: 1px;
  background: currentColor;
}

/* ---------------------------------------------------------
   App shell
   --------------------------------------------------------- */

.app {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 17px 106px;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  position: relative;
  z-index: 2;
}

.app::-webkit-scrollbar {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 -17px;
  padding: 3px 19px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(180deg, rgba(251, 247, 240, 0.98) 0%, rgba(251, 247, 240, 0.86) 76%, rgba(251, 247, 240, 0) 100%);
  backdrop-filter: blur(12px);
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  text-align: left;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}

.brand-mark.small {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  box-shadow: 0 8px 14px -9px rgba(217, 85, 73, 0.72), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.brand-mark.small .icon {
  width: 16px;
  height: 16px;
}

.topbar-name {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.20em;
  color: var(--ink);
}

.topbar-en {
  font-size: 6.5px;
  color: var(--muted-2);
  letter-spacing: 0.15em;
  margin-top: 1px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.circle-btn {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  position: relative;
  transition: background 0.2s, transform 0.2s;
}

.circle-btn:hover {
  background: var(--card);
  transform: translateY(-1px);
}

.circle-btn .icon {
  width: 16px;
  height: 16px;
}

.notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  border: 1.5px solid var(--paper-2);
  box-shadow: 0 0 0 2px rgba(241, 106, 91, 0.08);
}

.mini-couple {
  height: 33px;
  padding: 0 8px 0 6px;
  display: flex;
  align-items: center;
  gap: 0;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.72);
  border: 1px solid var(--line);
  transition: background 0.2s, transform 0.2s;
}

.mini-couple:hover {
  background: var(--card);
  transform: translateY(-1px);
}

.avatar {
  display: grid;
  place-items: center;
  color: #fff9f0;
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1;
  position: relative;
  overflow: hidden;
  flex: 0 0 auto;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.30), transparent 44%);
  pointer-events: none;
}

.avatar.me {
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 230, 209, 0.5), transparent 42%),
    linear-gradient(145deg, #f5a28c, #e65e50);
}

.avatar.ta {
  background:
    radial-gradient(circle at 26% 20%, rgba(242, 247, 231, 0.45), transparent 42%),
    linear-gradient(145deg, #b7c7ad, #728b70);
}

.avatar.xs {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  font-size: 10px;
  border: 1.5px solid var(--paper-2);
}

.avatar.xs + .avatar.xs {
  margin-left: -7px;
}

.avatar.lg {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  font-size: 19px;
}

.avatar.md {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  font-size: 16px;
}

.avatar.xl {
  width: 54px;
  height: 54px;
  border-radius: 19px;
  font-size: 21px;
}

.mobile-switch {
  display: none;
  height: 33px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 243, 0.72);
  color: var(--ink-soft);
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0.03em;
}

.mobile-switch .icon {
  width: 12px;
  height: 12px;
  color: var(--coral);
}

/* ---------------------------------------------------------
   Shared content bits
   --------------------------------------------------------- */

.eyebrow {
  display: block;
  font-size: 8px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  font-weight: 750;
  text-transform: uppercase;
  color: var(--muted);
}

.page-head {
  padding: 8px 2px 2px;
}

.page-head h1 {
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  margin-top: 5px;
}

.page-head p {
  font-size: 9.5px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 7px;
  max-width: 255px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 21px 2px 10px;
}

.section-head h2 {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 750;
  letter-spacing: 0.01em;
  margin-top: 3px;
}

.section-head .head-note {
  font-size: 8px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
  padding-bottom: 2px;
  white-space: nowrap;
}

.text-btn {
  color: var(--coral-deep);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
}

.text-btn .icon {
  width: 11px;
  height: 11px;
}

.tiny {
  font-size: 8px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  font-size: 7.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------------------------------------------------------
   Home
   --------------------------------------------------------- */

.home-greeting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 2px 10px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.03em;
}

.home-greeting strong {
  color: var(--ink-soft);
  font-weight: 650;
}

.home-greeting .today {
  font-size: 8px;
  color: var(--muted-2);
  letter-spacing: 0.06em;
}

.hero-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 29px;
  padding: 19px 19px 15px;
  color: #fff7ea;
  background:
    radial-gradient(120% 130% at 90% 8%, rgba(241, 106, 91, 0.26), transparent 46%),
    linear-gradient(145deg, #382a25 0%, #241b18 52%, #2f211d 100%);
  box-shadow:
    0 24px 42px -26px rgba(36, 27, 24, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 190px;
  height: 190px;
  right: -78px;
  top: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 139, 118, 0.78), rgba(255, 139, 118, 0) 68%);
  filter: blur(4px);
}

.hero-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  right: -56px;
  bottom: -172px;
  border-radius: 50%;
  border: 1px solid rgba(255, 240, 222, 0.14);
  box-shadow:
    0 0 0 24px rgba(255, 240, 222, 0.028),
    0 0 0 54px rgba(255, 240, 222, 0.018);
}

.hero-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-card .eyebrow {
  color: rgba(255, 243, 228, 0.48);
  font-size: 7.5px;
  letter-spacing: 0.17em;
}

.hero-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: rgba(255, 243, 228, 0.62);
}

.hero-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ff8f7d;
  box-shadow: 0 0 0 4px rgba(255, 143, 125, 0.10);
  animation: livePulse 2.2s ease-in-out infinite;
}

.hero-days-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.hero-days {
  font-family: var(--serif);
  font-size: 60px;
  font-weight: 600;
  line-height: 0.93;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
  color: #fff9ef;
}

.hero-unit {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 243, 228, 0.62);
  font-weight: 500;
}

.hero-hm {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-top: 7px;
  color: rgba(255, 243, 228, 0.48);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.hero-hm strong {
  color: rgba(255, 249, 239, 0.93);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.hero-hm .hm-gap {
  width: 6px;
}

.hero-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 243, 228, 0.11);
  font-size: 8px;
  color: rgba(255, 243, 228, 0.43);
  letter-spacing: 0.03em;
}

.hero-since {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.hero-since .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 243, 228, 0.28);
}

.hero-milestone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #f5c6b4;
  white-space: nowrap;
  font-size: 8px;
}

.hero-milestone .icon {
  width: 10px;
  height: 10px;
}

.hero-heart-line {
  position: absolute;
  right: 16px;
  top: 71px;
  width: 52px;
  height: 20px;
  opacity: 0.34;
  color: #ffb29f;
  z-index: 1;
}

.hero-heart-line svg {
  width: 100%;
  height: 100%;
}

/* presence */

.presence-card {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 21px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px -20px rgba(62, 42, 32, 0.42);
  margin-top: 10px;
  position: relative;
}

.presence-avatar {
  position: relative;
  flex: 0 0 auto;
}

.presence-avatar .online-pulse {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #7cac89;
  border: 2px solid var(--card);
  box-shadow: 0 0 0 3px rgba(124, 172, 137, 0.10);
}

.presence-avatar .online-pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(124, 172, 137, 0.35);
  animation: presencePing 3s ease-out infinite;
}

.presence-info {
  flex: 1 1 auto;
  min-width: 0;
}

.presence-name-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.presence-name {
  font-size: 12px;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.live-wave {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 10px;
}

.live-wave i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: var(--sage);
  animation: waveBar 1.3s ease-in-out infinite;
}

.live-wave i:nth-child(1) { height: 4px; animation-delay: -0.4s; }
.live-wave i:nth-child(2) { height: 7px; animation-delay: -0.2s; }
.live-wave i:nth-child(3) { height: 10px; animation-delay: 0s; }
.live-wave i:nth-child(4) { height: 5px; animation-delay: -0.3s; }

.presence-status {
  margin-top: 3px;
  font-size: 9.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

.presence-meta {
  margin-top: 3px;
  font-size: 7.5px;
  color: var(--muted-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.presence-meta .meta-sep {
  margin: 0 4px;
  opacity: 0.5;
}

.nudge-btn {
  flex: 0 0 auto;
  height: 29px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #f5ede2;
  border: 1px solid rgba(68, 49, 39, 0.06);
  font-size: 8.5px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s, background 0.2s;
}

.nudge-btn:hover {
  transform: translateY(-1px);
  background: #f1e5d7;
}

.nudge-btn .icon {
  width: 11px;
  height: 11px;
  color: var(--coral);
}

/* check-in */

.checkin-card {
  margin-top: 10px;
  padding: 12px;
  border-radius: 21px;
  border: 1px dashed rgba(213, 162, 72, 0.42);
  background:
    radial-gradient(100% 130% at 100% 0%, rgba(240, 212, 137, 0.25), transparent 55%),
    #fff9ec;
  animation: cardBreathe 4s ease-in-out infinite;
}

.checkin-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.checkin-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f0d489;
  color: #6e5420;
  flex: 0 0 auto;
}

.checkin-icon .icon {
  width: 15px;
  height: 15px;
}

.checkin-copy {
  flex: 1;
  min-width: 0;
}

.checkin-copy strong {
  display: block;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 750;
}

.checkin-copy span {
  display: block;
  margin-top: 2px;
  font-size: 7.5px;
  color: #9a7b4b;
  line-height: 1.5;
}

.checkin-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.chip-btn {
  flex: 1;
  min-width: 0;
  padding: 8px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(147, 111, 48, 0.14);
  color: #765a2e;
  font-size: 8px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s, transform 0.2s;
}

.chip-btn:hover {
  background: #fffdf7;
  transform: translateY(-1px);
}

.chip-btn .icon {
  width: 11px;
  height: 11px;
}

.checkin-waiting {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  margin-top: 10px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
}

.waiting-orbit {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px dashed rgba(241, 106, 91, 0.48);
  position: relative;
  flex: 0 0 auto;
  animation: spin 7s linear infinite;
}

.waiting-orbit::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  top: 2px;
  left: 3px;
  box-shadow: 0 0 0 3px rgba(241, 106, 91, 0.09);
}

.checkin-waiting-copy {
  flex: 1;
  min-width: 0;
}

.checkin-waiting-copy strong {
  display: block;
  font-size: 9.5px;
  font-weight: 700;
}

.checkin-waiting-copy span {
  display: block;
  font-size: 7.5px;
  color: var(--muted);
  margin-top: 2px;
}

.checkin-response {
  margin-top: 10px;
  padding: 13px;
  border-radius: 21px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.checkin-response-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.checkin-response-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral-deep);
  font-weight: 750;
}

.checkin-response-label .icon {
  width: 11px;
  height: 11px;
}

.checkin-response-time {
  font-size: 7px;
  color: var(--muted-2);
}

.checkin-response-text {
  font-size: 10px;
  line-height: 1.65;
  color: var(--ink-soft);
}

.checkin-photo {
  width: 100%;
  height: 144px;
  object-fit: cover;
  border-radius: 15px;
  margin-top: 9px;
  background: var(--paper-3);
}

.checkin-response-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(68, 49, 39, 0.06);
  color: var(--muted);
  font-size: 7.5px;
}

.checkin-again {
  color: var(--coral-deep);
  font-size: 7.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.checkin-again .icon {
  width: 10px;
  height: 10px;
}

/* signal orb */

.signal-stage {
  margin-top: 22px;
}

.signal-stage .section-head {
  margin-top: 0;
}

.orb-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 2px;
}

.orb-wrap::before {
  content: "";
  position: absolute;
  width: 212px;
  height: 212px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 106, 91, 0.16), rgba(241, 106, 91, 0) 70%);
  pointer-events: none;
  filter: blur(2px);
}

.orb-ring {
  position: absolute;
  width: 176px;
  height: 176px;
  border-radius: 50%;
  border: 1px dashed rgba(241, 106, 91, 0.26);
  animation: spin 32s linear infinite;
  pointer-events: none;
}

.orb-ring::before,
.orb-ring::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 3px rgba(241, 106, 91, 0.10);
}

.orb-ring::before {
  top: 9px;
  left: 36px;
}

.orb-ring::after {
  bottom: 14px;
  right: 28px;
  width: 3px;
  height: 3px;
  opacity: 0.6;
}

.miss-orb {
  position: relative;
  z-index: 2;
  width: 148px;
  height: 148px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fffaf3;
  background:
    radial-gradient(circle at 31% 23%, rgba(255, 206, 187, 0.82) 0%, rgba(255, 179, 154, 0.30) 22%, transparent 46%),
    radial-gradient(circle at 50% 56%, #f97c66 0%, #ef6255 48%, #d94d43 100%);
  box-shadow:
    0 24px 40px -17px rgba(217, 77, 67, 0.68),
    inset 0 1px 1px rgba(255, 255, 255, 0.48),
    inset 0 -12px 26px rgba(172, 44, 35, 0.20);
  isolation: isolate;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s;
}

.miss-orb::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  pointer-events: none;
}

.miss-orb::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 25px;
  width: 48px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(2px);
  transform: rotate(-30deg);
  pointer-events: none;
}

.miss-orb:hover {
  transform: translateY(-3px) scale(1.018);
  box-shadow:
    0 30px 48px -18px rgba(217, 77, 67, 0.7),
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    inset 0 -12px 26px rgba(172, 44, 35, 0.20);
}

.miss-orb:active {
  transform: scale(0.955);
}

.orb-heart {
  width: 24px;
  height: 24px;
  color: #fff5e9;
  opacity: 0.92;
  filter: drop-shadow(0 2px 3px rgba(155, 44, 35, 0.16));
  position: relative;
  z-index: 1;
}

.orb-heart .icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.65;
}

.orb-title {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.orb-sub {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  font-size: 7.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 250, 243, 0.68);
}

.orb-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb-float {
  position: absolute;
  color: rgba(241, 106, 91, 0.35);
  animation: floatOrb 4.8s ease-in-out infinite;
}

.orb-float.one {
  top: 17%;
  left: 18%;
  font-size: 10px;
  animation-delay: -1.6s;
}

.orb-float.two {
  top: 24%;
  right: 15%;
  font-size: 7px;
  animation-delay: -3.1s;
}

.orb-float.three {
  bottom: 19%;
  left: 11%;
  font-size: 6px;
  animation-delay: -0.7s;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 18px;
}

.quick-btn {
  min-width: 0;
  padding: 9px 2px 8px;
  border-radius: 17px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--ink-soft);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.quick-btn:hover {
  background: rgba(255, 250, 243, 0.72);
  border-color: var(--line);
  transform: translateY(-2px);
}

.quick-btn:active {
  transform: scale(0.96);
}

.quick-icon {
  width: 37px;
  height: 37px;
  border-radius: 13px;
  display: grid;
  place-items: center;
}

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

.quick-icon.sage { background: var(--sage-soft); color: #6f8a6d; }
.quick-icon.peach { background: #fbe6d5; color: #bd7449; }
.quick-icon.butter { background: var(--butter-soft); color: #a6812e; }
.quick-icon.lav { background: var(--lav-soft); color: #8171a8; }

.quick-label {
  font-size: 8px;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.signal-footnote {
  margin: 7px 0 0;
  text-align: center;
  font-size: 7.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

/* timeline */

.timeline-section {
  margin-top: 23px;
}

.timeline-list {
  border-radius: 23px;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 2px 13px;
  overflow: hidden;
}

.tl-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  position: relative;
}

.tl-item + .tl-item {
  border-top: 1px solid rgba(68, 49, 39, 0.055);
}

.tl-icon {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
}

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

.tl-icon.coral { background: var(--coral-soft); color: #d95a4d; }
.tl-icon.sage { background: var(--sage-soft); color: #698367; }
.tl-icon.butter { background: var(--butter-soft); color: #a47d23; }
.tl-icon.lav { background: var(--lav-soft); color: #7e6fa4; }
.tl-icon.pink { background: var(--pink-soft); color: #ba6473; }

.tl-body {
  flex: 1 1 auto;
  min-width: 0;
}

.tl-title {
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.tl-title strong {
  font-weight: 700;
  color: var(--ink);
}

.tl-sub {
  margin-top: 2px;
  font-size: 7.5px;
  line-height: 1.5;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-thumb {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  margin-top: 1px;
}

.tl-time {
  flex: 0 0 auto;
  padding-top: 2px;
  font-size: 7.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.timeline-empty {
  padding: 18px 10px;
  text-align: center;
  color: var(--muted);
  font-size: 9px;
}

/* ---------------------------------------------------------
   Signal library
   --------------------------------------------------------- */

.insight-strip {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 15px;
  background: rgba(255, 250, 243, 0.68);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.insight-strip .insight-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(143, 166, 141, 0.10);
}

.insight-strip strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.filter-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 14px 1px 3px;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--ink-soft);
}

.filter-chip.active {
  background: var(--ink);
  color: #fff8ed;
  border-color: var(--ink);
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.signal-card {
  position: relative;
  min-height: 105px;
  padding: 12px;
  border-radius: 19px;
  border: 1px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  text-align: left;
  overflow: hidden;
  transition: transform 0.22s var(--ease), box-shadow 0.22s, border-color 0.22s;
}

.signal-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -36px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--tint-bg, var(--coral-soft));
  opacity: 0.42;
  z-index: 0;
  transition: transform 0.3s;
}

.signal-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 13px 24px -19px rgba(60, 40, 30, 0.45);
}

.signal-card:hover::after {
  transform: scale(1.16);
}

.sc-icon {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--tint-bg, var(--coral-soft));
  color: var(--tint-fg, var(--coral-deep));
  position: relative;
  z-index: 1;
}

.sc-icon .icon {
  width: 16px;
  height: 16px;
}

.sc-copy {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  max-width: 100%;
}

.sc-copy h3 {
  font-size: 10.5px;
  line-height: 1.35;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.sc-copy p {
  margin-top: 2px;
  font-size: 7.5px;
  line-height: 1.45;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sc-arrow {
  position: absolute;
  top: 12px;
  right: 11px;
  color: var(--muted-2);
  opacity: 0.55;
  transition: transform 0.2s, opacity 0.2s;
  z-index: 1;
}

.sc-arrow .icon {
  width: 12px;
  height: 12px;
}

.signal-card:hover .sc-arrow {
  transform: translate(1px, -1px);
  opacity: 0.9;
}

.signal-card.custom-card {
  border-style: dashed;
  background: rgba(255, 250, 243, 0.38);
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  text-align: center;
}

.signal-card.custom-card::after {
  display: none;
}

.custom-plus {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

.custom-plus .icon {
  width: 14px;
  height: 14px;
}

.custom-card span {
  font-size: 8px;
}

.library-note {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  margin: 15px 2px 0;
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(241, 106, 91, 0.045);
  border: 1px solid rgba(241, 106, 91, 0.09);
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.65;
}

.library-note .icon {
  width: 11px;
  height: 11px;
  color: var(--coral);
  margin-top: 2px;
  flex: 0 0 auto;
}

/* ---------------------------------------------------------
   Play
   --------------------------------------------------------- */

.game-hero {
  position: relative;
  margin-top: 14px;
  border-radius: 27px;
  padding: 18px;
  min-height: 199px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 140% at 92% 8%, rgba(255, 255, 255, 0.44), transparent 40%),
    linear-gradient(138deg, #f8d9c5 0%, #f1c4b3 48%, #d8d1e6 100%);
  box-shadow: 0 19px 34px -25px rgba(118, 74, 53, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.game-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(76, 49, 38, 0.09);
  right: -52px;
  top: -62px;
  box-shadow: 0 0 0 26px rgba(255, 255, 255, 0.08);
}

.game-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  right: 19px;
  bottom: 20px;
  background: rgba(255, 248, 238, 0.28);
  filter: blur(1px);
}

.game-hero .eyebrow {
  color: rgba(58, 39, 32, 0.50);
}

.game-hero h2 {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: #3b2922;
  max-width: 210px;
}

.game-hero p {
  position: relative;
  z-index: 1;
  margin-top: 5px;
  font-size: 8.5px;
  line-height: 1.65;
  color: rgba(58, 39, 32, 0.62);
  max-width: 205px;
}

.game-hero-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.game-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.game-ready {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 7.5px;
  color: rgba(58, 39, 32, 0.58);
}

.game-ready .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #6d8b6b;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff8ed;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 18px -12px rgba(43, 33, 29, 0.7);
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 22px -12px rgba(43, 33, 29, 0.7);
}

.primary-btn:active {
  transform: scale(0.97);
}

.primary-btn .icon {
  width: 12px;
  height: 12px;
}

.primary-btn.light {
  background: #fff8ed;
  color: var(--ink);
}

.primary-btn.coral {
  background: var(--coral);
  color: #fff8ed;
}

.game-art {
  position: absolute;
  top: 38px;
  right: 16px;
  width: 104px;
  height: 90px;
  z-index: 1;
  pointer-events: none;
}

.game-art .bubble {
  position: absolute;
  border-radius: 15px;
  background: rgba(255, 250, 243, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 20px -14px rgba(79, 48, 35, 0.3);
  backdrop-filter: blur(3px);
}

.game-art .bubble.one {
  width: 49px;
  height: 38px;
  top: 3px;
  left: 0;
  border-radius: 14px 14px 14px 4px;
}

.game-art .bubble.two {
  width: 42px;
  height: 32px;
  right: 0;
  top: 34px;
  border-radius: 14px 14px 4px 14px;
  background: rgba(255, 247, 236, 0.82);
}

.game-art i {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(87, 58, 44, 0.48);
}

.game-art .bubble.one i:nth-child(1) { top: 13px; left: 13px; }
.game-art .bubble.one i:nth-child(2) { top: 13px; left: 22px; }
.game-art .bubble.one i:nth-child(3) { top: 13px; left: 31px; }
.game-art .bubble.two i:nth-child(1) { top: 12px; left: 12px; }
.game-art .bubble.two i:nth-child(2) { top: 12px; left: 21px; }
.game-art .bubble.two i:nth-child(3) { top: 12px; left: 30px; }

.game-art .spark {
  position: absolute;
  color: rgba(80, 51, 38, 0.36);
  font-size: 10px;
}

.game-art .spark.a { top: 0; right: 17px; }
.game-art .spark.b { bottom: 7px; left: 8px; font-size: 7px; }

.mini-game-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.mini-game {
  min-height: 91px;
  padding: 12px;
  border-radius: 19px;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mini-game:hover {
  transform: translateY(-2px);
  box-shadow: 0 13px 24px -20px rgba(60, 40, 30, 0.4);
}

.mini-game .mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.mini-game .mini-icon .icon {
  width: 14px;
  height: 14px;
}

.mini-game.food .mini-icon {
  background: var(--butter-soft);
  color: #a47d23;
}

.mini-game.locked .mini-icon {
  background: var(--lav-soft);
  color: #7e6fa4;
}

.mini-game h3 {
  font-size: 10px;
  font-weight: 750;
  margin-top: 8px;
}

.mini-game p {
  margin-top: 2px;
  font-size: 7.5px;
  color: var(--muted);
}

.mini-game .mini-tag {
  position: absolute;
  top: 12px;
  right: 10px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #f1e9df;
  color: var(--muted);
  font-size: 6.5px;
  letter-spacing: 0.03em;
}

.match-card {
  margin-top: 9px;
  padding: 13px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f9ede1, #f4e7da);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.match-ring {
  --pct: 80;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: conic-gradient(var(--coral) calc(var(--pct) * 1%), rgba(255, 255, 255, 0.62) 0);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  position: relative;
}

.match-ring::before {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #f9eee3;
}

.match-ring strong {
  position: relative;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: -0.02em;
}

.match-copy {
  flex: 1;
  min-width: 0;
}

.match-copy strong {
  display: block;
  font-size: 9.5px;
  font-weight: 750;
}

.match-copy span {
  display: block;
  margin-top: 2px;
  font-size: 7.5px;
  color: var(--muted);
}

/* quiz */

.quiz-shell {
  padding-top: 5px;
  min-height: 610px;
  display: flex;
  flex-direction: column;
}

.quiz-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 19px;
}

.quiz-back {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--ink-soft);
}

.quiz-back .icon {
  width: 13px;
  height: 13px;
}

.quiz-progress {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: #eadfd3;
  overflow: hidden;
}

.quiz-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f89b84, var(--coral));
  transition: width 0.3s var(--ease);
}

.quiz-count {
  flex: 0 0 auto;
  font-size: 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.quiz-eyebrow {
  color: var(--coral-deep);
}

.quiz-q {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.34;
  letter-spacing: -0.015em;
  font-weight: 600;
  margin: 7px 0 18px;
  max-width: 270px;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.quiz-opt {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 12px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 10px;
  text-align: left;
  transition: background 0.16s, color 0.16s, border-color 0.16s, transform 0.16s;
}

.quiz-opt:hover {
  border-color: var(--line-strong);
  transform: translateX(1px);
}

.quiz-opt:disabled {
  cursor: default;
}

.quiz-opt:disabled:not(.selected):hover {
  border-color: var(--line);
  transform: none;
}

.quiz-opt.selected {
  background: var(--ink);
  color: #fff8ed;
  border-color: var(--ink);
  transform: scale(0.995);
}

.opt-letter {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #f2e8dc;
  color: var(--muted);
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
  flex: 0 0 auto;
}

.quiz-opt.selected .opt-letter {
  background: rgba(255, 255, 255, 0.14);
  color: #fff8ed;
}

.quiz-hint {
  margin-top: 13px;
  text-align: center;
  font-size: 7.5px;
  color: var(--muted-2);
}

.quiz-sealed {
  margin-top: auto;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px dashed var(--line-strong);
  background: rgba(255, 250, 243, 0.48);
}

.quiz-sealed-icon {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--lav-soft);
  color: #7e6fa4;
  flex: 0 0 auto;
}

.quiz-sealed-icon .icon {
  width: 13px;
  height: 13px;
}

.quiz-sealed-copy {
  flex: 1;
  min-width: 0;
}

.quiz-sealed-copy strong {
  display: block;
  font-size: 8.5px;
  font-weight: 700;
  color: var(--ink-soft);
}

.quiz-sealed-copy span {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  color: var(--muted);
}

.quiz-sealed-count {
  flex: 0 0 auto;
  font-size: 7px;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.quiz-result {
  padding-top: 6px;
  text-align: center;
}

.result-kicker {
  color: var(--coral-deep);
}

.result-ring {
  --pct: 80;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  margin: 14px auto 10px;
  background: conic-gradient(var(--coral) calc(var(--pct) * 1%), #ecdfd2 0);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 16px 30px -24px rgba(217, 77, 67, 0.5);
}

.result-ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--paper-2);
}

.result-ring-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-ring-copy strong {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.result-ring-copy span {
  margin-top: 3px;
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.result-title {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.25;
  font-weight: 600;
  margin-top: 2px;
}

.result-sub {
  margin: 5px auto 0;
  max-width: 238px;
  font-size: 8.5px;
  line-height: 1.65;
  color: var(--muted);
}

.result-list {
  margin: 16px 0 0;
  border-radius: 19px;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 2px 12px;
  text-align: left;
}

.result-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 0;
}

.result-row + .result-row {
  border-top: 1px solid rgba(68, 49, 39, 0.055);
}

.result-check {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-top: 1px;
}

.result-check.yes {
  background: var(--sage-soft);
  color: #678161;
}

.result-check.no {
  background: #f5e4e0;
  color: #b57166;
}

.result-check .icon {
  width: 10px;
  height: 10px;
}

.result-row-copy {
  flex: 1;
  min-width: 0;
}

.result-row-copy strong {
  display: block;
  font-size: 8.5px;
  line-height: 1.45;
  font-weight: 650;
  color: var(--ink-soft);
}

.result-row-copy span {
  display: block;
  margin-top: 2px;
  font-size: 7.5px;
  line-height: 1.45;
  color: var(--muted);
}

.result-actions {
  display: flex;
  gap: 7px;
  margin-top: 16px;
}

.result-actions .primary-btn {
  flex: 1;
}

.result-actions .ghost-btn {
  flex: 0 0 auto;
}

.ghost-btn {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 8.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 250, 243, 0.55);
  transition: background 0.2s;
}

.ghost-btn:hover {
  background: var(--card);
}

.ghost-btn .icon {
  width: 12px;
  height: 12px;
}

.quiz-return {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 14px auto 0;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.quiz-return:hover {
  color: var(--ink-soft);
}

.quiz-return .icon {
  width: 11px;
  height: 11px;
  transform: rotate(180deg);
}

/* ---------------------------------------------------------
   Us
   --------------------------------------------------------- */

.profile-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-top: 14px;
  border-radius: 27px;
  padding: 20px 18px 16px;
  color: #fff7ea;
  background:
    radial-gradient(100% 120% at 85% 5%, rgba(241, 106, 91, 0.25), transparent 52%),
    linear-gradient(145deg, #3a2b26, #241b18);
  text-align: center;
  box-shadow: 0 22px 40px -28px rgba(36, 27, 24, 0.8);
}

.profile-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid rgba(255, 243, 228, 0.09);
  left: -80px;
  bottom: -90px;
  box-shadow: 0 0 0 25px rgba(255, 243, 228, 0.018);
  z-index: -1;
}

.profile-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.profile-pair .avatar {
  border: 1.5px solid rgba(255, 248, 237, 0.15);
}

.profile-pair-heart {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #ff9c88;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-pair-heart .icon {
  width: 13px;
  height: 13px;
}

.profile-names {
  margin-top: 10px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  color: rgba(255, 247, 234, 0.9);
}

.profile-names span {
  margin: 0 6px;
  color: rgba(255, 247, 234, 0.32);
  font-family: var(--serif);
}

.profile-days {
  margin-top: 9px;
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff9ef;
  font-variant-numeric: tabular-nums;
}

.profile-days small {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.10em;
  color: rgba(255, 247, 234, 0.5);
  margin-left: 5px;
}

.profile-caption {
  margin-top: 7px;
  font-size: 7.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 247, 234, 0.38);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 9px;
}

.stat-card {
  padding: 11px 5px 10px;
  border-radius: 17px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
}

.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.stat-card span {
  display: block;
  margin-top: 4px;
  font-size: 7px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.week-card {
  margin-top: 9px;
  padding: 13px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
}

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

.week-head strong {
  display: block;
  font-size: 9.5px;
  font-weight: 750;
}

.week-head span {
  display: block;
  margin-top: 2px;
  font-size: 7.5px;
  color: var(--muted);
}

.week-badge {
  font-size: 7px;
  color: var(--coral-deep);
  background: var(--coral-soft);
  border-radius: 999px;
  padding: 3px 7px;
  white-space: nowrap;
}

.week-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 58px;
  margin-top: 13px;
}

.week-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  height: 100%;
  font-size: 6.5px;
  color: var(--muted-2);
}

.week-bar i {
  display: block;
  width: 100%;
  max-width: 22px;
  min-height: 5px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #f6b09d, #f16a5b);
  transition: height 0.4s var(--ease);
}

.week-bar:nth-child(3n) i {
  background: linear-gradient(180deg, #c4d1bb, #8fa68d);
}

.week-bar:nth-child(5n) i {
  background: linear-gradient(180deg, #f2d692, #dab55a);
}

.dates-card,
.settings-card {
  margin-top: 9px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}

.date-row,
.setting-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  width: 100%;
  text-align: left;
}

.date-row + .date-row,
.setting-row + .setting-row {
  border-top: 1px solid rgba(68, 49, 39, 0.055);
}

.date-icon,
.setting-icon {
  width: 29px;
  height: 29px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.date-icon.coral,
.setting-icon.coral { background: var(--coral-soft); color: #d95a4d; }
.date-icon.sage,
.setting-icon.sage { background: var(--sage-soft); color: #698367; }
.date-icon.butter,
.setting-icon.butter { background: var(--butter-soft); color: #a47d23; }
.date-icon.lav,
.setting-icon.lav { background: var(--lav-soft); color: #7e6fa4; }

.date-icon .icon,
.setting-icon .icon {
  width: 14px;
  height: 14px;
}

.date-copy,
.setting-copy {
  flex: 1;
  min-width: 0;
}

.date-copy strong,
.setting-copy strong {
  display: block;
  font-size: 9px;
  font-weight: 650;
  color: var(--ink-soft);
}

.date-copy span,
.setting-copy span {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.date-right {
  flex: 0 0 auto;
  font-size: 7.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}

.date-right em {
  font-style: normal;
  color: var(--coral-deep);
  font-weight: 700;
}

.setting-row {
  cursor: default;
}

button.setting-row {
  cursor: pointer;
}

button.setting-row:hover {
  background: rgba(246, 239, 229, 0.35);
}

.setting-chevron {
  color: var(--muted-2);
  flex: 0 0 auto;
}

.setting-chevron .icon {
  width: 12px;
  height: 12px;
}

.switch {
  width: 35px;
  height: 20px;
  border-radius: 999px;
  background: #e2d6c9;
  position: relative;
  flex: 0 0 auto;
  transition: background 0.2s;
}

.switch::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fffaf3;
  top: 2px;
  left: 2px;
  box-shadow: 0 2px 5px rgba(60, 40, 30, 0.18);
  transition: transform 0.22s var(--ease);
}

.switch.on {
  background: var(--coral);
}

.switch.on::after {
  transform: translateX(15px);
}

.us-quote {
  margin: 22px 7px 4px;
  text-align: center;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.9;
  color: #78665b;
  letter-spacing: 0.01em;
}

.us-quote span {
  display: block;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 6.5px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.version-foot {
  margin: 14px 0 2px;
  text-align: center;
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}

/* ---------------------------------------------------------
   Tab bar
   --------------------------------------------------------- */

.tabbar {
  position: absolute;
  z-index: 40;
  left: 11px;
  right: 11px;
  bottom: 10px;
  height: 62px;
  border-radius: 23px;
  border: 1px solid rgba(68, 49, 39, 0.08);
  background: rgba(255, 251, 245, 0.88);
  box-shadow:
    0 18px 32px -18px rgba(50, 30, 20, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 5px;
}

.tab-btn {
  width: 62px;
  min-width: 0;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #9d8e84;
  font-size: 7.5px;
  letter-spacing: 0.02em;
  border-radius: 16px;
  transition: color 0.2s;
}

.tab-icon-wrap {
  width: 34px;
  height: 24px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}

.tab-icon-wrap .icon {
  width: 18px;
  height: 18px;
}

.tab-btn.active {
  color: var(--coral-deep);
}

.tab-btn.active .tab-icon-wrap {
  background: rgba(241, 106, 91, 0.10);
  transform: translateY(-1px);
}

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

.tab-btn.active:hover {
  color: var(--coral-deep);
}

/* ---------------------------------------------------------
   FX layers
   --------------------------------------------------------- */

.fx {
  position: absolute;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.fx > * {
  pointer-events: none;
}

.fx-sheet {
  position: absolute;
  inset: 0;
  z-index: 70;
}

.fx-sheet > * {
  pointer-events: auto;
}

.fx-signal {
  position: absolute;
  inset: 0;
  z-index: 80;
}

.fx-signal > * {
  pointer-events: auto;
}

.fx-banner {
  position: absolute;
  top: 44px;
  left: 0;
  right: 0;
  z-index: 85;
}

.fx-banner > * {
  pointer-events: auto;
}

.fx-toast {
  position: absolute;
  inset: 0;
  z-index: 95;
}

.fx-toast > * {
  pointer-events: auto;
}

.hidden-file {
  display: none;
}

/* sheets */

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 27, 21, 0.38);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease both;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 87%;
  overflow-y: auto;
  padding: 9px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  border-radius: 27px 27px 0 0;
  background: var(--paper-2);
  box-shadow: 0 -24px 50px -24px rgba(40, 25, 18, 0.36);
  animation: sheetUp 0.32s var(--ease) both;
  scrollbar-width: none;
}

.sheet::-webkit-scrollbar {
  display: none;
}

.sheet-grabber {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #dbcfc3;
  margin: 0 auto 13px;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 0 1px 12px;
}

.sheet-head h2 {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-top: 3px;
}

.sheet-head p {
  margin-top: 5px;
  font-size: 8.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 240px;
}

.sheet-close {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #f1e7db;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.sheet-close .icon {
  width: 14px;
  height: 14px;
}

.sheet-note {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 13px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(143, 166, 141, 0.08);
  color: var(--muted);
  font-size: 7.5px;
  line-height: 1.65;
}

.sheet-note .icon {
  width: 11px;
  height: 11px;
  color: var(--sage);
  margin-top: 1px;
  flex: 0 0 auto;
}

.sheet-actions {
  display: flex;
  gap: 7px;
  margin-top: 15px;
}

.sheet-actions .primary-btn {
  flex: 1;
}

.sheet-actions .ghost-btn {
  flex: 0 0 auto;
}

/* forms */

.field {
  margin-top: 12px;
}

.field label {
  display: block;
  font-size: 7.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

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

.input,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card);
  padding: 10px 11px;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
  outline: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus,
.textarea:focus {
  border-color: rgba(241, 106, 91, 0.5);
  box-shadow: 0 0 0 3px rgba(241, 106, 91, 0.08);
}

.textarea {
  resize: none;
  min-height: 80px;
}

.field-help {
  margin-top: 4px;
  font-size: 7px;
  color: var(--muted-2);
  line-height: 1.5;
}

/* option list */

.option-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 13px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  text-align: left;
  font-size: 10px;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}

.option-btn:hover {
  border-color: rgba(241, 106, 91, 0.3);
  background: #fffdf8;
  transform: translateX(1px);
}

.option-btn .option-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.option-btn .option-dot.sage { background: var(--sage); }
.option-btn .option-dot.coral { background: var(--coral); }
.option-btn .option-dot.butter { background: #d8b257; }
.option-btn .option-dot.lav { background: #a494c8; }

.option-btn .option-arrow {
  margin-left: auto;
  color: var(--muted-2);
}

.option-btn .option-arrow .icon {
  width: 11px;
  height: 11px;
}

/* notification rows */

.notice-list {
  margin-top: 13px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: var(--card);
  overflow: hidden;
}

.notice-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 12px;
}

.notice-row + .notice-row {
  border-top: 1px solid rgba(68, 49, 39, 0.055);
}

.notice-dot {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.notice-dot .icon {
  width: 13px;
  height: 13px;
}

.notice-copy {
  flex: 1;
  min-width: 0;
}

.notice-copy strong {
  display: block;
  font-size: 8.5px;
  font-weight: 650;
  color: var(--ink-soft);
  line-height: 1.4;
}

.notice-copy span {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  color: var(--muted);
}

.notice-time {
  flex: 0 0 auto;
  font-size: 6.5px;
  color: var(--muted-2);
  padding-top: 1px;
  font-variant-numeric: tabular-nums;
}

/* privacy content */

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

.privacy-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.privacy-num {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--sage-soft);
  color: #627b60;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 750;
  flex: 0 0 auto;
}

.privacy-item strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  margin-bottom: 2px;
}

.privacy-item p {
  font-size: 7.5px;
  line-height: 1.65;
  color: var(--muted);
}

/* shared room */

.room-code-box {
  margin-top: 13px;
  padding: 15px 14px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(143, 166, 141, 0.16), transparent 55%),
    var(--card);
  display: flex;
  align-items: center;
  gap: 9px;
}

.room-code-box .eyebrow {
  font-size: 6.5px;
  flex: 0 0 auto;
}

.room-code-box strong {
  flex: 1;
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.room-state {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 7px;
  white-space: nowrap;
}

.room-state i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d8b257;
  box-shadow: 0 0 0 3px rgba(216, 178, 87, 0.1);
}

.room-state.on {
  color: #698367;
}

.room-state.on i {
  background: #7cac89;
  box-shadow: 0 0 0 3px rgba(124, 172, 137, 0.1);
}

/* install to home screen */

.install-list {  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 13px;
}

.install-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: var(--card);
}

.install-platform {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.install-platform.ios {
  background: var(--ink);
  color: #fff8ed;
}

.install-platform.android {
  background: var(--sage-soft);
  color: #627b60;
}

.install-item strong {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: var(--ink-soft);
}

.install-item p {
  margin-top: 3px;
  font-size: 7.5px;
  line-height: 1.7;
  color: var(--muted);
}

.install-url {
  margin-top: 14px;
}

.install-url-row {
  display: flex;
  gap: 7px;
  margin-top: 6px;
}

.install-url-row .input {
  flex: 1;
  min-width: 0;
  font-size: 8.5px;
  color: var(--muted);
  text-overflow: ellipsis;
}

.install-copy {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 11px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff8ed;
  font-size: 8px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.install-copy .icon {
  width: 11px;
  height: 11px;
}

/* food picker */

.food-stage {  position: relative;
  margin: 13px 0 0;
  padding: 17px 12px;
  text-align: center;
  border-radius: 20px;
  background:
    radial-gradient(90% 120% at 90% 0%, rgba(240, 212, 137, 0.3), transparent 55%),
    #fff9ec;
  border: 1px solid rgba(216, 178, 87, 0.2);
  overflow: hidden;
}

.food-label {
  font-size: 7px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a38142;
}

.food-result {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  margin-top: 3px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #493424;
}

.food-result .food-emoji {
  font-family: var(--sans);
  font-size: 25px;
}

.food-result.spinning {
  opacity: 0.75;
}

.food-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 6px;
}

.food-chip {
  font-size: 7px;
  color: #967a4f;
  border: 1px solid rgba(150, 122, 79, 0.16);
  background: rgba(255, 255, 255, 0.55);
  padding: 3px 7px;
  border-radius: 999px;
}

.food-actions {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}

.food-actions .primary-btn {
  flex: 1;
}

/* signal overlay */

.signal-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 28px 24px;
  color: #fff7ea;
  background:
    radial-gradient(circle at 50% 35%, rgba(241, 106, 91, 0.24) 0%, transparent 58%),
    linear-gradient(160deg, #2b201d, #1e1715 72%);
  overflow: hidden;
  animation: overlayIn 0.3s var(--ease) both;
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .signal-overlay {
    background:
      radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--accent, #f16a5b) 30%, transparent) 0%, transparent 58%),
      linear-gradient(160deg, #2b201d, #1e1715 72%);
  }
}

.signal-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 247, 234, 0.055) 0.6px, transparent 0.7px);
  background-size: 4px 4px;
  opacity: 0.45;
  pointer-events: none;
}

.overlay-glow {
  position: absolute;
  top: 8%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--accent, #f16a5b);
  filter: blur(90px);
  opacity: 0.32;
  pointer-events: none;
}

.overlay-close {
  position: absolute;
  top: 52px;
  right: 17px;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: rgba(255, 247, 234, 0.10);
  border: 1px solid rgba(255, 247, 234, 0.08);
  color: rgba(255, 247, 234, 0.68);
  display: grid;
  place-items: center;
  z-index: 2;
}

.overlay-close .icon {
  width: 15px;
  height: 15px;
}

.overlay-heart {
  position: relative;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--accent, #f16a5b);
  background: rgba(255, 247, 234, 0.07);
  border: 1px solid rgba(255, 247, 234, 0.10);
  margin-bottom: 19px;
  box-shadow: 0 0 0 12px rgba(255, 247, 234, 0.025);
  animation: heartArrive 0.65s var(--ease-spring) both;
}

.overlay-heart::before,
.overlay-heart::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(241, 106, 91, 0.34);
  inset: -13px;
  animation: rippleOut 2.8s ease-out infinite;
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .overlay-heart::before,
  .overlay-heart::after {
    border-color: color-mix(in srgb, var(--accent, #f16a5b) 40%, transparent);
  }
}

.overlay-heart::after {
  inset: -27px;
  opacity: 0.4;
  animation-delay: 0.9s;
}

.overlay-heart .icon {
  width: 30px;
  height: 30px;
  stroke-width: 1.5;
}

.overlay-eyebrow {
  position: relative;
  z-index: 1;
  font-size: 7.5px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 247, 234, 0.42);
  font-weight: 650;
}

.overlay-title {
  position: relative;
  z-index: 1;
  font-size: 39px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-top: 9px;
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.18);
}

.overlay-desc {
  position: relative;
  z-index: 1;
  margin-top: 10px;
  max-width: 220px;
  font-size: 9.5px;
  line-height: 1.8;
  color: rgba(255, 247, 234, 0.58);
  letter-spacing: 0.01em;
}

.overlay-actions {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 224px;
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.overlay-primary {
  min-height: 41px;
  border-radius: 999px;
  background: #fff7ea;
  color: #2b201d;
  font-size: 10px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s, background 0.2s;
}

.overlay-primary:hover {
  transform: translateY(-1px);
  background: #fffdf8;
}

.overlay-secondary {
  min-height: 31px;
  color: rgba(255, 247, 234, 0.42);
  font-size: 8px;
  letter-spacing: 0.02em;
}

.overlay-secondary:hover {
  color: rgba(255, 247, 234, 0.68);
}

.overlay-foot {
  position: absolute;
  bottom: calc(25px + env(safe-area-inset-bottom, 0px));
  font-size: 6.5px;
  letter-spacing: 0.16em;
  color: rgba(255, 247, 234, 0.25);
  text-transform: uppercase;
}

.floating-heart {
  position: absolute;
  color: rgba(241, 106, 91, 0.5);
  pointer-events: none;
  animation: overlayFloat 4.5s ease-in-out infinite;
  opacity: 0;
}

@supports (color: color-mix(in srgb, red 50%, transparent)) {
  .floating-heart {
    color: color-mix(in srgb, var(--accent, #f16a5b) 58%, transparent);
  }
}

.floating-heart.h1 { left: 17%; top: 29%; font-size: 13px; animation-delay: -0.4s; }
.floating-heart.h2 { right: 16%; top: 22%; font-size: 8px; animation-delay: -2.1s; }
.floating-heart.h3 { left: 25%; bottom: 23%; font-size: 7px; animation-delay: -3.2s; }
.floating-heart.h4 { right: 23%; bottom: 30%; font-size: 11px; animation-delay: -1.2s; }

/* in-app banner */

.inapp-banner {
  position: relative;
  margin: 8px 9px 0;
  padding: 10px 11px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border-radius: 17px;
  background: rgba(255, 251, 245, 0.94);
  border: 1px solid rgba(68, 49, 39, 0.10);
  box-shadow: 0 16px 28px -18px rgba(45, 28, 20, 0.45);
  backdrop-filter: blur(16px);
  animation: bannerDown 0.4s var(--ease) both;
  cursor: pointer;
}

.banner-icon {
  width: 27px;
  height: 27px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.banner-icon.coral { background: var(--coral-soft); color: #d95a4d; }
.banner-icon.sage { background: var(--sage-soft); color: #698367; }
.banner-icon.butter { background: var(--butter-soft); color: #a47d23; }
.banner-icon.lav { background: var(--lav-soft); color: #7e6fa4; }

.banner-icon .icon {
  width: 13px;
  height: 13px;
}

.banner-copy {
  flex: 1;
  min-width: 0;
}

.banner-app {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 6.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.banner-app strong {
  color: var(--ink-soft);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.banner-copy p {
  font-size: 8.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.banner-copy p strong {
  font-weight: 750;
  color: var(--ink);
}

.banner-copy span {
  display: block;
  margin-top: 1px;
  font-size: 7px;
  color: var(--muted);
}

.banner-close {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--muted-2);
  flex: 0 0 auto;
}

.banner-close .icon {
  width: 11px;
  height: 11px;
}

/* toast */

.toast {
  position: absolute;
  left: 50%;
  bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 34px);
  padding: 9px 13px;
  border-radius: 14px;
  background: rgba(40, 30, 26, 0.94);
  color: #fff8ed;
  box-shadow: 0 16px 30px -18px rgba(30, 20, 16, 0.55);
  animation: toastIn 0.3s var(--ease) both;
  backdrop-filter: blur(12px);
  white-space: nowrap;
}

.toast .toast-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.10);
  display: grid;
  place-items: center;
  color: #ffab98;
  flex: 0 0 auto;
}

.toast .toast-icon .icon {
  width: 11px;
  height: 11px;
}

.toast-copy {
  min-width: 0;
}

.toast-copy strong {
  display: block;
  font-size: 8.5px;
  line-height: 1.4;
  font-weight: 650;
}

.toast-copy span {
  display: block;
  margin-top: 1px;
  font-size: 7px;
  color: rgba(255, 248, 237, 0.45);
}

.toast.hide {
  animation: toastOut 0.22s ease both;
}

/* signal bridge */

.signal-bridge {
  position: absolute;
  left: 50%;
  top: 47%;
  transform: translate(-50%, -50%);
  width: clamp(66px, 7.5vw, 103px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  pointer-events: none;
  z-index: 1;
}

.bridge-line {
  position: relative;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 106, 91, 0.42), transparent);
}

.bridge-line::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 10px rgba(241, 106, 91, 0.9);
  animation: bridgeTravel 3.2s var(--ease) infinite;
}

.bridge-label {
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(246, 239, 229, 0.8);
  color: var(--muted);
  font-size: 6px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}

.signal-flight {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff8ed;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 30px -14px rgba(217, 77, 67, 0.75);
  pointer-events: none;
  will-change: transform, opacity;
}

.signal-flight .icon {
  width: 12px;
  height: 12px;
}

/* phone attention states */

.phone.received {
  animation: phoneGlow 1.1s ease-out;
}

.phone.nudged {
  animation: phoneNudge 0.55s var(--ease-spring);
}

.screen-enter .phone-screen {
  animation: screenEnter 0.34s var(--ease) both;
}

/* ---------------------------------------------------------
   Animations
   --------------------------------------------------------- */

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 143, 125, 0.10); }
  50% { box-shadow: 0 0 0 6px rgba(255, 143, 125, 0.04); }
}

@keyframes presencePing {
  0% { transform: scale(0.8); opacity: 0.7; }
  80%, 100% { transform: scale(1.55); opacity: 0; }
}

@keyframes waveBar {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

@keyframes hintPing {
  0% { transform: scale(0.7); opacity: 0.8; }
  80%, 100% { transform: scale(1.7); opacity: 0; }
}

@keyframes nudgeRight {
  0%, 100% { transform: translate(0, -1px); }
  50% { transform: translate(4px, -1px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) scale(0.8); opacity: 0.25; }
  50% { transform: translateY(-10px) scale(1.1); opacity: 0.6; }
}

@keyframes cardBreathe {
  0%, 100% { border-color: rgba(213, 162, 72, 0.36); }
  50% { border-color: rgba(213, 162, 72, 0.56); }
}

@keyframes bridgeTravel {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  75% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes heartArrive {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes rippleOut {
  0% { transform: scale(0.72); opacity: 0.65; }
  80%, 100% { transform: scale(1.3); opacity: 0; }
}

@keyframes overlayFloat {
  0% { transform: translateY(11px) rotate(-8deg); opacity: 0; }
  24% { opacity: 0.6; }
  76% { opacity: 0.52; }
  100% { transform: translateY(-22px) rotate(8deg); opacity: 0; }
}

@keyframes bannerDown {
  from { transform: translateY(-14px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes toastIn {
  from { transform: translate(-50%, 9px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@keyframes toastOut {
  from { transform: translate(-50%, 0); opacity: 1; }
  to { transform: translate(-50%, 7px); opacity: 0; }
}

@keyframes phoneGlow {
  0% { box-shadow: 0 50px 90px -38px rgba(50, 31, 22, 0.65), 0 0 0 0 rgba(241, 106, 91, 0.26); }
  35% { box-shadow: 0 50px 90px -38px rgba(50, 31, 22, 0.65), 0 0 0 13px rgba(241, 106, 91, 0.11); }
  100% { box-shadow: 0 50px 90px -38px rgba(50, 31, 22, 0.65), 0 0 0 26px rgba(241, 106, 91, 0); }
}

@keyframes phoneNudge {
  0%, 100% { transform: translateX(0); }
  22% { transform: translateX(-4px) rotate(-0.3deg); }
  48% { transform: translateX(4px) rotate(0.3deg); }
  72% { transform: translateX(-2px); }
}

@keyframes screenEnter {
  from { opacity: 0.45; transform: scale(0.992); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes orbSend {
  0% { transform: scale(1); }
  28% { transform: scale(0.92); }
  62% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

.miss-orb.sent {
  animation: orbSend 0.6s var(--ease);
}

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

@media (max-width: 1100px) {
  .stage-tagline {
    font-size: 17px;
  }

  .stage {
    gap: clamp(34px, 6vw, 78px);
  }
}

@media (max-height: 840px) and (min-width: 901px) {
  .stage-head {
    padding-top: 18px;
  }

  .stage-hint {
    margin-top: 6px;
  }

  .stage {
    --phone-w: 310px;
    --phone-h: min(660px, calc(100dvh - 146px));
  }

  .stage-foot {
    padding: 4px 0 11px;
  }
}

@media (max-width: 900px) {
  html,
  body {
    height: 100%;
  }

  body {
    display: block;
    overflow: hidden;
    background: var(--paper-2);
  }

  .ambient,
  .page-grain,
  .stage-head,
  .stage-hint,
  .stage-foot,
  .signal-bridge {
    display: none;
  }

  .stage {
    display: block;
    width: 100%;
    height: 100dvh;
    margin: 0;
    padding: 0;
    gap: 0;
  }

  .phone-wrap {
    display: none;
    width: 100%;
    height: 100dvh;
  }

  .phone-wrap.is-active {
    display: block;
  }

  .phone-label {
    display: none;
  }

  .phone {
    width: 100%;
    height: 100dvh;
    padding: 0;
    border-radius: 0;
    background: var(--paper-2);
    box-shadow: none;
  }

  .phone::before,
  .phone::after,
  .phone-btn,
  .dynamic-island {
    display: none;
  }

  .phone-screen {
    border-radius: 0;
    background: var(--paper-2);
  }

  .phone-screen::after {
    display: none;
  }

  .statusbar {
    height: calc(42px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    padding-left: 20px;
    padding-right: 20px;
    font-size: 11px;
  }

  .app {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: calc(102px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 2px;
  }

  .mobile-switch {
    display: flex;
  }

  .tabbar {
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    height: 62px;
  }

  .toast {
    bottom: calc(82px + env(safe-area-inset-bottom, 0px));
  }

  .sheet {
    max-height: 91%;
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .signal-overlay {
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  }

  .overlay-close {
    top: calc(52px + env(safe-area-inset-top, 0px));
  }

  .overlay-foot {
    bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  }

  .inapp-banner {
    margin: calc(7px + env(safe-area-inset-top, 0px)) 9px 0;
  }

  .fx-banner {
    top: calc(42px + env(safe-area-inset-top, 0px));
  }

  .hero-days {
    font-size: 63px;
  }

  .page-head h1 {
    font-size: 33px;
  }
}

@media (max-width: 380px) {
  .app {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    margin-left: -14px;
    margin-right: -14px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-card {
    border-radius: 25px;
    padding: 17px 16px 14px;
  }

  .hero-days {
    font-size: 54px;
  }

  .orb-wrap {
    transform: scale(0.95);
  }

  .quick-actions {
    gap: 4px;
  }

  .signal-grid {
    gap: 7px;
  }

  .game-hero h2 {
    font-size: 22px;
  }

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

@media (display-mode: standalone) and (max-width: 900px) {
  .statusbar {
    display: none;
  }

  .app {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  .fx-banner {
    top: calc(8px + env(safe-area-inset-top, 0px));
  }

  .signal-overlay {
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
  }

  .overlay-close {
    top: calc(18px + env(safe-area-inset-top, 0px));
  }
}

@media (max-width: 900px) {
  body.pwa-standalone .statusbar {
    display: none;
  }

  body.pwa-standalone .app {
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  body.pwa-standalone .fx-banner {
    top: calc(8px + env(safe-area-inset-top, 0px));
  }

  body.pwa-standalone .signal-overlay {
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
  }

  body.pwa-standalone .overlay-close {
    top: calc(18px + env(safe-area-inset-top, 0px));
  }
}

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