.discover-shell { background: linear-gradient(180deg, #f3fbfc 0%, #fff 45%); }
.discover-shell .content { padding-top: 10px; padding-bottom: 118px; }
.discover-heading {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.discover-heading h1 { margin: 2px 0 0; font-size: 28px; line-height: 1.1; letter-spacing: -.035em; }
.radius-form { display: grid; gap: 3px; }
.radius-form label { padding-left: 2px; color: var(--ocean-slate); font-size: 10px; font-weight: 700; }
.radius-select-wrap { position: relative; }
.radius-select-wrap svg { position: absolute; top: 50%; left: 11px; width: 16px; height: 16px; transform: translateY(-50%); color: var(--ocean-aqua-deep); pointer-events: none; }
.radius-form select {
  min-height: 40px;
  padding: 8px 30px 8px 33px;
  appearance: none;
  border: 1px solid #cfe8e8;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--ocean-ink);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--ocean-shadow-sm);
}

.swipe-stage { position: relative; perspective: 1000px; }
.player-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(213, 229, 234, .95);
  border-radius: var(--radius-hero);
  box-shadow: var(--ocean-shadow-float);
  touch-action: pan-y;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  overscroll-behavior-x: none;
  transform-origin: center bottom;
  transition: transform .25s ease, opacity .25s ease;
  will-change: transform;
}
.player-card.is-dragging { transition: none; cursor: grabbing; }
.player-card.is-dragging .player-card-link { cursor: grabbing; }
.player-card::after { content: ""; position: absolute; z-index: 8; inset: 0; border: 3px solid transparent; border-radius: inherit; opacity: var(--swipe-progress,0); pointer-events: none; transition: opacity .12s ease; }
.player-card.drag-right::after { border-color: rgba(20, 212, 196,.8); box-shadow: inset 0 0 80px rgba(20, 212, 196,.12); }
.player-card.drag-left::after { border-color: rgba(100,116,139,.62); box-shadow: inset 0 0 80px rgba(100,116,139,.1); }
.player-card-link { position: relative; display: block; color: inherit; text-decoration: none; -webkit-user-drag: none; }
.player-photo-wrap { position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden; }
.discover-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 28%;
  background: linear-gradient(145deg, #D9F8F5, #14D4C4);
  -webkit-user-drag: none;
}
.discover-photo.placeholder { display: grid; place-items: center; color: #fff; font-size: 90px; font-weight: 800; }
.photo-overlay { position: absolute; inset: 0 0 auto; padding: 14px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.distance-pill, .dupr-badge {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .91);
  color: var(--ocean-ink);
  box-shadow: 0 6px 18px rgba(11, 29, 54, .12);
  backdrop-filter: blur(10px);
}
.distance-pill { gap: 6px; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 750; }
.distance-pill svg { width: 16px; height: 16px; color: var(--ocean-aqua-deep); }
.dupr-badge { min-width: 56px; padding: 6px 8px; flex-direction: column; border: 2px solid #8ae1da; border-radius: 12px; color: var(--ocean-aqua-deep); line-height: 1; }
.dupr-badge strong { font-family: var(--font-heading); font-size: 20px; font-variant-numeric: tabular-nums; }
.dupr-badge small { margin-top: 3px; font-size: 9px; font-weight: 800; letter-spacing: .06em; }
.photo-gradient { position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, rgba(10, 35, 45, .2)); pointer-events: none; }
.player-sheet {
  position: relative;
  z-index: 2;
  margin-top: -82px;
  padding: 20px 20px 19px;
  background: rgba(255, 255, 255, .97);
  border-radius: 26px 26px 0 0;
}
.player-sheet h2 { margin: 0; color: var(--ocean-ink); font-size: clamp(27px, 8vw, 34px); line-height: 1.08; letter-spacing: -.035em; }
.area-line { margin: 6px 0 13px; color: var(--ocean-slate); font-size: 13px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.player-chip { min-height: 26px; padding: 5px 10px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--ocean-soft-aqua); color: var(--ocean-aqua-deep); font-size: 11px; font-weight: 750; }
.player-chip.neutral { background: var(--ocean-cloud); color: #4b5563; }
.court-line { margin: 14px 0 0; display: flex; align-items: center; gap: 7px; color: var(--ocean-ink); font-size: 13px; font-weight: 700; line-height: 1.4; }
.court-line svg { width: 17px; height: 17px; flex: none; color: var(--ocean-aqua-deep); }
.discover-bio { margin: 11px 0 0; color: var(--ocean-slate); font-size: 13px; line-height: 1.48; }
.view-profile-hint { margin-top: 13px; display: inline-flex; align-items: center; gap: 5px; color: var(--ocean-aqua-deep); font-size: 11px; font-weight: 750; }
.view-profile-hint svg { width: 14px; height: 14px; }

.discover-actions {
  position: fixed;
  z-index: 25;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  width: min(640px, calc(100% - 32px));
  margin: 0;
  padding: 10px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  transform: translateX(-50%);
  border: 1px solid rgba(226, 232, 240, .75);
  border-radius: 22px;
  background: rgba(247, 251, 252, .9);
  box-shadow: 0 -8px 30px rgba(11, 29, 54, .08);
  backdrop-filter: blur(18px);
}
.decision-form { display: grid; grid-template-columns: minmax(0, 1fr) 58px minmax(0, 1fr); gap: 10px; }
.reverse-form { display: grid; }
.decision {
  min-width: 0;
  min-height: 56px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1.5px solid var(--ocean-aqua);
  border-radius: 17px;
  background: #fff;
  color: var(--ocean-aqua-deep);
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--ocean-shadow-sm);
  transition: transform .1s ease, opacity .1s ease, box-shadow .1s ease;
}
.decision > span:not(.sr-only) { white-space: nowrap; }
.decision:active { transform: scale(.98); }
.decision:disabled { opacity: .36; cursor: not-allowed; box-shadow: none; }
.decision svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.pickleball-icon .pickle-hole { fill: currentColor; stroke: none; }
.decision.reverse { width: 58px; padding: 0; border-radius: 50%; color: var(--ocean-slate); border-color: var(--ocean-line); }
.decision.reverse svg { width: 27px; height: 27px; }
.decision.later { color: var(--ocean-aqua-deep); }
.decision-form.feedback-left .decision.later { border-color: rgba(15,118,110,calc(.35 + var(--swipe-progress,0)*.55)); background: rgba(220,249,246,calc(.18 + var(--swipe-progress,0)*.72)); color: var(--ocean-aqua-deep); box-shadow: 0 7px 20px rgba(14,116,109,calc(var(--swipe-progress,0)*.2)); transform: scale(calc(1 + var(--swipe-progress,0)*.035)); }
.decision.paddle{width:58px;padding:0;border-radius:50%;border-color:#B9DB24;color:#547d12;background:#FBFFE8}.decision.paddle svg{width:29px;height:29px;display:block;fill:currentColor;stroke:none;transform:translate(1px,-1px)}.decision.paddle svg path{fill:currentColor;stroke:none}.decision.paddle svg circle{fill:#FBFFE8;stroke:none}.decision.paddle.is-sent{border-color:#D7FF3B;background:#F4FFD0;color:#3f6907;opacity:1}.decision.paddle.is-sent svg circle{fill:#F4FFD0}
.paddle-sent-toast{position:fixed;z-index:80;left:50%;bottom:calc(94px + env(safe-area-inset-bottom));width:max-content;max-width:calc(100vw - 32px);min-height:48px;padding:11px 17px 11px 13px;display:flex;align-items:center;gap:10px;border:1px solid #9edfd9;border-radius:16px;background:rgba(245,255,253,.97);color:var(--ocean-ink);box-shadow:0 12px 32px rgba(8,91,91,.18);opacity:0;pointer-events:none;transform:translate(-50%,12px) scale(.98);transition:opacity .18s ease,transform .18s ease;backdrop-filter:blur(14px)}.paddle-sent-toast.is-visible{opacity:1;transform:translate(-50%,0) scale(1)}.paddle-sent-toast svg{width:25px;height:25px;flex:none;fill:var(--ocean-aqua-deep)}.paddle-sent-toast strong{font-size:13px;line-height:1.3}
.decision.now { border-color: #86A91B; background: linear-gradient(135deg, #D7FF3B 0%, #A8D126 100%); color: var(--ocean-ink); box-shadow: 0 10px 24px rgba(74, 105, 9, .25); }
.decision.now .decision-piklup-logo { width: 88px; max-width: 100%; height: 27px; display: block; object-fit: contain; }
.profile-piklup-action { border: 1px solid #86A91B; background: linear-gradient(135deg, #D7FF3B 0%, #A8D126 100%); box-shadow: 0 8px 20px rgba(74, 105, 9, .22); }
.profile-piklup-action img { width: 88px; max-width: 100%; height: 27px; display: block; object-fit: contain; }
.decision-form.feedback-right .decision.now { border-color: #6F9410; filter: saturate(calc(1 + var(--swipe-progress,0)*.2)) brightness(calc(1 - var(--swipe-progress,0)*.04)); box-shadow: 0 10px calc(24px + var(--swipe-progress,0)*12px) rgba(74,105,9,calc(.25 + var(--swipe-progress,0)*.28)); transform: scale(calc(1 + var(--swipe-progress,0)*.045)); }
.swipe-hint { margin: 15px 0 0; color: var(--ocean-slate); font-size: 10px; line-height: 1.4; text-align: center; }
.fly-left { transform: translateX(-130%) rotate(-14deg) !important; opacity: 0; }
.fly-right { transform: translateX(130%) rotate(14deg) !important; opacity: 0; }
.image-preload { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.featured-tournaments{margin:26px 0 18px;padding:18px 20px 10px;border:1px solid #e2e8f0;border-radius:25px;background:#fff;box-shadow:0 12px 30px rgba(11,29,54,.1)}
.featured-tournaments-heading{padding:0 0 12px;border-bottom:1px solid #e7edf1}.featured-tournaments-heading h2{margin:0;color:#0b1d36;font-size:22px;line-height:1.2;letter-spacing:-.035em}
.featured-tournament-list{display:grid}.featured-tournament{min-height:84px;padding:12px 0;display:grid;grid-template-columns:52px minmax(0,1fr) 30px;align-items:center;gap:14px;border-top:1px solid #edf1f4;color:#0b1d36;text-decoration:none}.featured-tournament:first-child{border-top:0}.tournament-art{width:52px;height:52px;display:block;border-radius:50%;overflow:hidden;box-shadow:0 3px 9px rgba(11,29,54,.14)}.tournament-art svg{width:100%;height:100%;display:block}.tournament-art-1 svg>circle{fill:#d7ffb7}.tournament-art-1 .sun{fill:#d7ff3b}.tournament-art-1 .wave{fill:#14d4c4}.tournament-art-1 .wave-line{fill:none;stroke:#0b5c89;stroke-width:3;stroke-linecap:round}.tournament-art-2 svg>circle{fill:#ffb84d}.tournament-art-2 .sun{fill:#ffd54f}.tournament-art-2 .sunset{fill:#f47a30}.tournament-art-2 .palm{fill:none;stroke:#0b1d36;stroke-width:3;stroke-linecap:round}.tournament-art-3 svg>circle{fill:#efffbd}.tournament-art-3 .orange{fill:#ff8a1f;stroke:#e66b00;stroke-width:2}.tournament-art-3 .leaf{fill:#4caf50}.tournament-art-3 .stem{fill:none;stroke:#337a36;stroke-width:2.5;stroke-linecap:round}.tournament-copy{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px}.tournament-copy strong{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}.tournament-copy small{color:#667085;font-size:13px;white-space:nowrap}.external-link-icon{width:28px;height:28px;display:grid;place-items:center;color:#007bff}.external-link-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}.featured-tournament:active{opacity:.7}

.discover-empty {
  min-height: calc(100dvh - 180px);
  padding: 30px 12px;
}
.discover-empty .status-icon { width: 82px; height: 82px; border-radius: 28px; background: linear-gradient(145deg, #dcf9f6, #e8f9ff); }
.discover-empty .status-icon svg { width: 36px; height: 36px; }
.discover-empty h1 { max-width: 420px; font-size: clamp(29px, 8vw, 40px); }
.discover-empty p { max-width: 430px; }
.discover-empty .form-stack { width: min(100%, 330px); margin-top: 12px; }
.discover-empty .button { width: min(100%, 330px); }

.discovery-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; gap: 10px; scroll-snap-type: x mandatory; }
.discovery-gallery img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 24px; scroll-snap-align: start; }

@media (max-width: 380px) {
  .discover-shell .content { padding-right: 14px; padding-left: 14px; }
  .decision { padding-inline: 8px; font-size: 13px; }
  .discover-actions { width: calc(100% - 20px); grid-template-columns: 54px minmax(0, 1fr); gap: 8px; padding: 8px; }
  .decision-form { gap: 8px; }
  .decision.reverse { width: 54px; }
  .decision.paddle { width: 54px; }
}
@media (min-width: 700px) {
  .discover-shell .content { padding-right: 34px; padding-left: 34px; }
  .player-photo-wrap { height: clamp(340px, 48vh, 460px); aspect-ratio: auto; }
}
@media (prefers-reduced-motion: reduce) { .player-card { transition-duration: .01ms; } .player-card.is-dragging { transition: none; } }
.ready-filter-row{max-width:100%;padding-bottom:3px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}.ready-filter-row::-webkit-scrollbar{display:none}.ready-filter-row .player-chip{flex:none;white-space:nowrap}.tournament-jump-link{gap:5px;background:#e8f4ff!important;color:#075fb8!important}.tournament-jump-link svg{width:15px;height:15px}.featured-tournaments{scroll-margin-top:88px}
