/* =========================================================
   幻影体育 · 共享外壳样式  /assets/site.css
   ========================================================= */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #0A0C10;
  --panel: #12171F;
  --line: #2A313B;

  --cyan: #22E6C8;
  --cyan-deep: #0E7A6C;
  --orange: #FF6B2C;
  --violet: #4B3FA8;
  --violet-deep: #1B1440;

  --fog: #F2F5F6;
  --idx: #8A95A1;

  --rail-w: 88px;
  --rail-w-open: 260px;

  --gap: clamp(16px, 2.4vw, 28px);
  --panel-gap: clamp(64px, 9vw, 128px);

  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 120ms;
  --t-mid: 240ms;
}

/* ---------- 3. Base & typography ---------- */
body {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--fog);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--fog);
}

p { color: var(--fog); }

::selection {
  background: var(--cyan);
  color: #04211D;
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

#main-content:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

/* ---------- 4. Layout ---------- */
.pht-shell {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.pht-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.pht-col-4  { grid-column: span 4; }
.pht-col-5  { grid-column: span 5; }
.pht-col-7  { grid-column: span 7; }
.pht-col-8  { grid-column: span 8; }
.pht-col-12 { grid-column: span 12; }

.pht-stack {
  display: flex;
  flex-direction: column;
  gap: var(--panel-gap);
}

/* ---------- 5. Type utilities ---------- */
.pht-display {
  font-weight: 200;
  font-size: clamp(3.5rem, 11vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--fog);
}

.pht-h2 {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  transform: skewX(-3deg);
  transform-origin: left center;
}

.pht-lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.8;
  color: var(--idx);
  max-width: 40ch;
}

.pht-prose { max-width: 40em; }
.pht-prose > * + * { margin-top: 1.1em; }
.pht-prose p { color: var(--idx); }
.pht-prose strong { color: var(--fog); font-weight: 500; }

.pht-index {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
}

.pht-num {
  font-family: var(--mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---------- 6. Tags & buttons ---------- */
.pht-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 23, 31, 0.7);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--idx);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.pht-tag--cyan { color: var(--cyan); border-color: rgba(34, 230, 200, 0.38); }
.pht-tag--orange { color: var(--orange); border-color: rgba(255, 107, 44, 0.38); }

.pht-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fog);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition:
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.pht-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(34, 230, 200, 0.07);
}

.pht-btn:active { transform: translateY(4px); }

.pht-btn--solid {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04211D;
}

.pht-btn--solid:hover {
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  color: var(--fog);
}

.pht-btn--ghost {
  border-color: rgba(34, 230, 200, 0.5);
  color: var(--cyan);
}

/* ---------- 7. Breadcrumbs ---------- */
.pht-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--idx);
}

.pht-crumbs a {
  text-decoration: none;
  color: var(--idx);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.pht-crumbs a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.pht-crumbs__sep {
  color: var(--line);
  font-family: var(--mono);
}

.pht-crumbs [aria-current="page"] { color: var(--fog); }

/* ---------- 8. Panels & cards ---------- */
.pht-panel {
  position: relative;
  padding: clamp(24px, 4vw, 52px);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(75, 63, 168, 0.12), transparent 58%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 32px 8px 32px 8px;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.pht-panel:hover { border-color: rgba(34, 230, 200, 0.45); }

.pht-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(20px, 2.6vw, 30px);
  background:
    linear-gradient(160deg, rgba(18, 23, 31, 0.96), rgba(10, 12, 16, 0.96));
  border: 1px solid var(--line);
  border-radius: 6px 26px 6px 26px;
  transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}

.pht-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.pht-card__title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.pht-card__meta {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--idx);
}

/* ---------- 9. Slants & rules ---------- */
.pht-slant {
  clip-path: polygon(0 3%, 100% 0, 100% 97%, 0 100%);
}

.pht-slant--rev {
  clip-path: polygon(0 0, 100% 3%, 100% 100%, 0 97%);
}

.pht-rule {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-block: 4px;
  border-top: 1px solid var(--line);
  margin: 0;
  padding-top: 12px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--idx);
}

