:root {
  --beige: #e4dace;
  --blue: #346df2;
  --deep-blue: #1f59e2;
  --navy: #15368f;
  --light-blue: #9ab5ff;
  --gold: #ffd324;
  --white: #ffffff;
  --purple: #ac0efc;
  --lavender: #f7ebff;
  --shadow: 0 1px 8px rgba(33, 82, 196, 0.15);
  --text-blue: #346df2;
  --torn-edge: url('images/wave-border-beige.svg');
  --torn-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='300' viewBox='0 0 420 300'><path fill='white' d='M0 20L14 10L32 22L50 10L68 22L86 10L104 22L122 10L140 22L158 10L176 22L194 10L212 22L230 10L248 22L266 10L284 22L302 10L320 22L338 10L356 22L374 10L392 22L410 10L420 20L410 40L420 60L410 80L420 100L410 120L420 140L410 160L420 180L410 200L420 220L410 240L420 260L410 280L420 280L410 290L392 278L374 290L356 278L338 290L320 278L302 290L284 278L266 290L248 278L230 290L212 278L194 290L176 278L158 290L140 278L122 290L104 278L86 290L68 278L50 290L32 278L14 290L0 280L10 260L0 240L10 220L0 200L10 180L0 160L10 140L0 120L10 100L0 80L10 60L0 40L10 20Z'/></svg>");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--beige);
  color: var(--text-blue);
  font-family: 'Alegreya', serif;
}

.page {
  max-width: 440px;
  margin: 0 auto;
  background: var(--beige);
}

section {
  padding: 24px;
  text-align: center;
}

.section-title {
  font-family: 'Fahkwang', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  text-align: center;
  margin: 40px 0 12px;
  letter-spacing: 0.6px;
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  margin: 0 0 12px;
}

.section-title.white,
.section-subtitle.white {
  color: var(--white);
}

.hero {
  padding-top: 48px;
  text-align: center;
}

.hero-kicker {
  font-size: 18px;
  margin: 24px 0 20px;
}

.hero-title {
  font-family: 'Fahkwang', sans-serif;
  font-size: 24px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.hero-subtitle {
  font-size: 18px;
  margin: 0 auto 6px;
  max-width: 360px;
  line-height: 1.25;
}

.hero-illustration {
  height: 500px;
  background-image: url('images/hero-illustration.png');
  background-size: 100% auto;
  background-position: center bottom;
  background-repeat: no-repeat;
  border-radius: 0;
  /* Full width bleed */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  /* Overlap with text above and calendar below */
  margin-top: -100px;
  margin-bottom: -20px;
  position: relative;
}

.save-the-date {
  position: relative;
  z-index: 1;
}

.calendar {
  display: grid;
  gap: 12px;
  margin: 12px auto;
  max-width: 260px;
}

.calendar-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 18px;
  text-align: center;
}

.calendar-head {
  font-family: 'Castoro Titling', serif;
  font-size: 12px;
  letter-spacing: 1.08px;
  color: #525252;
}

.calendar-head span:nth-child(5) {
  color: var(--blue);
}

.calendar-dates {
  font-family: 'Castoro', serif;
  font-size: 18px;
  color: #525252;
}

.date-selected {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  font-weight: 500;
  color: var(--blue);
  font-size: 28px;
}

.date-selected::before {
  content: '';
  position: absolute;
  inset: -14px;
  width: 69px;
  height: 71px;
  background: url('images/calendar-circle.svg') center/contain no-repeat;
}

.date-caption {
  margin: 24px 0 0;
  font-size: 22px;
  font-weight: 500;
  /* text-decoration: underline; */
}

.timeline-grid {
  display: grid;
  grid-template-columns: 1fr 22px 1fr;
  gap: 16px;
  align-items: start;
  margin: 24px auto 20px;
  justify-items: center;
  max-width: 380px;
  font-size: 18px;
}

.timeline-line {
  width: 20px;
  height: 280px;
  background: url('images/timeline-line.svg') center/contain no-repeat;
}

.timeline-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.timeline-column.left {
  text-align: right;
  align-items: flex-end;
}

