:root {
  --bg: #0d0b0f;
  --panel: #17131a;
  --panel-2: #201923;
  --panel-3: #2a2130;
  --text: #fff7fb;
  --muted: #bbaebb;
  --line: #3b2e40;
  --pink: #ff5d9e;
  --pink-2: #ff86b7;
  --violet: #9a72ff;
  --gold: #f5bd5e;
  --green: #6ee7a8;
  --red: #ff6577;
  --orange: #ff985e;
  --shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 0%, rgba(255, 93, 158, .12), transparent 30%),
    radial-gradient(circle at 95% 20%, rgba(154, 114, 255, .10), transparent 26%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(255, 134, 183, .45);
  outline-offset: 2px;
}

.game-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 60px;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.topbar h1,
.screen-heading h2,
.panel h2,
.daddy-info h3 {
  margin: 0;
}

.topbar h1 {
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: -.045em;
}

.topbar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-logo {
  display: block;
  width: min(100%, 360px);
  max-width: 360px;
  height: auto;
}

.eyebrow,
.kicker {
  margin: 0 0 5px;
  color: var(--pink-2);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .16em;
}

.phase-badge,
.verified,
.red-flag,
.portrait-tag {
  border-radius: 999px;
}

.phase-badge {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--muted);
  font-size: .8rem;
  font-weight: 800;
}

.hidden,
.screen {
  display: none;
}

.screen.active,
.hud:not(.hidden) {
  display: block;
}

.hud {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.hud.hidden {
  display: none !important;
}

.hud-stat,
.relationship-card,
.scene-card,
.panel,
.daddy-card,
.phone,
.date-option {
  border: 1px solid var(--line);
  background: rgba(23, 19, 26, .94);
  box-shadow: var(--shadow);
}

.hud-stat {
  padding: 11px 12px;
  border-radius: 13px;
}

.hud-row,
.relationship-stat > div,
.name-line,
.screen-heading,
.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hud-row {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .8rem;
}

.hud-row strong {
  color: var(--text);
}

.meter {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #332937;
}

.meter span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--pink));
  transition: width .25s ease;
}

.meter.danger span {
  background: linear-gradient(90deg, var(--gold), var(--red));
}

.meter.hot span {
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

/* Primary gameplay system: Down Bad Meter */
.downbad-feature {
  position: relative;
  margin-bottom: 18px;
  padding: clamp(16px, 2.8vw, 24px);
  overflow: hidden;
  border: 1px solid rgba(255, 93, 158, .52);
  border-radius: 20px;
  background:
    radial-gradient(circle at 88% 15%, rgba(255, 93, 158, .17), transparent 35%),
    linear-gradient(145deg, rgba(34, 20, 32, .98), rgba(18, 14, 21, .98));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .32), inset 0 0 0 1px rgba(255, 255, 255, .025);
}

.downbad-feature.hidden {
  display: none;
}

.downbad-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 70%, rgba(255, 93, 158, .25), transparent 55%);
}

.downbad-feature.surging::after {
  animation: downbadFlash .55s ease-out;
}

.downbad-feature-header,
.downbad-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.downbad-feature-header > div:first-child {
  min-width: 0;
}

.downbad-title-row {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.downbad-title-row h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.4vw, 2.65rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.downbad-stage-badge {
  padding: 6px 10px;
  border: 1px solid rgba(255, 134, 183, .32);
  border-radius: 999px;
  background: rgba(255, 93, 158, .10);
  color: var(--pink-2);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.downbad-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}

.downbad-score {
  display: flex;
  flex: 0 0 auto;
  align-items: baseline;
  min-width: 104px;
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
}

.downbad-score strong {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: .82;
  letter-spacing: -.07em;
}

.downbad-score span {
  margin-left: 5px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}

.downbad-gauge {
  margin-top: 18px;
}

.downbad-track {
  position: relative;
  height: 30px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background:
    linear-gradient(90deg,
      rgba(110, 231, 168, .17) 0 20%,
      rgba(245, 189, 94, .14) 20% 40%,
      rgba(255, 152, 94, .16) 40% 60%,
      rgba(255, 93, 158, .18) 60% 80%,
      rgba(255, 101, 119, .21) 80% 100%);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.45);
}

