*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-start: #f5ddd6;
  --bg-mid: #e8b5a8;
  --bg-end: #c87a8a;
  --shell-bg: rgba(255, 249, 246, 0.76);
  --shell-border: rgba(255, 240, 235, 0.8);
  --text-strong: #2e1820;
  --text-soft: #6b3d47;
  --text-faint: #9e6672;
  --accent: #bd4c66;
  --accent-deep: #964f5b;
  --accent-mid: #b36b78;
  --accent-soft: rgba(189, 76, 102, 0.1);
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-strong: rgba(255, 255, 255, 0.68);
  --card-border: rgba(189, 76, 102, 0.12);
  --line: rgba(189, 76, 102, 0.12);
  --option-border: rgba(189, 76, 102, 0.15);
  --option-selected-border: rgba(189, 76, 102, 0.42);
  --option-selected-bg: rgba(189, 76, 102, 0.07);
  --progress-track: rgba(189, 76, 102, 0.18);
  --shadow: 0 30px 80px rgba(120, 40, 60, 0.25), 0 8px 24px rgba(180, 80, 100, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --shadow-soft: 0 10px 28px rgba(120, 40, 60, 0.12);
  --success-bg: linear-gradient(180deg, rgba(227, 247, 233, 0.96) 0%, rgba(212, 240, 220, 0.92) 100%);
  --success-border: rgba(80, 146, 99, 0.3);
}

html,
body {
  min-height: 100%;
  font-family: 'Manrope', -apple-system, sans-serif;
}

body {
  color: var(--text-strong);
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(ellipse at 20% 10%, #f0c8c0 0%, #e8b0a0 30%, #d48090 60%, #c07090 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

body.ranking-mode .rank-card,
body.ranking-mode .rank-card * {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
}

body.ranking-mode input,
body.ranking-mode textarea,
body.ranking-mode .wildcard-editor,
body.ranking-mode .wildcard-editor * {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

body.ranking-mode .wildcard-editor,
body.ranking-mode .wildcard-editor *,
.wildcard-card .wildcard-editor,
.wildcard-card .wildcard-editor *,
.wildcard-input {
  -webkit-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
  pointer-events: auto !important;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 15% 20%, rgba(240, 180, 170, 0.7) 0%, transparent 70%),
    radial-gradient(ellipse 50% 60% at 85% 80%, rgba(180, 90, 110, 0.5) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 50% 50%, rgba(220, 150, 160, 0.3) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.glow-a {
  width: 280px;
  height: 280px;
  bottom: 60px;
  left: -60px;
  background: rgba(189, 76, 102, 0.09);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
}

.glow-b {
  width: 200px;
  height: 200px;
  bottom: -20px;
  right: -40px;
  background: rgba(189, 76, 102, 0.07);
  border-radius: 45% 55% 40% 60% / 60% 40% 60% 40%;
}

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 430px;
  min-height: 700px;
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 40px;
  background: var(--shell-bg);
  border: 1px solid var(--shell-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.shell-grain {
  position: absolute;
  inset: 0;
  border-radius: 40px;
  opacity: 0.4;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

.topbar {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 28px 0;
}

.eyebrow {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.topbar-title {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--text-soft);
}

.topbar-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 4px;
  font-size: 11px;
  color: var(--text-faint);
  font-weight: 500;
}

.progress-track {
  position: relative;
  z-index: 1;
  margin: 8px 28px 0;
  height: 3px;
  border-radius: 999px;
  background: var(--progress-track);
  overflow: hidden;
}

.progress-fill {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #c06070, #d08090);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-panel {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 28px 28px 36px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
}

.app-panel::-webkit-scrollbar {
  display: none;
}

.app-panel.step-animate {
  animation: stepIn 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-page {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(189, 76, 102, 0.25);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  margin-bottom: 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(40px, 10vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.smaller-title {
  font-size: clamp(34px, 8vw, 44px);
  line-height: 1.08;
}

.hero-copy,
.agreement-summary,
.pdf-note,
.micro-note,
.selection-note,
.instruction-chip,
.success-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
}

.warning-note {
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 18px;
  background: rgba(189, 76, 102, 0.1);
  border: 1px solid rgba(189, 76, 102, 0.18);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  animation: pillIn 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.decision-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}

.primary-btn,
.secondary-btn,
.channel-card {
  font: inherit;
}

.primary-btn,
.secondary-btn {
  appearance: none;
  border: 0;
  width: 100%;
  border-radius: 999px;
  padding: 18px 24px;
  cursor: pointer;
  font-size: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-btn {
  color: #fff8f6;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--accent-deep) 0%, var(--accent-mid) 100%);
  box-shadow: 0 4px 20px rgba(150, 79, 91, 0.35), 0 1px 4px rgba(150, 79, 91, 0.2);
  position: relative;
  overflow: hidden;
}

.primary-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  pointer-events: none;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(150, 79, 91, 0.42), 0 2px 8px rgba(150, 79, 91, 0.25);
}

.secondary-btn {
  background: rgba(255, 249, 246, 0.72);
  border: 1px solid rgba(189, 76, 102, 0.18);
  color: var(--text-strong);
  font-weight: 500;
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 249, 246, 0.9);
}

.evasive-btn {
  transition: transform 0.22s ease, opacity 0.18s ease, box-shadow 0.18s ease;
}

.micro-note {
  margin-top: auto;
  padding-top: 16px;
  font-size: 12px;
}

.intro-card,
.success-card,
.agreement-card,
.checklist-card,
.ranking-summary-card,
.pdf-card,
.date-picker-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
}

.intro-card,
.success-card,
.agreement-card,
.date-picker-card {
  border-radius: 20px;
  padding: 20px;
}

.success-card {
  margin: 20px 0 24px;
  display: grid;
  gap: 12px;
}

.date-picker-card {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.instruction-chip {
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 500;
}

.ranking-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
  touch-action: pan-y;
}

.rank-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid var(--option-border);
  border-radius: 20px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.36s ease, transform 0.36s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: default;
}

.rank-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.rank-card:hover {
  border-color: rgba(189, 76, 102, 0.35);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 38px rgba(122, 70, 87, 0.14);
}

.rank-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, transparent 100%);
  pointer-events: none;
}

.rank-card-head,
.rank-card-head * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.rank-card:active {
  cursor: default;
}

.rank-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 12px;
}

.rank-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(189, 76, 102, 0.08);
  color: var(--accent-deep);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.rank-card-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rank-move-btn {
  appearance: none;
  border: 1px solid rgba(189, 76, 102, 0.14);
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(189, 76, 102, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: var(--accent-deep);
  font: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.rank-move-btn:hover,
.rank-move-btn:focus-visible {
  background: rgba(189, 76, 102, 0.14);
  border-color: rgba(189, 76, 102, 0.22);
  box-shadow: 0 10px 22px rgba(122, 70, 87, 0.12);
}

.rank-move-btn:active {
  transform: scale(0.96);
}

.rank-move-btn:disabled {
  opacity: 0.38;
  cursor: default;
  box-shadow: none;
}

.rank-card-title {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 700;
}

.rank-card-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.rank-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(189, 76, 102, 0.1);
  border: 1px solid rgba(189, 76, 102, 0.12);
  font-size: 18px;
  line-height: 1;
}

.rank-card-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-soft);
}

