/* Жұлдызды аспан — стильдер */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  font-family: "Segoe UI", "Noto Sans", Arial, sans-serif;
  background: #02040a;
  color: #cfe2f5;
  font-size: 14px;
}
#sky { position: fixed; inset: 0; display: block; cursor: grab; }
#sky:active { cursor: grabbing; }

/* ---------- Жапсырмалар қабаты ---------- */
#labels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.const-label {
  position: absolute; left: 0; top: 0; text-align: center;
  pointer-events: none; white-space: nowrap; opacity: 0.8;
  text-shadow: 0 0 6px #000, 0 0 3px #000;
}
.const-label .kzn { display: block; font-size: 13px; letter-spacing: 2.5px; color: #9fb8d8; font-weight: 600; text-transform: uppercase; }
.const-label .lan { display: block; font-size: 10px; letter-spacing: 1.5px; color: #5f7898; font-style: italic; }
.star-label {
  position: absolute; left: 0; top: 0; font-size: 11px; color: #e6d9b8;
  pointer-events: none; white-space: nowrap; text-shadow: 0 0 5px #000, 0 0 3px #000;
  letter-spacing: 0.4px;
}
.cardinal-label {
  position: absolute; left: 0; top: 0; font-size: 13px; color: #ff9d76;
  pointer-events: none; font-weight: 600; text-shadow: 0 0 6px #000;
  letter-spacing: 1px; opacity: 0.9;
}
.cardinal-label.main { font-size: 17px; font-weight: 700; }

/* ---------- Меңзеу белгісі мен қалқыма ---------- */
#hoverMark {
  position: fixed; display: none; width: 26px; height: 26px;
  margin: -13px 0 0 -13px; border: 1.5px solid rgba(255, 213, 131, 0.9);
  border-radius: 50%; pointer-events: none; z-index: 4;
  box-shadow: 0 0 10px rgba(255, 213, 131, 0.35), inset 0 0 8px rgba(255, 213, 131, 0.2);
}
#tooltip {
  position: fixed; display: none; max-width: 320px; z-index: 5;
  background: rgba(8, 14, 24, 0.92); border: 1px solid rgba(120, 160, 210, 0.35);
  border-radius: 8px; padding: 8px 11px; pointer-events: none;
  font-size: 13px; line-height: 1.45; backdrop-filter: blur(4px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
#tooltip b { color: #ffe9c0; font-size: 14px; }
#tooltip .dim { color: #7e95b5; font-size: 12px; }
#tooltip .tip-sub { color: #a9c6e8; margin-top: 3px; }
#tooltip .tip-hint { color: #5f7898; font-size: 11px; margin-top: 4px; }

/* ---------- Жоғарғы панель ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 7px 12px;
  background: linear-gradient(rgba(5, 9, 17, 0.92), rgba(5, 9, 17, 0.75));
  border-bottom: 1px solid rgba(90, 130, 175, 0.25);
  backdrop-filter: blur(6px);
}
#listToggle {
  background: none; border: 1px solid rgba(120, 160, 210, 0.4); color: #cfe2f5;
  font-size: 16px; border-radius: 6px; width: 34px; height: 30px; cursor: pointer;
}
#listToggle:hover { background: rgba(120, 160, 210, 0.15); }
#title b { font-size: 16px; color: #ffe9c0; letter-spacing: 0.5px; display: block; line-height: 1.1; }
#title span { font-size: 10.5px; color: #6d87a8; letter-spacing: 0.4px; }
.tb-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tb-group > label { font-size: 11px; color: #6d87a8; text-transform: uppercase; letter-spacing: 1px; }
select, input[type="datetime-local"], input[type="number"], input[type="text"] {
  background: rgba(14, 22, 36, 0.9); color: #cfe2f5;
  border: 1px solid rgba(120, 160, 210, 0.35); border-radius: 6px;
  padding: 4px 7px; font-size: 13px; font-family: inherit; outline: none;
}
select:focus, input:focus { border-color: rgba(255, 213, 131, 0.6); }
input[type="number"] { width: 68px; }
#customLoc { display: none; gap: 4px; }
button {
  background: rgba(20, 32, 52, 0.9); color: #cfe2f5; cursor: pointer;
  border: 1px solid rgba(120, 160, 210, 0.35); border-radius: 6px;
  padding: 4px 10px; font-size: 13px; font-family: inherit;
}
button:hover { background: rgba(40, 60, 90, 0.9); border-color: rgba(255, 213, 131, 0.5); }
#clock { font-variant-numeric: tabular-nums; color: #ffd583; font-size: 13px; min-width: 132px; }
.toggles { gap: 4px; }
.tg {
  display: inline-flex; align-items: center; cursor: pointer; user-select: none;
}
.tg input { display: none; }
.tg span {
  padding: 3px 9px; border-radius: 20px; font-size: 12px;
  border: 1px solid rgba(120, 160, 210, 0.3); color: #7e95b5;
  transition: all 0.15s;
}
.tg input:checked + span {
  color: #ffe9c0; border-color: rgba(255, 213, 131, 0.55);
  background: rgba(255, 213, 131, 0.08);
}

/* ---------- Сол жақ тізім ---------- */
#sidebar {
  position: fixed; top: 56px; bottom: 12px; left: 12px; width: 258px; z-index: 8;
  background: rgba(6, 11, 20, 0.88); border: 1px solid rgba(90, 130, 175, 0.28);
  border-radius: 12px; backdrop-filter: blur(6px);
  display: flex; flex-direction: column; padding: 10px;
  transform: translateX(-290px); transition: transform 0.25s ease;
}
#sidebar.open { transform: translateX(0); }
#search { width: 100%; margin-bottom: 8px; }
#conList { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2c405c transparent; }
.list-row {
  display: flex; align-items: center; gap: 7px; padding: 5px 7px;
  border-radius: 7px; cursor: pointer; line-height: 1.2;
}
.list-row:hover { background: rgba(120, 160, 210, 0.12); }
.list-row.active { background: rgba(255, 213, 131, 0.12); outline: 1px solid rgba(255, 213, 131, 0.35); }
.lr-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: #33455e;
}
.lr-dot.up { background: #7fd89a; box-shadow: 0 0 5px rgba(127, 216, 154, 0.6); }
.lr-kz { flex: 1; font-size: 13.5px; color: #d7e6f7; }
.lr-zod { color: #ffd583; font-size: 11px; }
.lr-la { font-size: 11px; color: #5f7898; font-style: italic; }
.sb-legend { padding-top: 8px; font-size: 11px; color: #5f7898; display: flex; align-items: center; gap: 4px; }
.list-header {
  margin: 10px 4px 4px; padding-top: 8px; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 1.4px; color: #8fd0ff;
  border-top: 1px solid rgba(90, 130, 175, 0.25);
}

/* ---------- Оң жақ ақпарат панелі ---------- */
#panel {
  position: fixed; top: 56px; bottom: 12px; right: 12px; width: 344px; z-index: 9;
  background: rgba(6, 11, 20, 0.92); border: 1px solid rgba(90, 130, 175, 0.3);
  border-radius: 12px; backdrop-filter: blur(8px);
  transform: translateX(380px); transition: transform 0.28s ease;
  display: flex; flex-direction: column;
}
#panel.open { transform: translateX(0); }
#panelClose {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 28px; height: 28px; padding: 0; border-radius: 50%;
}
#panelBody { overflow-y: auto; padding: 14px 16px; scrollbar-width: thin; scrollbar-color: #2c405c transparent; }
.con-head { margin-bottom: 8px; padding-right: 26px; }
.con-kz { font-size: 22px; font-weight: 700; color: #ffe9c0; letter-spacing: 0.5px; }
.con-sub { font-size: 12.5px; color: #7e95b5; font-style: italic; margin-top: 2px; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.badge {
  font-size: 11px; padding: 2.5px 8px; border-radius: 20px;
  border: 1px solid rgba(120, 160, 210, 0.35); color: #a9c6e8;
}
.badge.zod { border-color: rgba(255, 213, 131, 0.5); color: #ffd583; }
.vis-block {
  background: rgba(20, 34, 54, 0.5); border-radius: 8px; padding: 8px 10px; margin: 8px 0;
  border: 1px solid rgba(90, 130, 175, 0.2);
}
.vis-block.vis-never { border-color: rgba(220, 120, 100, 0.35); }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 2.5px 0; font-size: 12.5px; }
.row span { color: #7e95b5; }
.row b { color: #d7e6f7; font-weight: 600; text-align: right; }
.main-star { padding: 6px 0; border-bottom: 1px solid rgba(90, 130, 175, 0.2); margin-bottom: 4px; }
#panelBody h4 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 1.5px;
  color: #8fd0ff; margin: 12px 0 4px;
}
#panelBody p { font-size: 13.5px; line-height: 1.55; color: #c4d7ec; }
#panelBody p.myth { color: #d9cdb0; font-style: italic; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.chip {
  font-size: 12px; padding: 3px 9px; border-radius: 20px; cursor: pointer;
  border: 1px solid rgba(120, 160, 210, 0.35); color: #d7e6f7;
  transition: all 0.15s;
}
.chip em { font-style: normal; color: #6d87a8; font-size: 10.5px; }
.chip:hover { border-color: rgba(255, 213, 131, 0.6); background: rgba(255, 213, 131, 0.08); }
.chip.active { border-color: #ffd583; color: #ffe9c0; background: rgba(255, 213, 131, 0.12); }
.star-card {
  background: rgba(24, 38, 58, 0.55); border: 1px solid rgba(143, 208, 255, 0.25);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
}
.star-card-title { font-size: 16px; font-weight: 700; color: #eaf3ff; margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.star-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.ast-card {
  background: rgba(50, 40, 18, 0.45); border: 1px solid rgba(255, 213, 131, 0.3);
  border-radius: 10px; padding: 10px 12px; margin-bottom: 10px;
}
.ast-title { font-size: 15px; font-weight: 700; color: #ffd583; }
.ast-sub { font-size: 11px; color: #a89468; margin: 2px 0 6px; }
.ast-card p { font-size: 12.5px !important; }

/* ---------- Компас ---------- */
#compassWrap {
  position: fixed; left: 286px; bottom: 14px; z-index: 7; text-align: center;
  transition: left 0.25s ease;
}
body.sb-closed #compassWrap { left: 14px; }
#compass { display: block; }
#readout {
  margin-top: 4px; font-size: 11.5px; color: #8aa4c4;
  background: rgba(6, 10, 18, 0.72); border-radius: 6px; padding: 3px 8px;
  white-space: nowrap;
}

#hint {
  position: fixed; right: 14px; bottom: 12px; z-index: 6;
  font-size: 11px; color: #5f7898;
  background: rgba(6, 10, 18, 0.6); border-radius: 6px; padding: 4px 9px;
}

/* ---------- Кішкентай экрандар ---------- */
@media (max-width: 900px) {
  #sidebar { width: 230px; }
  #panel { width: 300px; }
  #topbar { gap: 8px; }
  #hint { display: none; }
  #compassWrap { left: 14px; }
}

/* ==================================================================
   SPA: тіл ауыстырғыш, басты бет, мектеп нұсқасы
   ================================================================== */

/* ---------- Тілдер ---------- */
#langSw {
  position: fixed; top: 14px; right: 16px; z-index: 60;
  display: flex; gap: 6px;
}
#langSw button {
  font-family: Rubik, "Segoe UI", sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: 0.8px;
  padding: 6px 11px; border-radius: 20px;
  background: rgba(10, 16, 28, 0.65); color: #8fa7c7;
  border: 1px solid rgba(130, 160, 200, 0.3);
  backdrop-filter: blur(6px);
}
#langSw button:hover { color: #ffe9c0; }
#langSw button.active {
  color: #ffe9c0; border-color: rgba(255, 213, 131, 0.65);
  background: rgba(255, 213, 131, 0.12);
}

/* ---------- Басты бет ---------- */
#landing {
  position: fixed; inset: 0; z-index: 40; overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 110%, #17263e 0%, #0a1220 42%, #04070e 100%);
  display: flex; align-items: center; justify-content: center;
}
#landingStars { position: absolute; inset: 0; pointer-events: none; }
#landingStars span {
  position: absolute; border-radius: 50%;
  background: #dbe9fb; opacity: 0.7;
  animation: ldTwinkle 3s ease-in-out infinite;
}
@keyframes ldTwinkle {
  0%, 100% { opacity: 0.15; transform: scale(0.8); }
  50% { opacity: 0.9; transform: scale(1.15); }
}
.landing-inner {
  position: relative; text-align: center; padding: 24px;
  max-width: 860px; width: 100%;
}
#ldTitle {
  font-family: Comfortaa, Rubik, "Segoe UI", sans-serif;
  font-size: clamp(34px, 6vw, 56px); font-weight: 700;
  color: #ffeccb; letter-spacing: 1px;
  text-shadow: 0 0 30px rgba(255, 213, 131, 0.25);
  text-wrap: balance;
}
#ldSub {
  margin-top: 10px; font-size: clamp(14px, 2.2vw, 17px);
  color: #93aac9; text-wrap: balance;
}
.landing-cards {
  margin-top: 42px;
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
}
.ld-card {
  width: 320px; max-width: 92vw; text-align: left;
  border-radius: 18px; padding: 0 0 18px;
  background: rgba(13, 20, 34, 0.75);
  border: 1px solid rgba(120, 155, 205, 0.28);
  cursor: pointer; overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s, box-shadow 0.22s;
  font-family: inherit;
}
.ld-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 213, 131, 0.6);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 213, 131, 0.12);
}
.ld-art {
  display: block; position: relative; height: 128px; overflow: hidden;
}
.ld-sky {
  position: absolute; inset: 0;
  background: linear-gradient(#060b16 0%, #0c1830 55%, #1b3054 100%);
}
.ld-steppe {
  position: absolute; left: 0; right: 0; bottom: -4px; height: 44px;
  background:
    radial-gradient(120px 34px at 18% 100%, #0c1322 60%, transparent 61%),
    radial-gradient(200px 46px at 55% 100%, #0a111e 60%, transparent 61%),
    radial-gradient(160px 30px at 88% 100%, #0c1322 60%, transparent 61%),
    linear-gradient(transparent 0, transparent 55%, #070c16 56%);
}
.ld-star {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: #ffe9c0; box-shadow: 0 0 6px #ffe9c0;
  animation: ldTwinkle 2.6s ease-in-out infinite;
}
.ld-star.s1 { left: 18%; top: 22%; }
.ld-star.s2 { left: 34%; top: 46%; animation-delay: 0.6s; }
.ld-star.s3 { left: 52%; top: 18%; animation-delay: 1.1s; width: 4px; height: 4px; }
.ld-star.s4 { left: 70%; top: 38%; animation-delay: 1.7s; }
.ld-star.s5 { left: 84%; top: 20%; animation-delay: 2.2s; }
.pro-art {
  display: flex; align-items: center; justify-content: center;
  font-size: 54px; height: 128px;
  background: linear-gradient(#070d18, #101b30);
}
.ld-name {
  display: block; padding: 14px 18px 2px;
  font-family: Comfortaa, Rubik, sans-serif;
  font-size: 20px; font-weight: 700; color: #ffe9c0;
}
.ld-desc {
  display: block; padding: 4px 18px 0;
  font-size: 13px; line-height: 1.5; color: #93aac9;
}
.ld-credit {
  margin-top: 40px; font-size: 10.5px; color: #45597a; letter-spacing: 0.3px;
}

/* ---------- Мектеп нұсқасы ---------- */
#schoolRoot { position: fixed; inset: 0; }
#sSky { position: fixed; inset: 0; display: block; cursor: grab; }
#sSky:active { cursor: grabbing; }
#sLabels { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
#sHoverMark {
  position: fixed; display: none; width: 30px; height: 30px;
  margin: -15px 0 0 -15px; border: 2px solid rgba(255, 213, 131, 0.9);
  border-radius: 50%; pointer-events: none; z-index: 4;
  box-shadow: 0 0 14px rgba(255, 213, 131, 0.45), inset 0 0 10px rgba(255, 213, 131, 0.25);
}
#sBack {
  position: fixed; top: 14px; left: 16px; z-index: 30;
  width: 40px; height: 40px; border-radius: 50%;
  font-size: 18px; color: #dbe9fb;
  background: rgba(10, 16, 28, 0.65);
  border: 1px solid rgba(130, 160, 200, 0.35);
  backdrop-filter: blur(6px);
}
#sBack:hover { border-color: rgba(255, 213, 131, 0.6); color: #ffe9c0; }
#sCompassWrap {
  position: fixed; left: 16px; top: 66px; z-index: 20; text-align: center;
}
#sReadout {
  margin-top: 5px; font-size: 11px; color: #9db4d4;
  background: rgba(8, 12, 20, 0.66); border-radius: 7px; padding: 3px 8px;
  white-space: nowrap;
}
.s-star-label {
  position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap;
  font-family: Rubik, "Segoe UI", sans-serif;
  font-size: 13px; color: #ffedc9; letter-spacing: 0.4px;
  text-shadow: 0 0 8px #000, 0 0 4px #000, 0 0 18px rgba(255, 213, 131, 0.5);
  animation: sFadeIn 0.8s ease both;
}
.s-con-label {
  position: absolute; left: 0; top: 0; pointer-events: none; white-space: nowrap;
  font-family: Comfortaa, Rubik, sans-serif;
  font-size: clamp(20px, 3vw, 30px); font-weight: 700; color: #ffe9c0;
  letter-spacing: 3px;
  text-shadow: 0 0 14px rgba(255, 213, 131, 0.55), 0 2px 8px #000;
  animation: sFadeIn 1.2s ease both;
}
@keyframes sFadeIn { from { opacity: 0; } to { opacity: 1; } }

/* карточка */
#sCard {
  position: fixed; top: 70px; right: 16px; bottom: 16px; width: 356px; z-index: 25;
  background: rgba(9, 14, 25, 0.9);
  border: 1px solid rgba(130, 165, 215, 0.3);
  border-radius: 16px; backdrop-filter: blur(10px);
  transform: translateX(400px); transition: transform 0.3s ease;
  display: flex; flex-direction: column;
  font-family: Rubik, "Segoe UI", sans-serif;
}
#sCard.open { transform: translateX(0); }
#sCardClose {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 30px; height: 30px; border-radius: 50%; padding: 0;
  background: rgba(20, 30, 50, 0.8); color: #cfe2f5;
  border: 1px solid rgba(130, 160, 200, 0.35);
}
#sCardBody { overflow-y: auto; padding: 18px 20px; scrollbar-width: thin; scrollbar-color: #2c405c transparent; }
.sc-name {
  font-family: Comfortaa, Rubik, sans-serif;
  font-size: 26px; font-weight: 700; color: #ffe9c0; padding-right: 28px;
}
.sc-latin { font-size: 13px; color: #7e95b5; font-style: italic; margin-top: 2px; }
.sc-star {
  margin-top: 12px; font-size: 14px; color: #dbe9fb;
  background: rgba(30, 45, 70, 0.5); border-radius: 10px; padding: 8px 12px;
  display: flex; align-items: center; gap: 8px;
}
.sc-star b { color: #ffedc9; }
.sc-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.sc-facts {
  margin-top: 12px; background: rgba(22, 34, 54, 0.45);
  border: 1px solid rgba(120, 155, 205, 0.2);
  border-radius: 12px; padding: 10px 12px;
}
.sc-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; }
.sc-row span { color: #7e95b5; }
.sc-row b { color: #dbe9fb; font-weight: 500; text-align: right; }
.sc-never { color: #ff9d76; }
.sc-sec {
  margin: 16px 0 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase;
  color: #8fd0ff;
}
#sCardBody p { font-size: 14.5px; line-height: 1.6; color: #c9dbf0; }
#sCardBody p.sc-myth { color: #e2d6b8; font-style: italic; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-chip {
  font-size: 12.5px; padding: 4px 11px; border-radius: 20px;
  border: 1px solid rgba(255, 213, 131, 0.35); color: #ffedc9;
  background: rgba(255, 213, 131, 0.06);
}

/* төменгі кеңес */
#sHint {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 18; text-align: center; max-width: 90vw;
  font-family: Rubik, sans-serif; font-size: 13px; color: #a8bedd;
  background: rgba(8, 12, 20, 0.6); border-radius: 20px; padding: 7px 16px;
  transition: opacity 0.4s; pointer-events: none;
}

/* AR */
#arBtn {
  position: fixed; right: 16px; bottom: 18px; z-index: 26;
  font-family: Rubik, sans-serif; font-size: 14px; font-weight: 700;
  padding: 11px 18px; border-radius: 26px;
  color: #06101e; background: linear-gradient(135deg, #ffe9c0, #ffd583);
  border: none; box-shadow: 0 4px 18px rgba(255, 213, 131, 0.35);
}
#arBtn:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(255, 213, 131, 0.45); }
#arExit {
  position: fixed; right: 16px; bottom: 18px; z-index: 26;
  font-family: Rubik, sans-serif; font-size: 14px; font-weight: 700;
  padding: 11px 18px; border-radius: 26px;
  color: #ffe9c0; background: rgba(10, 16, 28, 0.8);
  border: 1px solid rgba(255, 213, 131, 0.55);
}
#arModal {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(3, 5, 10, 0.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.ar-box {
  max-width: 420px; width: 100%;
  background: rgba(12, 18, 32, 0.97);
  border: 1px solid rgba(140, 175, 225, 0.35);
  border-radius: 18px; padding: 24px;
  font-family: Rubik, sans-serif;
}
#arModalText { font-size: 15px; line-height: 1.65; color: #d5e4f6; }
.ar-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }
.ar-actions button { font-family: inherit; font-size: 14px; padding: 9px 20px; border-radius: 22px; }
#arStart { color: #06101e; background: linear-gradient(135deg, #ffe9c0, #ffd583); border: none; font-weight: 700; }
#arCancel { color: #cfe2f5; background: rgba(25, 38, 60, 0.9); border: 1px solid rgba(130, 160, 200, 0.35); }

/* жүктелу экраны */
#sLoading {
  position: fixed; inset: 0; z-index: 35;
  background: #04070e;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  transition: opacity 0.6s; pointer-events: none;
}
.s-load-star {
  font-size: 46px; color: #ffd583;
  animation: loadPulse 1.4s ease-in-out infinite;
  text-shadow: 0 0 30px rgba(255, 213, 131, 0.6);
}
@keyframes loadPulse {
  0%, 100% { transform: scale(0.85) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.2) rotate(22deg); opacity: 1; }
}
#sLoadText { font-family: Rubik, sans-serif; font-size: 14px; color: #93aac9; }

/* мектеп нұсқасы — телефон экрандары */
@media (max-width: 700px) {
  #sCard {
    top: auto; left: 10px; right: 10px; bottom: 10px; width: auto;
    max-height: 58vh;
    transform: translateY(110%);
  }
  #sCard.open { transform: translateY(0); }
  #sCompassWrap { top: auto; bottom: 84px; left: 12px; }
  #sCompassWrap canvas { width: 92px; height: 92px; }
  #sHint { bottom: auto; top: 64px; }
  #arBtn, #arExit { bottom: 14px; }
  .landing-cards { gap: 14px; }
}

