:root {
  --yellow: #f6c23e;
  --yellow-strong: #f4b400;
  --yellow-soft: #fff3c8;
  --dark: #111317;
  --dark-2: #191c22;
  --dark-3: #242933;
  --white: #ffffff;
  --muted: #a8b0be;
  --text: #111111;
  --panel: rgba(255, 250, 236, 0.84);
  --panel-border: rgba(255, 255, 255, 0.38);
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.26);
  --shadow-md: 0 18px 48px rgba(0, 0, 0, 0.18);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --transition: all 0.3s ease;
}

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

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(246, 194, 62, 0.18), transparent 26%),
    radial-gradient(circle at 85% 12%, rgba(246, 194, 62, 0.18), transparent 20%),
    linear-gradient(180deg, #fff6dd 0%, #fff3d4 40%, #fff8e8 100%);
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.app-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -4;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.65), transparent 45%);
}

.app-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -5;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.35), transparent 92%);
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -3;
  pointer-events: none;
}

.orb-1 {
  width: 280px;
  height: 280px;
  background: rgba(246, 194, 62, 0.22);
  top: 100px;
  left: -80px;
}

.orb-2 {
  width: 320px;
  height: 320px;
  background: rgba(246, 194, 62, 0.18);
  right: -90px;
  top: 320px;
}

.app-header {
  height: 86px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(14px);
  background: rgba(255, 248, 232, 0.8);
  border-bottom: 1px solid rgba(17, 17, 17, 0.06);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
  color: #111;
  box-shadow: 0 14px 30px rgba(244, 180, 0, 0.28);
  font-size: 1.1rem;
}

.brand-text strong {
  color: var(--yellow-strong);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  font-weight: 800;
  transition: var(--transition);
}

.back-link:hover {
  transform: translateY(-2px);
  background: rgba(17, 17, 17, 0.09);
}

.app-shell {
  min-height: calc(100vh - 86px);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.launch-panel,
.connecting-card {
  width: min(920px, 100%);
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 236, 0.72);
  border: 1px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
}

.launch-panel {
  padding: 48px;
  text-align: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.launch-panel.fade-out {
  opacity: 0;
  transform: translateY(18px) scale(0.98);
}

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.06);
  font-weight: 800;
  margin-bottom: 24px;
}

.launch-panel h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.launch-text {
  max-width: 700px;
  margin: 18px auto 0;
  font-size: 1.08rem;
  color: #505662;
}

.launch-points {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 28px;
}

.launch-point {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(17,17,17,0.06);
  font-weight: 700;
}

.launch-point i {
  color: var(--yellow-strong);
}

.start-btn {
  margin-top: 34px;
  border: 0;
  cursor: pointer;
  min-width: 260px;
  height: 68px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
  color: #111;
  font-size: 1.08rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 18px 38px rgba(244, 180, 0, 0.28);
  transition: var(--transition);
}

.start-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(244, 180, 0, 0.34);
}

.launch-note {
  margin-top: 18px;
  color: #616775;
  font-size: 0.95rem;
}

.connecting-screen {
  width: 100%;
  display: flex;
  justify-content: center;
}

.connecting-card {
  padding: 48px;
  text-align: center;
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.connecting-screen.show .connecting-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.signal-wrap {
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(244, 180, 0, 0.28);
  animation: pulseRing 2.2s infinite ease-out;
}

.ring-1 {
  width: 84px;
  height: 84px;
}

.ring-2 {
  width: 124px;
  height: 124px;
  animation-delay: 0.35s;
}

.ring-3 {
  width: 164px;
  height: 164px;
  animation-delay: 0.7s;
}

.signal-core {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-strong));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-size: 1.45rem;
  box-shadow: 0 18px 36px rgba(244, 180, 0, 0.28);
}

@keyframes pulseRing {
  0% {
    transform: scale(0.88);
    opacity: 0.95;
  }
  100% {
    transform: scale(1.18);
    opacity: 0.12;
  }
}

