/* ==========================================================================
   SILKEN VOWS - DYNAMIC SPINNING HEXAGONS & ENCLOSED TRIANGLE ANIMATIONS
   ========================================================================== */

:root {
  --bg-pink-light: #fff0f5;
  --bg-pink-mid: #ffe4ec;
  --accent-cyan: #00d2ff;
  --accent-cyan-dark: #009ce6;
  --accent-purple: #8c60cc;
  --accent-rose: #e91e63;
  --text-dark: #2a1636;
  --text-secondary: #5c386e;
  --text-muted: #8b659d;
  --border-pink: rgba(233, 30, 99, 0.15);
  --border-cyan: rgba(0, 210, 255, 0.5);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 50px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-cyan: 0 10px 30px -4px rgba(0, 210, 255, 0.45);
  --shadow-purple: 0 10px 30px -4px rgba(140, 96, 204, 0.4);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-pink-light);
  color: var(--text-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4ec 50%, #ffd6e2 100%);
  overflow-x: hidden;
  position: relative;
}

/* Background Silk & Hero bg.png Layer */
.ambient-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #ff80ab 0%, transparent 70%);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #80d8ff 0%, transparent 70%);
  bottom: -150px;
  right: -150px;
  animation-delay: -5s;
}

.silk-texture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(233, 30, 99, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* App Wrapper & Top Navbar */
.app-wrapper {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1100px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  margin: 0 auto;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(233, 30, 99, 0.12);
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  box-shadow: 0 8px 25px rgba(233, 30, 99, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.brand-icon {
  font-size: 1.4rem;
}

.brand-name {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text-dark);
}

.live-counter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Static trust badge — replaces fake live counter (Flag 2.3 fix) */
.private-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ad1457;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(233, 30, 99, 0.2);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  letter-spacing: 0.5px;
}

/* Inline checkbox limit message — replaces alert() (Flag 2.19 fix) */
.checkbox-limit-msg {
  font-size: 0.78rem;
  font-weight: 600;
  color: #ad1457;
  background: #fce4ec;
  border: 1px solid #f48fb1;
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  margin-top: 6px;
  text-align: center;
  display: none;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-cyan-dark);
  box-shadow: 0 0 10px var(--accent-cyan-dark);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 156, 230, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 156, 230, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 156, 230, 0); }
}

/* Progress Bar */
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(233, 30, 99, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 10%;
  background: linear-gradient(90deg, #00d2ff 0%, #e91e63 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 210, 255, 0.4);
}

/* Wizard Steps */
.wizard-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wizard-step {
  display: none;
  background: transparent;
  animation: fadeInStep 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step.active {
  display: flex;
  flex-direction: column;
}

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

/* --------------------------------------------------------------------------
   TRIANGLE LAYOUT WITH DIRECTIONAL DASHED ANIMATION
   -------------------------------------------------------------------------- */
.triangle-layout-wrapper {
  position: relative;
  width: 100%;
  min-height: 860px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 10px 40px;
  margin: 0 auto;
}

.triangle-connect-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

/* Dash animation moving in marked directional flow */
.triangle-path {
  stroke: url(#triangleGradient);
  stroke-width: 4.5;
  stroke-dasharray: 10 6;
  fill: rgba(255, 255, 255, 0.05);
  animation: dashDirectional 12s linear infinite;
  filter: drop-shadow(0 0 14px rgba(0, 210, 255, 0.5));
}

@keyframes dashDirectional {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -160; }
}

.triangle-rotator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 10;
}

.triangle-img-anchor {
  position: absolute;
  z-index: 12;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.triangle-img-anchor:hover {
  transform: scale(1.08);
}

/* Top-Left Anchor */
.anchor-top-left {
  top: 40px;
  left: 10px;
}

/* Top-Right Anchor */
.anchor-top-right {
  top: 40px;
  right: 10px;
}

/* Bottom-Center Anchor */
.anchor-bottom-center {
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
}

.anchor-bottom-center:hover {
  transform: translateX(-50%) scale(1.08);
}

/* --------------------------------------------------------------------------
   SPINNING OUTSIDE HEXAGON FRAME (IMAGE STAYS 100% UPRIGHT)
   -------------------------------------------------------------------------- */
.hexagon-wrapper {
  position: relative;
  width: 300px;
  height: 330px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 16px 35px rgba(233, 30, 99, 0.3)) drop-shadow(0 0 22px rgba(0, 210, 255, 0.5));
}

/* Outer Hexagon Bubble (Spinning Frame) */
.img-frame-bubble {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, #00d2ff 0%, #e91e63 100%);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Clockwise Outer Hexagon Spin (Top-Right & Bottom-Center) */
.hex-spin-cw {
  animation: spinCW 14s linear infinite;
}
@keyframes spinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Counter-Clockwise Outer Hexagon Spin (Top-Left) */
.hex-spin-ccw {
  animation: spinCCW 14s linear infinite;
}
@keyframes spinCCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Inner Hexagon Container (Counter-spins so photo stays upright!) */
.hex-inner-content {
  width: 100%;
  height: 100%;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, #ffd6e0 0%, #f8bbd0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Counter-Spin for Clockwise Parent */
.hex-spin-cw .hex-counter-spin {
  animation: counterSpinCW 14s linear infinite;
}
@keyframes counterSpinCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

/* Counter-Spin for Counter-Clockwise Parent */
.hex-spin-ccw .hex-counter-spin {
  animation: counterSpinCCW 14s linear infinite;
}
@keyframes counterSpinCCW {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.frame-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --------------------------------------------------------------------------
   SPINNING PERCENTAGE COUNTER & BADGE TAG PLACED UNDER TOP DOTTED LINE
   -------------------------------------------------------------------------- */
.top-spinning-circle {
  position: relative;
  z-index: 25;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #f8bbd0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px;
  box-shadow: 0 0 20px rgba(233, 30, 99, 0.25), 0 0 15px rgba(0, 210, 255, 0.3);
  overflow: hidden;
}

.spinning-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, var(--accent-rose) 360deg);
  animation: ringSpin 2s linear infinite;
  opacity: 0.8;
}

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinning-core {
  position: relative;
  z-index: 2;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 10px rgba(233, 30, 99, 0.15);
}

.top-percent-text {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent-rose);
}

/* BADGE TAG PLACED DIRECTLY UNDER TOP DOTTED LINE */
.badge-tag-under-line {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #d81b60;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #f48fb1;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-top: 14px; /* Positioned cleanly under top dotted line */
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.12);
  display: inline-block;
}

