/* Nocture Console · remote.css: "Chơi từ xa" (/choi-tu-xa/, /choi-tu-xa/huong-dan/, /choi-tu-xa/don/; rm- classes).
   Components and tokens come from console.css, pages.css (bk-, don-, pg-) and landing.css; theme.css loads after this file.
   Mobile first; every control at least 44px tall. */

/* ---------------------------------------------------------------- landing sections */
@media (min-width: 1101px) {
  .rm-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .rm-steps .step { padding-right: 20px; }
  .rm-steps .step p { max-width: 240px; }
}
@media (max-width: 1100px) and (min-width: 641px) {
  .rm-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 0; }
  .rm-steps .step:nth-child(3) .step-n i { display: none; }
}
.rm-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.rm-card { display: grid; gap: 6px; align-content: start; }
.rm-card .box-list li { font-size: 15px; }
.rm-card .box-list a, .rm-tiers a { color: var(--accent); }
.rm-tiers { margin-top: 18px; max-width: 820px; }
.rm-cmp th, .rm-cmp td { vertical-align: top; }
/* phones: one row per line, each class's value under its own small label (no sideways scrolling) */
@media (max-width: 640px) {
  .rm-cmp, .rm-cmp tbody, .rm-cmp tr, .rm-cmp th, .rm-cmp td { display: block; }
  .rm-cmp thead { display: none; }
  .rm-cmp tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .rm-cmp tr:last-child { border-bottom: 0; }
  .rm-cmp tbody th, .rm-cmp td { padding: 0; border: 0; min-width: 0; }
  .rm-cmp tbody th { margin-bottom: 6px; font-size: 15px; }
  .rm-cmp td { font-size: 14.5px; padding: 3px 0; }
  .rm-cmp td::before { content: attr(data-label); display: block; font: 500 11px/1.4 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}
.rm-cmp td { min-width: 200px; font-size: 15px; color: var(--fg-2); }
.rm-cmp thead th:not(:first-child) { color: var(--fg); font-size: 13px; }
.rm-cmp tbody th { min-width: 120px; }
.rm-price-tbl tbody th { min-width: 130px; }
.rm-ol { margin: 0; padding: 0; list-style: none; counter-reset: rmol; display: grid; gap: 0; max-width: 860px; }
.rm-ol > li { counter-increment: rmol; position: relative; padding: 16px 0 16px 52px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--fg-2); }
.rm-ol > li:last-child { border-bottom: 0; }
.rm-ol > li::before { content: counter(rmol); position: absolute; left: 0; top: 13px; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--line-2); font: 600 15px/1 var(--font-display); color: var(--fg); }
.rm-ol > li:first-child::before { background: var(--lime); color: var(--lime-fg); border-color: transparent; }
.rm-ol b, .rm-ol strong { color: var(--fg); font-weight: 600; }
.rm-ol a, .rm-ol code { overflow-wrap: anywhere; }
.rm-ol a { color: var(--accent); }
code, kbd { overflow-wrap: anywhere; }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--panel-2);
  font: 500 .86em/1.5 var(--font-mono); color: var(--fg); text-align: center; }
.rm-ol code { padding: 1px 6px; border-radius: 6px; background: var(--panel-2); color: var(--fg); }
.rm-keys th:first-child { white-space: nowrap; }
.rm-keys td { font-size: 15px; }

/* the stream diagram (text and CSS only) */
.rm-diagram { margin: 0 0 24px; display: grid; gap: 14px; }
.rm-diagram figcaption { font-size: 13px; }
.rm-flow { display: flex; align-items: stretch; gap: 10px; }
.rm-node { flex: 1 1 0; min-width: 0; display: grid; gap: 4px; align-content: center; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--panel); }
.rm-node b { font: 600 16px/1.25 var(--font-display); color: var(--fg); }
.rm-node span { font-size: 13px; color: var(--muted); }
.rm-node:first-child { border-color: var(--accent); background: var(--accent-soft); }
.rm-link { flex: 0 0 auto; display: grid; align-content: center; justify-items: center; gap: 2px; padding: 0 4px; font: 500 12px/1.3 var(--font-mono); color: var(--fg-2); text-align: center; }
@media (max-width: 640px) {
  .rm-flow { flex-direction: column; }
  .rm-link { padding: 2px 0; }
  .rm-link span { transform: none; }
}

