:root {
  --bg: #070204;
  --glass: rgba(14, 4, 8, 0.2);
  --glass-strong: rgba(12, 3, 6, 0.69);
  --text: #fff5f7;
  --muted: #cfa3b0;
  --man: #c084fc;
  --woman: #fb7185;
  --crimson: #e11d48;
  --velvet: #881337;
  --gold: #f5d0a9;
  --danger: #ff2a55;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Remove mobile/WebKit tap flash on interactive icons, buttons, and images */
button,
a,
img,
svg,
.icon-toggle,
.questions-circle-badge,
.brand-logo {
  -webkit-tap-highlight-color: transparent;
}

/* Optional: prevent accidental selection highlight when rapidly tapping icons/images */
img,
svg, 
.questions-circle-badge {
  user-select: none;
  -webkit-user-select: none;
}

body_X {
  font-family: var(--sans);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0.65rem 1.25rem 0.5rem;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 55%, rgba(136, 19, 55, 0.18) 0%, rgba(5, 1, 3, 0.58) 85%),
    url(../img/bg_3.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow-x: hidden;
  position: relative;
}

body_X::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: 520px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(225, 29, 72, 0.22) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  animation: ambientPulse 7s ease-in-out infinite;
}

body {
  font-family: var(--sans);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: flex-start;
  padding: 0.65rem 1.25rem 0.5rem;
  background-color: var(--bg);
  overflow-x: hidden;
  position: relative;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-color: var(--bg);
    /*background-image: radial-gradient(circle at 69% 50%, rgba(0, 0, 0, 0.69) 10%, rgba(5, 1, 3, 0.069) 69%), url(../img/bg_3.jpg);*/
	 background-image: url(../img/bg_4.jpg);
	
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 130% 100%;
    pointer-events: none;
}

body_Z::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image: radial-gradient(circle at 50% 55%, rgba(136, 19, 55, 0.18) 0%, rgba(5, 1, 3, 0.58) 85%), url(../img/bg_3.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  pointer-events: none;
}

body.nt-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.nt-main {
  flex: 1 0 auto;
}

@keyframes ambientPulse {
  0%, 100% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.95); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.12); }
}

.top-settings-link {
  position: fixed;
  top: max(0.85rem, env(safe-area-inset-top));
  right: max(0.95rem, env(safe-area-inset-right));
  z-index: 50;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: rgba(255, 245, 247, 0.78);
  background: rgba(14, 4, 8, 0.65);
  border: 1px solid rgba(251, 113, 133, 0.28);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  transition: transform 0.25s ease, color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.top-settings-link:hover,
.top-settings-link:focus-visible {
  color: var(--text, #fff5f7);
  border-color: rgba(251, 113, 133, 0.65);
  background: rgba(136, 19, 55, 0.42);
  transform: rotate(35deg);
  outline: none;
}

.top-settings-link:active {
  transform: scale(0.95) rotate(35deg);
}

.top-settings-link svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.1rem;
  margin-bottom: 1rem;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: min(360px, 90vw);
  max-height: 152px;
  height: auto;
  object-fit: contain;
  filter:
    contrast(1.12)
    saturate(1.35)
    brightness(1.06)
    drop-shadow(0 0 2px rgba(255, 210, 232, 0.95))
    drop-shadow(0 0 6px rgba(244, 114, 182, 0.85))
    drop-shadow(0 0 15px rgba(236, 72, 153, 0.55))
    drop-shadow(0 0 28px rgba(219, 39, 119, 0.3));
 animation: pinkNeonThrob 7.2s ease-in-out infinite;
}

@keyframes pinkNeonThrob {
  0%, 41.7% {
    transform: scale(1);
    filter:
      contrast(1.1)
      saturate(1.25)
      brightness(1.02)
      drop-shadow(0 0 2px rgba(255, 195, 224, 0.8))
      drop-shadow(0 0 5px rgba(244, 114, 182, 0.65))
      drop-shadow(0 0 12px rgba(236, 72, 153, 0.35));
  }
  70.8% {
    transform: scale(1.015);
    filter:
      contrast(1.14)
      saturate(2)
      brightness(2)
      drop-shadow(0 0 3px rgba(255, 224, 240, 1))
      drop-shadow(0 0 9px rgba(244, 114, 182, 0.95))
      drop-shadow(0 0 20px rgba(236, 72, 153, 0.65))
      drop-shadow(0 0 32px rgba(219, 39, 119, 0.35));
  }
  100% {
    transform: scale(1);
    filter:
      contrast(1.1)
      saturate(1.25)
      brightness(1.02)
      drop-shadow(0 0 2px rgba(255, 195, 224, 0.8))
      drop-shadow(0 0 5px rgba(244, 114, 182, 0.65))
      drop-shadow(0 0 12px rgba(236, 72, 153, 0.35));
  }
}

.container {
  width: 100%;
  max-width: 680px;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  border-radius: 2rem;
  padding: 2rem 2.25rem 2.25rem;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 228, 235, 0.22),
    0 0 65px rgba(225, 29, 72, 0.34);
  border: 1px solid rgba(251, 113, 133, 0.34);
  position: relative;
  z-index: 1;
  transition: border-color 0.6s ease, box-shadow 0.6s ease;
}

