:root {
  --bg-1: #dce6ff;
  --bg-2: #f3e8ff;
  --bg-3: #dafff5;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-2: #eef2ff;
  --panel-solid: #ffffff;
  --border: rgba(255, 255, 255, 0.9);
  --ink: #362a5c;
  --ink-dim: #8a7fb0;
  --pink: #ff5fb8;
  --pink-deep: #ff2f5e;
  --blue: #4fb6e8;
  --mint: #4fd6a8;
  --yellow: #ffe066;
  --danger: #ff2f5e;
  --radius: 22px;
  --shadow: 0 16px 34px rgba(120, 90, 190, 0.22);
  --font-display: "Chewy", "Quicksand", -apple-system, "Segoe UI", "Noto Sans TC", Roboto, Arial, sans-serif;
  --font-body: "Quicksand", -apple-system, "Segoe UI", "Noto Sans TC", Roboto, Arial, sans-serif;
  --font-mono: "Space Grotesk", "Quicksand", -apple-system, "Segoe UI", "Noto Sans TC", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Any class below that sets its own `display` would otherwise beat the
   browser's default [hidden]{display:none}, since author rules win over the
   UA stylesheet regardless of specificity. This guarantees hidden always wins. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-body);
}

body {
  background-color: var(--bg-1);
  background-image:
    radial-gradient(circle at 12% 8%, #ffe1f5 0, transparent 36%),
    radial-gradient(circle at 90% 12%, #cdfff0 0, transparent 38%),
    radial-gradient(circle at 25% 95%, #e3d4ff 0, transparent 40%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 55%, var(--bg-3) 100%);
}

#app {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.topbar h1 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  backdrop-filter: blur(3px);
  padding: 24px;
  margin-bottom: 20px;
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.landing {
  perspective: 1200px;
}

.landing-hero {
  text-align: center;
  padding: 8px 0 4px;
}

.landing-vinyl {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(from 200deg, #ffb3ec, #b3d4ff, #b6fff0, #fff3b3, #ffb3ec);
  box-shadow: 0 12px 24px rgba(140, 110, 220, 0.35);
}

.landing-vinyl::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffffff, #eef1ff 60%, #dfe8ff);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

.landing-vinyl::after {
  content: "";
  position: absolute;
  top: 13%;
  left: 20%;
  width: 32%;
  height: 16%;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  filter: blur(3px);
  transform: rotate(-24deg);
}

.landing-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.25;
  background: linear-gradient(180deg, #ffffff 0%, #ffb3ec 28%, #8fb8ff 55%, #ffffff 78%, #b6ffe0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(90, 60, 140, 0.35);
  filter: drop-shadow(0 2px 0 rgba(150, 120, 220, 0.35));
}

.landing-title span {
  display: block;
  font-size: 0.5em;
  font-weight: 400;
  color: var(--pink);
  -webkit-text-stroke: 0;
  filter: none;
  margin-top: 4px;
}

.landing-tagline {
  margin: 14px auto 0;
  max-width: 40ch;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.landing-tech {
  margin-top: 28px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 20px;
}

.landing-tech h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--ink);
}

.landing-tech ul {
  margin: 0;
  padding-left: 1.1em;
  color: var(--ink-dim);
  font-size: 0.88rem;
  line-height: 1.7;
}

.landing-tech ul strong {
  color: var(--ink);
}

#landingStartBtn {
  margin-top: 20px;
}

.scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 24px auto 0;
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 0.8rem;
  cursor: pointer;
}

.scroll-cue svg {
  animation: scroll-cue-bounce 1.6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg {
    animation: none;
  }
}

@keyframes scroll-cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.rules-section {
  margin-top: 20px;
  transform-origin: bottom center;
  transform: rotateX(80deg);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease-out;
}

.rules-section.unfolded {
  transform: rotateX(0deg);
  opacity: 1;
}

.rules-section h3 {
  font-size: 0.95rem;
  margin: 0 0 14px;
  text-align: center;
  color: var(--ink);
}

.rules-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rule-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}

.rule-card h4 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: var(--pink);
}

.rule-card ul {
  margin: 0;
  padding-left: 1.1em;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--ink-dim);
  line-height: 1.55;
}