.timeline-column.right {
  text-align: left;
  align-items: flex-start;
  padding-top: 64px;
}

.time {
  font-weight: 500;
  margin: 0 0 4px;
}

.time-detail {
  margin: 0;
  max-width: 150px;
}

.primary-pill {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 10px 24px;
  border-radius: 46px;
  font-family: 'Gabarito', sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.primary-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(31, 89, 226, 0.25);
}

.primary-pill.wide {
  width: 100%;
}

.outline-pill {
  background: var(--white);
  color: var(--blue);
  border: 1.5px solid var(--blue);
  padding: 12px 24px;
  border-radius: 46px;
  font-family: 'Gabarito', sans-serif;
  text-transform: uppercase;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.outline-pill.wide {
  width: 100%;
}

.attire {
  text-align: center;
}

.attire-copy {
  font-size: 18px;
  margin: 0 0 20px;
  line-height: 1.3;
  padding: 0px 32px;
}

.attire-carousel {
  overflow-x: auto;
  overflow-y: visible;
  padding-top: 24px;
  padding-bottom: 32px;
  margin-top: 8px;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  scrollbar-width: none;
}

.attire-carousel::-webkit-scrollbar {
  display: none;
}

.photo-track {
  display: flex;
  gap: 0;
  padding: 24px 40px 40px;
  width: max-content;
  animation: photo-drift 28s linear infinite;
}

.photo-card {
  height: 320px;
  min-width: 280px;
  border-radius: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: none;
  transform: translateY(0);
  mask-image: none;
  -webkit-mask-image: none;
}

.photo-card + .photo-card {
  margin-left: -48px;
}

.photo-card:nth-child(odd) {
  transform: translateY(36px) rotate(-1deg);
}

.photo-card:nth-child(even) {
  transform: translateY(-36px) rotate(1deg);
}

.attire-carousel:hover .photo-track {
  animation-play-state: paused;
}

@keyframes photo-drift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-40%);
  }
}

.attire-footer {
  margin: 80px 0;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 0px 32px;
}

.predictions {
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  background: var(--blue);
  color: var(--white);
}

.predictions::before,
.predictions::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--torn-edge) no-repeat;
  background-size: 100% 100%;
  z-index: 2;
}

.predictions::before {
  top: -5px;
  transform: scaleY(-1);
}

.predictions::after {
  bottom: -5px;
}

.predictions-inner {
  position: relative;
  z-index: 1;
  padding: 24px 0;
  max-width: 440px;
  margin: 0 auto;
}

.predictions-header {
  text-align: center;
}

.leaderboard {
  margin: 24px 0 18px;
}

.leaderboard-header {
  text-align: center;
  margin-bottom: 16px;
}

.leaderboard-label {
  font-family: 'Fahkwang', sans-serif;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--light-blue);
  margin: 0;
}

.leaderboard-podium {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
}

.leaderboard-card {
  text-align: center;
  flex: 1;
  position: relative;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 60px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  font-family: 'Gabarito', sans-serif;
  font-size: 20px;
}

.avatar.large {
  width: 94px;
  height: 94px;
  border: none;
  position: relative;
}

.avatar.large::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--gold) 0deg, var(--gold) 240deg, transparent 300deg, transparent 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #fff calc(100% - 3px));
  z-index: -1;
}

/* Avatar images inside circles */
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.avatar span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.badge {
  position: absolute;
  right: 14px;
  top: 54px;
  background: var(--light-blue);
  color: #1a1444;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Geologica', sans-serif;
  font-size: 16px;
}

.badge.gold {
  background: var(--gold);
  color: #6d3c0f;
}

.leaderboard-name {
  font-family: 'Gabarito', sans-serif;
  margin: 4px 0;
}

.score-pill {
  background: var(--deep-blue);
  color: #b2f6ff;
  padding: 2px 12px;
  border-radius: 40px;
  font-size: 14px;
  display: inline-block;
}

.tier-label {
  font-family: 'Gabarito', sans-serif;
  font-size: 11px;
  color: var(--light-blue);
  margin-top: 2px;
  opacity: 0.8;
}

