/* Tony - bright kindergarten sky */

:root {
  --sky-top: #7ec8f5;
  --sky-mid: #a8dff8;
  --sky-bottom: #e8f7ff;
  --sun: #ffe566;
  --grass: #7bc96f;
  --grass-dark: #5aaa50;
  --ink: #2c3e50;
  --muted: #5a6a7a;
  --white: #ffffff;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 12px 40px rgba(40, 80, 120, 0.18);
  --pink: #ff8fab;
  --orange: #ffb347;
  --purple: #b794f6;
  --blue: #63b3ed;
  --yellow: #f6e05e;
  --radius: 24px;
  --font: "Nunito", "Segoe UI", system-ui, sans-serif;
  --tony-pink: linear-gradient(145deg, #ff8fab, #e53e6b);
  --tony-pink-solid: #e53e6b;
  --tony-pink-shadow: 0 6px 18px rgba(229, 62, 107, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--sky-bottom) 75%, #d4f0c8 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  color: #2b6cb0;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* floating clouds (pure CSS) */
.cloud {
  position: fixed;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  filter: blur(0.5px);
  pointer-events: none;
  z-index: 0;
  animation: drift linear infinite;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.cloud-1 {
  width: 120px;
  height: 40px;
  top: 12%;
  left: -10%;
  animation-duration: 48s;
}
.cloud-1::before {
  width: 50px;
  height: 50px;
  top: -28px;
  left: 18px;
}
.cloud-1::after {
  width: 70px;
  height: 70px;
  top: -36px;
  left: 48px;
}

.cloud-2 {
  width: 160px;
  height: 48px;
  top: 28%;
  left: -20%;
  animation-duration: 62s;
  animation-delay: -20s;
  opacity: 0.85;
}
.cloud-2::before {
  width: 60px;
  height: 60px;
  top: -32px;
  left: 24px;
}
.cloud-2::after {
  width: 80px;
  height: 80px;
  top: -42px;
  left: 60px;
}

.cloud-3 {
  width: 100px;
  height: 34px;
  top: 55%;
  left: -15%;
  animation-duration: 55s;
  animation-delay: -10s;
  opacity: 0.7;
}
.cloud-3::before {
  width: 40px;
  height: 40px;
  top: -22px;
  left: 14px;
}
.cloud-3::after {
  width: 55px;
  height: 55px;
  top: -30px;
  left: 40px;
}

@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(130vw);
  }
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-user {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.75);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

.nav-link-strong {
  background: linear-gradient(145deg, #63b3ed, #3182ce);
  color: #fff !important;
}

.nav-btn {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

.inline-form {
  margin: 0;
  display: inline;
}

.hero-pills {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.75rem 0 0;
}


.pill {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(40, 80, 120, 0.12);
}

.pill:hover {
  text-decoration: none;
}

.pill-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: var(--tony-pink);
  color: #fff;
  padding: 0.55rem 1.15rem;
  overflow: visible;
  box-shadow: var(--tony-pink-shadow);
}

/* Mini clouds flanking the landing pink CTA (same fluff as fleet title) */
.pill-cta--clouds {
  gap: 0.7rem;
  padding: 0.6rem 1rem;
  max-width: min(100%, 28rem);
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}

.title-cloud--cta {
  width: 28px;
  height: 17px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 6px rgba(40, 80, 120, 0.12);
}

.title-cloud--cta::before {
  width: 14px;
  height: 14px;
  top: -7px;
  left: 4px;
}

.title-cloud--cta::after {
  width: 18px;
  height: 18px;
  top: -9px;
  left: 10px;
}

/* Full-page star rain (under pink CTA → stack on TV) */
#tony-star-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 60;
}

.pill-ok {
  background: #c6f6d5;
  color: #22543d;
}

.form-section {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px solid #e2eef9;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.check-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}

.check-item input {
  margin-top: 0.2rem;
}

.label-like {
  display: block;
  font-weight: 800;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.auth-gate {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #ebf8ff, #faf5ff);
  border: 2px solid #bee3f8;
  margin-bottom: 1.25rem;
}

.auth-gate-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.auth-gate p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
  font-size: 0.95rem;
}

.locked-form {
  padding: 1.5rem;
  border-radius: 14px;
  border: 2px dashed #c5d9eb;
  background: #f7fbff;
}

/* App coming-soon page */
.app-soon-card {
  max-width: 640px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.app-soon-title {
  margin: 0.35rem 0 0;
}

.app-soon-sub {
  margin-bottom: 0.75rem;
}

.app-soon-card .coming-soon-box {
  margin-top: 1rem;
  text-align: center;
}

.app-soon-footer {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.muted-center {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  margin: 0;
}

.preview-banner {
  margin-bottom: 1rem;
}

.badge-preview {
  background: #e9d8fd;
  color: #553c9a;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

@media (max-width: 560px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mini-card {
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid var(--c, #4a90e2);
  background: #fff;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.mini-card-art {
  background: #fff;
  font-size: 2.2rem;
  padding: 1rem 0.5rem 0.5rem;
  min-height: 72px;
  display: grid;
  place-items: center;
}

.mini-card-label {
  background: var(--c, #4a90e2);
  color: #fff;
  font-weight: 800;
  padding: 0.45rem;
  font-size: 0.95rem;
  text-transform: lowercase;
}

.preview-notes {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.45;
  font-size: 0.92rem;
}

.meta-grid {
  display: grid;
  gap: 0.35rem;
  background: #f0f7ff;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.day-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.day-item {
  background: #fff;
  border: 2px solid #e2eef9;
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
}

.day-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.4;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 1rem 0;
}

@media (max-width: 640px) {
  .before-after {
    grid-template-columns: 1fr;
  }
}

.ba-label {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.ba-after {
  color: #276749;
}

.ba-box {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem;
  font-family: var(--font);
  font-size: 0.88rem;
  line-height: 1.45;
  font-weight: 600;
  color: var(--ink);
  min-height: 140px;
}

.ba-box-after {
  background: #f0fff4;
  border-color: #9ae6b4;
}

.back-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffe566, #ffb347);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  box-shadow: 0 6px 16px rgba(255, 180, 50, 0.45);
  border: 3px solid #fff;
}

.nav-link {
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
}

.nav-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

/* hero */
.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.5rem;
  line-height: 1.5;
}

/* video placeholder */
/* ── Quiet flat retro TV ─── */
.tv-set {
  max-width: min(920px, 96vw);
  margin: 0.25rem auto 2.75rem;
  position: relative;
  z-index: 5;
}

/* Decorative dials (look only - not clickable) */
.tv-dial--deco {
  pointer-events: none;
  cursor: default;
  user-select: none;
}

/* Big “Hi Tony” play control on the TV */
.hi-tony-btn {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: none;
  cursor: pointer;
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(30, 55, 75, 0.15) 0%,
    rgba(20, 40, 55, 0.55) 100%
  );
  font-family: inherit;
  color: #fff;
  transition: background 0.2s ease;
}

.hi-tony-btn:hover {
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(40, 70, 95, 0.2) 0%,
    rgba(20, 40, 55, 0.45) 100%
  );
}

.hi-tony-btn:focus-visible {
  outline: 3px solid #63b3ed;
  outline-offset: -6px;
}

.hi-tony-orb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  padding-left: 4px;
  background: linear-gradient(160deg, #fff8e8, #f0e0c8);
  color: #3a4a5a;
  border: 3px solid #fff;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
  transition: transform 0.2s ease;
}

.hi-tony-btn:hover .hi-tony-orb {
  transform: scale(1.06);
}

.hi-tony-label {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* Near-fullscreen theatre (zoom in / out) */
.tony-theatre[hidden] {
  display: none !important;
}

.tony-theatre {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.tony-theatre-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 32, 0.88);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.tony-theatre.is-visible .tony-theatre-backdrop {
  opacity: 1;
}

.tony-theatre.is-closing .tony-theatre-backdrop {
  opacity: 0;
}

.tony-theatre-stage {
  position: relative;
  z-index: 1;
  width: min(1100px, 96vw);
  max-height: 92vh;
  background: #0d1520;
  border-radius: 16px;
  border: 3px solid #2a3544;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  transform-origin: center center;
  will-change: transform, opacity;
}

.tony-theatre-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
  opacity: 1 !important;
  filter: none !important;
}

.tony-theatre-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
  opacity: 0;
  transition: opacity 0.25s ease 0.2s;
}

.tony-theatre.is-visible .tony-theatre-close {
  opacity: 1;
}

.tony-theatre-close:hover {
  background: rgba(0, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.6);
}

body.tony-theatre-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .tony-theatre-backdrop,
  .tony-theatre-stage {
    transition-duration: 0.05s !important;
  }
}

@media (max-width: 560px) {
  .hi-tony-orb {
    width: 72px;
    height: 72px;
    font-size: 1.65rem;
  }

  .hi-tony-label {
    font-size: 1.25rem;
  }

  .tony-theatre {
    padding: 0.5rem;
  }

  .tony-theatre-stage {
    width: 100%;
    max-height: 100vh;
    border-radius: 10px;
  }
}

.tv-antenna {
  position: relative;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: -2px;
}

.tv-ant-join {
  width: 18px;
  height: 8px;
  background: #d8cfc2;
  border: 1.5px solid #c5b9a8;
  border-radius: 3px 3px 0 0;
  position: relative;
  z-index: 1;
}

.tv-ant {
  position: absolute;
  bottom: 6px;
  width: 2px;
  height: 30px;
  background: #b8b0a4;
  border-radius: 1px;
  transform-origin: bottom center;
}

.tv-ant::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4a0a8;
  border: 1px solid #c48894;
}

.tv-ant--l {
  left: calc(50% - 4px);
  transform: rotate(-22deg);
}

.tv-ant--r {
  right: calc(50% - 4px);
  left: auto;
  transform: rotate(22deg);
}

.tv-body {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 0;
  background: #efe8de;
  border: 2.5px solid #d4c9ba;
  border-radius: 20px;
  padding: 14px 12px 14px 14px;
  box-shadow: 0 8px 22px rgba(40, 70, 100, 0.1);
}

@media (max-width: 520px) {
  .tv-body {
    grid-template-columns: 1fr;
  }

  .tv-side {
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px !important;
    padding: 8px 0 0 !important;
    border-left: none !important;
    border-top: 1px solid #e0d6c8;
    margin-top: 8px;
    margin-left: 0 !important;
  }

  .tv-grill {
    width: 40px !important;
    height: 12px !important;
  }
}

.tv-screen-wrap {
  background: #2a2a2a;
  border-radius: 12px;
  padding: 7px;
}

.tv-screen.video-stage {
  position: relative;
  width: 100%;
  margin: 0;
  max-width: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #1a1a1a;
  background: #1e3a4c;
  aspect-ratio: 16 / 9;
}

.tv-screen.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0f2430;
  vertical-align: middle;
  opacity: 0.4;
}

/* When play button is gone (mid-move), keep screen tidy */
.tv-screen.video-stage:has(video:only-child) video {
  opacity: 0.4;
}

.tv-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-left: 8px;
  border-left: 1px solid #e0d6c8;
  margin-left: 6px;
}

