/* MyTurnPick — calm, simple, easy to the eyes. Navy + teal (brand). */

:root {
  --navy: #16283f;
  --navy-dark: #0f1d30;
  --teal: #1f9e87;
  --teal-dark: #177965;
  --ink: #22302c;
  --muted: #6b7a75;
  --line: #e2e8e5;
  --bg: #f7f9f8;
  --card: #ffffff;
  --red-bg: #fdecea;
  --red-ink: #9c2b21;
  --gold-bg: #fff6da;
  --gold-ink: #7a5c00;
  --radius: 11px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { overflow-x: clip; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }
h2 { font-size: 22px; margin: 10px 0 14px; }
h3 { font-size: 16px; margin: 0 0 10px; }
.stack { margin-top: 18px; }
.note { font-size: 14px; color: var(--muted); margin: 6px 0 12px; }


.error { font-size: 14px; color: var(--red-ink); margin: 0 0 12px; }

/* ---------- auth ---------- */

.auth-wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: calc(32px + env(safe-area-inset-top, 0px)) 16px 32px; }
.auth-card { max-width: 420px; width: 100%; text-align: center; }
.auth-logo { width: 96px; height: 96px; border-radius: 22px; }
.auth-card h1 { color: var(--navy); font-size: 30px; margin: 12px 0 4px; }
.tagline { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0 0 20px; }
.auth-card form { text-align: left; }

/* ---------- header ---------- */

.app-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 640px; margin: 0 auto;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 4px;
}
.brand {
  display: flex; align-items: center; gap: 10px; background: none; border: none;
  font: inherit; font-size: 19px; font-weight: 700; color: var(--navy); cursor: pointer; padding: 0;
}
.brand-icon { width: 34px; height: 34px; border-radius: 8px; }
.header-actions { display: flex; gap: 4px; align-items: center; position: relative; }

main { max-width: 640px; margin: 0 auto; padding: 8px 16px 60px; }

