: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,
textarea {
  font: inherit;
}

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

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

.orb-pink {
  top: 12%;
  left: -120px;
  width: 320px;
  height: 320px;
  background: rgba(255, 138, 161, 0.15);
}

.orb-gold {
  right: -120px;
  bottom: 9%;
  width: 350px;
  height: 350px;
  background: rgba(255, 226, 91, 0.18);
}

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

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

.back-link {
  justify-self: start;
}

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

.mini-brand {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 900;
}

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

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

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

.game-shell {
  width: min(calc(100% - 36px), var(--content-width));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.screen {
  animation: screen-in 250ms ease;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--pink-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.setup-intro {
  max-width: 760px;
}

.setup-intro h1,
.secret-panel h1,
.audience-panel h1,
.pass-panel h1,
.claim-panel h1,
.choice-panel h1,
.event-panel h1,
.punishment-panel h1,
.final-panel h1,
.timer-card h1 {
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.setup-intro > p:last-child,
.secret-panel > p,
.audience-panel > p,
.pass-panel > p,
.choice-panel > p,
.event-panel > p,
.punishment-panel > p,
.final-panel > p,
.timer-card > p {
  color: var(--muted);
}

.rule-callout {
  display: flex;
  margin-top: 30px;
  padding: 18px 20px;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid rgba(255, 138, 161, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

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

.rule-callout strong,
.rule-callout p {
  display: block;
  margin: 0;
}

.rule-callout p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.setup-section {
  margin-top: 52px;
}

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

.section-heading span {
  color: var(--pink-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.55rem;
}

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

.time-grid {
  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: 130px;
  padding: 20px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1.5px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  text-align: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

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

.choice-card input:checked + .choice-card-inner {
  border-color: var(--pink);
  box-shadow:
    0 0 0 4px rgba(255, 138, 161, 0.12),
    var(--shadow-soft);
}

.choice-card strong,
.choice-card small {
  display: block;
}

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


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

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

.mirror-test-row {
  display: flex;
  margin-top: 14px;
  padding: 16px 17px;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(52, 47, 49, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.8);
}

.mirror-test-row strong,
.mirror-test-row small {
  display: block;
}

.mirror-test-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.audience-reminder {
  margin-top: 20px;
  padding: 15px 17px;
  border-left: 5px solid var(--gold);
  border-radius: 15px;
  color: var(--gold-dark);
  background: var(--gold-soft);
}

.audience-choice-grid {
  display: grid;
  margin-top: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.audience-route-card {
  min-height: 170px;
  padding: 20px;
  border: 1.5px solid var(--line);
  border-radius: 21px;
  color: var(--ink);
  background: var(--white);
  cursor: pointer;
  text-align: left;
}

.audience-route-card span,
.audience-route-card strong,
.audience-route-card small {
  display: block;
}

.audience-route-card span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.audience-route-card strong {
  margin-top: 6px;
  font-size: 1.08rem;
}

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

.normal-route {
  box-shadow: inset 0 5px 0 var(--pink);
}

.mirror-route {
  box-shadow: inset 0 5px 0 var(--gold);
}

.audience-display-panel {
  text-align: center;
}

.audience-display-stage {
  margin-top: 26px;
  padding: 34px 24px;
  overflow: hidden;
  border: 2px solid rgba(255, 138, 161, 0.28);
  border-radius: 26px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 240, 244, 0.96),
      rgba(255, 249, 217, 0.9)
    );
}

.audience-display-stage span,
.audience-display-stage strong,
.audience-display-stage small {
  display: block;
}

.audience-display-stage span,
.audience-display-stage small {
  color: var(--muted);
}

.audience-display-stage span {
  font-size: 0.78rem;
  font-weight: 900;
}

.audience-target-text {
  margin: 22px auto;
  overflow-wrap: anywhere;
  font-size: clamp(2.2rem, 8vw, 5.4rem);
  line-height: 1.13;
  letter-spacing: -0.045em;
  transform-origin: center;
}

.audience-target-text.is-mirrored {
  transform: scaleX(-1);
}

.audience-display-stage small {
  font-size: 0.75rem;
}

.audience-finish-button {
  width: 100%;
  margin-top: 20px;
}

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

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

.mirror-test-copy {
  color: var(--muted);
}

.mirror-test-stage {
  margin-top: 20px;
  padding: 30px 18px;
  overflow: hidden;
  border-radius: 20px;
  background:
    linear-gradient(135deg, var(--pink-soft), var(--gold-soft));
  text-align: center;
}

.mirror-test-stage strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(1.8rem, 7vw, 3.7rem);
  line-height: 1.15;
  transform-origin: center;
}

.mirror-test-stage strong.is-mirrored {
  transform: scaleX(-1);
}

.mirror-test-actions {
  display: grid;
  margin-top: 15px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.toggle-row {
  display: flex;
  padding: 16px 17px;
  gap: 13px;
  align-items: flex-start;
  border: 1px solid rgba(52, 47, 49, 0.08);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.toggle-row 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;
}

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

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

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

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

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

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

.risk-rule {
  margin-top: 52px;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 240, 244, 0.93),
      rgba(255, 249, 217, 0.8)
    );
  box-shadow: var(--shadow-soft);
}

.risk-rule h2 {
  margin: 0;
  font-size: 1.7rem;
}

.risk-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.risk-grid article {
  padding: 19px;
  border: 1px solid rgba(52, 47, 49, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.75);
}

.risk-grid span,
.risk-grid strong {
  display: block;
}

.risk-grid span {
  color: var(--muted);
  font-size: 0.74rem;
}

.risk-grid strong {
  margin-top: 3px;
  font-size: 1.05rem;
}

.risk-grid p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.button {
  display: inline-flex;
  min-height: 54px;
  padding: 13px 22px;
  gap: 11px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
  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.32);
}

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

.start-button {
  width: 100%;
  margin-top: 28px;
}

.secret-panel,
.audience-panel,
.pass-panel,
.claim-panel,
.choice-panel,
.event-panel,
.punishment-panel,
.final-panel {
  padding: 36px;
  border: 1.5px solid rgba(255, 138, 161, 0.28);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.secret-panel,
.audience-panel,
.pass-panel,
.claim-panel,
.choice-panel,
.event-panel,
.punishment-panel,
.final-panel {
  max-width: 820px;
  margin: 0 auto;
}

.target-type-grid {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.target-input-label {
  display: block;
  margin-top: 20px;
  font-weight: 900;
}

.target-input-label span {
  display: block;
  margin-bottom: 8px;
}

.target-input-label textarea {
  width: 100%;
  resize: vertical;
  padding: 16px;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: var(--white);
  outline: none;
}

.target-input-label textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 138, 161, 0.12);
}

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

.pass-panel,
.final-panel {
  text-align: center;
}

.cover-icon {
  display: grid;
  width: 82px;
  height: 82px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-dark);
  background: var(--gold);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.pass-panel .button {
  margin-top: 18px;
}

.challenge-toolbar {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.challenge-status {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--gold-dark);
  background: var(--gold-soft);
  font-size: 0.75rem;
  font-weight: 900;
}

.timer-card {
  padding: 34px;
  border-radius: 30px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 240, 244, 0.95),
      rgba(255, 249, 217, 0.86)
    );
  box-shadow: var(--shadow);
  text-align: center;
}

.timer-card strong {
  display: block;
  margin: 24px 0 10px;
  font-size: clamp(4rem, 15vw, 8rem);
  line-height: 1;
  letter-spacing: -0.08em;
}

.caught-grid {
  display: grid;
  margin-top: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.caught-button {
  min-height: 150px;
  padding: 22px;
  border: 0;
  border-radius: 24px;
  cursor: pointer;
}

.caught-button span,
.caught-button strong {
  display: block;
}

.caught-button span {
  font-size: 0.76rem;
  font-weight: 800;
}

.caught-button strong {
  margin-top: 5px;
  font-size: 1.25rem;
}

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

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

.draw-button {
  width: 100%;
  margin-top: 12px;
}

.target-reveal {
  margin-top: 24px;
  padding: 25px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, var(--pink-soft), var(--gold-soft));
}

.target-reveal span,
.target-reveal strong {
  display: block;
}

.target-reveal span {
  color: var(--muted);
  font-size: 0.75rem;
}

.target-reveal strong {
  margin-top: 7px;
  font-size: 1.45rem;
}

.punishment-choice-grid {
  display: grid;
  margin-top: 26px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.route-card {
  min-height: 190px;
  padding: 24px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  cursor: pointer;
  text-align: left;
}

.route-card span,
.route-card strong,
.route-card small {
  display: block;
}

.route-card span {
  font-size: 0.76rem;
  font-weight: 900;
}

.route-card strong {
  margin-top: 8px;
  font-size: 1.3rem;
}

.route-card small {
  margin-top: 7px;
  color: var(--muted);
}

.stable-route {
  color: var(--ink);
  background: var(--white);
}

.risk-route {
  color: var(--gold-dark);
  background: var(--gold-soft);
}

.event-card-grid {
  display: grid;
  margin-top: 26px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.event-card {
  aspect-ratio: 0.78;
  border: 0;
  border-radius: 22px;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,0.2), transparent 24%),
    linear-gradient(145deg, var(--pink), var(--pink-dark));
  box-shadow: var(--shadow-soft);
  font-size: 2rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease;
}

.event-card:hover {
  transform: translateY(-4px);
}

.event-card:disabled {
  cursor: default;
  opacity: 0.45;
}

.event-card.is-selected {
  opacity: 1;
  transform: translateY(-4px);
}

.event-card.is-escape {
  color: var(--gold-dark);
  background: var(--gold);
}

.event-card.is-double {
  color: var(--white);
  background: var(--pink);
}

.event-result {
  margin-top: 22px;
  padding: 22px;
  border-radius: 20px;
  background: var(--pink-soft);
  text-align: center;
}

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

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

.event-result strong {
  margin-top: 5px;
  font-size: 1.45rem;
}

.event-result p {
  color: var(--muted);
}

.punishment-card-list {
  display: grid;
  margin-top: 24px;
  gap: 13px;
}

.punishment-result-card {
  padding: 22px;
  border: 1px solid rgba(52, 47, 49, 0.08);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.punishment-result-card:nth-child(2) {
  box-shadow:
    inset 0 5px 0 var(--gold),
    var(--shadow-soft);
}

.punishment-result-card span,
.punishment-result-card strong,
.punishment-result-card small {
  display: block;
}

.punishment-result-card span {
  color: var(--pink-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.punishment-result-card strong {
  margin-top: 7px;
  font-size: 1.2rem;
}

.punishment-result-card small {
  margin-top: 6px;
  color: var(--muted);
}

.punishment-result-card button {
  margin-top: 13px;
}

.voluntary-note {
  margin-top: 18px;
  padding: 15px 17px;
  border-left: 5px solid var(--pink);
  border-radius: 15px;
  color: var(--muted);
  background: var(--pink-soft);
  font-size: 0.8rem;
}

.punishment-panel > .button {
  width: 100%;
  margin-top: 20px;
}

.final-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--pink);
  font-size: 1.6rem;
  font-weight: 900;
}

.final-targets {
  display: grid;
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  text-align: left;
}

.final-targets article {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
}

.final-targets span,
.final-targets strong {
  display: block;
}

.final-targets span {
  color: var(--muted);
  font-size: 0.74rem;
}

.final-targets strong {
  margin-top: 5px;
}

.final-punishments {
  margin-top: 15px;
  text-align: left;
}

.final-punishments p {
  margin: 6px 0 0;
  padding: 12px 15px;
  border-radius: 14px;
  background: var(--pink-soft);
}

.help-dialog {
  width: min(calc(100% - 30px), 650px);
  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: 24px 0 18px;
  padding-left: 22px;
}

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

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

.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;
  }
}

