/* Light scrim — not a heavy dark blur */
  #hyx-welcome {
    position: fixed; inset: 0; z-index: 999999;
    background: radial-gradient(ellipse at center, rgba(20,60,70,0.25) 0%, rgba(8,20,28,0.55) 80%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none; align-items: center; justify-content: center;
    font-family: var(--sans);
    opacity: 0; transition: opacity 0.35s ease;
    padding: 20px;
  }
  #hyx-welcome.hyx-show { display: flex; opacity: 1; }

  .hyx-stage {
    position: relative;
    display: flex; align-items: flex-end; gap: 14px;
    max-width: 520px; width: 100%;
    max-height: calc(100vh - 40px); /* prevent overflow on short viewports */
    transform: translateY(20px);
    transition: transform 0.5s cubic-bezier(.2,.9,.3,1.15);
  }
  #hyx-welcome.hyx-show .hyx-stage { transform: translateY(0); }

  /* Ghost — pure vertical float, no rotate, no shake */
  .hyx-ghost {
    flex-shrink: 0;
    width: 170px; height: 170px;
    filter: drop-shadow(0 14px 20px rgba(45,232,216,0.25)) drop-shadow(0 4px 8px rgba(0,0,0,0.2));
  }
  .hyx-ghost img { width: 100%; height: 100%; object-fit: contain; display:block; pointer-events:none; user-select:none; }

  /* Bubble — light, airy, illustrative */
  .hyx-bubble {
    flex: 1;
    position: relative;
    background: #ffffff;
    border-radius: 22px;
    padding: 22px 24px 20px;
    box-shadow:
      0 20px 50px rgba(0,0,0,0.25),
      0 0 0 1px rgba(45,232,216,0.15),
      0 0 40px rgba(45,232,216,0.15);
    text-align: left;
    color: #0a1a22;
    overflow-y: auto;
    max-height: calc(100vh - 60px);
  }
  .hyx-bubble::before {
    content: ''; position: absolute;
    left: -9px; bottom: 28px;
    width: 18px; height: 18px;
    background: #ffffff;
    transform: rotate(45deg);
    border-radius: 3px;
  }

  .hyx-title {
    font-size: 19px; font-weight: 800; color: #0a1a22;
    letter-spacing: -0.3px; margin-bottom: 8px;
    display: flex; align-items: center; gap: 8px;
  }
  .hyx-emoji { font-size: 22px; }
  .hyx-text {
    font-size: 13.5px; color: #35505c;
    line-height: 1.55; margin-bottom: 16px;
  }
  .hyx-text b { color: #0a8a82; font-weight: 700; }

  .hyx-btn-row { display: flex; gap: 8px; flex-wrap: wrap; }
  .hyx-btn {
    padding: 11px 16px; border-radius: 11px; border: none; cursor: pointer;
    font-size: 13px; font-weight: 700; letter-spacing: 0.1px;
    font-family: inherit;
    transition: all 0.2s ease;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    flex: 1; min-width: 130px;
  }
  .hyx-btn-primary {
    background: linear-gradient(135deg, #2de8d8 0%, #1dbfb5 100%);
    color: #041015;
    box-shadow: 0 5px 14px rgba(45,232,216,0.35);
  }
  .hyx-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(45,232,216,0.5); }
  .hyx-btn-ghost {
    background: rgba(10,26,34,0.04);
    color: #35505c;
    border: 1px solid rgba(10,26,34,0.08);
  }
  .hyx-btn-ghost:hover { background: rgba(10,26,34,0.08); }

  .hyx-close {
    position: absolute; top: 10px; right: 10px;
    width: 24px; height: 24px; border-radius: 50%;
    background: transparent; border: none;
    color: rgba(10,26,34,0.35);
    cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
  }
  .hyx-close:hover { background: rgba(10,26,34,0.06); color: #0a1a22; }

  /* ── 3-mode picker cards (single-screen welcome) ── */
  .hyx-modes { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
  .hyx-mode-card {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 12px 14px;
    background: linear-gradient(180deg, rgba(45,232,216,0.06) 0%, rgba(45,232,216,0.02) 100%);
    border: 1px solid rgba(10,138,130,0.18);
    border-radius: 12px;
    cursor: pointer; text-align: left;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    font-family: var(--sans);
  }
  .hyx-mode-card:hover {
    transform: translateY(-1px);
    border-color: rgba(10,138,130,0.55);
    background: linear-gradient(180deg, rgba(45,232,216,0.14) 0%, rgba(45,232,216,0.05) 100%);
    box-shadow: 0 6px 18px -8px rgba(10,138,130,0.4);
  }
  .hyx-mode-icon {
    font-size: 24px; line-height: 1;
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.55);
    border-radius: 10px;
    flex-shrink: 0;
  }
  .hyx-mode-body { flex: 1; min-width: 0; }
  .hyx-mode-title {
    font-size: 13px; font-weight: 800; color: #0a1a22;
    display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px;
  }
  .hyx-mode-meta {
    font-size: 9.5px; font-weight: 600; color: #6b8590;
    letter-spacing: 0.4px; text-transform: lowercase;
  }
  .hyx-mode-desc {
    font-size: 11.5px; color: #4a6671; line-height: 1.4; font-weight: 500;
  }
  .hyx-mode-arrow {
    font-size: 16px; color: #0a8a82; font-weight: 700;
    opacity: 0.45; transition: opacity 0.2s ease, transform 0.2s ease;
    flex-shrink: 0;
  }
  .hyx-mode-card:hover .hyx-mode-arrow { opacity: 1; transform: translateX(3px); }

  @media (max-width: 560px) {
    .hyx-stage { flex-direction: column; align-items: center; }
    .hyx-ghost { width: 120px; height: 120px; }
    .hyx-bubble::before { display:none; }
    .hyx-mode-desc { font-size: 11px; }
  }

  /* Sticky affiliate CTA */
  #hyx-sticky-cta {
    position: fixed; top: 72px; left: 18px; z-index: 9999;
    background: linear-gradient(135deg, #2de8d8 0%, #23b8c8 100%);
    color: #041015; padding: 9px 14px 9px 12px;
    border-radius: 999px; font-family: var(--sans);
    font-weight: 700; font-size: 12px; letter-spacing: 0.2px;
    text-decoration: none; cursor: pointer;
    display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 18px rgba(45,232,216,0.35), inset 0 1px 0 rgba(255,255,255,0.3);
    transition: all 0.25s ease;
  }
  #hyx-sticky-cta:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 26px rgba(45,232,216,0.55), inset 0 1px 0 rgba(255,255,255,0.3); }
  #hyx-sticky-cta .hyx-cta-dot {
    width: 6px; height: 6px; border-radius: 50%; background: #041015;
    opacity: 0.75;
  }

  @keyframes menuSlideUp {
    from { opacity: 0; transform: translateY(10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
  }

  /* Ghost recall bubble: click to replay welcome */
  #hyx-guide-recall {
    position: fixed; bottom: 16px; left: 16px; z-index: 9998;
    width: 52px; height: 52px; border-radius: 50%;
    background: #fff;
    cursor: pointer; display: none;
    align-items: center; justify-content: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.3), 0 0 0 1px rgba(45,232,216,0.25);
    transition: all 0.25s ease;
  }
  #hyx-guide-recall:hover { transform: scale(1.1); }
  #hyx-guide-recall img { width: 44px; height: 44px; object-fit: contain; pointer-events:none; }
