:root {
  --ice: #f4f9ff;
  --snow: #ffffff;
  --mist: #e7f3ff;
  --sky: #b9dcff;
  --blue: #3a9dff;
  --blue-2: #5eb6ff;
  --deep: #1d6fd6;
  --navy: #163a72;
  --ink: #12305a;
  --mute: #5a7aa8;
  --cyan: #7ee7ff;
  --pink: #ffc4d8;
  --ok: #19c37d;
  --glass: rgba(255, 255, 255, 0.72);
  --line: rgba(58, 157, 255, 0.28);
  --shadow: 0 18px 50px rgba(22, 58, 114, 0.12);
  --radius: 22px;
  --font: "Outfit", sans-serif;
  --display: "Fredoka", sans-serif;
  --mono: "Share Tech Mono", ui-monospace, monospace;
}

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

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

html,
body {
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, #d8eeff 0%, transparent 55%),
    radial-gradient(900px 500px at -10% 110%, #cfe4ff 0%, transparent 50%),
    linear-gradient(180deg, #f7fbff 0%, #eaf4ff 48%, #dceeff 100%);
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(58, 157, 255, 0.18);
}

button,
input {
  font: inherit;
}

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

#network {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(126, 231, 255, 0.28), transparent 32%),
    radial-gradient(circle at 70% 70%, rgba(58, 157, 255, 0.18), transparent 36%);
  animation: aurora 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 3px,
    rgba(255, 255, 255, 0.035) 3px 4px
  );
  mix-blend-mode: soft-light;
}

.os {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 18px 18px calc(96px + env(safe-area-inset-bottom, 0px));
}

.os.is-hidden {
  opacity: 0;
  pointer-events: none;
}

/* ---------- boot ---------- */
.boot {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(94, 182, 255, 0.25), transparent 40%),
    #0d1b33;
  color: #e8f4ff;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
}

.boot-panel {
  width: min(440px, 92vw);
  text-align: center;
}

.boot-mark {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 22px;
}

.boot-face {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(58, 157, 255, 0.35), 0 0 40px rgba(126, 231, 255, 0.45);
  animation: float 2.4s ease-in-out infinite;
}

.boot-ring {
  position: absolute;
  inset: -14px;
  border: 2px dashed rgba(126, 231, 255, 0.7);
  border-radius: 50%;
  animation: spin 8s linear infinite;
}

.boot-kicker {
  font-family: var(--mono);
  letter-spacing: 0.28em;
  font-size: 11px;
  color: var(--cyan);
}

.boot-title {
  font-family: var(--display);
  font-size: 42px;
  letter-spacing: 0.08em;
  margin: 8px 0 4px;
}

.boot-title span {
  color: var(--blue-2);
  margin-left: 6px;
}

.boot-sub {
  color: #9ec4ea;
  font-size: 14px;
  margin-bottom: 18px;
}

.boot-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border: 1px solid rgba(126, 231, 255, 0.25);
}

.boot-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #3a9dff, #7ee7ff);
  box-shadow: 0 0 16px #7ee7ff;
  animation: load 2.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.boot-log {
  margin-top: 16px;
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: #8fd2ff;
  min-height: 7.5em;
  white-space: pre-wrap;
}

/* ---------- topbar / ticker ---------- */
.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

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

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(29, 111, 214, 0.35);
  border: 2px solid #fff;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.12em;
  line-height: 1;
}

.brand small {
  color: var(--mute);
  font-size: 11px;
}

.ticker {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  height: 28px;
}

.ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 28s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--navy);
  line-height: 28px;
  white-space: nowrap;
}

.ticker-track span {
  padding: 0 22px;
}

.ticker-track b {
  color: var(--deep);
}

.top-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #fff;
  background: linear-gradient(90deg, #3a9dff, #1d6fd6);
  padding: 6px 10px;
  border-radius: 999px;
  min-height: 36px;
  touch-action: manipulation;
}

.live-pill i {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}

.clock {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--navy);
}