/* ---------- 10. Media frames ---------- */
.pht-media {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 26px 6px 26px 6px;
  background:
    radial-gradient(120% 95% at 22% 0%, rgba(75, 63, 168, 0.42), transparent 62%),
    radial-gradient(90% 80% at 90% 100%, rgba(34, 230, 200, 0.1), transparent 58%),
    linear-gradient(160deg, #12171F, #0A0C10);
  transition: border-color var(--t-fast) var(--ease);
}

.pht-media:hover { border-color: rgba(34, 230, 200, 0.45); }

.pht-media > img,
.pht-media > picture,
.pht-media > picture > img,
.pht-media > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pht-media--wide   { aspect-ratio: 21 / 9; }
.pht-media--tall   { aspect-ratio: 4 / 5; }
.pht-media--square { aspect-ratio: 1 / 1; }

.pht-media__cap {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(10, 12, 16, 0.82);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  backdrop-filter: blur(6px);
}

/* ---------- 11. Skip link ---------- */
.pht-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--cyan);
  color: #04211D;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms var(--ease);
}

.pht-skip:focus {
  transform: translateY(0);
  outline-color: var(--fog);
}

/* ---------- 12. Header shell ---------- */
.pht-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  height: 0;
  pointer-events: none;
}

.pht-header > * { pointer-events: auto; }

/* --- rail --- */
.pht-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 92;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 22px 0 96px;
  background:
    linear-gradient(180deg, rgba(75, 63, 168, 0.18), transparent 34%),
    #0B0E13;
  border-right: 1px solid var(--line);
  overflow: hidden;
  transition: width var(--t-mid) var(--ease), border-color var(--t-fast) var(--ease);
}

.pht-header[data-open] .pht-rail {
  width: var(--rail-w-open);
  border-right-color: rgba(34, 230, 200, 0.4);
}

.pht-header[data-scrolled="true"] .pht-rail {
  border-right-color: rgba(42, 49, 59, 0.9);
}

.pht-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(242, 245, 246, 0.06) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.55;
}

/* --- brand --- */
.pht-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  text-decoration: none;
  color: var(--fog);
  white-space: nowrap;
}

.pht-brand__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px 4px 14px 4px;
  background: linear-gradient(140deg, var(--cyan) 0%, var(--cyan-deep) 58%, var(--violet-deep) 100%);
  color: #04211D;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
}

.pht-brand__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  transition: opacity 160ms var(--ease);
}

.pht-brand__name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.pht-brand__sub {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--idx);
}

/* --- rail caption --- */
.pht-rail__cap {
  margin: 18px 18px 8px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--idx);
  white-space: nowrap;
  transition: opacity 160ms var(--ease);
}

/* --- nav --- */
.pht-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.pht-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 18px;
  color: var(--idx);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}

.pht-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 2px;
  height: 0;
  background: var(--cyan);
  transform: translateY(-50%);
  transition: height 140ms var(--ease);
}

.pht-nav__link:hover {
  color: var(--fog);
  background: rgba(34, 230, 200, 0.05);
}

.pht-nav__link:hover::before { height: 22px; }

.pht-nav__link[aria-current="page"] {
  color: var(--fog);
  background: rgba(34, 230, 200, 0.07);
}

.pht-nav__link[aria-current="page"]::before { height: 30px; }

.pht-nav__idx {
  flex: 0 0 auto;
  width: 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.pht-nav__link[aria-current="page"] .pht-nav__idx { color: var(--cyan); }

.pht-nav__label {
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: opacity 160ms var(--ease);
}

/* --- rail foot --- */
.pht-rail__foot {
  margin-top: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid var(--line);
  white-space: nowrap;
  transition: opacity 160ms var(--ease);
}

.pht-rail__meta {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--idx);
}

.pht-rail__date {
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.04em;
}

/* collapsed visibility */
.pht-brand__text,
.pht-rail__cap,
.pht-nav__label,
.pht-rail__foot {
  opacity: 0;
  transition: opacity 160ms var(--ease);
}

.pht-header[data-open] .pht-brand__text,
.pht-header[data-open] .pht-rail__cap,
.pht-header[data-open] .pht-nav__label,
.pht-header[data-open] .pht-rail__foot {
  opacity: 1;
}

/* --- progress --- */
.pht-progress {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  z-index: 3;
  background: rgba(42, 49, 59, 0.55);
}

.pht-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 90ms linear;
}

/* --- toggle button --- */
.pht-navbtn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 96;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 14px 4px 14px 4px;
  background: rgba(18, 23, 31, 0.92);
  color: var(--fog);
  backdrop-filter: blur(8px);
  transition:
    border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease),
    transform var(--t-fast) var(--ease);
}

.pht-navbtn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.pht-navbtn:active { transform: translateY(4px); }

.pht-navbtn__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 12px;
}

.pht-navbtn__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 160ms var(--ease), opacity 160ms var(--ease);
}

.pht-navbtn__text {
  display: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.pht-header[data-open] .pht-navbtn__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.pht-header[data-open] .pht-navbtn__bars span:nth-child(2) { opacity: 0; }
.pht-header[data-open] .pht-navbtn__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* --- scrim --- */
.pht-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: block;
  background: rgba(5, 7, 10, 0.68);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms var(--ease);
}

