:root {
  --ink: #050a09;
  --ink-2: #0b1512;
  --line: rgba(224, 255, 239, .13);
  --mint: #6fffd7;
  --acid: #dcff67;
  --coral: #ff7f6e;
  --paper: #effff7;
  --muted: #8da69d;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--paper);
  font-family: "PingFang SC", "Hiragino Sans GB", sans-serif;
  background:
    radial-gradient(circle at 78% 18%, rgba(111,255,215,.12), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(255,127,110,.08), transparent 34%),
    #07100e;
  overflow: hidden;
}

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

.stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 520px) 560px;
  align-items: center;
  justify-content: center;
  gap: 10vw;
  padding: 48px;
}

.brief { max-width: 520px; }
.eyebrow {
  color: var(--mint);
  font: 700 12px/1.2 ui-monospace, monospace;
  letter-spacing: .24em;
}
.brief h1 {
  margin: 22px 0 20px;
  font: 700 clamp(38px, 5vw, 68px)/1.08 "STKaiti", "KaiTi", serif;
  letter-spacing: -.04em;
}
.lead {
  max-width: 460px;
  color: #a9bdb5;
  font-size: 16px;
  line-height: 1.8;
}
.gesture-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.gesture-list span {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cfe1da;
  background: rgba(255,255,255,.025);
  font-size: 12px;
}