/* ---------- hero / animated header ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin-top: 28px;
  padding: 8px 12px 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--deep);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  background: var(--ok);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(25, 195, 125, 0.18);
}

.hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.ticker-chip {
  display: inline-block;
  background: linear-gradient(180deg, #fff, #e7f3ff);
  border: 2px solid #3a9dff;
  color: var(--deep);
  padding: 2px 14px 6px;
  border-radius: 16px;
  margin-right: 8px;
  box-shadow: 0 8px 0 #1d6fd6;
}

.lead {
  margin-top: 16px;
  max-width: 46ch;
  color: var(--mute);
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 600;
  min-height: 44px;
  touch-action: manipulation;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #5eb6ff, #1d6fd6);
  box-shadow: 0 8px 20px rgba(29, 111, 214, 0.28);
}

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}

.stat-row {
  display: flex;
  gap: 22px;
  list-style: none;
  margin-top: 26px;
}

.stat-row li {
  display: grid;
}

.stat-row b {
  font-family: var(--display);
  font-size: 26px;
  color: var(--navy);
}

.stat-row span {
  font-size: 12px;
  color: var(--mute);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nyanya-stage {
  position: relative;
  min-height: min(520px, 78vw);
  display: grid;
  place-items: center;
  padding: 28px 8px 48px;
}

.stage-glow {
  position: absolute;
  width: 88%;
  height: 78%;
  border-radius: 40%;
  background: radial-gradient(circle, rgba(126, 231, 255, 0.5), rgba(58, 157, 255, 0.08) 62%, transparent 70%);
  filter: blur(10px);
  animation: pulse 2.8s ease-in-out infinite;
}

.orbit {
  position: absolute;
  width: 92%;
  height: 92%;
  animation: spin 11s linear infinite;
  pointer-events: none;
}

.o2 {
  width: 100%;
  height: 100%;
  animation-duration: 17s;
  animation-direction: reverse;
}

.o3 {
  width: 80%;
  height: 80%;
  animation-duration: 9s;
}

.paw,
.bell {
  position: absolute;
  top: 0;
  left: 50%;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 50% 50% 50% 12px;
  box-shadow: 0 6px 12px rgba(29, 111, 214, 0.2);
}

.paw::before,
.paw::after {
  content: "";
  position: absolute;
  background: var(--blue-2);
  border-radius: 50%;
}

.paw::before {
  width: 6px;
  height: 6px;
  top: 4px;
  left: 4px;
  box-shadow: 8px 0 0 var(--blue-2), 4px 7px 0 var(--blue-2);
}

.bell {
  border-radius: 50% 50% 46% 46%;
  background: linear-gradient(180deg, #fff, #d7eeff);
}

.bell::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  background: #1d6fd6;
  border-radius: 50%;
}

.cam {
  position: relative;
  z-index: 2;
  width: min(520px, 94%);
  border-radius: 24px;
  overflow: hidden;
  background: #0c1a30;
  border: 3px solid #fff;
  box-shadow:
    0 0 0 5px rgba(58, 157, 255, 0.35),
    0 22px 40px rgba(29, 111, 214, 0.28);
  animation: float 3.2s ease-in-out infinite;
}

.cam.is-dance {
  animation: dance 0.55s ease-in-out infinite;
}

.cam.is-nya .cam-screen video {
  animation: nya 0.45s ease;
}

.cam-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background:
    repeating-linear-gradient(
      90deg,
      #3a9dff 0 10px,
      #fff 10px 14px,
      #1d6fd6 14px 24px,
      #fff 24px 28px
    );
  color: #fff;
}

.cam-bar strong {
  flex: 1;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.cam-audio {
  border: 0;
  border-radius: 999px;
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
}

.cam-screen {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: #081018;
  cursor: pointer;
}

.cam-screen video {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.cam-live {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(12, 26, 48, 0.72);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  padding: 4px 8px;
  border-radius: 999px;
}

.cam-live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff5b7a;
  box-shadow: 0 0 8px #ff5b7a;
  animation: blink 1s ease-in-out infinite;
}

.speech {
  position: absolute;
  top: 4%;
  right: 0;
  z-index: 3;
  max-width: 220px;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 18px 18px 18px 6px;
  padding: 10px 12px;
  font-family: var(--display);
  font-size: 15px;
  color: var(--navy);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transition: 0.28s ease;
}

.speech.is-on {
  opacity: 1;
  transform: none;
}

.nameplate {
  position: absolute;
  bottom: 6%;
  z-index: 3;
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.nameplate span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--mute);
}

.nameplate strong {
  font-family: var(--display);
  letter-spacing: 0.12em;
}

.nameplate em {
  font-style: normal;
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
}

/* ---------- windows ---------- */
.desk {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 16px;
  margin-top: 8px;
}