@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;
  }

  .time-grid,
  .audience-grid,
  .audience-choice-grid,
  .category-grid,
  .risk-grid,
  .target-type-grid,
  .caught-grid,
  .punishment-choice-grid,
  .final-targets {
    grid-template-columns: 1fr;
  }

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

  .secret-actions,
  .mirror-test-actions,
  .claim-actions,
  .final-actions {
    grid-template-columns: 1fr;
  }

  .secret-panel,
  .audience-panel,
  .pass-panel,
  .claim-panel,
  .choice-panel,
  .event-panel,
  .punishment-panel,
  .final-panel,
  .timer-card {
    padding: 25px 21px;
  }

  .setup-intro h1,
  .secret-panel h1,
  .audience-panel h1,
  .pass-panel h1,
  .claim-panel h1,
  .choice-panel h1,
  .event-panel h1,
  .punishment-panel h1,
  .final-panel h1,
  .timer-card h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }
}

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

  .section-heading,
  .mirror-test-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .mirror-test-row .button {
    width: 100%;
  }

  .event-card-grid {
    gap: 8px;
  }

  .event-card {
    border-radius: 16px;
  }

  .timer-card strong {
    font-size: 4.6rem;
  }
}


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

@media (max-width: 760px) {
  .punishment-simple-grid {
    grid-template-columns: 1fr;
  }
}