.container.turn-man {
  border-color: rgba(192, 132, 252, 0.38);
 /* box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(233, 213, 255, 0.2),
    0 0 65px rgba(147, 51, 234, 0.3);*/
	box-shadow:
  0 30px 70px rgba(0, 0, 0, 0.75),
  inset 0 1px 0 rgba(233, 214, 255, 0.55),
  0 0 26px rgba(148, 51, 234, 0.58),
  0 0 75px rgba(148, 51, 234, 0.65);
}

.container.turn-woman {
  border-color: rgba(251, 113, 133, 0.42);
 /* box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 228, 235, 0.24),
    0 0 65px rgba(225, 29, 72, 0.38);

box-shadow:
  0 30px 70px rgba(0, 0, 0, 0.85),
  inset 0 1px 0 rgba(255, 228, 235, 0.3),
  0 0 24px rgba(225, 29, 72, 0.48),
  0 0 75px rgba(225, 29, 72, 0.56);	*/
  box-shadow:
  0 30px 70px rgba(0, 0, 0, 0.85),
  inset 0 1px 0 rgba(255, 228, 235, 0.34),
  0 0 24px rgba(236, 106, 125, 0.55),
  0 0 75px rgba(236, 106, 125, 0.62);
}


/* Top Bar & Discreet Corner Icons */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.welcome-top-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1;
}

.status-pill {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}
.status-pill.man {
  background: rgba(147, 51, 234, 0.16);
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.22);
}

.status-pill.woman {
  background: rgba(225, 29, 72, 0.18);
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.48);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
}

.status-pill.finish {
  background: rgba(245, 208, 169, 0.14);
  color: var(--gold);
  border-color: rgba(245, 208, 169, 0.45);
  box-shadow: 0 0 24px rgba(245, 208, 169, 0.2);
}

