/* member play pages (book.html · games.html · account.html points card), 2026-09-29.
   Page-level styles kept out of styles.css (?v=20260923) so the shared sheet stays untouched. */

/* ---- points / wallet ---- */
.mp-wallet { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.mp-wallet .lbl { font-size: 12px; color: var(--tpa-muted); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.mp-bal { font-size: 28px; font-weight: 800; color: var(--tpa-orange); line-height: 1.1; letter-spacing: -0.01em; }
.mp-bal small { font-size: 14px; font-weight: 600; color: var(--tpa-muted); margin-left: 4px; letter-spacing: 0; }
.mp-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--tpa-muted); margin: 0; }
.mp-note .ico-svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--tpa-orange); }
.mp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.cb-page .mp-acts .btn { padding: 10px 16px; font-size: 14px; }
.mp-led { list-style: none; margin: 0; padding: 0; }
.mp-led li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--tpa-border); }
.mp-led li:last-child { border-bottom: 0; }
.mp-led .what { font-weight: 600; font-size: 14px; min-width: 0; overflow-wrap: anywhere; }
.mp-led .sub { grid-column: 1; font-size: 12px; color: var(--tpa-muted); overflow-wrap: anywhere; }
.mp-led .amt { font-weight: 700; font-size: 15px; text-align: right; white-space: nowrap; }
.mp-led .amt.pos { color: var(--tpa-green); }
.mp-led .after { font-size: 12px; color: var(--tpa-muted); text-align: right; white-space: nowrap; }

