/* Senso Vibes partner page — app tokens, mobile-first, no build step.
   Palette mirrors lib/core/theme/app_theme.dart (AppPalette):
     background #0B0118 · surface #1B1230 · field #2A1E47
     muted #9A8FB8 · secondary #CDC4E4 · faint #6B6187
     teal #2DD4BF / CTA gradient #1DAC92→#2DD4BF
     violet #8B5CF6 · badge gradient #42098F→#B53FFE
   Chips mirror _TimerChip: idle #B32A1E47 + 8%-white border,
   selected violet gradient + #9631DF shadow. */

@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/NunitoSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/NunitoSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/NunitoSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('fonts/NunitoSans-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

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

body {
  background: #0B0118;
  color: #ffffff;
  font-family: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
}

.wordmark {
  margin: 0 0 8px;
  text-align: center;
  color: #CDC4E4;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.screen { display: flex; flex-direction: column; gap: 16px; padding-top: 6vh; }
#screen-controls { padding-top: 2vh; }
.hidden { display: none; }

h1 { font-size: 1.4rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.muted { color: #9A8FB8; margin: 0; }
.small { font-size: 0.8rem; }

/* Violet-gradient link badge — same gradient + glyph as the in-app sheet. */
.link-badge {
  width: 56px; height: 56px; border-radius: 50%;
  margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, #42098F, #B53FFE);
  box-shadow: 0 6px 20px rgba(150, 49, 223, 0.35);
}
#screen-loading .link-badge { background: none; box-shadow: none; }
.link-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: #B53FFE; animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(.8); opacity:.6 } 50% { transform: scale(1.15); opacity:1 } }

#screen-loading .muted, #screen-ended, #screen-error { text-align: center; }
#screen-ended h1, #screen-error h1 { margin-top: 4px; }

.controls-header { text-align: center; margin-bottom: 4px; }
.controls-header h1 { margin-top: 12px; }

#status-line {
  color: #2DD4BF;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 6px 0 0;
}

/* Cards — darkSurface + the app's hairline 8%-white border, 14px radius. */
.card {
  background: #1B1230;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
}

.row-space { display: flex; justify-content: space-between; align-items: baseline; }
.label {
  font-size: 0.75rem; color: #9A8FB8;
  text-transform: uppercase; letter-spacing: 0.09em;
  font-weight: 700;
}
.value { font-weight: 700; color: #ffffff; }

/* Play/pause — violet gradient like the app's badge/CTA vocabulary. */
.play-toggle {
  align-self: center;
  width: 76px; height: 76px; border-radius: 50%;
  border: none; cursor: pointer;
  background: linear-gradient(180deg, #42098F, #B53FFE);
  color: #fff; font-size: 1.7rem; font-weight: 700;
  box-shadow: 0 8px 24px rgba(150, 49, 223, 0.45);
  transition: transform .12s ease;
}
.play-toggle:active { transform: scale(.94); }
.play-toggle:disabled { opacity: .45; cursor: default; }

/* Intensity slider — fieldFill track, violet thumb. */
input[type='range'] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; background: transparent; cursor: pointer;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px; background: #2A1E47;
}
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 28px; height: 28px; margin-top: -10px;
  border: none; border-radius: 50%;
  background: linear-gradient(180deg, #42098F, #B53FFE);
  box-shadow: 0 2px 10px rgba(150, 49, 223, .5);
}
input[type='range']::-moz-range-track {
  height: 8px; border-radius: 4px; background: #2A1E47;
}
input[type='range']::-moz-range-thumb {
  width: 28px; height: 28px; border: none;
  border-radius: 50%;
  background: linear-gradient(180deg, #42098F, #B53FFE);
}

/* Pattern chips — pixel parity with the app's 36px timer pills. */
.pattern-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pattern-chip {
  height: 36px;
  padding: 0 18px; border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(42, 30, 71, 0.7);
  color: #CDC4E4;
  font-family: inherit;
  font-size: 0.82rem; font-weight: 500;
  cursor: pointer;
}
.pattern-chip.active {
  background: linear-gradient(180deg, #42098F, #B53FFE);
  border-color: transparent;
  color: #ffffff;
  font-weight: 500;
  box-shadow: 0 3px 8px rgba(150, 49, 223, 0.45);
}

.link-quiet {
  align-self: center; background: none; border: none;
  color: #6B6187; font-family: inherit;
  font-size: 0.8rem; text-decoration: underline;
  cursor: pointer; padding: 8px;
}
.link-quiet:hover { color: #b3261e; }

#expiry-line { text-align: center; }
