:root {
  --app-bg: #eef2f6;
  --bar-bg: rgba(255, 255, 255, 0.96);
  --bar-border: rgba(15, 23, 42, 0.08);
  --pill-bg: #ffffff;
  --pill-text: #1e293b;
  --pill-border: #cbd5e1;
  --pill-hover: #f1f5f9;
  --pill-active-bg: #0d9488;
  --pill-active-text: #ffffff;
  --pill-active-border: #0f766e;
  --menu-bg: #ffffff;
  --menu-shadow: 0 12px 30px rgba(15, 23, 42, 0.16);

  --page-bg: #e8e1d5;
  --page-text: #1c1917;
  --page-muted: #57534e;
  --grid-border: rgba(28, 25, 23, 0.22);
  --cell-hover: rgba(0, 0, 0, 0.06);
  --book-shadow: 0 18px 45px rgba(0, 0, 0, 0.22), 0 6px 16px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] {
  --app-bg: #0b0f19;
  --bar-bg: rgba(17, 24, 39, 0.96);
  --bar-border: rgba(255, 255, 255, 0.1);
  --pill-bg: #1e293b;
  --pill-text: #f8fafc;
  --pill-border: #334155;
  --pill-hover: #293548;
  --pill-active-bg: #38bdf8;
  --pill-active-text: #090d16;
  --pill-active-border: #7dd3fc;
  --menu-bg: #1e293b;
  --menu-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

[data-theme="sepia"] {
  --app-bg: #dfd3c3;
  --bar-bg: rgba(247, 240, 230, 0.96);
  --bar-border: rgba(92, 64, 51, 0.15);
  --pill-bg: #fbf6ef;
  --pill-text: #3e2b23;
  --pill-border: #c8b6a6;
  --pill-hover: #efe3d4;
  --pill-active-bg: #8c4a27;
  --pill-active-text: #ffffff;
  --pill-active-border: #6f381b;
  --menu-bg: #fbf6ef;
  --menu-shadow: 0 12px 28px rgba(67, 48, 43, 0.18);
}

body.dark-paper {
  --page-text: #f8fafc;
  --page-muted: #cbd5e1;
  --grid-border: rgba(248, 250, 252, 0.25);
  --cell-hover: rgba(255, 255, 255, 0.08);
}

body.light-paper {
  --page-text: #1c1917;
  --page-muted: #57534e;
  --grid-border: rgba(28, 25, 23, 0.22);
  --cell-hover: rgba(0, 0, 0, 0.06);
}

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

html,
body {
  height: 100dvh;
  overflow: hidden;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--app-bg);
  color: var(--pill-text);
  transition: background-color 0.35s ease;
}

