/* session-planner — mobile first, dark fantasy theme (cuero, pergamino y oro) */
@font-face {
  font-family: "Cinzel";
  src: url("/static/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --bg: #120e0a;
  --bg-2: #1a140f;
  --card: #211a13;
  --card-2: #2a2118;
  --text: #ecdfc4;          /* pergamino */
  --muted: #a3906f;
  --faint: #6f604a;
  --line: #3d3022;          /* bronce apagado */
  --line-2: #2c2319;
  --gold: #d6a84a;
  --gold-hi: #f1cf7e;
  --gold-dim: #8c6c2c;
  --arcane: #8f7cff;        /* azul arcano para "te falta responder" */
  --link: #e7bf6a;

  --yes: #4cbb6e;           /* esmeralda */
  --maybe: #a99a80;
  --no: #d9534a;            /* carmesí */

  --confirmed-bg: #17251a;
  --confirmed-line: #3f7f4d;
  --confirmed-text: #8fd69c;
  --group-bg: #34270f;
  --group-line: #b48a2e;
  --group-text: #f4c65e;
  --tentative-bg: #261f14;
  --tentative-line: #6b5733;
  --tentative-text: #d2b67e;
  --gmoff-bg: #18161a;
  --gmoff-line: #34303a;

  --title-font: "Cinzel", "Trajan Pro", "Palatino Linotype", Palatino, Georgia, serif;
  --radius: 12px;
  --header-h: 60px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font: 16px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(214, 168, 74, .10), transparent 70%),
    radial-gradient(800px 500px at 100% 100%, rgba(143, 124, 255, .05), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}
body.modal-open { overflow: hidden; }
a { color: var(--link); }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ic { width: 1em; height: 1em; flex: none; vertical-align: -0.14em; }

/* ------------------------------------------------------------ who */
.who {
  min-height: 100vh; min-height: 100dvh;
  max-width: 480px; margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: center;
}
.who h1 {
  font-family: var(--title-font); font-size: 34px; margin: 0 0 6px; text-align: center;
  color: var(--gold-hi); letter-spacing: .03em; text-shadow: 0 0 18px rgba(214, 168, 74, .35);
}
.who-sub { text-align: center; color: var(--muted); margin: 0 0 26px; }
.who-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.who-btn {
  min-height: 64px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--card-2), var(--card));
  color: var(--text); font-family: var(--title-font); font-size: 19px; font-weight: 700; letter-spacing: .02em;
  cursor: pointer; transition: transform .08s, border-color .12s, box-shadow .12s;
}
.who-btn:hover { border-color: var(--gold-dim); box-shadow: 0 0 14px rgba(214, 168, 74, .18); }
.who-btn:active { transform: scale(.97); }
.who-btn.current { border-color: var(--gold); color: var(--gold-hi); }
.who-back { text-align: center; margin-top: 22px; }
.who-error { color: #f0a49d; text-align: center; }

/* ------------------------------------------------------------ header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(180deg, #1c150e, #120d09);
  color: var(--text);
  padding: env(safe-area-inset-top) 10px 0;
  border-bottom: 1px solid var(--gold-dim);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .5);
}
.topbar-row {
  height: var(--header-h);
  display: flex; align-items: center; gap: 8px;
  max-width: 1200px; margin: 0 auto;
}
.me { display: flex; flex-direction: column; min-width: 0; flex: 1 1 0; }
.me-name { font-family: var(--title-font); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--gold-hi); }
.me-change { color: var(--muted); font-size: 13px; text-decoration: none; padding: 2px 0; }
.me-change:hover { color: var(--gold); }
.month-nav { display: flex; align-items: center; gap: 2px; flex: none; }
.month-label { min-width: 128px; text-align: center; font-family: var(--title-font); font-weight: 700; font-size: 15px; color: var(--gold-hi); letter-spacing: .02em; }
.top-actions { flex: 1 1 0; display: flex; justify-content: flex-end; }
.icon-btn {
  width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: var(--gold); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 22px;
}
.icon-btn:hover { background: rgba(214, 168, 74, .1); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.page-title { font-family: var(--title-font); font-weight: 700; font-size: 17px; color: var(--gold-hi); }

/* ------------------------------------------------------------ toolbar */
.cal-main { max-width: 1200px; margin: 0 auto; padding: 12px 12px calc(40px + env(safe-area-inset-bottom)); }
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg-btn {
  min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px;
  background: transparent; cursor: pointer; font-size: 15px; color: var(--muted);
}
.seg-btn.active { background: var(--card-2); color: var(--gold-hi); font-weight: 600; box-shadow: inset 0 0 0 1px var(--gold-dim); }
.today-btn {
  margin-left: auto; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--gold); cursor: pointer;
}
.today-btn:hover { border-color: var(--gold-dim); }
.empty { text-align: center; color: var(--muted); padding: 30px 10px; }

