:root {
  --bg: #07110f;
  --bg-raised: #0d1a17;
  --panel: rgba(19, 35, 31, 0.88);
  --panel-solid: #13231f;
  --line: rgba(218, 255, 238, 0.1);
  --line-strong: rgba(218, 255, 238, 0.18);
  --text: #effbf6;
  --muted: #8fa79f;
  --accent: #5cf2b6;
  --accent-deep: #16b97d;
  --accent-soft: rgba(92, 242, 182, 0.12);
  --danger: #ff7f79;
  --warning: #ffc067;
  --radius: 22px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(circle at 82% -6%, rgba(39, 162, 118, 0.2), transparent 34%),
    radial-gradient(circle at 3% 45%, rgba(29, 112, 89, 0.12), transparent 34%),
    var(--bg);
  font-family: var(--font);
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.app-shell {
  min-height: 100dvh;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: calc(68px + var(--safe-top));
  padding: var(--safe-top) 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.topbar > * {
  pointer-events: auto;
}

#hubButton {
  margin-left: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 18px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  transform: rotate(-8deg);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i {
  content: "";
  position: absolute;
  display: block;
  background: var(--accent);
  border-radius: 99px;
}

.brand-mark::before {
  width: 3px;
  height: 3px;
  top: 7px;
  left: 7px;
  box-shadow: 0 6px 0 var(--accent);
}

.brand-mark::after {
  width: 5px;
  height: 5px;
  right: 5px;
  top: 10px;
}

.brand-mark i:first-child {
  width: 9px;
  height: 1px;
  left: 9px;
  top: 8px;
}

.brand-mark i:last-child {
  width: 7px;
  height: 1px;
  left: 9px;
  top: 14px;
}

.icon-button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 30, 26, 0.68);
  backdrop-filter: blur(14px);
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.icon-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.back-button {
  position: absolute;
  left: 16px;
}

main {
  min-height: 100dvh;
}

.view {
  width: min(100%, 560px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(100px + var(--safe-top)) 22px calc(34px + var(--safe-bottom));
}

.landing-view {
  display: flex;
  flex-direction: column;
}

.hero-orbit {
  position: relative;
  width: 260px;
  height: 218px;
  margin: -6px auto 26px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(92, 242, 182, 0.14);
  border-radius: 50%;
}

.orbit-one {
  inset: 10px 26px 12px;
  transform: rotate(-20deg);
}

.orbit-two {
  inset: 34px 3px;
  transform: rotate(24deg);
  border-color: rgba(92, 242, 182, 0.08);
}

.phone-shape {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 180px;
  border: 2px solid rgba(157, 255, 218, 0.72);
  border-radius: 20px;
  transform: translate(-50%, -50%) rotate(8deg);
  background: linear-gradient(160deg, rgba(28, 77, 62, 0.54), rgba(5, 19, 15, 0.9));
  box-shadow: 0 0 26px rgba(58, 224, 162, 0.16), inset 0 0 18px rgba(76, 235, 177, 0.08);
}

.phone-camera {
  position: absolute;
  width: 28px;
  height: 4px;
  border-radius: 99px;
  top: 8px;
  left: 32px;
  background: rgba(174, 255, 224, 0.3);
}

.phone-screen {
  position: absolute;
  inset: 22px 8px 12px;
  border-radius: 11px;
  background:
    radial-gradient(circle at 70% 15%, rgba(92, 242, 182, 0.28), transparent 40%),
    rgba(2, 14, 10, 0.72);
  overflow: hidden;
}

.phone-screen::before {
  content: "";
  position: absolute;
  width: 49px;
  height: 35px;
  border: 1px solid rgba(92, 242, 182, 0.44);
  border-radius: 4px;
  left: 16px;
  top: 26px;
}

.phone-screen::after {
  content: "";
  position: absolute;
  width: 32px;
  height: 2px;
  left: 24px;
  bottom: 20px;
  border-radius: 6px;
  background: rgba(92, 242, 182, 0.22);
}

.phone-screen i {
  position: absolute;
  bottom: 7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.phone-screen i:nth-child(1) { left: 10px; }
.phone-screen i:nth-child(2) { left: 17px; }
.phone-screen i:nth-child(3) { right: 10px; }

.signal-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 7px rgba(92, 242, 182, 0.08), 0 0 22px var(--accent);
}

.dot-one {
  left: 26px;
  top: 53px;
}

.dot-two {
  right: 17px;
  bottom: 51px;
  width: 7px;
  height: 7px;
  opacity: 0.7;
}

.intro {
  text-align: left;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.22em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(31px, 8.2vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.045em;
  font-weight: 680;
}

h1 span {
  color: var(--accent);
}

.lede {
  max-width: 360px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: linear-gradient(145deg, rgba(22, 42, 36, 0.87), rgba(10, 24, 20, 0.9));
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(20px);
}

.stack {
  display: flex;
  flex-direction: column;
}

.panel label {
  margin: 0 0 9px 2px;
  color: #c7d9d2;
  font-size: 12px;
  font-weight: 600;
}

.field {
  display: flex;
  align-items: center;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(2, 12, 9, 0.45);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field:focus-within {
  border-color: rgba(92, 242, 182, 0.7);
  box-shadow: 0 0 0 3px rgba(92, 242, 182, 0.08);
}

.field span {
  padding-left: 16px;
  color: var(--accent);
  font-size: 21px;
}

.field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

input::placeholder {
  color: #647b73;
}

.field-hint {
  margin: 9px 2px 17px;
  color: #71877f;
  font-size: 11px;
  line-height: 1.55;
}

.primary-button,
.secondary-button {
  min-height: 52px;
  border-radius: 14px;
  padding: 0 20px;
  font-weight: 680;
  cursor: pointer;
}

.primary-button {
  border: 0;
  color: #04120d;
  background: linear-gradient(110deg, #78f8c4, #38d99e);
  box-shadow: 0 10px 30px rgba(44, 211, 150, 0.16);
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: var(--accent-soft);
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 0;
  color: #6f857d;
  font-size: 10px;
}

.privacy-note span {
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  border-radius: 50%;
}

.auth-view {
  padding-top: calc(128px + var(--safe-top));
}

.auth-heading {
  margin-bottom: 26px;
  text-align: center;
}

.auth-heading h2 {
  margin-bottom: 8px;
  font-size: 29px;
  letter-spacing: -0.03em;
}

.auth-heading > p:last-child {
  color: var(--muted);
  font-size: 13px;
}

.shield-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  border: 1px solid rgba(92, 242, 182, 0.24);
  border-radius: 18px;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.shield-icon svg {
  width: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.auth-form {
  gap: 0;
}

.auth-form label:not(.username-label) {
  margin-top: 17px;
}

.plain-input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 0 15px;
  color: var(--text);
  background: rgba(2, 12, 9, 0.45);
  outline: 0;
}

.plain-input:focus {
  border-color: rgba(92, 242, 182, 0.7);
}

.auth-form .primary-button {
  margin-top: 22px;
}

.text-button {
  display: block;
  margin: 20px auto 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}

.devices-view {
  padding-top: calc(102px + var(--safe-top));
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 21px;
}

.section-title h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.round-add {
  display: grid;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 16px;
  place-items: center;
  color: #05140f;
  background: var(--accent);
  box-shadow: 0 9px 26px rgba(63, 225, 165, 0.18);
  cursor: pointer;
}

.round-add svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.network-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 0 13px;
  color: var(--muted);
  background: rgba(13, 27, 23, 0.58);
  font-size: 11px;
}

.network-strip button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  cursor: pointer;
}

.network-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(92, 242, 182, 0.08);
}

.network-strip.offline .network-pulse {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 127, 121, 0.08);
}

.device-list {
  display: grid;
  gap: 12px;
}

.device-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 13px;
  min-height: 90px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  background:
    linear-gradient(110deg, rgba(25, 48, 40, 0.86), rgba(12, 27, 23, 0.9));
  transition: transform 140ms ease, border-color 140ms ease;
  animation: card-in 320ms ease both;
}