/* ---------------------------------------------------------------- booking form */
.rm-book-sec { background: var(--bg-2); }
.rm-nojs { max-width: 720px; }
.rm-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .rm-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; } .rm-sum { position: sticky; top: 88px; } }
.rm-form .bk-step { background: var(--panel); }
.rm-hint, .rm-key { margin: 0; font-size: 14px; }
.rm-key { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }

/* radios that look like chips / cards: the input stays in the tab order (arrow keys move inside the group) */
.rm-chip, .rm-day, .rm-seg label { position: relative; }       /* the hidden radios stay inside their label (and inside the scrolling day row) */
.rm-class input, .rm-chip input, .rm-day input, .rm-slot input, .rm-seg input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.rm-class:has(input:focus-visible), .rm-chip:has(input:focus-visible), .rm-day:has(input:focus-visible), .rm-slot:has(input:focus-visible),
.rm-seg label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

.rm-classes { display: grid; gap: 10px; }
@media (min-width: 600px) { .rm-classes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rm-class { position: relative; display: grid; gap: 6px; align-content: start; min-height: 44px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius);
  background: var(--panel); cursor: pointer; transition: border-color .15s, background .15s; }
.rm-class:hover { border-color: var(--fg-2); }
.rm-class:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.rm-class-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }
.rm-class-name { font: 650 18px/1.2 var(--font-display); color: var(--fg); }
.rm-class-from { font: 500 13px var(--font-mono); color: var(--accent); white-space: nowrap; }
.rm-class-desc { font-size: 14px; color: var(--fg-2); line-height: 1.45; }
.rm-class-meta { font-size: 12.5px; color: var(--muted); }

.rm-days { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: thin; padding: 3px 2px 6px; margin: 0 -2px; }
.rm-day { flex: none; height: auto; min-height: 52px; padding: 6px 14px; border-radius: 14px; scroll-snap-align: start; }
.rm-day > span { display: grid; justify-items: center; gap: 0; line-height: 1.2; }
.rm-day b { font: 600 14px var(--font-sans); color: inherit; }
.rm-day small { font: 500 12px var(--font-mono); opacity: .75; }
.rm-day:has(input:disabled) { opacity: .4; cursor: not-allowed; }
.rm-durs { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-chip { min-height: 44px; }
.rm-chip small { font: 500 11.5px var(--font-mono); opacity: .75; margin-left: 4px; }
.rm-chip[hidden] { display: none !important; }
.chip:has(input:checked) { color: var(--bg); background: var(--fg); border-color: var(--fg); }

/* start times: every cell shows one dot per seat, lit when that seat is free (like cinema seats) */
.rm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 8px; min-height: 120px; align-content: start; }
.rm-grid[aria-busy="true"] { opacity: .6; }
.rm-grid-msg, .rm-grid .pg-empty { grid-column: 1 / -1; margin: 0; }
.rm-slot { position: relative; display: grid; justify-items: center; align-content: center; gap: 6px; min-height: 54px; padding: 8px 4px; border: 1px solid var(--line-2);
  border-radius: 12px; background: var(--panel); cursor: pointer; transition: border-color .15s, background .15s; }
