:root {
  color-scheme: dark;
  --ink: #f7f3e8;
  --muted: #aaa9bb;
  --night: #070712;
  --panel: rgba(17, 17, 35, 0.78);
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #68e4ff;
  --violet: #a88bff;
  --gold: #ffd486;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background:
    radial-gradient(circle at 50% 35%, rgba(56, 42, 116, 0.28), transparent 38%),
    radial-gradient(circle at 18% 75%, rgba(14, 125, 152, 0.16), transparent 30%),
    linear-gradient(145deg, #080812 0%, #0d0c1c 46%, #05050c 100%);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

#starfield {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.62;
  pointer-events: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  opacity: 0.12;
  filter: blur(90px);
  pointer-events: none;
}

.ambient-one {
  top: -18vw;
  right: -4vw;
  background: var(--violet);
}

.ambient-two {
  bottom: -24vw;
  left: -8vw;
  background: var(--cyan);
}

.portal-shell {
  display: grid;
  grid-template-rows: auto minmax(250px, 1fr) auto auto;
  gap: clamp(8px, 1.2vh, 18px);
  width: min(1440px, 100%);
  height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  padding: clamp(18px, 3vh, 38px) clamp(22px, 5vw, 74px) clamp(12px, 2vh, 24px);
}

.masthead {
  z-index: 40;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.masthead-tools {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.masthead-action-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 4px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

h1 {
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(34px, 4.4vw, 66px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: 0.14em;
}

.subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 0.13em;
}

.visitor-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(74px, 1fr));
  width: min(100%, 330px);
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgba(104, 228, 255, 0.2);
  border-radius: 14px;
  background: rgba(9, 9, 22, 0.64);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.visitor-stats p {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 7px 10px 6px;
  text-align: center;
}

.visitor-stats p + p {
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.visitor-stats strong {
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.visitor-stats p:first-child strong {
  color: var(--cyan);
}

.visitor-stats p span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.visitor-stats i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #73f5b3;
  box-shadow: 0 0 8px rgba(115, 245, 179, 0.8);
  vertical-align: 1px;
}

.visitor-stats > small {
  grid-column: 1 / -1;
  padding: 4px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #737184;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-align: center;
}

.visitor-stats.has-error i {
  background: #827f90;
  box-shadow: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.orbit-status {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.quick-actions {
  display: flex;
  gap: 7px;
}

.quick-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  background: rgba(9, 9, 22, 0.68);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.quick-action.primary {
  border-color: rgba(104, 228, 255, 0.34);
  background: rgba(104, 228, 255, 0.1);
  color: var(--cyan);
}

.quick-action:hover,
.quick-action:focus-visible {
  border-color: var(--cyan);
  color: var(--ink);
  outline: none;
}

.orbit-status strong {
  color: var(--gold);
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(26px, 3vw, 42px);
  font-variant-numeric: tabular-nums;
}

.orbit-stage {
  position: relative;
  min-height: 0;
  perspective: 1500px;
  touch-action: none;
  cursor: grab;
}

.category-filter {
  position: absolute;
  top: 2px;
  left: 50%;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: max-content;
  max-width: calc(100% - 110px);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 8, 20, 0.58);
  transform: translateX(-50%);
  backdrop-filter: blur(16px);
}

.filter-chip {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #89879a;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
  cursor: pointer;
}

.filter-chip:hover,
.filter-chip:focus-visible {
  border-color: rgba(104, 228, 255, 0.4);
  color: var(--ink);
  outline: none;
}

.filter-chip.is-selected {
  border-color: rgba(104, 228, 255, 0.34);
  background: rgba(104, 228, 255, 0.12);
  color: var(--cyan);
}

.orbit-stage.is-dragging {
  cursor: grabbing;
}

.card-orbit {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.site-card {
  position: absolute;
  top: 48%;
  left: 50%;
  width: clamp(260px, 34vw, 500px);
  aspect-ratio: 2.05 / 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: clamp(16px, 1.8vw, 25px);
  background: #171727;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.58);
  color: white;
  text-decoration: none;
  transform-style: preserve-3d;
  -webkit-tap-highlight-color: transparent;
}

.site-card.is-near {
  will-change: transform, opacity;
}

.site-card::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background:
    linear-gradient(125deg, rgba(255, 255, 255, 0.18), transparent 20%),
    linear-gradient(to top, rgba(5, 5, 14, 0.94), transparent 50%);
  content: "";
  pointer-events: none;
}

.site-card::after {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 1px solid transparent;
  border-radius: inherit;
  content: "";
  transition: border-color 180ms ease, box-shadow 180ms ease;
  pointer-events: none;
}

.site-card:hover::after,
.site-card:focus-visible::after,
.site-card.is-active::after {
  border-color: rgba(104, 228, 255, 0.74);
  box-shadow: inset 0 0 24px rgba(104, 228, 255, 0.14), 0 0 38px rgba(104, 228, 255, 0.18);
}

.site-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 5px;
}

.site-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #171727, #0d1830);
  transform: scale(1.015);
  transition: transform 480ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.site-card img:not([src]) {
  opacity: 0;
}

.site-card:hover img,
.site-card:focus-visible img {
  transform: scale(1.06);
}

.card-caption {
  position: absolute;
  right: 20px;
  bottom: 17px;
  left: 20px;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}

.card-caption span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.card-caption strong {
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(17px, 1.7vw, 25px);
  letter-spacing: 0.08em;
}

.orbit-line {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(104, 228, 255, 0.09);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(68deg);
  pointer-events: none;
}

.orbit-line-outer {
  width: min(92vw, 1160px);
  height: min(44vw, 470px);
  box-shadow: 0 0 70px rgba(104, 228, 255, 0.035);
}

.orbit-line-inner {
  width: min(62vw, 760px);
  height: min(30vw, 320px);
  border-style: dashed;
}

.orbit-control {
  position: absolute;
  top: 50%;
  z-index: 50;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(9, 9, 22, 0.68);
  color: var(--ink);
  font-size: 20px;
  place-items: center;
  transform: translateY(-50%);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.orbit-control:hover,
.orbit-control:focus-visible {
  border-color: rgba(104, 228, 255, 0.7);
  background: rgba(35, 34, 70, 0.8);
  outline: none;
}

.orbit-control:active {
  transform: translateY(-50%) scale(0.94);
}

.orbit-control.previous {
  left: 0;
}

.orbit-control.next {
  right: 0;
}

.play-toggle {
  position: absolute;
  bottom: 3px;
  left: 50%;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(9, 9, 22, 0.72);
  color: #89879a;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transform: translateX(-50%);
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.play-toggle:hover,
.play-toggle:focus-visible,
.play-toggle[aria-pressed="true"] {
  border-color: rgba(104, 228, 255, 0.55);
  background: rgba(104, 228, 255, 0.1);
  color: var(--cyan);
  outline: none;
}

.play-icon {
  display: grid;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(104, 228, 255, 0.12);
  font-size: 10px;
  place-items: center;
}

.site-info {
  z-index: 60;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(16px, 2.4vw, 34px);
  min-height: 122px;
  padding: 18px clamp(20px, 2.8vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(115deg, rgba(104, 228, 255, 0.04), transparent 30%),
    var(--panel);
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
}

.info-index {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 35px;
  color: #6f6e83;
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.info-index span:first-child {
  color: var(--cyan);
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: 20px;
}

.info-index i {
  width: 1px;
  height: 22px;
  background: var(--line);
}

.info-labels {
  display: flex;
  align-items: center;
  gap: 12px;
}

.subject-pill {
  display: inline-flex;
  padding: 4px 9px;
  border: 1px solid rgba(255, 212, 134, 0.27);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.motion-hint {
  color: #89879a;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.info-copy h2 {
  margin: 7px 0 4px;
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(21px, 2vw, 29px);
  letter-spacing: 0.08em;
}

.info-copy p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 1.08vw, 14px);
  line-height: 1.65;
}

.info-meta,
.mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.info-meta {
  margin-top: 8px;
}

.info-meta span,
.mini-meta span {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: #a9a7bb;
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
  letter-spacing: 0.03em;
}

.launch-link {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 180px;
  padding: 14px 16px 14px 20px;
  border: 1px solid rgba(104, 228, 255, 0.28);
  border-radius: 14px;
  background: rgba(104, 228, 255, 0.07);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.launch-link strong {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--cyan);
  color: #071017;
  font-size: 16px;
  place-items: center;
}

.launch-link:hover,
.launch-link:focus-visible {
  border-color: var(--cyan);
  background: rgba(104, 228, 255, 0.13);
  outline: none;
  transform: translateY(-2px);
}

.footer-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  color: #858397;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #525164;
}

.portal-dialog {
  width: min(1080px, calc(100% - 32px));
  max-width: none;
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.portal-dialog::backdrop {
  background: rgba(2, 2, 10, 0.82);
  backdrop-filter: blur(12px);
}

.dialog-shell {
  position: relative;
  max-height: 88dvh;
  overflow: auto;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(104, 228, 255, 0.2);
  border-radius: 26px;
  background:
    radial-gradient(circle at 85% 0%, rgba(168, 139, 255, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(20, 20, 42, 0.98), rgba(8, 8, 20, 0.98));
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.72);
  scrollbar-color: rgba(104, 228, 255, 0.45) transparent;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font: inherit;
  font-size: 24px;
  cursor: pointer;
  place-items: center;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  outline: none;
}

.dialog-eyebrow {
  margin: 0 0 7px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.portal-dialog h2 {
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", "PMingLiU", serif;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.08em;
}

.dialog-lead {
  max-width: 680px;
  margin: 9px 0 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.dialog-note {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #89879a;
  font-size: 11px;
  line-height: 1.6;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 16px;
  min-height: 132px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.choice-card > span {
  grid-row: span 2;
  display: grid;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(104, 228, 255, 0.3);
  border-radius: 18px;
  background: rgba(104, 228, 255, 0.09);
  color: var(--cyan);
  font-family: "Songti TC", "PMingLiU", serif;
  font-size: 25px;
  place-items: center;
}

.choice-card strong {
  align-self: end;
  font-size: 18px;
}

.choice-card small {
  align-self: start;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.choice-card:hover,
.choice-card:focus-visible {
  border-color: rgba(104, 228, 255, 0.65);
  background: rgba(104, 228, 255, 0.08);
  outline: none;
}

.guide-step[hidden] {
  display: none;
}

.text-button {
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cyan);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.text-button:hover,
.text-button:focus-visible {
  color: var(--ink);
  outline: none;
  text-decoration: underline;
}

.step-label {
  margin: 16px 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.goal-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.goal-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.goal-button strong {
  color: var(--cyan);
}

.goal-button:hover,
.goal-button:focus-visible {
  border-color: rgba(104, 228, 255, 0.58);
  background: rgba(104, 228, 255, 0.08);
  outline: none;
}

.recommendation-list {
  display: grid;
  gap: 10px;
}

.recommendation-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  text-decoration: none;
}

.recommendation-card:hover,
.recommendation-card:focus-visible {
  border-color: rgba(104, 228, 255, 0.62);
  background: rgba(104, 228, 255, 0.07);
  outline: none;
}

.recommendation-rank {
  color: var(--gold);
  font-family: "Songti TC", "PMingLiU", serif;
  font-size: 24px;
}

.recommendation-card > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.recommendation-card small,
.overview-card-body > small {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.recommendation-card strong {
  font-family: "Songti TC", "PMingLiU", serif;
  font-size: 20px;
}

.recommendation-card em,
.overview-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.55;
}

.recommendation-card > b {
  color: var(--cyan);
  font-size: 20px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.overview-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  text-decoration: none;
}

.overview-card:hover,
.overview-card:focus-visible {
  border-color: rgba(104, 228, 255, 0.62);
  outline: none;
  transform: translateY(-2px);
}

.overview-card img {
  width: 100%;
  aspect-ratio: 2.05 / 1;
  object-fit: cover;
  background: #171727;
}

.overview-card-body {
  display: grid;
  gap: 6px;
  padding: 13px;
}

.overview-card-body > strong {
  font-family: "Songti TC", "PMingLiU", serif;
  font-size: 18px;
}

.mobile-help {
  display: none;
}

@media (max-width: 900px) {
  .portal-shell {
    grid-template-rows: auto minmax(220px, 1fr) auto auto;
    padding-inline: clamp(15px, 4vw, 28px);
  }

  .masthead-action-row {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  .orbit-stage {
    margin-inline: calc(clamp(15px, 4vw, 28px) * -1);
  }

  .site-card {
    width: min(82vw, 500px);
  }

  .orbit-control {
    top: auto;
    bottom: 2px;
    width: 44px;
    height: 44px;
  }

  .orbit-control.previous {
    left: 17px;
  }

  .orbit-control.next {
    right: 17px;
  }

  .site-info {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 132px;
    padding: 15px 16px;
    border-radius: 18px;
  }

  .info-index {
    display: none;
  }

  .info-copy p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .info-meta {
    margin-top: 6px;
  }

  .info-meta span {
    font-size: 9px;
  }

  .motion-hint {
    display: none;
  }

  .launch-link {
    min-width: clamp(46px, 17vw, 150px);
    width: auto;
    height: 46px;
    padding: 7px;
    border-radius: 999px;
  }

  .launch-link strong {
    width: 30px;
    height: 30px;
  }

  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .portal-shell {
    grid-template-rows: auto minmax(210px, 1fr) auto auto;
    padding: 18px 15px 12px;
  }

  .masthead {
    align-items: center;
  }

  .subtitle {
    max-width: 225px;
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.05em;
  }

  .visitor-stats {
    grid-template-columns: repeat(3, minmax(58px, 1fr));
    width: min(100%, 180px);
    margin-top: 0;
  }

  .visitor-stats p {
    padding: 5px 4px 4px;
  }

  .visitor-stats strong {
    font-size: 13px;
  }

  .visitor-stats p span {
    font-size: 8px;
    letter-spacing: 0.02em;
  }

  .visitor-stats > small {
    padding-block: 3px;
    font-size: 7px;
  }

  .orbit-status span {
    display: none;
  }

  .masthead-tools {
    gap: 5px;
  }

  .quick-actions {
    gap: 5px;
  }

  .quick-action {
    justify-content: center;
    width: 62px;
    min-width: 62px;
    min-height: 44px;
    padding: 0;
    font-size: 11px;
  }

  .quick-label {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
  }

  #guide-open::after {
    content: "選站";
  }

  #overview-open::after {
    content: "總覽";
  }

  .category-filter {
    gap: 2px;
    max-width: calc(100% - 28px);
    padding: 3px;
  }

  .filter-chip {
    min-height: 32px;
    padding-inline: 8px;
    font-size: 11px;
    letter-spacing: 0;
  }

  .site-card {
    width: min(92vw, 390px);
  }

  .launch-link {
    min-width: 46px;
    width: 46px;
    border-radius: 50%;
  }

  .launch-link span {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
  }

  .play-toggle {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }

  .play-label {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    clip: rect(0 0 0 0);
  }

  .desktop-help {
    display: none;
  }

  .mobile-help {
    display: inline;
  }

  .footer-note .footer-divider {
    display: none;
  }

  .info-meta span:last-child {
    display: none;
  }

  .portal-dialog {
    width: calc(100% - 20px);
  }

  .dialog-shell {
    padding: 24px 16px 18px;
    border-radius: 20px;
  }

  .dialog-close {
    top: 12px;
    right: 12px;
  }

  .dialog-lead {
    margin-right: 42px;
    margin-bottom: 20px;
    font-size: 13px;
  }

  .choice-grid,
  .goal-options,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 108px;
    padding: 16px;
  }

  .recommendation-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .recommendation-card > b {
    display: none;
  }

  .recommendation-card em,
  .overview-card em {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

@media (max-height: 720px) {
  .portal-shell {
    padding-top: 15px;
    padding-bottom: 9px;
  }

  .subtitle {
    display: none;
  }

  .visitor-stats {
    margin-top: 0;
  }

  .site-info {
    min-height: 105px;
    padding-block: 13px;
  }

  .footer-note {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