/* --------------------------------------------------------------------------
   FLOATING CENTER QUESTION AREA
   -------------------------------------------------------------------------- */
.center-question-card {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 440px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 10px 10px 16px;
  margin-top: 5px;
  margin-bottom: 250px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-count {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ad1457;
  margin-bottom: 4px;
}

.step-title {
  font-family: var(--font-sans);
  font-size: 1.95rem;
  line-height: 1.25;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
  max-width: 360px;
}

.step-subtitle {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.question-prompt {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 14px;
}

/* NOTICE BOX */
.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #f8bbd0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 330px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.06);
}

.notice-icon {
  font-size: 1.25rem;
}

.notice-text {
  font-size: 0.82rem;
  line-height: 1.38;
  color: var(--text-secondary);
}

.notice-text strong {
  color: var(--text-dark);
}

/* PILL BUTTON GROUP */
.pill-button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.btn-pill {
  width: 100%;
  font-family: var(--font-sans);
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all 0.25s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Top button (Yes) */
.btn-cyan {
  max-width: 270px;
  padding: 14px 24px;
  font-size: 1.2rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #00e5ff 0%, #009ce6 100%);
  color: #ffffff;
  box-shadow: var(--shadow-cyan);
}

.btn-cyan:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(0, 210, 255, 0.6);
  background: linear-gradient(180deg, #33ebff 0%, #00b5ff 100%);
}

/* Bottom button (No) */
.btn-purple {
  max-width: 220px;
  padding: 12px 20px;
  font-size: 1.1rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #8c60cc 0%, #a46fec 100%);
  color: #ffffff;
  box-shadow: var(--shadow-purple);
}

.btn-purple:hover {
  background: linear-gradient(180deg, #9b6edd 0%, #b27df7 100%);
  transform: translateY(-2px);
}

.btn-pill.disabled, .btn-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* STEP ACTIONS & BACK BUTTON */
.step-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 14px;
}

.btn-back-pill {
  padding: 10px 18px;
  background: #ffffff;
  color: var(--text-dark);
  border: 1.5px solid rgba(233, 30, 99, 0.25);
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.btn-back-pill:hover {
  background: #fff8fa;
  border-color: var(--accent-rose);
  color: var(--accent-rose);
}

.btn-single-ok {
  max-width: 200px;
}

/* COMPACT MULTI-SELECT CHECKBOX CARDS */
.checkbox-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 100%;
  max-width: 320px;
}

.checkbox-card {
  cursor: pointer;
  position: relative;
  width: 100%;
}

.checkbox-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.checkbox-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid rgba(233, 30, 99, 0.18);
  border-radius: var(--radius-pill);
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(233, 30, 99, 0.05);
}

.checkbox-card:hover .checkbox-pill {
  border-color: var(--accent-cyan);
  background: #ffffff;
}

.checkbox-card input:checked + .checkbox-pill {
  background: #fce4ec;
  border-color: var(--accent-cyan);
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.25);
}

.pill-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-dark);
}