/* Retro plastic dials (no emoji) */
.tv-dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: "Courier New", Courier, monospace;
}

.tv-dial:focus-visible {
  outline: 2px solid #63b3ed;
  outline-offset: 3px;
  border-radius: 4px;
}

.tv-dial-face {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #f7f0e6 0%, #d4c4ae 42%, #a89880 100%);
  border: 2px solid #8a7a68;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.55),
    inset 0 -2px 4px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.tv-dial-tick {
  position: absolute;
  top: 5px;
  left: 50%;
  width: 2px;
  height: 9px;
  margin-left: -1px;
  background: #4a4035;
  border-radius: 1px;
  transform-origin: center 12px;
  transition: transform 0.2s ease;
}

.tv-dial--sound .tv-dial-tick {
  transform: rotate(40deg);
}

.tv-dial--mute .tv-dial-tick {
  transform: rotate(-50deg);
}

.tv-dial--sound.is-active .tv-dial-face {
  border-color: #5a9a6a;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.55),
    0 0 0 2px rgba(104, 180, 120, 0.4);
}

.tv-dial--sound.is-active .tv-dial-tick {
  transform: rotate(110deg);
  background: #2f6b3a;
}

.tv-dial--mute.is-active .tv-dial-face {
  border-color: #b07070;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.45),
    0 0 0 2px rgba(200, 120, 120, 0.35);
}

.tv-dial--mute.is-active .tv-dial-tick {
  transform: rotate(-110deg);
  background: #8a4040;
}

.tv-dial--pause .tv-dial-tick {
  transform: rotate(0deg);
}

.tv-dial--pause.is-active .tv-dial-face {
  border-color: #6a8ab0;
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.5),
    0 0 0 2px rgba(100, 140, 190, 0.4);
}