.wildcard-editor {
  margin: 18px 0;
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  touch-action: auto;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}

.wildcard-help {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
}

.wildcard-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-deep);
}

.wildcard-input {
  width: 100%;
  min-height: 82px;
  border: 1px solid rgba(189, 76, 102, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-strong);
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
  outline: none;
  resize: vertical;
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
  touch-action: auto;
  pointer-events: auto;
}

.wildcard-input:focus {
  border-color: rgba(189, 76, 102, 0.42);
  box-shadow: 0 0 0 3px rgba(189, 76, 102, 0.09);
}

.wildcard-input:disabled {
  opacity: 0.58;
}

.wildcard-edit-btn {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(189, 76, 102, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}

.wildcard-edit-btn:active {
  transform: translateY(1px);
}

.wildcard-secret {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 12.5px;
  line-height: 1.4;
}

.wildcard-secret input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.date-picker-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}

.date-option-btn {
  appearance: none;
  border: 1px solid rgba(189, 76, 102, 0.16);
  border-radius: 14px;
  padding: 9px 8px;
  display: grid;
  gap: 2px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
  text-align: center;
}

.date-option-btn span,
.date-option-btn small {
  font-size: 10px;
  line-height: 1.2;
}

.date-option-btn strong {
  font-size: 16px;
  line-height: 1.15;
  color: var(--text-strong);
}

.date-option-btn.is-selected {
  border-color: var(--option-selected-border);
  background: var(--option-selected-bg);
  color: var(--accent-deep);
}

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

.selected-date-pill {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(189, 76, 102, 0.1);
  color: var(--accent-deep);
  font-size: 11.5px;
  line-height: 1.2;
}

.rank-card-ghost {
  opacity: 0.34;
  background: rgba(255, 255, 255, 0.42);
  border-style: dashed;
}

.rank-card-chosen,
.rank-card-drag {
  box-shadow: 0 24px 42px rgba(122, 70, 87, 0.2);
  border-color: var(--option-selected-border);
  background: rgba(255, 247, 250, 0.96);
  transform: rotate(-1deg) scale(1.01);
}