.app-shell {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Compact Top Control Bar */
.control-bar {
  flex-shrink: 0;
  position: relative;
  z-index: 50;
  background: var(--bar-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bar-border);
  padding: 0.36rem 1rem 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.26rem;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
}

.tap-hint {
  margin-top: 0.16rem;
  font-size: 0.69rem;
  font-weight: 500;
  color: var(--page-muted);
  line-height: 1.15;
  text-align: center;
}

[data-theme="dark"] .tap-hint {
  color: #cbd5e1;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.26rem;
  padding: 0.18rem;
  border-radius: 999px;
  background: rgba(125, 125, 125, 0.08);
  max-width: 100%;
}

.pill {
  appearance: none;
  border: 1px solid var(--pill-border);
  background: var(--pill-bg);
  color: var(--pill-text);
  font-family: inherit;
  font-size: 0.73rem;
  font-weight: 600;
  padding: 0.28rem 0.68rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  white-space: nowrap;
}

.pill:hover:not(:disabled):not(.active) {
  background: var(--pill-hover);
  transform: translateY(-1px);
}

.pill.active {
  background-color: var(--pill-active-bg);
  color: var(--pill-active-text);
  border-color: var(--pill-active-border);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* Arrow cursor when PREVIOUS / NEXT is disabled */
.pill:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Dropdown Pill Menus (Mode, Background & Highlighter) */
.dropdown-pill-wrap {
  position: relative;
  display: inline-flex;
}

.dropdown-trigger {
  padding: 0.32rem 0.8rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.dropdown-trigger .chevron {
  font-size: 0.7rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.dropdown-pill-wrap.open .dropdown-trigger {
  background-color: var(--pill-active-bg);
  color: var(--pill-active-text);
  border-color: var(--pill-active-border);
}

.dropdown-pill-wrap.open .dropdown-trigger .chevron {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 195px;
  background: var(--menu-bg);
  border: 1px solid var(--pill-border);
  border-radius: 12px;
  padding: 0.32rem;
  box-shadow: var(--menu-shadow);
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 80;
}

.dropdown-pill-wrap.open .dropdown-menu {
  display: flex;
  animation: popIn 0.15s ease-out;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-item {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--pill-text);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover:not(.active) {
  background: rgba(125, 125, 125, 0.12);
}

.dropdown-item.active {
  background-color: var(--pill-active-bg);
  color: var(--pill-active-text);
  font-weight: 700;
}

.dropdown-item .item-left {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.dropdown-item .check {
  opacity: 0;
  font-weight: 700;
}

.dropdown-item.active .check {
  opacity: 1;
}

.swatch {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.28);
  display: inline-block;
  flex-shrink: 0;
}

.page-indicator {
  font-size: 0.73rem;
  font-weight: 700;
  padding: 0 0.5rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* 3D Book Viewport — Sized to fit 100% inside remaining viewport height */
.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem 0.7rem;
  perspective: 2400px;
}

.book-scene {
  width: 100%;
  max-width: 1040px;
  height: 100%;
  max-height: 505px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.book {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 14px;
  box-shadow: var(--book-shadow);
  transform-style: preserve-3d;
}

/* Book Hardcover Backing */
.book::before {
  content: '';
  position: absolute;
  inset: -6px -8px;
  background: linear-gradient(135deg, #3b2f2f, #1f1919);
  border-radius: 17px;
  z-index: -1;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

/* Arrow Cursor by default; Pointing Finger ONLY when page turn is available */
.page {
  position: relative;
  height: 100%;
  min-height: 0;
  background-color: var(--page-bg);
  color: var(--page-text);
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow: hidden;
  cursor: default;
}

.page.can-turn {
  cursor: pointer;
}

.left-page {
  border-radius: 12px 0 0 12px;
  border-right: 1px solid rgba(0, 0, 0, 0.14);
}

.right-page {
  border-radius: 0 12px 12px 0;
}

.page-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 1rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Center Book Spine Crease Shadows */
.page-spine-shadow {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 32px;
  pointer-events: none;
  z-index: 3;
}

.left-spine {
  right: 0;
  background: linear-gradient(to left, rgba(0, 0, 0, 0.16), transparent);
}

.right-spine {
  left: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.18), transparent);
}

/* Smooth 3D Page Flipping Leaf */
.flip-leaf {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  pointer-events: none;
  z-index: 20;
  opacity: 0;
}

.flip-leaf.flipping-next {
  opacity: 1;
  animation: flipForward 0.65s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

.flip-leaf.flipping-prev {
  opacity: 1;
  animation: flipBackward 0.65s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

.leaf-front,
.leaf-back {
  position: absolute;
  inset: 0;
  background-color: var(--page-bg);
  backface-visibility: hidden;
  border-radius: 0 12px 12px 0;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.22);
}

.leaf-back {
  transform: rotateY(180deg);
  border-radius: 12px 0 0 12px;
  box-shadow: 8px 0 25px rgba(0, 0, 0, 0.22);
}

@keyframes flipForward {
  0% {
    transform: rotateY(0deg);
  }
  100% {
    transform: rotateY(-180deg);
  }
}

@keyframes flipBackward {
  0% {
    transform: rotateY(-180deg);
  }
  100% {
    transform: rotateY(0deg);
  }
}

/* Left Page Typography & Compact Word Bank */
.book-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--page-muted);
  margin-bottom: 0.2rem;
}

.puzzle-number {
  background: rgba(125, 125, 125, 0.15);
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
}

.puzzle-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.1rem, 1.75vw, 1.38rem);
  line-height: 1.15;
  margin-bottom: 0.18rem;
}

.puzzle-subtitle {
  font-size: 0.72rem;
  color: var(--page-muted);
  margin-bottom: 0.55rem;
}

.progress-bar-wrap {
  margin-bottom: 0.6rem;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.71rem;
  font-weight: 600;
  margin-bottom: 0.22rem;
}

.progress-track {
  height: 6px;
  background: rgba(125, 125, 125, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #14B8A6;
  border-radius: 999px;
  transition: width 0.35s ease;
}

.reshuffle-status {
  margin-top: 0.32rem;
  font-size: 0.69rem;
  font-weight: 500;
  color: var(--page-muted);
}

.word-bank {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.24rem 0.6rem;
  margin-bottom: auto;
  cursor: default;
}

.word-item {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.16rem 0.32rem;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 0.38rem;
  transition: opacity 0.25s ease;
}

.word-item .word-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(125, 125, 125, 0.32);
  flex-shrink: 0;
}

.word-item.found {
  text-decoration: line-through;
  opacity: 0.62;
}

.page-footer {
  margin-top: 0.5rem;
  padding-top: 0.45rem;
  border-top: 1px solid var(--grid-border);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.footer-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.hint-btn-wrap {
  position: relative;
  display: inline-flex;
}

.hint-btn {
  background: transparent;
  border: 1px solid var(--grid-border);
  color: var(--page-text);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.hint-btn:hover:not(:disabled) {
  background: var(--cell-hover);
  transform: translateY(-1px);
}

.hint-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.reshuffle-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.reshuffle-btn {
  background: transparent;
  border: 1px solid var(--grid-border);
  color: var(--page-text);
  font-size: 0.64rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}

.reshuffle-btn:hover:not(:disabled) {
  background: var(--cell-hover);
}

.reshuffle-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Google Meet-style rising & progressively fading wink emoji */
.floating-wink {
  position: fixed;
  font-size: 1.55rem;
  line-height: 1;
  pointer-events: none;
  z-index: 120;
  will-change: transform, opacity;
  animation: meetWinkFloat 1.35s ease-out forwards;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

@keyframes meetWinkFloat {
  0% {
    opacity: 0;
    transform: translate(-50%, 0) scale(0.8);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -22px) scale(1.08);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift-x, 10px)), -120px) scale(0.92);
  }
}

/* Right Page Word Search Grid */
.grid-page-inner {
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem 0.55rem;
  gap: 0.3rem;
}

.grid-wrapper {
  position: relative;
  height: calc(100% - 1.3rem);
  max-height: 420px;
  aspect-ratio: 1 / 1;
  border: 2px solid var(--grid-border);
  border-radius: 6px;
  touch-action: none;
  user-select: none;
  cursor: crosshair;
}

.highlight-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.letter-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: grid;
}

.grid-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(0.65rem, 1.48dvh, 0.94rem);
  color: var(--page-text);
  border-radius: 4px;
  transition: background-color 0.1s ease, transform 0.1s ease;
}