.icon-controls {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.icon-toggle {
  height: 34px;
  min-width: 34px;
  padding: 0 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 245, 247, 0.78);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.icon-toggle:hover {
  color: var(--text);
  border-color: rgba(251, 113, 133, 0.4);
  background: rgba(255, 255, 255, 0.07);
}

.icon-toggle svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.icon-toggle .slash-line {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.icon-toggle.off {
  color: rgba(207, 163, 176, 0.38);
  border-color: rgba(255, 255, 255, 0.05);
}

.icon-toggle.off .slash-line {
  opacity: 1;
  stroke: #fb7185;
  stroke-width: 2;
}

.icon-toggle.confirm-reset {
  border-color: rgba(251, 113, 133, 0.65);
  background: rgba(225, 29, 72, 0.22);
  color: #ffe4e6;
  padding: 0 0.7rem;
}

/* Champagne-Gold Custom Authoring / Upgrade Callout */
.custom-upgrade-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 1rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  background: rgba(245, 208, 169, 0.06);
  border: 1px solid rgba(245, 208, 169, 0.32);
  box-shadow:
    0 0 18px rgba(245, 208, 169, 0.1),
    inset 0 1px 0 rgba(245, 208, 169, 0.16);
  transition: all 0.25s ease;
  text-align: center;
}

.custom-upgrade-link:hover {
  background: rgba(245, 208, 169, 0.13);
  border-color: rgba(245, 208, 169, 0.62);
  box-shadow: 0 0 24px rgba(245, 208, 169, 0.22);
  transform: translateY(-1px);
}

.custom-upgrade-link .dot {
  opacity: 0.6;
}

.custom-upgrade-link .arrow {
  transition: transform 0.2s ease;
}

.custom-upgrade-link:hover .arrow {
  transform: translateX(3px);
}

/* Circular Countdown Ring + Timer (Double-Ring Look) */
.timer-wrapper {
  position: relative;
  width: 156px;
  height: 156px;
  margin: 0.25rem auto 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timer-wrapper::before,
.timer-wrapper::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.timer-wrapper::before {
  inset: -8px;
  border: 1.5px solid rgba(225, 29, 72, 0.42);
  box-shadow: 0 0 22px rgba(225, 29, 72, 0.35), inset 0 0 14px rgba(225, 29, 72, 0.2);
}

.timer-wrapper::after {
  inset: 10px;
  border: 1px solid rgba(251, 113, 133, 0.22);
  box-shadow: inset 0 0 12px rgba(225, 29, 72, 0.18);
}

.timer-wrapper.hidden { display: none; }

.timer-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.timer-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.07);
  stroke-width: 2.5;
}

.timer-ring-progress {
  fill: none;
  stroke: var(--woman);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 414.69;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.25s linear, stroke 0.4s ease;
  filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.6));
}

.timer-wrapper.idle-mode .timer-ring-progress {
  animation: idleRingBreath 3.6s ease-in-out infinite;
}

.container.turn-man .timer-ring-progress {
  stroke: var(--man);
  filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.6));
}

.timer-wrapper.prep-mode .timer-ring-progress {
  stroke: var(--gold) !important;
  filter: drop-shadow(0 0 8px rgba(245, 208, 169, 0.55)) !important;
}

@keyframes idleRingBreath {
  0%, 100% {
    opacity: 0.72;
    filter: drop-shadow(0 0 6px rgba(244, 63, 94, 0.4));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(251, 113, 133, 0.78));
  }
}

.timer-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.timer-sub-label {
  font-family: var(--sans);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.2rem;
  display: none;
}

.timer-wrapper.prep-mode .timer-sub-label {
  display: block;
}

.timer-display {
  font-family: var(--serif);
  font-size: 3.35rem;
  font-weight: 500;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
  color: var(--text);
  text-shadow: 0 0 25px rgba(251, 113, 133, 0.45);
}

.timer-wrapper.prep-mode .timer-display {
  font-size: 2.65rem;
  color: var(--gold);
  text-shadow: 0 0 20px rgba(245, 208, 169, 0.4);
}

.timer-display.reading {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: 0 0 16px rgba(245, 208, 169, 0.4);
  animation: whisperPulse 2.2s ease-in-out infinite;
}

.timer-display.warning {
  color: #ff4d6d;
  text-shadow: 0 0 30px rgba(255, 42, 85, 0.85);
  animation: heartbeat 0.9s ease-in-out infinite;
}

@keyframes whisperPulse {
  0%, 100% { opacity: 0.65; }
  50%      { opacity: 1; }
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* Circular Questions Counter below the main dial */
.dial-counter-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-top: 2.25rem;
  margin-bottom: 0.0rem;
  position: relative;
  z-index: 3;
}

.dial-counter-wrap::before,
.dial-counter-wrap::after {
  content: '';
  flex: 0 1 72px;
  height: 1px;
  opacity: 0.75;
}

.dial-counter-wrap::before {
  background: linear-gradient(90deg, transparent, rgba(251, 113, 133, 0.48));
}

.dial-counter-wrap::after {
  background: linear-gradient(90deg, rgba(251, 113, 133, 0.48), transparent);
}

.container.turn-man .dial-counter-wrap::before {
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.45));
}