.device-card:active {
  transform: scale(0.985);
}

.device-card.online {
  border-color: rgba(92, 242, 182, 0.18);
}

.device-card.offline {
  opacity: 0.6;
}

.device-screen {
  position: relative;
  display: grid;
  width: 58px;
  height: 47px;
  border: 1px solid rgba(158, 255, 218, 0.22);
  border-radius: 7px;
  place-items: center;
  background:
    radial-gradient(circle at 70% 10%, rgba(92, 242, 182, 0.2), transparent 50%),
    #071612;
}

.device-screen::before {
  content: "";
  width: 23px;
  height: 14px;
  border: 1px solid rgba(92, 242, 182, 0.28);
  border-radius: 2px;
}

.device-screen::after {
  content: "";
  position: absolute;
  width: 19px;
  height: 1px;
  bottom: 7px;
  background: rgba(92, 242, 182, 0.34);
}

.device-main {
  min-width: 0;
  cursor: pointer;
}

.device-name {
  margin: 0 0 6px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.device-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.device-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #536a62;
}

.device-card.online .device-status i {
  background: var(--accent);
  box-shadow: 0 0 10px rgba(92, 242, 182, 0.7);
}

.device-menu {
  width: 34px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.empty-state {
  padding: 40px 20px 24px;
  text-align: center;
}

.empty-icon {
  position: relative;
  width: 86px;
  height: 68px;
  margin: 0 auto 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.empty-icon::before,
.empty-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 24px;
  height: 1px;
  background: var(--line-strong);
  transform: translateX(-50%);
}

.empty-icon::after {
  bottom: -12px;
  width: 46px;
}

.empty-icon span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.empty-icon i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(92, 242, 182, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.empty-state h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.empty-state p {
  max-width: 300px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.empty-state .secondary-button {
  min-height: 44px;
}

.quick-tip {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  color: #677d75;
}

.tip-icon {
  display: grid;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid #526961;
  border-radius: 50%;
  place-items: center;
  color: #8da39b;
  font: 10px Georgia, serif;
}

.quick-tip p {
  margin: 1px 0 0;
  font-size: 10px;
  line-height: 1.6;
}

.control-view {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #020806;
}

.control-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: calc(64px + var(--safe-top));
  padding: var(--safe-top) 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  background: rgba(5, 14, 11, 0.94);
}

.control-header .icon-button {
  flex: 0 0 auto;
  border-color: transparent;
  background: transparent;
}

.control-title {
  min-width: 0;
  flex: 1 1 auto;
  text-align: center;
}

.control-title strong {
  display: block;
  overflow: hidden;
  margin-bottom: 3px;
  font-size: 13px;
  font-weight: 640;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.control-title span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
}

.control-title i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--warning);
}