.rank-card.just-moved {
  border-color: rgba(189, 76, 102, 0.34);
  box-shadow: 0 18px 36px rgba(122, 70, 87, 0.18);
}

.ranking-list.is-sorting .rank-card:not(.rank-card-chosen):not(.rank-card-drag) {
  transform: scale(0.99);
}

body.sorting-active .app-panel {
  scroll-behavior: auto;
}

body.sorting-active .app-panel,
body.sorting-active .ranking-list,
body.sorting-active .rank-card {
  touch-action: none;
}

body.sorting-active .rank-card,
body.sorting-active .rank-card * {
  cursor: grabbing;
}

.subtle-btn {
  opacity: 0.5;
  box-shadow: none;
}

.subtle-btn.is-ready {
  opacity: 1;
  box-shadow: 0 14px 32px rgba(143, 81, 98, 0.26);
}

.subtle-btn:disabled {
  cursor: not-allowed;
}

.primary-btn:disabled {
  opacity: 0.55;
  cursor: wait;
  box-shadow: none;
}

.agreement-step .hero-copy {
  margin-bottom: 18px;
}

.agreement-card {
  display: grid;
  gap: 20px;
}

.agreement-subtitle {
  color: var(--accent-deep);
}

.checklist-card,
.ranking-summary-card,
.pdf-card {
  padding: 18px;
  border-radius: 20px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-strong);
}

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

.checklist li {
  position: relative;
  padding-left: 22px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.checklist li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--accent);
  font-size: 20px;
}

.ranking-summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ranking-summary-item {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(189, 76, 102, 0.1);
}

.ranking-summary-number {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(189, 76, 102, 0.12);
  color: var(--accent-deep);
  font-size: 11px;
  font-weight: 700;
}

.ranking-summary-name {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-strong);
  font-weight: 600;
}

.channel-section {
  display: grid;
  gap: 12px;
}

.channel-grid {
  display: grid;
  gap: 10px;
}

.channel-note {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-soft);
}

.channel-card {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  border: 1.5px solid var(--option-border);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.channel-card:hover,
.channel-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(189, 76, 102, 0.3);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 18px 38px rgba(122, 70, 87, 0.12);
}

.channel-card.is-selected {
  border-color: var(--option-selected-border);
  background: var(--option-selected-bg);
}

.channel-glyph {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(189, 76, 102, 0.1);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  overflow: hidden;
}

.channel-glyph svg {
  width: 18px;
  height: 18px;
  display: block;
}

.channel-glyph.brand-whatsapp {
  background: rgba(37, 211, 102, 0.16);
  color: #25d366;
}

.channel-glyph.brand-whatsapp svg {
  width: 22px;
  height: 22px;
}

.channel-glyph.brand-email {
  background: rgba(255, 255, 255, 0.88);
  color: #bb556e;
}

.channel-glyph.brand-email svg {
  width: 22px;
  height: 22px;
}

.channel-glyph.brand-bereal {
  background: rgba(17, 17, 17, 0.96);
  color: #111111;
}

.channel-glyph.brand-bereal svg {
  width: 28px;
  height: 28px;
}

.channel-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.channel-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-strong);
}

.channel-subtitle {
  font-size: 11.5px;
  color: var(--text-soft);
}

.selection-note {
  font-size: 12px;
  color: var(--accent-deep);
}

.pdf-card {
  display: grid;
  gap: 12px;
}

@keyframes pillIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 720px) {
  body {
    padding: 24px;
  }

  .shell {
    min-height: 760px;
    max-height: 860px;
  }

  .app-panel {
    padding: 24px 24px 28px;
  }
}

@media (max-width: 520px) {
  body {
    padding: 0;
    align-items: stretch;
  }

  .shell {
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    border-radius: 0;
    border: none;
  }

  .topbar {
    padding: 20px 20px 0;
  }

  .progress-track {
    margin: 8px 20px 0;
  }

  .app-panel {
    padding: 20px 20px 24px;
  }

  .hero-title {
    font-size: clamp(31px, 9vw, 40px);
  }

  .smaller-title {
    font-size: clamp(26px, 7.4vw, 34px);
  }

  .decision-row {
    grid-template-columns: 1fr;
  }

  .primary-btn,
  .secondary-btn {
    padding: 15px 18px;
  }

  .rank-card,
  .intro-card,
  .success-card,
  .agreement-card,
  .checklist-card,
  .ranking-summary-card,
  .pdf-card {
    border-radius: 20px;
  }

  .hero-copy,
  .agreement-summary,
  .pdf-note,
  .micro-note,
  .selection-note,
  .instruction-chip,
  .success-card p,
  .checklist li,
  .rank-card-description,
  .channel-note,
  .ranking-summary-name {
    font-size: 12.5px;
  }

  .rank-card {
    padding: 16px;
  }

  .rank-move-btn {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }
}