.tv-dial--pause.is-active .tv-dial-tick {
  transform: rotate(90deg);
  background: #3a5a80;
}

.tv-set.tv-paused .tv-screen-wrap {
  box-shadow: 0 0 0 1px rgba(100, 140, 190, 0.3);
}

.tv-dial:hover .tv-dial-face {
  filter: brightness(1.04);
}

.tv-dial:active .tv-dial-face {
  filter: brightness(0.96);
}

.tv-dial-label {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7a6a58;
  line-height: 1;
}

.tv-dial.is-active .tv-dial-label {
  color: #4a4035;
}

.tv-set.tv-sound-on .tv-screen-wrap {
  box-shadow: 0 0 0 1px rgba(90, 150, 100, 0.25);
}

.tv-grill {
  width: 32px;
  height: 42px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    180deg,
    #d8cfc2 0 2px,
    #ebe4da 2px 5px
  );
  border: 1px solid #d0c4b4;
  opacity: 0.9;
}

/* Room for sticky-ish scroll target under header */
#balloons {
  scroll-margin-top: 1.25rem;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(160deg, #3d6a82, #2a4a5e 55%, #1e3a4c);
  color: #f2f8fc;
  padding: 1.35rem 1.15rem;
  text-align: center;
}

.video-placeholder .play-orb {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.45rem;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.video-placeholder h2 {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
}

.video-placeholder p {
  margin: 0;
  opacity: 0.9;
  max-width: 26rem;
  line-height: 1.45;
  font-size: 0.95rem;
}

.video-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.5rem 0.85rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  font-weight: 600;
}

