/* Secret Portal track: tier rail T1→T13, the T10+ drop zone, two secret gates, then the 4-step trip. */
.pt { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.pt-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.pt-presets button { min-height: 40px; padding: 4px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 600 14px var(--body); cursor: pointer; }
.pt-presets button:hover { border-color: var(--cyan); }
.pt-h { font: 700 14px var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.pt-h small { text-transform: none; letter-spacing: 0; font: 400 13px var(--body); }

/* the rail scrolls sideways on phones instead of widening the page */
.pt-rail { overflow-x: auto; margin-bottom: 16px; padding-bottom: 8px; }
.pt-track { display: flex; align-items: flex-end; gap: 8px; width: max-content; }
.pt-track ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.pt-track .pt-climb { padding-bottom: 9px; }
.pt-node { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); color: var(--muted); font: 700 13px var(--mono); cursor: pointer; }
.pt-node.pt-past { opacity: .45; }
.pt-node.pt-path { border-color: var(--brand-hi); color: var(--text); }
.pt-node.pt-in { border-color: var(--cyan); color: var(--cyan); }
.pt-node[aria-pressed="true"] { background: var(--brand); border-color: var(--brand-hi); color: var(--text); }
.pt-node:hover { border-color: var(--cyan); }
.pt-zone { border: 1px dashed var(--cyan); border-radius: var(--radius); padding: 6px 8px 8px; background: var(--panel-2); }
.pt-zone-h { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--cyan); white-space: nowrap; }
.pt-gates { display: flex; gap: 8px; }
.pt-gate { width: 128px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); text-align: center; font-size: 13px; }
.pt-gate b { font: 700 14px var(--head); }
.pt-gate span { color: var(--muted); }
.pt-gate em { font: 600 13px var(--mono); font-style: normal; color: var(--warn); }
.pt-ring { width: 40px; height: 52px; border-radius: 50%; border: 3px solid var(--brand-hi); box-shadow: inset 0 0 0 4px var(--panel-2), inset 0 0 0 7px var(--cyan); margin-bottom: 4px; }
.pt-gate + .pt-gate .pt-ring { border-color: var(--cyan); box-shadow: inset 0 0 0 4px var(--panel-2), inset 0 0 0 7px var(--brand-hi); }

.pt-ctl { display: flex; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 16px; }
.pt-field { min-width: 0; }
.pt-count { display: flex; align-items: center; gap: 4px; }
.pt-count button { min-height: 44px; min-width: 48px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: 600 14px var(--body); cursor: pointer; }
.pt-count output { min-width: 72px; text-align: center; font: 700 28px var(--head); color: var(--cyan); }

.pt-trip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pt-step { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.pt-step.pt-off { opacity: .45; }
.pt-step.pt-total { border-color: var(--brand-hi); background: var(--panel-2); }
.pt-i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: var(--text); font: 700 13px var(--mono); }
.pt-st { margin: 8px 0 4px; font: 700 15px var(--head); }
.pt-big { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.pt-big b { font: 700 28px var(--head); color: var(--cyan); }
.pt-total .pt-big b { color: var(--warn); }
.pt-tx { margin: 0; font-size: 13px; color: var(--muted); }
.pt-src { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 860px) { .pt-trip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) {
  .pt { padding: 12px; }
  .pt-trip { grid-template-columns: minmax(0, 1fr); }
  .pt-field, .pt-count { width: 100%; }
  .pt-count output { flex: 1; min-width: 0; }
}