.menace-shame {
  margin-top: 16px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.shame-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Gabarito', sans-serif;
  font-size: 13px;
  flex-shrink: 0;
  overflow: hidden;
}

.shame-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.shame-info {
  flex: 1;
  text-align: left;
}

.shame-label {
  font-family: 'Gabarito', sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--light-blue);
  margin: 0;
  opacity: 0.7;
}

.shame-name {
  font-family: 'Gabarito', sans-serif;
  font-size: 14px;
  margin: 0;
}

.shame-score {
  font-family: 'Gabarito', sans-serif;
  font-size: 12px;
  color: var(--light-blue);
  opacity: 0.7;
}

.shame-tier {
  font-family: 'Gabarito', sans-serif;
  font-size: 11px;
  color: #ffb4b4;
  margin-left: auto;
}

/* Leaderboard tooltip positioning override */
.leaderboard-header .info-tooltip {
  color: var(--white);
}

.hearts-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.hearts-left {
  text-align: center;
  margin: 0;
}

.question-card {
  background: var(--white);
  color: var(--text-blue);
  border-radius: 23px;
  padding: 24px 24px 16px;
  margin: 0 0 18px;
  width: 100%;
  max-width: none;
  -webkit-mask-image: url('images/card-mask.svg');
  mask-image: url('images/card-mask.svg');
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.question-title {
  font-weight: 500;
  text-align: center;
  margin: 0 0 16px;
  font-size: 18px;
}

/* Info tooltip for question details */
.info-tip {
  position: relative;
  display: inline-block;
  cursor: pointer;
  vertical-align: middle;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--navy);
  font-family: 'Gabarito', sans-serif;
  font-size: 11px;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  vertical-align: middle;
  margin-left: 4px;
}

.info-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: var(--white);
  font-family: 'Gabarito', sans-serif;
  font-size: 12px;
  font-weight: 400;
  font-style: normal;
  padding: 8px 12px;
  border-radius: 10px;
  white-space: normal;
  width: max-content;
  max-width: 240px;
  text-align: center;
  line-height: 1.3;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

.info-tooltip::after {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--navy);
}

.info-tip:hover .info-tooltip,
.info-tip:focus .info-tooltip,
.info-tip.active .info-tooltip {
  display: block;
}

.answer-row {
  display: flex;
  align-items: stretch;
  border-radius: 12px;
  font-family: 'Gabarito', sans-serif;
  font-size: 18px;
  margin-bottom: 12px;
  width: 100%;
  overflow: hidden;
}

.answer-label {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 14px;
  min-width: 0;
}

.answer-label > span {
  min-width: 30px;
}

.heart-count {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Geologica', sans-serif;
  font-size: 14px;
}

.return-arrow {
  opacity: 0.65;
  font-size: 14px;
  margin-left: 2px;
}

.answer-row.primary {
  background: var(--blue);
  color: var(--white);
}

.answer-row.secondary {
  background: var(--lavender);
  color: var(--purple);
}

/* Button zones: full-height clickable areas with vertical dividers */
.icon-btn {
  width: 48px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
  flex: 0 0 54px;
  transition: background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

/* Vertical divider on the left edge of each button */
.answer-row.primary .icon-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.answer-row.secondary .icon-btn {
  border-left: 1px solid rgba(172, 14, 252, 0.15);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.icon-btn:active {
  background: rgba(255, 255, 255, 0.2);
}

.icon-btn.light:hover {
  background: rgba(172, 14, 252, 0.08);
}

.icon-btn.light:active {
  background: rgba(172, 14, 252, 0.15);
}

/* Minus: outline circle */
.icon-btn.minus::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  border: 1px solid var(--white);
  border-radius: 50%;
}

.icon-btn.minus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
}

/* Plus: filled circle */
.icon-btn.plus::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26px;
  height: 26px;
  background: var(--white);
  border-radius: 50%;
}

.icon-btn.plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: var(--blue);
  clip-path: polygon(
    40% 0%, 60% 0%, 60% 40%, 100% 40%, 100% 60%,
    60% 60%, 60% 100%, 40% 100%, 40% 60%, 0% 60%, 0% 40%, 40% 40%
  );
}

