:root {
  --ivory: #fffaf0;
  --cream: #f7ecd9;
  --champagne: #ead2ad;
  --baby-pink: #e8aaa8;
  --blush: #d88b83;
  --cherry: #a62b38;
  --ink: #35251f;
  --soft-ink: #6e5b50;
  --sage: #6f7f64;
  --blue: #536b7a;
  --gold: #b67d42;
  --shadow: rgba(71, 42, 28, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 250, 240, 0.72), rgba(255, 250, 240, 0.78)),
    repeating-linear-gradient(45deg, rgba(183, 125, 66, 0.1) 0 1px, transparent 1px 16px),
    linear-gradient(135deg, #f8e8dc, #fffaf0 42%, #f4d7c9);
  font-family: Optima, Candara, "Segoe UI", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.phone-frame {
  width: min(100%, 430px);
  height: min(860px, calc(100vh - 48px));
  height: min(860px, calc(100dvh - 48px));
  min-height: 640px;
  position: relative;
  overflow: hidden;
  display: flex;
  padding: 12px;
  border: 1px solid rgba(166, 43, 56, 0.18);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.92), transparent 38%),
    linear-gradient(180deg, #fffdf8, #f9efe1);
  box-shadow: 0 24px 70px var(--shadow);
}

.phone-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 4;
  pointer-events: none;
  border: 1px solid rgba(182, 125, 66, 0.28);
  border-radius: 24px;
}

.lace-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 18px;
  background:
    radial-gradient(circle at 10px 18px, transparent 10px, rgba(166, 43, 56, 0.2) 10.5px 11.5px, transparent 12px) 0 0 / 24px 18px repeat-x,
    linear-gradient(90deg, rgba(166, 43, 56, 0.08), rgba(182, 125, 66, 0.12));
}

#app {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 0;
  display: flex;
  padding: 42px 18px 34px;
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow-x: hidden;
  overflow-y: auto;
}

#app:has(.category-screen) {
  padding-bottom: 18px;
}

.screen {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 18px;
  overflow-wrap: anywhere;
}

.scoring-screen {
  height: 100%;
  min-height: 0;
  gap: 9px;
}

.scoring-screen .screen-heading {
  gap: 6px;
}

.scoring-meta {
  display: grid;
  gap: 5px;
}

.scoring-screen .notice {
  padding: 6px 8px;
  line-height: 1.2;
}

.scoring-screen .score-list {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: none;
}

.screen.centered {
  justify-content: center;
  text-align: center;
}

.screen-heading {
  display: grid;
  gap: 12px;
}

.lobby-screen {
  height: 100%;
  min-height: 0;
  gap: 9px;
  padding-bottom: 0;
}

.lobby-screen .screen-heading {
  gap: 7px;
}

.lobby-screen .actions {
  margin-top: 0;
  padding-bottom: 0;
}

.menu-screen {
  gap: 12px;
  padding-bottom: 0;
}

.menu-screen .screen-heading {
  gap: 10px;
}

.menu-screen .screen-heading h2 {
  font-size: 38px;
}

.menu-screen .game-card {
  grid-template-columns: 62px 1fr;
  gap: 12px;
  padding: 10px;
}

.menu-screen .game-art {
  width: 62px;
  height: 62px;
}

.menu-screen .game-copy {
  gap: 5px;
}

.menu-screen .game-copy h3 {
  font-size: 21px;
  line-height: 1.04;
}

.menu-screen .game-copy p {
  font-size: 14px;
  line-height: 1.2;
}

.menu-screen .actions {
  margin-top: auto;
  padding-bottom: 0;
}

.menu-screen .button {
  min-height: 46px;
}

.game-preview-screen {
  gap: 16px;
}

.game-preview-screen .screen-heading {
  gap: 8px;
}

.game-preview-screen .screen-heading p:last-child {
  margin-bottom: 6px;
}

.game-preview-screen .screen-heading h2 {
  font-size: clamp(30px, 8vw, 40px);
  line-height: 1.02;
}

.game-preview-screen .actions {
  padding-bottom: 16px;
}

.preview-screenshots {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.preview-shot {
  min-width: 0;
  border: 1px solid rgba(166, 43, 56, 0.14);
  border-radius: 8px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(255, 247, 236, 0.88));
  box-shadow: 0 10px 24px rgba(71, 42, 28, 0.07);
}

.preview-shot-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
}

.preview-shot-top span {
  color: var(--cherry);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preview-shot h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.05;
  margin-bottom: 8px;
}

.preview-shot-body {
  display: grid;
  gap: 6px;
}

