:root {
  color-scheme: light;
  --bg1: #fdf6ec;
  --bg2: #eefaf9;
  --card: #fffdf7;
  --ink: #14242b;
  --muted: #5a6d75;
  --accent: #1f6f78;
  --accent-strong: #164d54;
  --warm: #f8bd5a;
  --pink: #ff8bb7;
  --border: rgba(31, 111, 120, 0.2);
  --shadow: 0 24px 52px rgba(20, 36, 43, 0.12);
  --radius-lg: 26px;
  --radius-md: 16px;
  --font-body: 'Avenir Next', 'Nunito', 'Trebuchet MS', sans-serif;
  --font-display: 'Trebuchet MS', 'Avenir Next', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 10%, rgba(248, 189, 90, 0.28), transparent 35%),
    radial-gradient(circle at 88% 0%, rgba(31, 111, 120, 0.18), transparent 38%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

.hidden {
  display: none !important;
}

.orbii-page {
  width: min(1060px, 92vw);
  margin: 0 auto;
  padding: 28px 0 54px;
  display: grid;
  gap: 18px;
}

.orbii-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(136deg, #fff3de 0%, #f9f4ea 52%, #f0fcfa 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 26px;
  box-shadow: var(--shadow);
}

.orbii-hero::after {
  content: '';
  position: absolute;
  right: -80px;
  top: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 111, 120, 0.22), transparent 68%);
  pointer-events: none;
}

.orbii-back {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--accent-strong);
  font-weight: 800;
  margin-bottom: 8px;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  color: var(--accent-strong);
  font-weight: 800;
}

.orbii-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-family: var(--font-display);
  line-height: 1.1;
}

.hero-copy {
  margin: 0;
  max-width: 62ch;
  color: var(--muted);
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.orbii-gate h2,
.stats-card h2,
.controls-card h2,
.story-card h2 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.orbii-gate p {
  margin: 0;
  color: var(--muted);
}

.gate-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn,
button {
  border: none;
  border-radius: 999px;
  padding: 10px 14px;
  font-family: inherit;
  font-weight: 800;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn.secondary {
  background: rgba(31, 111, 120, 0.12);
  color: var(--accent-strong);
  border: 1px solid rgba(31, 111, 120, 0.25);
}

button:hover:not(:disabled),
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(20, 36, 43, 0.16);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.orbii-experience {
  display: grid;
  gap: 16px;
}

.stage-card {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  min-height: 280px;
  text-align: center;
}

.stage-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
}

.stage-sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.9), transparent 24%),
    radial-gradient(circle at 80% 14%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(180deg, rgba(177, 237, 248, 0.45), rgba(255, 248, 227, 0.56));
}

.nameplate {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 18px;
  margin: 0;
  border-radius: 999px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(31, 111, 120, 0.25);
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--accent-strong);
  backdrop-filter: blur(2px);
}

.orbii-creature {
  position: relative;
  z-index: 2;
  width: 168px;
  height: 138px;
  border-radius: 56% 56% 52% 52%;
  border: 1px solid rgba(31, 111, 120, 0.3);
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.92), rgba(205, 244, 248, 0.95) 58%, rgba(121, 206, 221, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 55%);
  box-shadow: 0 24px 36px rgba(20, 36, 43, 0.18);
  animation: floaty 3.6s ease-in-out infinite;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}

.orbii-creature::before,
.orbii-creature::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.orbii-creature.skin-mint {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.92), rgba(205, 244, 248, 0.95) 58%, rgba(121, 206, 221, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 55%);
}

.orbii-creature.skin-sunset {
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.95), rgba(255, 226, 196, 0.98) 58%, rgba(251, 164, 142, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 55%);
}

.orbii-creature.skin-nebula {
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 255, 255, 0.92), rgba(224, 214, 255, 0.95) 58%, rgba(132, 114, 217, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45), transparent 55%);
}

.orbii-creature.skin-aurora {
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.94), rgba(196, 252, 236, 0.96) 58%, rgba(105, 214, 186, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), transparent 55%);
}

.orbii-creature.skin-midnight {
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.72), rgba(124, 140, 205, 0.92) 52%, rgba(45, 54, 98, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 58%);
}

.orbii-creature.aura-sparkle {
  box-shadow:
    0 24px 36px rgba(20, 36, 43, 0.18),
    0 0 0 8px rgba(255, 244, 198, 0.55);
}