/* Light variant (No row - purple) */
.icon-btn.light.minus::before {
  border-color: var(--purple);
}

.icon-btn.light.minus::after {
  background: var(--purple);
}

.icon-btn.light.plus::before {
  background: var(--purple);
}

.icon-btn.light.plus::after {
  background: var(--white);
}

/* Bettor pool info below answer rows */
.bet-pool {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 24px 0;
  padding: 0 14px;
}

.bet-pool-avatars {
  display: flex;
  align-items: center;
}

.bet-pool-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Gabarito', sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: var(--white);
  flex-shrink: 0;
  overflow: hidden;
}

.bet-pool-avatar + .bet-pool-avatar {
  margin-left: -6px;
}

.bet-pool-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.bet-pool-avatar.initials {
  border: 1.5px solid var(--white);
}

.bet-pool-overflow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--light-blue);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Gabarito', sans-serif;
  font-size: 9px;
  font-weight: 500;
  margin-left: -6px;
  flex-shrink: 0;
}

.bet-pool-total {
  font-family: 'Gabarito', sans-serif;
  font-size: 16px;
  color: var(--blue);
  margin-left: 4px;
}

.answer-row.secondary + .bet-pool .bet-pool-total {
  color: var(--purple);
}

.singles {
  padding-bottom: 48px;
}

.singles-carousel {
  overflow-x: auto;
  overflow-y: visible;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  scrollbar-width: none;
}

.singles-carousel::-webkit-scrollbar {
  display: none;
}

.single-track {
  display: flex;
  gap: 11px;
  padding: 16px 24px 24px;
  width: max-content;
}

.single-card {
  position: relative;
  width: 168px;
  height: 241px;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.single-photo {
  width: 168px;
  height: 241px;
  background-image: var(--photo);
  background-size: cover;
  background-position: center;
  position: relative;
  border-radius: 0;
  mask-image: url('images/mask-shape.svg');
  -webkit-mask-image: url('images/mask-shape.svg');
  mask-size: 176px 249px;
  -webkit-mask-size: 176px 249px;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-position: center;
}

.single-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,47,130,0) 0%, #102f82 100%);
  opacity: 0.7;
}

.single-tag {
  position: absolute;
  left: 16px;
  bottom: 48px;
  background: var(--blue);
  color: var(--white);
  font-family: 'Gabarito', sans-serif;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 45px;
  z-index: 1;
}

.single-name {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  color: var(--white);
  font-family: 'Gabarito', sans-serif;
  z-index: 1;
  font-size: 18px;
}

/* Singles carousel is manual scroll only */

/* FAQ section */
.faq {
  position: relative;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  background: var(--blue);
  color: var(--white);
  padding: 0;
}

.faq::before,
.faq::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: var(--torn-edge) no-repeat;
  background-size: 100% 100%;
  z-index: 2;
}

.faq::before {
  top: -5px;
  transform: scaleY(-1);
}

.faq::after {
  bottom: -5px;
}

.faq-inner {
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.faq-list {
  text-align: left;
}

.faq-item {
  margin-bottom: 24px;
}

.faq-question {
  font-family: 'Fahkwang', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.faq-answer {
  font-size: 18px;
  margin: 0;
  line-height: 1.4;
}

.footer {
  text-align: center;
  padding: 24px;
  font-size: 18px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-card {
  background: var(--white);
  border-radius: 24px 24px 0 0;
  max-width: 420px;
  width: 100%;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom, 0px));
  position: relative;
  border: none;
  max-height: 85vh;
  overflow-x: hidden;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0.5;
  }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  z-index: 5;
}

.modal-close::before,
.modal-close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--blue);
}

.modal-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Single profile photo area */
.modal-photo-wrap {
  position: relative;
  margin: -24px -24px 0;
  padding: 20px 16px 12px;
  overflow: visible;
}