.device-wrap { position: relative; width: 560px; display: grid; justify-items: center; }
.device {
  position: relative;
  width: 480px;
  height: 480px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #27312f, #090d0c 54%, #1b2421);
  box-shadow: 0 48px 90px rgba(0,0,0,.55), inset 0 0 0 2px #38433f, inset 0 0 0 11px #111816;
}
.hardware-key {
  position: absolute;
  right: -15px;
  z-index: 4;
  width: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid #3d4945;
  border-left-color: #18201e;
  color: #9fb4ac;
  background:
    linear-gradient(90deg, #101614, #35413d 42%, #161d1b 100%);
  box-shadow:
    inset 4px 0 6px rgba(0,0,0,.45),
    inset -2px 0 2px rgba(255,255,255,.06),
    5px 7px 16px rgba(0,0,0,.36);
  cursor: pointer;
  transition: transform .16s ease, color .16s ease, border-color .16s ease;
}
.hardware-key::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 7px;
  bottom: 7px;
  width: 8px;
  border-radius: 5px 0 0 5px;
  background: #101614;
  box-shadow: inset 1px 0 rgba(255,255,255,.04);
}
.hardware-key:hover { color: var(--paper); border-color: #596761; }
.hardware-key:active { transform: translateX(-3px); }
.hardware-key:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.hardware-voice {
  top: 145px;
  height: 72px;
  border-radius: 5px 15px 15px 5px;
  color: var(--mint);
}
.hardware-voice span {
  margin-top: 8px;
  font: 700 18px/1 ui-monospace, monospace;
  text-shadow: 0 0 9px rgba(111,255,215,.35);
}
.hardware-voice small {
  margin-top: -9px;
  color: #667a73;
  font: 600 6px/1 ui-monospace, monospace;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
}
.hardware-power {
  top: 245px;
  height: 48px;
  border-radius: 4px 13px 13px 4px;
  color: var(--acid);
}
.hardware-power span {
  font: 700 17px/1 ui-monospace, monospace;
  text-shadow: 0 0 8px rgba(220,255,103,.26);
}
.hardware-power[aria-pressed="false"] {
  color: #8a6863;
  border-color: #463b38;
}
.screen > * { transition: opacity .24s ease; }
.device.is-powered-off .screen {
  background: #020403;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}
.device.is-powered-off .screen > * {
  opacity: 0;
  pointer-events: none;
}
.screen {
  position: relative;
  width: 400px;
  height: 400px;
  overflow: clip;
  border-radius: 50%;
  touch-action: none;
  user-select: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(111,255,215,.07), transparent 42%),
    var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255,255,255,.07), transparent 27%);
}
.crown {
  position: absolute;
  left: 50%;
  width: 72px;
  height: 9px;
  z-index: 2;
  border-radius: 9px;
  background: #2b3632;
}
.crown-top { top: -3px; transform: translateX(-50%); }
.crown-bottom { bottom: 17px; transform: translateX(-50%); }
.device-note { margin: 22px 0 0; color: #63776f; font: 11px ui-monospace, monospace; letter-spacing: .08em; }

.pages {
  width: 2800px;
  height: 400px;
  display: flex;
  transform: translateX(-800px);
  transition: transform .52s cubic-bezier(.22,.8,.2,1);
}
.pages.no-transition { transition: none; }
.page-clone button,
.page-clone input { pointer-events: none; }
.page {
  position: relative;
  flex: 0 0 400px;
  height: 400px;
  padding: 42px 42px 38px;
  text-align: center;
}
.kicker, .brand {
  margin: 0;
  color: #dceae4;
  font: 800 14px/1 ui-monospace, monospace;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.return-hint {
  position: absolute;
  left: 0; right: 0; bottom: 25px;
  margin: 0;
  color: #61766e;
  font-size: 11px;
}

.edge {
  position: absolute;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6b8178;
  font-size: 9px;
  letter-spacing: .12em;
  pointer-events: none;
}
.edge i { width: 28px; height: 2px; border-radius: 2px; background: var(--mint); opacity: .7; }
.edge-top { top: 13px; left: 50%; transform: translateX(-50%); flex-direction: column; gap: 3px; }
.edge-bottom { bottom: 10px; left: 50%; transform: translateX(-50%); flex-direction: column; gap: 3px; }

.brand { margin-top: 0; color: var(--acid); }
.pet {
  position: relative;
  width: 122px; height: 122px;
  margin: 13px auto 0;
  display: grid; place-items: center;
  animation: float 4.2s ease-in-out infinite;
  cursor: pointer;
}
.pet-glow {
  position: absolute;
  inset: 4px;
  border-radius: 45% 55% 48% 52%;
  filter: blur(18px);
  background: rgba(111,255,215,.2);
}
.pet-body {
  position: relative;
  width: 98px; height: 106px;
  border-radius: 48% 52% 45% 55%;
  transform: rotate(-3deg);
  background:
    radial-gradient(circle at 36% 28%, rgba(255,255,255,.65), transparent 9%),
    radial-gradient(circle at 55% 70%, #58d4ad, transparent 36%),
    linear-gradient(150deg, var(--acid), #69edbd 54%, #1c8e79);
  box-shadow: inset -13px -12px 25px rgba(0,51,42,.36), 0 18px 34px rgba(39,211,167,.22);
  transition: background .42s ease, box-shadow .42s ease;
}
.pet.variant-coral .pet-body {
  background:
    radial-gradient(circle at 36% 28%, rgba(255,255,255,.68), transparent 9%),
    radial-gradient(circle at 55% 70%, #ff927c, transparent 36%),
    linear-gradient(150deg, #ffe27a, #ff8b72 54%, #b73d63);
  box-shadow: inset -13px -12px 25px rgba(80,20,35,.3), 0 18px 34px rgba(255,127,110,.2);
}
.pet.variant-sky .pet-body {
  background:
    radial-gradient(circle at 36% 28%, rgba(255,255,255,.7), transparent 9%),
    radial-gradient(circle at 55% 70%, #71d7ff, transparent 36%),
    linear-gradient(150deg, #c5f3ff, #69c8ef 54%, #5362c8);
  box-shadow: inset -13px -12px 25px rgba(28,36,91,.28), 0 18px 34px rgba(105,200,239,.2);
}
.pet-accessory {
  position: absolute;
  z-index: 2;
  top: -15px;
  left: 50%;
  color: var(--acid);
  font: normal 22px/1 "STKaiti", serif;
  transform: translateX(-50%);
  filter: drop-shadow(0 3px 5px rgba(0,0,0,.4));
}
.pet.feeding { animation: nibble .56s ease-in-out 2; }
.eye {
  position: absolute; top: 41px;
  width: 9px; height: 11px;
  border-radius: 50%;
  background: #07100e;
  animation: blink 5s infinite;
}
.eye-left { left: 27px; } .eye-right { right: 27px; }
.mouth { position: absolute; left: 43px; top: 62px; width: 14px; height: 7px; border-bottom: 2px solid rgba(5,10,9,.74); border-radius: 50%; }
.quote { margin-top: 2px; }
.quote small { color: #8da59c; font-size: 10px; }
.quote p { margin: 3px auto 0; color: #effff7; font: 600 14px/1.25 "STKaiti", serif; }
.pet-feedback {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 188px;
  min-width: 120px;
  padding: 7px 12px;
  border: 1px solid rgba(220,255,103,.26);
  border-radius: 99px;
  color: var(--acid);
  background: rgba(10,20,17,.9);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,8px);
  transition: .25s ease;
}
.pet-feedback.show { opacity: 1; transform: translate(-50%,0); }
.home-nav {
  width: 306px;
  margin: 13px auto 0;
  display: flex;
  justify-content: space-between;
}
.home-nav button {
  width: 58px; height: 58px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.035);
  cursor: pointer;
  transition: .2s ease;
}
.home-nav button:hover { transform: translateY(-3px); border-color: rgba(111,255,215,.45); background: rgba(111,255,215,.08); }
.home-nav i { display: block; color: var(--mint); font: normal 20px/1.1 serif; }
.home-nav span { display: block; margin-top: 4px; font-size: 10px; color: #aec2ba; }
.home-nav button:last-child span { font-size: 9px; letter-spacing: -.04em; }

.page-dots { position: absolute; z-index: 12; bottom: 21px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.page-dots i { width: 4px; height: 4px; border-radius: 50%; background: #32423c; }
.page-dots i.active { width: 13px; border-radius: 9px; background: var(--mint); }

.decision-orbit {
  position: relative;
  width: 158px; height: 158px;
  margin: 20px auto 13px;
  display: grid; place-items: center;
  border: 1px solid rgba(111,255,215,.28);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 16px, rgba(111,255,215,.06) 17px 18px);
  transition: transform 1.6s cubic-bezier(.2,.75,.14,1);
}
.decision-orbit::before, .decision-orbit::after {
  content: ""; position: absolute; inset: 20px; border-radius: 50%; border: 1px dashed rgba(220,255,103,.28);
}
.decision-orbit::after { inset: 44px; border-style: solid; }
.decision-orbit strong { z-index: 2; color: var(--acid); font: 700 23px/1.05 "STKaiti", serif; }
.orbit-dot { position: absolute; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 14px var(--coral); }
.decision-orbit.spinning { transform: rotate(1440deg) scale(.94); }
.primary {
  min-width: 128px; height: 42px;
  border: 0; border-radius: 99px;
  color: #07100e; background: var(--acid);
  font-weight: 800; cursor: pointer;
}
.text-action { display: block; margin: 10px auto 0; border: 0; color: #8fa69d; background: transparent; font-size: 11px; cursor: pointer; }

.fortune-score {
  width: 160px; height: 160px;
  margin: 18px auto 12px;
  display: grid; place-content: center;
  border: 1px solid rgba(255,127,110,.28);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,127,110,.14), transparent 65%);
}
.fortune-score small { color: #98aca5; font-size: 10px; }
.fortune-score strong { display: inline; margin-top: 2px; color: var(--coral); font: 700 48px/.95 ui-monospace, monospace; }
.fortune-score em { color: var(--coral); font-style: normal; }
.fortune-score span { margin-top: 4px; color: #f6d3cc; font-size: 12px; }
.fortune-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fortune-grid div { padding: 8px 3px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.03); }
.fortune-grid small { display: block; color: #71867e; font-size: 8px; }
.fortune-grid b { display: block; margin-top: 4px; color: #eaf9f3; font-size: 12px; }
.color-seed { width: 13px; height: 13px; margin: 5px auto 0 !important; border-radius: 50%; background: var(--coral); }
.fortune-line { margin: 10px 0 0; color: #b6c9c1; font: 12px "STKaiti", serif; }

.lottery-radar {
  position: relative;
  width: 252px;
  height: 220px;
  margin: 3px auto 0;
}
.lottery-radar svg { width: 100%; height: 100%; overflow: visible; }
.radar-grid polygon,
.radar-grid line {
  fill: none;
  stroke: rgba(111,255,215,.16);
  stroke-width: 1;
}
.radar-grid polygon:first-child { stroke: rgba(220,255,103,.25); }
.radar-value {
  fill: url(#radarFill);
  stroke: var(--acid);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(220,255,103,.22));
}
.radar-points circle {
  fill: var(--acid);
  stroke: #07100e;
  stroke-width: 1.5;
}
.radar-labels text {
  fill: #96aaa2;
  font: 8px "PingFang SC", sans-serif;
  text-anchor: middle;
}
.radar-total {
  position: absolute;
  left: 50%;
  top: 51%;
  display: grid;
  transform: translate(-50%,-50%);
}
.radar-total small { color: #73877f; font-size: 7px; letter-spacing: .08em; }
.radar-total strong { color: var(--paper); font: 800 24px/1 ui-monospace, monospace; }
.lottery-ticket {
  width: 250px;
  margin: -7px auto 0;
  padding: 9px 13px 8px;
  border: 1px solid rgba(255,127,110,.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,127,110,.08), rgba(220,255,103,.04));
}
.lottery-ticket small,
.lottery-ticket span { display: block; color: #71857e; font-size: 7px; letter-spacing: .05em; }
.lottery-ticket div { display: flex; justify-content: center; gap: 7px; margin: 5px 0 4px; }
.lottery-ticket b {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #07100e;
  background: var(--coral);
  font: 800 10px ui-monospace, monospace;
  box-shadow: 0 4px 12px rgba(255,127,110,.18);
}

.fortune-reading {
  position: absolute;
  inset: 0;
  z-index: 17;
  padding: 38px 54px 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 36%, rgba(220,255,103,.09), transparent 38%),
    rgba(7,16,14,.98);
  text-align: center;
  transform: translateY(-104%);
  transition: transform .5s cubic-bezier(.22,.8,.2,1);
}
.fortune-reading.open { transform: translateY(0); }
.reading-handle {
  width: 34px;
  height: 3px;
  margin: -19px auto 17px;
  border-radius: 3px;
  background: var(--acid);
}
.reading-orb {
  position: relative;
  width: 90px;
  height: 90px;
  margin: 16px auto 12px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220,255,103,.25);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,255,103,.13), transparent 68%);
}
.reading-orb i {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(111,255,215,.25);
  border-radius: 50%;
}
.reading-orb i:nth-child(2) { inset: 24px; }
.reading-orb b { z-index: 2; color: var(--acid); font: 700 28px "STKaiti", serif; }
.reading-orb.speaking i { animation: wave 1.5s ease-out infinite; }
.reading-orb.speaking i:nth-child(2) { animation-delay: .4s; }
.reading-lead {
  width: 264px;
  margin: 0 auto;
  color: #e8f6f0;
  font: 600 14px/1.5 "STKaiti", serif;
}
.reading-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px auto 9px;
}
.reading-insights span {
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
}
.reading-insights small,
.reading-insights b { display: block; }
.reading-insights small { color: #6f847b; font-size: 7px; }
.reading-insights b { margin-top: 3px; color: #cfe2da; font-size: 9px; font-weight: 600; }
.reading-note { margin: 0; color: #61756d; font-size: 8px; }
.reading-voice {
  height: 34px;
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid rgba(111,255,215,.3);
  border-radius: 99px;
  color: var(--mint);
  background: rgba(111,255,215,.06);
  font-size: 10px;
}
.reading-voice.active { color: var(--acid); border-color: rgba(220,255,103,.4); }
.reading-close {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  border: 0;
  color: #6b8077;
  background: transparent;
  font-size: 9px;
}

.voice-field { position: relative; width: 180px; height: 180px; margin: 24px auto 8px; display: grid; place-items: center; }
.voice-field i { position: absolute; inset: 18px; border: 1px solid rgba(111,255,215,.22); border-radius: 50%; }
.voice-field i:nth-child(2) { inset: 4px; } .voice-field i:nth-child(3) { inset: 32px; }
.voice-field button { z-index: 2; width: 72px; height: 72px; border: 1px solid rgba(220,255,103,.5); border-radius: 50%; color: var(--acid); background: #14201b; font-size: 18px; cursor: pointer; }
.voice-field.listening i { animation: wave 1.7s ease-out infinite; }
.voice-field.listening i:nth-child(2) { animation-delay: .35s; }
.voice-field.listening i:nth-child(3) { animation-delay: .7s; }
.listen-state { color: #eaffbd; font-size: 15px; }
.tree-copy { color: #8ca199; font-size: 11px; line-height: 1.55; }
.tree-copy small { color: #5f746c; }

.setting-list {
  width: 284px;
  max-height: 274px;
  margin: 14px auto;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border: 1px solid rgba(111,255,215,.1);
  border-radius: 24px;
  background: rgba(255,255,255,.022);
  text-align: left;
}
.setting-list::-webkit-scrollbar { display: none; }
.setting-row,
.sub-setting {
  width: 100%;
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  background: transparent;
}
button.setting-row,
.sub-setting { cursor: pointer; }
.setting-row > span,
.sub-setting > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dceae4;
  font-size: 12px;
}
.setting-row > span > i {
  width: 18px;
  color: var(--mint);
  font: normal 15px/1 serif;
  text-align: center;
}
.setting-list b {
  color: #7f958c;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
}
.alarm-setting input {
  width: 72px;
  border: 0;
  color: var(--acid);
  background: transparent;
  font-size: 11px;
}
.setting-control { border-bottom: 1px solid var(--line); }
.setting-control .setting-row { min-height: 34px; border: 0; }
.setting-control label {
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px 7px 40px;
}
.setting-control input[type="range"] { flex: 1; margin: 0; height: 18px; }
.mini-toggle {
  min-width: 42px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(111,255,215,.3);
  border-radius: 99px;
  color: var(--mint);
  background: rgba(111,255,215,.06);
  font-size: 9px;
}
.mini-toggle[aria-pressed="true"] {
  border-color: rgba(255,127,110,.35);
  color: var(--coral);
  background: rgba(255,127,110,.08);
}
.switch {
  position: relative;
  flex: 0 0 auto;
  width: 34px;
  height: 20px;
  border-radius: 99px;
  background: #24312c;
  transition: .2s ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #72857e;
  transition: .2s ease;
}
.switch-row[aria-pressed="true"] .switch { background: rgba(111,255,215,.25); }
.switch-row[aria-pressed="true"] .switch::after {
  left: 17px;
  background: var(--mint);
  box-shadow: 0 0 9px rgba(111,255,215,.48);
}
.mobile-network summary { cursor: pointer; list-style: none; }
.mobile-network summary::-webkit-details-marker { display: none; }
.mobile-network[open] summary { background: rgba(111,255,215,.035); }
.sub-setting {
  min-height: 40px;
  padding-left: 40px;
  background: rgba(0,0,0,.12);
}
.sub-setting > span { color: #9bb0a7; font-size: 11px; }

.sheet {
  position: absolute;
  inset: 0;
  z-index: 18;
  padding: 40px 52px 34px;
  border-radius: 50%;
  background: rgba(7,16,14,.96);
  backdrop-filter: blur(18px);
  transition: transform .48s cubic-bezier(.22,.8,.2,1);
}
.quick-sheet { transform: translateY(-104%); }
.buddy-sheet { transform: translateY(104%); }
.sheet.open { transform: translateY(0); }
.sheet-handle { width: 34px; height: 3px; margin: -21px auto 19px; border-radius: 4px; background: var(--mint); }
.sheet > .kicker {
  width: 100%;
  text-align: center;
}
.sheet label { display: block; margin: 22px auto 0; }
.sheet label span { display: flex; justify-content: space-between; color: #c9dad3; font-size: 12px; }
.sheet label b { color: var(--acid); font-weight: 600; }
input[type="range"] { width: 100%; margin-top: 10px; accent-color: var(--mint); }
.quick-controls {
  width: 248px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.segment-dial {
  --dial-accent: var(--mint);
  position: relative;
  width: 112px;
  height: 132px;
  padding: 0;
  border: 0;
  color: #bcecff;
  background: transparent;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}
.dial-brightness { --dial-accent: var(--acid); color: #fff7b3; }
.dial-segments {
  position: absolute;
  left: 56px;
  top: 52px;
  width: 0;
  height: 0;
  pointer-events: none;
}
.dial-segments i {
  position: absolute;
  left: -2px;
  top: -47px;
  width: 4px;
  height: 10px;
  border-radius: 4px;
  background: #273632;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.025);
  transform-origin: 2px 47px;
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.dial-segments i.active {
  background: var(--dial-accent);
  box-shadow: 0 0 7px color-mix(in srgb, var(--dial-accent) 72%, transparent);
}
.segment-dial:active .dial-segments i.active { transform: var(--segment-rotation) scaleY(1.18); }
.dial-core {
  position: absolute;
  left: 14px;
  top: 10px;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 2px solid #26342f;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 35%, rgba(255,255,255,.06), transparent 35%),
    #111a18;
  box-shadow:
    inset 0 0 0 7px #0a100f,
    inset 0 0 0 9px rgba(115,156,255,.11),
    0 8px 22px rgba(0,0,0,.42);
  transition: transform .18s ease, border-color .18s ease;
}
.segment-dial:focus-visible .dial-core {
  outline: 2px solid var(--dial-accent);
  outline-offset: 4px;
}
.segment-dial:active .dial-core { transform: scale(.95); border-color: var(--dial-accent); }
.dial-core svg {
  width: 42px;
  height: 42px;
  overflow: visible;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dial-volume .dial-core {
  background:
    radial-gradient(circle at 42% 35%, rgba(140,183,255,.13), transparent 40%),
    #121a22;
}
.dial-meta {
  position: absolute;
  left: 0;
  right: 0;
  top: 101px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  color: #667b73;
}
.dial-meta b { color: var(--dial-accent); font: 700 12px/1 ui-monospace, monospace; }
.dial-meta small { font-size: 9px; letter-spacing: .08em; }
.alarm-row {
  position: relative;
  width: 244px;
  min-height: 58px;
  margin-top: 4px !important;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  padding: 7px 11px 7px 8px;
  border: 1px solid rgba(220,255,103,.24);
  border-radius: 18px;
  background:
    linear-gradient(105deg, rgba(220,255,103,.13), rgba(111,255,215,.035) 58%, rgba(255,255,255,.015));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 22px rgba(0,0,0,.18);
  overflow: hidden;
}
.alarm-row::after {
  content: "";
  position: absolute;
  width: 72px;
  height: 72px;
  right: -24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,255,103,.12), transparent 68%);
  pointer-events: none;
}
.alarm-row .alarm-copy,
.alarm-row .alarm-time {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
}
.alarm-row .alarm-copy { gap: 8px; }
.alarm-row .alarm-copy > span {
  display: grid;
  justify-items: start;
  gap: 2px;
}
.alarm-copy strong {
  color: #f1ffd1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
}
.alarm-copy small {
  color: #82978f;
  font-size: 7px;
  letter-spacing: .05em;
}
.alarm-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(220,255,103,.34);
  border-radius: 50%;
  color: var(--acid);
  background: #111b17;
  font: normal 19px/1 ui-monospace, monospace;
  box-shadow:
    inset 0 0 0 4px rgba(220,255,103,.035),
    0 0 12px rgba(220,255,103,.09);
}
.alarm-row .alarm-time {
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.alarm-row .alarm-time b {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #8da39a;
  font-size: 7px;
  font-weight: 600;
}
.alarm-time b i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 7px rgba(220,255,103,.7);
  animation: alarmPulse 1.8s ease-in-out infinite;
}
.alarm-row input {
  width: 64px;
  padding: 0;
  border: 0;
  outline: 0;
  appearance: none;
  -webkit-appearance: none;
  color: var(--acid);
  background: transparent;
  font: 800 18px/1 ui-monospace, monospace;
  text-align: right;
  color-scheme: dark;
}
.alarm-row input::-webkit-calendar-picker-indicator { display: none; }
.dial-hint {
  margin: 6px 0 0;
  color: #4f655d;
  font-size: 7px;
  letter-spacing: .04em;
  text-align: center;
}
.sheet-close { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); border: 0; color: #71877e; background: transparent; font-size: 10px; }
.buddy-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 19px; }
.buddy-pair > div { padding: 15px 7px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.035); }
.mood { display: block; color: var(--acid); font: 34px/1 "STKaiti", serif; }
.buddy-pair strong { display: block; margin-top: 7px; font-size: 11px; }
.buddy-pair small { display: block; margin-top: 7px; color: #70847d; font-size: 8px; white-space: nowrap; }
.online { display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%; background: var(--mint); }
.together { margin-top: 14px; padding: 14px; border-radius: 20px; background: linear-gradient(135deg, rgba(111,255,215,.1), rgba(220,255,103,.06)); }
.together small, .together span { display: block; color: #7f958d; font-size: 9px; }
.together strong { display: block; margin: 5px 0; color: #e9ffc0; font: 600 14px "STKaiti", serif; }

@keyframes float { 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes blink { 0%, 44%, 48%, 100% { transform: scaleY(1); } 46% { transform: scaleY(.1); } }
@keyframes wave { 0% { transform: scale(.58); opacity: .8; } 100% { transform: scale(1.22); opacity: 0; } }
@keyframes alarmPulse { 50% { opacity: .35; transform: scale(.72); } }
@keyframes nibble {
  0%,100% { transform: translateY(0) rotate(0); }
  40% { transform: translateY(5px) rotate(-4deg) scale(.96); }
  70% { transform: translateY(-3px) rotate(3deg) scale(1.03); }
}

@media (max-width: 1000px) {
  body { overflow: auto; }
  .stage { grid-template-columns: 1fr; gap: 52px; padding: 50px 20px; }
  .brief { text-align: center; margin: auto; }
  .lead { margin-inline: auto; }
  .gesture-list { justify-content: center; }
  .device-wrap { width: 100%; transform: scale(.85); }
}