.orbii-creature.aura-prism {
  box-shadow:
    0 24px 36px rgba(20, 36, 43, 0.18),
    0 0 0 8px rgba(190, 214, 255, 0.52);
}

.orbii-creature.aura-storm {
  box-shadow:
    0 24px 36px rgba(20, 36, 43, 0.18),
    0 0 0 9px rgba(196, 209, 240, 0.5);
}

.orbii-creature.aura-comet {
  box-shadow:
    0 24px 36px rgba(20, 36, 43, 0.18),
    0 0 0 10px rgba(255, 225, 173, 0.58);
}

.orbii-creature.accessory-ribbon::before {
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  width: 40px;
  height: 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff6f9f, #ff9ec0);
  border: 1px solid rgba(177, 37, 89, 0.38);
}

.orbii-creature.accessory-visor::before {
  left: 26px;
  right: 26px;
  top: 50px;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(26, 56, 73, 0.85), rgba(54, 111, 147, 0.75));
  border: 1px solid rgba(17, 37, 48, 0.5);
}

.orbii-creature.accessory-satchel::before {
  left: 26px;
  right: 26px;
  top: 70px;
  height: 8px;
  border-radius: 999px;
  background: rgba(116, 81, 47, 0.9);
  transform: rotate(-14deg);
}

.orbii-creature.accessory-crown::before {
  left: 50%;
  transform: translateX(-50%);
  top: -16px;
  width: 56px;
  height: 20px;
  clip-path: polygon(0 100%, 12% 50%, 25% 100%, 38% 40%, 50% 100%, 62% 40%, 75% 100%, 88% 50%, 100% 100%);
  background: linear-gradient(180deg, #ffe294, #f4b93f);
  border: 1px solid rgba(146, 101, 20, 0.48);
}

.orbii-creature .ear {
  position: absolute;
  top: -18px;
  width: 44px;
  height: 44px;
  border-radius: 60% 60% 40% 40%;
  background: linear-gradient(180deg, #d9f7fb, #8fdbe8);
  border: 1px solid rgba(31, 111, 120, 0.25);
}

.orbii-creature .ear.left {
  left: 28px;
  transform: rotate(-18deg);
}

.orbii-creature .ear.right {
  right: 28px;
  transform: rotate(18deg);
}

.orbii-creature .eye {
  position: absolute;
  top: 54px;
  width: 20px;
  height: 24px;
  border-radius: 50%;
  background: #122931;
}

.orbii-creature .eye.left {
  left: 52px;
}

.orbii-creature .eye.right {
  right: 52px;
}

.orbii-creature .eye::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.orbii-creature .blush {
  position: absolute;
  top: 74px;
  width: 16px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 139, 183, 0.8);
}

.orbii-creature .blush.left {
  left: 34px;
}

.orbii-creature .blush.right {
  right: 34px;
}

.orbii-creature .mouth {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 28px;
  width: 28px;
  height: 14px;
  border: 3px solid #163a45;
  border-top: 0;
  border-bottom-left-radius: 999px;
  border-bottom-right-radius: 999px;
}

.orbii-creature .sparkle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #fff8d7;
  transform: rotate(45deg);
  animation: twinkle 1.6s ease-in-out infinite;
}

.orbii-creature .sparkle.s1 {
  top: 22px;
  left: -14px;
}

.orbii-creature .sparkle.s2 {
  top: 36px;
  right: -16px;
  animation-delay: 0.4s;
}

.orbii-creature .sparkle.s3 {
  top: -6px;
  left: 74px;
  animation-delay: 0.8s;
}

.orbii-creature.unhatched {
  opacity: 0.1;
  transform: scale(0.84);
  pointer-events: none;
  cursor: default;
}

.orbii-creature.sleepy .eye {
  height: 5px;
  border-radius: 999px;
}

.orbii-creature.alert .eye {
  transform: scaleY(1.15);
}

.orbii-creature.joy {
  filter: saturate(1.12);
}

