:root {
  --pink: #ff8aa1;
  --pink-dark: #e96f8a;
  --pink-soft: #fff0f4;
  --gold: #ffe25b;
  --gold-dark: #6f5b00;
  --gold-soft: #fff9d9;
  --white: #ffffff;
  --cream: #fffdf6;
  --ink: #342f31;
  --muted: #756e71;
  --line: #eadfe2;
  --shadow: 0 20px 60px rgba(100, 69, 78, 0.14);
  --shadow-soft: 0 12px 34px rgba(100, 69, 78, 0.09);
  --content-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 138, 161, 0.18), transparent 27rem),
    radial-gradient(circle at 92% 18%, rgba(255, 226, 91, 0.22), transparent 28rem),
    linear-gradient(180deg, #fff8fa 0%, var(--cream) 58%, #ffffff 100%);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC",
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.background-orb {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(3px);
}

.orb-pink {
  top: 170px;
  left: -120px;
  width: 260px;
  height: 260px;
  border: 38px solid rgba(255, 138, 161, 0.09);
}

.orb-gold {
  right: -110px;
  bottom: 90px;
  width: 250px;
  height: 250px;
  background: rgba(255, 226, 91, 0.1);
}

.game-header {
  display: grid;
  width: min(calc(100% - 40px), 1160px);
  margin: 0 auto;
  padding: 22px 0;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
}

.back-link,
.text-button {
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.back-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-self: start;
}

.text-button {
  justify-self: end;
}

.back-link:hover,
.text-button:hover {
  color: var(--pink-dark);
}

.back-link:focus-visible,
.text-button:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(255, 138, 161, 0.28);
  outline-offset: 4px;
}

.mini-brand {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 850;
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.brand-dot-pink {
  background: var(--pink);
}

.brand-dot-gold {
  background: var(--gold);
}

.game-shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  padding: 50px 0 90px;
}