/* --- status pill --- */
.pht-status {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 23, 31, 0.86);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--idx);
  white-space: nowrap;
  transition: border-color var(--t-fast) var(--ease);
}

.pht-status:hover { border-color: rgba(34, 230, 200, 0.4); }

.pht-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.18);
  animation: pht-pulse 2.8s ease-in-out infinite;
}

.pht-status__ver {
  color: var(--cyan);
  letter-spacing: 0.06em;
  font-size: 11px;
}

@keyframes pht-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.18); }
  50%      { box-shadow: 0 0 0 5px rgba(255, 107, 44, 0.06); }
}

/* ---------- 13. Footer ---------- */
.pht-footer {
  margin-top: clamp(80px, 12vw, 160px);
  padding: clamp(56px, 7vw, 96px) 0 32px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(70% 110% at 100% 0%, rgba(75, 63, 168, 0.24), transparent 58%),
    radial-gradient(60% 90% at 0% 100%, rgba(34, 230, 200, 0.07), transparent 62%),
    var(--ink);
}

.pht-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 1.4fr;
  gap: clamp(28px, 5vw, 72px);
}

.pht-footer__col { min-width: 0; }

.pht-footer__brandline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--fog);
}

.pht-footer__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px 4px 12px 4px;
  background: linear-gradient(140deg, var(--cyan) 0%, var(--cyan-deep) 58%, var(--violet-deep) 100%);
  color: #04211D;
  font-size: 15px;
  font-weight: 700;
}

.pht-footer__tagline {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--idx);
  max-width: 30ch;
}

.pht-footer__node {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--idx);
}

.pht-footer__node .pht-num {
  color: var(--orange);
  margin-right: 8px;
}

.pht-footer__cap {
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--idx);
}

.pht-footer__list li + li { margin-top: 10px; }

.pht-footer__list a {
  display: inline-block;
  font-size: 15px;
  color: var(--fog);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.pht-footer__list a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.pht-footer__meta {
  font-size: 14px;
  line-height: 1.9;
  color: var(--idx);
}

.pht-footer__meta strong {
  color: var(--fog);
  font-weight: 500;
}

.pht-footer__note {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--idx);
  max-width: 36ch;
}

.pht-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px dashed var(--line);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--idx);
}

.pht-footer__base-r { color: var(--idx); }

/* ---------- 14. Reveal ---------- */
html.is-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

html.is-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 15. Responsive ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .pht-skip { left: calc(var(--rail-w) + 10px); }
}

@media (max-width: 1023px) {
  .pht-rail {
    width: min(84vw, 320px);
    padding-bottom: 108px;
    transform: translateX(-100%);
    transition: transform 260ms var(--ease);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5);
  }

  .pht-header[data-open] .pht-rail { transform: translateX(0); }

  .pht-header[data-open] .pht-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .pht-brand__text,
  .pht-rail__cap,
  .pht-nav__label,
  .pht-rail__foot {
    opacity: 1;
  }

  .pht-progress { display: none; }

  .pht-navbtn {
    left: auto;
    right: 20px;
    bottom: 20px;
    width: auto;
    height: 52px;
    padding: 0 20px;
    gap: 12px;
    border-radius: 16px 4px 16px 4px;
    background: rgba(18, 23, 31, 0.94);
  }

  .pht-navbtn__text { display: inline; }
}

@media (max-width: 900px) {
  .pht-col-4,
  .pht-col-5,
  .pht-col-7,
  .pht-col-8 { grid-column: span 12; }

  .pht-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .pht-footer__col:first-child { grid-column: span 2; }
}

@media (max-width: 640px) {
  .pht-shell { width: min(1200px, 100% - 32px); }

  .pht-status {
    top: 12px;
    right: 12px;
    height: 30px;
    padding: 0 10px;
    font-size: 10px;
  }

  .pht-status__label { display: none; }
  .pht-status__ver { font-size: 10.5px; }

  .pht-footer__grid { grid-template-columns: 1fr; }
  .pht-footer__col:first-child { grid-column: span 1; }

  .pht-footer__base { flex-direction: column; align-items: flex-start; }

  .pht-display { font-size: clamp(2.75rem, 13vw, 4.5rem); }
}

@media (max-width: 380px) {
  .pht-navbtn__text { display: none; }
  .pht-navbtn { width: 52px; padding: 0; }
}

/* ---------- 16. Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  html.is-js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .pht-status__dot { animation: none; }
}