.grid-cell:hover {
  background-color: var(--cell-hover);
}

.grid-cell.in-selection {
  transform: scale(1.12);
}

.grid-cell.hinted-cell {
  outline: 2.5px solid #f59e0b;
  outline-offset: -2px;
  background-color: rgba(245, 158, 11, 0.26);
  animation: hintPulse 1.4s ease-in-out 2;
}

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

.page-number-bottom {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--page-muted);
  line-height: 1;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.48rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

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

/* Phones & Portrait Tablets */
@media (max-width: 1024px) and (orientation: portrait), (max-width: 767px) {
  html,
  body,
  .app-shell {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .control-bar {
    padding: 0.48rem 0.75rem 0.5rem;
    gap: 0.38rem;
  }

  /* Single horizontal swipeable category row */
  #category-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.24rem 0.4rem;
    gap: 0.32rem;
  }

  #category-pills::-webkit-scrollbar {
    display: none;
  }

  #category-pills .pill {
    flex-shrink: 0;
  }

  /* Wrap dropdown pills cleanly without clipping left/right edges */
  .secondary-controls {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    gap: 0.35rem 0.45rem;
  }

  .dropdown-trigger {
    font-size: 0.7rem;
    padding: 0.28rem 0.62rem;
    gap: 0.32rem;
  }

  .dropdown-menu {
    left: 50%;
    transform: translateX(-50%);
    min-width: 185px;
  }

  .dropdown-pill-wrap.open .dropdown-menu {
    animation: popInCentered 0.15s ease-out;
  }

  @keyframes popInCentered {
    from {
      opacity: 0;
      transform: translate(-50%, -4px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: translate(-50%, 0) scale(1);
    }
  }

  .book-scene {
    max-height: none;
  }

  .book {
    grid-template-columns: 1fr;
    height: auto;
  }

  .left-page {
    border-radius: 12px 12px 0 0;
    border-right: none;
    border-bottom: 1px solid var(--grid-border);
  }

  .right-page {
    border-radius: 0 0 12px 12px;
  }

  .grid-wrapper {
    width: 100%;
    height: auto;
    max-width: 460px;
  }

  .flip-leaf {
    width: 100%;
  }

  .page-spine-shadow {
    display: none;
  }

  .grid-cell {
    font-size: clamp(0.74rem, 3.2vw, 1.05rem);
  }
}