.preview-shot-body span {
  display: block;
  min-width: 0;
  border: 1px solid rgba(182, 125, 66, 0.16);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.preview-shot p {
  margin-top: 8px;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.preview-real-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 12px;
  min-width: 0;
}

.real-preview-shot {
  min-width: 0;
}

.real-preview-phone {
  aspect-ratio: 9 / 16;
  min-height: 0;
  border: 2px solid rgba(166, 43, 56, 0.34);
  border-radius: 8px;
  padding: 9px 8px;
  background: linear-gradient(180deg, #fffdf8, #f9efe1);
  box-shadow: 0 16px 34px rgba(71, 42, 28, 0.18), 0 0 0 4px rgba(166, 43, 56, 0.04);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.real-preview-image-frame {
  aspect-ratio: auto;
  display: block;
  padding: 0;
  background: #fffaf2;
  box-shadow: 0 18px 38px rgba(71, 42, 28, 0.24), 0 0 0 4px rgba(166, 43, 56, 0.07);
}

.real-preview-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.real-progress {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  color: var(--soft-ink);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.real-status {
  margin-top: 4px;
  border: 1px solid rgba(83, 107, 122, 0.16);
  border-radius: 8px;
  padding: 4px 5px;
  color: var(--ink);
  background: rgba(255, 247, 236, 0.88);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
}

.real-kicker {
  margin-top: 0;
  color: var(--cherry);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.real-preview-phone h3 {
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.02;
}

.real-shoe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px;
  margin-top: 9px;
}

.real-choice {
  min-width: 0;
  min-height: 48px;
  border: 1px solid rgba(166, 43, 56, 0.14);
  border-radius: 8px;
  padding: 4px;
  display: grid;
  place-items: center;
  gap: 3px;
  background: rgba(255, 252, 247, 0.9);
  text-align: center;
}

.real-choice.selected {
  border-color: rgba(166, 43, 56, 0.5);
  box-shadow: 0 0 0 2px rgba(244, 194, 186, 0.55);
}

.real-shoe {
  display: block;
  width: min(48px, 100%);
  height: 26px;
  object-fit: contain;
}

.real-choice strong {
  color: var(--ink);
  font-size: 10px;
  line-height: 1.05;
}

.real-choice span {
  color: var(--soft-ink);
  font-size: 9px;
  font-weight: 800;
}

.real-helper {
  margin-top: 6px;
  color: var(--ink);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.18;
  text-align: center;
}

.real-button {
  margin-top: 6px;
  border-radius: 999px;
  padding: 5px 7px;
  color: #fffaf0;
  background: var(--cherry);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.real-button.disabled {
  opacity: 0.45;
}

.real-final-phone .real-button {
  margin-top: auto;
}

.real-shoe-row.result {
  margin-top: 10px;
}

.real-final-phone {
  justify-content: space-between;
}

.real-podium-preview {
  display: grid;
  grid-template-columns: 0.84fr 1fr 0.84fr;
  align-items: end;
  gap: 5px;
  margin-top: 16px;
}

.real-podium-place {
  min-width: 0;
  border: 1px solid rgba(166, 43, 56, 0.14);
  border-radius: 8px 8px 0 0;
  padding: 6px 4px;
  display: grid;
  justify-items: center;
  gap: 4px;
  background: rgba(255, 252, 247, 0.9);
  text-align: center;
}

.real-podium-place.first {
  min-height: 118px;
}

.real-podium-place.second {
  min-height: 92px;
}

.real-podium-place.third {
  min-height: 78px;
}

.real-podium-place span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fffaf0;
  background: var(--cherry);
  font-size: 12px;
  font-weight: 900;
}

.real-podium-place strong {
  color: var(--ink);
  font-size: 11px;
  line-height: 1.05;
}

.real-podium-place em {
  color: var(--soft-ink);
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.welcome-screen {
  text-align: center;
  padding-bottom: 18px;
}

.welcome-screen .actions {
  padding-bottom: 12px;
}

.welcome-hero {
  min-height: 310px;
  display: grid;
  align-content: end;
  gap: 6px;
  position: relative;
  padding-bottom: 24px;
}

.welcome-hero > .kicker,
.welcome-hero > h1 {
  position: relative;
  z-index: 2;
}

.welcome-line {
  min-height: 112px;
  display: grid;
  place-items: center;
  padding: 0 18px;
}

.welcome-lower-trim {
  min-height: 66px;
  position: relative;
  margin-top: -10px;
  pointer-events: none;
}

.lower-lace,
.lower-pearl {
  position: absolute;
  display: block;
}

.lower-lace {
  left: -24px;
  right: -24px;
  width: auto;
  height: 26px;
  opacity: 0.88;
  background:
    radial-gradient(circle at 13px 26px, transparent 11px, rgba(255, 255, 255, 0.92) 12px 13px, transparent 14px) 0 0 / 26px 26px repeat-x,
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 250, 240, 0.82), rgba(255, 255, 255, 0.2));
  filter: drop-shadow(0 7px 8px rgba(71, 42, 28, 0.08));
  animation: laceStreamer 5.6s ease-in-out infinite;
}

.lower-lace-a {
  top: 6px;
  transform: rotate(-3deg);
}

.lower-lace-b {
  top: 36px;
  transform: rotate(3deg);
  animation-delay: 1.1s;
}

.lower-pearl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, #f2dec6 64%, #d4aa78);
  box-shadow: 0 5px 10px rgba(71, 42, 28, 0.12);
  animation: floatPearl 4.2s ease-in-out infinite;
}

.lp-one {
  left: 42px;
  top: 18px;
}

.lp-two {
  left: 104px;
  top: 47px;
  animation-delay: 0.7s;
}

.lp-three {
  left: 50%;
  top: 20px;
  animation-delay: 1.3s;
}

.lp-four {
  right: 92px;
  top: 46px;
  animation-delay: 1.9s;
}

.lp-five {
  right: 38px;
  top: 17px;
  animation-delay: 2.5s;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 6px;
  border: 1px solid rgba(166, 43, 56, 0.22);
  border-radius: 50%;
  background: #fff7ec;
  color: var(--cherry);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 700;
  box-shadow: inset 0 0 0 8px rgba(234, 210, 173, 0.34);
}

.brand-logo-badge {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  width: min(86px, 26vw);
  height: min(86px, 26vw);
  margin: 0 auto 4px;
  border: 1px solid rgba(166, 43, 56, 0.2);
  border-radius: 50%;
  background: rgba(255, 247, 236, 0.9);
  box-shadow:
    inset 0 0 0 4px rgba(234, 210, 173, 0.28),
    0 10px 18px rgba(71, 42, 28, 0.12);
}

.brand-logo {
  display: block;
  width: 124%;
  height: 124%;
  object-fit: cover;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

h1 {
  font-size: 64px;
}

h2 {
  font-size: 42px;
}

h3 {
  font-size: 28px;
}

p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.38;
}

.kicker {
  color: var(--cherry);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.subhead {
  font-size: 17px;
  line-height: 1.34;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
  min-width: 0;
  padding-bottom: 2px;
}

.inline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button {
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #fffaf0;
  background: var(--cherry);
  font-weight: 700;
  box-shadow: 0 12px 28px rgba(166, 43, 56, 0.24);
  white-space: normal;
  overflow-wrap: anywhere;
}

.button.secondary {
  color: var(--ink);
  background: #fff7ec;
  border: 1px solid rgba(166, 43, 56, 0.18);
  box-shadow: none;
}

.button.ghost {
  color: var(--cherry);
  background: transparent;
  box-shadow: none;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.steps {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.spacious-steps {
  gap: 18px;
  margin-block: auto;
}

.host-guide-screen {
  gap: 17px;
}

.host-steps {
  gap: 11px;
}

.host-steps .step {
  padding: 12px;
}

.host-steps .step p {
  font-size: 15px;
  line-height: 1.24;
}

.step,
.panel,
.game-card,
.answer-row,
.score-row,
.scoreboard-row,
.lobby-person {
  border: 1px solid rgba(166, 43, 56, 0.14);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.84);
  box-shadow: 0 10px 28px rgba(71, 42, 28, 0.07);
}

.step {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px;
  text-align: left;
}

.step p {
  line-height: 1.22;
}

.step-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fffaf0;
  background: var(--baby-pink);
  font-weight: 800;
}

.game-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 14px;
  text-align: left;
  color: inherit;
}

.game-card.locked {
  opacity: 0.58;
}

.game-art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(182, 125, 66, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 16%, #fff 0 4px, transparent 5px),
    linear-gradient(135deg, #f4c2ba, #fff4e4);
  color: var(--cherry);
  font-size: 34px;
}

.bridal-game-art {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.95) 0 4px, transparent 5px),
    radial-gradient(circle at 84% 78%, rgba(255, 255, 255, 0.85) 0 4px, transparent 5px),
    linear-gradient(135deg, #f4c2ba, #fff4e4);
}

.wedding-game-art {
  isolation: isolate;
  background:
    linear-gradient(135deg, #fff4e4, #f4c2ba);
}

.category-game-art,
.category-wait-art {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.95) 0 4px, transparent 5px),
    radial-gradient(circle at 80% 72%, rgba(255, 255, 255, 0.8) 0 5px, transparent 6px),
    linear-gradient(135deg, #f8d6bc, #fff4e4 58%, #dfe8dc);
}

.category-card-mini {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 30px;
  height: 38px;
  border: 1px solid rgba(166, 43, 56, 0.2);
  border-radius: 6px;
  background: rgba(255, 252, 247, 0.96);
  color: var(--cherry);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(71, 42, 28, 0.1);
}

.category-card-one {
  left: 12px;
  top: 18px;
  transform: rotate(-9deg);
}

.category-card-two {
  left: 27px;
  top: 12px;
  transform: rotate(4deg);
}

.category-card-three {
  right: 12px;
  top: 19px;
  transform: rotate(10deg);
}

.category-pearl {
  width: 7px;
  height: 7px;
  z-index: 1;
}

.cp-one {
  left: 8px;
  top: 9px;
}

.cp-two {
  right: 9px;
  top: 11px;
  animation-delay: 0.8s;
}

.cp-three {
  left: 50%;
  bottom: 7px;
  animation-delay: 1.6s;
}

.menu-shoe-image {
  display: block;
  position: absolute;
  z-index: 2;
  width: 58px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 5px 7px rgba(71, 42, 28, 0.14));
}

.menu-bride-shoe {
  left: -5px;
  top: 13px;
  animation: menuBrideShoeFloat 3.8s ease-in-out infinite;
}

.menu-guest-shoe {
  right: -7px;
  bottom: 2px;
  width: 63px;
  height: 58px;
  animation: menuGuestShoeFloat 3.8s ease-in-out infinite 0.55s;
}

.wedding-pearl {
  width: 7px;
  height: 7px;
  z-index: 1;
}

.wp-one {
  left: 8px;
  top: 10px;
}

.wp-two {
  right: 9px;
  top: 12px;
  animation-delay: 0.7s;
}

.wp-three {
  left: 21px;
  bottom: 9px;
  animation-delay: 1.4s;
}

.wp-four {
  right: 24px;
  bottom: 8px;
  animation-delay: 2.1s;
}

.wp-five {
  left: 50%;
  top: 6px;
  animation-delay: 2.8s;
}

.shoe-icon,
.shoe-visual {
  position: relative;
  display: block;
}

.shoe-icon::before,
.shoe-visual::before {
  content: "";
  position: absolute;
  border-radius: 70% 12% 52% 16%;
  transform: rotate(-14deg);
}

.shoe-icon::after,
.shoe-visual::after {
  content: "";
  position: absolute;
  width: 4px;
  border-radius: 999px;
  transform: rotate(18deg);
  transform-origin: top center;
}

.shoe-icon {
  width: 28px;
  height: 28px;
}

.shoe-icon::before {
  right: 2px;
  bottom: 6px;
  width: 22px;
  height: 11px;
}

.shoe-icon::after {
  right: 3px;
  bottom: 0;
  height: 16px;
}

.bridal-shoe-mini::before,
.bridal-heel::before {
  background: #fffaf0;
  border: 1px solid rgba(166, 43, 56, 0.2);
}

.bridal-shoe-mini::after,
.bridal-heel::after {
  background: #e8cdb2;
}

.party-shoe-mini::before,
.party-heel::before {
  background: var(--cherry);
}

.party-shoe-mini::after,
.party-heel::after {
  background: #8e2532;
}

.game-copy {
  display: grid;
  gap: 10px;
}

.game-copy h3 {
  font-size: 24px;
  line-height: 1.06;
}

.game-copy p {
  line-height: 1.28;
}

.game-mark {
  position: relative;
  z-index: 2;
  color: var(--cherry);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 36px;
  font-weight: 700;
}

.wedding-screen .screen-heading h2 {
  font-size: clamp(26px, 8vw, 34px);
  line-height: 1.05;
}

.wedding-screen {
  height: 100%;
  min-height: 0;
  gap: 11px;
  padding-bottom: 10px;
}

.wedding-screen .screen-heading {
  gap: 9px;
  margin-bottom: 0;
}

.wedding-screen .shoe-matchup {
  margin-block: 4px 6px;
}

.wedding-shoe-select-screen {
  justify-content: space-between;
}

.wedding-shoe-select-screen .screen-heading p:last-child {
  font-size: 16px;
  line-height: 1.28;
}

.wedding-shoe-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 12px;
  width: 100%;
  min-width: 0;
}

