:root {
  color-scheme: dark;
  --bg: #11140f;
  --surface: #1b1e17;
  --surface-raised: #23261d;
  --surface-soft: #29291f;
  --line: rgba(211, 181, 123, 0.17);
  --line-strong: rgba(211, 181, 123, 0.34);
  --gold: #dfba75;
  --gold-bright: #f0d49c;
  --bronze: #9d7748;
  --sage: #8d9a79;
  --ink: #eee9dd;
  --muted: #aaa99b;
  --dim: #777b6d;
  --danger: #d79a81;
  --radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 280px; background: var(--bg); }
body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(114, 102, 63, 0.13), transparent 32rem),
    radial-gradient(circle at 90% 75%, rgba(62, 79, 57, 0.12), transparent 28rem),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.42; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 3px; }
a { color: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Songti SC", "STSong", "Noto Serif CJK SC", serif; }
p { color: var(--muted); line-height: 1.75; }
strong { color: var(--ink); }
[hidden] { display: none !important; }

.app-shell { width: 100%; max-width: 480px; min-height: 100vh; margin: 0 auto; }
#app {
  min-height: 100vh;
  padding: calc(18px + env(safe-area-inset-top)) 18px calc(34px + env(safe-area-inset-bottom));
}
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 30px; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; text-align: left; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(197, 155, 88, 0.07);
  font-family: "Songti SC", serif;
  font-size: 20px;
  box-shadow: inset 0 0 0 4px rgba(223, 186, 117, 0.03);
}
.brand strong { display: block; font-family: "Songti SC", serif; font-size: 17px; letter-spacing: 0.12em; }
.brand small { display: block; margin-top: 2px; color: var(--dim); font-size: 8px; letter-spacing: 0.16em; }
.local-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--sage); font-size: 11px; white-space: nowrap; }
.local-badge i, .sensor-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 4px rgba(141, 154, 121, 0.08); }
.eyebrow { display: block; margin-bottom: 10px; color: var(--bronze); font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.hero { padding: 17px 2px 25px; }
.hero h1 { margin-bottom: 18px; font-size: clamp(30px, 8.6vw, 40px); font-weight: 500; line-height: 1.38; letter-spacing: 0.02em; }
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p { max-width: 34em; margin-bottom: 19px; font-size: 14px; }
.feature-row { display: flex; flex-wrap: wrap; gap: 8px; }
.feature-row span, .outline-badge {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.015);
  font-size: 10px;
}
.loading-card { display: grid; min-height: 60vh; place-content: center; justify-items: center; }