.setup-intro {
  max-width: 730px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.setup-intro h1 {
  margin: 0;
  font-size: clamp(2.7rem, 7vw, 5.3rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.setup-intro > p:last-child {
  max-width: 610px;
  margin: 24px auto 0;
  color: var(--muted);
}

.player-preview {
  display: flex;
  margin: 42px auto 66px;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.player-chip {
  display: flex;
  min-width: 214px;
  padding: 12px 16px 12px 12px;
  gap: 13px;
  align-items: center;
  border: 1px solid rgba(52, 47, 49, 0.07);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}

.player-chip-pink {
  background: rgba(255, 240, 244, 0.9);
}

.player-chip-gold {
  background: rgba(255, 249, 217, 0.92);
}

.player-chip img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.player-chip-pink img {
  border: 3px solid var(--pink);
}

.player-chip-gold img {
  border: 3px solid var(--gold);
}

.player-chip span,
.player-chip strong {
  display: block;
}

.player-chip span {
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.player-chip strong {
  margin-top: 1px;
  font-size: 0.96rem;
}

.versus {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 4px solid var(--white);
  border-radius: 50%;
  color: var(--pink-dark);
  background: var(--gold);
  box-shadow: var(--shadow-soft);
}

.choice-section {
  margin-top: 44px;
}

.section-label {
  display: flex;
  margin-bottom: 16px;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.section-label span {
  color: var(--pink-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.section-label h2 {
  margin: 0;
  font-size: 1.25rem;
}

.choice-grid {
  display: grid;
  gap: 15px;
}

.choice-grid-level {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-grid-mode {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-grid-rounds {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  cursor: pointer;
}

.choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-card-inner {
  display: flex;
  min-height: 172px;
  padding: 25px 22px;
  align-items: flex-start;
  flex-direction: column;
  border: 1.5px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.choice-card:hover .choice-card-inner {
  transform: translateY(-3px);
}

.choice-card input:checked + .choice-card-inner {
  border-color: var(--pink);
  background:
    linear-gradient(135deg, rgba(255, 240, 244, 0.95), rgba(255, 249, 217, 0.72));
  box-shadow: var(--shadow);
}

.choice-card input:focus-visible + .choice-card-inner {
  outline: 3px solid rgba(255, 138, 161, 0.28);
  outline-offset: 4px;
}

.choice-icon,
.mode-tag {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 15px;
  font-size: 1.15rem;
  font-weight: 900;
}

.choice-icon {
  color: var(--pink-dark);
  background: var(--pink-soft);
}

.choice-card:nth-child(2) .choice-icon {
  color: var(--gold-dark);
  background: var(--gold-soft);
}

.choice-card:nth-child(3) .choice-icon {
  color: var(--ink);
  background:
    linear-gradient(135deg, var(--pink-soft), var(--gold-soft));
}

.truth-tag {
  color: var(--white);
  background: var(--pink);
}

.dare-tag {
  color: var(--gold-dark);
  background: var(--gold);
}

.random-tag {
  color: var(--ink);
  background:
    linear-gradient(135deg, var(--pink), var(--gold));
}

.choice-card strong {
  font-size: 1.03rem;
}

.choice-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.82rem;
}

.choice-card-wide {
  grid-column: 1 / -1;
}

.intimate-choice .choice-card-inner {
  border-color: rgba(255, 138, 161, 0.28);
}

.intimate-icon {
  width: 52px;
  color: var(--white);
  background: var(--pink);
  font-size: 0.82rem;
}

.mixed-icon {
  color: var(--ink);
  background:
    linear-gradient(135deg, var(--pink-soft), var(--gold-soft));
}

.mixed-choice .choice-card-inner {
  min-height: 118px;
  justify-content: center;
}

.mixed-intimacy-option {
  margin-top: 14px;
}

.mixed-intimacy-option > label {
  display: flex;
  padding: 17px 19px;
  gap: 13px;
  align-items: center;
  border: 1px solid rgba(255, 138, 161, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.mixed-intimacy-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.custom-checkbox {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  color: transparent;
  background: var(--white);
  font-size: 0.8rem;
  font-weight: 900;
}

.mixed-intimacy-option input:checked + .custom-checkbox {
  border-color: var(--pink);
  color: var(--white);
  background: var(--pink);
}

.mixed-intimacy-option input:focus-visible + .custom-checkbox {
  outline: 3px solid rgba(255, 138, 161, 0.28);
  outline-offset: 4px;
}

.mixed-intimacy-option strong,
.mixed-intimacy-option small {
  display: block;
}

.mixed-intimacy-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}


.intimate-theme-options {
  margin-top: 15px;
  padding: 20px;
  border: 1px solid rgba(255, 138, 161, 0.22);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.mini-section-heading {
  display: flex;
  margin-bottom: 13px;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.mini-section-heading span {
  font-weight: 900;
}

.mini-section-heading small {
  color: var(--muted);
  font-size: 0.75rem;
}

.intimate-theme-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.intimate-theme-grid .choice-card-inner {
  min-height: 120px;
}

.intimate-settings-hint {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.intimacy-note {
  margin-top: 14px;
  padding: 17px 20px;
  border-left: 5px solid var(--pink);
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 240, 244, 0.92),
      rgba(255, 249, 217, 0.66)
    );
}

.intimacy-note strong,
.intimacy-note p {
  display: block;
  margin: 0;
}

.intimacy-note p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
}


.compact-choice-card .choice-card-inner {
  min-height: 118px;
  justify-content: center;
}

.selection-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.progress-settings {
  padding: 22px;
  border: 1px solid rgba(255, 138, 161, 0.2);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.remember-toggle {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  cursor: pointer;
}

.remember-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.remember-toggle strong,
.remember-toggle small {
  display: block;
}

.remember-toggle small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.8rem;
}

.remember-toggle input:checked + .custom-checkbox {
  border-color: var(--pink);
  color: var(--white);
  background: var(--pink);
}

.remember-toggle input:focus-visible + .custom-checkbox {
  outline: 3px solid rgba(255, 138, 161, 0.28);
  outline-offset: 4px;
}

.saved-progress-summary {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.saved-progress-summary > div {
  padding: 14px;
  border-radius: 15px;
  text-align: center;
  background: var(--pink-soft);
}

.saved-progress-summary > div:nth-child(2) {
  background: var(--gold-soft);
}

.saved-progress-summary > div:nth-child(3) {
  background:
    linear-gradient(135deg, var(--pink-soft), var(--gold-soft));
}

.saved-progress-summary span,
.saved-progress-summary strong {
  display: block;
}

.saved-progress-summary span {
  color: var(--muted);
  font-size: 0.7rem;
}

.saved-progress-summary strong {
  margin-top: 2px;
  font-size: 1.1rem;
}

.storage-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.progress-actions {
  display: flex;
  margin-top: 16px;
  gap: 9px;
  flex-wrap: wrap;
}

.button-small {
  min-height: 44px;
  padding: 9px 16px;
  font-size: 0.8rem;
}

.button-quiet {
  border: 0;
  color: var(--muted);
  background: transparent;
}

.button-quiet:hover {
  color: var(--pink-dark);
  background: var(--pink-soft);
}

.start-section {
  display: grid;
  margin-top: 54px;
  padding: 28px;
  align-items: center;
  border: 1px solid rgba(255, 226, 91, 0.42);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(255, 249, 217, 0.8), rgba(255, 255, 255, 0.88));
  grid-template-columns: minmax(0, 0.7fr) minmax(400px, 1.3fr);
  gap: 34px;
}

.start-section h2 {
  margin: 0;
  font-size: 1.6rem;
}

.start-section p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.start-buttons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.start-player-button {
  min-height: 62px;
  padding: 10px 12px;
  border: 0;
  border-radius: 17px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.start-player-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.start-pink {
  color: var(--white);
  background: var(--pink);
}

.start-gold {
  color: var(--gold-dark);
  background: var(--gold);
}

.start-random {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.play-screen {
  max-width: 760px;
  margin: 0 auto;
}

.play-toolbar {
  display: flex;
  margin-bottom: 32px;
  align-items: center;
  justify-content: space-between;
}

.turn-counter {
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
}

.current-player {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 9px 18px 9px 9px;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(52, 47, 49, 0.08);
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.current-player-photo {
  width: 54px;
  height: 54px;
  padding: 3px;
  border-radius: 50%;
  background: var(--pink);
}

.current-player.is-gold .current-player-photo {
  background: var(--gold);
}

.current-player-photo img {
  display: block;
  width: 100%;
  height: 100%;
  border: 3px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
}

.current-player span,
.current-player strong {
  display: block;
}

.current-player span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 750;
}

.current-player strong {
  font-size: 1rem;
}

.question-card {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  padding: 36px 42px;
  border: 1.5px solid rgba(255, 138, 161, 0.35);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 240, 244, 0.98), rgba(255, 255, 255, 0.94));
  box-shadow: var(--shadow);
}

.question-card.is-dare {
  border-color: rgba(255, 226, 91, 0.58);
  background:
    linear-gradient(145deg, rgba(255, 249, 217, 0.98), rgba(255, 255, 255, 0.94));
}

.question-card::before {
  position: absolute;
  top: -90px;
  right: -90px;
  width: 220px;
  height: 220px;
  border: 35px solid rgba(255, 138, 161, 0.1);
  border-radius: 50%;
  content: "";
}

.question-card.is-dare::before {
  border-color: rgba(255, 226, 91, 0.18);
}

.question-card.is-intimate {
  box-shadow:
    var(--shadow),
    inset 0 5px 0 rgba(255, 138, 161, 0.62);
}

.card-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-type,
.card-level {
  display: inline-flex;
  min-height: 29px;
  padding: 4px 12px;
  align-items: center;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.card-type {
  color: var(--white);
  background: var(--pink);
}

.question-card.is-dare .card-type {
  color: var(--gold-dark);
  background: var(--gold);
}

.card-level {
  border: 1px solid rgba(52, 47, 49, 0.08);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.card-number {
  position: relative;
  z-index: 1;
  margin-top: 42px;
  color: var(--pink-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.question-card.is-dare .card-number {
  color: var(--gold-dark);
}

.question-card h1 {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 22px 0 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.18;
  letter-spacing: -0.045em;
}

.card-tip {
  position: relative;
  z-index: 1;
  margin: 28px 0 0;
  color: var(--muted);
}

.card-progress {
  position: absolute;
  z-index: 1;
  right: 42px;
  bottom: 32px;
  left: 42px;
}

.card-progress > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.72rem;
}

.progress-track {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(52, 47, 49, 0.08);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--pink);
  transition: width 220ms ease;
}

.question-card.is-dare .progress-track span {
  background: var(--gold);
}

.play-actions {
  display: grid;
  margin-top: 18px;
  grid-template-columns: minmax(150px, 0.65fr) minmax(250px, 1.35fr);
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 56px;
  padding: 13px 22px;
  gap: 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--pink);
  box-shadow: 0 13px 30px rgba(255, 138, 161, 0.34);
}

.button-primary.is-gold {
  color: var(--gold-dark);
  background: var(--gold);
  box-shadow: 0 13px 30px rgba(255, 226, 91, 0.3);
}

.button-secondary {
  border: 1.5px solid var(--line);
  color: var(--ink);
  background: var(--white);
}

.session-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}


.result-screen {
  max-width: 820px;
  margin: 0 auto;
}

.result-panel {
  padding: 40px;
  border: 1.5px solid rgba(255, 138, 161, 0.3);
  border-radius: 32px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 240, 244, 0.96),
      rgba(255, 249, 217, 0.82)
    );
  box-shadow: var(--shadow);
  text-align: center;
}

.result-icon {
  display: grid;
  width: 70px;
  height: 70px;
  margin: 0 auto 19px;
  place-items: center;
  border: 6px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--pink);
  box-shadow: var(--shadow-soft);
  font-size: 1.7rem;
  font-weight: 900;
}

.result-panel h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

#resultSubtitle {
  max-width: 620px;
  margin: 16px auto 0;
  color: var(--muted);
}

.result-metrics {
  display: grid;
  margin-top: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.result-metrics article {
  padding: 17px 12px;
  border: 1px solid rgba(52, 47, 49, 0.07);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.74);
}

.result-metrics span,
.result-metrics strong {
  display: block;
}

.result-metrics span {
  color: var(--muted);
  font-size: 0.7rem;
}

.result-metrics strong {
  margin-top: 4px;
  font-size: 1.22rem;
}

.result-message {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.result-actions {
  display: grid;
  margin-top: 25px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.help-dialog {
  width: min(calc(100% - 30px), 590px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
}

.help-dialog::backdrop {
  background: rgba(52, 47, 49, 0.32);
  backdrop-filter: blur(5px);
}

.dialog-content {
  padding: 30px;
}

.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dialog-heading h2 {
  margin: 0;
  font-size: 1.7rem;
}

.dialog-close {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: var(--pink-soft);
  font-size: 1.45rem;
  cursor: pointer;
}

.dialog-content ol {
  margin: 26px 0 18px;
  padding-left: 22px;
}

.dialog-content li + li {
  margin-top: 9px;
}

.dialog-content > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.toast {
  position: fixed;
  z-index: 20;
  right: 20px;
  bottom: 20px;
  max-width: min(380px, calc(100% - 40px));
  padding: 13px 17px;
  border: 1px solid rgba(52, 47, 49, 0.08);
  border-radius: 14px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .choice-grid-level {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-card-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .game-header {
    width: min(calc(100% - 28px), 1160px);
    grid-template-columns: 1fr auto;
  }

  .mini-brand {
    display: none;
  }

  .game-shell {
    width: min(calc(100% - 28px), var(--content-width));
    padding-top: 38px;
  }

  .player-preview {
    margin-bottom: 54px;
  }

  .player-chip {
    min-width: 0;
    width: min(44%, 210px);
    padding-right: 12px;
  }

  .player-chip img {
    width: 47px;
    height: 47px;
  }

  .choice-grid-level,
  .choice-grid-mode,
  .choice-grid-rounds,
  .intimate-theme-grid {
    grid-template-columns: 1fr;
  }

  .choice-card-inner {
    min-height: 126px;
    padding: 20px;
  }

  .start-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .start-buttons {
    grid-template-columns: 1fr;
  }

  .saved-progress-summary {
    grid-template-columns: 1fr;
  }

  .result-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .question-card {
    min-height: 430px;
    padding: 28px 24px;
  }

  .card-progress {
    right: 24px;
    bottom: 27px;
    left: 24px;
  }

  .play-actions {
    grid-template-columns: 1fr;
  }

  .play-actions .button-primary {
    order: -1;
  }
}

@media (max-width: 490px) {
  .back-link,
  .text-button {
    font-size: 0.84rem;
  }

  .setup-intro h1 {
    font-size: clamp(2.75rem, 14vw, 4rem);
  }

  .player-preview {
    gap: 7px;
  }

  .player-chip {
    padding: 8px;
    justify-content: center;
  }

  .player-chip img {
    width: 52px;
    height: 52px;
  }

  .player-chip div {
    display: none;
  }

  .versus {
    width: 36px;
    height: 36px;
  }

  .section-label,
  .mini-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .start-section {
    padding: 22px;
  }

  .play-toolbar {
    margin-bottom: 22px;
  }

  .question-card {
    min-height: 450px;
  }

  .card-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .card-number {
    margin-top: 30px;
  }

  .question-card h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .toast {
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
  }
}


.unified-safety-note {
  display: flex;
  margin-top: 34px;
  padding: 20px 22px;
  gap: 15px;
  align-items: flex-start;
  border: 1px solid rgba(255, 138, 161, 0.24);
  border-radius: 21px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 240, 244, 0.92),
      rgba(255, 249, 217, 0.72)
    );
  box-shadow: var(--shadow-soft);
}

.unified-safety-note > span {
  display: grid;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--pink);
  font-weight: 900;
}

.unified-safety-note strong,
.unified-safety-note p {
  display: block;
  margin: 0;
}

.unified-safety-note p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
}

@media (max-width: 560px) {
  .unified-safety-note {
    padding: 18px;
  }
}


.card-source {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin: 13px 0 0;
  padding: 6px 11px;
  border: 1px solid rgba(255, 138, 161, 0.22);
  border-radius: 999px;
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 800;
}

.card-source[hidden] {
  display: none;
}
