:root {
  --who-ink: #19224b;
  --who-muted: #68708d;
  --who-pink: #ff4f8d;
  --who-coral: #ff716f;
  --who-cyan: #3ecbd0;
  --who-mint: #65d7ae;
  --who-yellow: #ffd65c;
  --who-paper: #fffdf8;
}

body:has(.who-answer-app),
body:has(.who-answer-home) {
  background:
    linear-gradient(rgba(255, 252, 245, 0.84), rgba(255, 252, 245, 0.84)),
    url("/assets/who-answer/who-answer-bg.webp?v=20260724-who-answer-1") center top / cover fixed;
}

.who-answer-home {
  background: transparent;
}

.who-answer-home-hero {
  min-height: min(780px, calc(100vh - 92px));
  align-items: center;
}

.who-answer-home-title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.who-answer-home-title img {
  flex: 0 0 auto;
  border: 5px solid #fff;
  border-radius: 28px;
  box-shadow: 0 16px 34px rgba(37, 47, 91, 0.16);
}

.who-answer-home-title h1 {
  margin: 4px 0 0;
  color: var(--who-ink);
  font-size: clamp(2.5rem, 6vw, 5.2rem);
  line-height: 1.03;
}

.who-answer-home .eyebrow {
  color: #d72768;
  background: #fff1f6;
  border-color: #ffc4da;
}

.who-answer-app {
  width: min(1480px, calc(100% - 28px));
  min-height: calc(100vh - 24px);
  margin: 12px auto;
  padding-bottom: 28px;
  color: var(--who-ink);
}

.who-answer-app > .topbar {
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(37, 47, 91, 0.09);
}

.who-answer-app > .topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--who-pink), var(--who-yellow), var(--who-mint), #70a8ff);
}

.who-answer-app .topbar .title h1 {
  color: var(--who-ink);
  letter-spacing: 0;
}

.who-answer-app .topbar .badge {
  color: #9d1f52;
  background: #fff0f5;
  border-color: #ffc3d7;
}

.who-answer-lobby {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 16px;
}

.who-answer-lobby > .panel {
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(34, 45, 85, 0.11);
}

.who-answer-lobby-main {
  position: relative;
  padding-top: 92px;
  overflow: hidden;
}

.who-answer-lobby-main::before,
.who-answer-lobby-settings::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--who-pink), var(--who-yellow), var(--who-mint), #74a9ff);
}

.who-answer-lobby-code {
  position: absolute;
  top: 20px;
  right: 22px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 16px;
  color: #fff;
  background: var(--who-ink);
  border-radius: 8px;
}

.who-answer-lobby-code span {
  font-size: 0.75rem;
  font-weight: 800;
}

.who-answer-lobby-code strong {
  font-size: 1.55rem;
  letter-spacing: 0.12em;
}

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

.who-player-grid > div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 8px 12px;
  background: #fffaf5;
  border: 1px solid #eee5df;
  border-radius: 8px;
}

.who-player-grid > div.is-away {
  opacity: 0.55;
}

