/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:       #ffffff;
  --surface:  #f5f5f5;
  --border:   #e0e0e0;
  --text:     #222222;
  --muted:    #888888;
  --accent:   #e63946;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
  --radius:   8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Home (linktree) layout ─────────────────────────────── */
body.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.profile {
  text-align: center;
  margin-bottom: 2.5rem;
}

.profile h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile p {
  margin-top: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
  max-width: 400px;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  box-shadow: var(--shadow-sm);
}

.link-icon {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

/* ── Recipes header ─────────────────────────────────────── */
header {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

header h1 span {
  color: var(--accent);
}

#search {
  display: block;
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 1rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

#search::placeholder {
  color: var(--muted);
}

#search:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.12);
}

/* ── Recipes main / card grid ───────────────────────────── */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

#card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2rem 0;
  font-size: 1rem;
}

/* ── Recipe cards ───────────────────────────────────────── */
.card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.25rem 1rem;
  min-height: 100px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  font-family: var(--font);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  outline: none;
}

.card-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

/* ── Modal overlay ──────────────────────────────────────── */
#modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

#modal[hidden] {
  display: none;
}

#modal-content {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 90vw;
  height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#close-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 10;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.08);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

#close-btn:hover {
  background: rgba(0,0,0,0.15);
}

#pdf-frame {
  width: 100%;
  flex: 1;
  border: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }

  #card-grid {
    grid-template-columns: 1fr;
  }

  #modal-content {
    width: 100%;
    height: 92vh;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  #modal {
    align-items: flex-end;
    padding: 0;
  }
}

/* -- Date Me ------------------------------------------------ */
body.date-me {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(145, 70, 255, 0.16), transparent 32rem),
    linear-gradient(135deg, #ffffff 0%, #f7f7fb 48%, #fff1f3 100%);
}

.date-me-shell {
  width: 100%;
  max-width: 720px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
}

.date-card {
  position: relative;
  width: 100%;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(25, 25, 35, 0.12);
  padding: 2.25rem;
}