.wedding-shoe-select-card {
  height: clamp(190px, 34vh, 238px);
  cursor: pointer;
}

.wedding-shoe-select-card .shoe-image {
  width: min(174px, 100%);
  height: 148px;
}

.wedding-status-slot {
  min-height: 31px;
  display: grid;
  align-items: center;
}

.wedding-status-slot:empty::before {
  content: "";
}

.wedding-status-slot .notice {
  padding: 6px 8px;
  line-height: 1.18;
}

.shoe-matchup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.results-matchup {
  margin-top: 6px;
}

.shoe-card {
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  height: clamp(196px, 31vh, 230px);
  border: 1px solid rgba(166, 43, 56, 0.14);
  border-radius: 8px;
  padding: 14px 10px;
  background: rgba(255, 252, 247, 0.9);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(71, 42, 28, 0.07);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
  overflow: hidden;
  overflow-wrap: anywhere;
}

.shoe-card strong {
  font-size: 20px;
  line-height: 1.12;
}

.shoe-card.selected {
  border-color: rgba(166, 43, 56, 0.48);
  box-shadow: 0 0 0 3px rgba(244, 194, 186, 0.5), 0 14px 32px rgba(166, 43, 56, 0.14);
}

.shoe-card.correct {
  animation: shoe-bounce 0.9s ease-in-out infinite;
  box-shadow: 0 0 0 4px rgba(244, 194, 186, 0.65), 0 0 34px rgba(166, 43, 56, 0.28);
}