.rules-disclaimer {
  margin: 16px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.privacy-section {
  margin-top: 22px;
  text-align: center;
}

.privacy-section h3 {
  font-size: 0.8rem;
  margin: 0 0 8px;
  color: var(--ink-dim);
}

.privacy-section p {
  font-size: 0.72rem;
  line-height: 1.75;
  color: var(--ink-dim);
  max-width: 46ch;
  margin: 0 auto;
}

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

.hint {
  color: var(--ink-dim);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hint a {
  color: var(--pink);
}

.field-row {
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-row label {
  font-size: 0.85rem;
  color: var(--ink-dim);
}

input[type="text"] {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  box-shadow: 0 3px 8px rgba(140, 110, 220, 0.12) inset;
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.95rem;
  width: 100%;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--pink);
}

.copy-row {
  display: flex;
  gap: 8px;
}

.copy-row input {
  flex: 1;
}

button {
  cursor: pointer;
  font-family: inherit;
}

.primary-btn {
  background: linear-gradient(180deg, #ffb3ec, #ff5fb8);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  width: 100%;
  margin-top: 8px;
  box-shadow: 0 10px 20px rgba(255, 95, 184, 0.4), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  transition: transform 0.12s, box-shadow 0.15s;
}

.primary-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(255, 95, 184, 0.5), 0 1px 0 rgba(255, 255, 255, 0.6) inset; }
.primary-btn:disabled { background: #d8d3ea; color: #a99fc4; box-shadow: none; cursor: not-allowed; transform: none; }

.home-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 14px auto 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  border: 1px solid var(--border);
  color: var(--ink-dim);
  box-shadow: 0 4px 10px rgba(140, 110, 220, 0.18);
}

.home-btn:hover { border-color: var(--pink); color: var(--pink); }

.ghost-btn {
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 10px rgba(140, 110, 220, 0.18);
}

.ghost-btn svg {
  flex: none;
}

.ghost-btn:hover { border-color: var(--pink); }
.ghost-btn.small { padding: 6px 12px; font-size: 0.8rem; }

.error-text {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 10px;
}

.client-id-help {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--ink-dim);
}

.client-id-help > summary {
  cursor: pointer;
  color: var(--ink-dim);
  list-style: none;
}

.client-id-help > summary::-webkit-details-marker {
  display: none;
}

.client-id-help > summary::before {
  content: "▸ ";
  color: var(--pink);
}

.client-id-help[open] > summary::before {
  content: "▾ ";
}

.client-id-help ol {
  margin: 10px 0 0;
  padding-left: 1.2em;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.6;
}

.client-id-help a {
  color: var(--pink);
}

.client-id-help strong {
  color: var(--ink);
}

.qr-section {
  margin-top: 20px;
  text-align: center;
}

.qr-section > label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-bottom: 10px;
}

.qr-canvas {
  display: inline-block;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.qr-canvas canvas {
  display: block;
}

.playlist-input-wrap {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.playlist-input-wrap input[type="text"] {
  flex: 1;
  width: auto;
  min-width: 0;
}

/* Sits beside the input (not absolutely positioned) so it can never overlap
   the playlist info card that appears below once a playlist loads. */
.recent-playlists {
  flex: none;
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 6px;
  box-shadow: var(--shadow);
}

.recent-playlists-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.recent-playlist-chip {
  flex: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--border);
}

.recent-playlist-chip:hover { border-color: var(--pink); }

.recent-playlist-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.playlist-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.playlist-info img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--panel-2);
}

.playlist-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}

.playlist-count {
  color: var(--ink-dim);
  font-size: 0.85rem;
  margin-top: 2px;
}

.mode-select {
  margin-top: 18px;
}

.mode-select > label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.mode-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mode-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  background: var(--panel-2);
  border: 1px solid var(--border);
  padding: 10px 14px;
  border-radius: 12px;
  flex: 1;
  min-width: max-content;
  cursor: pointer;
}

.duration-options .mode-option {
  flex: 0 1 auto;
}

.advanced-options {
  margin-top: 20px;
  border-top: 1px solid rgba(140, 110, 220, 0.2);
  padding-top: 16px;
}

.advanced-options > summary {
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
}

.advanced-options > summary::-webkit-details-marker {
  display: none;
}

.advanced-options > summary::before {
  content: "▸ ";
  color: var(--pink);
}

.advanced-options[open] > summary::before {
  content: "▾ ";
}

.advanced-options .field-row {
  margin-top: 16px;
}

.year-range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.year-range-row input[type="number"] {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  width: 100px;
}

.year-range-row input[type="number"]:focus {
  outline: none;
  border-color: var(--pink);
}

.year-range-row span {
  color: var(--ink-dim);
  font-size: 0.9rem;
}

#artistSearch {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.9rem;
  width: 100%;
  margin-top: 6px;
}

#artistSearch:focus {
  outline: none;
  border-color: var(--pink);
}

.artist-select-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.artist-checklist {
  margin-top: 8px;
  max-height: 200px;
  overflow-y: auto;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 6px;
}

.artist-item {
  display: block;
  padding: 6px 8px;
  font-size: 0.88rem;
  border-radius: 8px;
  cursor: pointer;
}

.artist-item[hidden] {
  display: none;
}

.artist-item:hover {
  background: rgba(255, 95, 184, 0.14);
}

.artist-item input {
  margin-right: 6px;
}

.hint-inline {
  font-weight: 400;
  color: var(--ink-dim);
  font-size: 0.8rem;
}

select {
  background: var(--panel-solid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 0.95rem;
  flex: 1;
}

select:focus {
  outline: none;
  border-color: var(--pink);
}

.game-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  gap: 10px 12px;
}