.date-back {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.date-back:hover,
.date-back:focus-visible {
  transform: translateY(-1px);
  border-color: #9146ff;
  box-shadow: var(--shadow-sm);
  outline: none;
}

.date-card h1 {
  font-size: clamp(2.25rem, 7vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

.date-copy {
  max-width: 32rem;
  color: #5d6470;
  font-size: 1.05rem;
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

.twitch-form {
  display: grid;
  gap: 0.75rem;
}

.twitch-form label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}

.username-field {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 3.25rem;
  padding: 0 1rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.username-field:focus-within {
  border-color: #9146ff;
  box-shadow: 0 0 0 3px rgba(145, 70, 255, 0.14);
}

.username-field span {
  color: #9146ff;
  font-weight: 800;
}

.username-field input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
  background: transparent;
}

.date-submit {
  min-height: 3.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.25rem;
  color: #ffffff;
  background: #222222;
  border: 1.5px solid #222222;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.date-submit:hover,
.date-submit:focus-visible {
  transform: translateY(-2px);
  background: #111111;
  box-shadow: var(--shadow-md);
  outline: none;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 14, 18, 0.62);
}

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

.booking-panel {
  position: relative;
  width: min(94vw, 760px);
  max-height: 92vh;
  overflow: auto;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  padding: 1.25rem;
}

.booking-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}

.booking-close:hover,
.booking-close:focus-visible {
  border-color: #9146ff;
  outline: none;
}

.booking-header {
  padding: 0.5rem 3rem 1rem 0.25rem;
}

.booking-header h2 {
  font-size: 1.8rem;
  letter-spacing: 0;
  margin-bottom: 0.45rem;
}

.booking-for {
  color: #5d6470;
  line-height: 1.45;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 2.25rem 1fr 2.25rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f7f7fb;
  border: 1.5px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

.calendar-toolbar strong {
  text-align: center;
  font-size: 1rem;
}

.calendar-toolbar button {
  width: 2.25rem;
  height: 2.25rem;
  color: var(--muted);
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, opacity 0.15s;
}

.calendar-toolbar button:hover:not(:disabled),
.calendar-toolbar button:focus-visible {
  color: #9146ff;
  border-color: #9146ff;
  outline: none;
}

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

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-right: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}

.weekday,
.calendar-day {
  min-width: 0;
  border-top: 1.5px solid var(--border);
  border-left: 1.5px solid var(--border);
}

.weekday {
  padding: 0.65rem 0.35rem;
  color: #5d6470;
  background: #ffffff;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  min-height: 4.8rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.55rem;
  color: #9f1239;
  background: repeating-linear-gradient(
    135deg,
    #fff5f5,
    #fff5f5 8px,
    #ffe4e6 8px,
    #ffe4e6 16px
  );
  border-right: 0;
  border-bottom: 0;
  font-family: var(--font);
  cursor: not-allowed;
  opacity: 1;
}

.calendar-day span {
  color: #222222;
  font-weight: 800;
}

.calendar-day small {
  width: 100%;
  color: #9f1239;
  font-size: 0.7rem;
  font-weight: 800;
  text-align: right;
  text-transform: uppercase;
}

.calendar-day-available {
  color: #166534;
  background: #ecfdf3;
  border-color: #bbf7d0;
  cursor: pointer;
}

.calendar-day-available:hover,
.calendar-day-available:focus-visible {
  box-shadow: inset 0 0 0 2px #22c55e;
  outline: none;
}

.calendar-day-available small {
  color: #166534;
}

.calendar-day-empty {
  background: #fafafa;
}

.waitlist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0.25rem 0.25rem;
}

.waitlist-row[hidden] {
  display: none;
}

.waitlist-row p {
  color: #5d6470;
  line-height: 1.45;
}

.waitlist-row button {
  flex: 0 0 auto;
  min-height: 2.5rem;
  padding: 0 1rem;
  color: #ffffff;
  background: #222222;
  border: 1.5px solid #222222;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.waitlist-row button:hover,
.waitlist-row button:focus-visible {
  transform: translateY(-1px);
  background: #111111;
  box-shadow: var(--shadow-sm);
  outline: none;
}

.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(12, 14, 18, 0.28);
}

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

.waitlist-panel {
  position: relative;
  width: min(92vw, 440px);
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
  padding: 2rem;
}

.waitlist-panel h2 {
  max-width: 21rem;
  font-size: 1.55rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.waitlist-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
}

.waitlist-close:hover,
.waitlist-close:focus-visible {
  border-color: #9146ff;
  outline: none;
}

@media (max-width: 620px) {
  .date-me-shell {
    align-items: stretch;
    padding: 1rem;
  }

  .date-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 2rem);
    padding: 1.5rem;
  }

  .booking-panel {
    padding: 1rem;
  }

  .waitlist-row {
    flex-direction: column;
    align-items: stretch;
  }

  .booking-header {
    padding-right: 3rem;
  }

  .calendar-day {
    min-height: 3.8rem;
    padding: 0.35rem;
  }

  .calendar-day small {
    font-size: 0.58rem;
    text-align: left;
  }
}