.win {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
  min-height: 0;
}

.win.is-min .win-body {
  display: none;
}

.win-wide {
  grid-column: 1 / -1;
}

.win-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background:
    repeating-linear-gradient(
      90deg,
      #3a9dff 0 10px,
      #fff 10px 14px,
      #1d6fd6 14px 24px,
      #fff 24px 28px
    );
  color: #fff;
}

.win-bar h2 {
  flex: 1;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.win-dots {
  display: flex;
  gap: 5px;
}

.win-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.85;
}

.win-min {
  width: 28px;
  height: 22px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--navy);
  cursor: pointer;
}

.win-body {
  padding: 16px;
}

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

.label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mute);
}

.value {
  font-weight: 600;
  margin-top: 2px;
}

.pulse-text {
  color: var(--deep);
  animation: blink 1.6s ease-in-out infinite;
}

.meters {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}

.meters label {
  display: grid;
  grid-template-columns: 88px 1fr 36px;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mute);
}

.meters input {
  width: 100%;
  accent-color: var(--blue);
}

.token-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.token-sym {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
}

.token-name {
  color: var(--mute);
  font-size: 13px;
}

.token-px strong {
  display: block;
  font-family: var(--mono);
  font-size: 28px;
}

.token-px small {
  color: var(--ok);
  font-weight: 700;
}

#spark {
  width: 100%;
  height: 110px;
  margin: 8px 0;
}

.token-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mute);
}

.token-meta b {
  color: var(--navy);
}

.ok {
  color: var(--ok) !important;
}

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

.deck button {
  aspect-ratio: 1.15;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  font-family: var(--display);
  letter-spacing: 0.08em;
  color: var(--navy);
  background:
    radial-gradient(circle at 30% 20%, #fff, #d7eeff);
  border: 1px solid var(--line);
  box-shadow: 0 8px 0 rgba(29, 111, 214, 0.12);
  transition: transform 0.12s ease;
}

.deck button:hover {
  transform: translateY(-3px);
}

.deck button:active {
  transform: translateY(2px);
  box-shadow: none;
}

.hint {
  margin-top: 12px;
  font-size: 12px;
  color: var(--mute);
}

.console {
  background: #10243f;
  color: #b8e7ff;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  min-height: 160px;
  max-height: 220px;
  overflow: auto;
  border-radius: 14px;
  padding: 12px 14px;
}

.console .cmd {
  color: #7ee7ff;
}

.console .nya {
  color: #ffd3e2;
}

.prompt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

.prompt span {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--deep);
}

.prompt input {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  outline: none;
  font-size: 16px;
}

.prompt button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 600;
}