/* Landscape Phones & Tablets */
@media (max-width: 1180px) and (max-height: 768px) and (orientation: landscape) {
  .control-bar {
    padding: 0.28rem 0.75rem 0.32rem;
    gap: 0.22rem;
  }

  #category-pills {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.18rem 0.35rem;
    gap: 0.26rem;
  }

  #category-pills::-webkit-scrollbar {
    display: none;
  }

  #category-pills .pill {
    flex-shrink: 0;
    font-size: 0.67rem;
    padding: 0.2rem 0.52rem;
  }

  .secondary-controls {
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0.34rem;
  }

  .dropdown-trigger {
    font-size: 0.66rem;
    padding: 0.2rem 0.5rem;
  }

  .tap-hint {
    font-size: 0.64rem;
  }

  .page-indicator {
    font-size: 0.68rem;
    padding: 0 0.4rem;
  }

  .stage {
    padding: 0.35rem 0.85rem 0.45rem;
  }
}

/* Introduction below the book: the page scrolls to reveal it */
html,
body {
  height: auto;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
}

.page-intro {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1rem 2.5rem;
  text-align: center;
  line-height: 1.6;
}

.page-intro h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.page-intro p {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.page-intro h1 {
  text-wrap: balance;
}

@media (max-width: 480px) {
  .page-intro br {
    display: none;
  }
}

/* Support corner button */
.support {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 90;
}

/* Not enough side room: sit below the text so it never covers the book */
@media (max-width: 1279px) {
  .support {
    position: static;
    width: max-content;
    margin: 0 auto 1.5rem;
  }
}

/* Centred Support card */
.support-dialog {
  margin: auto;
  width: min(530px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border: 1px solid var(--pill-border);
  border-radius: 20px;
  background: var(--menu-bg);
  color: var(--pill-text);
  box-shadow: var(--menu-shadow);
}

.support-dialog::backdrop {
  background: rgba(8, 8, 12, 0.75);
  backdrop-filter: blur(4px);
}

.support-card {
  position: relative;
  padding: 2.2rem 1.5rem 1.8rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
}

.support-card p + p {
  margin-top: 0.9rem;
}

.support-card .support-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.65;
}

.support-card h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  margin: 0.2rem 0 1rem;
}

.support-card a {
  color: inherit;
}

.support-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  border: 1px solid var(--pill-border);
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
  cursor: pointer;
}

.support-card hr {
  width: 72px;
  margin: 1.4rem auto;
  border: none;
  border-top: 1px solid var(--pill-border);
}

.support-card .kofi-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.7rem;
  border-radius: 999px;
  border: 1px solid var(--pill-active-border);
  background: var(--pill-active-bg);
  color: var(--pill-active-text);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease;
}

.support-card .kofi-pill:hover {
  transform: translateY(-2px);
}

.support-card .support-note {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  opacity: 0.65;
}

/* Let the text wrap naturally on phones */
@media (max-width: 480px) {
  .support-flow br {
    display: none;
  }
}