/* -- Smash or Pass ---------------------------------------- */
body.sop-page {
  --sop-bg: #0b0b10;
  --sop-panel: #15151d;
  --sop-copy: #f7f7fb;
  --sop-muted: #a6a6b3;
  min-height: 100svh;
  color: var(--sop-copy);
  background: radial-gradient(circle at 50% -15%, #39223f 0, #16121e 31%, var(--sop-bg) 68%);
  overflow-x: hidden;
}

.sop-app { width: min(100%, 510px); min-height: 100svh; margin: 0 auto; padding: max(1.1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); }
.sop-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; padding: 0 .2rem; }
.sop-brand { display: flex; align-items: center; gap: .7rem; }
.sop-logo { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .9rem; color: white; font-size: 1.25rem; background: linear-gradient(145deg, #ff5a72, #f43f8a); box-shadow: 0 8px 24px rgba(244,63,138,.25); }
.sop-brand h1 { color: var(--sop-copy); font-size: 1.1rem; letter-spacing: -.02em; }
.sop-brand p { margin-top: .12rem; color: var(--sop-muted); font-size: .73rem; }
.sop-stage { position: relative; }
.sop-counter { margin-bottom: .45rem; color: var(--sop-muted); font-size: .7rem; font-weight: 700; text-align: right; text-transform: uppercase; letter-spacing: .11em; }
.sop-deck { position: relative; height: min(66svh, 620px); min-height: 440px; }
.sop-card { --stack: 0; position: absolute; inset: calc(var(--stack) * 7px) calc(var(--stack) * 6px) calc(var(--stack) * -7px); overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 1.65rem; background: #252530; box-shadow: 0 24px 70px rgba(0,0,0,.44); transform: scale(calc(1 - var(--stack) * .035)) translateY(calc(var(--stack) * 5px)); transform-origin: bottom center; touch-action: none; user-select: none; transition: transform .32s cubic-bezier(.2,.75,.25,1), opacity .3s; }
.sop-card.is-dragging { transition: none; cursor: grabbing; }
.sop-card img { width: 100%; height: 58%; object-fit: cover; object-position: center 28%; pointer-events: none; background: #282332; }
.sop-photo-shade { position: absolute; inset: 39% 0 41%; background: linear-gradient(transparent, #17171f); pointer-events: none; }
.sop-profile-copy { position: absolute; inset: 56% 0 0; display: flex; flex-direction: column; padding: .85rem 1.35rem 1.2rem; background: #111118; }
.sop-name-row { display: flex; align-items: center; gap: .6rem; }
.sop-name-row h2 { font-size: 1.75rem; line-height: 1; letter-spacing: -.035em; }
.sop-name-row h2 span { font-weight: 400; }
.sop-online { width: .62rem; height: .62rem; border: 2px solid white; border-radius: 50%; background: #32d583; box-shadow: 0 1px 7px #32d583; }
.sop-location { margin-top: .48rem; color: #b8b8c3; font-size: .72rem; line-height: 1.35; }
.sop-location i { margin-right: .2rem; color: #ff6784; }
.sop-bio { margin-top: .65rem; color: #eeeef2; font-size: .84rem; line-height: 1.4; }
.sop-tags { display: flex; flex-wrap: wrap; gap: .38rem; margin-top: auto; padding-top: .65rem; list-style: none; }
.sop-tags li { padding: .34rem .65rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(10,10,15,.32); font-size: .7rem; font-weight: 700; backdrop-filter: blur(8px); }
.sop-stamp { position: absolute; z-index: 3; top: 2.2rem; padding: .4rem .65rem; border: 4px solid; border-radius: .45rem; opacity: 0; font-size: 1.85rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; transform: rotate(-10deg); }
.sop-stamp-pass { left: 1.5rem; color: #ff5e70; }
.sop-stamp-smash { right: 1.5rem; color: #42e6a4; transform: rotate(10deg); }
.sop-stamp-marry { left: 50%; color: #61a8ff; transform: translateX(-50%) rotate(-3deg); }
.sop-card[data-preview="pass"] .sop-stamp-pass, .sop-card[data-preview="smash"] .sop-stamp-smash, .sop-card[data-preview="marry"] .sop-stamp-marry { opacity: 1; }
.sop-card.exit-pass { transform: translate(-130%, 12px) rotate(-22deg) !important; opacity: 0; }
.sop-card.exit-smash { transform: translate(130%, 12px) rotate(22deg) !important; opacity: 0; }
.sop-card.exit-marry { transform: translateY(-130%) rotate(4deg) !important; opacity: 0; }
.sop-actions { display: flex; align-items: flex-start; justify-content: center; gap: clamp(1.15rem, 6vw, 2rem); padding-top: 1rem; }
.sop-actions[hidden], .sop-hints[hidden] { display: none; }
.sop-action { display: flex; flex-direction: column; align-items: center; gap: .35rem; border: 0; color: white; background: transparent; cursor: pointer; font: inherit; font-size: .65rem; font-weight: 700; }
.sop-action i { display: grid; place-items: center; width: 3.35rem; height: 3.35rem; border: 1px solid currentColor; border-radius: 50%; background: #171720; box-shadow: 0 8px 20px rgba(0,0,0,.28); font-size: 1.3rem; transition: transform .16s, background .16s; }
.sop-action:hover i, .sop-action:focus-visible i { transform: translateY(-3px) scale(1.04); background: #22222d; }
.sop-pass { color: #ff6577; }.sop-marry { color: #62a8ff; }.sop-smash { color: #45dda2; }
.sop-marry i { width: 3.75rem; height: 3.75rem; margin-top: -.2rem; }
.sop-hints { display: flex; justify-content: center; gap: 1.25rem; margin-top: .55rem; color: #696976; font-size: .64rem; }
.sop-results-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 1rem; color: #ff6685; background: rgba(255,86,122,.12); font-size: 1.35rem; }
.sop-dialog-primary { width: 100%; min-height: 3rem; border: 0; border-radius: .85rem; color: white; background: linear-gradient(120deg, #ff5a72, #f43f8a); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 9px 24px rgba(244,63,138,.2); }
.sop-results { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 1.5rem; border: 1px solid #2d2d38; border-radius: 1.65rem; background: linear-gradient(155deg, #1e1e28, #111118); text-align: center; }
.sop-eyebrow { color: #ff6685; font-size: .7rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.sop-results h2 { margin-top: .4rem; font-size: 1.75rem; }
.sop-result-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .55rem; margin: 1.7rem 0; }
.sop-result-grid div { padding: 1rem .3rem; border: 1px solid #30303b; border-radius: 1rem; background: #181820; }
.sop-result-grid strong { display: block; font-size: 1.8rem; }.sop-result-grid span { color: var(--sop-muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.sop-private { margin-top: 1rem; color: #737380; font-size: .68rem; }.sop-private i { margin-right: .25rem; }

@media (min-width: 700px) {
  .sop-app { max-width: 430px; padding-top: 1.25rem; }
  .sop-header { margin-bottom: .7rem; }
  .sop-counter { display: none; }
  .sop-deck { height: min(69svh, 620px); min-height: 540px; }
  .sop-card { border-radius: 1.25rem; }
  .sop-card img { height: 100%; object-position: center; }
  .sop-photo-shade { inset: 42% 0 0; background: linear-gradient(transparent, rgba(8,8,12,.18) 24%, rgba(8,8,12,.92) 74%, #09090d 100%); }
  .sop-profile-copy { inset: auto 0 0; padding: 4rem 1.4rem 4.3rem; background: transparent; }
  .sop-name-row h2 { font-size: 2rem; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
  .sop-location { color: #f0f0f3; font-size: .78rem; }
  .sop-bio { margin-top: .6rem; color: #e6e6eb; font-size: .8rem; line-height: 1.42; text-shadow: 0 1px 10px rgba(0,0,0,.72); }
  .sop-tags { display: none; }
  .sop-actions { position: relative; z-index: 20; margin-top: -2.25rem; padding-top: 0; }
  .sop-action i { background: #202129; box-shadow: 0 9px 25px rgba(0,0,0,.5); }
  .sop-action:hover i, .sop-action:focus-visible i { background: #2a2b34; }
  .sop-hints { margin-top: .45rem; }
}

@media (max-width: 420px) {
  .sop-app { padding-left: .75rem; padding-right: .75rem; }
  .sop-deck { height: min(65svh, 570px); min-height: 410px; }
  .sop-card img { height: 55%; }
  .sop-photo-shade { inset: 36% 0 44%; }
  .sop-profile-copy { inset: 53% 0 0; padding: .8rem 1rem 1rem; }
  .sop-name-row h2 { font-size: 1.55rem; }
  .sop-bio { font-size: .78rem; line-height: 1.36; }
  .sop-tags { padding-top: .5rem; }
  .sop-tags li { font-size: .64rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sop-card, .sop-action i { transition-duration: .01ms; }
}