/* ------------------------------------------------------------ mobile list */
.week { padding-top: 2px; }
.week-title {
  font-family: var(--title-font); font-size: 12px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--gold-dim); margin: 14px 2px 4px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.week-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.week-title span { font-family: inherit; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--faint); }
.week.current .week-title { color: var(--gold); }
.day { margin-bottom: 8px; scroll-margin-top: calc(var(--header-h) + env(safe-area-inset-top) + 8px); }
.day-title { font-family: var(--title-font); font-size: 14px; margin: 6px 2px 4px; font-weight: 700; color: var(--text); letter-spacing: .02em; }
.day.past .day-title { color: var(--faint); }
.today-pill {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px; background: var(--gold); color: #1a1208; font-weight: 700;
  border-radius: 999px; padding: 1px 7px; vertical-align: 1px; margin-left: 4px; letter-spacing: 0;
}

/* ------------------------------------------------------------ slot card */
.slot {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 6px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .12s;
}
.slot:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
/* mobile: info on the left, three square buttons on the right */
.slot:not(.mini) { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; }
.slot-info { flex: 1 1 auto; min-width: 0; }
.slot-when { font-size: 15px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.slot-when .muted { font-size: 13px; }
.slot-note { font-size: 12px; color: #e0a35b; font-weight: 600; }
.slot-tag { margin-top: 2px; }
.slot-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; font-size: 13px; }

.pending-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--arcane); display: inline-block; flex: none;
  box-shadow: 0 0 6px var(--arcane);
}

.tag { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.3; }
.tag-confirmed { color: var(--confirmed-text); }
.tag-group { color: var(--group-text); }
.tag-tentative { color: var(--tentative-text); font-weight: 600; }
.tag-gm-off { color: var(--muted); font-weight: 600; }

.counts { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-variant-numeric: tabular-nums; }
.counts .c { display: inline-flex; align-items: center; gap: 1px; }
.counts .dot { display: none; }
.counts .c + .dot + .c { margin-left: 4px; }
.c-yes { color: var(--yes); }
.c-maybe { color: var(--maybe); }
.c-no { color: var(--no); }
.gm { display: inline-flex; align-items: center; gap: 1px; color: var(--muted); }
.gm .ic:first-child { color: var(--gold); }
.gm-yes .ic:last-child { color: var(--yes); }
.gm-maybe .ic:last-child { color: var(--maybe); }
.gm-no .ic:last-child { color: var(--no); }
.players-n { display: inline-flex; align-items: center; gap: 3px; color: var(--confirmed-text); font-weight: 600; }

.st-confirmed { background: var(--confirmed-bg); border-color: var(--confirmed-line); box-shadow: 0 0 12px rgba(76, 187, 110, .12); }
.st-group { background: var(--group-bg); border-color: var(--group-line); box-shadow: 0 0 14px rgba(214, 168, 74, .18); }
.st-group_tentative { background: var(--tentative-bg); border-color: var(--tentative-line); }
.st-gm_unavailable { background: var(--gmoff-bg); border-color: var(--gmoff-line); }
.st-gm_unavailable .slot-info, .st-gm_unavailable .mini-top { opacity: .7; }
.st-past { opacity: .4; }