.modal-photo {
  height: 300px;
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
  mask-image: url('images/mask-shape.svg');
  -webkit-mask-image: url('images/mask-shape.svg');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

/* Blue/teal paint blobs behind photo */
.modal-photo-blob {
  position: absolute;
  z-index: 0;
}

.modal-photo-blob.blob-blue {
  width: 70%;
  height: 200px;
  background: var(--blue);
  left: -16px;
  top: 0;
  transform: rotate(-3deg);
  border-radius: 8px;
}

.modal-photo-blob.blob-teal {
  width: 55%;
  height: 180px;
  background: #1fa7c9;
  right: -16px;
  top: 80px;
  transform: rotate(4deg);
  border-radius: 8px;
}

/* Bird decoration overlapping photo bottom-right */
.modal-photo-bird {
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 70px;
  height: 46px;
  z-index: 3;
}

/* Title below photo */
.modal-title {
  margin: 0 0 12px;
  font-size: 22px;
  color: #1a1a1a;
}

/* Text content area */
.modal-text {
  padding: 12px 0 0;
}

.modal-copy {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.5;
  color: #1a1a1a;
}

.modal-story {
  color: var(--blue);
}

.modal-tags {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 14px;
}

.match-hero {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin: 12px 0 24px;
  position: relative;
  z-index: 1;
}

.match-card {
  width: 170px;
  height: 230px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 12px;
  color: var(--white);
  font-family: 'Gabarito', sans-serif;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  mask-image: url('images/mask-shape.svg');
  -webkit-mask-image: url('images/mask-shape.svg');
  mask-size: 100% 100%;
  -webkit-mask-size: 100% 100%;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
}

.match-card span {
  font-size: 18px;
  letter-spacing: 0.3px;
}

.match-percent {
  font-size: 52px;
  text-align: center;
  margin: 0;
  color: var(--blue);
  position: relative;
  z-index: 1;
}

.match-sub {
  text-align: center;
  margin: 0 0 16px;
  position: relative;
  z-index: 1;
  color: #1a1a1a;
}

.match-modal {
  position: relative;
  overflow: hidden;
}

.match-modal .modal-copy {
  color: #1a1a1a;
}

.match-modal .primary-pill,
.match-modal .outline-pill {
  width: 100%;
}

.match-blob {
  position: absolute;
  border-radius: 40px;
  z-index: 0;
}

.match-blob.blob-blue {
  width: 180px;
  height: 140px;
  background: #3b6ef7;
  left: -10px;
  top: 24px;
  transform: rotate(-6deg);
}

.match-blob.blob-teal {
  width: 200px;
  height: 180px;
  background: #1fa7c9;
  right: -24px;
  top: 80px;
  transform: rotate(8deg);
}

.match-bird {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 46px;
  z-index: 2;
}

/* ===== Dynamic feature additions ===== */

/* Notification toasts */
.notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  opacity: 0;
  padding: 12px 24px;
  border-radius: 46px;
  font-family: 'Gabarito', sans-serif;
  font-size: 14px;
  z-index: 100;
  transition: all 0.3s ease;
  max-width: 360px;
  text-align: center;
  box-shadow: var(--shadow);
}

.notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.notification-success {
  background: #4caf50;
  color: var(--white);
}

.notification-error {
  background: #f44336;
  color: var(--white);
}

.notification-info {
  background: var(--blue);
  color: var(--white);
}

/* No-token overlay */
.no-token-overlay {
  position: fixed;
  inset: 0;
  background: var(--beige);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.no-token-message {
  max-width: 360px;
}

.no-token-message .section-title {
  margin-bottom: 16px;
}

.no-token-message p {
  font-size: 18px;
  line-height: 1.4;
}

/* Disabled button states */
.icon-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.primary-pill:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Betting locked message */
.betting-locked-message {
  text-align: center;
  padding: 40px 0;
}

/* Betting questions container */
.betting-questions-container {
  display: flex;
  flex-direction: column;
}

/* Match modal button spacing */
.match-modal .outline-pill {
  margin-top: 8px;
}

@media (min-width: 768px) {
  .page {
    max-width: 820px;
  }

  .hero-illustration {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    margin-top: 0;
    height: 420px;
    background-size: contain;
    background-position: center top;
  }

  .timeline-grid {
    grid-template-columns: 1fr 40px 1fr;
  }

  .singles-carousel {
    grid-auto-columns: 200px;
  }
}