/* ---------- cards, lists, rows ---------- */

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
}
.list { display: flex; flex-direction: column; gap: 10px; }
.row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 60px; font: inherit; color: inherit;
}
button.row { cursor: pointer; }
.row-tap { cursor: pointer; }
.row-tap:active { background: var(--surface-muted, #f3f1fb); }
.row-chev { font-size: 22px; line-height: 1; color: var(--muted); flex: none; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-name { font-size: 16px; font-weight: 600; min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { font-size: 13px; color: var(--muted); }
.row.mine { border-color: var(--teal); background: #eefaf7; }
/* Inline edit / change controls inside a choice row (Choices tab,
 * while picking runs). */
.row .edit-input, .row .edit-select {
  font: inherit; font-size: 16px; padding: 10px; min-height: 44px; min-width: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink);
}
.row .edit-select { flex: 1; }
.empty { color: var(--muted); font-size: 15px; padding: 12px 4px; }

.pill {
  flex: none; font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 3px 9px; background: #e6efec; color: var(--teal-dark); white-space: nowrap;
}
.pill.gold { background: var(--gold-bg); color: var(--gold-ink); }
.pill.navy { background: var(--navy); color: #fff; }

/* ---------- forms & buttons ---------- */

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 14px; font-weight: 600; color: #42554d; margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"],
.field input[type="date"], .field select, .field textarea,
.inline-form input, .inline-form select {
  width: 100%; font: inherit; font-size: 16px; padding: 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  color: var(--ink); min-height: 52px;
}
.field textarea { resize: vertical; }
.checkline { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 4px 0 16px; }
.checkline input { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form input, .inline-form select { flex: 1; min-height: 48px; }

.btn {
  font: inherit; font-size: 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); padding: 12px 18px; min-height: 52px;
  cursor: pointer; width: 100%; margin-bottom: 10px;
}
/* Darker teal than the accent --teal: white on --teal-dark passes
 * WCAG AA for button text (~5.3:1); --teal itself is ~3.3:1. */
.btn-primary { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; font-weight: 600; }
.btn-secondary { background: #eef4f2; }
.btn-quiet { background: transparent; border-color: transparent; color: var(--teal-dark); }
.btn-danger { background: transparent; border-color: #f3c6c0; color: var(--red-ink); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; font-weight: 600; }
.btn-small { width: auto; min-height: 44px; padding: 9px 14px; margin-bottom: 0; white-space: nowrap; }
.btn.back { width: auto; padding-left: 0; margin-bottom: 4px; }
.btn:disabled { opacity: 0.45; cursor: default; }

.chips { display: flex; gap: 8px; margin: 6px 0 16px; justify-content: center; }
.chip {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; padding: 9px 16px; font-size: 15px; min-height: 40px; cursor: pointer;
}
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- group view ---------- */

.group-head h2 { margin-bottom: 2px; overflow-wrap: anywhere; }

/* Back row: "← All groups" left, outlined Share Invite right. */
.group-toprow { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.share-invite-btn {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  background: var(--card); border: 1.5px solid var(--teal-dark); color: var(--teal-dark);
  font-weight: 600; border-radius: 999px;
}

/* Status pill beside the header sub-line: the app's status words
 * (statusLabel) with the home cards' color language — green while
 * picking, muted at rest. */
.gv-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.status-pill {
  flex: none; font-size: 12px; font-weight: 700; border-radius: 999px;
  padding: 2px 9px; white-space: nowrap;
}
.status-pill.sp-green { background: #2f9e5f; color: #fff; }
.status-pill.sp-blue { background: #2f6fd0; color: #fff; }
.status-pill.sp-orange { background: #e07f1f; color: #fff; }
.status-pill.sp-muted { background: #e9efec; color: var(--muted); }

/* Copy-just-the-code button beside the invite code. */
.copy-code-btn {
  display: inline-flex; align-items: center; gap: 5px; vertical-align: -2px;
  background: none; border: none; padding: 4px 5px; margin-left: 2px;
  color: var(--muted); cursor: pointer; font: inherit; font-size: 13px; font-weight: 600;
  border-radius: 7px; line-height: 0;
}
.copy-code-btn:hover { color: var(--ink); }
.copy-code-btn.copied { color: #2f9e5f; line-height: normal; }

/* Icon tabs: a small glyph over each label; the active tab is a
 * filled green rounded button, the rest stay muted. */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 10px 0 16px; padding-bottom: 8px; overflow-x: auto; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font: inherit; font-size: 13.5px; font-weight: 600; background: none; border: none; border-radius: 11px;
  color: var(--muted); min-height: 56px; cursor: pointer; white-space: nowrap; padding: 7px 4px;
}
.tab-icon { line-height: 0; }
.tab-icon svg { display: block; }
.tab.active { background: var(--teal-dark); color: #fff; }

.turnbar {
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px;
  background: var(--navy); color: #fff; font-size: 16px;
}
.turnbar.mine { background: var(--teal-dark); }
.turnbar .sub { font-size: 13px; opacity: 0.85; margin-top: 2px; }
.turnbar .actions { display: flex; gap: 8px; margin-top: 10px; }
.turnbar .actions .btn { margin-bottom: 0; }

/* Turn card (picking state): navy card, the picker's face on the
 * left, Pass (light) and Nudge (green) side by side inside. */
.turncard {
  border-radius: var(--radius); padding: 16px; margin-bottom: 14px;
  background: var(--navy); color: #fff;
}
.turncard-top { display: flex; align-items: center; gap: 13px; }
.turncard-avatar {
  width: 52px; height: 52px; font-size: 18px; cursor: default;
  background: var(--teal); border: 2px solid rgba(255, 255, 255, 0.35);
}
.turncard-text { flex: 1; min-width: 0; }
.turncard-title { font-size: 19px; font-weight: 700; line-height: 1.25; }
.turncard-sub { font-size: 13.5px; opacity: 0.85; margin-top: 2px; }
.turncard-actions { display: flex; gap: 10px; margin-top: 14px; }
.turncard-actions .btn { margin-bottom: 0; min-height: 46px; }
.turncard-pass { flex: 1; background: #fff; border-color: #fff; color: var(--navy); font-weight: 600; }
.turncard-nudge { flex: 1.15; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.turncard-note {
  display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; opacity: 0.92; margin-top: 12px;
}
.turncard-note svg { flex: none; }

/* Picking order card: header row toggles the pills. */
.order-card { padding: 12px 14px; }
.order-head {
  display: flex; align-items: center; gap: 9px; width: 100%;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--navy);
  background: none; border: none; padding: 2px 0; cursor: pointer; text-align: left;
}
.order-head-label { flex: 1; min-width: 0; }
.order-chev { flex: none; color: var(--muted); transition: transform 0.15s ease; }
.order-card.open .order-chev { transform: rotate(180deg); }

.order-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.order-list .pill.done { background: #dfe7e3; color: var(--muted); text-decoration: line-through; }
.order-list .pill.now { background: var(--teal); color: #fff; }

/* Count pill beside the "Choices left" heading. */
.count-pill { margin-left: 9px; vertical-align: 2px; }

#wheelBox { text-align: center; }
#wheelCanvas { max-width: 100%; height: auto; }

/* ---------- dates calendar ---------- */

.cal-pager { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-pager h4 { margin: 0; font-size: 15px; color: var(--navy); }
.cal-nav {
  font: inherit; font-size: 20px; line-height: 1; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--navy); cursor: pointer; padding: 0;
}
.cal-nav:disabled { opacity: 0.3; cursor: default; }
.cal-count { margin: 10px 0 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-grid .dow { font-size: 11px; color: var(--muted); text-align: center; padding: 2px 0; }
.cal-day {
  font: inherit; font-size: 14px; min-height: 40px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; padding: 0;
}
.cal-day.picked { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 700; }
.cal-day.taken { background: var(--navy); border-color: var(--navy); color: #fff; opacity: 0.55; cursor: default; }
.cal-day.past { opacity: 0.35; cursor: default; }
.cal-day.blank { border: none; background: transparent; cursor: default; }

/* ---------- squares ---------- */

.sq-wrap { overflow-x: auto; padding-bottom: 8px; }
.sq-grid { display: grid; grid-template-columns: 28px repeat(10, minmax(0, 1fr)); gap: 3px; }
.sq-head {
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  color: var(--navy); min-height: 34px; min-width: 0;
}
.sq-cell {
  min-height: 46px; min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card);
  font-size: 11px; line-height: 1.25; padding: 3px; overflow: hidden; text-align: center;
  display: flex; align-items: center; justify-content: center; word-break: break-word;
}
button.sq-cell { cursor: pointer; font-family: inherit; color: var(--ink); }
.sq-cell.claimed { background: #eef4f2; font-weight: 600; }
.sq-cell.winner { background: var(--gold-bg); border-color: #ecd98f; }
.sq-legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin: 8px 0; flex-wrap: wrap; }
.brand-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.brand-line svg { color: #6a4fd0; flex: none; }

/* ---------- record ---------- */

.record-event { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.record-event time { color: var(--muted); white-space: nowrap; font-size: 13px; }
.trophy { font-size: 15px; padding: 8px 0; border-bottom: 1px solid var(--line); }

@media print {
  .no-print, .tabs, .btn, .app-header, form { display: none !important; }
  body.print-no-events #eventsSection { display: none !important; }
  body { background: #fff; }
  main { max-width: none; }
  .tabpane.hidden { display: none !important; }
}

/* Password eyes (ported from OnCallPick): addPasswordEyes() wraps
   every password input in .pwwrap and parks the eye button at the
   field's right end. The input gains room on the right so text
   never slides under the eye; the eye itself is quiet — no border,
   no fill — until tapped. Placed last so its padding wins. */
.pwwrap { position: relative; display: block; }
.field .pwwrap > input { padding-right: 52px; }
.pweye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; border-radius: 8px; padding: 8px;
  color: var(--muted); cursor: pointer; line-height: 0; margin: 0; min-height: 0;
}
.pweye:hover { color: var(--ink); }
.pweye svg { display: block; }

/* ---------- header avatar + account menu ---------- */

.avatar {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--navy); color: #fff; font: inherit; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0; flex: none;
  overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-sm { width: 32px; height: 32px; font-size: 12px; cursor: default; }
.avatar-lg { width: 64px; height: 64px; font-size: 22px; cursor: default; }

/* ---------- profile photo row ---------- */
.profile-photo-row { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.profile-photo-actions { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.profile-photo-actions .note { margin: 0; }
.avatar-menu {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 60;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 29, 48, 0.14); padding: 6px; min-width: 168px;
  display: flex; flex-direction: column;
}
.avatar-menu button {
  font: inherit; font-size: 15px; text-align: left; background: none; border: none;
  padding: 10px 12px; min-height: 44px; border-radius: 8px; cursor: pointer; color: var(--ink);
}
.avatar-menu button:hover { background: #eef4f2; }

/* ---------- dashboard ---------- */

/* Create / Join share one row, Create a little wider (~55/45). */
.home-actions { margin-top: 14px; display: flex; gap: 10px; }
.home-actions .btn { width: auto; margin-bottom: 0; }
.home-actions #createGroupBtn { flex: 55; }
.home-actions #joinGroupBtn { flex: 45; border-color: var(--line); background: var(--card); }

.groups-count { color: var(--muted); font-weight: 600; }

/* Turn banner: shows only when a pick is waiting on you. */
.turn-banner {
  display: flex; align-items: center; gap: 14px;
  background: #eefaf7; border: 1px solid var(--teal);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px;
}
.turn-banner-text { flex: 1; min-width: 0; }
.turn-banner-title { font-size: 17px; font-weight: 700; color: var(--navy); margin: 0 0 2px; }
.turn-banner-sub { font-size: 14px; color: var(--ink); margin: 0; }
.turn-banner .btn { width: auto; margin-bottom: 0; flex: none; }

/* Active / Completed filter (rendered only when a group is finished). */
.seg-tabs {
  display: flex; background: #e9efec; border-radius: 999px;
  padding: 3px; margin-bottom: 12px;
}
.seg-tab {
  flex: 1; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  background: none; border: none; border-radius: 999px; padding: 7px 0; cursor: pointer;
}
.seg-tab.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(22, 40, 63, .15); }

/* Home cards run ~15–20% tighter than the generic row: less
 * padding, a smaller icon tile, tighter line rhythm. The group
 * name keeps its size. */
#groupList { gap: 8px; }
.group-card { padding: 9px 12px; min-height: 0; gap: 10px; }
.group-card .row-main { gap: 1px; }
.group-card .row-name, .group-card .row-sub, .group-card .row-status { line-height: 1.3; }
.group-card .gc-icon { width: 36px; height: 36px; border-radius: 9px; }
.group-card .gc-icon svg { width: 19px; height: 19px; }

.gc-icon {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.gc-icon.mode-squares { background: #e3ecfb; color: #2f6fd0; }
.gc-icon.mode-dates { background: #fdf0d5; color: #b97e10; }
.gc-icon.mode-list { background: #e2f2ec; color: var(--teal-dark); }
.gc-icon.mode-guess { background: #ece7fb; color: #6a4fd0; }

.row-status { display: flex; align-items: center; font-size: 13.5px; font-weight: 600; }
.row-status.st-teal { color: var(--teal-dark); }
.row-status.st-green { color: #2f9e5f; }
.row-status.st-blue { color: #2f6fd0; }
.row-status.st-orange { color: #c2660a; }
.row-status.st-gray { color: var(--muted); font-weight: 500; }

.status-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 6px; background: #9aa7a2;
}
.status-dot.st-teal { background: var(--teal); }
.status-dot.st-green { background: #2f9e5f; }
.status-dot.st-blue { background: #2f6fd0; }
.status-dot.st-orange { background: #e07f1f; }
.status-dot.st-gray { background: #9aa7a2; }

.row-chev { flex: none; color: var(--muted); font-size: 22px; line-height: 1; }

/* Archived groups keep their status line and gain a quiet badge. */
.archived-badge {
  flex: none; margin-left: 8px; font-size: 11px; font-weight: 700;
  color: var(--muted); background: #e9efec; border-radius: 999px; padding: 2px 8px;
}

/* ---------- create form: helper line + snake switch ---------- */

.helper { font-size: 13px; margin: -4px 0 12px; }

.switchline {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 2px 0 16px; font-size: 15px; cursor: pointer;
}
.switch-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.switch { position: relative; flex: none; width: 52px; height: 30px; }
.switch input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.switch .track {
  position: absolute; inset: 0; border-radius: 999px; background: #cbd8d3;
  transition: background 0.15s ease; pointer-events: none;
}
.switch .track::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: left 0.15s ease;
}
.switch input:checked + .track { background: var(--teal-dark); }
.switch input:checked + .track::after { left: 25px; }
.switch input:focus-visible + .track { outline: 2px solid var(--navy); outline-offset: 2px; }

/* ---------- create form: template cards + advanced settings ---------- */

.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.tpl-card {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  gap: 3px; font: inherit; text-align: left; padding: 12px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line);
  border-radius: var(--radius); color: var(--ink);
}
.tpl-card .gc-icon { width: 36px; height: 36px; border-radius: 8px; margin-bottom: 5px; }
.tpl-name { font-size: 15.5px; font-weight: 700; color: var(--navy); }
.tpl-sub { font-size: 13px; color: var(--muted); }
.tpl-check {
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--teal-dark); color: #fff;
  font-size: 12px; line-height: 20px; text-align: center; display: none;
}
.tpl-card.on { border-color: var(--teal-dark); background: #eef7f3; }
.tpl-card.on .tpl-check { display: block; }
/* Guess My Pick spans the grid: icon left, name + sub stacked. */
.tpl-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; }
.tpl-card.wide .gc-icon { margin-bottom: 0; }
.tpl-card .tpl-texts { display: flex; flex-direction: column; gap: 3px; }
.tpl-scratch {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--navy);
  text-align: left; padding: 12px 14px; cursor: pointer;
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
}
.tpl-scratch .tpl-check { position: static; flex: none; }
.tpl-scratch.on { border-color: var(--teal-dark); background: #eef7f3; }
.tpl-scratch.on .tpl-check { display: block; }

.cg-advanced { margin: 2px 0 16px; }
.cg-advanced summary {
  font-size: 15px; font-weight: 600; color: var(--navy);
  cursor: pointer; padding: 6px 0;
}
.cg-advanced .switchline { margin-top: 10px; margin-bottom: 4px; }

/* ---------- Guess My Pick game screen ---------- */

.game-q { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 4px; }
.game-options { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.game-options .btn { margin-bottom: 0; text-align: left; }
/* A choice photo inside a round's option button (custom questions). */
.game-opt-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 10px; display: block; margin-bottom: 6px; }
/* Custom-question builder (setup screen): list thumbs + add form. */
.game-q-thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; flex: none; }
.cq-choices { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.cq-choice-view { display: flex; align-items: center; gap: 8px; }
.cq-form { margin-top: 14px; }
.cq-form .btn { width: 100%; }
.cq-photo { display: block; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.cq-photo > span { display: block; font-weight: 600; color: #42554d; margin-bottom: 6px; }
.cq-photo input[type="file"] { font: inherit; font-size: 14px; }
/* My current guess / my own answer, before the reveal. */
.btn.chosen { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; font-weight: 600; }
/* The Picker's revealed answer. */
.btn.answer { background: #e7f6ee; border-color: #2f9e5f; color: var(--ink); font-weight: 700; }
.game-round-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }

/* ---------- group screen: getting-started guide ---------- */

.setup-guide { padding: 14px 16px; }
.setup-guide h3 { margin-bottom: 8px; }
.guide-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; padding: 5px 0; color: var(--ink);
}
.guide-mark {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid #c3d2cc; color: var(--muted);
  font-size: 13px; font-weight: 700; line-height: 20px; text-align: center;
}
.guide-step.done { color: var(--muted); }
.guide-step.done .guide-mark {
  background: var(--teal-dark); border-color: var(--teal-dark); color: #fff;
}

/* ---------- Guess My Pick standalone branding ----------
   Violet is this app's accent (it was teal inside MyTurnPick);
   redefining the two accent variables re-skins buttons, tabs,
   links, and turn highlights in one move. */
:root { --teal: #6a4fd0; --teal-dark: #573fc0; }
.auth-card h1 { color: #573fc0; }
.brand-line { justify-content: center; color: #6a4fd0; font-weight: 600; }