.pill-check-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: bold;
  color: #000;
  transition: all 0.2s ease;
}

.checkbox-card input:checked + .checkbox-pill .pill-check-dot {
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.checkbox-card input:checked + .checkbox-pill .pill-check-dot::after {
  content: '✓';
}

/* Loader Step Radar */
.loader-step {
  text-align: center;
  padding: 44px 28px;
  display: flex;
  justify-content: center;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.radar-container {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 3px solid #f8bbd0;
  background: radial-gradient(circle, #fce4ec 0%, transparent 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(233, 30, 99, 0.15);
}

.radar-sweep {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, transparent 270deg, var(--accent-rose) 360deg);
  animation: radarSpin 2s linear infinite;
  opacity: 0.7;
}

.radar-core {
  position: relative;
  z-index: 2;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--border-pink);
  display: flex;
  align-items: center;
  justify-content: center;
}

#percentCounter {
  font-family: var(--font-sans);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent-rose);
}

.loader-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.loader-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.match-log {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: #ffffff;
  border: 1px solid #f8bbd0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.log-item {
  font-size: 0.84rem;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.log-item.active {
  color: var(--accent-rose);
  font-weight: 700;
}

/* Footer */
.app-footer {
  margin-top: auto;
  padding: 28px 0 12px;
  text-align: center;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ad1457;
}

.sep {
  color: var(--text-muted);
}

.copyright {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE SYSTEM — TABLET & MOBILE
   ========================================================================== */

/* ── Large Tablet / Small Laptop (769px – 1024px) ─────────────────────────── */
@media (max-width: 1024px) {
  .app-wrapper {
    max-width: 100%;
    padding: 16px 18px;
  }

  .triangle-layout-wrapper {
    min-height: 720px;
  }

  .hexagon-wrapper {
    width: 230px;
    height: 252px;
  }

  .anchor-top-left  { left: 20px; top: 30px; }
  .anchor-top-right { right: 20px; top: 30px; }
  .anchor-bottom-center { bottom: 10px; }

  .center-question-card {
    max-width: 420px;
    margin-bottom: 230px;
  }

  .step-title { font-size: 1.75rem; }
}

/* ── Tablet Portrait (481px – 768px) ─────────────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .app-wrapper {
    padding: 10px 12px;
    min-height: 100dvh;
  }

  /* Navbar */
  .navbar {
    padding: 10px 16px;
    border-radius: 18px;
    margin-bottom: 10px;
  }
  .brand-logo-img  { height: 30px; }
  .brand-name      { font-size: 1.1rem; letter-spacing: 1px; }
  .live-counter    { font-size: 0.78rem; }
  .pulse-dot       { width: 7px; height: 7px; }

  /* Progress bar */
  .progress-bar-container { margin-bottom: 14px; }

  /* Triangle layout – stack images in a row above content */
  .triangle-layout-wrapper {
    min-height: unset;
    padding: 0 8px 20px;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  /* Hide the SVG triangle lines on tablet – too cramped */
  .triangle-connect-svg { display: none; }

  /* Images row at top */
  .triangle-rotator {
    position: relative !important;
    top: unset !important; left: unset !important;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    gap: 12px;
    padding: 12px 0 8px;
    z-index: 10;
  }

  .triangle-img-anchor {
    position: relative !important;
    top: unset !important; bottom: unset !important;
    left: unset !important; right: unset !important;
    transform: none !important;
  }
  .triangle-img-anchor:hover { transform: scale(1.06) !important; }

  /* Middle image slightly bigger */
  .triangle-img-anchor:nth-child(2) .hexagon-wrapper {
    width: 180px;
    height: 198px;
  }

  .hexagon-wrapper {
    width: 145px;
    height: 160px;
    filter: drop-shadow(0 8px 18px rgba(233,30,99,0.25))
            drop-shadow(0 0 12px rgba(0,210,255,0.35));
  }

  /* Question card */
  .center-question-card {
    position: relative;
    z-index: 20;
    margin-top: 0;
    margin-bottom: 0;
    padding: 12px 10px 16px;
    max-width: 100%;
    width: 100%;
  }

  .top-spinning-circle {
    width: 60px; height: 60px;
    margin-bottom: 6px;
  }
  .spinning-core  { width: 44px; height: 44px; }
  .top-percent-text { font-size: 0.88rem; }

  .badge-tag-under-line {
    font-size: 0.68rem;
    padding: 4px 10px;
    margin-top: 8px;
    margin-bottom: 6px;
  }

  .step-title {
    font-size: 1.55rem;
    max-width: 100%;
    margin-bottom: 4px;
  }
  .step-subtitle  { font-size: 0.82rem; margin-bottom: 8px; }
  .question-prompt { font-size: 1rem; margin-bottom: 10px; }

  .notice-box {
    max-width: 100%;
    padding: 9px 12px;
    margin-bottom: 12px;
  }
  .notice-text { font-size: 0.8rem; }

  /* Buttons */
  .btn-cyan   { max-width: 100%; padding: 13px 20px; font-size: 1.1rem; }
  .btn-purple { max-width: 100%; padding: 11px 18px; font-size: 1rem; }
  .btn-back-pill { padding: 9px 14px; font-size: 0.84rem; }
  .btn-single-ok { max-width: 100%; }

  /* Checkbox grid */
  .checkbox-grid { max-width: 100%; gap: 6px; }
  .checkbox-pill { padding: 9px 14px; }
  .pill-title    { font-size: 0.88rem; }

  /* Step actions */
  .step-actions { margin-top: 10px; gap: 8px; }

  /* Loader */
  .loader-step { padding: 28px 16px; }
  .radar-container { width: 110px; height: 110px; margin-bottom: 20px; }
  .radar-core { width: 72px; height: 72px; }
  #percentCounter { font-size: 1.35rem; }
  .loader-title   { font-size: 1.55rem; }
  .loader-subtitle { font-size: 0.84rem; margin-bottom: 16px; }
  .match-log { max-width: 100%; }

  /* Footer */
  .app-footer { padding: 20px 0 10px; }
  .footer-links { gap: 8px; font-size: 0.78rem; }
  .copyright    { font-size: 0.7rem; }
}

/* ── Mobile (≤ 480px) ────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  html { font-size: 14px; }

  .app-wrapper { padding: 8px 10px; }

  .navbar {
    padding: 8px 12px;
    border-radius: 14px;
    margin-bottom: 8px;
  }
  .brand-logo-img { height: 26px; }
  .brand-name     { font-size: 0.95rem; letter-spacing: 0.5px; }
  .live-counter   { font-size: 0.72rem; gap: 5px; }

  /* Triangle images – 3 in a tight row */
  .triangle-rotator {
    gap: 8px;
    padding: 10px 0 6px;
  }

  .hexagon-wrapper {
    width: 115px;
    height: 126px;
  }

  .triangle-img-anchor:nth-child(2) .hexagon-wrapper {
    width: 140px;
    height: 154px;
  }

  .center-question-card { padding: 8px 8px 14px; }

  .top-spinning-circle {
    width: 52px; height: 52px;
    margin-bottom: 4px;
  }
  .spinning-core  { width: 38px; height: 38px; }
  .top-percent-text { font-size: 0.78rem; }

  .badge-tag-under-line {
    font-size: 0.62rem;
    padding: 3px 8px;
    margin-top: 6px;
    margin-bottom: 5px;
    letter-spacing: 0.8px;
  }

  .step-title {
    font-size: 1.3rem;
    line-height: 1.2;
  }
  .step-subtitle   { font-size: 0.76rem; }
  .question-prompt { font-size: 0.95rem; margin-bottom: 8px; }
  .step-count      { font-size: 0.72rem; }

  .notice-box { padding: 8px 10px; margin-bottom: 10px; }
  .notice-icon { font-size: 1rem; }
  .notice-text { font-size: 0.76rem; }

  .btn-cyan   { padding: 12px 16px; font-size: 1rem; }
  .btn-purple { padding: 10px 14px; font-size: 0.92rem; }
  .btn-back-pill { padding: 8px 12px; font-size: 0.8rem; }

  .checkbox-grid  { gap: 5px; }
  .checkbox-pill  { padding: 8px 12px; }
  .pill-title     { font-size: 0.84rem; }
  .pill-check-dot { width: 14px; height: 14px; }

  .step-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; }

  /* Loader */
  .loader-step  { padding: 20px 12px; }
  .radar-container { width: 90px; height: 90px; }
  .radar-core   { width: 58px; height: 58px; }
  #percentCounter { font-size: 1.1rem; }
  .loader-title   { font-size: 1.3rem; }
  .loader-subtitle { font-size: 0.78rem; }
  .log-item { font-size: 0.78rem; }

  .footer-links { flex-wrap: wrap; gap: 6px; font-size: 0.72rem; }
}

/* ── Extra Small Mobile (≤ 380px) ─────────────────────────────────────────── */
@media (max-width: 380px) {
  html { font-size: 13px; }

  .brand-name { display: none; }  /* Show logo only on very small screens */

  .hexagon-wrapper {
    width: 90px;
    height: 98px;
  }

  .triangle-img-anchor:nth-child(2) .hexagon-wrapper {
    width: 110px;
    height: 120px;
  }

  .step-title { font-size: 1.15rem; }

  .btn-cyan   { font-size: 0.9rem; padding: 10px 12px; }
  .btn-purple { font-size: 0.84rem; padding: 9px 10px; }
}