.downbad-fill {
  position: absolute;
  inset: 3px auto 3px 3px;
  width: 25%;
  max-width: calc(100% - 6px);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold) 34%, var(--orange) 57%, var(--pink) 78%, var(--red));
  box-shadow: 0 0 18px rgba(255, 93, 158, .28);
  transition: width .42s cubic-bezier(.2,.8,.2,1), filter .25s ease;
}

.downbad-feature.surging .downbad-fill {
  filter: brightness(1.28) saturate(1.2);
}

.downbad-track i {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: rgba(255,255,255,.18);
  z-index: 2;
}

.downbad-needle {
  position: absolute;
  z-index: 3;
  top: -5px;
  left: 25%;
  width: 4px;
  height: 40px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(13, 11, 15, .75), 0 0 16px rgba(255,255,255,.48);
  transform: translateX(-2px);
  transition: left .42s cubic-bezier(.2,.8,.2,1);
}

.downbad-stages {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 9px;
  color: #8f838f;
  font-size: clamp(.58rem, 1.3vw, .7rem);
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.downbad-stages span:last-child {
  color: var(--pink-2);
}

.downbad-feature[data-stage="chill"] .downbad-stage-badge { color: var(--green); border-color: rgba(110,231,168,.35); background: rgba(110,231,168,.08); }
.downbad-feature[data-stage="interested"] .downbad-stage-badge { color: var(--gold); border-color: rgba(245,189,94,.35); background: rgba(245,189,94,.08); }
.downbad-feature[data-stage="invested"] .downbad-stage-badge { color: var(--orange); border-color: rgba(255,152,94,.35); background: rgba(255,152,94,.08); }
.downbad-feature[data-stage="down-bad"] .downbad-stage-badge { color: var(--pink-2); }
.downbad-feature[data-stage="absolutely-cooked"] .downbad-stage-badge { color: #fff; border-color: rgba(255,101,119,.65); background: rgba(255,101,119,.22); }

@keyframes downbadFlash {
  0% { opacity: 0; }
  28% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .downbad-fill,
  .downbad-needle { transition: none; }
  .downbad-feature.surging::after { animation: none; }
}

.panel {
  border-radius: 22px;
  padding: clamp(18px, 4vw, 34px);
}

.hero-panel {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(24px, 6vw, 64px);
}

.hero-copy h2 {
  max-width: 12ch;
  font-size: clamp(2rem, 4.8vw, 4rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.hero-copy > p:last-child {
  max-width: 49ch;
  color: var(--muted);
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.form-grid label {
  color: var(--muted);
  font-size: .83rem;
  font-weight: 800;
}

.form-grid label.wide,
.form-grid .wide {
  grid-column: 1 / -1;
}

input,
select {
  width: 100%;
  min-height: 46px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #100d12;
  color: var(--text);
}

.trait-preview {
  min-height: 72px;
  padding: 13px 14px;
  border: 1px dashed #523f59;
  border-radius: 12px;
  color: var(--muted);
  line-height: 1.45;
}

.trait-preview strong {
  color: var(--pink-2);
}

.primary-button,
.secondary-button,
.choice-button {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  padding: 11px 15px;
  font-weight: 900;
  transition: transform .12s ease, opacity .12s ease, border-color .12s ease;
}

.primary-button {
  color: #180b12;
  background: linear-gradient(135deg, var(--pink-2), var(--pink));
}

.secondary-button,
.choice-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: #151118;
}

.primary-button:hover,
.secondary-button:hover,
.choice-button:hover {
  transform: translateY(-1px);
}

.screen-heading {
  margin: 6px 0 14px;
}

.screen-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.screen-heading > span,
.heading-note {
  color: var(--muted);
}

.heading-note {
  max-width: 42ch;
  margin: 0;
  text-align: right;
  font-size: .88rem;
}

.daddy-card {
  display: grid;
  grid-template-columns: minmax(260px, .85fr) 1.15fr;
  overflow: hidden;
  border-radius: 24px;
}

.daddy-portrait {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: linear-gradient(145deg, #4c3757, #1d1821);
}

.daddy-profile-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-photo-progress {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  right: 12px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 5px;
}

.photo-progress-segment {
  min-width: 0;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  box-shadow: 0 1px 3px rgba(0,0,0,.18);
  cursor: pointer;
}

.photo-progress-segment.active {
  background: rgba(255,255,255,.96);
}

.photo-progress-segment:focus-visible,
.photo-nav:focus-visible {
  outline: 3px solid var(--pink-2);
  outline-offset: 3px;
}

.photo-nav {
  position: absolute;
  z-index: 5;
  top: 50%;
  display: grid;
  width: 46px;
  height: 58px;
  place-items: center;
  padding: 0;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(10,8,12,.38);
  color: #fff;
  font: inherit;
  font-size: 2.1rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(5px);
}

.photo-nav:hover {
  background: rgba(10,8,12,.62);
}

.photo-nav-left {
  left: 0;
  border-left: 0;
  border-radius: 0 12px 12px 0;
}

.photo-nav-right {
  right: 0;
  border-right: 0;
  border-radius: 12px 0 0 12px;
}

.photo-counter {
  position: absolute;
  z-index: 5;
  top: 27px;
  right: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(13,11,15,.62);
  color: rgba(255,255,255,.92);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .04em;
  backdrop-filter: blur(5px);
}

.profile-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 34px;
  text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 12px, rgba(255,255,255,.015) 12px 24px),
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.10), transparent 36%);
}

.profile-image-placeholder.hidden {
  display: none;
}

.placeholder-camera {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px dashed rgba(255,255,255,.38);
  border-radius: 16px;
  color: rgba(255,255,255,.72);
  font-size: 1.8rem;
}

.profile-image-placeholder strong {
  margin-top: 5px;
  font-size: .78rem;
  letter-spacing: .12em;
}

.profile-image-placeholder span {
  color: var(--pink-2);
  font-size: .78rem;
  font-weight: 800;
}

.profile-image-placeholder small {
  max-width: 34ch;
  color: rgba(255,255,255,.7);
  font-size: .76rem;
  line-height: 1.45;
}

.portrait-initials {
  font-size: 4.3rem;
  font-weight: 1000;
  letter-spacing: -.08em;
  line-height: 1;
  opacity: .22;
}

.portrait-tag {
  position: absolute;
  z-index: 3;
  right: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 8px 10px;
  background: rgba(13, 11, 15, .72);
  border: 1px solid rgba(255,255,255,.18);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.daddy-info {
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 4vw, 34px);
}

.daddy-info h3 {
  font-size: 2rem;
}

.daddy-info p {
  color: var(--muted);
}

.verified {
  padding: 7px 9px;
  background: rgba(110, 231, 168, .08);
  border: 1px solid rgba(110, 231, 168, .22);
  color: var(--green);
  font-size: .73rem;
  font-weight: 800;
}

.daddy-bio {
  max-width: 58ch;
  font-size: 1.05rem;
  line-height: 1.6;
}

.prompt-card {
  margin: 8px 0 18px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-2);
}