/* ---------- taskbar ---------- */
.taskbar {
  position: fixed;
  left: max(10px, env(safe-area-inset-left, 0px));
  right: max(10px, env(safe-area-inset-right, 0px));
  bottom: max(8px, env(safe-area-inset-bottom, 0px));
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.start {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: linear-gradient(180deg, #5eb6ff, #1d6fd6);
  color: #fff;
  padding: 6px 12px 6px 6px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 600;
}

.start img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #fff;
}

.docks {
  display: flex;
  gap: 8px;
  flex: 1;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.x-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #0f1419;
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
  touch-action: manipulation;
  box-shadow: 0 8px 18px rgba(15, 20, 25, 0.2);
}

.x-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

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

.x-compact {
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  gap: 6px;
}

.x-menu {
  width: 100%;
  justify-content: flex-start;
  box-sizing: border-box;
}

.play-pill {
  cursor: pointer;
  border: 0;
}

.play-pill.is-on {
  background: linear-gradient(90deg, #19c37d, #1d6fd6);
}
.music-body {
  display: grid;
  gap: 12px;
}

.music-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}

.play-big {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  font-size: 22px;
  background: linear-gradient(180deg, #5eb6ff, #1d6fd6);
  box-shadow: 0 8px 18px rgba(29, 111, 214, 0.3);
}

.music-title {
  font-family: var(--display);
  font-size: 22px;
}

.music-sub,
.music-time {
  color: var(--mute);
  font-size: 13px;
}

.music-time {
  font-family: var(--mono);
}

.seek {
  width: 100%;
  accent-color: var(--blue);
}

#viz {
  width: 100%;
  height: 72px;
  border-radius: 12px;
  background: #10243f;
}

.lyrics {
  list-style: none;
  display: grid;
  gap: 4px;
  max-height: 180px;
  overflow: auto;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(231, 243, 255, 0.7);
}

.lyrics li {
  color: var(--mute);
  font-size: 14px;
  transition: 0.2s ease;
}

.lyrics li.is-on {
  color: var(--navy);
  font-family: var(--display);
  font-size: 16px;
}

/* ---------- panels ---------- */
.panel {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 22px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.panel-kicker {
  font-family: var(--mono);
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--deep);
}

.panel h2 {
  font-family: var(--display);
  font-size: 32px;
  margin: 4px 0 8px;
}

.panel-lead {
  color: var(--mute);
  max-width: 62ch;
  margin-bottom: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 180px;
  gap: 10px;
}

.g-item {
  position: relative;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  background: #10243f;
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.g-item:hover img {
  transform: scale(1.06);
}

.g-item span {
  position: absolute;
  left: 8px;
  bottom: 8px;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.g-hero {
  grid-row: span 2;
  grid-column: span 1;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(12, 26, 48, 0.82);
  display: grid;
  place-items: center;
  padding: 24px;
}

.lightbox.hidden {
  display: none;
}

.lightbox img {
  max-width: min(920px, 92vw);
  max-height: 86vh;
  border-radius: 18px;
  border: 4px solid #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.lb-close {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  font-size: 26px;
  cursor: pointer;
}

.nya-bubble {
  display: inline-block;
  margin: 8px 0 18px;
  padding: 12px 16px;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 20px 20px 20px 6px;
  font-family: var(--display);
  font-size: 18px;
  color: var(--navy);
  box-shadow: var(--shadow);
}

.nya-bubble.inner {
  margin: 14px 0 0;
  font-size: 16px;
}

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

.lore-grid article {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.lore-grid h3 {
  margin-bottom: 8px;
  font-size: 16px;
}

.lore-grid p {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.55;
}

.nya-quotes {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 14px;
}

.nya-quotes li {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(231, 243, 255, 0.85);
  font-size: 14px;
  color: var(--navy);
}

.supply-hero {
  text-align: center;
  padding: 28px 16px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(126, 231, 255, 0.45), transparent 55%),
    #fff;
  border: 1px solid var(--line);
}

.supply-kicker {
  font-family: var(--mono);
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--deep);
}

.supply-num {
  font-family: var(--display);
  font-size: clamp(36px, 8vw, 64px);
  letter-spacing: 0.04em;
  color: var(--navy);
  line-height: 1.1;
}

.supply-sub {
  color: var(--mute);
  margin-top: 4px;
}

.donut-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}

.donut {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    #1d6fd6 0 40%,
    #3a9dff 40% 65%,
    #7ee7ff 65% 80%,
    #9ad0ff 80% 90%,
    #ffc4d8 90% 100%
  );
}

.donut-hole {
  position: absolute;
  inset: 52px;
  border-radius: 50%;
  background: #f7fbff;
  display: grid;
  place-content: center;
  text-align: center;
}

.donut-hole b {
  font-family: var(--display);
  font-size: 36px;
  line-height: 1;
}

.donut-hole span {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
}

.tok-list {
  list-style: none;
  display: grid;
  gap: 10px;
}

.tok-list li {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
}

.tok-list i {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
}