.orbii-egg {
  position: absolute;
  z-index: 3;
  width: 132px;
  height: 166px;
  bottom: 60px;
  border-radius: 60% 60% 54% 54%;
  background:
    radial-gradient(circle at 36% 22%, rgba(255, 255, 255, 0.95), rgba(236, 243, 252, 0.97) 62%, rgba(164, 191, 212, 0.96) 100%);
  border: 1px solid rgba(90, 111, 126, 0.4);
  box-shadow: 0 18px 28px rgba(20, 36, 43, 0.18);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.orbii-egg .egg-crack {
  position: absolute;
  inset: 32% 38%;
  border-top: 2px solid transparent;
  transform: rotate(-8deg);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.orbii-egg.wiggle {
  animation: wiggle 0.36s ease-in-out 3;
}

.orbii-egg.crack-one .egg-crack {
  border-color: rgba(70, 90, 104, 0.8);
}

.orbii-egg.crack-two .egg-crack {
  border-color: rgba(43, 58, 68, 0.95);
  transform: rotate(-8deg) scale(1.28);
}

.orbii-egg.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.mood-text {
  margin: 10px 0 4px;
  z-index: 4;
  font-size: 1rem;
  font-weight: 800;
}

.status-text,
.meta-text {
  margin: 0;
  z-index: 4;
  color: var(--muted);
}

.pet-tip {
  font-size: 0.83rem;
}

.pet-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 7;
  opacity: 0;
  background: radial-gradient(circle, #fff8de 0%, #ffd980 62%, #f3a63d 100%);
  box-shadow: 0 0 10px rgba(255, 212, 141, 0.65);
  animation: pet-pop 0.95s ease-out forwards;
}

.orbii-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.phase-text {
  margin: 0 0 10px;
  color: var(--accent-strong);
  font-weight: 800;
}

.meta-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge {
  border-radius: 999px;
  padding: 3px 11px;
  background: rgba(31, 111, 120, 0.12);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
}

.stats-list {
  display: grid;
  gap: 9px;
}

.stat-row {
  display: grid;
  grid-template-columns: 54px 1fr 34px;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
}

.stat-row span {
  color: #3b5159;
  font-weight: 800;
}

.stat-row strong {
  text-align: right;
}

.bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(31, 111, 120, 0.16);
}

.fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #21b5c7, #1f6f78);
  transition: width 0.25s ease;
}

.bar.noise .fill {
  background: linear-gradient(90deg, #f4a02d, #c3262f);
}

.controls-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.need-card {
  border: 1px solid rgba(31, 111, 120, 0.22);
  border-radius: 14px;
  background: rgba(248, 252, 255, 0.86);
  padding: 10px 12px;
  margin-bottom: 12px;
  display: grid;
  gap: 4px;
}

.need-card.hidden {
  display: none !important;
}

.need-card .need-eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-strong);
}

.need-card #orbiiNeedPrompt {
  margin: 0;
  color: #20383f;
  font-weight: 700;
}

.need-card.urgent {
  border-color: rgba(207, 75, 47, 0.45);
  background: linear-gradient(130deg, rgba(255, 248, 233, 0.95), rgba(255, 230, 221, 0.9));
}

.style-card p {
  margin: 0 0 12px;
  color: var(--muted);
}

.style-form {
  display: grid;
  gap: 8px;
}

.style-form label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #3c545d;
  font-weight: 800;
}

.style-form input,
.style-form select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(31, 111, 120, 0.25);
  padding: 9px 11px;
  font-family: inherit;
  font-size: 0.92rem;
  background: #fff;
}

.style-form button {
  margin-top: 4px;
}

.collection-card h2 {
  margin: 0 0 8px;
}

.collectibles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
}

.collectible-item {
  border: 1px solid rgba(31, 111, 120, 0.2);
  border-radius: 12px;
  padding: 9px 10px;
  background: #fff;
  display: grid;
  gap: 4px;
}

.collectible-item .tier {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  width: fit-content;
}

.collectible-item .tier.common {
  background: rgba(31, 111, 120, 0.12);
  color: #1f6f78;
}

.collectible-item .tier.rare {
  background: rgba(98, 102, 214, 0.15);
  color: #393ea1;
}

.collectible-item .tier.epic {
  background: rgba(243, 161, 53, 0.2);
  color: #8c5200;
}

.collectible-item h3 {
  margin: 0;
  font-size: 0.95rem;
}

.collectible-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.collectible-item .meta {
  font-size: 0.76rem;
  color: #647880;
}

.actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.actions button {
  background: #1f6f78;
  color: #fff;
}

