: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;
  --green: #4fa977;
  --green-soft: #ecfaf2;
  --shadow: 0 22px 65px 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.17), transparent 28rem),
    radial-gradient(circle at 92% 18%, rgba(255, 226, 91, 0.21), transparent 28rem),
    linear-gradient(180deg, #fff8fa 0%, var(--cream) 60%, #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-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

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

.shape-gold {
  right: -100px;
  bottom: 90px;
  width: 245px;
  height: 245px;
  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: 780px;
  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.1rem);
  line-height: 1;
  letter-spacing: -0.065em;
}

.setup-intro > p:last-child {
  max-width: 630px;
  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;
}

.switch-mark {
  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);
  font-weight: 900;
}

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

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

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

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

.round-grid {
  grid-template-columns: repeat(3, 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: 166px;
  padding: 24px 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,
.rule-mark {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 15px;
  color: var(--pink-dark);
  background: var(--pink-soft);
  font-size: 0.85rem;
  font-weight: 900;
}

.category-grid .choice-card:nth-child(even) .choice-icon,
.rule-grid .choice-card:nth-child(2) .rule-mark {
  color: var(--gold-dark);
  background: var(--gold-soft);
}

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

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

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

.rule-card .choice-card-inner {
  min-height: 132px;
}

.round-card .choice-card-inner {
  min-height: 112px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.round-card strong {
  font-size: 1.45rem;
}

.start-panel {
  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(430px, 1.3fr);
  gap: 34px;
}

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

.start-panel 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: 790px;
  margin: 0 auto;
}

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

.score-panel {
  display: flex;
  padding: 7px 14px;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
}

.score-panel strong {
  color: var(--pink-dark);
}

.round-progress {
  margin-bottom: 18px;
}

.round-copy {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

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

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, var(--pink), var(--gold));
  transition: width 240ms ease;
}

.role-card,
.prompt-card,
.ready-card,
.timer-card,
.result-card {
  padding: 38px 42px;
  border: 1.5px solid rgba(255, 138, 161, 0.3);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255, 240, 244, 0.96), rgba(255, 255, 255, 0.95));
  box-shadow: var(--shadow);
}

.role-card,
.ready-card {
  text-align: center;
}

.role-card h1,
.ready-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