.prompt-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.redflag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.red-flag {
  padding: 7px 10px;
  border: 1px solid rgba(255, 101, 119, .2);
  background: rgba(255, 101, 119, .07);
  color: #ff9da8;
  font-size: .78rem;
  font-weight: 800;
}

.swipe-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  padding-top: 24px;
}

.match-panel,
.result-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.match-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
}

.match-icons > span:not(.heart) {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-3);
  border: 1px solid var(--line);
  font-size: 1.7rem;
  font-weight: 1000;
}

.match-icons .heart {
  color: var(--pink);
  font-size: 2rem;
}

.match-panel > p:not(.kicker) {
  color: var(--muted);
  line-height: 1.6;
}

.match-choice-list,
.choice-grid,
.reply-grid {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.choice-button {
  width: 100%;
  text-align: left;
}

.choice-button small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-weight: 600;
}

.phone {
  width: min(680px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
}

.phone-header {
  justify-content: flex-start;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #100d12;
}

.phone-header > div:last-child {
  display: grid;
}

.phone-header span {
  color: var(--muted);
  font-size: .73rem;
}

.avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--panel-3);
  font-weight: 900;
}

.messages {
  min-height: 340px;
  padding: 18px;
  background:
    linear-gradient(rgba(255,255,255,.015), rgba(255,255,255,.015)),
    #0f0c11;
}

.bubble {
  width: fit-content;
  max-width: 82%;
  margin: 7px 0;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.45;
}

.bubble.them {
  background: var(--panel-3);
  border-bottom-left-radius: 4px;
}

.bubble.me {
  margin-left: auto;
  background: #6d3652;
  border-bottom-right-radius: 4px;
}

.typing {
  color: var(--muted);
  font-style: italic;
}

