@font-face {
  font-family: "Atlas Montserrat";
  src: url("montserrat-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@property --atlas-sky-top { syntax: "<color>"; inherits: true; initial-value: #dfe9f0; }
@property --atlas-sky { syntax: "<color>"; inherits: true; initial-value: #dfe9f0; }
@property --atlas-snow-edge { syntax: "<color>"; inherits: true; initial-value: #c5dad2; }
@property --atlas-snow-bottom { syntax: "<color>"; inherits: true; initial-value: #edf3ef; }

.pg-campus {
  --atlas-sky-top: #dfe9f0;
  --atlas-sky: #dfe9f0;
  --atlas-snow-edge: #c5dad2;
  --atlas-snow-bottom: #edf3ef;
  /* BelGU 150 anniversary palette. Seasonal gold is reserved for light and progress. */
  --jubilee-mint: #7fcdbb;
  --jubilee-green: #009b68;
  --jubilee-deep: #065f48;
  --jubilee-lilac: #cebdd9;
  --jubilee-violet: #a78dc3;
  --atlas-snow: #f8f7f5;
  --paper: var(--atlas-snow);
  --ink: #353535;
  --muted: #536962;
  --hairline: #d7e2dc;
  --gold: #916532;
  --atlas-display: "Atlas Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --atlas-body: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  font-family: var(--atlas-body);
  background: var(--paper);
  color: var(--ink);
}
.pg-campus *, .pg-campus *::before, .pg-campus *::after { box-sizing: border-box; }
.pg-campus [hidden] { display: none !important; }
.pg-campus :focus-visible { outline: 2px solid #886535; outline-offset: 3px; }
.atlas-top {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 clamp(14px, 2.5vw, 38px); border-bottom: 1px solid var(--hairline);
  position: relative; z-index: 2;
  background: var(--paper);
}
.atlas-brand { justify-self: start; display: block; }
.atlas-brand img { display: block; width: 111px; height: auto; }
.atlas-heading { text-align: center; }
.atlas-heading h1 { font: 700 clamp(22px, 2.7vw, 38px)/1.05 var(--atlas-display); letter-spacing: -.055em; color: var(--jubilee-deep); margin: 0 0 4px; }
.atlas-heading span { display: block; color: var(--jubilee-deep); font-size: 8px; font-weight: 800; letter-spacing: .21em; }
.atlas-top-links { justify-self: end; display: flex; gap: clamp(8px, 1.7vw, 23px); align-items: center; }
.atlas-top-links a { color: var(--ink) !important; font: 650 13px var(--atlas-body); text-decoration: none; }
.atlas-top-links a:hover { text-decoration: underline; }
.atlas-top-links a:not([data-pg-rules-open]) { border: 1px solid var(--hairline); padding: 8px 14px; border-radius: 6px; }
.atlas-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; color: var(--ink); }
.atlas-viewport { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(var(--atlas-sky-top), var(--atlas-sky) var(--atlas-art-top, 0px), var(--atlas-snow-edge) var(--atlas-art-bottom, 100%), var(--atlas-snow-bottom)); touch-action: none; cursor: grab; }
.atlas-viewport.is-moving { cursor: grabbing; }
.atlas-world { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; display: block; overflow: visible; }
.atlas-trail { fill: none; stroke-linecap: round; pointer-events: none; }
.atlas-trail-shadow { stroke: #7691a1; stroke-width: 29; stroke-opacity: .20; }
.atlas-trail-edge { stroke: #918577; stroke-width: 28; stroke-opacity: .5; }
.atlas-trail-light { stroke: #eee4d0; stroke-width: 22; }
.atlas-landmark, .atlas-square, .atlas-pin { cursor: pointer; outline: none; }
.atlas-stop-hit, .atlas-square-hit, .atlas-square-focus, .atlas-hit { fill: transparent; }
.atlas-square:hover .atlas-square-hit, .atlas-square:focus-visible .atlas-square-hit { fill: #fffbefba; }
.atlas-square-focus { stroke: transparent; }
.atlas-square:focus-visible .atlas-square-focus { stroke: #8d682f; stroke-width: 3; stroke-dasharray: 2 5; }
.atlas-map-label { fill: #262e2b; stroke: #fbf8eedc; stroke-width: 4; paint-order: stroke; stroke-linejoin: round; text-anchor: middle; font: 700 18px Georgia, serif; pointer-events: none; }
.atlas-map-label--hub { fill: var(--jubilee-deep); font-size: 35px; font-weight: 500; letter-spacing: -.02em; stroke-width: 4; }
.atlas-square-k { font: 760 9px var(--atlas-body); letter-spacing: .2em; fill: #685637; text-anchor: middle; paint-order: stroke; stroke: #fbf6e4; stroke-width: 2; }
.atlas-pin { --pin: #37714b; --pin-aura: url(#atlas-glow-green); }
.atlas-pin--gold { --pin: #aa6a17; --pin-aura: url(#atlas-glow-gold); }
.atlas-pin--gradient { --pin: #7353b6; --pin-aura: url(#atlas-glow-gradient); }
.atlas-pin-walk { fill: none; stroke: #80948e; stroke-width: 1.3; stroke-dasharray: 2 5; stroke-linecap: round; opacity: 0; pointer-events: none; }
.atlas-pin:is(:hover,:focus-visible,.is-train-here) .atlas-pin-walk { opacity: .9; }
.atlas-pin-track { fill: #eee2ca; stroke: #6b7e79; stroke-width: 1.2; }
.atlas-pin-shadow { fill: #56748b; opacity: .17; }
.atlas-pin-deck { fill: #fdf8ec; stroke: #bcc8c2; stroke-width: 1; }
.atlas-pin-deck-edge { fill: #aaa18e; }
.atlas-pin-planks { fill: none; stroke: #c4c5b7; stroke-width: .8; }
.atlas-pin-base { fill: #fcf6e8; stroke: #889a91; stroke-width: 1; }
.atlas-pin-signpost { fill: none; stroke: #697d73; stroke-width: 2.1; stroke-linecap: round; }
.atlas-pin-trim { stroke: var(--pin); stroke-width: 2; stroke-linecap: round; }
.atlas-pin-aura { fill: var(--pin-aura); opacity: .1; pointer-events: none; }
.atlas-pin image { pointer-events: none; opacity: .86; }
.atlas-pin:is(:hover,:focus-visible,.is-train-here) image { opacity: 1; }
.atlas-pin:is(:hover,:focus-visible) .atlas-pin-aura { opacity: .64; }
.atlas-pin-lock { fill: none; stroke: #344b43; stroke-width: 1.7; display: none; }
.atlas-pin--locked image, .atlas-pin--locked .atlas-pin-aura { display: none; }
.atlas-pin--locked .atlas-pin-base, .atlas-pin--locked .atlas-pin-deck { fill: #e7eeed; }
.atlas-pin--locked .atlas-pin-trim { opacity: .4; }
.atlas-pin--locked .atlas-pin-lock { display: inline; }
.atlas-pin--solved .atlas-pin-base { stroke: #ae772d; stroke-width: 2; }
.atlas-pin-number { fill: #324a43; text-anchor: middle; font: 760 10.5px var(--atlas-body); letter-spacing: .045em; pointer-events: none; }
.atlas-pin:is(:hover,:focus-visible,.is-train-here) .atlas-pin-base { stroke: #516d5d; stroke-width: 2.1; }
.atlas-pin.is-train-here .atlas-pin-base { fill: #f2d999; stroke: #95734e; }
.atlas-pin.is-train-here .atlas-pin-deck { fill: #fff3d6; stroke: #ac8a55; }
.atlas-pin.is-train-here .atlas-pin-aura { opacity: .59; }
.atlas-pin.is-train-next .atlas-pin-base { fill: #f2ecd7; stroke: #8d9d91; }
.atlas-pin.is-train-next .atlas-pin-track { fill: #c5a162; }
.atlas-pin.is-train-here .atlas-pin-track { fill: #ffd17a; }
.atlas-viewport.is-overview .atlas-pegasus-stop, .atlas-viewport.is-overview .atlas-pin-walk { display: none; }
.atlas-viewport.is-overview .atlas-pin-track { fill: var(--pin); stroke: #fff6e3; r: 6px; transform: translateY(-18px); }
.atlas-viewport.is-overview .atlas-pin--locked .atlas-pin-track { fill: #7b908b; }
.atlas-viewport.is-overview .atlas-pin.is-train-here .atlas-pin-track { fill: #ffd17a; r: 9px; }
.atlas-viewport.is-overview .atlas-landmark .atlas-map-label { visibility: hidden; }
.atlas-landmark:focus-visible, .atlas-pin:focus-visible, .atlas-square:focus-visible { outline: none; }
.atlas-controls, .atlas-card, .atlas-journey { position: absolute; background: var(--paper); box-shadow: 0 4px 22px #2132381d; border: 1px solid var(--hairline); border-radius: 12px; }
.atlas-journey { top: 17px; left: 20px; width: min(266px, calc(100% - 40px)); padding: 11px 12px 10px; background: #f9fbf8f5; }
.atlas-tally { display: flex; gap: 6px; align-items: center; padding-bottom: 7px; margin-bottom: 7px; border-bottom: 1px solid #dce0d6; font-size: 10px; color: var(--muted); }
.atlas-tally b { font-weight: 800; font-variant-numeric: tabular-nums; }
.atlas-tally-star { color: var(--gold); }
.atlas-controls { right: 20px; bottom: 16px; display: flex; padding: 3px; }
.atlas-controls button { display: grid; place-items: center; width: 41px; height: 38px; color: var(--ink); border: 0; border-radius: 4px; background: none; font: 600 21px var(--atlas-body); cursor: pointer; }
.atlas-controls button:hover { background: #e5eee9; }
.atlas-controls button:disabled { cursor: default; opacity: .42; background: transparent; }
.atlas-controls svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; }
.atlas-card { left: 20px; bottom: 17px; width: min(330px, calc(100% - 200px)); max-height: calc(100% - 100px); padding: 16px 18px; color: var(--ink); border-top: 3px solid var(--atlas-accent, #b5894d); overflow: auto; user-select: text; }
.atlas-card-k { margin: 0 30px 6px 0; color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.atlas-card h2 { font: 700 24px/1.08 Georgia, serif; margin: 0 17px 8px 0; color: var(--ink); }
.atlas-card p:not(.atlas-card-k) { margin: 0 0 10px; font-size: 12px; line-height: 1.48; }
.atlas-card a { color: #355b4c !important; text-decoration: underline; font-size: 11px; font-weight: 650; }
.atlas-card-close { position: absolute; top: 5px; right: 6px; width: 32px; height: 32px; background: transparent; border: 0; color: var(--ink); font-size: 21px; cursor: pointer; }
.atlas-card .atlas-go { margin-top: 10px; display: block; border: 1px solid #b6b9a7; background: #e6f0ea; color: var(--ink); padding: 7px 10px; border-radius: 4px; font: 650 11px var(--atlas-body); cursor: pointer; }
.atlas-index { display: flex; align-items: center; gap: 18px; min-width: 0; min-height: 68px; padding: 0 20px; border-top: 1px solid var(--hairline); z-index: 2; }
.atlas-route-title { flex: 0 0 auto; display: grid; gap: 4px; }
.atlas-route-title b { color: var(--ink); font: 700 17px Georgia, serif; }
.atlas-route-title span { color: var(--muted); font-size: 10px; }
.atlas-route-flow { display: grid; grid-template-columns: 34px minmax(0, 1fr) 34px; align-items: center; gap: 6px; min-width: 0; width: 100%; }
.atlas-index ol { display: flex; gap: 2px; align-items: stretch; list-style: none; margin: 0; padding: 4px 2px; overflow: auto hidden; scrollbar-width: none; overscroll-behavior-inline: contain; }
.atlas-index ol::-webkit-scrollbar { display: none; }
.atlas-index li { display: flex; flex: 1 0 auto; }
.atlas-index li button { position: relative; display: grid; justify-items: center; align-content: center; gap: 3px; width: 100%; min-height: 47px; padding: 4px 7px; border: 0; border-radius: 5px; color: var(--ink); background: none; white-space: nowrap; font: 600 10px/1.2 var(--atlas-body); cursor: pointer; }
.atlas-order { display: flex; align-items: center; gap: 4px; color: var(--jubilee-deep); font: 700 10px var(--atlas-display); letter-spacing: .07em; }
.atlas-order svg { width: 14px; height: 14px; color: var(--atlas-accent); }
.atlas-order .atlas-order-shield { width: 17px; height: 21px; }
.atlas-index li button[data-station-locked="true"] .atlas-order svg { opacity: .42; filter: grayscale(1); }
.atlas-index li button::after { content: ""; position: absolute; height: 2px; left: 10px; right: 10px; bottom: 3px; border-radius: 2px; background: var(--atlas-accent); opacity: .5; }
.atlas-index li button[data-station-locked="true"] .atlas-order { color: #6f7770; }
.atlas-index li button[data-station-locked="true"]::after { background: #a6ada6; }
.atlas-index li button:hover, .atlas-index li button[aria-current="true"] { background: #e4eee8; }
.atlas-index li button[aria-current="true"]::after { opacity: 1; }
.atlas-route-arrow { display: grid; place-items: center; height: 35px; color: var(--ink); background: transparent; border: 1px solid var(--hairline); border-radius: 5px; cursor: pointer; font: 500 24px/1 var(--atlas-body); }
.atlas-route-arrow:hover { background: #e4eee8; }
.atlas-route-arrow:disabled { opacity: .38; cursor: default; }
@media (max-width: 740px) {
  .pg-campus { grid-template-rows: minmax(0, 1fr) auto; }
  .atlas-top { padding: 0 10px; gap: 6px; }
  .atlas-brand img { width: clamp(46px, 15vw, 77px); }
  .atlas-heading h1 { font-size: clamp(16px, 4.5vw, 27px); white-space: nowrap; }
  .atlas-heading span { font-size: 7px; letter-spacing: .13em; }
  .atlas-top-links { gap: 6px; }
  .atlas-top-links a { font-size: 10px; }
  .atlas-top-links a:not([data-pg-rules-open]) { padding: 6px 7px; }
  .atlas-journey { top: 9px; left: 9px; width: min(226px, calc(100% - 115px)); padding: 8px; }
  .atlas-tally { gap: 4px; margin-bottom: 5px; padding-bottom: 5px; }
  .atlas-controls { right: 9px; bottom: 9px; }
  .atlas-controls button { width: 41px; height: 41px; }
  .atlas-card { left: 9px; bottom: 64px; width: min(325px, calc(100% - 18px)); max-height: min(36%, max(132px, calc(100% - 390px))); }
  .atlas-card-close { position: sticky; top: 0; right: auto; float: right; margin: -9px -12px 0 0; border-radius: 6px; background: var(--paper); z-index: 1; }
  .atlas-index { min-height: 59px; padding: 0 8px env(safe-area-inset-bottom); gap: 0; }
  .atlas-route-title { display: none; }
  .atlas-route-flow { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 4px; }
  .atlas-index li button { padding: 4px 8px; min-height: 43px; }
  .atlas-route-arrow { height: 38px; }
}

.campus-weather, .campus-garland, .campus-sky-specks { pointer-events: none; }
.campus-sky-specks { opacity: .64; animation: campus-glimmer 7s ease-in-out infinite alternate; }
.campus-sky-specks--1 { animation-delay: -2.6s; }
.campus-sky-specks--2 { animation-delay: -4.8s; }
.campus-bulb { fill: #ffdf98; opacity: .96; animation: campus-light 3.4s ease-in-out infinite alternate; }
.campus-bulb--1 { fill: #fff0be; animation-delay: -1.5s; }
.campus-bulb--2 { fill: #f6a879; animation-delay: -2.6s; }
.campus-tree-halo { opacity: .82; animation: campus-glimmer 4s ease-in-out infinite alternate; }
.campus-flakes { fill: #fff; opacity: .46; animation: campus-flurry 20s linear infinite; }
.campus-flakes--1 { animation-duration: 26s; animation-delay: -11s; }
.campus-flakes--2 { animation-duration: 17s; animation-delay: -7s; }
@keyframes campus-glimmer { from { opacity: .42; } to { opacity: 1; } }
@keyframes campus-light { from { opacity: .46; } to { opacity: 1; } }
@keyframes campus-flurry {
  0% { transform: translate(-22px,-43px); opacity: 0; }
  16%, 83% { opacity: .58; }
  100% { transform: translate(31px,103px); opacity: 0; }
}
.atlas-play, [data-atlas-motion][aria-pressed="true"] .atlas-pause { display: none; }
[data-atlas-motion][aria-pressed="true"] .atlas-play { display: inline; }
.pg-campus.is-still :is(.campus-flakes,.campus-tree-halo,.campus-bulb,.campus-sky-specks) { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .pg-campus:not(.motion-enabled) :is(.campus-flakes,.campus-tree-halo,.campus-bulb,.campus-sky-specks) { animation: none; }
}

.atlas-exhibit-shadow { fill: #5d758e; opacity: .15; }
.atlas-station-band { fill: none; stroke: var(--atlas-accent); stroke-width: 2; stroke-linecap: round; opacity: .85; }
.atlas-station-emblem { pointer-events: none; }
.atlas-landmark use { pointer-events: none; }
.atlas-landmark:is(:hover,:focus-visible,.is-selected) .atlas-artifact-bank { stroke: var(--atlas-accent); }
.atlas-faculty circle { fill: #f9f3e3; stroke: var(--atlas-accent); stroke-width: .9; }
.atlas-viewport.is-overview .atlas-faculty { visibility: hidden; }
.atlas-card-faculties { margin: -4px 0 12px; padding-left: 17px; font-size: 11px; line-height: 1.45; }

.atlas-rail-ties { stroke: #998368; stroke-width: 20; stroke-dasharray: 2 13; stroke-linecap: butt; }
.atlas-rail-metal { stroke: #52616a; stroke-width: 13; }
.atlas-rail-gap { stroke: #d9c7a5; stroke-width: 8; }
.atlas-platform { cursor: pointer; }
.atlas-platform:is(:hover,:focus-visible) .atlas-platform-sign { stroke: #e9c16d; stroke-width: 2.5; }
.atlas-index li button.is-train-station { background: #e9efdf; }
.atlas-platform-deck { fill: #f7efde; stroke: #8a7668; stroke-width: 1.4; }
.atlas-platform-posts { fill: none; stroke: #806b59; stroke-width: 2.2; stroke-linecap: round; }
.atlas-platform-sign { fill: var(--station); stroke: #f8f7f5; stroke-width: 1.5; }
.atlas-platform-number-face { fill: var(--jubilee-deep); }
.atlas-platform-number { fill: #fff9eb; text-anchor: middle; font: 800 12px var(--atlas-body); }
.atlas-platform.is-train-current .atlas-platform-deck { fill: #ffe6a1; stroke: #ad7735; stroke-width: 2; }
.atlas-platform.is-train-current .atlas-platform-sign { stroke: #f3c45a; stroke-width: 2.5; }
.atlas-train { pointer-events: none; }
.atlas-train-shadow { fill: #435663; opacity: .38; }
.atlas-train-wheel { fill: #443b47; stroke: #c7a069; stroke-width: 1.6; }
.atlas-train-halo { fill: url(#atlas-glow-gold); opacity: .53; }
.atlas-pin.is-train-pending { opacity: .46; cursor: default; }
.atlas-pin.is-train-pending .atlas-pin-aura { display: none; }
.atlas-pin.is-train-passed .atlas-pin-base { stroke-width: 2.2; }
.atlas-train-panel { color: var(--ink); font-size: 12px; }
.atlas-train-heading { display: flex; align-items: center; gap: 6px; }
.atlas-train-heading > span { color: var(--gold); }
.atlas-train-heading > b { font: 700 14px var(--atlas-display); color: var(--jubilee-deep); }
.atlas-train-panel p { min-height: 16px; margin: 4px 0 0; line-height: 1.35; }
.atlas-train-actions { display: flex; gap: 5px; align-items: center; margin-top: 7px; }
.atlas-train-distance { display: flex; align-items: stretch; gap: 3px; margin: 0; }
.atlas-train-count {
  display: flex; align-items: center; gap: 1px; padding: 0 4px;
  border: 1px solid #cedbd2; border-radius: 5px; color: var(--muted); background: #fff;
}
.atlas-train-count input {
  width: 3ch; min-width: 22px; padding: 0; border: 0; background: none; color: var(--ink);
  font: 700 11px var(--atlas-body); text-align: center; appearance: textfield;
}
.atlas-train-count input::-webkit-inner-spin-button,
.atlas-train-count input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.atlas-train-count span { font-size: 9px; }
.atlas-train-count:has(input:disabled) { opacity: .46; }
.atlas-train-panel button {
  border: 1px solid #d3c6ac; border-radius: 5px; min-height: 30px; padding: 3px 7px;
  color: #29392f; background: #f8f1dd; font: 650 11px var(--atlas-body); cursor: pointer;
}
.atlas-train-panel button:hover { background: #eee2c5; }
.atlas-train-panel button:disabled { opacity: .43; cursor: default; }
.atlas-train-panel [data-atlas-train-next],
.atlas-train-panel [data-atlas-train-ride] { white-space: nowrap; }
.atlas-train-panel [data-atlas-train-ride] { color: #fff; background: var(--jubilee-deep); border-color: var(--jubilee-deep); }
.atlas-train-panel [data-atlas-train-ride]:hover { background: #0b6d54; }
.atlas-train-panel [data-atlas-train-focus] { display: grid; place-items: center; margin-left: auto; width: 29px; min-height: 25px; padding: 2px; }
.atlas-train-panel [data-atlas-train-focus] svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.atlas-train-panel [data-atlas-train-reset] { font-size: 15px; min-width: 30px; }
.atlas-train-panel .atlas-train-refresh { margin-top: 6px; }
.atlas-train-panel.is-train-moving .atlas-train-heading > span { color: #378061; }
@media (max-width: 740px) {
  .atlas-train-panel { font-size: 11px; }
  .atlas-train-actions { gap: 4px; }
  .atlas-train-actions button { font-size: 9px; padding-inline: 5px; }
  .atlas-train-panel [data-atlas-train-reset] { min-width: 27px; }
  .atlas-train-heading > b { font-size: 15px; }
  .atlas-train-panel button { min-height: 33px; }
}


.campus-depth-far { transform: translateX(var(--depth-far, 0px)); }
.campus-depth-wood { transform: translateX(var(--depth-wood, 0px)); }
.campus-depth-buildings { transform: translateX(var(--depth-buildings, 0px)); }
.campus-depth-near { transform: translateX(var(--depth-near, 0px)); }
.campus-depth-buildings .campus-garland { opacity: .42; }
.pg-campus.is-still :is(.campus-depth-far,.campus-depth-wood,.campus-depth-buildings,.campus-depth-near) { transform: none; }
@media (max-width: 360px) {
  .atlas-journey { width: min(226px, calc(100% - 110px)); }
}

.atlas-stage.is-route-overview .atlas-viewport {
  background: linear-gradient(146deg, #e8dfec, var(--paper) 48%, #e0eee7);
}
.atlas-stage.is-route-overview .atlas-world { outline: 1px solid #e0e4dc; box-shadow: 0 15px 48px #7092a12e; }
.atlas-overview-heading, .atlas-overview-key {
  position: absolute; left: 50%; transform: translateX(-50%); text-align: center; color: #35564d;
}
.atlas-overview-heading { top: max(24px, calc(var(--overview-top) * .34)); width: min(650px, 91%); pointer-events: none; }
.atlas-overview-heading span { color: #9b7142; font-size: 10px; font-weight: 760; letter-spacing: .18em; }
.atlas-overview-heading h2 { margin: 5px 0 3px; color: var(--jubilee-deep); font: 700 clamp(25px,4vw,55px)/1.04 var(--atlas-display); letter-spacing: -.055em; }
.atlas-overview-heading p { margin: 5px 0; font-size: 12px; color: #4d665d; }
.atlas-overview-key {
  bottom: max(32px, calc(var(--overview-bottom) * .32));
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 9px 22px;
  width: min(490px, calc(100% - 25px)); font-size: 12px;
}
.atlas-overview-key b { color: #9b7142; }
.atlas-overview-key button {
  background: #fdf6e8; color: #2d5148; border: 1px solid #c8cfc3; border-radius: 5px;
  padding: 7px 12px; font: 650 11px var(--atlas-body); cursor: pointer;
}
.atlas-overview-key button:hover { background: #e9efe3; }
@media (max-width: 950px) {
  .atlas-overview-heading { top: max(65px, calc(var(--overview-top) * .62)); }
}
@media (max-width: 740px) {
  .atlas-overview-heading { top: max(140px, calc(var(--overview-top) * .63)); }
  .atlas-overview-heading h2 { font-size: 29px; }
  .atlas-overview-key { gap: 8px 14px; font-size: 10px; }
}
@media (max-height: 580px) {
  .atlas-overview-heading p { display: none; }
  .atlas-overview-heading { top: max(21px, calc(var(--overview-top) * .40)); }
  .atlas-overview-heading h2 { font-size: 26px; }
  .atlas-overview-key { bottom: max(13px, calc(var(--overview-bottom) * .25)); }
}

.atlas-card-route {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  min-height: 60px; margin: 0 0 12px; padding: 3px 8px 3px 10px;
  border: 1px solid var(--hairline); border-radius: 8px; background: #edf2ec; color: #4c665b; font-size: 10px;
}
.atlas-card-route > div { display: grid; justify-items: start; gap: 6px; }
.atlas-card-route svg { display: block; flex: none; width: 86px; height: 54px; }
.atlas-card-route strong {
  border: 1px solid #c6dcd2; background: #e5efe8; border-radius: 4px;
  padding: 3px 6px; color: var(--jubilee-deep); font-weight: 750; letter-spacing: .04em;
}

.atlas-artifact-bank { fill: #f6f2e9; stroke: #fffaf0; stroke-width: 1.4; }
.atlas-artifact-rim { fill: #b0b8b5; }

.atlas-station-festoon, .atlas-rail-lights, .campus-finale, .campus-jubilee-frieze { pointer-events: none; }
.atlas-rail-glimmer, .atlas-rail-bulb-rims, .atlas-rail-bulbs { fill: none; stroke-linecap: round; stroke-dasharray: .1 29; }
.atlas-rail-glimmer { stroke: #f3bc63; stroke-width: 11; opacity: .20; }
.atlas-rail-bulb-rims { stroke: #dba557; stroke-width: 5.6; }
.atlas-rail-bulbs { stroke: #ffedb8; stroke-width: 3.2; }
.atlas-viewport.is-overview .atlas-rail-glimmer { stroke-width: 16; opacity: .45; }
.atlas-viewport.is-overview .atlas-rail-bulbs { stroke-width: 5; }
.campus-finale-label { fill: #fff3d8; text-anchor: middle; font: 700 24px Georgia, serif; letter-spacing: .035em; }
.campus-terminus-snow { fill: #f7fafa; }
[data-daytime="evening"] .campus-terminus-snow { fill: #d9e1ec; }
[data-daytime="night"] .campus-terminus-snow { fill: #c3cfdf; }

.campus-star-cut { pointer-events: none; }
.campus-constellation-lines, .campus-constellation-trace { fill: none; stroke-linejoin: round; }
.campus-constellation-trace { stroke: #ffd98f; stroke-width: 7; opacity: .16; stroke-linecap: round; }
.campus-constellation-lines { stroke: #fff2d2; stroke-width: 1.5; opacity: .95; stroke-linecap: round; }
.campus-constellation-star { fill: #fffaf0; }
.campus-constellation-rays { fill: #fff0c8; opacity: .85; }
.campus-constellation-sub { fill: #f1e8fb; stroke: #2e2c6a; stroke-width: 2.4; paint-order: stroke; stroke-linejoin: round; text-anchor: middle; font: 500 9.5px var(--atlas-body); letter-spacing: .08em; }
.campus-constellation-name {
  fill: #463759; stroke: #e9e2f0; stroke-width: 2.5; paint-order: stroke;
  text-anchor: middle; font: 700 13px var(--atlas-display); letter-spacing: .23em;
}
.atlas-panorama-sky {
  display: none; position: absolute; z-index: 1; inset: 0 0 auto; height: var(--atlas-panorama-depth, 0px);
  pointer-events: none;
}
.has-panorama-sky .atlas-panorama-sky { display: block; }
.atlas-panorama-aurora { display: block; width: 100%; height: 100%; }
.atlas-panorama-chart {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: min(74%, calc(100% - 560px), 900px); height: calc(100% - 24px);
}
.atlas-viewport .atlas-panorama-chart .campus-constellation-name { font-size: 15px; stroke: none; fill: #ffe9b8; letter-spacing: .42em; }
.atlas-constellation-sparks { opacity: .6; }
.pg-campus:not(.is-still) .campus-constellation-halo { animation: atlas-star-breath 3.6s var(--star-delay) ease-in-out infinite alternate; }
@keyframes atlas-star-breath { from { opacity: .55; } to { opacity: 1; } }
.pg-campus:not(.is-still) .atlas-aurora-ribbon {
  animation: atlas-aurora-unfold 2.7s cubic-bezier(.18,.72,.32,1) both;
  transform-origin: center;
}
.pg-campus:not(.is-still) .campus-constellation-node {
  transform-box: fill-box;
  transform-origin: center;
  animation: atlas-star-ignite .85s var(--star-delay) ease-out both;
}
.pg-campus:not(.is-still) .campus-constellation-art path[pathLength] {
  stroke-dasharray: 1;
  animation: atlas-draw-constellation 1.55s 1.05s cubic-bezier(.3,.7,.32,1) both;
}
.pg-campus:not(.is-still) .atlas-constellation-sparks {
  animation: atlas-constellation-flurry 2s .7s ease-out both;
}
.pg-campus:not(.is-still) .atlas-panorama-chart .campus-constellation-name {
  animation: atlas-constellation-caption .72s 2.15s ease-out both;
}
@keyframes atlas-aurora-unfold {
  0% { opacity: 0; clip-path: inset(0 49%); transform: translateY(22px) scaleY(.72); }
  52% { opacity: 1; }
  100% { opacity: 1; clip-path: inset(0); transform: none; }
}
@keyframes atlas-star-ignite {
  0% { opacity: 0; transform: scale(.18); }
  49% { opacity: 1; transform: scale(1.32); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes atlas-draw-constellation {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes atlas-constellation-flurry {
  0% { opacity: 0; transform: translate(-12px, -14px); }
  38% { opacity: .9; }
  100% { opacity: .6; transform: none; }
}
@keyframes atlas-constellation-caption {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.has-panorama-sky .atlas-overview-heading {
  top: auto; bottom: max(62px, calc(var(--overview-bottom) * .52));
}
.has-panorama-sky .atlas-overview-heading h2 { font-size: clamp(26px, 3vw, 47px); }
@media (max-width: 360px) and (max-height: 720px) {
  .has-panorama-sky .atlas-overview-heading { bottom: max(80px, calc(var(--overview-bottom) * .58)); }
}

.atlas-secret { cursor: pointer; outline: none; }
.atlas-secret-hit { fill: transparent; }
.atlas-secret-shadow { fill: #5b796e; opacity: .14; pointer-events: none; }
.atlas-secret-glint { fill: #b9843f; opacity: .58; pointer-events: none; }
.atlas-secret:is(:hover,:focus-visible) .atlas-secret-hit { stroke: #a27749; stroke-width: 1.3; stroke-dasharray: 2 4; }
.atlas-secret:is(:hover,:focus-visible,.is-found) .atlas-secret-glint { fill: #a76c24; opacity: 1; }
.atlas-viewport.is-overview .atlas-secret { visibility: hidden; }

/* только карта: «Правила» и вход — стеклянными кнопками поверх поля */
.pg-campus .atlas-top-links { position: absolute; top: 14px; right: 14px; z-index: 6; display: flex; gap: 8px; }
.pg-campus .atlas-top-links a { padding: 9px 15px !important; border: 0 !important; border-radius: 12px; background: rgba(255, 255, 255, .82); box-shadow: 0 6px 18px rgba(30, 60, 50, .14), inset 0 0 0 1px rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 13px !important; }
.pg-campus .atlas-top-links a:hover { text-decoration: none; background: #fff; }
@media (max-width: 760px) { .pg-campus .atlas-top-links { top: auto; right: auto; bottom: 26px; left: 9px; } .pg-campus .atlas-top-links a { padding: 7px 11px !important; font-size: 12px !important; } }
.campus-city .campus-city-cross { fill: none; stroke: #cbbadf; stroke-width: 3; stroke-linecap: round; }
/* знак станции: медальон с логотипом института (звезда из гайдбука факультетов) на столбе */
.atlas-sign-shadow { fill: #5d758e; opacity: .18; }
.atlas-sign-pole { fill: #2f4f49; }
.atlas-sign-halo { fill: var(--atlas-accent); opacity: .22; }
.atlas-sign-plate { fill: #fffdf8; stroke: var(--atlas-accent); stroke-width: 7; filter: drop-shadow(0 6px 8px rgba(40, 70, 80, .22)); }
.atlas-sign-ring { fill: none; stroke: var(--atlas-accent); stroke-width: 1.5; stroke-dasharray: 3 4; opacity: .7; }
.atlas-sign-snow { fill: #fff; opacity: .95; }
.atlas-sign-mark { transform-box: fill-box; transform-origin: center; transition: transform .6s cubic-bezier(.3,1.5,.5,1); }
.atlas-landmark:hover .atlas-sign-mark, .atlas-landmark:focus-visible .atlas-sign-mark { transform: rotate(30deg) scale(1.12); }
.atlas-shield-rim { fill: #fffdf8; stroke: #fffdf8; stroke-width: 2.6; stroke-linejoin: round; filter: drop-shadow(0 4px 5px rgba(10, 34, 45, .28)); }
.atlas-landmark:hover .atlas-shield-sign .atlas-sign-mark,
.atlas-landmark:focus-visible .atlas-shield-sign .atlas-sign-mark { transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .atlas-sign-halo { animation: atlas-sign-pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes atlas-sign-pulse { 50% { transform: scale(1.14); opacity: .1; } }
  .pg-campus.is-still .atlas-sign-halo { animation: none; }
}

/* ── Время суток: data-daytime у .atlas-stage (morning | day | evening | night).
   Днём пейзаж как был; вечером и ночью сверху ложится дымка, а свет (окна, гирлянды, фонари) лежит над ней. */
.campus-sky, .campus-veil, .campus-win, .campus-win2, .campus-stars, .campus-moon, .campus-lamps, .campus-tree-lights,
.campus-plaza-lamp, .campus-city-glow, .campus-sky-arcs { transition: opacity var(--atlas-daytime-duration) ease-in-out; }
.campus-sky, .campus-veil, .campus-win, .campus-win2, .campus-stars, .campus-moon, .campus-lamps, .campus-tree-lights, .campus-plaza-lamp { opacity: 0; }
.campus-city-glow { opacity: .3; }
.campus-stars { fill: #fff6dc; }
[data-daytime="morning"] :is(.campus-sky--morning, .campus-veil--morning) { opacity: 1; }
[data-daytime="morning"] .campus-win { opacity: .45; }
[data-daytime="morning"] :is(.campus-lamps, .campus-plaza-lamp) { opacity: .35; }
[data-daytime="evening"] :is(.campus-sky--evening, .campus-veil--evening, .campus-win, .campus-lamps, .campus-plaza-lamp, .campus-city-glow) { opacity: 1; }
[data-daytime="evening"] :is(.campus-tree-lights, .campus-win2) { opacity: .7; }
[data-daytime="evening"] .campus-stars { opacity: .35; }
[data-daytime="evening"] .campus-sky-arcs { opacity: .25; }
[data-daytime="night"] :is(.campus-sky--night, .campus-veil--night, .campus-win, .campus-win2, .campus-stars, .campus-moon, .campus-lamps, .campus-tree-lights, .campus-plaza-lamp, .campus-city-glow) { opacity: 1; }
[data-daytime="night"] .campus-sky-arcs { opacity: .08; }
[data-daytime="night"] .campus-sky-specks { opacity: .2; }
/* На крупном масштабе корпуса и площадь остаются векторными. */
:is(.campus-facade-snow, .campus-building-footing, .campus-plaza) { filter: url(#campus-scene-tone); }
.campus-phase-tone {
  flood-color: var(--campus-tone);
  flood-opacity: var(--campus-tone-strength);
  transition: flood-color var(--atlas-daytime-duration) ease-in-out,
    flood-opacity var(--atlas-daytime-duration) ease-in-out;
}
.atlas-stage[data-daytime="evening"] { --fir-a: #446473; --fir-b: #28505f; --fir-c: #1a4652; --pine-trunk: #56516a; --pine-snow: #9099b8; --pine-base: #8492b3; --lantern: #2c3f58; --bg-a: #808fa5; --bg-b: #939ab1; --bg-b2: #9b9fb8; }
.atlas-stage[data-daytime="night"] { --fir-a: #28475b; --fir-b: #15394b; --fir-c: #0c3242; --pine-trunk: #343954; --pine-snow: #596b90; --pine-base: #51668c; --lantern: #1b2d4b; --bg-a: #4f6481; --bg-b: #5c6c8a; --bg-b2: #616f90; }
.campus-ground-tint { transition: opacity var(--atlas-daytime-duration) ease-in-out; }
[data-daytime="evening"] .campus-ground-tint { opacity: .5; }
[data-daytime="night"] .campus-ground-tint { opacity: .3; }
/* подписи и фон под картой в темноте */
.atlas-stage {
  --atlas-daytime-duration: 0ms;
  --campus-tone: #2a2a64;
  --campus-tone-strength: 0;
  transition: --atlas-sky-top var(--atlas-daytime-duration) ease-in-out,
    --atlas-sky var(--atlas-daytime-duration) ease-in-out,
    --atlas-snow-edge var(--atlas-daytime-duration) ease-in-out,
    --atlas-snow-bottom var(--atlas-daytime-duration) ease-in-out;
}
.pg-campus.is-ready:not(.is-still) .atlas-stage { --atlas-daytime-duration: 1100ms; }
.atlas-stage[data-daytime="morning"] { --atlas-sky-top: #aebbe0; --atlas-sky: #aebbe0; }
.atlas-stage[data-daytime="day"] { --atlas-sky-top: #cfe7ee; --atlas-sky: #cfe7ee; }
.atlas-stage[data-daytime="evening"] {
  --atlas-sky-top: #1d2a66; --atlas-sky: #1d2a66; --atlas-snow-edge: #8c93b4; --atlas-snow-bottom: #8c93b4;
  --campus-tone: #2a2a64; --campus-tone-strength: .42;
}
.atlas-stage[data-daytime="night"] {
  --atlas-sky-top: #0a1434; --atlas-sky: #0a1434; --atlas-snow-edge: #5b6788; --atlas-snow-bottom: #5b6788;
  --campus-tone: #0c173a; --campus-tone-strength: .6;
}
.atlas-stage[data-daytime="night"].has-panorama-sky { --atlas-sky-top: #050b24; }
.atlas-stage[data-daytime="night"] .atlas-map-label { fill: #fff6e2; stroke: #1a24508c; stroke-width: 3; }
.atlas-stage[data-daytime="night"] .atlas-square-k { fill: #f5d9a0; stroke: none; }
.atlas-stage[data-daytime="night"] .campus-constellation-name { fill: #f4e7c4; stroke: #0d1840; }

/* северное сияние и падающие звёзды: вечером бледнее, ночью ярче; на телефоне — статично и бледно */
.campus-nightsky { opacity: 0; transition: opacity var(--atlas-daytime-duration) ease-in-out; }
[data-daytime="evening"] .campus-nightsky { opacity: .5; }
[data-daytime="night"] .campus-nightsky { opacity: 1; }
.campus-aurora-band { transform-box: fill-box; transform-origin: 50% 100%; }
.campus-meteor { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .pg-campus:not(.is-still) .campus-aurora-band { animation: campus-aurora var(--au-d) var(--au-dl) ease-in-out infinite alternate; }
  .pg-campus:not(.is-still) .campus-meteor { animation: campus-meteor var(--mt-d) var(--mt-dl) ease-in infinite; }
}
@keyframes campus-aurora { 0% { transform: translateX(-60px) scaleY(.85); opacity: .55; } 50% { opacity: 1; } 100% { transform: translateX(80px) scaleY(1.12); opacity: .7; } }
@keyframes campus-meteor { 0%, 88% { opacity: 0; transform: translateX(-60px); } 90% { opacity: 1; } 97% { opacity: .9; } 100% { opacity: 0; transform: translateX(260px); } }
.atlas-stage:is([data-daytime="evening"], [data-daytime="night"]) .atlas-overview-key span { color: #e9e4f5; }
.atlas-stage:is([data-daytime="evening"], [data-daytime="night"]) .atlas-overview-key b { color: #ffd77e; }

/* переключатель времени суток (тестовый период) */
.atlas-daytime { position: absolute; z-index: 3; top: 112px; right: 20px; display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--paper); border: 1px solid var(--hairline); box-shadow: 0 4px 22px #2132381d; }
.atlas-daytime button { border: 0; border-radius: 9px; padding: 6px 9px; background: none; color: var(--ink); font: 650 12px var(--atlas-body); cursor: pointer; }
.atlas-daytime button:hover { background: #eef0f3; }
.atlas-daytime button[aria-pressed="true"] { background: var(--jubilee-deep, #0d5a43); color: #fff; }
@media (max-width: 760px) { .atlas-daytime { top: 160px; right: 9px; } .atlas-daytime button { padding: 5px 6px; font-size: 10.5px; } }

/* солнце и луна по времени суток */
/* солнце и луна стоят на одном месте неба — над началом маршрута, правее площади */
.campus-celestial-track { transform: translateX(1200px); }
.campus-sun, .campus-moon { opacity: 0; transition: opacity var(--atlas-daytime-duration) ease-in-out; }
.atlas-stage[data-daytime="morning"] .campus-sun--morning,
.atlas-stage[data-daytime="day"] .campus-sun--day,
.atlas-stage[data-daytime="evening"] .campus-sun--evening,
.atlas-stage[data-daytime="night"] .campus-moon { opacity: 1; }
/* город вечером и ночью — заранее перекрашенные плитки */
.campus-cityphase { opacity: 0; transition: opacity var(--atlas-daytime-duration) ease-in-out; }
[data-daytime="evening"] .campus-cityphase--evening, [data-daytime="night"] .campus-cityphase--night { opacity: 1; }

/* шлифовка */
.atlas-sign-mark.is-pale { filter: brightness(.72) saturate(1.6); }
.campus-star-cut { transition: opacity var(--atlas-daytime-duration) ease-in-out; }
[data-daytime="evening"] .campus-star-cut { opacity: .5; }
[data-daytime="night"] .campus-star-cut { opacity: .32; }
.atlas-stage:is([data-daytime="evening"], [data-daytime="night"]) .atlas-map-label--hub { fill: #fff6e2; stroke: #1a24508c; stroke-width: 3; }
.atlas-stage:is([data-daytime="evening"], [data-daytime="night"]) .atlas-square-k { fill: #f5d9a0; stroke: none; }

/* подвал вечером и ночью — без фильтра, просто темнее */
.campus-footer, .campus-jubilee-frieze, .campus-footer-snow { transition: opacity var(--atlas-daytime-duration) ease-in-out, fill var(--atlas-daytime-duration) ease-in-out; }
[data-daytime="evening"] .campus-footer { fill: #8d93b2; } [data-daytime="evening"] .campus-footer-snow { fill: #a7acc6; } [data-daytime="evening"] .campus-jubilee-frieze { opacity: .55; }
[data-daytime="night"] .campus-footer { fill: #4c587c; } [data-daytime="night"] .campus-footer-snow { fill: #66729a; } [data-daytime="night"] .campus-jubilee-frieze { opacity: .35; }

[data-daytime="evening"] .campus-footer-cap { fill: #b0b5cd; } [data-daytime="evening"] .campus-footer-icicles { fill: #a9b0c9; }
[data-daytime="night"] .campus-footer-cap { fill: #75809f; } [data-daytime="night"] .campus-footer-icicles { fill: #6e7999; }
.campus-footer-glow { opacity: .35; transition: opacity var(--atlas-daytime-duration) ease-in-out; } [data-daytime="evening"] .campus-footer-glow { opacity: .8; } [data-daytime="night"] .campus-footer-glow { opacity: 1; }

/* небо над картой: вечером и ночью — созвездие Пегаса, утром и днём — летящий золотой Пегас над облаками */
.atlas-panorama-day { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: min(74%, calc(100% - 560px), 900px); height: calc(100% - 24px); }
.atlas-day-title { fill: #8a5a28; stroke: #fff8ea; stroke-width: 3; paint-order: stroke; text-anchor: middle; font: 700 19px var(--atlas-display); letter-spacing: .32em; }
.atlas-day-sub { fill: #3f5f57; stroke: #fff8ea; stroke-width: 2.5; paint-order: stroke; text-anchor: middle; font: 500 11px var(--atlas-body); letter-spacing: .06em; }
.atlas-panorama-sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 75% at 50% 52%, #24296a99, transparent 80%);
  opacity: 0;
  transition: opacity var(--atlas-daytime-duration) ease-in-out;
}
.atlas-panorama-sky::before, .atlas-panorama-aurora {
  -webkit-mask-image: linear-gradient(#000 70%, transparent);
  mask-image: linear-gradient(#000 70%, transparent);
}
[data-daytime="evening"] .atlas-panorama-sky::before { opacity: .8; }
[data-daytime="night"] .atlas-panorama-sky::before { opacity: 1; }
:is(.atlas-panorama-chart, .atlas-panorama-aurora, .atlas-panorama-day) {
  transition: opacity var(--atlas-daytime-duration) ease-in-out;
}
:is([data-daytime="morning"], [data-daytime="day"]) :is(.atlas-panorama-chart, .atlas-panorama-aurora),
:is([data-daytime="evening"], [data-daytime="night"]) .atlas-panorama-day { opacity: 0; }
:is([data-daytime="morning"], [data-daytime="day"]) :is(.atlas-panorama-chart, .atlas-panorama-aurora) *,
:is([data-daytime="evening"], [data-daytime="night"]) .atlas-panorama-day * { animation-play-state: paused; }
/* дневное небо: три Пегаса конкурса (зелёный, золотистый, градиентный) мягко парят, под ними — призыв */
.atlas-day-peg { transform-box: fill-box; transform-origin: center; }
.atlas-day-pts text { fill: #8a5a28; stroke: #fff8ea; stroke-width: 3; paint-order: stroke; text-anchor: middle; font: 800 17px var(--atlas-display); }
.atlas-day-title { letter-spacing: .18em; }
@media (prefers-reduced-motion: no-preference) {
  .pg-campus:not(.is-still) .atlas-day-peg { animation: atlas-day-float 4.8s calc(var(--i) * -1.6s) ease-in-out infinite alternate; }
  .pg-campus:not(.is-still) .atlas-day-caption { animation: atlas-day-caption 1.2s 1.5s ease-out both; }
}
@keyframes atlas-day-float { from { translate: 0 6px; rotate: -2deg; } to { translate: 0 -6px; rotate: 2deg; } }
@keyframes atlas-day-caption { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 950px) {
  .atlas-panorama-sky :is(.atlas-panorama-chart, .atlas-panorama-day, .atlas-panorama-aurora) {
    top: var(--atlas-panorama-inset, 140px);
    height: max(0px, calc(100% - var(--atlas-panorama-inset, 140px) - 8px));
  }
  .atlas-panorama-chart { width: 92%; }
  .atlas-panorama-day { width: min(200%, 850px); }
  .atlas-panorama-aurora { position: absolute; left: 0; }
  .is-side-panorama .atlas-panorama-sky :is(.atlas-panorama-chart, .atlas-panorama-day, .atlas-panorama-aurora) {
    left: var(--atlas-panorama-side);
    width: calc(100% - var(--atlas-panorama-side) - 10px);
    transform: none;
  }
}

/* производительность: на телефонах и планшетах постоянные «живые» анимации выключены (каждая заставляет
   перерисовывать огромную карту), остаются только разовые появления; при перетаскивании — пауза везде */
@media (max-width: 900px), (pointer: coarse) {
  .pg-campus :is(.campus-bulb, .campus-sky-specks, .campus-flakes, .campus-star-tw,
    .campus-aurora-band, .campus-meteor,
    .atlas-sign-halo, .campus-tree-halo, .campus-constellation-halo, .atlas-day-peg) { animation: none !important; }
  .pg-campus .campus-weather { display: none; }
  .pg-campus .campus-meteors { display: none !important; }
}
.atlas-viewport.is-moving :is(.campus-bulb, .campus-sky-specks, .campus-flakes, .campus-star-tw,
  .campus-aurora-band, .campus-meteor, .atlas-sign-halo, .campus-tree-halo) { animation-play-state: paused; }

/* появление трёх Пегасов: по очереди поднимаются снизу с мягким «пружинным» масштабом, золотой — последним
   со вспышкой; затем вспыхивают баллы и проявляется подпись. Разово — и на телефонах тоже */
.atlas-day-peg-in, .atlas-day-pts text { transform-box: fill-box; transform-origin: 50% 80%; }
@media (prefers-reduced-motion: no-preference) {
  .pg-campus:not(.is-still) .atlas-day-peg-in { animation: atlas-peg-in .9s calc(.15s + var(--o) * .28s) cubic-bezier(.22,1.3,.36,1) both; }
  .pg-campus:not(.is-still) .atlas-day-peg-in.is-gold circle { animation: atlas-peg-flash 1.4s .85s ease-out both; transform-box: fill-box; transform-origin: center; }
  .pg-campus:not(.is-still) .atlas-day-pts text { animation: atlas-peg-pts .5s calc(1s + var(--o) * .18s) cubic-bezier(.3,1.6,.5,1) both; }
}
@keyframes atlas-peg-in { 0% { opacity: 0; transform: translateY(46px) scale(.55); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
@keyframes atlas-peg-flash { 0% { opacity: 0; transform: scale(.3); } 40% { opacity: 1; transform: scale(1.35); } 100% { opacity: 1; transform: none; } }
@keyframes atlas-peg-pts { 0% { opacity: 0; transform: scale(.2); } 100% { opacity: 1; transform: none; } }

/* На компактном экране не резервируем слой на всю ширину маршрута. */
@media (max-width: 900px), (pointer: coarse) {
  .pg-campus :is(.campus-depth-far, .campus-depth-wood, .campus-depth-buildings, .campus-depth-near) { transform: none !important; }
}

/* телефоны: оформление — готовыми картинками (atlas/tiles), векторный слой скрыт */
.campus-tiles { display: none; }
.pg-campus.is-tiled .campus-tiles { display: inline; }
.pg-campus.is-tiled .campus-bake { display: none; }

.atlas-card-meter { display: block; height: 5px; margin-top: 7px; border-radius: 3px; background:
  linear-gradient(90deg, #d9a551 calc(var(--mine) * 100%), transparent 0), linear-gradient(90deg, var(--atlas-accent) calc(var(--open) * 100%), #dfe6e1 0); }

/* ═══════════ Версия 3: единый «стеклянный» интерфейс, понятные состояния Пегасов, мягкие появления ═══════════ */
.pg-campus { --glass: #fbfcfaf0; --glass-line: #ffffffb0; --shadow: 0 10px 30px #1d2f3a24, 0 1px 0 #ffffffc0 inset; --ease: cubic-bezier(.22, 1, .36, 1); }
.atlas-controls, .atlas-card, .atlas-journey, .atlas-daytime { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px; box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3); }
.pg-campus .atlas-top-links a { border: 1px solid var(--glass-line) !important; border-radius: 999px !important; background: var(--glass); box-shadow: var(--shadow); padding: 9px 18px !important;
  font: 700 13px var(--atlas-body) !important; text-decoration: none !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .25s var(--ease), background .2s; }
.pg-campus .atlas-top-links a:hover { transform: translateY(-2px); background: #fff; }
.pg-campus .atlas-top-links a:last-child { background: var(--jubilee-deep); color: #fff !important; border-color: #0a7458 !important; }

/* панель поезда */
.atlas-journey { width: min(286px, calc(100% - 40px)); padding: 13px 14px 12px; border-radius: 18px; transition: width .35s var(--ease), padding .35s var(--ease); }
.atlas-tally { border-bottom: 0; margin-bottom: 6px; padding: 0 30px 0 0; font-size: 11px; }
.atlas-tally b { font-size: 13px; color: var(--jubilee-deep); }
.atlas-tally-bar { display: block; height: 4px; margin-bottom: 10px; border-radius: 3px; background: linear-gradient(90deg, var(--jubilee-green) calc(var(--p) * 100%), #dfe7e2 0); }
.atlas-train-heading > b { font-size: 15px; }
.atlas-train-panel p { color: var(--muted); }
.atlas-train-panel button { border-radius: 10px; border-color: #e3d6b6; background: #fbf4df; transition: transform .2s var(--ease), background .2s; }
.atlas-train-panel button:hover:not(:disabled) { transform: translateY(-1px); }
.atlas-train-panel .atlas-train-refresh { width: 100%; min-height: 34px; margin-top: 8px; font-weight: 700; }
.atlas-journey-fold { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 26px; height: 26px; border: 0; border-radius: 50%; background: #e9efea; color: var(--ink); cursor: pointer; transition: transform .3s var(--ease), background .2s; }
.atlas-journey-fold:hover { background: #dbe6df; }
.atlas-journey-fold svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.atlas-journey.is-folded { width: auto; padding: 9px 44px 9px 12px; }
.atlas-journey.is-folded .atlas-journey-fold { transform: rotate(180deg); top: 5px; }
.atlas-journey.is-folded :is(.atlas-train-panel, .atlas-tally-bar) { display: none; }
.atlas-journey.is-folded .atlas-tally { margin: 0; padding: 0; }

/* кнопки управления */
.atlas-controls { padding: 5px; gap: 2px; border-radius: 18px; }
.atlas-controls button { border-radius: 12px; transition: background .2s, transform .2s var(--ease); }
.atlas-controls button:hover:not(:disabled) { background: #e3eee8; transform: translateY(-1px); }
.atlas-controls button:active:not(:disabled) { transform: scale(.92); }

/* карточка станции */
.atlas-card { border-top: 0; border-radius: 20px; padding: 0 20px 18px; overflow: auto; }
.atlas-card::before { content: ""; display: block; height: 6px; margin: 0 -20px 16px; background: linear-gradient(90deg, var(--atlas-accent, #b5894d), color-mix(in srgb, var(--atlas-accent, #b5894d) 35%, #fff)); }
.atlas-card:not([hidden]) { animation: atlas-card-in .45s var(--ease) both; }
@keyframes atlas-card-in { from { opacity: 0; transform: translateY(18px) scale(.97); } }
.atlas-card h2 { font: 700 23px/1.12 Georgia, serif; margin: 0 22px 10px 0; letter-spacing: -.01em; }
.atlas-card-k { color: color-mix(in srgb, var(--atlas-accent, #b5894d) 55%, #26332e); font-size: 10px; letter-spacing: .12em; margin-bottom: 8px; }
.atlas-card-close { top: 12px; right: 10px; border-radius: 50%; background: #edf1ee; font-size: 18px; width: 30px; height: 30px; transition: background .2s, transform .2s var(--ease); }
.atlas-card-close:hover { background: #dfe7e2; transform: rotate(90deg); }
.atlas-card-route { display: grid; grid-template-columns: 1fr 64px; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border: 0; border-radius: 14px;
  background: color-mix(in srgb, var(--atlas-accent, #b5894d) 11%, #fff); }
.atlas-card-route strong { display: block; font: 700 13px var(--atlas-display); color: var(--ink); background: none; border: 0; padding: 0; }
.atlas-card-route span { display: block; margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.atlas-card-route svg { width: 64px; height: 44px; }
.atlas-card-faculties { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: -2px 0 12px; }
.atlas-card-faculties li { padding: 4px 9px; border-radius: 999px; background: #eef2ef; font-size: 11px; line-height: 1.25; }
.atlas-card .atlas-go { width: 100%; margin-top: 12px; padding: 11px 14px; border: 0; border-radius: 12px; background: var(--jubilee-deep); color: #fff; font: 700 13px var(--atlas-body);
  transition: transform .2s var(--ease), background .2s; }
.atlas-card .atlas-go:hover { background: #0a7458; transform: translateY(-1px); }

/* полоса маршрута */
.atlas-index { background: #fbfcfa; min-height: 72px; }
@media (max-width: 760px) { .pg-rules-slide.is-field .pg-rules-shot { height: auto; } }
.atlas-index li button { border-radius: 12px; min-height: 50px; padding: 5px 11px; font-size: 11px; transition: background .2s, transform .2s var(--ease); }
.atlas-index li button:hover { transform: translateY(-1px); }
.atlas-index li button::after { height: 3px; left: 14px; right: 14px; bottom: 4px; transform: scaleX(.35); transform-origin: center; transition: transform .35s var(--ease), opacity .2s; }
.atlas-index li button[aria-current="true"] { background: color-mix(in srgb, var(--atlas-accent) 14%, #fff); }
.atlas-index li button[aria-current="true"]::after, .atlas-index li button.is-train-station::after { transform: none; opacity: 1; }
.atlas-index li button[data-station-locked="true"] { color: #8a928c; }
.atlas-route-arrow { border-radius: 12px; height: 40px; transition: background .2s; }
.atlas-route-flow { position: relative; }
.atlas-route-flow::before, .atlas-route-flow::after { content: ""; position: absolute; top: 4px; bottom: 4px; width: 34px; pointer-events: none; opacity: 0; transition: opacity .25s; z-index: 1; }
.atlas-route-flow::before { left: 40px; background: linear-gradient(90deg, #fbfcfa, transparent); }
.atlas-route-flow::after { right: 40px; background: linear-gradient(270deg, #fbfcfa, transparent); }
.atlas-route-flow.has-more-left::before, .atlas-route-flow.has-more-right::after { opacity: 1; }

/* метки Пегасов: открыт — цветной и приподнимается, спит — бледный с замком, найден — золотая галочка */
.atlas-pin-number { font: 800 12.5px var(--atlas-body); letter-spacing: .03em; }
.atlas-pin-base { stroke-width: 1.2; }
.atlas-pin image { opacity: 1; }
.atlas-tracker-compass { pointer-events: none; }
.atlas-pin--locked .atlas-tracker-compass { opacity: .8; }
.atlas-pin--open .atlas-pin-base { fill: #fffdf6; stroke: var(--pin); stroke-width: 1.6; }
.atlas-pin--open .atlas-pin-number { fill: var(--pin); }
.atlas-pin--open .atlas-pin-aura { opacity: .34; }
.atlas-pin--locked .atlas-pin-number { fill: #8793a0; }
.atlas-pin--locked .atlas-pin-base { fill: #eef1f3; stroke: #c3ccd3; }
.atlas-pin--locked .atlas-pin-signpost { stroke: #a9b3ba; }
.atlas-pin-done { display: none; }
.atlas-pin:is(.atlas-pin--solved, .atlas-pin--pending, .atlas-pin--approved) .atlas-pin-done { display: inline; }
.atlas-pin-done circle { fill: #e2b04e; stroke: #fff8e2; stroke-width: 1.6; }
.atlas-pin-done path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.atlas-pin--solved .atlas-pin-done circle { fill: #327264; }
.atlas-pin--pending .atlas-pin-done circle { fill: #905822; }
.atlas-pin-clock, .atlas-pin--pending .atlas-pin-check { display: none; }
.atlas-pin--pending .atlas-pin-clock { display: inline; }
.atlas-pin--approved .atlas-pin-base { fill: #fdf1cf; stroke: #c9993f; stroke-width: 1.6; }
.atlas-pin--approved .atlas-pin-number { fill: #8a6220; }
.atlas-pin--approved .atlas-pin-aura { opacity: .5; fill: url(#atlas-glow-gold); }
.atlas-stage:is([data-daytime="evening"], [data-daytime="night"]) .atlas-pin--open .atlas-pin-aura { opacity: .6; }

/* знак станции: живее отклик */
.atlas-sign-disc { transition: translate .45s var(--ease), scale .45s var(--ease); transform-box: fill-box; transform-origin: 50% 100%; }
.atlas-landmark:is(:hover, :focus-visible, .is-selected) .atlas-sign-disc { translate: 0 -6px; scale: 1.06; }

@media (prefers-reduced-motion: reduce) { .pg-campus *, .pg-campus *::before, .pg-campus *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; } }

@media (max-width: 760px) {
  .atlas-journey { width: min(250px, calc(100% - 18px)); border-radius: 16px; }
  .atlas-card { border-radius: 18px; padding: 0 16px 14px; max-height: min(44%, max(150px, calc(100% - 330px))); }
  .atlas-card::before { margin: 0 -16px 12px; }
  .atlas-card h2 { font-size: 20px; }
  .atlas-card-close { position: absolute; float: none; margin: 0; top: 12px; right: 8px; background: #edf1ee; }
  .atlas-index { min-height: 62px; }
  .atlas-index li button { padding: 4px 10px; min-height: 46px; }
  .atlas-route-flow::before { left: 34px; } .atlas-route-flow::after { right: 34px; }
  .pg-campus .pg-modal { align-items: end; }
  .pg-campus .atlas-top-links a { padding: 8px 14px !important; }
}
.pg-campus .pg-game-kind { justify-self: center; }
.atlas-index li button[data-station-locked="true"] { color: #6d776f; }

@media (max-width: 760px) {
  .pg-campus .atlas-top-links { top: 9px; right: 9px; bottom: auto; left: auto; flex-direction: column; align-items: flex-end; gap: 6px; }
  .pg-campus .atlas-top-links a { padding: 7px 13px !important; font-size: 12px !important; }
  .atlas-journey { width: min(250px, calc(100% - 110px)); }
  .atlas-controls button { width: 40px; height: 40px; }
}

.atlas-card p.atlas-card-sub { margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 760px) { .atlas-card :is(.atlas-card-sub, .atlas-card-faculties) { display: none; } .atlas-card-route { margin-bottom: 10px; } }
.pg-card-refresh { display: grid; gap: 6px; margin-top: 7px; }
.pg-card-refresh p { margin: 0; font-size: 13px; }
.pg-card-refresh p:empty, .atlas-refresh-status:empty { display: none; }
[data-pg-map-refresh][aria-disabled="true"] { opacity: .7; cursor: progress; }
.atlas-tally { flex-wrap: wrap; }
@media (max-width: 760px) { .atlas-journey.is-folded { max-width: calc(100% - 110px); } }
@media (max-width: 760px) { .pg-campus .pg-modal-box { padding: 20px 20px calc(22px + env(safe-area-inset-bottom)); max-height: 88dvh; } }
@media (max-width: 760px) { .atlas-daytime { top: 140px; } }
@media (min-width: 761px) { .atlas-daytime { top: 116px; } }
.atlas-landmark { --festive: color-mix(in srgb, var(--atlas-accent) 72%, #1d2b4a); }


/* Табло и панель прогресса используют одну палитру времени суток. */
.atlas-stage {
  --cd-enamel: #f7ecd2;
  --cd-rim: #b89a62;
  --cd-ink: #665131;
  --cd-number: #0e5844;
  --cd-units: #466157;
}
.atlas-countdown {
  position: absolute; z-index: 4; top: 17px; left: 50%; transform: translateX(-50%);
  display: grid; gap: 10px; width: 362px; padding: 12px 19px;
  isolation: isolate; box-sizing: border-box; pointer-events: none;
  border: 1px solid var(--cd-rim); border-radius: 10px;
  background: linear-gradient(145deg, #fff9, transparent 76%) var(--cd-enamel);
  box-shadow: 0 9px 24px #243c352c,
    inset 0 0 0 3px color-mix(in srgb, var(--cd-enamel) 42%, white),
    inset 0 0 0 4px color-mix(in srgb, var(--cd-rim) 40%, transparent);
  transition: background-color var(--atlas-daytime-duration) ease-in-out,
    border-color var(--atlas-daytime-duration) ease-in-out, box-shadow var(--atlas-daytime-duration) ease-in-out;
}
.atlas-stage[data-daytime="morning"] {
  --cd-enamel: #f3dfd4;
  --cd-rim: #ba9278;
  --cd-ink: #634937;
  --cd-number: #195244;
  --cd-units: #415e55;
}
.atlas-stage[data-daytime="evening"] {
  --cd-enamel: #eddaae;
  --cd-rim: #ad844d;
  --cd-ink: #5d4326;
  --cd-number: #174839;
  --cd-units: #414e36;
}
.atlas-stage[data-daytime="night"] {
  --cd-enamel: #d0deec;
  --cd-rim: #899fb5;
  --cd-ink: #364b62;
  --cd-number: #193e60;
  --cd-units: #40556a;
}
.atlas-stage .atlas-journey {
  background: linear-gradient(145deg, #fff9, transparent 76%) var(--cd-enamel);
  border-color: var(--cd-rim);
  transition: width .35s var(--ease), padding .35s var(--ease),
    background-color var(--atlas-daytime-duration) ease-in-out,
    border-color var(--atlas-daytime-duration) ease-in-out;
}
.atlas-stage .atlas-journey :is(.atlas-tally, .atlas-train-panel p) { color: var(--cd-ink); }
.atlas-stage .atlas-journey :is(.atlas-tally b, .atlas-train-heading > b, a.atlas-city-link) { color: var(--cd-number); }
.atlas-stage .atlas-journey .atlas-tally-bar {
  background: linear-gradient(90deg, var(--cd-number) calc(var(--p) * 100%), color-mix(in srgb, var(--cd-rim) 30%, transparent) 0);
}
.atlas-stage .atlas-journey-fold { color: var(--cd-number); background: color-mix(in srgb, var(--cd-rim) 20%, white); }
.atlas-stage .atlas-journey-fold:hover { background: color-mix(in srgb, var(--cd-rim) 36%, white); }

.atlas-countdown::before, .atlas-countdown::after {
  content: ""; position: absolute; top: 11px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--cd-rim); box-shadow: 0 0 0 1px #fffefa;
}
.atlas-countdown::before { left: 10px; }
.atlas-countdown::after { right: 10px; }
.atlas-cd-partner { display: grid; justify-items: center; gap: 6px; }
.atlas-cd-partner span {
  color: var(--cd-ink); font: 700 9px/1.1 var(--atlas-body); letter-spacing: .16em; text-transform: uppercase;
}
.atlas-cd-partner img {
  display: block; width: 100%; height: auto;
}
.atlas-cd-clock {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.5fr); gap: 8px; align-items: center;
  padding-top: 9px; border-top: 1px solid color-mix(in srgb, var(--cd-rim) 60%, transparent);
}
.atlas-cd-k {
  margin: 0; color: var(--cd-ink); font: 700 11px/1.25 var(--atlas-body);
  letter-spacing: .09em; text-transform: uppercase;
}
.atlas-cd-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.atlas-cd-unit {
  display: grid; justify-items: center; gap: 2px; min-width: 0;
  border-inline-start: 1px solid color-mix(in srgb, var(--cd-rim) 38%, transparent);
}
.atlas-cd-unit b {
  color: var(--cd-number); font: 700 30px/.96 var(--atlas-display);
  font-variant-numeric: tabular-nums; letter-spacing: -.03em;
}
.atlas-cd-unit small { color: var(--cd-units); font: 600 10px/1.2 var(--atlas-body); }
.atlas-cd-partner span, .atlas-cd-k, .atlas-cd-unit b, .atlas-cd-unit small {
  transition: color var(--atlas-daytime-duration) ease-in-out;
}
.atlas-cd-unit b.is-flip { animation: atlas-cd-tick .3s ease-out; }
@keyframes atlas-cd-tick { from { opacity: .25; transform: translateY(-2px); } }
.atlas-countdown.is-done .atlas-cd-clock { grid-template-columns: 1fr; text-align: center; }
@media (min-width: 1321px) {
  .atlas-stage.has-panorama-sky .atlas-countdown { top: auto; bottom: 17px; left: 20px; transform: none; }
  .atlas-stage.has-panorama-sky:has(.atlas-card:not([hidden])) .atlas-countdown { visibility: hidden; }
}
@media (max-width: 1320px) {
  .atlas-countdown { top: auto; bottom: 17px; left: 20px; transform: none; }
  .atlas-stage:has(.atlas-card:not([hidden])) .atlas-countdown { visibility: hidden; }
}
@media (max-width: 760px) {
  .atlas-countdown {
    bottom: 9px; left: 9px; width: clamp(244px, 68vw, 278px);
    gap: 7px; padding: 9px 12px 10px; border-radius: 9px;
  }
  .atlas-countdown::before, .atlas-countdown::after { top: 9px; width: 3px; height: 3px; }
  .atlas-cd-partner { gap: 5px; }
  .atlas-cd-partner span { font-size: 8px; }
  .atlas-cd-clock { grid-template-columns: 58px minmax(0, 1fr); gap: 6px; padding-top: 7px; }
  .atlas-cd-k { font-size: 8px; letter-spacing: .05em; }
  .atlas-cd-unit b { font-size: 22px; }
  .atlas-cd-unit small { font-size: 8.5px; }
}
@media (max-width: 540px) {
  .atlas-countdown { bottom: 68px; }
}
@media (min-width: 600px) and (max-width: 1320px) and (max-height: 540px) {
  .atlas-countdown { bottom: 70px; left: auto; right: 20px; width: 250px; gap: 7px; padding: 9px 12px 10px; }
  .atlas-cd-clock { padding-top: 7px; }
  .atlas-cd-unit b { font-size: 22px; }
}

/* Фасады станций и клавиатурный фокус. */
.atlas-stage {
  --station-glass-top: #c9e0db;
  --station-glass-bottom: #7d9c92;
  --station-bulbs: #bda980;
  --station-window-glow: 0;
}
.atlas-stage[data-daytime="morning"] {
  --station-glass-top: #e9dbb7;
  --station-glass-bottom: #a99b77;
  --station-bulbs: #dac495;
  --station-window-glow: .12;
}
.atlas-stage[data-daytime="evening"] {
  --station-glass-top: #ffe0a0;
  --station-glass-bottom: #d59753;
  --station-bulbs: #ffdd9a;
  --station-window-glow: .48;
}
.atlas-stage[data-daytime="night"] {
  --station-glass-top: #fff1ba;
  --station-glass-bottom: #f5b759;
  --station-bulbs: #fff1c1;
  --station-window-glow: .75;
}
.atlas-station-glass-top { stop-color: var(--station-glass-top); }
.atlas-station-glass-bottom { stop-color: var(--station-glass-bottom); }
.atlas-station-bulbs { fill: var(--station-bulbs); }
.atlas-station-window-glow { opacity: var(--station-window-glow); }
.atlas-pavilion-name { fill: #1a4135; text-anchor: middle; font: 700 11.5px var(--atlas-body); pointer-events: none; }
.atlas-pavilion-name--three-lines { font-size: 9.3px; }
.atlas-pavilion .atlas-sign-mark,
.atlas-landmark:is(:hover, :focus-visible, .is-selected) .atlas-pavilion .atlas-sign-mark { transform: none; transition: none; }
.atlas-landmark:not([data-station-locked="true"]) .atlas-station-lock { display: none; }
.atlas-station-focus { fill: none; stroke: #e1b566; stroke-width: 2; opacity: 0; pointer-events: none; }
.atlas-landmark:focus-visible .atlas-station-focus { opacity: 1; }

/* Свет и надписи над растровым фоном сменяются одновременно с ним. */
:is(.atlas-station-glass-top, .atlas-station-glass-bottom,
    #campus-building-ground stop, #campus-fir stop) {
  transition: stop-color var(--atlas-daytime-duration) ease-in-out;
}
:is(.atlas-station-bulbs, .campus-terminus-snow,
    .campus-footer-cap, .campus-footer-icicles, .atlas-map-label, .atlas-square-k) {
  transition: fill var(--atlas-daytime-duration) ease-in-out, stroke var(--atlas-daytime-duration) ease-in-out;
}
:is(.atlas-station-window-glow, .atlas-pin-aura, .campus-sky-specks) {
  transition: opacity var(--atlas-daytime-duration) ease-in-out;
}

.pg-campus .pg-game-task { white-space: pre-line; }
.pg-puzzle { display: grid; gap: 10px; min-width: 0; width: 100%; text-align: left; }
.pg-puzzle img { display: block; width: 100%; height: auto; border-radius: 10px; }
.pg-puzzle-actions, .pg-puzzle-pool, .pg-puzzle-sequence { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-puzzle-pool { flex-direction: column; }
.pg-puzzle button {
  padding: 7px 11px; min-height: 42px; color: #fff7e2; background: #294564;
  border: 1px solid #58708a; border-radius: 8px; font: 650 14px/1.3 var(--atlas-body); cursor: pointer;
}
.pg-puzzle button:focus-visible, .pg-puzzle-target:focus-visible { outline: 2px solid #ffdf8d; outline-offset: 2px; }
.pg-puzzle .pg-puzzle-option { width: 100%; text-align: left; }
.pg-puzzle-order { display: grid; gap: 5px; margin: 0; padding-left: 27px; }
.pg-puzzle-order:empty { display: none; }
.pg-puzzle-order ::marker { color: #f1d484; font-weight: 700; }
.pg-puzzle-progress { color: #f1d484; font-size: 14px; overflow-wrap: anywhere; }
.pg-puzzle-sequence span { padding: 2px 6px; border-radius: 5px; color: #cbd7e3; background: #25374c; font-size: 13px; }
.pg-puzzle-sequence .is-current { color: #1a2c41; background: #efd18c; }
.pg-puzzle-sequence .is-done { color: #c3e9d8; background: #194739; }
.pg-puzzle-grid { border-spacing: 3px; margin-inline: auto; }
.pg-puzzle-grid th { min-width: 24px; color: #f1d484; text-align: center; }
.pg-puzzle-grid button { width: 42px; padding-inline: 2px; }
.pg-puzzle-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.pg-puzzle-target { position: relative; cursor: crosshair; }
.pg-puzzle-marks, .pg-puzzle-cursor { position: absolute; pointer-events: none; }
.pg-puzzle-marks { inset: 0; }
.pg-puzzle-marks span, .pg-puzzle-cursor {
  position: absolute; display: grid; place-items: center; width: 20px; height: 20px; transform: translate(-50%, -50%);
  color: #252113; background: #ffdf8d; border: 2px solid #172939; border-radius: 50%; font: 750 11px var(--atlas-body);
}
.pg-puzzle-cursor { display: none; background: transparent; border: 2px solid white; box-shadow: 0 0 0 2px #172939; }
.pg-puzzle-target:focus-visible .pg-puzzle-cursor { display: block; }
.pg-puzzle .pg-puzzle-swap { display: none; }
.pg-campus .pg-game-form:has(input[hidden]) { grid-template-columns: minmax(0, 1fr); }
.pg-campus .pg-game-form input[hidden] { display: none !important; }
@media (max-width: 760px) {
  .pg-puzzle-pair { grid-template-columns: minmax(0, 1fr); }
  .pg-puzzle-pair > img, .pg-puzzle-pair.is-reference .pg-puzzle-target { display: none; }
  .pg-puzzle-pair.is-reference > img { display: block; }
  .pg-puzzle .pg-puzzle-swap { display: inline-block; justify-self: start; }
}

.pg-campus .pg-game-res.is-preview-correct { color: #a9edcc; }
.pg-film-list { display: grid; gap: .65rem; margin: 0; padding: 0; list-style: none; }
.pg-film-list label { display: grid; gap: 5px; }
.pg-film-list li + li { padding-top: .55rem; border-top: 1px solid #38516c; }
.pg-film-clue { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.pg-film-clue > span { font-size: 24px; letter-spacing: .1em; }
.pg-film-clue > small { color: #d2e0ed; font-size: 13px; }

.pg-campus .pg-modal-box.is-crossword { width: min(880px, 100%); }
.is-crossword .pg-puzzle { grid-template-columns: minmax(270px, 1.35fr) minmax(235px, 1fr); gap: 16px; align-items: start; }
.pg-crossword-grid {
  display: grid;
  grid-template-columns: repeat(var(--cross-columns), minmax(0, 1fr));
  gap: 1px;
  width: 100%;
  padding: 8px;
  border: 1px solid #3b536c;
  border-radius: 10px;
  background: #132137;
}
.pg-puzzle .pg-crossword-cell {
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  aspect-ratio: 1;
  min-height: 0;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: #f4efdf;
  color: #19283a;
  font-size: clamp(10px, 1.35vw, 17px);
  line-height: 1;
}
.pg-crossword-cell small {
  position: absolute;
  top: 1px;
  left: 2px;
  font-size: clamp(5.5px, .6vw, 8px);
  line-height: 1;
  color: #59401e;
}
.pg-crossword-cell span { padding-top: .18em; }
.pg-puzzle .pg-crossword-cell.is-line { background: #ffdf96; }
.pg-puzzle .pg-crossword-cell.is-current { background: #efbe62; border-color: #6d4c24; }
.pg-crossword-card { display: grid; gap: 10px; min-width: 0; padding: 13px; background: #273b54; border-radius: 10px; }
.pg-crossword-card select, .pg-crossword-card input, .pg-film-list input {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 9px; border: 1px solid #7890a7; border-radius: 8px;
  background: #15263b; color: #fff9ea; font: 650 16px var(--atlas-body);
}
.pg-crossword-clue { color: #fff9ea; line-height: 1.35; }
.pg-crossword-pattern { color: #ffdf96; font: 700 15px var(--atlas-body); overflow-wrap: anywhere; }
.pg-crossword-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; }
.pg-crossword-entry button:disabled { opacity: .55; cursor: default; }
.pg-crossword-status { color: #d2e0ed; font-size: 13px; }
@media (max-width: 660px) {
  .is-crossword .pg-puzzle { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .pg-crossword-grid { padding: 4px; }
  .pg-crossword-card { padding: 10px; gap: 8px; }
}
@media (min-width: 661px) {
  .pg-crossword-grid { grid-column: 1; grid-row: 1; }
  .pg-crossword-card { grid-column: 2; grid-row: 1; }
}
@media (max-width: 660px) {
  .pg-campus .pg-modal-box.is-crossword { gap: 8px; }
  .is-crossword .pg-game-task { padding: 8px 11px; font-size: 14px; line-height: 1.4; }
  .is-crossword h2 { font-size: 25px; }
}

.pg-puzzle-choices .pg-puzzle-option[aria-pressed="true"] {
  background: #ffdf96;
  border-color: #efbc62;
  color: #15263b;
}
.pg-puzzle .pg-puzzle-visual {
  width: auto;
  max-width: 100%;
  max-height: min(360px, 48dvh);
  justify-self: center;
  object-fit: contain;
}

.pg-campus .pg-modal-box {
  grid-template-columns: minmax(0, 1fr);
}
.pg-campus .pg-game-task {
  overflow-wrap: anywhere;
}
@media (max-width: 420px) {
  .pg-puzzle-grid button {
    width: clamp(28px, calc((100vw - 89px) / 6), 42px);
  }
}

.pg-gate { width: 100%; min-width: 0; padding: 14px; border: 1px solid rgba(240, 218, 162, .34); border-radius: 15px; text-align: left; }
.pg-gate-label { font-size: .91rem; margin: 0 0 10px; color: #fff2cf; }
.pg-gate-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pg-gate-meters > div { display: grid; gap: 4px; }
.pg-gate-meters span, .pg-gate-sample { color: #d1dee9; font-size: .82rem; }
.pg-gate-meters strong { font-size: 1rem; color: #fff6d9; }
.pg-gate-meters progress { width: 100%; height: 8px; accent-color: #e9c678; }
.pg-gate-sample { margin: 8px 0 0; }
.pg-gate-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.pg-campus .pg-gate-links .pg-btn { min-height: 42px; padding: 6px 12px; }
.pg-cell-hints, .pg-cell-help { width: 100%; text-align: left; }
.pg-cell-hints { display: flex; gap: 7px 13px; flex-wrap: wrap; }
.pg-cell-hints a, .pg-cell-help summary { color: #f6da94; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pg-cell-help p { color: #e2eaf2; margin: 6px 0 0; }
@media (max-width: 760px) {
  .pg-campus .is-gated h2 { font-size: 24px; }
  .pg-campus .is-gated .pg-gate-links a { width: 100%; justify-content: center; }
}

.pg-location { width: 100%; min-width: 0; text-align: left; padding: 13px 15px; border: 1px solid #627887; border-radius: 14px; }
.pg-location h3 { margin: 0; color: #fff7df; font: 800 1.06rem var(--sans); }
.pg-location p { margin: 7px 0; color: #dae5ed; }
.pg-location .pg-location-progress { color: #f2d38a; font-weight: 700; }
.pg-location ul { display: flex; list-style: none; flex-wrap: wrap; gap: 5px 12px; padding: 0; margin: 8px 0; }
.pg-location a { color: #f6da94; text-underline-offset: 3px; }
.pg-location-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
@media (max-width: 380px) { .pg-location-form { grid-template-columns: minmax(0, 1fr); } }

.atlas-pin-tracker { pointer-events: none; }
.atlas-pin-tracker circle { fill: #194d42; stroke: #f0d58f; stroke-width: 1.3; }
.atlas-pin-tracker path { fill: #ffe8ac; }
.pg-cell-route { margin: 0; color: #e4edf4; font-weight: 700; }
.pg-tracker-entry { display: grid; gap: 4px; border-color: #839572; background: #194d4240; }
.pg-tracker-entry p { margin: 0; font-size: .88rem; }
.pg-tracker-entry a { display: inline-flex; align-items: center; min-height: 38px; width: fit-content; font-weight: 750; }

.atlas-city-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.32rem 0;
  color: #075e49;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.atlas-route-dialog {
  width: min(790px, calc(100% - 24px)); max-width: none; box-sizing: border-box;
  max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px);
  margin: auto; padding: 0; border: 1px solid #d4ded7; border-radius: 14px;
  background: #fff; color: #173b30; overflow: auto;
  box-shadow: 0 20px 65px #08291d38; overscroll-behavior: contain;
}
.atlas-route-dialog::backdrop { background: #0b211e85; }
.atlas-route-dialog-inner { padding: clamp(14px, 3.6vw, 30px); }
.atlas-route-dialog-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 18px; }
.atlas-route-dialog-head h2 { font-size: clamp(23px, 4.5vw, 32px); line-height: 1.14; margin: 0; color: inherit; }
.atlas-route-dialog-head form, .atlas-route-card form { margin: 0; }
.atlas-route-close {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #d9e2dc; border-radius: 7px; background: #f7f9f7;
  color: #1b4c3b; font: 500 24px/1 system-ui, sans-serif; cursor: pointer;
}
.atlas-route-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.atlas-route-card {
  display: grid; grid-template-rows: auto 1fr auto; justify-items: start; gap: 12px;
  min-width: 0; padding: 16px; border: 1px solid #dce4dd; border-radius: 9px; background: #f9faf8;
}
.atlas-route-mark {
  position: relative; display: block; width: 42px; height: 42px;
  border-radius: 8px; background: #e4efe7; color: #245643;
}
.atlas-route-mark::before, .atlas-route-mark::after {
  content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); box-sizing: border-box;
}
.atlas-route-mark.is-map::before {
  width: 17px; height: 17px; border: 1.7px solid; border-radius: 50% 50% 50% 0;
  transform: translate(-50%, -59%) rotate(-45deg);
}
.atlas-route-mark.is-map::after { width: 4px; height: 4px; border-radius: 50%; background: currentColor; transform: translate(-50%, -85%); }
.atlas-route-mark.is-post { background: #e9eef5; color: #3c506d; }
.atlas-route-mark.is-post::before { width: 16px; height: 19px; border: 1.7px solid; border-radius: 3px; }
.atlas-route-mark.is-post::after { width: 8px; height: 1.5px; background: currentColor; box-shadow: 0 4px 0 currentColor; transform: translate(-50%, -220%); }
.atlas-route-mark.is-tracker { background: #f0e9f3; color: #593c6b; }
.atlas-route-mark.is-tracker::before { width: 22px; height: 22px; border: 1.7px solid; border-radius: 50%; }
.atlas-route-mark.is-tracker::after {
  width: 12px; height: 15px; background: currentColor; clip-path: polygon(50% 0, 85% 59%, 50% 100%, 15% 41%);
  transform: translate(-50%, -50%) rotate(38deg);
}
.atlas-route-copy { min-width: 0; }
.atlas-route-copy h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.2; color: #183d30; }
.atlas-route-copy p { margin: 0; color: #40584c; font-size: 14px; line-height: 1.4; }
.atlas-route-copy .atlas-route-count { font-weight: 650; color: #245643; }
.atlas-route-count strong { font-size: 1.15em; font-variant-numeric: tabular-nums; }
.atlas-route-dialog .atlas-route-copy p + p { margin-top: 7px; }
.atlas-route-dialog .atlas-route-action {
  display: inline-flex; min-height: 44px; max-width: 100%; align-items: center; justify-content: center;
  box-sizing: border-box; padding: 6px 11px; border: 1px solid #b5c9ba; border-radius: 7px;
  background: #fff; color: #194d3a; font: 700 13px/1.25 system-ui, sans-serif;
  text-decoration: none; text-align: center; white-space: normal; overflow-wrap: anywhere; cursor: pointer;
}
.atlas-route-dialog :is(.atlas-route-close, .atlas-route-action):hover { background: #e8f1ea; }
.atlas-route-foot { display: flex; gap: 0 18px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; }
.atlas-route-foot a { display: inline-flex; align-items: center; min-height: 44px; color: #18543f; font-weight: 650; text-underline-offset: 2px; }
.atlas-route-dialog :is(button,a):focus-visible { outline: 2px solid #246d53; outline-offset: 3px; }
@media (max-width: 680px) {
  .atlas-route-dialog { box-shadow: 0 6px 20px #08291d30; }
  .atlas-route-dialog-head {
    position: sticky; top: 0; z-index: 1; margin-bottom: 4px;
    padding: 3px 0 8px; border-bottom: 1px solid #dce4dd; background: #fff;
  }
  .atlas-route-dialog :is(.atlas-route-close, .atlas-route-action) { touch-action: manipulation; }
  .atlas-route-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .atlas-route-card {
    grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto; gap: 5px 10px;
    padding: 11px 0; border: 0; border-top: 1px solid #dce4dd; border-radius: 0; background: transparent;
  }
  .atlas-route-mark { width: 36px; height: 36px; grid-row: span 2; }
  .atlas-route-card:first-child { border-top: 0; }
  .atlas-route-copy h3 { font-size: 16px; margin-bottom: 2px; }
  .atlas-route-copy p { font-size: 13px; }
  .atlas-route-dialog .atlas-route-copy p + p { margin-top: 3px; }
  .atlas-route-dialog .atlas-route-action, .atlas-route-card form { grid-column: 2; }
  .atlas-route-foot { border-top: 1px solid #dce4dd; margin-top: 0; }
}

/* Панели карты остаются чёткими во время перетаскивания. */
.pg-campus { --glass: #fbfcfa; --glass-line: #d9e4de; --shadow: 0 3px 8px #203b2d15; }
.pg-campus :is(.atlas-journey, .atlas-controls, .atlas-card, .atlas-daytime, .atlas-top-links a) {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.pg-campus .atlas-top-links a:hover,
.atlas-controls button:hover:not(:disabled),
.atlas-index li button:hover { transform: none; }
.atlas-time-toggle, .atlas-link-small { display: none; }

.pg-campus.is-tiled.is-tile-pending:not(.is-raster-only) .campus-bake { display: inline; }
.pg-campus.is-raster-only .campus-bake { display: none; }
.pg-campus.is-raster-only .atlas-viewport { contain: layout paint; }
.atlas-raster-window {
  display: none; position: absolute; top: 0; left: 0; pointer-events: none;
}
.atlas-motion-frame { display: contents; }
.pg-campus.has-atlas-surface .atlas-motion-frame {
  display: block; position: absolute; inset: 0; transform-origin: 0 0; pointer-events: none;
  will-change: transform;
}
.pg-campus.has-atlas-surface .atlas-raster-window { display: block; }
.pg-campus.has-atlas-surface .atlas-world { overflow: hidden; outline: none; pointer-events: auto; }
.pg-campus.has-atlas-surface .campus-tiles,
.pg-campus.has-atlas-surface .is-outside-viewport:not(:focus) .atlas-pegasus-stop > :not(.atlas-hit),
.pg-campus.has-atlas-surface .is-outside-viewport:not(:focus) :is(.atlas-pin-walk, .atlas-pin-track) { display: none; }
.pg-campus.is-lightweight.is-ready .atlas-stage { --atlas-daytime-duration: 0ms; }
.pg-campus.is-lightweight .atlas-stage .atlas-journey,
.pg-campus.is-lightweight .atlas-stage .atlas-countdown { background: var(--cd-enamel); transition: none; }
.pg-campus.is-lightweight .atlas-journey-fold { transition: none; }
.pg-campus.is-lightweight .atlas-cd-unit b.is-flip { animation: none; }
.pg-campus.is-lightweight .atlas-viewport {
  background: linear-gradient(var(--atlas-sky-top), var(--atlas-sky) 54%, var(--atlas-snow-bottom));
}
.pg-campus.is-lightweight.is-still .atlas-snowfall,
.pg-campus.is-lightweight .atlas-pin-aura { display: none; }
.pg-campus.is-lightweight .pg-modal {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.pg-campus.is-lightweight.is-ready :is(.atlas-journey,.atlas-top-links,.atlas-controls,.atlas-index,.atlas-viewport,.atlas-countdown) {
  animation: none;
}

@media (max-width: 760px) {
  .pg-campus {
    --atlas-hud-top: max(8px, env(safe-area-inset-top));
    --atlas-hud-left: max(8px, env(safe-area-inset-left));
    --atlas-hud-right: max(8px, env(safe-area-inset-right));
  }
  .pg-campus .atlas-top-links {
    top: var(--atlas-hud-top); right: var(--atlas-hud-right); left: auto;
    display: flex; align-items: center; flex-direction: row;
    padding: 2px; border: 1px solid #d9e4de; border-radius: 10px; background: #fbfcfa;
  }
  .pg-campus .atlas-top-links :is(a,.atlas-time-toggle) {
    display: grid; min-height: 44px; align-items: center;
    padding: 0 clamp(8px, 2.5vw, 12px) !important; font: 700 12px var(--atlas-body) !important;
    border-radius: 7px !important; border: 0 !important; box-shadow: none;
    background: transparent; color: #264b3d; white-space: nowrap; touch-action: manipulation;
  }
  .pg-campus .atlas-top-links .atlas-link-small { display: inline; }
  .pg-campus .atlas-top-links .atlas-link-wide { display: none; }
  .atlas-time-toggle[aria-expanded="true"] { background: #e2eee7 !important; }
  .atlas-daytime { display: none; }
  .atlas-daytime.is-menu-open { display: flex; z-index: 7; top: calc(var(--atlas-hud-top) + 54px); right: var(--atlas-hud-right); border-radius: 10px; }
  .atlas-daytime button { min-height: 44px; padding: 0 8px; }
  .atlas-stage:has(.atlas-daytime.is-menu-open) .atlas-journey { visibility: hidden; }
  .atlas-journey {
    top: calc(var(--atlas-hud-top) + 54px); left: var(--atlas-hud-left);
    width: min(270px, calc(100% - var(--atlas-hud-left) - var(--atlas-hud-right)));
    padding: 9px 11px; border-radius: 10px;
  }
  .atlas-journey.is-folded {
    padding: 7px 45px 7px 10px; min-height: 44px;
    max-width: calc(100% - var(--atlas-hud-left) - var(--atlas-hud-right));
  }
  .atlas-journey .atlas-journey-fold { width: 44px; height: 44px; top: 0; right: 0; }
  .atlas-journey .atlas-tally { margin-bottom: 4px; }
  .atlas-journey .atlas-city-link { margin-bottom: 0; font-size: 12px; }
  .atlas-train-heading > b { font-size: 14px; }
  .atlas-controls { right: var(--atlas-hud-right); bottom: 8px; border-radius: 10px; padding: 2px; gap: 1px; }
  .atlas-controls button { width: 44px; height: 44px; border-radius: 6px; touch-action: manipulation; }
  .atlas-countdown {
    left: var(--atlas-hud-left); bottom: 8px; right: auto; width: 224px;
    padding: 6px 8px; gap: 4px; border-radius: 9px;
  }
  .atlas-countdown::before, .atlas-countdown::after { display: none; }
  .atlas-cd-partner { gap: 3px; }
  .atlas-cd-clock { grid-template-columns: 55px minmax(0, 1fr); padding-top: 6px; }
  .atlas-cd-unit b { font-size: 21px; }
  .atlas-stage:has(.atlas-card:not([hidden])) .atlas-controls { visibility: hidden; }
  .atlas-card {
    z-index: 5; bottom: 9px; left: 9px; width: min(390px, calc(100% - 18px));
    max-height: 40%; border-radius: 10px;
  }
  .atlas-index { min-height: 52px; }
  .atlas-index li button { min-height: 44px; font-size: 11px; }
  .atlas-route-flow { grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .atlas-route-flow::before { left: 48px; }
  .atlas-route-flow::after { right: 48px; }
  .atlas-route-arrow { height: 44px; }
}
@media (max-width: 520px) {
  .atlas-controls { display: grid; grid-template-columns: repeat(3, 44px); }
  .atlas-controls [data-atlas-home] { width: 100%; grid-column: span 2; }
  .atlas-countdown { width: min(224px, calc(100% - var(--atlas-hud-left) - var(--atlas-hud-right) - 148px)); }
  .atlas-cd-unit b { font-size: clamp(17px, 5.4vw, 21px); }
}

@media (min-width: 600px) and (max-width: 960px) and (max-height: 460px) {
  .atlas-route-dialog { box-shadow: 0 6px 20px #08291d30; }
  .atlas-route-dialog-inner { padding: 12px 14px; }
  .atlas-route-dialog-head { margin-bottom: 8px; }
  .atlas-route-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .atlas-route-list .atlas-route-card {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    gap: 7px;
    padding: 10px;
    border: 1px solid #dce4dd;
    border-radius: 7px;
    background: #f9faf8;
  }
  .atlas-route-mark { width: 32px; height: 32px; grid-row: auto; }
  .atlas-route-copy h3 { font-size: 16px; }
  .atlas-route-copy p { font-size: 13px; }
  .atlas-route-dialog :is(.atlas-route-action, .atlas-route-card form) { grid-column: 1; }
  .atlas-route-foot { margin-top: 2px; border-top: 0; }
  .atlas-countdown {
    top: auto; right: auto; bottom: 8px; left: max(8px, env(safe-area-inset-left));
    width: min(340px, calc(100% - 264px)); padding: 6px 8px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 8px;
  }
  .atlas-countdown::before, .atlas-countdown::after { display: none; }
  .atlas-cd-partner { gap: 3px; }
  .atlas-cd-clock {
    grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 0 0 0 8px;
    border-top: 0; border-inline-start: 1px solid var(--cd-rim); text-align: center;
  }
  .atlas-cd-k { font-size: 8px; }
  .atlas-cd-unit b { font-size: 20px; }
}

/* Карточки точек и элементы управления маршрутом */
.pg-campus {
  --pg-map-paper: #fffdf8;
  --pg-map-line: #d6dfd6;
  --pg-map-ink: #202b26;
  --pg-map-muted: #54635a;
  --pg-map-accent: #164f3d;
  --pg-map-warm: #f2f3ec;
}
.pg-campus .pg-modal {
  background: #17272185;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  animation: none;
}
.pg-campus .pg-modal-box {
  width: min(560px, 100%);
  max-height: calc(100dvh - 32px);
  padding: 24px 26px;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--pg-map-line);
  border-radius: 12px;
  background: var(--pg-map-paper);
  color: var(--pg-map-ink);
  box-shadow: 0 20px 54px #17272130;
  animation: none;
  text-align: left;
}
.pg-campus .pg-modal-x {
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pg-map-line);
  border-radius: 7px;
  background: transparent;
  color: var(--pg-map-accent);
}
.pg-campus .pg-modal-x:hover { background: var(--pg-map-warm); }
.pg-campus .pg-modal-box h2 {
  color: var(--pg-map-ink);
  font-size: clamp(25px, 5vw, 31px);
  padding-right: 42px;
}
.pg-campus .pg-modal-box > p { font-size: 15px; }
.pg-campus .pg-modal-box a:not(.pg-btn) { color: var(--pg-map-accent); text-decoration: underline; }
.pg-cell-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  padding: 0 34px 10px 0;
  border-bottom: 1px solid var(--pg-map-line);
}
.pg-cell-heading img { display: block; width: 33px; height: 38px; object-fit: contain; }
.pg-cell-heading > div { min-width: 0; }
.pg-campus .pg-modal-k { color: var(--pg-map-accent); font-size: 13px; font-weight: 720; text-transform: none; letter-spacing: 0; }
.pg-campus .pg-modal-box > .pg-modal-k { padding-right: 44px; }
.pg-cell-color, .pg-cell-route, .pg-campus .pg-game-note { color: var(--pg-map-muted); font-size: 13px; font-weight: 500; }
.pg-campus .pg-game-task { background: transparent; padding: 0; box-shadow: none; font-size: 15px; line-height: 1.55; }
.pg-campus .pg-game-form input {
  min-height: 44px;
  border-radius: 7px;
  border-color: #aab9ae;
  background: #fff;
  color: var(--pg-map-ink);
  font-size: 16px;
}
.pg-campus .pg-game-form input:focus { outline: 2px solid var(--pg-map-accent); outline-offset: 1px; }
.pg-campus .pg-modal-box .pg-btn {
  min-height: 42px;
  padding: 7px 13px;
  border-radius: 7px;
  border-color: var(--pg-map-accent);
  background: var(--pg-map-accent);
  color: #fff !important;
  font-size: 14px;
}
.pg-campus .pg-modal-box .pg-btn:hover { background: #103d30; }
.pg-campus .pg-modal-box .pg-btn.is-ghost {
  border-color: var(--pg-map-line);
  background: var(--pg-map-paper);
  color: var(--pg-map-accent) !important;
}
.pg-campus .pg-modal-box .pg-btn.is-ghost:hover { background: var(--pg-map-warm); }
.pg-campus .pg-modal-box > .pg-btn { justify-self: start; }
.pg-campus .pg-game-res:empty { display: none; }
.pg-campus .pg-game-res.is-bad { color: #9b3028; animation: none; }
.pg-campus .pg-game-bar { height: 6px; background: #d7dfd7; }
.pg-campus .pg-game-bar i { background: var(--pg-map-accent); }
.pg-campus .pg-game-reveal {
  justify-items: start;
  text-align: left;
  padding: 14px;
  border: 1px solid var(--pg-map-line);
  border-radius: 8px;
  background: var(--pg-map-warm);
  color: var(--pg-map-ink);
  box-shadow: none;
  animation: none;
}
.pg-campus .pg-game-reveal img { display: none; }
.pg-campus .pg-game-reveal b { color: var(--pg-map-accent); }
.pg-campus .pg-cell-status {
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid var(--pg-map-line);
  border-radius: 5px;
  color: var(--pg-map-accent);
  background: var(--pg-map-warm);
  font-size: 13px;
}
.pg-campus .pg-cell-status a { font-weight: 620; }
.pg-campus .pg-card-refresh { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--pg-map-line); justify-items: start; }
.pg-campus .pg-card-refresh p { color: var(--pg-map-muted); }
.pg-campus .pg-gate, .pg-campus .pg-location, .pg-campus .pg-tracker-entry {
  border-color: var(--pg-map-line);
  border-radius: 8px;
  background: var(--pg-map-warm);
}
.pg-campus .pg-gate :is(.pg-gate-label, strong), .pg-campus .pg-location h3 { color: var(--pg-map-ink); }
.pg-campus :is(.pg-gate-meters span, .pg-gate-sample, .pg-location p, .pg-cell-help p) { color: var(--pg-map-muted); }
.pg-campus .pg-gate-meters progress { accent-color: var(--pg-map-accent); }
.pg-campus .pg-gate-links { justify-content: start; }
.pg-campus .pg-cell-help summary, .pg-campus .pg-location .pg-location-progress { color: var(--pg-map-accent); }
.pg-campus .pg-puzzle-progress, .pg-campus .pg-puzzle-grid th, .pg-campus .pg-puzzle-order ::marker { color: var(--pg-map-accent); }
.pg-campus .pg-film-clue > small { color: var(--pg-map-muted); }
.pg-campus .pg-film-list li + li { border-top-color: var(--pg-map-line); }
.pg-campus .pg-puzzle button:focus-visible, .pg-campus .pg-puzzle-target:focus-visible { outline-color: var(--pg-map-accent); }

.pg-campus .atlas-top-links { gap: 0; }
.pg-campus .atlas-top-links a { border-radius: 8px !important; box-shadow: none; }
.pg-campus .atlas-top-links a + a { margin-left: 5px; }
.pg-campus :is(.atlas-journey, .atlas-controls, .atlas-daytime) { border-radius: 9px; box-shadow: 0 1px 5px #192d2424; }
.pg-campus .atlas-controls button { border-radius: 6px; }
.pg-campus .atlas-journey-fold { border-radius: 6px; }
.pg-campus .atlas-countdown { box-shadow: 0 2px 10px #21382f23; }
@media (max-width: 760px) {
  .pg-campus .pg-modal {
    align-items: end;
    padding: 0;
  }
  .pg-campus .pg-modal-box, .pg-campus .pg-modal-box.is-crossword {
    width: 100%;
    max-height: 88dvh;
    padding: 18px 16px max(18px, env(safe-area-inset-bottom));
    border-radius: 12px 12px 0 0;
  }
  .pg-campus .pg-location-form { grid-template-columns: minmax(0, 1fr); }
  .pg-campus .atlas-top-links a + a { margin-left: 0; }
}