/* ---- date strip ---- */
.mp-days { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.mp-day { flex: none; width: 56px; min-height: 64px; border-radius: 12px; border: 1px solid var(--tpa-border); background: var(--tpa-dark-2); color: var(--tpa-text); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 4px 0; }
.mp-day .w { font-size: 11px; color: var(--tpa-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mp-day .n { font-size: 18px; font-weight: 700; line-height: 1.1; }
.mp-day .m { font-size: 11px; color: var(--tpa-muted); }
.mp-day.sel { border-color: var(--tpa-orange); background: rgba(255,107,26,0.2); }
.mp-day.sel .w, .mp-day.sel .m { color: #ffd3b8; }

/* ---- availability grid ---- */
.mp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--tpa-muted); align-items: center; }
.mp-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; border: 1px solid var(--tpa-border); }
.mp-legend i.free { background: rgba(47,161,114,0.25); border-color: rgba(47,161,114,0.6); }
.mp-legend i.busy { background: rgba(0,0,0,0.45); }
.mp-legend i.sel { background: var(--tpa-orange); border-color: var(--tpa-orange); }
.mp-grid { display: grid; grid-template-columns: minmax(76px, 1.15fr) repeat(3, minmax(0, 1fr)); gap: 4px; }
.mp-gh { font-size: 12px; color: var(--tpa-muted); text-align: center; padding: 4px 0; font-weight: 600; position: sticky; top: 69px; background: var(--tpa-card); z-index: 2; }
.mp-gh:first-child { text-align: left; padding-left: 2px; }
.mp-gt { display: flex; flex-direction: column; justify-content: center; padding: 2px; line-height: 1.2; min-width: 0; }
.mp-gt b { font-size: 13px; white-space: nowrap; }
.mp-gt .p { font-size: 11px; color: var(--tpa-orange); font-weight: 700; white-space: nowrap; }
.mp-gt .p s { color: var(--tpa-muted); font-weight: 400; margin-left: 3px; }
.mp-cell { min-height: 44px; min-width: 0; border-radius: 8px; border: 1px solid var(--tpa-border); background: transparent; color: var(--tpa-text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 0 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-cell.free { border-color: rgba(47,161,114,0.5); background: rgba(47,161,114,0.12); color: #b9f5da; }
.mp-cell.free:hover { border-color: var(--tpa-orange); }
.mp-cell.busy { background: rgba(0,0,0,0.35); color: #77777d; border-color: transparent; cursor: not-allowed; font-weight: 400; }
.mp-cell.past { opacity: 0.3; cursor: default; font-weight: 400; }
.mp-cell.sel { background: var(--tpa-orange); border-color: var(--tpa-orange); color: #fff; }
.mp-cell.span { background: rgba(255,107,26,0.55); border-color: var(--tpa-orange); color: #fff; }
.mp-cell:focus-visible, .mp-day:focus-visible { outline: 2px solid var(--tpa-orange); outline-offset: 1px; }

/* ---- pick / pay ---- */
.mp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cb-page .mp-pills .cb-time:disabled { opacity: 0.35; cursor: not-allowed; }
.mp-field-l { font-size: 13px; color: var(--tpa-muted); font-weight: 600; margin: 0 0 6px; }
.mp-sum { font-size: 16px; font-weight: 700; }
.mp-sum small { display: block; font-size: 13px; color: var(--tpa-muted); font-weight: 400; }
.mp-price { font-size: 26px; font-weight: 800; color: var(--tpa-orange); line-height: 1.1; }
.mp-price small { font-size: 13px; color: var(--tpa-muted); font-weight: 400; }
.cb-payopt.mp-best { border-color: rgba(255,107,26,0.6); }
.mp-bar { position: sticky; bottom: 8px; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; background: rgba(27,27,29,0.97); border: 1px solid var(--tpa-orange); border-radius: var(--radius); box-shadow: var(--shadow); }
.mp-bar[hidden] { display: none; }
.mp-bar .t { min-width: 0; font-size: 13px; line-height: 1.35; }
.mp-bar .t b { color: var(--tpa-orange); font-size: 15px; }
.cb-page .mp-bar .btn { flex: none; width: auto; padding: 10px 16px; font-size: 14px; }
.mp-done { border-color: rgba(47,161,114,0.6); }
.mp-big { font-size: clamp(22px, 6vw, 30px); font-weight: 800; letter-spacing: 0.04em; color: var(--tpa-orange); word-break: break-all; }

/* ---- games ---- */
.mp-games { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 760px) { .mp-games { grid-template-columns: 1fr 1fr; } }
a.mp-game { color: inherit; transition: border-color 0.2s; }
a.mp-game:hover { border-color: var(--tpa-orange); }
.mp-meta { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--tpa-muted); }
.mp-meta > span { display: flex; gap: 8px; align-items: flex-start; min-width: 0; overflow-wrap: anywhere; }
.mp-meta .ico-svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--tpa-orange); }
.mp-meta strong { color: var(--tpa-text); font-weight: 600; }
.mp-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip.mp-ok { background: rgba(47,161,114,0.3); border-color: rgba(47,161,114,0.7); color: #b9f5da; }
.chip.mp-warn { background: rgba(255,107,26,0.3); border-color: rgba(255,107,26,0.7); color: #ffd3b8; }
.chip.mp-dim { background: rgba(0,0,0,0.35); border-color: rgba(255,255,255,0.12); color: #8a8a90; }
.chip.mp-lvl { background: rgba(123,78,241,0.22); border-color: rgba(123,78,241,0.6); color: #d9ccff; }
.mp-roster { list-style: none; margin: 0; padding: 0; }
.mp-roster li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; min-height: 52px; border-bottom: 1px solid var(--tpa-border); flex-wrap: wrap; }
.mp-roster li:last-child { border-bottom: 0; }
.mp-roster .who { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 140px; overflow-wrap: anywhere; }
.mp-roster .num { width: 22px; flex: none; color: var(--tpa-muted); font-size: 13px; text-align: right; }
.mp-roster .me { color: var(--tpa-orange); font-size: 13px; }
.mp-roster .ctl { display: flex; gap: 6px; flex: none; margin-left: auto; }
.mp-tog { min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--tpa-border); background: transparent; color: var(--tpa-muted); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mp-tog.on { background: rgba(47,161,114,0.25); border-color: rgba(47,161,114,0.8); color: #b9f5da; }
.mp-tog.del:hover, .mp-tog.del:focus-visible { border-color: var(--tpa-orange); color: var(--tpa-orange); }
.mp-tog:disabled { opacity: 0.5; cursor: wait; }
.mp-qr { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.mp-qr img { width: min(240px, 100%); height: auto; background: #fff; border-radius: 12px; padding: 8px; }
.mp-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; cursor: pointer; font-size: 15px; padding: 10px 0; }
.mp-check input { width: 20px; height: 20px; accent-color: var(--tpa-orange); flex: none; margin: 1px 0 0; }
.mp-radios { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.mp-radio { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--tpa-border); border-radius: 10px; cursor: pointer; font-size: 14px; background: var(--tpa-dark-2); }
.mp-radio input { width: 18px; height: 18px; accent-color: var(--tpa-orange); flex: none; margin: 1px 0 0; }
.mp-radio:has(input:checked) { border-color: var(--tpa-orange); }
.mp-sub { border: 1px solid var(--tpa-border); border-radius: 12px; padding: 12px 14px; background: var(--tpa-dark-2); display: flex; flex-direction: column; gap: 4px; }
.mp-sub[hidden] { display: none; }
.mp-sub .form-group input, .mp-sub .form-group select { background: var(--tpa-card); }
.mp-cost { border: 1px solid rgba(255,107,26,0.5); border-radius: 12px; padding: 12px 14px; background: rgba(255,107,26,0.08); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.mp-cost b { color: var(--tpa-orange); }
.mp-form .form-group input, .mp-form .form-group select, .mp-form .form-group textarea { min-height: 44px; width: 100%; min-width: 0; }
.mp-form .form-group textarea { min-height: 84px; }
.mp-form .form-row { gap: 0 12px; }
.mp-form .form-row.r3 { grid-template-columns: 1fr 1fr 1fr; }
.mp-sec-h { margin: 6px 0 2px !important; }
.mp-link { word-break: break-all; font-size: 13px; color: var(--tpa-muted); background: var(--tpa-dark-2); border-radius: 8px; padding: 8px 10px; }
.mp-head-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 520px) {
  .mp-grid { grid-template-columns: minmax(70px, 1fr) repeat(3, minmax(0, 1fr)); gap: 3px; }
  .mp-form .form-row.r3 { grid-template-columns: 1fr 1fr; }
  .cb-page .mp-roster .ctl .mp-tog { width: auto; }
  .cb-page .mp-pills .cb-time { width: auto; flex: 1 1 auto; }
  .mp-bal { font-size: 24px; }
}
/* [hidden] must win over the flex display of these blocks */
.cb-wrap[hidden], .cb-card[hidden], .mp-sub[hidden], .mp-bar[hidden] { display: none !important; }
.cb-payopts:has(> .cb-payopt:only-child) { grid-template-columns: 1fr; }
.mp-det { border: 1px solid var(--tpa-border); border-radius: 12px; padding: 0 14px; }
.mp-det summary { min-height: 48px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; list-style: none; }
.mp-det summary::-webkit-details-marker { display: none; }
.mp-det summary::after { content: "+"; margin-left: auto; color: var(--tpa-orange); font-size: 22px; font-weight: 400; line-height: 1; }
.mp-det[open] summary::after { content: "−"; }
.mp-det summary:focus-visible { outline: 2px solid var(--tpa-orange); outline-offset: 2px; border-radius: 8px; }
@media (max-width: 520px) {
  .mp-wallet > .mp-acts { width: 100%; }
  .cb-page .mp-acts .btn { width: auto; flex: 1 1 auto; justify-content: center; }
}

/* drag to select (book.html) */
.mp-grid.dragging, .mp-grid.dragging * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mp-cell.free { -webkit-touch-callout: none; }
.mp-cell.drag { background: rgba(255,107,26,0.55); border-color: var(--tpa-orange); color: #fff; }
.mp-cell.drag-start { background: var(--tpa-orange); }
.mp-drag-hint { flex-basis: 100%; font-size: 12px; color: var(--tpa-muted); }

/* several pieces in one booking (book.html) */
.mp-segs { display: flex; flex-direction: column; gap: 6px; }
.mp-seg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid rgba(255,107,26,0.45); background: rgba(255,107,26,0.08); font-size: 14px; }
.mp-seg small { color: var(--tpa-muted); margin-left: 4px; }
.mp-seg.bad { border-color: #e5484d; background: rgba(229,72,77,0.12); }
.mp-seg-x { border: 0; background: transparent; color: var(--tpa-muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 6px; }
.mp-seg-x:hover { color: #fff; background: rgba(255,255,255,0.08); }
.mp-grid.erasing .mp-cell.drag { background: rgba(255,255,255,0.08); border-color: #e5484d; color: #fff; }

/* two-step confirm (points pay, reschedule) + reschedule banner */
.mp-confirm { border: 1px solid var(--tpa-orange); background: rgba(255,107,26,0.08); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.mp-confirm p { margin: 0; font-size: 14px; line-height: 1.5; }
.mp-rs { display: flex; flex-direction: column; align-items: flex-start; }

/* ---- long-term booking (longterm.html) + the tab link on book.html, 2026-09-30 ---- */
a.cb-tab { display: inline-flex; align-items: center; text-decoration: none; }
a.cb-tab:hover { color: var(--tpa-text); }
a.cb-tab.active { color: var(--tpa-orange); }
.chip.mp-lt { background: rgba(123,78,241,0.22); border-color: rgba(123,78,241,0.6); color: #d9ccff; }
a.chip.mp-lt:hover { border-color: #d9ccff; }
.lt-how { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--tpa-muted); }
.lt-how li::marker { color: var(--tpa-orange); }
.lt-how strong { color: var(--tpa-text); }
.lt-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.lt-day { min-height: 44px; min-width: 0; border-radius: 10px; border: 1px solid var(--tpa-border); background: var(--tpa-dark-2); color: var(--tpa-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0 2px; }
.lt-day:hover { border-color: var(--tpa-orange); }
.lt-day[aria-pressed="true"] { background: var(--tpa-orange); border-color: var(--tpa-orange); color: #fff; }
.lt-day:focus-visible, .lt-piece select:focus-visible { outline: 2px solid var(--tpa-orange); outline-offset: 1px; }
.lt-pieces { display: flex; flex-direction: column; gap: 8px; }
.lt-piece { position: relative; display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.5fr) minmax(0, 0.9fr); gap: 6px; align-items: end; padding: 10px; border: 1px solid var(--tpa-border); border-radius: 12px; background: var(--tpa-dark-2); }
.lt-piece label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--tpa-muted); font-weight: 600; min-width: 0; }
.lt-piece select { min-height: 44px; width: 100%; min-width: 0; background: var(--tpa-card); border: 1px solid var(--tpa-border); color: var(--tpa-text); border-radius: 10px; padding: 8px 6px; font: inherit; font-size: 16px; }
.lt-piece .mp-seg-x { position: absolute; top: 0; right: 0; width: 40px; height: 30px; padding: 0; display: flex; align-items: center; justify-content: center; }
.cb-page .lt-add { align-self: flex-start; width: auto; }
.lt-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lt-date { border: 1px solid var(--tpa-border); border-radius: 12px; padding: 8px 12px 2px; background: var(--tpa-dark-2); display: flex; flex-direction: column; gap: 2px; }
.lt-date.bad { border-color: rgba(229,72,77,0.7); background: rgba(229,72,77,0.08); }
.lt-date.skip { opacity: 0.6; }
.lt-dh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.lt-dh .p { color: var(--tpa-orange); font-weight: 700; white-space: nowrap; }
.lt-date.skip .lt-dh .p { color: var(--tpa-muted); text-decoration: line-through; }
.lt-pcs { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: var(--tpa-muted); }
.lt-pc { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.lt-pc .ok { color: #b9f5da; font-weight: 600; }
.lt-pc .no { color: #ff9a9d; font-weight: 600; }
.lt-warn { margin: 0; font-size: 13px; color: #ffb3b5; }
.lt-date .mp-check { min-height: 40px; padding: 8px 0 6px; font-size: 14px; align-items: center; }
.lt-date .mp-check input { margin: 0; }
.lt-sess { list-style: none; margin: 0; padding: 0; }
.lt-sess li { display: flex; justify-content: space-between; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--tpa-border); flex-wrap: wrap; }
.lt-sess li:last-child { border-bottom: 0; }
.lt-sess .w { min-width: 0; flex: 1 1 180px; overflow-wrap: anywhere; }
.lt-sess .w b { display: block; font-size: 15px; }
.lt-sess .w small { display: block; font-size: 12px; color: var(--tpa-muted); }
.lt-sess .w small.x { color: #ffd3b8; }
.cb-page .lt-sess .btn { width: auto; flex: none; padding: 8px 14px; font-size: 14px; min-height: 40px; }
.lt-sess .st { font-size: 12px; color: var(--tpa-muted); }
.lt-panel { border-top: 1px solid var(--tpa-border); padding-top: 12px; display: flex; flex-direction: column; gap: 10px; }
.lt-panel textarea { min-height: 84px; width: 100%; min-width: 0; background: var(--tpa-dark-2); border: 1px solid var(--tpa-border); color: var(--tpa-text); border-radius: 10px; padding: 12px 14px; font: inherit; font-size: 16px; resize: vertical; }
.lt-panel textarea:focus { outline: none; border-color: var(--tpa-orange); }
.mp-promo { font-size: 14px; margin: 0; }
.mp-promo a { color: var(--tpa-orange); font-weight: 600; }
@media (max-width: 380px) {
  .lt-days { gap: 4px; }
  .lt-day { font-size: 12px; }
  .lt-piece { gap: 4px; padding: 8px; }
  .lt-piece select { padding: 8px 4px; }
}
.lt-howd { background: var(--tpa-card); padding: 0 18px; }
.lt-howd summary { min-height: 52px; font-size: 16px; }
.lt-howd .lt-how { padding: 0 0 16px 18px; }
.lt-h2 { margin: 6px 0 0; font-size: 22px; letter-spacing: -0.01em; }
.lt-sec { display: flex; flex-direction: column; gap: 12px; }
.lt-sec[hidden] { display: none; }
@media (max-width: 400px) { .cb-page .cb-tabs .cb-tab { padding: 10px; } }
.lt-piece .lt-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