.role-players {
  display: flex;
  margin: 34px 0 28px;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.role-person {
  display: flex;
  min-width: 190px;
  padding: 14px 20px 14px 14px;
  gap: 13px;
  align-items: center;
  border: 1px solid rgba(52, 47, 49, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.role-person img {
  width: 58px;
  height: 58px;
  border: 4px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
}

.role-person-actor img {
  outline: 4px solid var(--pink);
}

.role-person-guesser img {
  outline: 4px solid var(--gold);
}

.role-person span,
.role-person strong {
  display: block;
  text-align: left;
}

.role-person span {
  color: var(--muted);
  font-size: 0.68rem;
}

.role-person strong {
  font-size: 1rem;
}

.role-arrow {
  color: var(--pink-dark);
  font-size: 1.5rem;
  font-weight: 900;
}

.role-note,
.ready-card p {
  margin: 0;
  color: var(--muted);
}

.role-button,
.ready-button {
  min-width: min(100%, 360px);
  margin-top: 26px;
}

.prompt-card {
  position: relative;
  overflow: hidden;
}

.prompt-card::before {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 210px;
  height: 210px;
  border: 34px solid rgba(255, 226, 91, 0.15);
  border-radius: 50%;
  content: "";
}

.card-header,
.timer-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.category-badge,
.question-number {
  display: inline-flex;
  min-height: 29px;
  padding: 4px 12px;
  align-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

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

.question-number {
  border: 1px solid rgba(52, 47, 49, 0.08);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.1em;
}

.only-actor {
  position: relative;
  z-index: 1;
  margin: 48px 0 0;
  color: var(--pink-dark);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.13em;
}

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

.prompt-note {
  position: relative;
  z-index: 1;
  margin: 25px 0 0;
  color: var(--muted);
}

.prompt-actions {
  position: relative;
  z-index: 1;
  display: grid;
  margin-top: 34px;
  grid-template-columns: minmax(140px, 0.65fr) minmax(240px, 1.35fr);
  gap: 12px;
}

.ready-card {
  padding-top: 65px;
  padding-bottom: 65px;
}

.timer-card {
  border-color: rgba(255, 226, 91, 0.46);
  background:
    linear-gradient(145deg, rgba(255, 249, 217, 0.93), rgba(255, 255, 255, 0.96));
}

.timer-top h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.timer-display {
  display: grid;
  width: min(100%, 310px);
  aspect-ratio: 1;
  margin: 34px auto 24px;
  place-items: center;
  border: 18px solid rgba(255, 138, 161, 0.13);
  border-radius: 50%;
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
}

.timer-display.is-warning {
  border-color: rgba(255, 226, 91, 0.34);
  color: var(--gold-dark);
}

.timer-display.is-timeout {
  width: 100%;
  aspect-ratio: auto;
  min-height: 170px;
  border-radius: 28px;
  font-size: clamp(2.2rem, 7vw, 4rem);
  letter-spacing: -0.04em;
}

.timer-reminder {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.timer-actions {
  display: grid;
  margin-top: 26px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 12px;
}

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

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

.button small {
  opacity: 0.82;
  font-size: 0.72rem;
}

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

.button-success {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 13px 30px rgba(79, 169, 119, 0.26);
}

.button-skip {
  border: 1.5px solid rgba(111, 91, 0, 0.13);
  color: var(--gold-dark);
  background: var(--gold);
}

.timeout-actions {
  margin-top: 26px;
  text-align: center;
}

.timeout-actions p {
  margin: 0 0 14px;
  color: var(--muted);
}

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

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

.result-card {
  border-color: rgba(255, 138, 161, 0.27);
  background:
    linear-gradient(145deg, rgba(255, 240, 244, 0.96), rgba(255, 249, 217, 0.78));
  text-align: center;
}

.result-photos {
  display: flex;
  margin-bottom: 24px;
  align-items: center;
  justify-content: center;
}

.result-photo {
  width: 76px;
  height: 76px;
  border: 5px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

.result-photo-pink {
  outline: 4px solid var(--pink);
}

.result-photo-gold {
  outline: 4px solid var(--gold);
}

.result-photos span {
  z-index: 1;
  display: grid;
  width: 46px;
  height: 46px;
  margin: 0 -5px;
  place-items: center;
  border: 4px solid var(--white);
  border-radius: 50%;
  color: var(--pink-dark);
  background: var(--gold);
  font-weight: 900;
}

.result-card h1 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.45rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.result-score {
  margin-top: 28px;
}

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

.result-score strong {
  color: var(--pink-dark);
  font-size: clamp(4.2rem, 12vw, 7rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.result-score span {
  margin-top: 7px;
  color: var(--muted);
  font-weight: 750;
}

.result-title-box {
  display: inline-flex;
  margin-top: 27px;
  padding: 13px 20px;
  align-items: center;
  flex-direction: column;
  border: 1px solid rgba(111, 91, 0, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
}

.result-title-box span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.result-title-box strong {
  margin-top: 2px;
  color: var(--gold-dark);
  font-size: 1.25rem;
}

.result-description {
  max-width: 590px;
  margin: 24px auto 0;
  color: var(--muted);
}

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

.result-breakdown div {
  padding: 14px 10px;
  border: 1px solid rgba(52, 47, 49, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
}

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

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

.result-breakdown strong {
  margin-top: 2px;
  font-size: 1.25rem;
}

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

.help-dialog {
  width: min(calc(100% - 30px), 600px);
  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: 820px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .rule-grid,
  .round-grid {
    grid-template-columns: 1fr;
  }

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

  .round-card .choice-card-inner {
    min-height: 92px;
  }

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

  .role-card,
  .prompt-card,
  .ready-card,
  .timer-card,
  .result-card {
    padding: 29px 24px;
  }

  .role-players {
    flex-direction: column;
  }

  .role-arrow {
    transform: rotate(90deg);
  }

  .prompt-actions,
  .timer-actions {
    grid-template-columns: 1fr;
  }

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

  .timer-display {
    width: min(100%, 270px);
  }

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

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

  .setup-intro h1 {
    font-size: clamp(2.7rem, 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;
  }

  .switch-mark {
    width: 36px;
    height: 36px;
  }

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

  .choice-card-wide {
    grid-column: auto;
  }

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

  .role-person {
    min-width: min(100%, 220px);
  }

  .timer-top,
  .card-header {
    flex-direction: column;
  }

  .timer-display {
    width: min(100%, 230px);
    border-width: 14px;
  }

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

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


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

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

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

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

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

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

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

.browser-progress-summary > div {
  padding: 14px;
  border: 1px solid rgba(52, 47, 49, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  text-align: center;
}

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

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

.browser-progress-summary strong {
  margin-top: 4px;
  font-size: 1.05rem;
}

.browser-progress-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

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

.browser-progress-actions .button {
  min-height: 42px;
  padding: 9px 15px;
  font-size: 0.78rem;
}

@media (max-width: 560px) {
  .browser-progress-summary {
    grid-template-columns: 1fr;
  }

  .browser-progress-actions .button {
    width: 100%;
  }
}