.topline-actions {
  display: flex;
  gap: 8px;
  flex: none;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .game-topline .ghost-btn.small span {
    display: none;
  }
}

.ghost-btn.active {
  border-color: var(--pink);
  color: var(--pink);
}

.progress-counter {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.scoreboard {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  padding: 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.team-score-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.solo-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.solo-score-label {
  color: var(--ink-dim);
  font-size: 0.8rem;
}

.score-value {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  border: 1px solid var(--border);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 2.2rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 18px rgba(140, 110, 220, 0.2), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: transform 0.08s, border-color 0.15s;
}

.score-value:hover { border-color: var(--pink); }
.score-value:active { transform: scale(0.94); }

.score-reset {
  background: none;
  border: none;
  color: var(--ink-dim);
  font-size: 0.72rem;
  text-decoration: underline;
  padding: 2px;
}

.score-reset:hover { color: var(--ink); }

.score-vs {
  color: var(--ink-dim);
  font-size: 1.4rem;
  font-weight: 700;
  align-self: center;
  margin-top: 20px;
}

.card-stage {
  display: flex;
  justify-content: center;
  perspective: 1200px;
  margin: 20px 0;
}

.flip-card {
  width: 260px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  display: grid;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.flip-card.revealed .flip-card-inner {
  transform: rotateY(180deg) scale(1.05);
}

.flip-card-front, .flip-card-back {
  grid-area: 1 / 1;
  width: 100%;
  min-height: 260px;
  backface-visibility: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px;
  text-align: center;
}

.flip-card-front {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74));
  border: 1px solid var(--border);
}

.flip-card-back {
  background: linear-gradient(180deg, #ffffff, #f4f6ff);
  border: 1px solid var(--pink);
  transform: rotateY(180deg);
}

.vinyl {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(from 200deg, #ffb3ec, #b3d4ff, #b6fff0, #fff3b3, #ffb3ec);
  box-shadow: 0 12px 22px rgba(140, 110, 220, 0.35);
}

.vinyl::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: linear-gradient(160deg, #ffffff, #eef1ff 60%, #dfe8ff);
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.9) inset;
}

.vinyl::after {
  content: "";
  position: absolute;
  top: 13%;
  left: 20%;
  width: 32%;
  height: 16%;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  filter: blur(3px);
  transform: rotate(-24deg);
}

.vinyl.spinning {
  animation: spin 2.4s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hidden-hint {
  color: var(--ink-dim);
  font-size: 0.9rem;
}

.reveal-cover {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--panel-2);
  border: 1px solid var(--border);
}

.reveal-artist {
  color: var(--ink-dim);
  font-size: 0.95rem;
  font-weight: 600;
}

.reveal-title {
  font-weight: 800;
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--ink);
}

.reveal-year {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--pink);
}

.controls {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
}

.controls.secondary {
  margin-top: 14px;
  gap: 10px;
}

.icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(140, 110, 220, 0.2), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.icon-btn:hover { border-color: var(--pink); transform: translateY(-1px); }
.icon-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.icon-btn.primary {
  width: 64px;
  height: 64px;
  background: linear-gradient(180deg, #ffb3ec, #ff5fb8);
  color: #fff;
  border: 1px solid var(--border);
  font-size: 1.5rem;
  box-shadow: 0 10px 20px rgba(255, 95, 184, 0.45), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.icon-btn.ghost {
  width: 44px;
  height: 44px;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.6);
  border-color: var(--border);
  box-shadow: none;
}

.icon-btn svg {
  display: block;
}

/* Host / quizmaster mode: the pause button is the de-facto "buzz-in" control,
   so it gets enlarged and put in a vivid color to invite an instinctive tap. */
.icon-btn.host-emphasis {
  width: 78px;
  height: 78px;
  background: linear-gradient(180deg, #ff8a9e, var(--pink-deep));
  color: #fff;
  border: 1px solid var(--border);
  font-size: 1.7rem;
  box-shadow: 0 12px 24px rgba(255, 47, 94, 0.5), 0 2px 0 rgba(255, 255, 255, 0.6) inset;
  animation: host-emphasis-pulse 1.6s ease-in-out infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .icon-btn.host-emphasis {
    animation: none;
  }
}

.pill-btn {
  background: linear-gradient(180deg, #ffffff, #eef2ff);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 999px;
  padding: 0 18px;
  height: 44px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 14px rgba(140, 110, 220, 0.18);
}

.pill-btn:hover { border-color: var(--pink); }
.pill-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.timers {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.session-timer {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.round-timer {
  color: var(--ink-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}

.host-peek {
  color: var(--pink);
  font-size: 0.8rem;
  text-align: center;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  cursor: pointer;
}

.status-text {
  text-align: center;
  color: var(--ink-dim);
  font-size: 0.85rem;
  min-height: 1.2em;
  margin-top: 14px;
}

@media (max-width: 420px) {
  .flip-card { width: 220px; }
  .flip-card-front, .flip-card-back { min-height: 220px; }
}