.control-title i.connected {
  background: var(--accent);
  box-shadow: 0 0 7px var(--accent);
}

.control-title i.reconnecting {
  animation: blink 1.1s infinite;
}

.control-title em {
  font-style: normal;
}

.screen-shell {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.012) 1px, transparent 1px),
    #020806;
  background-size: 32px 32px;
  touch-action: none;
}

#screenCanvas {
  display: block;
  width: 100%;
  height: 100%;
  outline: 0;
  touch-action: none;
}

.screen-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.screen-placeholder.hidden {
  opacity: 0;
}

.connecting-animation {
  display: flex;
  gap: 6px;
}

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

.connecting-animation i:nth-child(2) { animation-delay: 120ms; }
.connecting-animation i:nth-child(3) { animation-delay: 240ms; }

.stream-stats {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 5px 8px;
  color: rgba(240, 255, 248, 0.55);
  background: rgba(2, 8, 6, 0.6);
  font-size: 9px;
  pointer-events: none;
}

.remote-keyboard {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 2px;
  height: 2px;
  opacity: 0;
  pointer-events: none;
}

.control-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 3px;
  min-height: calc(67px + var(--safe-bottom));
  padding: 7px 8px calc(7px + var(--safe-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 14, 11, 0.98);
}

.tool-button {
  display: flex;
  min-width: 46px;
  min-height: 50px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  border-radius: 11px;
  color: #8fa39c;
  background: transparent;
  font-size: 9px;
}

.tool-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-button.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.modifier-key span {
  display: grid;
  width: 33px;
  height: 25px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  place-items: center;
  font-size: 9px;
}

.modifier-key.active span {
  border-color: rgba(92, 242, 182, 0.45);
  background: rgba(92, 242, 182, 0.1);
}

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: calc(28px + var(--safe-bottom));
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  color: var(--text);
  background: rgba(19, 39, 33, 0.96);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.32);
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.modal-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-top: 60px;
  background: rgba(0, 5, 3, 0.72);
  backdrop-filter: blur(5px);
}

.modal {
  width: min(100%, 560px);
  max-height: calc(100dvh - 60px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  padding: 8px 22px calc(26px + var(--safe-bottom));
  background: #101e1a;
  box-shadow: 0 -20px 70px rgba(0, 0, 0, 0.3);
  animation: sheet-up 220ms ease both;
}

.modal-grabber {
  width: 34px;
  height: 4px;
  margin: 0 auto 16px;
  border-radius: 99px;
  background: rgba(255,255,255,0.16);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
}

.modal-close {
  border: 0;
  background: transparent;
  font-size: 25px;
}

.modal-copy {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.modal-form {
  gap: 8px;
}

.modal-form .plain-input {
  margin-bottom: 12px;
}

.pair-code-input {
  height: 62px;
  letter-spacing: 0.35em;
  text-align: center;
  font-size: 24px;
  font-weight: 680;
}

.menu-list {
  display: grid;
  gap: 7px;
}

.menu-list button {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  text-align: left;
  background: rgba(255,255,255,0.025);
}

.menu-list button.danger {
  color: var(--danger);
}

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

.special-grid button {
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(255,255,255,0.03);
  font-size: 12px;
}

.quality-options {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.quality-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 15px;
  background: rgba(255,255,255,0.025);
  text-align: left;
}

.quality-option strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.quality-option span {
  color: var(--muted);
  font-size: 10px;
}

.quality-option.active {
  border-color: rgba(92, 242, 182, 0.4);
  background: var(--accent-soft);
}

.quality-option i {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.quality-option.active i {
  border: 5px solid var(--accent);
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheet-up {
  from { transform: translateY(28px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-7px); opacity: 1; }
}

@keyframes blink {
  50% { opacity: 0.35; }
}

@media (min-width: 680px) {
  .landing-view {
    padding-top: 130px;
  }

  .control-toolbar {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 16px;
    width: 470px;
    min-height: 62px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 17px;
    padding: 6px;
    transform: translateX(-50%);
    background: rgba(5, 14, 11, 0.9);
    backdrop-filter: blur(18px);
  }

  .control-view .screen-shell {
    padding-bottom: 0;
  }
}

@media (max-height: 720px) {
  .hero-orbit {
    height: 170px;
    margin-bottom: 15px;
    transform: scale(0.82);
  }

  .landing-view {
    padding-top: calc(78px + var(--safe-top));
  }

  .intro h1 {
    font-size: 30px;
  }

  .lede {
    margin-bottom: 17px;
  }
}

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