@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400; font-display: swap; src: url(ui/fonts/alegreya-i-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya'; font-style: italic; font-weight: 400; font-display: swap; src: url(ui/fonts/alegreya-i-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(ui/fonts/alegreya-n-400-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Alegreya'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(ui/fonts/alegreya-n-400-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Marck Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(ui/fonts/marck-script-n-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Marck Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(ui/fonts/marck-script-n-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Philosopher'; font-style: normal; font-weight: 400; font-display: swap; src: url(ui/fonts/philosopher-n-400-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Philosopher'; font-style: normal; font-weight: 400; font-display: swap; src: url(ui/fonts/philosopher-n-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Philosopher'; font-style: normal; font-weight: 700; font-display: swap; src: url(ui/fonts/philosopher-n-700-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Philosopher'; font-style: normal; font-weight: 700; font-display: swap; src: url(ui/fonts/philosopher-n-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Страница /universe в стиле «Витражный космос»: тёмное стекло в золотой оправе, пергамент для карточки тела.
   Цвета и шрифты те же, что на главной (static/glass/…), файлы свои в static/universe/ui/. */
:root {
  --ink-0: #07040f; --ink-1: #0d0818; --ink-2: #160c24; --ink-3: #231236;
  --gold: #e2b650; --gold-l: #fff0b8; --gold-d: #8a5c12;
  --cream: #f6ead0; --cream-2: #cfc0a6; --parch: #efe0b9; --ink: #2a0d17; --ink-soft: #6a3a44; --burg: #7a1f3d;
  --ruby-l: #ff5f86; --emerald-l: #3ee0a8; --rose: #ffd0e2;
  --f-d: 'Philosopher', 'Times New Roman', serif; --f-t: 'Alegreya', Georgia, serif; --f-s: 'Marck Script', 'Brush Script MT', cursive;
  --hair: rgba(226, 182, 80, .34);
  --frame: inset 0 0 0 1.5px var(--gold), inset 0 0 0 4.5px rgba(13, 8, 24, .92), inset 0 0 0 5.5px rgba(226, 182, 80, .42);
  --dock-h: 124px; --top-h: 96px; --gut: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink-0); color: var(--cream); overflow: hidden;
  font: 400 16px/1.45 var(--f-t); -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; touch-action: none; outline: none; }
.vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 120% 100% at 50% 46%, transparent 52%, rgba(7, 4, 15, .5) 100%),
    linear-gradient(180deg, rgba(7, 4, 15, .72), transparent 150px); }
.corner { position: fixed; z-index: 2; width: 112px; height: 112px; pointer-events: none; opacity: .5;
  background: url(ui/orn-corner.webp) center/contain no-repeat; }
.corner--bl { left: 6px; bottom: 6px; transform: scaleY(-1); }
.corner--br { right: 6px; bottom: 6px; transform: scale(-1, -1); }
.scroll { scrollbar-width: thin; scrollbar-color: rgba(226, 182, 80, .5) transparent; }
.scroll::-webkit-scrollbar { width: 8px; }
.scroll::-webkit-scrollbar-thumb { background: rgba(226, 182, 80, .45); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }

/* Стекло в оправе и общие детали */
.panel { background: linear-gradient(180deg, rgba(24, 13, 40, .8), rgba(9, 5, 20, .86)); border-radius: 18px;
  box-shadow: var(--frame), 0 18px 48px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
.kick { display: flex; align-items: center; gap: 10px; font: 700 11.5px/1.2 var(--f-d); letter-spacing: .26em; text-transform: uppercase; color: #f0c860; }
.kick::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair), transparent); }
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px;
  border-radius: 99px; border: 1px solid var(--hair); background: rgba(226, 182, 80, .07); color: var(--cream);
  font: 700 14.5px/1 var(--f-d); letter-spacing: .02em; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background .2s, border-color .2s, box-shadow .2s, color .2s, opacity .2s, transform .15s; }
.btn:hover { border-color: var(--gold); background: rgba(226, 182, 80, .17); box-shadow: 0 0 18px rgba(226, 182, 80, .2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .x:focus-visible, .lbl:focus-visible, .sky-row:focus-visible, .cat-item:focus-visible { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.btn--gold, .btn.is-on, .ico[aria-pressed="true"] { color: #2a1505; border-color: transparent;
  background: linear-gradient(180deg, #fff3c4, #eec257 46%, #c88d22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 6px 18px rgba(226, 150, 30, .3); }
.btn--gold:hover, .btn.is-on:hover, .ico[aria-pressed="true"]:hover { background: linear-gradient(180deg, #fff8d8, #f5cd68 46%, #d49a2c); border-color: transparent; }
.btn--ghost { background: transparent; }
.btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.x { margin-left: auto; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair); background: rgba(226, 182, 80, .06);
  font: 400 22px/1 var(--f-d); cursor: pointer; color: var(--cream-2); display: inline-flex; align-items: center; justify-content: center; transition: background .2s, color .2s; }
.x:hover { background: rgba(226, 182, 80, .2); color: var(--gold-l); }

/* Медальон тела: витраж для планет, шар из текстуры для остальных */
.medal { position: relative; display: block; flex: none; border-radius: 50%; background: #05030b center/106% no-repeat;
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 3.5px rgba(13, 8, 24, .92), 0 0 0 4.5px rgba(226, 182, 80, .42), 0 8px 18px rgba(0, 0, 0, .5); }
.medal[data-medal="tex"] { background-size: 215% 108%; background-position: 28% 50%; }
.medal[data-medal="tex"]::after { content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 30% 26%, rgba(255, 255, 255, .34), transparent 40%), radial-gradient(circle at 72% 78%, rgba(3, 2, 8, .72), transparent 64%); }
.medal[data-key="sun"]::after { background: radial-gradient(circle, transparent 48%, rgba(255, 150, 30, .5)); }
.medal[data-key="sun"] { box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 3.5px rgba(13, 8, 24, .92), 0 0 0 4.5px rgba(226, 182, 80, .42), 0 0 26px rgba(255, 170, 60, .65); }

/* Загрузка */
#loader { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: radial-gradient(circle at 50% 44%, rgba(40, 20, 70, .35), rgba(7, 4, 15, .86) 70%), url(ui/nebula-night.jpg) center/cover, var(--ink-0);
  transition: opacity 1.3s ease, visibility 0s 1.3s; }
#loader.is-hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.rose { position: relative; width: 204px; height: 204px; }
.rose::before { content: ''; position: absolute; inset: 24px; border-radius: 50%; background: url(ui/rose-center.webp) center/cover; animation: turn 60s linear infinite;
  box-shadow: 0 0 44px rgba(255, 190, 80, .35); }
.rose::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--hair); border-top-color: var(--gold-l); animation: turn 2.2s linear infinite; }
.rose i { position: absolute; inset: 9px; border-radius: 50%; border: 1px dashed rgba(226, 182, 80, .3); animation: turn 26s linear infinite reverse; }
#loader.is-error .rose { display: none; }
.loader__title { font: 400 46px/1 var(--f-s); color: var(--rose); text-shadow: 0 0 26px rgba(255, 150, 200, .35); margin-top: 14px; }
#loaderText { font: 700 12.5px/1.5 var(--f-d); letter-spacing: .2em; text-transform: uppercase; color: #f0c860; text-align: center; padding: 0 24px; max-width: 520px; }
#loader.is-error #loaderText { letter-spacing: .04em; text-transform: none; font: 400 17px/1.5 var(--f-t); color: var(--cream); }
@keyframes turn { to { transform: rotate(360deg); } }

/* Шапка */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 10; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 22px; pointer-events: none; }
.top::after { content: ''; position: absolute; left: 0; right: 0; bottom: 14px; height: 1px; background: linear-gradient(90deg, transparent, rgba(226, 182, 80, .55) 18%, rgba(255, 240, 184, .8) 50%, rgba(226, 182, 80, .55) 82%, transparent); }
.top > * { pointer-events: auto; position: relative; top: -7px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--cream); font: 700 19px/1.1 var(--f-d); }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 0 0 1.5px var(--gold), 0 4px 14px rgba(0, 0, 0, .5); }
.brand:hover span { color: var(--gold-l); }
.top__title { position: absolute !important; left: 50%; top: 13px !important; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.top h1 { margin: 0; font: 700 24px/1.1 var(--f-d); letter-spacing: .01em; text-shadow: 0 2px 18px rgba(7, 4, 15, .9); }
.top h1 em { font: 400 1.18em/1 var(--f-s); color: var(--rose); margin-left: 2px; transition: opacity .4s; }
body:not(.is-live) .top h1 em { opacity: .32; }
.top__time { margin-top: 5px; display: flex; gap: 9px; align-items: center; justify-content: center; font: 400 15px/1.2 var(--f-t); color: var(--cream-2); }
.top__time i { width: 4px; height: 4px; transform: rotate(45deg); background: var(--gold); }
#simTime { color: var(--cream); font-variant-numeric: tabular-nums; min-width: 4.4em; text-align: left; }
.live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 99px; background: rgba(154, 26, 64, .45); border: 1px solid rgba(255, 95, 134, .55);
  font: 700 10.5px/1.5 var(--f-d); letter-spacing: .16em; text-transform: uppercase; color: #ffc2d0; }
.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ruby-l); box-shadow: 0 0 8px var(--ruby-l); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.top__right { margin-left: auto; display: flex; gap: 8px; }