.who-player-grid span {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who-player-grid b,
.who-player-grid small {
  grid-column: 3;
  color: #a22556;
  font-size: 0.72rem;
}

.who-answer-lobby-settings {
  position: relative;
}

.who-cycle-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.who-cycle-picker button {
  display: grid;
  gap: 3px;
  min-height: 72px;
  place-content: center;
  color: var(--who-ink);
  background: #fff;
  border: 2px solid #e4e1e7;
  border-radius: 8px;
  box-shadow: none;
}

.who-cycle-picker button:hover {
  transform: none;
  border-color: #ff9cbe;
}

.who-cycle-picker button.is-selected {
  color: #901f4d;
  background: #fff0f5;
  border-color: var(--who-pink);
  box-shadow: 0 0 0 4px rgba(255, 79, 141, 0.1);
}

.who-cycle-picker strong {
  font-size: 1.08rem;
}

.who-cycle-picker span {
  color: var(--who-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.who-mode-grid {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.who-mode-button {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  text-align: left;
  color: var(--who-ink);
  background: #fff;
  border: 1px solid #e5e1e8;
  border-radius: 8px;
  box-shadow: none;
}

.who-mode-button:hover {
  transform: none;
  border-color: #ff93b8;
}

.who-mode-button.is-selected {
  color: #8b1745;
  background: #fff0f5;
  border: 2px solid var(--who-pink);
  box-shadow: 0 6px 16px rgba(255, 79, 141, 0.13);
}

.who-mode-button strong {
  font-size: 1rem;
}

.who-mode-button span {
  color: var(--who-muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.who-answer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 14px;
  align-items: start;
}

.who-answer-board {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.who-answer-side {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 12px;
}

.who-progress {
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 72px;
  padding: 12px 20px;
  color: var(--who-ink);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(38, 48, 90, 0.09);
}

.who-progress-copy {
  display: grid;
  gap: 2px;
}

.who-progress-copy span {
  color: #c32662;
  font-size: 0.74rem;
  font-weight: 900;
}

.who-progress-copy strong {
  white-space: nowrap;
  font-size: 1.1rem;
}

.who-progress-steps {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.who-progress-steps i {
  min-width: 5px;
  flex: 1 1 0;
  height: 9px;
  background: #ece9ef;
  border-radius: 5px;
}

.who-progress-steps i.is-done {
  background: var(--who-mint);
}

.who-progress-steps i.is-current {
  background: var(--who-pink);
  box-shadow: 0 0 0 4px rgba(255, 79, 141, 0.13);
}

.who-role-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(38, 48, 90, 0.09);
}

.who-role-banner > div {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 3px 9px;
  min-width: 0;
  padding: 8px 12px;
  background: #f7f6f8;
  border-radius: 7px;
}

.who-role-banner > div:last-child {
  background: #eafaf7;
}

.who-role-banner > div.is-self {
  box-shadow: inset 0 0 0 2px var(--who-pink);
}

.who-role-banner > div > span {
  grid-column: 2;
  color: var(--who-muted);
  font-size: 0.68rem;
  font-weight: 900;
}

.who-role-banner > div > .who-avatar {
  grid-row: 1 / span 2;
}

.who-role-banner > div > strong {
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who-role-banner > i {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  justify-self: center;
  color: #fff;
  background: var(--who-cyan);
  border-radius: 50%;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 1000;
}

.who-topic {
  position: relative;
  min-height: 155px;
  padding: 22px 132px 20px 26px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.96);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(37, 47, 91, 0.09);
}

.who-topic::after {
  content: "?";
  position: absolute;
  right: 24px;
  top: 50%;
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  transform: translateY(-50%) rotate(6deg);
  color: #fff;
  background: var(--who-cyan);
  border: 7px solid #e7ffff;
  border-radius: 22px;
  font-size: 2.6rem;
  font-weight: 1000;
  box-shadow: 0 8px 20px rgba(62, 203, 208, 0.26);
}

.who-topic > div {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.who-topic > div span,
.who-topic > div b {
  padding: 4px 10px;
  color: #9a1e50;
  background: #fff0f5;
  border-radius: 5px;
  font-size: 0.72rem;
}

.who-topic > div b {
  color: #166f72;
  background: #e9fbf9;
}

.who-topic h2 {
  max-width: 900px;
  margin: 0;
  color: var(--who-ink);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  line-height: 1.45;
}

.who-topic-notice {
  margin: 10px 0 0;
  color: #168177;
  font-weight: 800;
}

.who-topic-change {
  position: absolute;
  right: 122px;
  bottom: 14px;
  width: auto;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.75rem;
}

.who-phase,
.who-final {
  min-height: 420px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(37, 47, 91, 0.11);
}

.who-phase > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ece8eb;
}

.who-phase > header span {
  color: #bd255d;
  font-size: 0.74rem;
  font-weight: 900;
}

.who-phase > header h2 {
  margin: 2px 0 0;
  color: var(--who-ink);
  font-size: 1.35rem;
}

.who-phase > header > strong {
  padding: 7px 12px;
  color: #8e1e4b;
  background: #fff0f5;
  border-radius: 6px;
  white-space: nowrap;
}

.who-guidance {
  margin: 16px 0;
  color: #4f5878;
  font-weight: 700;
}

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

.who-topic-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto minmax(74px, 1fr);
  gap: 8px;
  min-height: 146px;
  padding: 15px;
  text-align: left;
  color: var(--who-ink);
  background: #fffdf8;
  border: 2px solid #e6e2e5;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(31, 41, 80, 0.08);
}

button.who-topic-option:hover {
  transform: translateY(-2px);
  border-color: #ff9cbe;
}

.who-topic-option.is-selected {
  background: #fff4f8;
  border-color: var(--who-pink);
  box-shadow: 0 0 0 4px rgba(255, 79, 141, 0.11), 0 10px 24px rgba(31, 41, 80, 0.1);
}

.who-topic-option > span {
  align-self: center;
  color: #a42054;
  font-size: 0.72rem;
  font-weight: 900;
}

.who-topic-option > b {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  color: #fff;
  background: var(--who-cyan);
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 0.72rem;
}

.who-topic-option > strong,
.who-topic-option > label {
  grid-column: 2;
  grid-row: 2;
  align-self: center;
  overflow-wrap: anywhere;
  font-size: 1.02rem;
  line-height: 1.5;
}

.who-custom-topic {
  cursor: text;
}

.who-custom-topic > label {
  align-self: start;
  font-size: 0.78rem;
  font-weight: 900;
}

.who-custom-topic input {
  grid-column: 2;
  grid-row: 2;
  align-self: end;
  min-width: 0;
  color: var(--who-ink);
  background: #fff;
  border: 2px solid #dfdce5;
  font-weight: 800;
}

.who-topic-selection > #selectTopicBtn,
.who-voting > #submitVoteBtn {
  display: block;
  width: min(360px, 100%);
  margin: 20px auto 0;
}

.who-answer-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 18px;
  background: #fff8ed;
  border: 1px solid #f1dfc4;
  border-radius: 8px;
}

.who-answer-compose input {
  min-height: 54px;
  color: var(--who-ink);
  background: #fff;
  border: 2px solid #dfdce5;
  font-size: 1.05rem;
  font-weight: 800;
}

.who-answer-compose input:focus {
  border-color: var(--who-pink);
  box-shadow: 0 0 0 4px rgba(255, 79, 141, 0.12);
}

.who-answer-compose button {
  min-width: 180px;
}

.who-own-answer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff8ed;
  border-left: 5px solid var(--who-yellow);
  border-radius: 6px;
}

.who-own-answer span {
  color: var(--who-muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.who-own-answer strong {
  overflow-wrap: anywhere;
  color: var(--who-ink);
  font-size: 1.18rem;
}

.who-own-answer button {
  width: auto;
  padding: 7px 12px;
}

.who-own-answer.compact {
  margin: 14px 0;
}

.who-waiting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.who-waiting-grid > div {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  background: #f7f6f8;
  border-radius: 7px;
}

.who-waiting-grid > div.is-ready {
  background: #eafaf4;
}

.who-waiting-grid span {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who-waiting-grid b {
  grid-column: 2;
  color: var(--who-muted);
  font-size: 0.7rem;
}

.who-avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: #6d78a5;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  font-size: 0.92rem;
  font-style: normal;
  font-weight: 1000;
  box-shadow: 0 3px 8px rgba(28, 38, 75, 0.16);
}

.who-avatar.is-coral { background: #ef6c72; }
.who-avatar.is-cyan { background: #42bace; }
.who-avatar.is-mint { background: #42b989; }
.who-avatar.is-yellow { color: #694d00; background: #f0c841; }
.who-avatar.is-violet { background: #8b76d8; }
.who-avatar.is-orange { background: #ef924d; }
.who-avatar.is-blue { background: #608cd9; }
.who-avatar.is-rose { background: #d863a4; }

.who-sync {
  display: grid;
  gap: 7px;
  margin: 14px 0;
  padding: 12px;
  background: #fff8d9;
  border: 1px solid #f4d96b;
  border-radius: 8px;
}

.who-sync > span {
  color: #7f5b00;
  font-size: 0.72rem;
  font-weight: 1000;
}

.who-sync > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.who-sync b,
.who-sync small {
  color: #7a5a08;
  font-size: 0.76rem;
}

.who-match-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: start;
}

.who-answer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
}

.who-answer-card {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(78px, 1fr) auto;
  min-height: 175px;
  padding: 15px;
  text-align: left;
  color: var(--who-ink);
  background: #fffdf8;
  border: 2px solid #e6e2e5;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(31, 41, 80, 0.09);
}

.who-answer-card:hover {
  transform: translateY(-2px);
  border-color: #ff9cbe;
}

.who-answer-card.is-selected {
  border-color: var(--who-pink);
  box-shadow: 0 0 0 4px rgba(255, 79, 141, 0.13), 0 10px 22px rgba(31, 41, 80, 0.12);
}

.who-answer-card.is-assigned {
  background: #f0fcf8;
  border-color: var(--who-mint);
}

.who-vote-card.is-own {
  color: #74788d;
  background: repeating-linear-gradient(-45deg, #f2f1f4, #f2f1f4 8px, #eceaee 8px, #eceaee 16px);
  border-color: #d4d1d8;
  opacity: 0.78;
}

.who-vote-card:disabled:not(.is-own) {
  opacity: 1;
}

.who-answer-card > span {
  color: var(--who-muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.who-answer-card > strong {
  align-self: center;
  overflow-wrap: anywhere;
  font-size: 1.12rem;
  line-height: 1.45;
}

.who-answer-card > b {
  color: #a42356;
  font-size: 0.76rem;
}

.who-candidates {
  padding-left: 16px;
  border-left: 1px solid #ebe7ea;
}

.who-candidates h3 {
  margin: 0 0 9px;
  font-size: 0.9rem;
}

.who-candidates > div {
  display: grid;
  gap: 7px;
}

.who-candidate {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 6px 8px;
  color: var(--who-ink);
  text-align: left;
  background: #fff;
  border: 1px solid #e3dfe5;
  border-radius: 7px;
  box-shadow: none;
}

.who-candidate:hover {
  transform: none;
  border-color: var(--who-cyan);
}

.who-candidate.is-used {
  color: #68708d;
  background: #f2f8f6;
  border-color: #a9ddcb;
}

.who-candidate span {
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who-candidate b {
  font-size: 0.65rem;
}

.who-matching > #submitGuessesBtn {
  display: block;
  width: min(360px, 100%);
  margin: 20px auto 0;
}

.who-empty {
  grid-column: 1 / -1;
  padding: 24px;
  text-align: center;
  color: #47766d;
  background: #eafaf4;
  border-radius: 8px;
  font-weight: 800;
}

.who-submitted-wait {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  padding: 28px;
  text-align: center;
  color: #26695e;
  background: #eafaf4;
  border-radius: 8px;
}

.who-reveal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.who-reveal-card {
  display: grid;
  grid-template-rows: minmax(105px, 1fr) auto;
  min-height: 180px;
  overflow: hidden;
  background: #fffdf8;
  border: 2px solid #e5e0e5;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(12px) scale(0.97);
  transition: opacity 260ms ease, transform 360ms cubic-bezier(0.2, 0.9, 0.25, 1.25), border-color 260ms ease;
}

.who-reveal-card.is-revealed {
  opacity: 1;
  transform: none;
  border-color: #6ed5c1;
}

.who-reveal-card.is-parent-answer.is-revealed {
  border-color: var(--who-pink);
  box-shadow: 0 0 0 4px rgba(255, 79, 141, 0.12), 0 14px 28px rgba(31, 41, 80, 0.13);
}

.who-reveal-front {
  display: grid;
  gap: 8px;
  place-content: center;
  padding: 15px;
  text-align: center;
}

.who-reveal-front span {
  color: var(--who-muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.who-reveal-front strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.who-reveal-front small {
  color: #a42356;
  font-weight: 900;
}

.who-reveal-answer {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 57px;
  padding: 8px 12px;
  color: #fff;
  background: var(--who-ink);
}

.who-reveal-answer span {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who-reveal-answer b {
  grid-column: 2;
  color: var(--who-yellow);
  font-size: 0.66rem;
}

.who-voter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 45px;
  padding: 7px 9px;
  background: #f7f6f8;
}

.who-voter-list span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #4f5878;
  font-size: 0.66rem;
  font-weight: 800;
}

.who-voter-list .who-avatar {
  width: 22px;
  height: 22px;
  border-width: 2px;
  font-size: 0.58rem;
}

.who-voter-list.is-empty {
  align-items: center;
  color: var(--who-muted);
  font-size: 0.7rem;
}

.who-all-found {
  display: grid;
  gap: 3px;
  margin: 16px 0 0;
  padding: 12px 16px;
  text-align: center;
  color: #802047;
  background: #fff0f5;
  border: 2px solid #ff9cbe;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.who-all-found.is-visible,
.who-round-result.is-complete .who-all-found {
  opacity: 1;
  transform: none;
}

.who-all-found span {
  font-size: 0.72rem;
  font-weight: 1000;
}

.who-all-found strong {
  font-size: 1.08rem;
}

.who-round-summary {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
}

.who-round-result.is-complete .who-round-summary,
.who-round-summary.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.who-score-breakdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.who-score-breakdown > div {
  min-width: 100px;
  padding: 8px 12px;
  text-align: center;
  background: #f5f4f6;
  border-radius: 6px;
}

.who-score-breakdown span {
  display: block;
  color: var(--who-muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.who-score-breakdown strong {
  color: #a92258;
}

.who-score-breakdown .is-total {
  color: #fff;
  background: var(--who-pink);
}

.who-score-breakdown .is-total span,
.who-score-breakdown .is-total strong {
  color: #fff;
}

.who-score-breakdown .is-penalty {
  background: #fff0f5;
  box-shadow: inset 0 0 0 1px #ff9cbe;
}

.who-score-breakdown .is-penalty strong {
  color: #b52358;
}

.who-round-summary > button {
  width: min(360px, 100%);
  margin: 0 auto;
}

.who-scoreboard,
.who-status-list {
  padding: 14px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(37, 47, 91, 0.09);
}

.who-scoreboard h2,
.who-status-list h2 {
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.who-scoreboard > div,
.who-status-list > div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 5px 4px;
  border-top: 1px solid #ece9ec;
}

.who-scoreboard > div.is-self {
  margin: 0 -5px;
  padding: 5px 9px;
  background: #fff0f5;
  border-radius: 6px;
}

.who-scoreboard span,
.who-status-list b {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.who-status-list > div {
  grid-template-columns: 10px minmax(0, 1fr) auto;
}

.who-status-list > div > span {
  width: 7px;
  height: 7px;
  background: #c8c7ce;
  border-radius: 50%;
}

.who-status-list > div > span.is-online {
  background: var(--who-mint);
}

.who-status-list small {
  color: var(--who-muted);
  font-size: 0.66rem;
}

.who-final {
  background: rgba(255, 255, 255, 0.96);
}

.who-final-title {
  padding: 18px;
  text-align: center;
  background: #fff3d2;
  border-radius: 8px;
}

.who-final-title span {
  color: #aa5d00;
  font-size: 0.74rem;
  font-weight: 900;
}

.who-final-title h2 {
  margin: 3px 0;
  color: var(--who-ink);
  font-size: 2rem;
}

.who-final-title p {
  margin: 0;
  color: #6b6470;
}

.who-ranking {
  display: grid;
  gap: 8px;
  width: min(680px, 100%);
  margin: 18px auto;
}

.who-ranking > div {
  display: grid;
  grid-template-columns: 52px 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 14px;
  background: #f7f6f8;
  border-radius: 7px;
}

.who-ranking > div.is-winner {
  background: #fff1c5;
  border: 2px solid #efc34a;
}

.who-ranking > div > b {
  color: #8f2853;
}

.who-ranking > div > span {
  font-weight: 900;
}

.who-ranking > div > strong {
  color: #a41f55;
  font-size: 1.15rem;
}

.who-awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}

.who-awards > div {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 10px 14px;
  background: #f5fbfa;
  border-left: 4px solid var(--who-cyan);
  border-radius: 6px;
}

.who-awards i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--who-cyan);
  border-radius: 50%;
  font-style: normal;
  font-weight: 1000;
}

.who-awards span {
  font-weight: 900;
}

.who-awards small {
  display: block;
  color: var(--who-muted);
  font-size: 0.66rem;
}

.who-awards strong {
  color: #98214f;
}

.who-final > #nextGameBtn {
  display: block;
  width: min(360px, 100%);
  margin: 0 auto;
}

@media (max-width: 980px) {
  .who-answer-layout {
    grid-template-columns: 1fr;
  }

  .who-answer-side {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .who-match-workspace {
    grid-template-columns: 1fr;
  }

  .who-candidates {
    padding: 12px 0 0;
    border-top: 1px solid #ebe7ea;
    border-left: 0;
  }

  .who-candidates > div {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }
}

@media (max-width: 760px) {
  body:has(.who-answer-app),
  body:has(.who-answer-home) {
    background-attachment: scroll;
  }

  .who-answer-app {
    width: min(100% - 14px, 720px);
    margin-top: 7px;
  }

  .who-answer-lobby {
    grid-template-columns: 1fr;
  }

  .who-answer-lobby-main {
    padding-top: 84px;
  }

  .who-player-grid,
  .who-awards {
    grid-template-columns: 1fr;
  }

  .who-progress {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .who-topic {
    min-height: 140px;
    padding: 18px 78px 18px 18px;
  }

  .who-topic::after {
    right: 14px;
    width: 54px;
    height: 54px;
    border-width: 5px;
    border-radius: 16px;
    font-size: 1.8rem;
  }

  .who-topic-change {
    position: static;
    margin-top: 12px;
  }

  .who-phase,
  .who-final {
    padding: 15px;
  }

  .who-answer-compose {
    grid-template-columns: 1fr;
  }

  .who-answer-compose button {
    min-width: 0;
  }

  .who-own-answer {
    grid-template-columns: 1fr;
  }

  .who-answer-cards,
  .who-reveal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .who-answer-side {
    grid-template-columns: 1fr;
  }

  .who-topic-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .who-answer-home-title {
    align-items: flex-start;
  }

  .who-answer-home-title img {
    width: 82px;
    height: 82px;
    border-radius: 20px;
  }

  .who-answer-home-title h1 {
    font-size: 2.25rem;
  }

  .who-answer-cards,
  .who-reveal-grid {
    grid-template-columns: 1fr;
  }

  .who-role-banner {
    grid-template-columns: 1fr;
  }

  .who-role-banner > i {
    width: 30px;
    height: 30px;
  }

  .who-sync > div {
    grid-template-columns: 1fr;
  }
}