.story-lead {
  margin: 0 0 12px;
  color: #2b4650;
  font-weight: 700;
}

.story-log {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.story-log li {
  border: 1px solid rgba(31, 111, 120, 0.18);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: #fff;
  font-size: 0.92rem;
}

.story-log .time {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 4px;
}

.stage-card.fx-stardust::after {
  opacity: 1;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.62), transparent 70%);
  animation: fx-fade 1.1s ease-out;
}

.stage-card.fx-signal::after {
  opacity: 1;
  background: linear-gradient(120deg, rgba(45, 185, 210, 0.28), rgba(100, 123, 228, 0.22));
  animation: fx-sweep 1s ease-out;
}

.stage-card.fx-noise::after {
  opacity: 1;
  background: linear-gradient(120deg, rgba(246, 168, 73, 0.2), rgba(205, 67, 67, 0.22));
  animation: fx-fade 1s ease-out;
}

.stage-card.fx-comet::after {
  opacity: 1;
  background: linear-gradient(110deg, rgba(255, 244, 179, 0.15), rgba(255, 188, 122, 0.34), rgba(255, 246, 217, 0.1));
  animation: fx-comet 1.1s ease-out;
}

.stage-card.fx-aurora::after {
  opacity: 1;
  background: linear-gradient(130deg, rgba(147, 241, 222, 0.24), rgba(178, 206, 255, 0.26), rgba(253, 226, 173, 0.24));
  animation: fx-aurora 1.4s ease-out;
}

.stage-card.fx-scan::after {
  opacity: 1;
  background:
    repeating-linear-gradient(
      180deg,
      rgba(38, 167, 190, 0.05) 0 8px,
      rgba(38, 167, 190, 0.22) 8px 10px
    );
  animation: fx-scan 0.9s linear;
}

.stage-card.fx-ripple::after {
  opacity: 1;
  background: radial-gradient(circle at 50% 62%, rgba(99, 198, 217, 0.3), transparent 68%);
  animation: fx-ripple 1.1s ease-out;
}

.stage-card.fx-glitter::after {
  opacity: 1;
  background:
    radial-gradient(circle at 20% 28%, rgba(255, 247, 198, 0.66), transparent 14%),
    radial-gradient(circle at 75% 36%, rgba(255, 241, 186, 0.56), transparent 16%),
    radial-gradient(circle at 44% 68%, rgba(246, 255, 236, 0.54), transparent 12%);
  animation: fx-glitter 1.3s ease-out;
}

.orbii-creature.animate-hop {
  animation: floaty 3.6s ease-in-out infinite, anim-hop 0.72s ease-in-out;
}

.orbii-creature.animate-spin {
  animation: floaty 3.6s ease-in-out infinite, anim-spin 0.85s ease-in-out;
}

.orbii-creature.animate-zoom {
  animation: floaty 3.6s ease-in-out infinite, anim-zoom 0.72s ease-in-out;
}

.orbii-creature.animate-glow {
  animation: floaty 3.6s ease-in-out infinite, anim-glow 1.2s ease-in-out;
}

.orbii-creature.animate-wobble {
  animation: floaty 3.6s ease-in-out infinite, anim-wobble 0.8s ease-in-out;
}

.orbii-creature.animate-blink .eye {
  animation: anim-blink 0.55s ease-in-out 2;
}

.orbii-creature.animate-sway {
  animation: floaty 3.6s ease-in-out infinite, anim-sway 1s ease-in-out;
}

.orbii-creature.animate-pop {
  animation: floaty 3.6s ease-in-out infinite, anim-pop 0.82s ease-in-out;
}

.orbii-creature.animate-drift {
  animation: floaty 3.6s ease-in-out infinite, anim-drift 1.2s ease-in-out;
}

.orbii-creature.animate-shimmer {
  animation: floaty 3.6s ease-in-out infinite, anim-shimmer 1.4s ease-in-out;
}

.orbii-creature.animate-wave {
  animation: floaty 3.6s ease-in-out infinite, anim-wave-body 0.9s ease-in-out;
}

.orbii-creature.animate-wave .ear.left {
  animation: anim-ear-wave-left 0.85s ease-in-out 2;
}

.orbii-creature.animate-wave .ear.right {
  animation: anim-ear-wave-right 0.85s ease-in-out 2;
}