.c1 { background: #1d6fd6; }
.c2 { background: #3a9dff; }
.c3 { background: #7ee7ff; }
.c4 { background: #9ad0ff; }
.c5 { background: #ffc4d8; }

.tok-list span {
  display: block;
  color: var(--mute);
  font-size: 13px;
}

.tok-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.tok-facts article {
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.buy-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.buy-steps li {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.step-n {
  font-family: var(--display);
  font-size: 22px;
  color: var(--blue);
}

.buy-steps h3 {
  margin: 6px 0 8px;
  font-size: 16px;
}

.buy-steps p {
  color: var(--mute);
  font-size: 14px;
  line-height: 1.5;
}

.ca-box {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: #10243f;
  color: #d7eeff;
}

.ca-box .label {
  color: #8fd2ff;
}

.ca-box code {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  word-break: break-all;
  margin-top: 4px;
}

.ca-soon {
  font-size: 28px !important;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: #7ee7ff;
}

.soon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #3a9dff, #1d6fd6);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.disclaimer {
  margin-top: 10px;
  font-size: 12px;
  color: var(--mute);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr auto;
    border-radius: 22px;
    gap: 10px;
    padding: 8px 10px;
  }
  .ticker {
    grid-column: 1 / -1;
    order: 3;
  }
  .hero,
  .desk {
    grid-template-columns: 1fr;
  }
  .nyanya-stage {
    min-height: 0;
    height: auto;
    order: -1;
    padding: 8px 0 40px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 140px;
  }
  .tok-facts,
  .buy-steps,
  .lore-grid,
  .nya-quotes {
    grid-template-columns: 1fr;
  }
  .ca-box {
    flex-direction: column;
    align-items: stretch;
  }
  .hero {
    margin-top: 16px;
    padding: 0;
    gap: 8px;
  }
  .panel {
    padding: 16px;
    margin-top: 14px;
  }
}

@media (max-width: 720px) {
  .os {
    padding: 10px 10px calc(88px + env(safe-area-inset-bottom, 0px));
  }
  .clock,
  .hide-mobile,
  .orbit,
  .stage-glow,
  .brand small {
    display: none;
  }
  .x-compact .x-label {
    display: none;
  }
  .x-compact {
    padding: 0;
    width: 44px;
  }
  .start {
    padding: 4px;
  }
  .start span {
    display: none;
  }
  .taskbar {
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
  }
  .hero-copy h1 {
    font-size: clamp(32px, 11vw, 44px);
  }
  .lead {
    font-size: 15px;
  }
  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.06em;
  }
  .ticker-chip {
    box-shadow: 0 5px 0 #1d6fd6;
    padding: 2px 10px 4px;
  }
  .hero-actions {
    gap: 8px;
  }
  .hero-actions .btn,
  .hero-actions .x-btn {
    flex: 1 1 calc(50% - 8px);
  }
  .stat-row {
    gap: 14px;
  }
  .stat-row b {
    font-size: 20px;
  }
  .cam-bar strong {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .speech {
    max-width: min(200px, 72%);
    right: 2%;
    top: 2%;
    font-size: 13px;
    padding: 8px 10px;
  }
  .nameplate {
    bottom: 2%;
    padding: 6px 10px;
    font-size: 12px;
  }
  .panel h2 {
    font-size: 26px;
  }
  .core-grid,
  .music-head {
    grid-template-columns: 1fr;
  }
  .music-time {
    justify-self: start;
  }
  .prompt {
    grid-template-columns: 1fr auto;
  }
  .prompt span {
    display: none;
  }
  .gallery {
    grid-auto-rows: 112px;
    gap: 8px;
  }
  .supply-num {
    font-size: clamp(28px, 10vw, 48px);
  }
  .boot-title {
    font-size: 32px;
  }
  .win-bar h2 {
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .top-meta {
    gap: 6px;
  }
  .play-pill {
    letter-spacing: 0.06em;
    padding: 6px 8px;
  }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 100px;
  }
}

.docks button {
  border: 0;
  background: #eef6ff;
  color: var(--navy);
  padding: 10px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
  min-height: 40px;
  touch-action: manipulation;
}

.docks button.is-on {
  background: #d7eeff;
  box-shadow: inset 0 -3px 0 var(--blue);
}

.tray {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.led {
  color: var(--ok);
}

.led::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px var(--ok);
  animation: blink 1.4s ease-in-out infinite;
}

.menu {
  position: fixed;
  left: max(16px, env(safe-area-inset-left, 0px));
  bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  z-index: 7;
  width: min(240px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.menu.hidden {
  display: none;
}

.menu p {
  font-family: var(--display);
  padding: 4px 6px 8px;
}

.menu button {
  text-align: left;
  border: 0;
  background: #eef6ff;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.paw-trail {
  position: fixed;
  z-index: 9;
  pointer-events: none;
  font-size: 14px;
  animation: fade-up 0.9s ease forwards;
}

/* ---------- motion ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes dance {
  0%, 100% { transform: translateY(0) rotate(-6deg) scale(1.04); }
  50% { transform: translateY(-18px) rotate(6deg) scale(1.08); }
}

@keyframes nya {
  0% { transform: scale(1); }
  40% { transform: scale(1.06) rotate(-3deg); }
  100% { transform: scale(1); }
}

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

@keyframes pulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes load {
  to { width: 100%; }
}

@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.05); }
}

@keyframes fade-up {
  from { opacity: 0.9; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-28px) scale(0.6); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