.shoe-visual {
  width: 100px;
  height: 86px;
  border-radius: 12px;
}

.shoe-visual::before {
  right: 9px;
  bottom: 26px;
  width: 82px;
  height: 36px;
  transform: rotate(-10deg);
}

.shoe-visual::after {
  right: 12px;
  bottom: 5px;
  height: 56px;
  width: 8px;
  transform: rotate(14deg);
}

.bridal-heel {
  background:
    radial-gradient(circle at 24px 25px, #fffdf7 0 4px, rgba(232, 205, 178, 0.95) 5px 6px, transparent 7px),
    radial-gradient(circle at 38px 21px, #fffdf7 0 3px, rgba(232, 205, 178, 0.95) 4px 5px, transparent 6px),
    radial-gradient(circle at 52px 18px, #fffdf7 0 3px, rgba(232, 205, 178, 0.95) 4px 5px, transparent 6px),
    repeating-radial-gradient(circle at 42px 44px, transparent 0 7px, rgba(166, 43, 56, 0.08) 8px 9px, transparent 10px 15px);
  filter: drop-shadow(0 12px 16px rgba(71, 42, 28, 0.14));
}

.party-heel {
  background:
    linear-gradient(30deg, transparent 36px, rgba(255, 139, 164, 0.92) 37px 42px, transparent 43px),
    linear-gradient(-24deg, transparent 38px, rgba(255, 188, 202, 0.95) 39px 44px, transparent 45px),
    linear-gradient(80deg, transparent 44px, rgba(166, 43, 56, 0.34) 45px 48px, transparent 49px);
  filter: drop-shadow(0 12px 16px rgba(166, 43, 56, 0.18));
}

.bridal-heel::before {
  border-color: rgba(154, 119, 80, 0.22);
  border-radius: 74% 20% 42% 20%;
  background:
    radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.96) 0 7px, transparent 8px),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.34) 0 5px, rgba(232, 205, 178, 0.12) 5px 8px),
    linear-gradient(135deg, #fffdf8, #f3e4cf 62%, #e6c9aa);
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.88),
    inset -8px -5px 10px rgba(154, 119, 80, 0.12);
}

.bridal-heel::after {
  background: linear-gradient(180deg, #f4e6d2, #cda985);
  box-shadow: 0 0 0 1px rgba(154, 119, 80, 0.16);
}

.party-heel::before {
  border-radius: 68% 14% 46% 12%;
  background:
    radial-gradient(circle at 18% 65%, rgba(255, 232, 238, 0.9) 0 6px, transparent 7px),
    linear-gradient(135deg, #ffb6c9, #f06f9d 58%, #c73968);
  box-shadow:
    inset 0 4px 8px rgba(255, 255, 255, 0.38),
    inset -8px -5px 10px rgba(129, 30, 58, 0.18);
}

.party-heel::after {
  background: linear-gradient(180deg, #df4778, #8e2532);
  box-shadow: 0 0 0 1px rgba(142, 37, 50, 0.12);
}

.shoe-image {
  display: block;
  width: min(168px, 100%);
  height: 136px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(71, 42, 28, 0.14));
  animation: matchupShoeBounce 2.6s ease-in-out infinite;
}

.bride-shoe-image {
  animation-name: matchupBrideShoeBounce;
}

.guest-shoe-image {
  height: 144px;
  animation-delay: 0.35s;
}

.wedding-vote-helper {
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2px;
  text-align: center;
}

.wedding-screen .actions {
  margin-top: 2px;
  padding-bottom: 6px;
}

.category-screen {
  height: 100%;
  min-height: 0;
  gap: 10px;
  overflow: hidden;
  padding-bottom: 0;
}

.category-screen .progress-line,
.category-screen .screen-heading,
.category-screen .category-options {
  flex: 0 0 auto;
}

.category-screen .actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  flex: 0 0 auto;
  margin-top: auto;
  padding: 10px 0 0;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0), rgba(255, 250, 242, 0.96) 18%, rgba(255, 250, 242, 1));
}

.category-screen .screen-heading h2 {
  font-size: clamp(26px, 7.5vw, 34px);
  line-height: 1.05;
}