.campus-card, .resume-card, .seek-card, .calibration-card, .arrival-card, .process-card,
.found-card, .collection-artifact, .export-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(43, 45, 34, 0.93), rgba(26, 29, 22, 0.97));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16), inset 0 1px rgba(255, 255, 255, 0.02);
}
.campus-card { padding: 20px 16px 16px; overflow: hidden; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 0 3px; }
.card-heading h2 { margin: 0; font-size: 23px; font-weight: 500; }
.card-heading .eyebrow { margin-bottom: 7px; }
.outline-badge { flex: 0 0 auto; color: var(--gold); }
.campus-map { display: block; width: 100%; height: auto; margin: 14px 0 7px; border-radius: 14px; background: #171c16; }
.campus-map text { fill: #868f7b; font-size: 9px; text-anchor: middle; }
.map-path { fill: none; stroke: #59604b; stroke-width: 5; opacity: 0.65; }
.map-path.minor { stroke-width: 2; stroke-dasharray: 4 5; opacity: 0.45; }
.map-block { fill: #2d3429; stroke: #4b5542; stroke-width: 1; }
.map-water { fill: #263b36; stroke: #466258; }
.site-pulse { fill: rgba(223, 186, 117, 0.08); stroke: rgba(223, 186, 117, 0.4); stroke-dasharray: 2 3; }
.site-dot { fill: var(--gold); }
.campus-map .site-label { fill: var(--gold); font-size: 10px; }
.map-tag rect { fill: #282a20; stroke: #706244; }
.campus-map .map-tag text { fill: #d0b780; font-size: 9px; }
.map-notice { margin: 10px 3px 14px; font-size: 12px; line-height: 1.7; }
.map-notice strong { display: block; color: var(--gold); }
.task-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.task-meta span { padding: 5px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.035); color: var(--muted); font-size: 10px; }
.start-actions { display: grid; gap: 11px; margin-top: 18px; }
.primary-button, .secondary-button, .backfill-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  text-align: center;
}
.primary-button { border: 1px solid #d6b372; color: #252116 !important; background: linear-gradient(135deg, #e7c887, #c99e5c); box-shadow: 0 7px 22px rgba(186, 140, 69, 0.12); }
.primary-button strong, .primary-button small { color: inherit; }
.primary-button small, .secondary-button small { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; opacity: 0.72; }
.secondary-button { border: 1px solid var(--line-strong); color: var(--gold-bright); background: rgba(223, 186, 117, 0.055); }
.primary-button:active:not(:disabled), .secondary-button:active:not(:disabled) { transform: translateY(1px); }
.large { justify-content: space-between; min-height: 65px; padding: 13px 18px; text-align: left; }
.large > span { min-width: 0; }
.large > b { font-size: 20px; font-weight: 400; }
.text-button { padding: 6px 0; border: 0; color: var(--gold); background: none; font-size: 12px; }
.text-button.danger { color: var(--danger); }
.button-hint { margin: -2px 0 0; text-align: center; font-size: 11px; }
.collection-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 67px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: transparent;
  text-align: left;
}
.collection-entry > span:nth-child(2) { flex: 1; min-width: 0; }
.collection-entry strong, .collection-entry small { display: block; }
.collection-entry small { margin-top: 4px; color: var(--dim); font-size: 10px; }
.collection-entry > b { color: var(--bronze); font-size: 10px; font-weight: 500; white-space: nowrap; }
.collection-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 9px; color: var(--gold); }
.home-footer { padding: 27px 0 0; color: var(--dim); font-size: 10px; line-height: 1.9; text-align: center; }
.resume-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px 14px; margin-bottom: 15px; padding: 16px; border-color: var(--line-strong); }
.resume-card h2 { margin: 0 0 5px; font-size: 18px; }
.resume-card p, .resume-card .eyebrow { margin: 0; }
.resume-card p { font-size: 11px; }
.resume-card .primary-button { grid-row: span 2; grid-column: 2; }
.resume-card .danger { justify-self: start; }
.recent-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; margin-bottom: 15px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(223, 186, 117, 0.04); text-align: left; }
.recent-card small, .recent-card strong { display: block; }
.recent-card small { margin-bottom: 3px; color: var(--dim); font-size: 9px; }
.recent-card strong { color: var(--gold); font-size: 13px; }
.recent-card > span:last-child { color: var(--muted); font-size: 11px; }

.demo-banner { margin: -14px 0 18px; padding: 10px 12px; border: 1px solid rgba(223, 186, 117, 0.32); border-radius: 10px; color: var(--gold-bright); background: rgba(183, 137, 64, 0.1); font-size: 12px; font-weight: 650; text-align: center; }
.mission-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: var(--dim); font-size: 10px; }
.mission-title { margin: 0 0 20px; font-size: 32px; font-weight: 500; }
.sensor-error { margin: 0 0 15px; padding: 13px 15px; border: 1px solid rgba(215, 154, 129, 0.4); border-radius: 12px; color: var(--danger); background: rgba(129, 65, 47, 0.12); font-size: 12px; line-height: 1.65; }
.sensor-error p { margin: 5px 0; color: #d7b2a3; font-size: 12px; }
.sensor-error .text-button { color: var(--gold-bright); }
.calibration-card, .arrival-card, .process-card { padding: 26px 20px 20px; text-align: center; }
.calibration-card h2, .arrival-card h2, .process-card h2 { margin: 18px 0 10px; font-size: 24px; font-weight: 500; }
.calibration-card > p, .arrival-card > p, .process-card > p { font-size: 13px; }
.calibration-card > .primary-button, .arrival-card > .primary-button, .process-card > .primary-button { width: 100%; margin-top: 12px; }
.calibration-orbit { display: grid; place-items: center; width: 154px; height: 154px; margin: 4px auto 23px; border: 1px solid var(--line-strong); border-radius: 50%; background: radial-gradient(circle, rgba(223, 186, 117, 0.08), transparent 65%); box-shadow: inset 0 0 0 13px rgba(223, 186, 117, 0.025), inset 0 0 0 14px rgba(223, 186, 117, 0.1); }
.calibration-orbit span { color: var(--gold); font-family: "Songti SC", serif; font-size: 31px; }
.calibration-orbit.real { border-style: dashed; }
.status-pill { display: inline-block; padding: 6px 10px; border-radius: 999px; color: var(--sage); background: rgba(141, 154, 121, 0.08); font-size: 10px; }
.compact-facts { margin: 18px 0 8px; text-align: left; }
.compact-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 10px; }
.compact-facts dt { color: var(--dim); }
.compact-facts dd { margin: 0; color: var(--muted); text-align: right; overflow-wrap: anywhere; }

.seek-card { padding: 16px 14px 20px; }
.seek-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.seek-stats strong { color: var(--gold); font-size: 14px; }
.compass { position: relative; width: min(70vw, 258px); aspect-ratio: 1; margin: 20px auto 16px; border: 1px solid var(--line-strong); border-radius: 50%; background: radial-gradient(circle at 50% 45%, #292b20, #171b15 68%); box-shadow: inset 0 0 0 9px rgba(223, 186, 117, 0.025), 0 12px 40px rgba(0, 0, 0, 0.22); overflow: hidden; }
.compass::after { content: ""; position: absolute; inset: 22%; border: 1px solid rgba(223, 186, 117, 0.09); border-radius: 50%; pointer-events: none; }
.compass-ticks { position: absolute; inset: 8px; border-radius: 50%; background: repeating-conic-gradient(from -0.5deg, rgba(223, 186, 117, 0.5) 0deg 1deg, transparent 1deg 15deg); -webkit-mask: radial-gradient(circle, transparent 0 89%, #000 90%); mask: radial-gradient(circle, transparent 0 89%, #000 90%); }
.axis { position: absolute; z-index: 2; color: var(--dim); font-size: 9px; }
.axis-top { top: 22px; left: 50%; transform: translateX(-50%); color: var(--gold); }
.axis-right { right: 20px; top: 50%; transform: translateY(-50%); }
.axis-bottom { bottom: 20px; left: 50%; transform: translateX(-50%); }
.axis-left { left: 18px; top: 50%; transform: translateY(-50%); }
.needle { position: absolute; z-index: 3; inset: 35px; transform-origin: center; transition: transform 100ms linear; pointer-events: none; }
.needle::before { content: ""; position: absolute; top: 0; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-right: 9px solid transparent; border-bottom: 19px solid var(--gold); border-left: 9px solid transparent; filter: drop-shadow(0 2px 6px rgba(223, 186, 117, 0.3)); }
.needle span { position: absolute; top: 18px; bottom: 50%; left: calc(50% - 1px); width: 2px; background: linear-gradient(var(--gold), rgba(223, 186, 117, 0.12)); }
.compass-center { position: absolute; z-index: 4; top: 50%; left: 50%; display: grid; place-content: center; width: 75px; height: 75px; transform: translate(-50%, -50%); border: 1px solid var(--line-strong); border-radius: 50%; background: #1b1e17; text-align: center; box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25); }
.compass-center strong { color: var(--gold-bright); font-family: "Songti SC", serif; font-size: 24px; line-height: 1; }
.compass-center small { margin-top: 5px; color: var(--dim); font-size: 9px; }
.bearing-readout { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px 14px; color: var(--muted); font-size: 11px; }
.bearing-readout strong { color: var(--gold); font-size: 17px; }
.bearing-readout span { padding-left: 14px; border-left: 1px solid var(--line); }
.compass-note { margin: 12px 0 17px; color: var(--dim); font-size: 10px; text-align: center; }
.demo-controls { display: grid; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); }
.turn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.turn-row .secondary-button { padding: 10px 8px; font-size: 12px; }
.instruction-card { display: flex; align-items: flex-start; gap: 11px; padding: 14px; border-radius: 12px; background: rgba(141, 154, 121, 0.055); text-align: left; }
.instruction-card p { margin: 0; font-size: 11px; }
.instruction-icon { color: var(--sage); font-size: 22px; }
.limit-card { margin-top: 15px; padding: 15px; border: 1px solid rgba(215, 154, 129, 0.3); border-radius: 12px; text-align: center; }
.limit-card p { margin: 7px 0 10px; font-size: 11px; }
.arrival-symbol { display: grid; place-items: center; width: 108px; height: 108px; margin: 5px auto 25px; border: 1px dashed var(--bronze); border-radius: 50%; color: var(--gold); background: radial-gradient(circle, rgba(223, 186, 117, 0.13), transparent 65%); font-size: 40px; }
.arrival-card .task-meta { justify-content: center; margin: 19px 0 8px; }
.process-index { color: var(--bronze); font-size: 10px; letter-spacing: 0.14em; }
.clean-progress { display: flex; align-items: center; justify-content: center; margin: 26px 0 12px; }
.clean-progress span { display: grid; place-items: center; width: 49px; height: 49px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--dim); font-family: "Songti SC", serif; font-size: 21px; }
.clean-progress span.done { border-color: var(--gold); color: #272218; background: var(--gold); }
.clean-progress i { width: 60px; height: 1px; background: var(--line-strong); }
.clean-status { margin-bottom: 23px; color: var(--muted); font-size: 12px; }
.clean-status strong { color: var(--gold); }
.sensor-live { display: inline-flex; align-items: center; gap: 9px; margin-top: 7px; padding: 9px 13px; border-radius: 999px; color: var(--sage); background: rgba(141, 154, 121, 0.06); font-size: 11px; }
.sensor-live i { animation: breathe 1.8s ease-in-out infinite; }
.survey-ring { --survey-progress: 0; display: grid; place-items: center; width: 142px; height: 142px; margin: 25px auto 18px; border-radius: 50%; background: conic-gradient(var(--gold) calc(var(--survey-progress) * 360deg), rgba(223, 186, 117, 0.1) 0); position: relative; }
.survey-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.survey-ring span { position: relative; z-index: 1; color: var(--gold); font-size: 28px; font-family: "Songti SC", serif; }
.survey-bar { height: 3px; overflow: hidden; border-radius: 3px; background: rgba(223, 186, 117, 0.09); }
.survey-bar i { display: block; height: 100%; background: var(--gold); transition: width 100ms linear; }
.survey-caption { margin: 10px 0 13px !important; color: var(--dim); font-size: 11px !important; }
.skip-button { margin-top: 15px; color: var(--muted); }

.found-card { padding: 24px 19px; text-align: center; }
.artifact-svg { display: block; width: 170px; max-width: 75%; height: auto; margin: 5px auto 17px; color: var(--gold); }
.artifact-svg path { fill: rgba(223, 186, 117, 0.07); stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.artifact-svg path.ram { fill: none; stroke-width: 2.4; }
.artifact-svg.undiscovered { color: #5f6255; filter: none; }
.artifact-svg.undiscovered path { fill: rgba(95, 98, 85, 0.13); stroke-dasharray: 3 4; }
.artifact-svg.found { color: #b49460; }
.artifact-svg.full { color: var(--gold-bright); filter: drop-shadow(0 6px 18px rgba(223, 186, 117, 0.09)); }
.collection-number { margin-bottom: 10px; color: var(--dim); font-size: 10px; letter-spacing: 0.06em; }
.collection-number strong { color: var(--bronze); font-family: ui-monospace, monospace; }
.found-card h2, .collection-artifact h2 { margin-bottom: 11px; font-size: 28px; font-weight: 500; }
.found-summary, .collection-artifact > p { font-size: 12px; }
.level-badge { display: inline-block; margin: 4px 0 15px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--bronze); font-size: 10px; }
.level-badge.full { border-color: rgba(223, 186, 117, 0.5); color: var(--gold); background: rgba(223, 186, 117, 0.07); }
.locked-archive { display: flex; align-items: flex-start; gap: 12px; margin-top: 16px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 12px; text-align: left; }
.locked-archive > span { color: var(--bronze); font-size: 22px; }
.locked-archive strong { font-size: 12px; }
.locked-archive p { margin: 5px 0 0; font-size: 11px; }
.artifact-story { margin-top: 14px; padding-top: 5px; border-top: 1px solid var(--line); text-align: left; }
.artifact-story p { margin: 12px 0; font-size: 12px; }
.archive-facts { margin: 17px 0; text-align: left; }
.archive-facts div { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 11px; }
.archive-facts dt { color: var(--bronze); }
.archive-facts dd { margin: 0; color: var(--muted); line-height: 1.65; }
.sources { padding-top: 13px; border-top: 1px solid var(--line); text-align: left; }
.sources h3 { margin-bottom: 8px; color: var(--dim); font-size: 10px; letter-spacing: 0.1em; }
.sources a { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 0; color: var(--gold); font-size: 11px; line-height: 1.5; text-decoration: none; overflow-wrap: anywhere; }
.sources a span { flex: 0 0 auto; }
.redo-button { width: 100%; margin-top: 16px; }
.backfill-section { margin-top: 16px; padding: 20px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.015); text-align: center; }
.backfill-section h3 { margin-bottom: 8px; font-size: 14px; }
.backfill-section p { font-size: 11px; }
.backfill-button { width: 100%; overflow: hidden; border: 1px solid var(--gold); color: var(--gold-bright); background: #24251c; touch-action: none; user-select: none; -webkit-user-select: none; }
.backfill-button i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, #9c7644, #d6af6b); opacity: 0.65; }
.backfill-button span { position: relative; z-index: 1; }
.backfill-button.holding { color: #fff4df; }

.result-hero { padding: 10px 0 24px; text-align: center; }
.result-seal { display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 19px; transform: rotate(-7deg); border: 2px solid var(--bronze); border-radius: 50%; color: var(--gold); font-family: "Songti SC", serif; font-size: 20px; box-shadow: inset 0 0 0 4px var(--bg), inset 0 0 0 5px var(--line-strong); }
.result-hero h2 { margin-bottom: 7px; font-size: 28px; font-weight: 500; }
.result-hero p { color: var(--bronze); font-family: ui-monospace, monospace; font-size: 12px; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 0 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: var(--line); }
.result-grid div { min-width: 0; padding: 14px; background: var(--surface); }
.result-grid .wide { grid-column: 1 / -1; }
.result-grid dt { margin-bottom: 6px; color: var(--dim); font-size: 9px; }
.result-grid dd { margin: 0; color: var(--ink); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.result-artifact { margin-bottom: 16px; }
.export-section { display: grid; gap: 10px; padding: 16px; }
.export-fallback { min-width: 0; padding-top: 10px; }
.export-fallback p { margin-bottom: 8px; font-size: 11px; }
.export-fallback pre { max-height: 250px; margin: 0; padding: 12px; overflow: auto; border: 1px solid var(--line); border-radius: 9px; color: var(--sage); background: #10130e; font: 10px/1.55 ui-monospace, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: text; }

.back-button { margin: -13px 0 20px; }
.collection-header h1 { margin-bottom: 10px; font-size: 34px; font-weight: 500; }
.collection-header p { font-size: 12px; }
.collection-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 19px 0 13px; }
.collection-tabs span { padding: 8px 3px; border-bottom: 1px solid var(--line); color: var(--dim); font-size: 10px; text-align: center; }
.collection-tabs span.active { border-color: var(--gold); color: var(--gold); }
.collection-artifact { margin-bottom: 17px; padding: 23px 18px; text-align: center; }
.collection-artifact.undiscovered { background: linear-gradient(145deg, #20231c, #181b16); }
.archive-list { margin: 0 0 18px; }
.archive-list h2 { font-size: 18px; font-weight: 500; }
.archive-list article { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); }
.archive-list article strong { color: var(--gold); font: 12px ui-monospace, monospace; }
.archive-list article p { margin: 4px 0 0; font-size: 10px; }
.archive-list article > span { color: var(--muted); font-size: 10px; }

.toast { position: fixed; z-index: 100; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); left: 16px; width: fit-content; max-width: min(430px, calc(100vw - 32px)); margin: auto; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--ink); background: #2b2d22; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); font-size: 12px; line-height: 1.55; text-align: center; }
.pause-overlay { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; padding: 22px; background: rgba(10, 12, 9, 0.9); backdrop-filter: blur(9px); }
.pause-card { width: 100%; max-width: 390px; padding: 25px 21px; border: 1px solid var(--line-strong); border-radius: 20px; background: var(--surface-raised); text-align: center; }
.pause-card h2 { font-size: 24px; font-weight: 500; }
.pause-card p { font-size: 12px; }
.pause-card .primary-button { width: 100%; margin-top: 9px; }
noscript { display: block; padding: 20px; color: var(--gold); text-align: center; }

@keyframes breathe { 50% { opacity: 0.35; box-shadow: 0 0 0 7px rgba(141, 154, 121, 0.03); } }

@media (min-width: 600px) {
  .app-shell { border-right: 1px solid rgba(223, 186, 117, 0.07); border-left: 1px solid rgba(223, 186, 117, 0.07); background: rgba(17, 20, 15, 0.78); }
  .compass { width: 258px; }
}

@media (max-width: 360px) {
  #app { padding-right: 15px; padding-left: 15px; }
  .hero h1 { font-size: 30px; }
  .campus-card { padding-right: 12px; padding-left: 12px; }
  .card-heading h2 { font-size: 21px; }
  .resume-card { grid-template-columns: 1fr; }
  .resume-card .primary-button { grid-row: auto; grid-column: auto; }
  .compass { width: min(74vw, 244px); }
  .needle { inset: 32px; }
  .result-grid div { padding: 12px 10px; }
}

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