.container.turn-man .dial-counter-wrap::after {
  background: linear-gradient(90deg, rgba(192, 132, 252, 0.45), transparent);
}

.container.turn-man .questions-circle-badge {
  background: rgba(147, 51, 234, 0.12);
  color: rgba(216, 180, 254, 0.78);
  border-color: rgba(192, 132, 252, 0.36);
  box-shadow:
    0 0 16px rgba(168, 85, 247, 0.18),
    inset 0 0 10px rgba(192, 132, 252, 0.08);
}

.questions-circle-badge.is-bumped {
  transform: scale(1.14);
  color: rgba(255, 228, 236, 0.95);
  border-color: rgba(251, 113, 133, 0.75);
  box-shadow: 0 0 18px rgba(251, 113, 133, 0.45);
}

.container.turn-man .questions-circle-badge.is-bumped {
  color: rgba(243, 232, 255, 0.95);
  border-color: rgba(216, 180, 254, 0.75);
  box-shadow: 0 0 18px rgba(192, 132, 252, 0.45);
}
.questions-circle-badge {
  width: 32px;
  height: 32px;
  min-width: 32px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 4, 8, 0.78);
  border: 1px solid rgba(251, 113, 133, 0.36);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.7),
    0 0 14px rgba(225, 29, 72, 0.24),
    inset 0 1px 0 rgba(255, 245, 247, 0.14);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  user-select: none;
  transition: transform 0.22s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease, background-color 0.4s ease;
}

.container.turn-man .questions-circle-badge {
  background: rgba(147, 51, 234, 0.14);
  color: #e9d5ff;
  border-color: rgba(192, 132, 252, 0.42);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.7),
    0 0 14px rgba(168, 85, 247, 0.24),
    inset 0 1px 0 rgba(233, 213, 255, 0.14);
}

.container.turn-woman .questions-circle-badge {
  background: rgba(225, 29, 72, 0.15);
  color: #fecdd3;
  border-color: rgba(251, 113, 133, 0.45);
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.7),
    0 0 14px rgba(244, 63, 94, 0.26),
    inset 0 1px 0 rgba(255, 228, 235, 0.16);
}

/* Subtle pulse when the count increments */
.questions-circle-badge.is-bumped {
  transform: scale(1.16);
  border-color: rgba(251, 113, 133, 0.85);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.8),
    0 0 18px rgba(251, 113, 133, 0.55);
}

.container.turn-man .questions-circle-badge.is-bumped {
  border-color: rgba(216, 180, 254, 0.85);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.8),
    0 0 18px rgba(192, 132, 252, 0.55);
}

/* Open, Floating Instruction Stage */
.instruction-stage {
  min-height: 155px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.15rem 1rem;
  margin: 0.25rem 0 1rem;
  position: relative;
}

.instruction-stage::before,
.instruction-stage::after {
  content: '';
  width: 110px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(251, 113, 133, 0.65), transparent);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.45);
  display: block;
}

.instruction-stage::before {display:none; margin-bottom: 1.25rem; }
.instruction-stage::after  { margin-top: 1.25rem; }

.instruction-text {
  font-family: var(--serif);
  font-size: 2.15rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.38;
  letter-spacing: 0.01em;
  color: #fff8f9;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9), 0 0 30px rgba(225, 29, 72, 0.22);
}

.instruction-text.fade-in {
  animation: fadeRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

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

/* Subtle Mid-Session Toolbar: Skip + Add Time */
.session-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  padding: 0.45rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(251, 113, 133, 0.22);
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.18), inset 0 1px 0 rgba(255, 245, 247, 0.1);
  flex-wrap: wrap;
}

.skip-btn {
  background: transparent;
  border: none;
  color: #e4c0cb;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.skip-btn:hover:not(:disabled) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.skip-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.time-boost-group {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.time-boost-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 215, 224, 0.72);
  margin-right: 0.35rem;
}

.boost-pill {
  background: transparent;
  border: 1px solid transparent;
  color: #e4c0cb;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.boost-pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.boost-pill.active {
  background: rgba(225, 29, 72, 0.22);
  border-color: rgba(251, 113, 133, 0.45);
  color: #ffe4e6;
}