.compact-heading {
  gap: 7px;
}

.category-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  min-width: 0;
}

.category-option {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(166, 43, 56, 0.16);
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(255, 252, 247, 0.88);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
  box-shadow: 0 8px 18px rgba(71, 42, 28, 0.06);
  overflow-wrap: anywhere;
}

.category-option.active {
  border-color: rgba(166, 43, 56, 0.5);
  background: #fff7ec;
  box-shadow: 0 0 0 3px rgba(244, 194, 186, 0.42);
}

.category-rank-panel {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.category-locked-ranking {
  gap: 2px;
}

.secret-category-line {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.24;
}

.category-guess-ranking {
  flex: 1 1 auto;
  gap: 2px;
}

.category-ranking-list {
  display: grid;
  align-self: stretch;
  gap: 8px;
  flex: 1 1 auto;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding: 0 3px 8px 0;
}

.category-rank-row,
.category-result-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(166, 43, 56, 0.14);
  border-radius: 8px;
  background: rgba(255, 252, 247, 0.88);
  padding: 10px;
  box-shadow: 0 8px 18px rgba(71, 42, 28, 0.05);
}

.category-rank-row strong,
.category-result-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fffaf0;
  background: var(--baby-pink);
  font-weight: 800;
}

.rank-controls {
  display: flex;
  gap: 5px;
}

.rank-controls button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(166, 43, 56, 0.18);
  border-radius: 50%;
  background: #fff7ec;
  color: var(--cherry);
  font-weight: 900;
}

.category-results-list {
  display: grid;
  flex: 1 1 auto;
  gap: 8px;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding: 0 3px 8px 0;
}

.category-result-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.category-result-row.correct {
  border-color: rgba(111, 127, 100, 0.38);
  background: rgba(242, 248, 239, 0.88);
}