.reply-grid {
  margin: 0;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.date-option {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 17px;
  padding: 18px;
  text-align: left;
}

.date-option .date-icon {
  font-size: 2.3rem;
}

.date-option h3 {
  margin: 14px 0 4px;
}

.date-option p {
  color: var(--muted);
  line-height: 1.5;
}

.date-option .cost {
  margin-top: auto;
  color: var(--gold);
  font-weight: 900;
}

.date-layout {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 14px;
}

.scene-card,
.relationship-card {
  border-radius: 17px;
  padding: clamp(18px, 3vw, 25px);
}

.scene-card {
  min-height: 250px;
}

.scene-location {
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.scene-card > p {
  margin: 18px 0;
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  line-height: 1.42;
}

.memory-callout {
  padding: 11px 12px;
  border-left: 3px solid var(--violet);
  background: rgba(154, 114, 255, .07);
  color: var(--muted);
  font-size: .84rem;
  line-height: 1.45;
}

.relationship-stat {
  margin: 15px 0;
}

.relationship-stat > div:first-child {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .82rem;
}

.relationship-stat strong {
  color: var(--text);
}

.relationship-note {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.5;
}

.emotion-panel {
  margin: 6px 0 18px;
}

.emotion-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.emotion-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.emotion-panel h3 {
  margin: 0;
  font-size: 1.15rem;
}

.emotion-state-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.emotion-box {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(145deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
}

.emotion-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.emotion-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  background: radial-gradient(circle at top, rgba(255, 93, 158, .14), transparent 40%), linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}

.emotion-placeholder-initials {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.emotion-placeholder-state {
  color: var(--gold);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.emotion-placeholder-note,
.emotion-caption {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.emotion-placeholder-note {
  max-width: 22ch;
  margin-top: 7px;
}

.emotion-caption {
  margin: 10px 0 0;
}

.choice-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.result-copy {
  max-width: 58ch;
  margin: 12px auto 22px;
  color: var(--muted);
  line-height: 1.65;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 18px 0;
}

.result-grid > div {
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.result-grid span {
  display: block;
  color: var(--muted);
  font-size: .72rem;
}

.result-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 1.35rem;
}

.memory-panel {
  margin: 18px 0;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #100d12;
  text-align: left;
}

.memory-panel h3 {
  margin: 0 0 8px;
}

.memory-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.6;
}

.toast {
  min-height: 22px;
  margin-top: 11px;
  color: var(--pink-2);
  text-align: center;
  font-size: .84rem;
  font-weight: 800;
}

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

  .hero-panel,
  .daddy-card,
  .date-layout {
    grid-template-columns: 1fr;
  }

  .daddy-portrait {
    min-height: 330px;
  }

  .date-grid {
    grid-template-columns: 1fr;
  }

  .date-option {
    min-height: 190px;
  }

  .relationship-card {
    order: -1;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .game-shell {
    width: min(100% - 20px, 1080px);
    padding-top: 16px;
  }

  .topbar,
  .screen-heading {
    align-items: flex-start;
  }

  .phase-badge,
  .heading-note {
    display: none;
  }

  .form-grid,
  .choice-grid,
  .swipe-actions {
    grid-template-columns: 1fr;
  }

  .form-grid label.wide,
  .form-grid .wide {
    grid-column: auto;
  }

  .daddy-portrait {
    min-height: 280px;
  }

  .name-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .messages {
    min-height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Persistent background MIDI */
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.music-toggle {
  min-height: 39px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  font-size: .8rem;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: border-color .15s ease, background .15s ease, opacity .15s ease;
}

.music-toggle:hover {
  border-color: var(--pink-2);
  background: rgba(255, 93, 158, .08);
}

.music-toggle[aria-pressed="false"] {
  color: var(--muted);
  opacity: .78;
}

.music-toggle.is-error {
  color: var(--red);
  border-color: rgba(255, 101, 119, .45);
}

.music-toggle-icon {
  width: 1.1em;
  text-align: center;
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    max-width: 150px;
  }
  .topbar-brand {
    width: 100%;
  }

  .site-logo {
    max-width: 260px;
  }


  .music-toggle,
  .phase-badge {
    font-size: .72rem;
  }
}

@media (max-width: 560px) {
  .downbad-feature-header { align-items: flex-end; }
  .downbad-score { min-width: 76px; }
  .downbad-score strong { font-size: 2.65rem; }
  .downbad-stages { gap: 2px; font-size: .52rem; }
  .downbad-stages span { overflow-wrap: anywhere; }
}