.orbii-creature.animate-nod {
  animation: floaty 3.6s ease-in-out infinite, anim-nod 0.82s ease-in-out;
}

.orbii-creature.animate-stretch {
  animation: floaty 3.6s ease-in-out infinite, anim-stretch 0.92s ease-in-out;
}

.orbii-creature.animate-scoot {
  animation: floaty 3.6s ease-in-out infinite, anim-scoot 0.96s ease-in-out;
}

.orbii-creature.animate-twirl {
  animation: floaty 3.6s ease-in-out infinite, anim-twirl 1s ease-in-out;
}

.hatch-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 26, 33, 0.62);
  display: grid;
  place-items: center;
  z-index: 60;
}

.hatch-card {
  width: min(560px, 88vw);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  background: linear-gradient(138deg, #fff6e5, #eefdfb);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 30px 60px rgba(5, 12, 16, 0.28);
}

.hatch-card h2 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
}

.hatch-card p {
  margin: 0;
}

@keyframes floaty {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.2;
    transform: rotate(45deg) scale(0.8);
  }
  50% {
    opacity: 1;
    transform: rotate(45deg) scale(1.1);
  }
}

@keyframes wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

@keyframes anim-hop {
  0%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-14px) scale(1.04);
  }
}

@keyframes anim-spin {
  0% {
    transform: rotate(0deg);
  }
  65% {
    transform: rotate(12deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes anim-zoom {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes anim-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.12) saturate(1.12);
  }
}

@keyframes anim-wobble {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

@keyframes anim-blink {
  0%,
  100% {
    height: 24px;
  }
  50% {
    height: 3px;
    margin-top: 10px;
  }
}

@keyframes anim-sway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-3deg) translateY(-2px);
  }
  75% {
    transform: rotate(3deg) translateY(-2px);
  }
}

@keyframes anim-pop {
  0%,
  100% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.1);
  }
  65% {
    transform: scale(0.96);
  }
}

@keyframes anim-drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(12px, -5px);
  }
}

@keyframes anim-shimmer {
  0%,
  100% {
    filter: brightness(1) saturate(1);
  }
  50% {
    filter: brightness(1.2) saturate(1.22) hue-rotate(-8deg);
  }
}

@keyframes anim-wave-body {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-4px) rotate(2deg);
  }
}

@keyframes anim-ear-wave-left {
  0%,
  100% {
    transform: rotate(-18deg);
  }
  50% {
    transform: rotate(-33deg);
  }
}

@keyframes anim-ear-wave-right {
  0%,
  100% {
    transform: rotate(18deg);
  }
  50% {
    transform: rotate(33deg);
  }
}

@keyframes anim-nod {
  0%,
  100% {
    transform: translateY(0);
  }
  35% {
    transform: translateY(4px) scaleY(0.98);
  }
  70% {
    transform: translateY(-3px) scaleY(1.01);
  }
}

@keyframes anim-stretch {
  0%,
  100% {
    transform: scale(1, 1);
  }
  45% {
    transform: scale(1.06, 0.94);
  }
  75% {
    transform: scale(0.98, 1.02);
  }
}

@keyframes anim-scoot {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-12px);
  }
  70% {
    transform: translateX(10px);
  }
}

@keyframes anim-twirl {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  40% {
    transform: rotate(-8deg) scale(1.02);
  }
  70% {
    transform: rotate(10deg) scale(1.02);
  }
}

@keyframes fx-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fx-sweep {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fx-comet {
  from {
    opacity: 0;
    transform: translateX(-42px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes fx-aurora {
  from {
    opacity: 0;
    filter: saturate(0.9);
  }
  50% {
    opacity: 1;
    filter: saturate(1.2);
  }
  to {
    opacity: 0.85;
    filter: saturate(1);
  }
}

@keyframes fx-scan {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fx-ripple {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fx-glitter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  50% {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0.78;
    transform: translateY(-4px);
  }
}

@keyframes pet-pop {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.5);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--dx) * 0.28), -10px) scale(1.02);
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), -44px) scale(1.18);
  }
}

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

@media (max-width: 720px) {
  .orbii-page {
    width: min(100%, 96vw);
    padding-top: 18px;
  }

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

  .gate-actions {
    flex-direction: column;
  }

  .btn,
  button {
    width: 100%;
    text-align: center;
  }
}