/* airship fleet */
.fleet-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}

.fleet-title-text {
  line-height: 1.2;
}

/* A · pure CSS fluffy clouds */
.title-cloud {
  position: relative;
  width: 42px;
  height: 26px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(40, 80, 120, 0.12);
}

.title-cloud::before,
.title-cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.title-cloud::before {
  width: 22px;
  height: 22px;
  top: -10px;
  left: 6px;
}

.title-cloud::after {
  width: 28px;
  height: 28px;
  top: -14px;
  left: 16px;
}

.fleet-sub {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  font-size: 1rem;
  margin: 0.5rem auto 1.35rem;
  max-width: 28rem;
  line-height: 1.4;
}

.fleet {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

@media (max-width: 800px) {
  .fleet {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }
}

.airship {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: bob 4s ease-in-out infinite;
  cursor: pointer;
  overflow: hidden;
}

.airship:nth-child(2) {
  animation-delay: -1.2s;
}
.airship:nth-child(3) {
  animation-delay: -2.4s;
}

.airship:hover,
.airship:focus-visible {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 50px rgba(40, 80, 120, 0.28);
  text-decoration: none;
  outline: none;
}

.airship:active {
  transform: scale(0.97);
}

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

.airship .balloon {
  width: 88px;
  height: 100px;
  margin: 0 auto 0.85rem;
  border-radius: 50% 50% 48% 48%;
  position: relative;
  box-shadow: inset -10px -8px 0 rgba(0, 0, 0, 0.08);
}

.airship .balloon::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid inherit;
}

.airship .basket {
  width: 36px;
  height: 18px;
  margin: 10px auto 0;
  border-radius: 3px 3px 6px 6px;
  background: #c4a574;
  box-shadow: 0 2px 0 #a08050;
  position: relative;
}

.airship .basket::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 4px;
  right: 4px;
  height: 14px;
  border-left: 1.5px solid rgba(0, 0, 0, 0.25);
  border-right: 1.5px solid rgba(0, 0, 0, 0.25);
}

.balloon-pink {
  background: linear-gradient(160deg, #ffb3c6, #ff6b9d);
  color: #ff6b9d;
}
.balloon-pink::after {
  border-top-color: #ff6b9d;
}

.balloon-blue {
  background: linear-gradient(160deg, #90cdf4, #4299e1);
  color: #4299e1;
}
.balloon-blue::after {
  border-top-color: #4299e1;
}

.balloon-yellow {
  background: linear-gradient(160deg, #fefcbf, #f6e05e);
  color: #b7791f;
}
.balloon-yellow::after {
  border-top-color: #ecc94b;
}

.airship h3 {
  margin: 0.6rem 0 0.35rem;
  font-size: 1.2rem;
}

.airship p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}

.airship .cta {
  display: inline-block;
  margin-top: 0.9rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--ink);
  color: #fff;
}

.airship-pink .cta {
  background: #e53e6b;
}
.airship-blue .cta {
  background: #3182ce;
}
.airship-yellow .cta {
  /* true sunny yellow - not orange */
  background: #d69e2e;
  color: #1a202c;
}

/* cards / forms */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  border: 3px solid #fff;
  max-width: 680px;
  margin: 0 auto;
}