.rm-slot:hover { border-color: var(--fg-2); }
.rm-t { font: 600 15px/1 var(--font-mono); color: var(--fg); font-variant-numeric: tabular-nums; }
.rm-seats { display: flex; gap: 4px; justify-content: center; flex-wrap: wrap; }
.rm-seat { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.rm-seat.on { background: var(--ok); }
.rm-slot.in { background: var(--accent-soft); border-color: var(--accent); }
.rm-slot.on, .rm-slot:has(input:checked) { background: var(--lime); border-color: transparent; }
.rm-slot.on .rm-t, .rm-slot:has(input:checked) .rm-t { color: var(--lime-fg); }
.rm-slot.on .rm-seat.on, .rm-slot:has(input:checked) .rm-seat.on { background: var(--lime-fg); }
.rm-slot.on .rm-seat:not(.on), .rm-slot:has(input:checked) .rm-seat:not(.on) { background: rgba(13,18,3,.25); }
.rm-slot.past, .rm-slot.off { cursor: not-allowed; background: transparent; border-style: dashed; }
.rm-slot.past { opacity: .4; }
.rm-slot.past .rm-t, .rm-slot.off .rm-t { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--muted); }
.rm-slot.off { background: repeating-linear-gradient(135deg, transparent 0 6px, var(--panel-2) 6px 12px); }
.rm-slot-night { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto auto; justify-items: start; align-items: center; gap: 12px; padding: 12px 16px; }
.rm-slot-night .rm-t { font-family: var(--font-sans); font-size: 15px; }
.rm-free { font-size: 13px; color: var(--muted); }
.rm-slot-night:has(input:checked) .rm-free { color: var(--lime-fg); }

/* contact step */
.rm-label-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rm-label-row label { font-size: 14px; font-weight: 550; }
.rm-help-btn { min-height: 32px; padding: 0 2px; border: 0; background: none; color: var(--accent); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rm-help { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); font-size: 14px; color: var(--fg-2); display: grid; gap: 6px; }
.rm-help a { color: var(--accent); }
.rm-seg { display: flex; width: 100%; }
.rm-seg label { flex: 1; display: grid; place-items: center; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--fg-2); font-size: 14px; font-weight: 500; cursor: pointer; text-align: center; }
.rm-seg label:has(input:checked) { background: var(--panel); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 0 0 1px var(--line); }
@media (pointer: coarse), (max-width: 640px) { .rm-help-btn { min-height: 44px; } }