@media (max-width: 540px) {
  .brand-header { margin-top: 3rem; margin-bottom: 2rem; }
  .brand-logo { /*max-width: min(255px, 70vw); max-height: 128px; */ }
  .container { padding: 1.65rem 1.25rem 1.85rem; border-radius: 1.5rem; }
  .instruction-text { font-size: 1.75rem; }
  .session-tools { justify-content: center; border-radius: 1.15rem; }
  .custom-upgrade-link { font-size: 0.68rem; padding: 0.68rem 0.75rem; }
}

/* Finish Screen */
.finish-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0 2rem;
}

@media (max-width: 600px) {
  .finish-grid { grid-template-columns: 1fr; }
}

.finish-card {
  background: var(--glass-strong);
  border-radius: 1.25rem;
  padding: 1.65rem 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  animation: fadeRise 0.6s ease forwards;
}

.finish-card.man { border-top: 2px solid rgba(192, 132, 252, 0.6); }
.finish-card.woman { border-top: 2px solid rgba(251, 113, 133, 0.6); }

.finish-card h3 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.finish-card.man h3 { color: #d8b4fe; }
.finish-card.woman h3 { color: #fda4af; }

.finish-card p {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.38;
  color: #fff8f9;
}

/* Single State-Driven Primary Action Button */
.controls {
  display: flex;
  width: 100%;
}

button.action-btn {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
}

button.action-btn:active { transform: scale(0.985); }
button.action-btn:disabled { opacity: 0.28; cursor: not-allowed; box-shadow: none; }

#startBtn {
  background: linear-gradient(135deg, #9f1239 0%, #e11d48 100%);
  color: #fff1f2;
  border: 1px solid rgba(255, 228, 230, 0.22);
  box-shadow: 0 10px 28px -6px rgba(225, 29, 72, 0.65);
}

#startBtn:hover:not(:disabled) {
  box-shadow: 0 14px 34px -4px rgba(225, 29, 72, 0.85);
  transform: translateY(-1px);
}

#finishBtn {
  display: none;
  background: rgba(245, 208, 169, 0.1);
  color: var(--gold);
  border: 1px solid rgba(245, 208, 169, 0.42);
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.65);
}

#finishBtn:hover:not(:disabled) {
  background: rgba(245, 208, 169, 0.18);
  border-color: rgba(245, 208, 169, 0.75);
  box-shadow: 0 12px 32px -6px rgba(245, 208, 169, 0.28);
  transform: translateY(-1px);
}

.error-banner {
  background: rgba(255, 42, 85, 0.18);
  border: 1px solid var(--danger);
  color: #fda4af;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  margin-bottom: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}


  .back-link {
    text-decoration: none;
    color: #ffe4e6;
    background: rgba(225, 29, 72, 0.16);
    border: 1px solid rgba(251, 113, 133, 0.42);
    border-radius: 999px;
    padding: 0.42rem 0.95rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .back-link:hover {
    background: rgba(225, 29, 72, 0.3);
    border-color: rgba(251, 113, 133, 0.72);
  }
  
   .settings-panel {
    padding: 1.75rem 2rem 2.1rem;
  }

  .settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
  }

  .settings-title {
    font-family: var(--serif);
    font-size: 1.9rem;
    font-style: italic;
    font-weight: 500;
    color: #fff8f9;
    line-height: 1.2;
	text-align:left;
  }
  
  .settings-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* pins the button to the top of the header row */
  gap: 0.75rem;
  margin-top: 0;
  padding-top: 0;
}

.settings-header .back-link {
  margin-top: 0;
  align-self: flex-start;
  flex-shrink: 0;
}


  @media (max-width: 540px) {
    .settings-panel {
      padding: 1.4rem 1.1rem 1.6rem;
    }
    .settings-title {
      font-size: 1.65rem;
    }
  }
  
   .page-sub {
    margin: 0.65rem 0 0;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.55;
    letter-spacing: 0.02em;
    color: #e4c0cb;
    max-width: 440px;
	text-align:left;
  }