.connecting-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(17, 17, 17, 0.06);
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 18px;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow-strong);
  box-shadow: 0 0 0 6px rgba(244, 180, 0, 0.18);
}

.connecting-card h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.connecting-card p {
  max-width: 700px;
  margin: 14px auto 0;
  color: #555c67;
  font-size: 1.05rem;
}

.progress-area {
  margin-top: 30px;
}

.progress-bar {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  height: 14px;
  border-radius: 999px;
  background: rgba(17,17,17,0.08);
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-strong));
  transition: width 0.65s ease;
}

.progress-steps {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.step {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(17,17,17,0.06);
  font-weight: 800;
  color: #5a606c;
  transition: var(--transition);
}

.step.active {
  background: #111317;
  color: #fff;
  transform: translateY(-2px);
}

.step.done {
  background: rgba(244, 180, 0, 0.16);
  color: #825e00;
}

.status-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.status-pills span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(17,17,17,0.06);
  font-weight: 700;
}

.status-pills i {
  color: var(--yellow-strong);
}

.iframe-stage {
  width: 100%;
  height: calc(100vh - 134px);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.66);
  border: 1px solid rgba(255,255,255,0.42);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
  transform: translateY(16px);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.iframe-stage.show-frame {
  transform: translateY(0);
  opacity: 1;
}

.iframe-topbar {
  height: 64px;
  padding: 0 18px;
  background: linear-gradient(180deg, rgba(255,248,232,0.92), rgba(255,248,232,0.82));
  border-bottom: 1px solid rgba(17,17,17,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.iframe-topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.mini-brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow-strong);
  box-shadow: 0 0 0 6px rgba(244, 180, 0, 0.14);
}

.iframe-topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 0;
  background: rgba(17,17,17,0.08);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}

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

.top-btn.danger {
  background: #111317;
  color: #fff;
}

.iframe-wrap {
  width: 100%;
  height: calc(100% - 64px);
  background: #0f1115;
}

.iframe-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #0f1115;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .app-header {
    height: 78px;
    padding: 0 14px;
  }

  .app-shell {
    min-height: calc(100vh - 78px);
    padding: 14px;
    align-items: flex-start;
  }

  .launch-panel,
  .connecting-card {
    padding: 28px 20px;
    border-radius: 24px;
  }

  .launch-panel {
    margin-top: 6px;
  }

  .launch-panel h1 {
    font-size: clamp(2.1rem, 10vw, 3.5rem);
  }

  .launch-text,
  .connecting-card p {
    font-size: 1rem;
  }

  .launch-points,
  .status-pills,
  .progress-steps {
    gap: 10px;
  }

  .start-btn {
    width: 100%;
    min-width: 0;
  }

  .iframe-stage {
    height: calc(100vh - 106px);
    border-radius: 20px;
  }

  .iframe-topbar {
    height: 58px;
    padding: 0 12px;
  }

  .iframe-wrap {
    height: calc(100% - 58px);
  }

  .top-btn span,
  .back-link span {
    display: none;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
}

@media (max-width: 560px) {
  .signal-wrap {
    width: 150px;
    height: 150px;
  }

  .ring-1 {
    width: 74px;
    height: 74px;
  }

  .ring-2 {
    width: 106px;
    height: 106px;
  }

  .ring-3 {
    width: 138px;
    height: 138px;
  }

  .signal-core {
    width: 64px;
    height: 64px;
    font-size: 1.2rem;
  }

  .iframe-stage {
    height: calc(100vh - 100px);
  }

  .iframe-topbar-right {
    gap: 8px;
  }

  .top-btn {
    width: 40px;
    min-width: 40px;
    padding: 0;
    justify-content: center;
  }
}
.connecting-screen {
  width: 100%;
  display: flex;
  justify-content: center;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.connecting-screen.fade-out {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
}