/* summary: a sticky card on desktop; on phones a bar that sticks to the bottom while the form is on screen */
.rm-sum-card { display: grid; gap: 14px; padding: 20px; }
.rm-sum-detail { display: grid; gap: 12px; }
.rm-sum-detail .h3 { margin: 0; }
.rm-tip { margin: 0; font-size: 13.5px; line-height: 1.5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rm-tip[hidden] { display: none; }
.rm-sum-bar { display: grid; gap: 10px; }
.rm-bar-txt { display: none; }
.rm-submit { width: 100%; }
.rm-sum-note { margin: 0; font-size: 13px; line-height: 1.5; }
@media (max-width: 959.98px) {
  .rm-sum { position: sticky; bottom: 0; z-index: 30; margin: 0 -16px; }
  .rm-sum-card { gap: 0; padding: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; border-bottom: 0; box-shadow: 0 -12px 40px -14px rgba(0, 0, 0, .5); }
  .rm-sum-detail { padding: 16px 16px 4px; }
  .rm-sum-detail .h3, .rm-sum-detail #rm-lines .pg-line:not(.pg-total), .rm-sum-detail #rm-lines .pg-total { display: none; }
  .rm-sum-bar { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
  .rm-bar-txt { display: grid; min-width: 0; }
  .rm-bar-txt .muted { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .rm-bar-txt .price { font-size: 20px; }
  .rm-submit { width: auto; min-width: 140px; }
  .rm-sum-note { display: none; }
  .rm-sum-detail .bk-avail { margin: 0; font-size: 13px; }
  .rm-sum-detail .rm-tip { margin: 0; }
  .rm-sum-detail:not(:has(.rm-tip:not([hidden]))):not(:has(.bk-avail:not(:empty))) { display: none; }
}
@media (max-width: 640px) { .rm-sum { margin: 0 -16px; } }
@media (min-width: 641px) and (max-width: 959.98px) { .rm-sum { margin: 0 -20px; } }

/* ---------------------------------------------------------------- the booking view (payment, status, connect, cancel) */
.rm-pay { padding: clamp(18px, 4vw, 32px); display: grid; gap: 18px; max-width: 860px; margin: 0 auto; }
.rm-pay:focus { outline: none; }
.rm-pay-head { display: grid; gap: 8px; }
.rm-pay-head .h2 { font-size: clamp(24px, 4vw, 34px); margin: 0; }
.rm-pay-head .kick { margin: 0; }
.rm-pay-head .lede { margin: 0; font-size: 16px; }
.rm-pay .don-card { padding: 0; border: 0; background: transparent; }
.rm-card-b { gap: 20px; }
.rm-card-b .don-head .kick { margin: 0; }
.rm-card-b .h3:focus { outline: none; }
.rm-tl { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 640px) { .rm-tl { grid-template-columns: 1fr; } }
.rm-paybox { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--accent); border-radius: var(--radius-lg); background: var(--accent-soft); }
.rm-paybox .h3 { margin: 0; }
.rm-count { margin: 0; font: 600 15px/1.4 var(--font-mono); color: var(--fg); font-variant-numeric: tabular-nums; }
.rm-count.warn { color: var(--warn); }
.rm-pay-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 640px) { .rm-pay-grid { grid-template-columns: 240px minmax(0, 1fr); } }
.rm-qr { margin: 0; display: grid; gap: 6px; justify-items: center; }
.rm-qr img { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; padding: 10px; border-radius: 16px; background: #fff; }
.rm-qr figcaption { font-size: 12.5px; }
.rm-qr-none { padding: 14px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--panel); }
.rm-qr-none p { margin: 0; font-size: 14px; }
.rm-bank { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 14px; }
.rm-bank .pg-line { align-items: center; flex-wrap: wrap; }
.rm-bank dd { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.rm-content { font-size: 16px; letter-spacing: .04em; color: var(--fg); }
.rm-copy { height: 32px; padding: 0 10px; font-size: 13px; }
@media (pointer: coarse), (max-width: 640px) { .rm-copy { height: 44px; padding: 0 14px; } }
.rm-pay-lead { margin: 0; font-size: 14px; line-height: 1.55; }
.rm-claim { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rm-claim p { margin: 0; font-size: 14px; }
.rm-claimed { margin: 0; }
.rm-connect { display: grid; gap: 12px; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: var(--panel-2); }
.rm-connect .h3, .rm-connect p { margin: 0; }
.rm-connect a, .rm-done-note a, .rm-cancel-note a { color: var(--accent); }
.rm-play { border-color: var(--accent); background: var(--accent-soft); }
.rm-console { font-size: 15px; }
.rm-console strong { font: 700 26px/1 var(--font-display); color: var(--fg); margin-left: 4px; }
.rm-play-steps { margin: 0; padding: 0; list-style: none; counter-reset: rmp; display: grid; gap: 10px; }
.rm-play-steps li { counter-increment: rmp; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 0 12px; align-items: center; }
.rm-play-steps li::before { content: counter(rmp); grid-row: span 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: var(--lime); color: var(--lime-fg); font: 700 16px/1 var(--font-display); }
.rm-play-steps b { font-size: 16px; color: var(--fg); }
.rm-play-steps .muted { font-size: 13.5px; }
.rm-how { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--fg-2); }
.rm-how h4 { margin: 0 0 2px; font: 500 12px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rm-how p { margin: 0; }
.rm-cancel { display: grid; gap: 10px; justify-items: start; padding-top: 4px; border-top: 1px solid var(--line); }
.rm-cancel p { margin: 0; font-size: 14px; }
.rm-cancel .cta-row { margin-top: 0; }
.rm-cancel-note, .rm-done-note { margin: 0; font-size: 14px; }
.rm-don .don-form[hidden] { display: none; }
.rm-don-help { margin-top: 22px; }
.rm-don-help a { color: var(--fg); }
@media (prefers-reduced-motion: reduce) { .rm-slot, .rm-class { transition: none; } }
