/* virtual:styles.css */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --bg:#060611;
  --card:#111128;
  --border:rgba(167,139,250,0.18);
  --accent:#a78bfa;
  --accent2:#818cf8;
  --text:#e2e8f0;
  --muted:#94a3b8;
  --radius:20px;
  --radius-sm:12px;
}
html,
body,
#root {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  color: var(--text);
}
.app-root {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.galaxy-view {
  width: 100%;
  height: 100%;
  position: relative;
}
.galaxy-view canvas {
  display: block;
}
.galaxy-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 48px 24px 56px;
  z-index: 10;
}
.galaxy-header {
  text-align: center;
  pointer-events: none;
}
.galaxy-title {
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  font-weight: 200;
  letter-spacing: .25em;
  color: #fff;
  text-shadow: 0 0 30px rgba(167, 139, 250, .8), 0 0 60px rgba(129, 140, 248, .4);
  display: flex;
  align-items: center;
  gap: 16px;
}
.title-star {
  font-size: .6em;
  color: var(--accent);
  filter: drop-shadow(0 0 8px var(--accent));
}
.galaxy-subtitle {
  margin-top: 10px;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .05em;
}
.landing-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
}
.explore-cosmos-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 30px;
  background: transparent;
  border: 1.5px solid rgba(167, 139, 250, .28);
  border-radius: 100px;
  color: rgba(255, 255, 255, .6);
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .3s;
  backdrop-filter: blur(8px);
}
.explore-cosmos-btn:hover {
  background: rgba(167, 139, 250, .1);
  border-color: rgba(167, 139, 250, .55);
  color: #fff;
  transform: translateY(-2px);
}
.explore-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(6, 6, 17, .72);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(167, 139, 250, .15);
  border-radius: 100px;
  padding: 8px 14px 8px 10px;
  pointer-events: auto;
}
.explore-back-btn {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 100px;
  color: rgba(255, 255, 255, .7);
  padding: 6px 14px;
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
}
.explore-back-btn:hover {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.explore-label {
  color: rgba(167, 139, 250, .8);
  font-size: .82rem;
  letter-spacing: .04em;
  flex: 1;
  text-align: center;
}
.create-star-btn-sm {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: rgba(167, 139, 250, .14);
  border: 1px solid rgba(167, 139, 250, .4);
  border-radius: 100px;
  color: #fff;
  font-size: .82rem;
  cursor: pointer;
  transition: all .2s;
}
.create-star-btn-sm:hover {
  background: rgba(167, 139, 250, .26);
}
.explore-hint {
  margin-bottom: 0;
}
.db-status-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(13, 13, 31, .85);
  border: 1px solid rgba(167, 139, 250, .2);
  border-radius: 100px;
  padding: 7px 18px;
  color: rgba(148, 163, 184, .8);
  font-size: .78rem;
  letter-spacing: .04em;
  pointer-events: none;
  z-index: 20;
  backdrop-filter: blur(10px);
}
.db-status-error {
  border-color: rgba(239, 68, 68, .35);
  color: #f87171;
}
.db-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid rgba(167, 139, 250, .25);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
}
.create-star-btn {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: rgba(167, 139, 250, .12);
  border: 1.5px solid rgba(167, 139, 250, .5);
  border-radius: 100px;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .3s;
  backdrop-filter: blur(12px);
  text-shadow: 0 0 12px rgba(167, 139, 250, .6);
}
.create-star-btn:hover {
  background: rgba(167, 139, 250, .25);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(167, 139, 250, .3);
}
.btn-icon {
  font-size: 1.1em;
  filter: drop-shadow(0 0 6px var(--accent));
}
.hover-hint {
  color: rgba(148, 163, 184, .6);
  font-size: .8rem;
  letter-spacing: .05em;
  pointer-events: none;
}
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 6, 17, .75);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.modal-card {
  background:
    linear-gradient(
      160deg,
      #131326 0%,
      #0e0e20 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  width: min(520px, 94vw);
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 0 80px rgba(109, 40, 217, .2), 0 32px 64px rgba(0, 0, 0, .6);
  display: flex;
  flex-direction: column;
  gap: 20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.define-card {
  gap: 16px;
}
.modal-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.close-btn {
  position: absolute;
  top: 0;
  right: 0;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  color: var(--muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .85rem;
  transition: all .2s;
}
.close-btn:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.close-btn.light {
  color: rgba(255, 255, 255, .6);
}
.modal-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .02em;
}
.modal-subtitle {
  font-size: .85rem;
  color: var(--muted);
}
.canvas-wrapper {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #080816;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 40px rgba(109, 40, 217, .08);
}
.drawing-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 29px,
      rgba(167, 139, 250, .04) 30px),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 29px,
      rgba(167, 139, 250, .04) 30px);
}
.clear-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  color: var(--muted);
  padding: 4px 12px;
  font-size: .78rem;
  cursor: pointer;
  transition: all .2s;
}
.clear-btn:hover {
  background: rgba(239, 68, 68, .15);
  border-color: rgba(239, 68, 68, .4);
  color: #f87171;
}
.controls-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.control-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.size-val {
  color: var(--accent);
  font-weight: 400;
  margin-left: 6px;
}
.palette-wrap {
  flex: 1;
}
.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
  padding: 0;
}
.swatch:hover {
  transform: scale(1.2);
}
.swatch.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .3), 0 0 10px rgba(255, 255, 255, .4);
  transform: scale(1.15);
}
.slider-wrap {
  min-width: 140px;
}
.brush-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 4px;
  background:
    linear-gradient(
      to right,
      var(--accent),
      var(--accent2));
  outline: none;
  cursor: pointer;
}
.brush-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px rgba(167, 139, 250, .8);
  cursor: pointer;
}
.step-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  transition: all .3s;
}
.dot.active {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  width: 24px;
  border-radius: 4px;
}
.dot.light {
  background: rgba(255, 255, 255, .2);
}
.dot.light.active {
  background: #fff;
  box-shadow: 0 0 8px rgba(255, 255, 255, .6);
}
.continue-btn {
  width: 100%;
  padding: 14px;
  background:
    linear-gradient(
      135deg,
      #7c3aed,
      #4f46e5);
  border: none;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .3s;
  box-shadow: 0 4px 20px rgba(124, 58, 237, .4);
}
.continue-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, .6);
}
.continue-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.preview-frame {
  position: relative;
  width: 160px;
  height: 140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawing-preview {
  width: 140px;
  height: 120px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #080816;
  z-index: 1;
  position: relative;
}
.no-drawing {
  font-size: 4rem;
  opacity: .6;
  z-index: 1;
  position: relative;
}
.glow-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  pointer-events: none;
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% {
    opacity: .6;
  }
  50% {
    opacity: 1;
  }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
}
.form-input {
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: .9rem;
  padding: 12px 14px;
  outline: none;
  transition: all .2s;
  font-family: inherit;
  resize: none;
}
.form-input::placeholder {
  color: rgba(148, 163, 184, .4);
}
.form-input:focus {
  border-color: rgba(167, 139, 250, .5);
  background: rgba(167, 139, 250, .06);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, .08);
}
.form-textarea {
  min-height: 90px;
  line-height: 1.6;
}
.launch-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 14, .92);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn .3s ease;
}
.launch-header {
  padding: 32px 32px 16px;
  text-align: center;
  position: relative;
  width: 100%;
}
.launch-title {
  font-size: 1.8rem;
  font-weight: 300;
  letter-spacing: .12em;
  color: #fff;
  text-shadow: 0 0 20px rgba(167, 139, 250, .6);
}
.launch-subtitle {
  margin-top: 8px;
  color: rgba(148, 163, 184, .7);
  font-size: .85rem;
  letter-spacing: .04em;
}
.launch-canvas-wrapper {
  flex: 1;
  width: 100%;
  position: relative;
}
.drag-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .5);
  font-size: .85rem;
  letter-spacing: .05em;
  animation: floatHint 2s ease-in-out infinite;
  pointer-events: none;
}
.drag-icon {
  font-size: 1.6rem;
  color: rgba(167, 139, 250, .7);
}
@keyframes floatHint {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    opacity: .7;
  }
  50% {
    transform: translateX(-50%) translateY(-6px);
    opacity: 1;
  }
}
.launching-msg {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .7);
  font-size: .9rem;
  letter-spacing: .06em;
}
.launching-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(167, 139, 250, .3);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.star-tooltip {
  background: rgba(13, 13, 31, .93);
  border: 1px solid rgba(167, 139, 250, .35);
  border-radius: 12px;
  padding: 12px 16px;
  max-width: 200px;
  text-align: center;
  backdrop-filter: blur(12px);
  pointer-events: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .6), 0 0 20px rgba(109, 40, 217, .2);
  transform: translateY(-60px);
  animation: tooltipIn .2s ease;
}
@keyframes tooltipIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(.9);
  }
  to {
    opacity: 1;
    transform: translateY(-60px) scale(1);
  }
}
.tooltip-name {
  font-size: .88rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  margin-bottom: 6px;
}
.tooltip-wish {
  font-size: .78rem;
  color: rgba(167, 139, 250, .85);
  font-style: italic;
  line-height: 1.4;
  white-space: normal;
  max-width: 180px;
}
.tooltip-wish-hint {
  font-size: .75rem;
  color: rgba(167, 139, 250, .75);
  font-style: italic;
  letter-spacing: .03em;
}
.wish-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn .3s ease;
}
.wish-modal-card {
  position: relative;
  background: rgba(18, 18, 18, 0.82);
  backdrop-filter: blur(28px) saturate(1.4);
  -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 36px 32px 32px;
  width: min(440px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 32px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(109, 40, 217, 0.15);
  animation: wishModalIn .35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes wishModalIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(24px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.wish-modal-close {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: .85rem;
  transition: all .2s;
  line-height: 1;
}
.wish-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.wish-modal-graphic {
  position: relative;
  width: 128px;
  height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wish-modal-img {
  width: 108px;
  height: 108px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #080816;
  position: relative;
  z-index: 1;
}
.wish-modal-placeholder {
  font-size: 4rem;
  position: relative;
  z-index: 1;
  line-height: 1;
  filter: drop-shadow(0 0 12px currentColor);
}
.wish-modal-glow {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  animation: wishGlowPulse 2.4s ease-in-out infinite;
}
@keyframes wishGlowPulse {
  0%, 100% {
    opacity: 0.55;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
.wish-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: center;
}
.wish-modal-wish {
  font-size: 1rem;
  font-weight: 400;
  color: #f1f5f9;
  font-style: italic;
  line-height: 1.65;
  max-width: 340px;
}
.wish-modal-empty {
  color: rgba(148, 163, 184, 0.5);
  font-style: italic;
}
.wish-modal-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
}
.wish-modal-name {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.wish-modal-date {
  font-size: .75rem;
  color: rgba(148, 163, 184, 0.55);
  letter-spacing: .04em;
}
.zoom-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background:
    radial-gradient(
      ellipse at center,
      transparent 30%,
      rgba(4, 4, 14, 0.55) 70%,
      rgba(4, 4, 14, 0.88) 100%);
  animation: vignetteIn .4s ease forwards;
}
@keyframes vignetteIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
@media (max-width: 480px) {
  .modal-card {
    padding: 20px 16px 18px;
  }
  .controls-row {
    flex-direction: column;
  }
  .launch-title {
    font-size: 1.4rem;
  }
  .galaxy-title {
    font-size: 1.8rem;
    letter-spacing: .12em;
  }
}