/* ------------------------------------------------------------ answer buttons */
.answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.answers-lg { flex: none; grid-template-columns: repeat(3, 44px); }
.ans {
  min-height: 44px; border-radius: 10px; border: 1px solid currentColor;
  background: rgba(0, 0, 0, .18); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; font-weight: 700; font-size: 15px; padding: 0;
  transition: background .08s, transform .08s, box-shadow .12s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ans .ic { font-size: 20px; }
.ans-txt { display: none; }
.ans:active:not(:disabled) { transform: scale(.94); }
.ans-yes { color: var(--yes); }
.ans-maybe { color: var(--maybe); }
.ans-no { color: var(--no); }
.ans:not(.on) { border-color: color-mix(in srgb, currentColor 40%, transparent); }
.ans.on { color: #fff; }
.ans-yes.on { background: linear-gradient(180deg, #4fc274, #2f8a4b); border-color: #6fdc92; box-shadow: 0 0 10px rgba(76, 187, 110, .45); }
.ans-maybe.on { background: linear-gradient(180deg, #8f8471, #655c4e); border-color: #b9ab92; box-shadow: 0 0 8px rgba(169, 154, 128, .3); }
.ans-no.on { background: linear-gradient(180deg, #d9574d, #9b2f28); border-color: #f07a70; box-shadow: 0 0 10px rgba(217, 83, 74, .45); }
.ans:disabled { cursor: default; }

/* ------------------------------------------------------------ desktop grid */
.grid { background: rgba(26, 20, 15, .85); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.grid-head { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--line); background: #17110c; }
.grid-head div { padding: 7px; font-family: var(--title-font); font-size: 12px; font-weight: 700; color: var(--gold); text-align: center; letter-spacing: .05em; }
.grid-body { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cell { min-height: 96px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 4px 5px 5px; }
.cell:nth-child(7n) { border-right: 0; }
.cell.out { background: rgba(0, 0, 0, .25); }
.cell.out .cell-num { color: #3e3427; }
.cell.past { background: rgba(0, 0, 0, .15); }
.cell-num { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 3px; line-height: 20px; }
.cell.today { background: rgba(214, 168, 74, .06); }
.cell.today .cell-num { color: #1a1208; background: var(--gold); border-radius: 999px; display: inline-block; padding: 0 7px; font-weight: 800; }
.mini { padding: 4px 5px; margin-bottom: 4px; border-radius: 7px; font-size: 12px; }
.mini-top { display: flex; align-items: center; gap: 4px; min-height: 18px; }
.mini-part { font-weight: 600; }
.mini-right { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.mini .counts { font-size: 11px; gap: 2px; }
.mini .counts .c + .dot + .c { margin-left: 2px; }
.mini .gm { font-size: 11px; }
.mini .slot-note { font-size: 11px; }
.mini .slot-tag { margin-top: 1px; }
.mini .tag { font-size: 11px; }
.answers-sm { gap: 3px; margin-top: 4px; }
.answers-sm .ans { min-height: 22px; border-radius: 6px; }
.answers-sm .ans .ic { font-size: 14px; }

/* ------------------------------------------------------------ modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5, 3, 2, .7);
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .15s;
}
.modal-backdrop.show { opacity: 1; }
.modal {
  background: linear-gradient(180deg, #241b13, #1a140e);
  color: var(--text);
  width: 100%;
  max-height: 94vh; max-height: 94dvh;
  border-radius: 18px 18px 0 0;
  border: 1px solid var(--gold-dim); border-bottom: 0;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, .6);
  display: flex; flex-direction: column;
  transform: translateY(30px); transition: transform .15s;
  padding-bottom: env(safe-area-inset-bottom);
}
.modal-backdrop.show .modal { transform: none; }
.modal-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 8px 8px 18px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-family: var(--title-font); font-size: 18px; margin: 0; flex: 1; color: var(--gold-hi); letter-spacing: .02em; }
.modal-body { overflow-y: auto; padding: 14px 16px 24px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.loading { color: var(--muted); }

.block { border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); background: var(--card); }
.block-title { font-family: var(--title-font); font-weight: 700; color: var(--confirmed-text); margin-bottom: 6px; letter-spacing: .02em; }
.block-confirmed { background: var(--confirmed-bg); border-color: var(--confirmed-line); }
.block-group { background: var(--group-bg); border-color: var(--group-line); }
.block-group_tentative { background: var(--tentative-bg); border-color: var(--tentative-line); }
.block-gm_unavailable { background: var(--gmoff-bg); border-color: var(--gmoff-line); }
.block-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0; }
.kv { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.kv > .ic { margin-top: 3px; color: var(--confirmed-text); }
.sess-note { margin-top: 6px; font-style: italic; color: var(--muted); }

.msec { margin-top: 18px; }
.msec h3 { font-family: var(--title-font); font-size: 15px; margin: 0 0 8px; color: var(--gold); letter-spacing: .03em; }
.msec h3 .muted { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: 0; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { padding: 7px 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.warn { color: #f0a84a; font-size: 13px; font-weight: 600; display: inline-flex; gap: 4px; align-items: center; }
.i-play-msg { margin: 0 0 6px; color: var(--confirmed-text); font-weight: 700; }
.gm-line { margin: 0 0 10px; display: flex; gap: 6px; align-items: center; }
.gm-line .ic { color: var(--gold); }
.avail { margin-bottom: 10px; }
.avail-h { font-size: 14px; font-weight: 700; display: flex; gap: 4px; align-items: center; margin-bottom: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--card-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 14px; }
.modal-answers .answers-lg { grid-template-columns: repeat(3, 1fr); }
.modal-answers .ans { min-height: 48px; }
.modal-answers .ans-txt { display: inline; }

/* ------------------------------------------------------------ forms */
.admin { border-top: 1px dashed var(--gold-dim); padding-top: 14px; }
.form { display: flex; flex-direction: column; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
input[type=text], input:not([type]), input[type=url], input[type=time], input[type=password], input[type=number], select {
  font: inherit; font-size: 16px; min-height: 44px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #120e0a; color: var(--text); width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(214, 168, 74, .2); }
input::placeholder { color: var(--faint); }
input:disabled { opacity: .45; }
.pick-group { margin-bottom: 6px; }
.pick-h { font-size: 12px; color: var(--muted); margin: 4px 0 2px; text-transform: uppercase; letter-spacing: .05em; }
.pick { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.pick input { width: 20px; height: 20px; accent-color: var(--gold); }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form { flex-direction: row; }
.inline-form input { flex: 1; min-width: 0; }
.btn {
  min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--text); cursor: pointer; font-weight: 600;
}
.btn:hover:not(:disabled) { border-color: var(--gold-dim); }
.btn-primary {
  background: linear-gradient(180deg, #e0b558, #a97c25); color: #1c1307; border-color: #f1cf7e;
  font-family: var(--title-font); font-weight: 700; letter-spacing: .03em;
}
.btn-primary:hover:not(:disabled) { box-shadow: 0 0 12px rgba(214, 168, 74, .4); border-color: #f1cf7e; }
.btn-danger { color: #f08a80; border-color: #6a2a25; background: #241411; }
.btn-sm { min-height: 36px; padding: 0 10px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #2a2118; color: var(--text); border: 1px solid var(--gold-dim);
  padding: 10px 16px; border-radius: 10px; z-index: 60;
  max-width: calc(100vw - 32px); box-shadow: 0 4px 20px rgba(0, 0, 0, .6);
}

/* ------------------------------------------------------------ settings */
.settings-main { max-width: 760px; margin: 0 auto; padding: 12px 12px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 16px; }
.card h2 { font-family: var(--title-font); font-size: 18px; margin: 0 0 10px; color: var(--gold-hi); letter-spacing: .03em; }
.row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1 1 140px; min-width: 0; }
.row.inactive .grow { opacity: .5; text-decoration: line-through; }
.badge { font-size: 12px; background: rgba(214, 168, 74, .15); color: var(--gold-hi); border: 1px solid var(--gold-dim); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.add-row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.add-row input { flex: 1 1 160px; }
.loc-form { display: grid; gap: 8px; margin-top: 8px; }
.ov-grid .cell { min-height: 64px; cursor: pointer; padding: 4px; }
.ov-grid .cell.out { cursor: default; }
.ov-grid .cell.sel { outline: 2px solid var(--gold); outline-offset: -2px; }
.ov-dots { display: flex; flex-direction: column; gap: 2px; }
.ov-dot { font-size: 11px; border-radius: 5px; padding: 1px 4px; background: #2a2118; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-dot.on { background: rgba(214, 168, 74, .16); color: var(--gold-hi); }
.ov-dot.changed { box-shadow: inset 0 0 0 1px #e0a35b; }
.ov-dot.off.changed { text-decoration: line-through; }
.ov-note { font-size: 10px; color: #e0a35b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-panel { margin-top: 12px; }
.ov-panel h3 { font-family: var(--title-font); color: var(--gold); }
.ov-part { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ov-part .grow { flex: 1 1 160px; }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: #3a3026; border: 1px solid var(--line); border-radius: 999px; transition: background .12s; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: var(--text); border-radius: 50%; transition: transform .12s; box-shadow: 0 1px 2px rgba(0,0,0,.4); }
.switch input:checked + span { background: #2f8a4b; border-color: #4cbb6e; }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { opacity: .5; }
.month-bar { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 8px; }
.month-bar strong { font-family: var(--title-font); color: var(--gold-hi); }

/* ------------------------------------------------------------ desktop */
@media (min-width: 768px) {
  .topbar { padding-left: 20px; padding-right: 20px; }
  .cal-main { padding: 16px 20px 40px; }
  .month-label { min-width: 180px; font-size: 18px; }
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { max-width: 560px; border-radius: 16px; border-bottom: 1px solid var(--gold-dim); max-height: 88vh; transform: scale(.97); }
  .slot.mini:hover { border-color: var(--gold-dim); }
  .answers-sm .ans:hover:not(:disabled):not(.on) { background: color-mix(in srgb, currentColor 14%, transparent); }
}
@media (max-width: 360px) {
  .month-label { min-width: 100px; font-size: 14px; }
}

/* ------------------------------------------------------------ PIN */
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 8px 0 4px; cursor: text; }
.pin-dots span {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--gold-dim); background: transparent; transition: background .1s, box-shadow .1s;
}
.pin-dots span.on { background: var(--gold); border-color: var(--gold-hi); box-shadow: 0 0 10px rgba(214, 168, 74, .5); }
/* Real input stays focusable (numeric keyboard) but invisible; the dots show progress. */
.pin-input {
  position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0;
  min-height: 0 !important; font-size: 16px;
}
.pin-help { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.link-btn { background: none; border: 0; color: var(--link); text-decoration: underline; cursor: pointer; padding: 8px; font-size: 15px; }
.master-hint { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.master-hint p { margin: 0; flex: 1 1 200px; color: var(--muted); font-size: 14px; }
.show-past {
  display: block; width: 100%; min-height: 40px; margin: 4px 0 6px;
  background: transparent; border: 1px dashed var(--line); border-radius: 10px;
  color: var(--muted); cursor: pointer; font-size: 14px;
}
.show-past:hover { color: var(--gold); border-color: var(--gold-dim); }

/* small phones: give the player name room next to the month and the icons */
@media (max-width: 767px) {
  .topbar-row { gap: 2px; }
  .me { min-width: 64px; }
  .me-name { font-size: 15px; }
  .month-label { min-width: 0; font-size: 14px; padding: 0 2px; white-space: nowrap; }
  .month-nav .icon-btn { width: 34px; }
  .top-actions { flex: 0 0 auto; }
  .top-actions .icon-btn { width: 40px; font-size: 20px; }
}

/* desktop mini cards: identical heights, fixed morning/afternoon rows */
.mini, .mini-empty { height: 66px; margin-bottom: 4px; }
.mini { display: flex; flex-direction: column; overflow: hidden; }
.mini-line {
  font-size: 11px; font-weight: 600; line-height: 15px; height: 15px; margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mini-note { color: #e0a35b; }
.mini .answers-sm { margin-top: auto; }
.mini.st-past .answers-sm { visibility: hidden; }
