/* Welcome screen view picker buttons */
.welcome-view-picker {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.welcome-view-btn {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: #5865f2;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s, transform 0.1s;
}

.welcome-view-btn:hover {
  background: #4752c4;
  transform: translateY(-1px);
}

.welcome-view-btn-alt {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.welcome-view-btn-alt:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* Mobile phone frame */
.mobile-frame {
  position: fixed;
  top: 50%;
  left: 38%;
  transform: translate(-50%, -50%);
  width: 375px;
  height: 780px;
  max-height: 90vh;
  z-index: 400;
  background: #000;
  border-radius: 50px;
  border: 4px solid #2a2a2a;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 2px #111,
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 18px rgba(255, 255, 255, 0.07),
    0 0 40px rgba(88, 101, 242, 0.08),
    0 0 80px rgba(88, 101, 242, 0.05),
    0 24px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}

.mobile-frame.hidden {
  display: none;
}

/* iOS Status Bar */
.mobile-status-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px 0;
  background: transparent;
  flex-shrink: 0;
  z-index: 10;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  box-sizing: border-box;
}

.mobile-status-left {
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 1;
}

.mobile-status-time {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  letter-spacing: 0.3px;
}

.mobile-status-mute {
  color: #fff;
  font-size: 12px;
  margin-left: 2px;
}

.mobile-status-right {
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 1;
}

.mobile-status-signal {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 12px;
}

.mobile-status-signal-bar {
  width: 3px;
  background: #fff;
  border-radius: 1px;
}

.mobile-status-signal-bar:nth-child(1) { height: 4px; }
.mobile-status-signal-bar:nth-child(2) { height: 6px; }
.mobile-status-signal-bar:nth-child(3) { height: 8px; }
.mobile-status-signal-bar:nth-child(4) { height: 11px; }

.mobile-status-5g {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-family: -apple-system, 'SF Pro Text', 'Helvetica Neue', sans-serif;
  letter-spacing: 0.3px;
}

.mobile-status-battery {
  width: 25px;
  height: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  position: relative;
  display: flex;
  align-items: center;
  padding: 1.5px;
}

.mobile-status-battery::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 0 1px 1px 0;
}

.mobile-status-battery-fill {
  width: 60%;
  height: 100%;
  background: #fff;
  border-radius: 1px;
}

/* Dynamic Island */
.mobile-dynamic-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 34px;
  background: #000;
  border-radius: 20px;
  z-index: 11;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-dynamic-island-dot {
  width: 8px;
  height: 8px;
  background: #f57c25;
  border-radius: 50%;
  margin-left: 24px;
}

.mobile-frame-screen {
  flex: 1;
  overflow: hidden;
  position: relative;
  background: #1e1f22;
  border-radius: 46px;
  padding-top: 52px;
}

.mobile-frame-screen:has(.mob-quest-sheet) {
  background: #0c0c0d;
}

.mobile-frame-screen:has(.mob-claim-screen) {
  background: linear-gradient(180deg, #2a1a4e 0%, #1a1040 30%, #000 60%);
}

.mobile-frame-screen:has(.mob-orbs-screen) {
  background: linear-gradient(180deg, #0a0a2e 0%, #121040 30%, #000 60%);
}

/* When mobile is active, hide the web view */
.mobile-active .discord-layout,
.mobile-active .video-modal-overlay,
.mobile-active .reward-modal-overlay {
  opacity: 0;
  pointer-events: none;
}

.mobile-active .welcome-screen {
  opacity: 0;
  pointer-events: none;
}

/* Mobile overlay background — dark with glow behind phone */
.mobile-active::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 38% 50%, rgba(88, 101, 242, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 38% 50%, rgba(110, 93, 231, 0.12) 0%, transparent 55%),
    #0a0a0f;
  z-index: 399;
}

/* Tooltips & stats pinned to right of phone */
.mobile-active .walkthrough-tooltip {
  z-index: 500;
  position: fixed !important;
  left: calc(38% + 195px) !important;
  right: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  max-width: 240px;
  min-width: 200px;
  width: 240px;
}

.mobile-active .tooltip-arrow,
.mobile-active .tooltip-arrow-glow {
  display: none !important;
}

.mobile-active .mob-tooltip-bottom {
  top: auto !important;
  bottom: calc(50% - min(780px, 90vh) / 2 + 20px) !important;
  transform: none !important;
}

/* Connector line + pulse circle from tooltip to Watch Now button */
.mob-tooltip-connector {
  position: fixed;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 499;
  transform: translateY(-50%);
}

.mob-connector-line {
  height: 2px;
  background: rgba(255, 255, 255, 0.6);
  animation: connectorLineGrow 0.4s ease-out forwards;
  transform-origin: left center;
  flex: 1;
}

.mob-connector-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  animation: connectorCircleGrow 0.3s ease-out 0.35s forwards, connectorPulse 1.5s ease-in-out 0.65s infinite;
  flex-shrink: 0;
}

@keyframes connectorLineGrow {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

@keyframes connectorLineGrowY {
  0% { transform: scaleY(0); }
  100% { transform: scaleY(1); }
}

@keyframes connectorCircleGrow {
  0% { opacity: 0; transform: scale(0); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes connectorPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
}

.mobile-active .stat-bubble {
  z-index: 500;
  position: fixed !important;
  left: calc(38% + 195px) !important;
  right: auto !important;
  transform: none !important;
  width: 240px;
}