.category-wait-art {
  position: relative;
  min-height: 140px;
  border: 1px solid rgba(182, 125, 66, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

.shoe-shadow {
  fill: rgba(71, 42, 28, 0.12);
}

.bridal-pump-body {
  fill: url("#bridal-satin");
}

.bridal-pump-opening {
  fill: #fffdf8;
  stroke: rgba(154, 119, 80, 0.24);
  stroke-width: 2;
}

.bridal-toe {
  fill: rgba(255, 255, 255, 0.45);
}

.bridal-heel-piece {
  fill: #d8b792;
}

.lace-lines {
  fill: none;
  stroke: rgba(166, 43, 56, 0.16);
  stroke-linecap: round;
  stroke-width: 2.5;
}

.bridal-pearls circle {
  fill: #fffdf8;
  stroke: rgba(154, 119, 80, 0.28);
  stroke-width: 2;
}

.party-sole {
  fill: #d73e79;
}

.party-back,
.party-toe {
  fill: url("#party-pink");
}

.party-heel-piece {
  fill: #9f244f;
}

.party-strap,
.party-ankle-strap {
  fill: none;
  stroke: #ff9dbc;
  stroke-linecap: round;
  stroke-width: 9;
}

.party-ankle-strap {
  stroke-width: 7;
}

.party-buckle {
  fill: #fff0b8;
  stroke: #d89a33;
  stroke-width: 2;
}

.shoe-highlight {
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-linecap: round;
  stroke-width: 4;
}

.vote-count {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff7ec;
  color: var(--cherry);
  font-size: 13px;
  font-weight: 800;
}

.podium-list {
  display: grid;
  gap: 10px;
}

.wedding-podium {
  display: grid;
  grid-template-columns: minmax(72px, 0.72fr) minmax(82px, 0.82fr) minmax(72px, 0.72fr);
  align-items: end;
  gap: 6px;
  min-height: 226px;
  max-width: min(340px, 100%);
  width: 100%;
  margin-inline: auto;
  padding: 14px 16px 4px;
  overflow: hidden;
}

.podium-step {
  display: grid;
  align-content: end;
  gap: 8px;
  min-width: 0;
  justify-items: center;
}

.podium-name {
  display: grid;
  gap: 2px;
  min-height: 52px;
  align-content: end;
  text-align: center;
  color: var(--ink);
}

.podium-name strong {
  overflow-wrap: anywhere;
  font-size: clamp(15px, 4vw, 18px);
}

.podium-name span {
  color: var(--cherry);
  font-size: 12px;
  font-weight: 800;
}

.podium-block {
  position: relative;
  display: grid;
  place-items: center;
  gap: 4px;
  width: 100%;
  min-height: 98px;
  padding: 18px 8px 14px;
  border: 1px solid rgba(154, 119, 80, 0.24);
  border-radius: 8px 8px 5px 5px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 0 8%, transparent 8% 18%, rgba(180, 145, 105, 0.12) 18% 26%, transparent 26% 38%, rgba(255, 255, 255, 0.42) 38% 48%, transparent 48% 62%, rgba(180, 145, 105, 0.1) 62% 72%, transparent 72% 86%, rgba(255, 255, 255, 0.36) 86% 100%),
    linear-gradient(135deg, #fffaf0, #f5e9d7 58%, #ead8bf);
  box-shadow:
    0 16px 30px rgba(71, 42, 28, 0.12),
    inset 8px 0 18px rgba(255, 255, 255, 0.42),
    inset -8px 0 16px rgba(139, 96, 60, 0.08);
}

.podium-block::before {
  content: "";
  position: absolute;
  top: -9px;
  left: -8px;
  right: -8px;
  height: 16px;
  border: 1px solid rgba(154, 119, 80, 0.22);
  border-radius: 6px 6px 4px 4px;
  background: linear-gradient(180deg, #fffdf8, #efe0c9);
  box-shadow: 0 5px 10px rgba(71, 42, 28, 0.08);
  opacity: 1;
}

.podium-block::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -7px;
  height: 12px;
  border: 1px solid rgba(154, 119, 80, 0.2);
  border-radius: 3px;
  background: linear-gradient(180deg, #f8ecd9, #e8d3b7);
  box-shadow: 0 7px 12px rgba(71, 42, 28, 0.08);
}

.podium-medal {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-top: -2px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: #5b341e;
  font-family: var(--display);
  font-size: 25px;
  line-height: 1;
  box-shadow:
    0 8px 16px rgba(71, 42, 28, 0.16),
    inset 0 3px 6px rgba(255, 255, 255, 0.65);
}

.podium-medal::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 9px;
  width: 13px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: rotate(-25deg);
}

.podium-medal-1 {
  background: linear-gradient(135deg, #fff3a8, #e6ac36 58%, #b9781f);
}

.podium-medal-2 {
  background: linear-gradient(135deg, #ffffff, #cfd3d8 58%, #8f979f);
}

.podium-medal-3 {
  background: linear-gradient(135deg, #ffd6a6, #c47a3a 58%, #8a4c27);
}

.podium-step.first .podium-block {
  min-height: 138px;
  border-color: rgba(154, 119, 80, 0.3);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.48) 0 8%, transparent 8% 18%, rgba(180, 145, 105, 0.13) 18% 26%, transparent 26% 38%, rgba(255, 255, 255, 0.48) 38% 48%, transparent 48% 62%, rgba(180, 145, 105, 0.11) 62% 72%, transparent 72% 86%, rgba(255, 255, 255, 0.4) 86% 100%),
    linear-gradient(135deg, #fffdf7, #f3e5d1 58%, #e8d1b5);
}

.podium-step.third .podium-block {
  min-height: 82px;
}

.final-podium-stand {
  min-height: 224px;
  padding-bottom: 8px;
  margin-bottom: 14px;
  overflow: visible;
}

.final-podium-stand .podium-medal {
  margin: 0 0 -4px;
}

.final-podium-stand .podium-step {
  gap: 5px;
}

.final-podium-stand .podium-name {
  min-height: 46px;
}

.wedding-podium-screen,
.wedding-final-screen {
  gap: 12px;
}

.wedding-final-screen {
  justify-content: flex-start;
}

.wedding-final-screen .final-celebration {
  min-height: 74px;
  box-shadow: 0 8px 18px rgba(71, 42, 28, 0.06);
}

.wedding-final-screen .final-celebration .lace-veil {
  top: 6px;
  width: 112px;
  height: 58px;
}

.wedding-final-screen .final-celebration .bouquet {
  top: 28px;
  width: 42px;
  height: 42px;
}

.wedding-final-screen .final-celebration .pearl-strand {
  top: 58px;
  width: 86px;
}

.wedding-final-screen .actions {
  margin-top: 0;
  padding-top: 12px;
}

@keyframes shoe-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes matchupShoeBounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

@keyframes matchupBrideShoeBounce {
  0%,
  100% {
    transform: scaleX(-1) translateY(0);
  }

  50% {
    transform: scaleX(-1) translateY(-6px);
  }
}

.game-lace {
  position: absolute;
  left: -12px;
  width: 100px;
  height: 20px;
  background:
    radial-gradient(circle at 10px 20px, transparent 9px, rgba(255, 255, 255, 0.88) 10px 11px, transparent 12px) 0 0 / 20px 20px repeat-x,
    linear-gradient(90deg, rgba(255, 255, 255, 0.46), rgba(255, 250, 240, 0.72));
  opacity: 0.95;
  animation: laceStreamer 5s ease-in-out infinite;
}

.lace-one {
  top: 7px;
  transform: rotate(-12deg);
}

.lace-two {
  bottom: 8px;
  transform: rotate(12deg);
  animation-delay: 1.4s;
}

.game-pearl {
  position: absolute;
  z-index: 1;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, #f1dec7 64%, #d4aa78);
  box-shadow: 0 4px 8px rgba(71, 42, 28, 0.12);
  animation: floatPearl 4.5s ease-in-out infinite;
}

.gp-one {
  left: 10px;
  top: 14px;
}

.gp-two {
  right: 13px;
  top: 18px;
  animation-delay: 0.8s;
}

.gp-three {
  left: 15px;
  bottom: 13px;
  animation-delay: 1.6s;
}

.gp-four {
  right: 17px;
  bottom: 16px;
  animation-delay: 2.2s;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bridal-mobile {
  position: absolute;
  z-index: 1;
  inset: 10px 18px auto;
  height: 170px;
  pointer-events: none;
}

.pearl,
.flower,
.bouquet,
.lace-veil,
.pearl-strand,
.intro-lace {
  position: absolute;
  display: block;
}

.intro-lace {
  left: -24px;
  right: -24px;
  width: auto;
  height: 24px;
  opacity: 0.82;
  background:
    radial-gradient(circle at 12px 24px, transparent 10px, rgba(255, 255, 255, 0.9) 11px 12px, transparent 13px) 0 0 / 24px 24px repeat-x,
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), rgba(255, 250, 240, 0.76), rgba(255, 255, 255, 0.24));
  filter: drop-shadow(0 6px 8px rgba(71, 42, 28, 0.08));
  animation: laceStreamer 6.2s ease-in-out infinite;
}

.intro-lace-a {
  top: 18px;
  transform: rotate(-5deg);
}

.intro-lace-b {
  top: 132px;
  transform: rotate(5deg);
  animation-delay: 1.5s;
}

.pearl {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #fff, #f2dec6 64%, #d4aa78);
  box-shadow: 0 6px 14px rgba(71, 42, 28, 0.12);
  animation: floatPearl 4.5s ease-in-out infinite;
}

.pearl-a {
  left: 48px;
  top: 42px;
}

.pearl-b {
  right: 58px;
  top: 22px;
  animation-delay: 0.9s;
}

.pearl-c {
  left: 50%;
  top: 106px;
  animation-delay: 1.8s;
}

.flower {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #b96b72 0 8px, transparent 9px),
    radial-gradient(circle at 50% 18%, #f2c2bd 0 12px, transparent 13px),
    radial-gradient(circle at 82% 50%, #f2c2bd 0 12px, transparent 13px),
    radial-gradient(circle at 50% 82%, #f2c2bd 0 12px, transparent 13px),
    radial-gradient(circle at 18% 50%, #f2c2bd 0 12px, transparent 13px);
  filter: drop-shadow(0 8px 14px rgba(71, 42, 28, 0.13));
  animation: bloomSway 5.8s ease-in-out infinite;
}

.flower-a {
  left: 16px;
  top: 82px;
}

.flower-b {
  right: 22px;
  top: 80px;
  transform: scale(0.78);
  animation-delay: 1.2s;
}

.rose {
  width: 42px;
  height: 42px;
  background:
    radial-gradient(circle at 50% 50%, #9f3344 0 6px, transparent 7px),
    radial-gradient(circle at 42% 40%, #d76575 0 11px, transparent 12px),
    radial-gradient(circle at 60% 42%, #edaaa7 0 12px, transparent 13px),
    radial-gradient(circle at 46% 62%, #c94f61 0 12px, transparent 13px),
    radial-gradient(circle at 65% 66%, #f0c0b5 0 11px, transparent 12px);
}

.rose-a {
  left: 96px;
  top: 22px;
  transform: scale(0.72);
  animation-delay: 0.7s;
}

.rose-b {
  right: 94px;
  top: 118px;
  transform: scale(0.66);
  animation-delay: 2s;
}

.tag {
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--soft-ink);
  background: rgba(234, 210, 173, 0.42);
  font-size: 12px;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 8px;
}

.form-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.input {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(166, 43, 56, 0.22);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
}

.room-code {
  padding: 8px 10px;
  border: 1px dashed rgba(166, 43, 56, 0.42);
  border-radius: 8px;
  background: rgba(255, 247, 236, 0.86);
  text-align: center;
}

.room-code strong {
  display: block;
  color: var(--cherry);
  font-size: 28px;
  letter-spacing: 0.12em;
  line-height: 1;
}

.lobby-list {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 8px;
  max-height: none;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.lobby-person,
.scoreboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
}

.lobby-person-main {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lobby-person-main strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.remove-player-button {
  flex: 0 0 auto;
  min-height: 30px;
  border: 1px solid rgba(166, 43, 56, 0.22);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--cherry);
  background: rgba(255, 247, 236, 0.92);
  font-size: 12px;
  font-weight: 800;
}

.role {
  border-radius: 999px;
  padding: 5px 9px;
  color: #fffaf0;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.progress-line {
  display: flex;
  flex: 0 0 auto;
  justify-content: space-between;
  gap: 16px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 700;
  min-width: 0;
  overflow-wrap: anywhere;
}

.progress-line span {
  min-width: 0;
}

.lead-room-code {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  max-width: calc(100% - 28px);
  border: 1px solid rgba(166, 43, 56, 0.18);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--cherry);
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 8px 18px rgba(71, 42, 28, 0.08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.question-card {
  flex: 0 0 auto;
  display: grid;
  gap: 9px;
  padding: 13px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fffaf2, #f6e7d4);
  border: 1px solid rgba(182, 125, 66, 0.22);
}

.question-card h2 {
  font-size: 29px;
  line-height: 1.02;
}

.question-screen {
  min-height: 100%;
  padding-bottom: 24px;
}

.question-screen .panel {
  flex: 0 0 auto;
}

.question-screen .actions {
  margin-top: 0;
  padding-bottom: 18px;
}

.question-screen .input {
  min-height: 46px;
}

.question-screen .button {
  min-height: 48px;
}

.answer-status {
  display: grid;
  gap: 6px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft-ink);
  font-size: 13px;
}

.status-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  border-radius: 50%;
  background: var(--champagne);
}

.status-dot.done {
  background: var(--sage);
}

.answer-list,
.score-list,
.scoreboard {
  display: grid;
  gap: 10px;
}

.answer-row,
.score-row {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.scoring-screen .score-row {
  gap: 7px;
  padding: 9px;
}

.edit-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(166, 43, 56, 0.2);
  border-radius: 8px;
  background: rgba(255, 247, 236, 0.96);
  box-shadow: 0 12px 30px rgba(71, 42, 28, 0.08);
}

.answer-row button {
  justify-self: start;
}

.answer-text {
  color: var(--ink);
  font-weight: 800;
}

.score-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.role-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.score-button {
  min-height: 42px;
  border: 1px solid rgba(166, 43, 56, 0.18);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--ink);
  font-weight: 800;
}

.score-button.active {
  border-color: var(--cherry);
  color: #fffaf0;
  background: var(--cherry);
}

.bridal-celebration {
  min-height: 164px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.9) 0 4px, transparent 5px),
    radial-gradient(circle at 76% 28%, rgba(255, 255, 255, 0.9) 0 4px, transparent 5px),
    linear-gradient(135deg, #fff9ef, #f3d5cf);
  border: 1px solid rgba(166, 43, 56, 0.14);
  box-shadow: 0 10px 28px rgba(71, 42, 28, 0.07);
}

.lace-veil {
  left: 50%;
  top: 14px;
  width: 150px;
  height: 114px;
  transform: translateX(-50%);
  border-radius: 86px 86px 28px 28px;
  background:
    radial-gradient(circle at 18px 118px, transparent 13px, rgba(255, 255, 255, 0.88) 14px 16px, transparent 17px) 0 0 / 34px 132px repeat-x,
    linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 250, 240, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.78);
  animation: veilDrift 5s ease-in-out infinite;
}

.bouquet {
  left: 50%;
  top: 62px;
  width: 74px;
  height: 74px;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 48%, #b85563 0 10px, transparent 11px),
    radial-gradient(circle at 35% 35%, #efb7b3 0 18px, transparent 19px),
    radial-gradient(circle at 66% 36%, #f3c9bd 0 18px, transparent 19px),
    radial-gradient(circle at 42% 68%, #d98f92 0 18px, transparent 19px),
    radial-gradient(circle at 68% 68%, #f3d6c8 0 18px, transparent 19px);
  filter: drop-shadow(0 12px 16px rgba(71, 42, 28, 0.14));
  animation: bouquetPulse 3.8s ease-in-out infinite;
}

.pearl-strand {
  top: 134px;
  width: 116px;
  height: 16px;
  background: radial-gradient(circle, #fffaf0 0 5px, transparent 6px) 0 0 / 18px 16px repeat-x;
  opacity: 0.92;
  animation: strandFloat 4.4s ease-in-out infinite;
}

.pearl-strand-a {
  left: 40px;
}

.pearl-strand-b {
  right: 36px;
  animation-delay: 1.1s;
}

.total-score {
  color: var(--cherry);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
}

.winner-score {
  color: var(--ink);
  font-weight: 700;
}

.muted-note {
  color: var(--soft-ink);
  font-size: 13px;
}

.notice {
  border: 1px solid rgba(83, 107, 122, 0.18);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(255, 247, 236, 0.88);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.32;
}

.lobby-screen > .notice {
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1.22;
}

.notice.error {
  border-color: rgba(166, 43, 56, 0.28);
  color: var(--cherry);
  background: rgba(255, 241, 236, 0.94);
}

.join-link {
  display: inline-block;
  max-width: 100%;
  margin-top: 4px;
  color: var(--cherry);
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.copy-link-button {
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
  border: 1px solid rgba(166, 43, 56, 0.2);
  border-radius: 999px;
  color: var(--cherry);
  background: #fffaf0;
  font-size: 13px;
  font-weight: 800;
}

.lobby-screen .copy-link-button {
  min-height: 32px;
  margin-top: 6px;
  font-size: 12px;
}

.scoreboard-row.winner {
  border-color: rgba(166, 43, 56, 0.3);
  background: rgba(255, 247, 236, 0.98);
}

.screen-scroll {
  max-height: 620px;
  overflow: auto;
  padding-right: 2px;
}

@keyframes floatPearl {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes bloomSway {
  0%,
  100% {
    transform: rotate(-4deg);
  }

  50% {
    transform: rotate(5deg) translateY(-6px);
  }
}

@keyframes veilDrift {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(5px);
  }
}

@keyframes bouquetPulse {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.04);
  }
}

@keyframes strandFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes laceStreamer {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 6px 0;
  }
}

@keyframes menuBrideShoeFloat {
  0%,
  100% {
    transform: scaleX(-1) rotate(-8deg) translateY(0);
  }

  50% {
    transform: scaleX(-1) rotate(-3deg) translateY(-4px);
  }
}

@keyframes menuGuestShoeFloat {
  0%,
  100% {
    transform: rotate(8deg) translateY(0);
  }

  50% {
    transform: rotate(3deg) translateY(-4px);
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding: 0;
  }

  .phone-frame {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    border-radius: 0;
  }

  .phone-frame::before {
    border-radius: 0;
  }

  #app {
    padding: 26px 10px 18px;
    border-radius: 0;
  }

  #app:has(.category-screen) {
    padding-bottom: 10px;
  }

  .screen {
    gap: 12px;
    padding-bottom: 8px;
  }

  .screen-heading {
    gap: 8px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  h3 {
    font-size: 24px;
  }

  .welcome-hero {
    min-height: 260px;
    padding-bottom: 12px;
  }

  .welcome-line {
    min-height: 92px;
  }

  .welcome-lower-trim {
    min-height: 54px;
  }

  .welcome-screen {
    padding-bottom: 18px;
  }

  .welcome-screen .actions {
    padding-bottom: 10px;
  }

  .host-guide-screen {
    gap: 14px;
  }

  .host-steps {
    gap: 9px;
  }

  .host-steps .step {
    padding: 10px;
  }

  .host-steps .step p {
    font-size: 14.5px;
    line-height: 1.2;
  }

  .screen:not(.menu-screen):not(.welcome-screen) .actions {
    margin-top: 4px;
  }

  .button {
    min-height: 46px;
    padding-inline: 14px;
  }

  .spacious-steps {
    gap: 10px;
    margin-block: 0;
  }

  .step {
    padding: 10px;
  }

  .panel {
    padding: 12px;
  }

  .question-card h2 {
    font-size: 25px;
  }

  .question-screen {
    padding-bottom: 8px;
  }

  .scoring-screen {
    gap: 7px;
  }

  .scoring-screen .screen-heading h2 {
    font-size: 30px;
  }

  .scoring-screen .screen-heading p {
    line-height: 1.22;
  }

  .scoring-meta {
    gap: 4px;
  }

  .scoring-screen .score-list {
    min-height: 230px;
  }

  .score-options {
    gap: 6px;
  }

  .shoe-matchup {
    gap: 10px;
  }

  .shoe-card {
    min-height: 0;
    height: clamp(184px, 29dvh, 206px);
    padding: 12px 8px;
    gap: 8px;
  }

  .shoe-card strong {
    font-size: 18px;
  }

  .shoe-image {
    width: min(132px, 100%);
    height: 118px;
  }

  .guest-shoe-image {
    height: 126px;
  }

  .wedding-shoe-select-grid {
    gap: 10px;
  }

  .wedding-shoe-select-card {
    height: clamp(188px, 32dvh, 214px);
  }

  .wedding-shoe-select-card .shoe-image {
    width: min(146px, 100%);
    height: 128px;
  }

  .wedding-vote-helper {
    font-size: 14px;
    line-height: 1.2;
    margin-top: 1px;
  }

  .wedding-status-slot {
    min-height: 27px;
  }

  .wedding-screen {
    gap: 9px;
    padding-bottom: 8px;
  }

  .wedding-podium {
    grid-template-columns: minmax(64px, 0.72fr) minmax(74px, 0.82fr) minmax(64px, 0.72fr);
    padding-inline: 10px;
  }

  .podium-name strong {
    font-size: 14px;
  }
}