.card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.card .subtitle {
  color: var(--muted);
  margin: 0 0 1.5rem;
  line-height: 1.45;
}

.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-weight: 800;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

.form-group .hint {
  display: block;
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.3rem;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 2px solid #d0e4f5;
  border-radius: 14px;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #63b3ed;
  box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.25);
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.45;
}

textarea.tall {
  min-height: 200px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  background: linear-gradient(145deg, #63b3ed, #3182ce);
  color: #fff;
  box-shadow: 0 6px 18px rgba(49, 130, 206, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(49, 130, 206, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
}

/* Same pink as landing CTA - use sitewide for "make me your assistant" */
.btn-pink {
  background: var(--tony-pink);
  box-shadow: var(--tony-pink-shadow);
  color: #fff;
}

.btn-pink:hover {
  color: #fff;
}

.link-assistant {
  color: var(--tony-pink-solid);
  font-weight: 800;
}

a.link-assistant:hover {
  color: #c5305a;
}

.btn-yellow {
  background: linear-gradient(145deg, #faf089, #ecc94b);
  box-shadow: 0 6px 18px rgba(214, 158, 46, 0.4);
  color: #1a202c;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 2px solid #d0e4f5;
  box-shadow: none;
}

.alert {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  margin-bottom: 1.15rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.alert-error {
  background: #fff5f5;
  color: #c53030;
  border: 2px solid #feb2b2;
}

.alert-ok {
  background: #f0fff4;
  color: #276749;
  border: 2px solid #9ae6b4;
}

.back-row {
  margin-bottom: 1rem;
}

.success-icon {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.meta-box {
  background: #f0f7ff;
  border-radius: 14px;
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.meta-box code {
  background: #e2eef9;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.88rem;
}

/* admin */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid #e2eef9;
  vertical-align: top;
}

.admin-table th {
  font-weight: 800;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge-queued {
  background: #fefcbf;
  color: #975a16;
}
.badge-in_progress {
  background: #bee3f8;
  color: #2a4365;
}
.badge-done {
  background: #c6f6d5;
  color: #22543d;
}
.badge-rejected {
  background: #fed7d7;
  color: #822727;
}

.kind-pill {
  font-weight: 800;
  font-size: 0.85rem;
}

pre.payload {
  background: #1a2a3a;
  color: #e2e8f0;
  padding: 1rem;
  border-radius: 14px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.footer {
  text-align: center;
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.footer a {
  color: var(--muted);
}

.site-footer {
  margin-top: 3rem;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  border-top: 2px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 20px 20px 0 0;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.footer-mark {
  font-size: 1.75rem;
  line-height: 1;
}

.footer-legal {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
}

.footer-nav a {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
  color: #2b6cb0;
}

/* Fleet section (landing - no map) */
.fleet-section {
  position: relative;
  margin-top: 0.5rem;
  padding: 0.5rem 0.5rem 0.5rem;
}

/* Cloud-style world map (mission page only) */
.mission-map-wrap {
  margin: -0.75rem -0.75rem 1.15rem;
  border-radius: 18px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 10px 28px rgba(40, 90, 140, 0.12);
  background: linear-gradient(180deg, #7ec8f5, #e8f7ff);
}

.cloud-map-svg {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.coming-soon-box {
  text-align: center;
  padding: 1.75rem 1.25rem;
  border-radius: 18px;
  background: linear-gradient(160deg, #ebf8ff, #faf5ff);
  border: 2px dashed #a0c4e0;
  margin: 1rem 0;
}

/* Real results gallery */
.result-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1rem 0 0.5rem;
}

.result-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 16px;
  background: #fff;
  border: 2px solid #e2eef9;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 14px rgba(40, 80, 120, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(40, 80, 120, 0.14);
  text-decoration: none;
}

.result-card-thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf5;
  border: 1px solid #e2e8f0;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.result-card-body h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.result-card-body p {
  margin: 0 0 0.45rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

.result-card-meta {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #718096;
  margin-bottom: 0.45rem;
}

.result-card-cta {
  font-weight: 800;
  color: var(--tony-pink-solid);
  font-size: 0.92rem;
}

.result-detail .result-preview-frame {
  margin-top: 1rem;
  border-radius: 16px;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: var(--shadow);
  background: #f7fafc;
}

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

/* Browse pill: Categories | A–Z | search field */
.browse-modes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin: 0.85rem 0 0.45rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff6fb 0%, #eef6ff 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.85), 0 4px 14px rgba(40, 80, 120, 0.08);
  max-width: 100%;
}

.browse-modes.is-searching .browse-mode:not(.is-active) {
  opacity: 0.55;
}

.browse-mode {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  cursor: pointer;
  flex-shrink: 0;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.18s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.2s ease;
}

.browse-mode:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.browse-mode.is-active {
  background: #fff;
  color: var(--tony-pink-solid);
  box-shadow: 0 4px 12px rgba(255, 122, 178, 0.22);
}

.browse-mode:focus-visible {
  outline: 3px solid rgba(255, 122, 178, 0.45);
  outline-offset: 2px;
}

/* Search sits inside the same pill as the mode tabs */
.set-search {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1 1 10rem;
  min-width: 8.5rem;
  margin: 0;
  padding: 0.4rem 0.7rem 0.4rem 0.55rem;
  border-radius: 999px;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.set-search--in-pill:focus-within,
.browse-modes.is-searching .set-search--in-pill {
  background: #fff;
  box-shadow: 0 4px 12px rgba(255, 122, 178, 0.18);
}

.set-search-icon {
  flex-shrink: 0;
  width: 1.15rem;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #a0aec0;
  line-height: 1;
  transition: color 0.15s ease;
}

.set-search--in-pill:focus-within .set-search-icon,
.browse-modes.is-searching .set-search-icon {
  color: var(--tony-pink-solid);
}

.set-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  padding: 0.15rem 0;
}

.set-search-input::placeholder {
  color: #a0aec0;
  font-weight: 600;
}

.set-search-clear {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border: none;
  border-radius: 999px;
  background: #f0f4f8;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.75rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s ease, color 0.15s ease;
}

.set-search-clear:hover {
  background: #ffe4f1;
  color: var(--tony-pink-solid);
}

.set-search-status {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  min-height: 1.15em;
}

/* Super cute A–Z letter grid */
.az-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.az-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin: 0;
  min-height: 4.4rem;
  padding: 0.45rem 0.25rem 0.5rem;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 5px 14px rgba(40, 80, 120, 0.1);
  transition:
    transform 0.22s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.22s ease,
    filter 0.2s ease;
  overflow: hidden;
}

.az-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 55%);
  pointer-events: none;
}

.az-tile--0 { background: linear-gradient(160deg, #ffe4f1 0%, #ffd0e8 100%); }
.az-tile--1 { background: linear-gradient(160deg, #dceeff 0%, #c5e4ff 100%); }
.az-tile--2 { background: linear-gradient(160deg, #fff3c4 0%, #ffe89a 100%); }
.az-tile--3 { background: linear-gradient(160deg, #d9f5e5 0%, #bff0d4 100%); }
.az-tile--4 { background: linear-gradient(160deg, #eee4ff 0%, #ddd0ff 100%); }
.az-tile--5 { background: linear-gradient(160deg, #ffe8d6 0%, #ffd4b8 100%); }

.az-tile:hover:not(:disabled),
.az-tile:focus-visible:not(:disabled) {
  transform: translateY(-5px) scale(1.06) rotate(-1.5deg);
  box-shadow: 0 12px 24px rgba(40, 80, 120, 0.16);
  outline: none;
  z-index: 1;
}

.az-tile:active:not(:disabled) {
  transform: translateY(-1px) scale(1.02);
}

.az-letter {
  position: relative;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.az-count {
  position: relative;
  font-size: 0.68rem;
  font-weight: 800;
  color: rgba(40, 55, 80, 0.72);
  line-height: 1.15;
  text-align: center;
  padding: 0 0.15rem;
}

.az-tile.is-empty,
.az-tile:disabled {
  cursor: default;
  opacity: 0.42;
  filter: grayscale(0.35);
  box-shadow: none;
  transform: none;
}

.az-tile.is-empty .az-count {
  font-weight: 700;
  font-size: 0.62rem;
  color: rgba(40, 55, 80, 0.55);
}

/* Category browse (step 1) */
.cat-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1rem;
}

.cat-tile {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0;
  padding: 0.9rem 0.95rem;
  border: 2px solid transparent;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(40, 80, 120, 0.1);
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-align: left;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.cat-tile:hover,
.cat-tile:focus-visible {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 28px rgba(40, 80, 120, 0.16);
  outline: none;
}

.cat-tile-emoji {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: #f7fafc;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.cat-tile--pink .cat-tile-emoji { background: #ffe4f1; }
.cat-tile--blue .cat-tile-emoji { background: #dceeff; }
.cat-tile--yellow .cat-tile-emoji { background: #fff3c4; }
.cat-tile--green .cat-tile-emoji { background: #d9f5e5; }
.cat-tile--purple .cat-tile-emoji { background: #eee4ff; }

.cat-tile--pink:hover,
.cat-tile--pink:focus-visible { border-color: rgba(255, 122, 178, 0.55); }
.cat-tile--blue:hover,
.cat-tile--blue:focus-visible { border-color: rgba(90, 160, 230, 0.55); }
.cat-tile--yellow:hover,
.cat-tile--yellow:focus-visible { border-color: rgba(240, 190, 60, 0.65); }
.cat-tile--green:hover,
.cat-tile--green:focus-visible { border-color: rgba(80, 190, 130, 0.55); }
.cat-tile--purple:hover,
.cat-tile--purple:focus-visible { border-color: rgba(160, 120, 230, 0.55); }

.cat-tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cat-tile-title {
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.25;
}

.cat-tile-blurb {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.35;
}

.cat-tile-meta {
  margin-top: 0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #718096;
}

.cat-tile-cta {
  margin-top: 0.2rem;
  font-weight: 800;
  color: var(--tony-pink-solid);
  font-size: 0.9rem;
}

.browse-sets-bar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.browse-back {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.browse-sets-heading h2 {
  margin: 0;
  font-size: 1.25rem;
}

/* Flashcard set gallery — small previews to pick from */
.set-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
}

.set-tile[hidden] {
  display: none !important;
}

.set-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  margin: 0;
  padding: 0.65rem;
  border: none;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(40, 80, 120, 0.1);
  border: 2px solid transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.set-tile:hover,
.set-tile:focus-visible {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 28px rgba(40, 80, 120, 0.16);
  border-color: rgba(255, 122, 178, 0.55);
  outline: none;
}

.set-tile-thumb {
  border-radius: 12px;
  overflow: hidden;
  background: #fffaf5;
  border: 1px solid #e2e8f0;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.set-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.set-tile-body {
  padding: 0.65rem 0.25rem 0.2rem;
}

.set-tile-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.08rem;
}

.set-tile-body p {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.set-tile-cta {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 800;
  color: var(--tony-pink-solid);
  font-size: 0.9rem;
}

/* A–Z: same soft hover glow as usual, tinted to the letter tile colour */
.set-tile--accent-0:hover,
.set-tile--accent-0:focus-visible {
  border-color: rgba(255, 122, 178, 0.55);
}
.set-tile--accent-1:hover,
.set-tile--accent-1:focus-visible {
  border-color: rgba(90, 160, 230, 0.55);
}
.set-tile--accent-2:hover,
.set-tile--accent-2:focus-visible {
  border-color: rgba(240, 190, 60, 0.65);
}
.set-tile--accent-3:hover,
.set-tile--accent-3:focus-visible {
  border-color: rgba(80, 190, 130, 0.55);
}
.set-tile--accent-4:hover,
.set-tile--accent-4:focus-visible {
  border-color: rgba(160, 120, 230, 0.55);
}
.set-tile--accent-5:hover,
.set-tile--accent-5:focus-visible {
  border-color: rgba(237, 137, 54, 0.55);
}

.result-set-footer {
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Fullscreen set viewer */
.set-viewer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.set-viewer[hidden] {
  display: none !important;
}

.set-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 40, 60, 0.55);
  backdrop-filter: blur(3px);
}

.set-viewer-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  max-height: 100%;
  margin: 0 auto;
  background: linear-gradient(180deg, #fffefb 0%, #f5f9ff 100%);
  box-shadow: 0 20px 60px rgba(20, 40, 70, 0.35);
  overflow: hidden;
}

.set-viewer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem 0.75rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.85);
}

.set-viewer-heading h2 {
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}

.set-viewer-summary {
  margin: 0 0 0.25rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
}

.set-viewer-close {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  border: none;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(40, 80, 120, 0.14);
  font-size: 1.15rem;
  font-weight: 800;
  cursor: pointer;
  color: var(--ink);
  transition: transform 0.15s ease, background 0.15s ease;
}

.set-viewer-close:hover {
  transform: scale(1.06);
  background: #fff0f6;
  color: var(--tony-pink-solid);
}

.set-viewer-body {
  flex: 1;
  overflow: auto;
  padding: 0.85rem 1rem 1rem;
  -webkit-overflow-scrolling: touch;
}

.set-viewer-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  padding: 0.85rem 1rem 1.1rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.9);
}

body.set-viewer-open {
  overflow: hidden;
}

/* Interactive flashcard grid (fullscreen viewer) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0;
  padding: 0.85rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fffaf5 0%, #f0f7ff 100%);
  border: 3px solid #fff;
  box-shadow: var(--shadow);
}

.card-grid--viewer {
  max-width: 980px;
  margin: 0 auto;
}

.card-grid-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.card-grid-frame {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(40, 80, 120, 0.1);
  transition:
    transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1),
    box-shadow 0.28s ease;
  transform-origin: center bottom;
  will-change: transform;
}

.card-grid-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.card-grid-item:hover .card-grid-frame,
.card-grid-item:focus-within .card-grid-frame {
  transform: translateY(-8px) scale(1.08);
  box-shadow:
    0 14px 28px rgba(40, 80, 120, 0.18),
    0 0 0 3px rgba(255, 122, 178, 0.35);
  z-index: 2;
}

.card-grid-item:active .card-grid-frame {
  transform: translateY(-2px) scale(1.03);
}

.card-grid-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
  transition: color 0.2s ease, transform 0.28s cubic-bezier(0.34, 1.45, 0.64, 1);
}

.card-grid-item:hover .card-grid-label,
.card-grid-item:focus-within .card-grid-label {
  color: var(--tony-pink-solid);
  transform: translateY(-2px);
}

/* Let the zoomed card peek over neighbours */
.card-grid {
  overflow: visible;
}

.card-grid-item {
  position: relative;
  z-index: 0;
}

.card-grid-item:hover,
.card-grid-item:focus-within {
  z-index: 3;
}

@media (max-width: 720px) {
  .set-gallery,
  .cat-gallery {
    grid-template-columns: 1fr;
  }

  .az-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.45rem;
  }

  .az-tile {
    min-height: 3.9rem;
  }

  .az-letter {
    font-size: 1.35rem;
  }
}

@media (max-width: 420px) {
  .az-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .browse-mode {
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
  }

  .browse-modes {
    border-radius: 22px;
  }

  .set-search--in-pill {
    flex: 1 1 100%;
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .result-card {
    grid-template-columns: 100px 1fr;
    gap: 0.75rem;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
    padding: 0.65rem;
  }

  .card-grid-label {
    font-size: 0.72rem;
  }

  .set-viewer-header {
    padding: 0.85rem 0.85rem 0.65rem;
  }

  .set-viewer-body {
    padding: 0.65rem;
  }

  .set-viewer-heading h2 {
    font-size: 1.2rem;
  }
}

@media (min-width: 900px) {
  .card-grid--viewer {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-grid-frame,
  .card-grid-label {
    transition: box-shadow 0.15s ease, color 0.15s ease;
  }

  .card-grid-item:hover .card-grid-frame,
  .card-grid-item:focus-within .card-grid-frame {
    transform: none;
    box-shadow:
      0 6px 16px rgba(40, 80, 120, 0.14),
      0 0 0 3px rgba(255, 122, 178, 0.35);
  }

  .card-grid-item:hover .card-grid-label,
  .card-grid-item:focus-within .card-grid-label {
    transform: none;
  }
}

.coming-soon-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.35rem;
}

.coming-soon-box p {
  margin: 0.35rem 0;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.coming-soon-note {
  color: var(--muted) !important;
  font-size: 0.9rem !important;
}

.mission-card {
  overflow: hidden;
}

.mission-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

@media (max-width: 640px) {
  .mission-points {
    grid-template-columns: 1fr;
  }
}

.mission-point {
  background: #f0f7ff;
  border-radius: 14px;
  padding: 0.85rem;
  border: 2px solid #e2eef9;
}

.mission-point strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1rem;
}

.mission-point p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.sitemap-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sitemap-list li {
  margin: 0;
  border-bottom: 1px solid #e2eef9;
}

.sitemap-list a {
  display: block;
  padding: 0.75rem 0.25rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.sitemap-list a:hover {
  color: #2b6cb0;
}

/* pop confetti-ish sparkles on airship click is JS optional */

.file-input {
  padding: 0.75rem;
  border: 2px dashed #a0c4e0;
  border-radius: 14px;
  background: #f7fbff;
}

.required::after {
  content: " *";
  color: #e53e6b;
}