/* Левая колонка: наблюдатель и планеты в знаках */
.side { position: fixed; top: calc(var(--top-h) + 6px); left: var(--gut); z-index: 9; width: 306px; display: flex; flex-direction: column; gap: 12px;
  max-height: calc(100vh - var(--top-h) - var(--dock-h) - 40px); pointer-events: none; }
.side > * { pointer-events: auto; }
.you { padding: 16px 20px 14px; flex: none; }
.you__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.you__place { font: 700 19px/1.2 var(--f-d); }
.you__source { color: var(--cream-2); font-size: 13px; font-style: italic; }
.you__time { font: 400 40px/1.05 var(--f-d); font-variant-numeric: tabular-nums; letter-spacing: .02em; margin: 2px 0 4px; color: var(--gold-l); text-shadow: 0 0 22px rgba(255, 210, 120, .25); }
.you__status { font: 700 15px/1.3 var(--f-d); margin: 2px 0 8px; padding-left: 20px; position: relative; }
.you__status::before { content: ''; position: absolute; left: 1px; top: .28em; width: 11px; height: 11px; border-radius: 50%; }
.you__status--day::before { background: #ffd36b; box-shadow: 0 0 12px #ffd36b; }
.you__status--dusk::before { background: #ff9a5a; box-shadow: 0 0 10px #ff9a5a; }
.you__status--night::before { background: #7f8cff; box-shadow: 0 0 10px #7f8cff; }
.you p { margin: 3px 0; color: var(--cream-2); font-size: 14.5px; line-height: 1.4; }
.you__btns { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.you__btns .btn { min-height: 36px; padding: 0 14px; font-size: 14px; }
.you__note { font-size: 13px !important; font-style: italic; }
.you__note:empty { display: none; }
.skynow { padding: 14px 12px 8px 20px; min-height: 0; display: none; flex-direction: column; }
body.show-sky .skynow { display: flex; }
.skynow .kick { margin-right: 8px; }
#skyList { margin-top: 8px; overflow: auto; padding-right: 6px; }
.sky-row { display: flex; align-items: baseline; gap: 9px; width: 100%; background: none; border: 0; padding: 2.5px 6px 2.5px 2px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 15px; line-height: 1.3; }
.sky-row:hover { background: rgba(226, 182, 80, .13); }
.sky-row i { flex: none; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 8px currentColor; align-self: center; }
.sky-row .n { font: 700 15px/1.3 var(--f-d); }
.sky-row .l { flex: 1; border-bottom: 1px dotted rgba(226, 182, 80, .35); transform: translateY(-4px); }
.sky-row .s { color: var(--gold-l); font-style: italic; }

/* Карточка тела: пергамент */
.info { position: fixed; top: calc(var(--top-h) + 6px); right: var(--gut); z-index: 11; width: 384px; color: var(--ink); border-radius: 20px;
  background: linear-gradient(180deg, rgba(248, 238, 214, .955), rgba(236, 219, 178, .965)), url(ui/parchment.webp) center/260px;
  box-shadow: inset 0 0 0 1.5px var(--gold-d), inset 0 0 0 4.5px #f8eed6, inset 0 0 0 5.5px rgba(138, 92, 18, .5), 0 26px 60px rgba(0, 0, 0, .62);
  animation: rise .35s ease both; }
.info__body { max-height: calc(100vh - var(--top-h) - var(--dock-h) - 40px); overflow: auto; padding: 22px 24px 20px; scrollbar-color: rgba(138, 92, 18, .55) transparent; }
.info__head { display: flex; align-items: center; gap: 16px; }
.info .medal { width: 78px; height: 78px; box-shadow: 0 0 0 1.5px var(--gold-d), 0 0 0 4px #f8eed6, 0 0 0 5px rgba(138, 92, 18, .55), 0 8px 18px rgba(60, 20, 10, .35); }
.info__kind { font: 700 11.5px/1.2 var(--f-d); letter-spacing: .24em; text-transform: uppercase; color: var(--burg); }
.info h2 { margin: 3px 0 0; font: 700 34px/1.05 var(--f-d); color: var(--ink); }
.info .x { align-self: flex-start; border-color: rgba(138, 92, 18, .45); background: rgba(138, 92, 18, .08); color: var(--ink-soft); }
.info .x:hover { background: rgba(138, 92, 18, .2); color: var(--ink); }
.info dl { display: grid; grid-template-columns: auto 1fr; margin: 16px 0 14px; font-size: 15.5px; line-height: 1.35; border-top: 1px solid rgba(138, 92, 18, .4); }
.info dt, .info dd { padding: 7px 0; border-bottom: 1px dotted rgba(122, 31, 61, .32); }
.info dt { font: 700 12px/1.6 var(--f-d); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding-right: 14px; }
.info dd { margin: 0; }
.info p { margin: 0 0 10px; font-size: 16.5px; line-height: 1.5; }
.info ul { margin: 0; padding: 0; list-style: none; font-size: 15.5px; line-height: 1.45; color: #45202a; }
.info li { position: relative; padding: 2px 0 2px 20px; }
.info li::before { content: ''; position: absolute; left: 3px; top: .62em; width: 7px; height: 7px; transform: rotate(45deg); background: linear-gradient(135deg, #d9a436, var(--gold-d)); }
.info__note { margin: 12px 0 0 !important; font-size: 14px !important; font-style: italic; color: var(--ink-soft); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Каталог и источники */
.catalog { position: fixed; top: calc(var(--top-h) + 6px); right: var(--gut); z-index: 12; width: 318px; padding: 16px 10px 12px 18px; display: flex; flex-direction: column;
  max-height: calc(100vh - var(--top-h) - var(--dock-h) - 40px); animation: rise .3s ease both; }
.catalog__head, .credits__head { display: flex; align-items: center; gap: 10px; padding-right: 8px; }
.catalog h2, .credits h2 { margin: 0; font: 700 21px/1.1 var(--f-d); }
#catalogList { overflow: auto; padding-right: 8px; margin-top: 4px; }
.catalog h3 { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font: 700 11px/1.2 var(--f-d); letter-spacing: .24em; text-transform: uppercase; color: #f0c860; }
.catalog h3::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hair), transparent); }
.cat-item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 6px 8px 6px 6px; border-radius: 12px; cursor: pointer; transition: background .2s; }
.cat-item:hover, .cat-item.is-cur { background: rgba(226, 182, 80, .14); }
.cat-item .medal { width: 36px; height: 36px; box-shadow: 0 0 0 1px var(--gold), 0 0 0 2.5px rgba(13, 8, 24, .9), 0 3px 8px rgba(0, 0, 0, .5); }
.cat-name { font: 700 16.5px/1.2 var(--f-d); }
.cat-sign { margin-left: auto; color: var(--gold-l); font-style: italic; font-size: 14.5px; }
.credits { position: fixed; right: var(--gut); bottom: calc(var(--dock-h) + 30px); z-index: 13; width: 380px; padding: 18px 20px; font-size: 14.5px; color: var(--cream-2); }
.credits ul { margin: 10px 0 0; padding-left: 1.1em; line-height: 1.5; }
.credits a { color: var(--gold-l); }

/* Пульт внизу */
.dock { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 10; padding: 13px 16px 12px;
  display: flex; flex-direction: column; gap: 10px; width: max-content; max-width: calc(100vw - 24px); }
.row { display: flex; gap: 8px; align-items: center; justify-content: center; }
.sep { width: 1px; height: 26px; background: var(--hair); margin: 0 4px; flex: none; }
.ico { width: 38px; padding: 0; flex: none; }
.btn--now i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .5; }
.btn--now.is-active { color: #f4fff5; border-color: transparent; background: linear-gradient(180deg, #1fa384, #0b6049 52%, #073d30);
  box-shadow: inset 0 0 0 1.5px var(--gold), inset 0 0 0 3.5px #073d30, 0 0 22px rgba(32, 200, 160, .3); }
.btn--now.is-active i { background: var(--emerald-l); opacity: 1; box-shadow: 0 0 8px var(--emerald-l); animation: pulse 1.6s ease-in-out infinite; }
#playBtn .i-play, #playBtn[data-state="paused"] .i-pause { display: none; }
#playBtn[data-state="paused"] .i-play { display: block; }
#playBtn svg { fill: currentColor; stroke: none; }
.when { display: flex; gap: 8px; }
.field { position: relative; display: flex; }
.field select, .field input { height: 38px; border-radius: 99px; border: 1px solid var(--hair); background: rgba(9, 5, 20, .7); padding: 0 14px; color-scheme: dark;
  font: 400 15px/1 var(--f-t); color: var(--cream); transition: border-color .2s; min-width: 0; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23e2b650' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 11px; }
.field select:hover, .field input:hover, .field select:focus, .field input:focus { border-color: var(--gold); outline: none; }
.field option { background: var(--ink-2); color: var(--cream); }
.seg { display: inline-flex; border: 1px solid var(--hair); border-radius: 99px; padding: 2px; background: rgba(9, 5, 20, .5); flex: none; }
.seg .btn { border: 0; background: transparent; min-height: 32px; padding: 0 14px; }
.seg .btn:hover { background: rgba(226, 182, 80, .17); box-shadow: none; }
.seg .btn.is-on { background: linear-gradient(180deg, #fff3c4, #eec257 46%, #c88d22); }
.row--tools .ico[aria-pressed="false"] { opacity: .62; }
.row--tools .ico[aria-pressed="false"]:hover { opacity: 1; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); z-index: 3;
  padding: 5px 11px; border-radius: 9px; background: rgba(13, 8, 24, .96); border: 1px solid var(--hair); color: var(--cream);
  font: 400 13.5px/1.3 var(--f-t); letter-spacing: 0; white-space: nowrap; pointer-events: none; }
.hint { position: fixed; left: 50%; bottom: calc(var(--dock-h) + 30px); transform: translateX(-50%); z-index: 6; pointer-events: none; white-space: nowrap;
  padding: 7px 18px; border-radius: 99px; background: rgba(13, 8, 24, .66); border: 1px solid var(--hair); color: var(--cream-2); font-size: 14.5px; font-style: italic;
  transition: opacity .8s; }
.hint.is-off, body.has-info .hint { opacity: 0; }

/* Подписи в сцене */
#labels { position: fixed; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.lbl { position: absolute; left: 0; top: 0; pointer-events: auto; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(13, 8, 24, .6); border: 1px solid rgba(226, 182, 80, .42); color: var(--cream); border-radius: 99px;
  padding: 3px 11px 3px 8px; font: 700 13px/1.45 var(--f-d); letter-spacing: .03em; transition: opacity .25s, background .2s, color .2s;
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.lbl i { width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 7px currentColor; }
.lbl:hover { background: linear-gradient(180deg, #fff3c4, #eec257); color: #2a1505; border-color: transparent; }
.lbl.is-off, .clbl.is-off { opacity: 0; pointer-events: none; }
.lbl--dwarf { font-size: 11.5px; opacity: .8; border-color: rgba(226, 182, 80, .25); }
.lbl--sun { border-color: rgba(255, 224, 131, .75); }
.lbl--you { background: linear-gradient(180deg, #fff3c4, #eec257 55%, #c88d22); color: #2a1505; border-color: transparent; pointer-events: none; padding: 4px 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
.lbl--you::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-bottom: 0; border-top-color: #c88d22; }
.clbl { position: absolute; left: 0; top: 0; color: rgba(170, 182, 255, .55); font: 400 11.5px/1 var(--f-d); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; pointer-events: none; transition: opacity .3s; }
.clbl--z { color: rgba(255, 232, 160, .9); font-weight: 700; font-size: 12.5px; text-shadow: 0 0 10px rgba(226, 182, 80, .6); }
#reticle { position: absolute; left: 0; top: 0; border-radius: 50%; border: 1px solid rgba(255, 240, 184, .75); box-shadow: 0 0 14px rgba(226, 182, 80, .35), inset 0 0 14px rgba(226, 182, 80, .16); pointer-events: none; }
#reticle::before { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 1px dashed rgba(226, 182, 80, .5); animation: turn 40s linear infinite; }
#reticle::after { content: ''; position: absolute; left: 50%; top: -13px; width: 7px; height: 7px; margin-left: -3.5px; transform: rotate(45deg); background: var(--gold-l); box-shadow: 0 0 8px var(--gold); }

/* Релакс */
#relaxExit { position: fixed; right: 20px; bottom: 20px; z-index: 20; display: none; background: rgba(13, 8, 24, .7); }
body.relax #relaxExit { display: inline-flex; }
body.relax .top, body.relax .side, body.relax .info, body.relax .catalog, body.relax .dock, body.relax #labels, body.relax .credits, body.relax .hint, body.relax .corner { display: none !important; }

@media (max-width: 1180px) { .brand span { display: none; } }
@media (max-height: 760px) and (min-width: 761px) {
  .you__time { font-size: 34px; } .you { padding: 14px 18px 12px; } .you__events, .you__moon { display: none; }
}
@media (max-width: 760px) {
  :root { --top-h: 64px; --gut: 8px; --dock-h: 150px; }
  body { font-size: 15px; }
  .corner, .hint { display: none; }
  .top { padding: 0 10px; gap: 10px; }
  .top::after { bottom: 6px; }
  .top > * { top: -3px; }
  .brand img { width: 36px; height: 36px; border-radius: 9px; }
  .top__title { position: relative !important; left: auto; top: -3px !important; transform: none; text-align: left; min-width: 0; }
  .top h1 { font-size: 16.5px; }
  .top__time { justify-content: flex-start; font-size: 12.5px; gap: 6px; margin-top: 2px; }
  .live { font-size: 9px; padding: 1px 7px 1px 6px; }
  #catalogBtn span { display: none; }
  #catalogBtn { width: 38px; padding: 0; }
  .side { top: auto; bottom: calc(var(--dock-h) + 16px); left: 8px; right: 8px; width: auto; max-height: 46vh; }
  .you { padding: 11px 14px 11px; }
  .you .kick, .you .you__events, .you .you__moon { display: none; }
  .you__head { margin-top: 0; }
  .you__place { font-size: 16px; }
  .you__time { font-size: 24px; display: inline-block; margin: 0 10px 0 0; }
  .you__status { display: inline-block; font-size: 13.5px; margin: 0; }
  .you__btns { margin-top: 8px; }
  .you__btns .btn { min-height: 34px; font-size: 13.5px; padding: 0 12px; }
  body.has-info .side, body.show-sky .you { display: none; }
  .skynow { padding: 14px 8px 8px 16px; }
  .info { top: auto; bottom: calc(var(--dock-h) + 16px); left: 8px; right: 8px; width: auto; }
  .info__body { max-height: 44vh; padding: 16px 16px 14px; }
  .info .medal { width: 58px; height: 58px; }
  .info h2 { font-size: 26px; }
  .info p { font-size: 15.5px; }
  .info dl { font-size: 14.5px; margin: 12px 0 10px; }
  .catalog { top: calc(var(--top-h) + 2px); right: 8px; left: 8px; width: auto; max-height: calc(100vh - var(--top-h) - var(--dock-h) - 22px); }
  .credits { left: 8px; right: 8px; width: auto; bottom: calc(var(--dock-h) + 16px); }
  .dock { left: 8px; right: 8px; bottom: 8px; transform: none; width: auto; max-width: none; padding: 10px 10px 9px; gap: 7px; border-radius: 16px; }
  .row { gap: 6px; flex-wrap: wrap; }
  .btn { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
  .ico { width: 36px; padding: 0; }
  .sep { display: none; }
  .when { flex-basis: 100%; width: 100%; min-width: 0; gap: 6px; }
  .field { flex: 1 1 50%; min-width: 0; }
  .field select, .field input { width: 100%; height: 36px; font-size: 14px; padding: 0 10px; }
  .field select { padding-right: 28px; background-position: right 10px center; }
  .row--tools { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
  .row--tools::-webkit-scrollbar { display: none; }
  .seg .btn { min-height: 30px; padding: 0 11px; }
  [data-tip]:hover::after { display: none; }
  .lbl { font-size: 12px; padding: 2px 9px 2px 7px; }
}
@media (prefers-reduced-motion: reduce) { .rose::before, .rose i, #reticle::before { animation: none; } }
