:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  background: #080a0f;
  color: #f3f1e8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 50% 18%, #151a24 0, #080a0f 48%, #050609 100%);
}

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
}

.shell {
  width: min(100%, 560px);
  padding: 0 20px;
  display: grid;
  gap: 22px;
  justify-items: center;
}

.clock-wrap {
  position: relative;
  width: min(92vw, 500px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: visible;
}

.dial,
#clock {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dial {
  border-radius: 50%;
  border: none;
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.42);
 background: conic-gradient(from 0deg, #d8efff 0deg, #89b8d9 105deg, #b8844a 132deg, #31577d 150deg, #000102 180deg, #0a1d36 240deg, #31577d 290deg, #d8efff 360deg);
}

#clock {
  overflow: visible;
}

.outer-ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.2;
}

.tick {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  stroke-linecap: round;
}

.tick.major {
  stroke: rgba(255, 244, 220, 0.56);
  stroke-width: 1.35;
}

.anchor {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-anchor: middle;
  dominant-baseline: middle;
  fill: rgba(255, 255, 255, 0.84);
}

.major-label {
  font-size: 12px;
  fill: rgba(255, 244, 220, 0.9);
}

.sun-hand {
  stroke: rgba(255, 247, 230, 0.82);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.sun-hand.night {
  stroke: rgba(231, 176, 76, 0.72);
}

.sun-ray {
  stroke: rgba(255, 240, 202, 0.16);
  stroke-width: 1.05;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  filter: blur(1.7px);
  animation: sunFlarePulse 5.6s ease-in-out infinite;
}

.ray-01, .ray-07, .ray-11, .ray-15 { stroke-width: 1.55; }
.ray-03, .ray-05, .ray-09, .ray-13, .ray-17, .ray-19 { stroke-width: 1.25; }
.ray-02, .ray-06, .ray-10, .ray-14, .ray-18, .ray-20 { stroke-width: 0.9; }

.ray-01 { animation-delay: 0s; }
.ray-02 { animation-delay: .3s; }
.ray-03 { animation-delay: .7s; }
.ray-04 { animation-delay: 1s; }
.ray-05 { animation-delay: 1.4s; }
.ray-06 { animation-delay: 1.8s; }
.ray-07 { animation-delay: 2.1s; }
.ray-08 { animation-delay: 2.5s; }
.ray-09 { animation-delay: 2.8s; }
.ray-10 { animation-delay: 3.1s; }
.ray-11 { animation-delay: 3.5s; }
.ray-12 { animation-delay: 3.8s; }
.ray-13 { animation-delay: 4.1s; }
.ray-14 { animation-delay: 4.4s; }
.ray-15 { animation-delay: 4.7s; }
.ray-16 { animation-delay: 5s; }
.ray-17 { animation-delay: 5.2s; }
.ray-18 { animation-delay: 1.2s; }
.ray-19 { animation-delay: 2.3s; }
.ray-20 { animation-delay: 3.3s; }

.sun-aura {.sun-aura {
  fill: rgba(255, 238, 176, 0.22);
  filter: blur(8px);
  transform-origin: 160px 14px;
  animation: sunAura 4.8s ease-in-out infinite;
}

.sun-aura.night {
  fill: rgba(170, 177, 186, 0.12);
  filter: blur(8px);
}

.sun-body {
  fill: #fff7df;
  stroke: none;
}

.sun-body.night {
  fill: #8f969f;
  stroke: none;
}

.hub {
  fill: #050b12;
}

.meta {
  width: 100%;
  min-height: 72px;
  display: grid;
  gap: 7px;
  justify-items: center;
  text-align: center;
}

.phase {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.status {
  max-width: 34ch;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.52);
}

button {
  margin-top: 5px;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  color: #f3f1e8;
  font: inherit;
  font-size: 11px;
  letter-spacing: 0.12em;
}

@media (min-width: 700px) {
  .shell {
    }

  .clock-wrap {
    width: min(72vh, 500px);
  }
}

@keyframes sunAura {
  0%, 100% { opacity: 0.16; transform: scale(0.98); }
  50% { opacity: 0.30; transform: scale(1.05); }
}

50% { opacity: 0.22; transform: scale(1.08); }
}


  50% { opacity: 0.24; }
}

@keyframes sunFlarePulse {
  0%, 100% { opacity: 0.07; }
  45% { opacity: 0.18; }
  60% { opacity: 0.11; }
}

/* SUN_TIGHT_SPIKE_OVERRIDE */

.sun-hand {
  stroke: #17304d !important;
  stroke-width: 1.9;
  stroke-linecap: round;
  opacity: 0.94 !important;
}

.sun-hand.night {
  stroke: #17304d !important;
  opacity: 0.94 !important;
}

.sun-ray {
  stroke: rgba(255, 236, 191, 0.16);
  stroke-width: 1.0;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  transform-origin: 160px 14px;
  filter: blur(1.15px);
  animation-name: sunSpikeFlicker;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.ray-01 { animation-duration: 2.9s; animation-delay: -.4s; stroke-width: 1.35; }
.ray-02 { animation-duration: 4.1s; animation-delay: -1.2s; }
.ray-03 { animation-duration: 3.3s; animation-delay: -.8s; stroke-width: .8; }
.ray-04 { animation-duration: 4.7s; animation-delay: -2.1s; }
.ray-05 { animation-duration: 3.6s; animation-delay: -1.7s; stroke-width: 1.3; }
.ray-06 { animation-duration: 5.1s; animation-delay: -.6s; stroke-width: .8; }
.ray-07 { animation-duration: 3.1s; animation-delay: -2.5s; }
.ray-08 { animation-duration: 4.4s; animation-delay: -1.4s; stroke-width: .85; }
.ray-09 { animation-duration: 3.8s; animation-delay: -.2s; }
.ray-10 { animation-duration: 5.3s; animation-delay: -3.0s; stroke-width: 1.3; }
.ray-11 { animation-duration: 3.4s; animation-delay: -1.9s; }
.ray-12 { animation-duration: 4.9s; animation-delay: -.9s; stroke-width: .8; }
.ray-13 { animation-duration: 3.0s; animation-delay: -2.2s; stroke-width: 1.3; }
.ray-14 { animation-duration: 4.3s; animation-delay: -.5s; }
.ray-15 { animation-duration: 3.7s; animation-delay: -1.6s; stroke-width: 1.2; }
.ray-16 { animation-duration: 5.0s; animation-delay: -2.8s; stroke-width: .8; }
.ray-17 { animation-duration: 3.2s; animation-delay: -1.1s; }
.ray-18 { animation-duration: 4.6s; animation-delay: -.3s; stroke-width: .75; }

.sun-aura {
  fill: rgba(255, 231, 161, 0.12);
  filter: blur(6px);
  animation: sunAuraPulse 4.6s ease-in-out infinite;
}

.sun-aura.night {
  fill: rgba(150, 158, 168, 0.07);
}

.sun-body {
  stroke: none !important;
}

.sun-body.night {
  stroke: none !important;
}

.hub {
  fill: #040a12;
}

@keyframes sunSpikeFlicker {
  0%   { opacity: 0.03; transform: scale(0.72); }
  24%  { opacity: 0.14; transform: scale(0.95); }
  47%  { opacity: 0.06; transform: scale(0.82); }
  68%  { opacity: 0.20; transform: scale(1.08); }
  100% { opacity: 0.04; transform: scale(0.76); }
}

@keyframes sunAuraPulse {
  0%, 100% { opacity: 0.08; }
  50% { opacity: 0.16; }
}

/* SUN_POINTY_FLARE_FINAL */
.sun-hand {
  stroke: #17304d !important;
  stroke-width: 2.05 !important;
  stroke-linecap: round;
  opacity: 0.96 !important;
}
.sun-hand.night {
  stroke: #17304d !important;
  opacity: 0.90 !important;
}
.sun-flare-layer {
  transform-origin: 160px 0px;
  transform-box: view-box;
}
.sun-flare-core { animation: sunFlareRotateCore 68s linear infinite; }
.sun-flare-mid { animation: sunFlareRotateMid 96s linear infinite reverse; }
.sun-flare-wide { animation: sunFlareRotateWide 144s linear infinite; }
.sun-spike {
  transform-origin: 160px 0px;
  animation: sunSpikeFlicker 8.2s ease-in-out infinite;
}
.flare-core {
  fill: rgba(255,250,238,0.38);
  filter: blur(0.18px);
}
.flare-mid {
  fill: rgba(255,241,203,0.24);
  filter: blur(0.50px);
}
.flare-wide {
  fill: rgba(255,230,172,0.13);
  filter: blur(0.90px);
}
.sun-flare-core .sun-spike:nth-child(2n) { animation-duration: 6.2s; animation-delay: -1.4s; }
.sun-flare-core .sun-spike:nth-child(3n) { animation-duration: 7.1s; animation-delay: -2.6s; }
.sun-flare-mid .sun-spike:nth-child(2n) { animation-duration: 8.7s; animation-delay: -2.3s; }
.sun-flare-mid .sun-spike:nth-child(3n) { animation-duration: 9.6s; animation-delay: -3.5s; }
.sun-flare-wide .sun-spike:nth-child(2n) { animation-duration: 10.8s; animation-delay: -3.8s; }
.sun-flare-wide .sun-spike:nth-child(3n) { animation-duration: 12.4s; animation-delay: -5.0s; }
.sun-aura {
  fill: rgba(255,244,214,0.22);
  filter: blur(8px);
  animation: sunAuraBreath 6.8s ease-in-out infinite;
}
.sun-aura.night {
  fill: rgba(154,162,171,0.09);
}
.sun-body {
  fill: #ffffff !important;
  stroke: none !important;
  filter: blur(0.45px) drop-shadow(0 0 4px rgba(255,255,255,0.60));
  transform-origin: 160px 0px;
  transform-box: view-box;
  animation: sunBodyMorph 6.6s ease-in-out infinite;
}
.sun-body.night {
  stroke: none !important;
  filter: blur(0.34px) drop-shadow(0 0 3px rgba(188,194,201,0.22));
}
@keyframes sunFlareRotateCore {
  from { transform: rotate(-2deg) scale(1.10); }
  to { transform: rotate(358deg) scale(1.10); }
}
@keyframes sunFlareRotateMid {
  from { transform: rotate(9deg) scale(1.10); }
  to { transform: rotate(-351deg) scale(1.10); }
}
@keyframes sunFlareRotateWide {
  from { transform: rotate(-13deg) scale(1.10); }
  to { transform: rotate(347deg) scale(1.10); }
}
@keyframes sunSpikeFlicker {
  0%,100% { opacity: 0.07; transform: scale(0.86); }
  22% { opacity: 0.19; transform: scale(1.03); }
  47% { opacity: 0.10; transform: scale(0.92); }
  71% { opacity: 0.25; transform: scale(1.09); }
  86% { opacity: 0.13; transform: scale(0.97); }
}
@keyframes sunAuraBreath {
  0%,100% { opacity: 0.12; transform: scale(0.98); }
  50% { opacity: 0.23; transform: scale(1.04); }
}
@keyframes sunBodyMorph {
  0%,100% { transform: translateY(0px) scaleX(1) scaleY(1); }
  36% { transform: translateY(0.22px) scaleX(1.02) scaleY(0.985); }
  68% { transform: translateY(-0.16px) scaleX(0.992) scaleY(1.022); }
}


/* SUN_HAND_FINAL_REFINEMENT */
.sun-hand {
stroke-width: 1.35 !important;
animation: sunHandBreath 6.4s ease-in-out infinite;
}

@keyframes sunHandBreath {
0%, 100% { stroke-opacity: 0.82; }
50% { stroke-opacity: 1; }
}

/* SUN_FLARE_ALIVE_REFINEMENT */
.sun-spike {
animation-name: sunSpikeAlive !important;
animation-timing-function: ease-in-out !important;
animation-iteration-count: infinite !important;
animation-duration: var(--flare-speed, 8s) !important;
animation-delay: var(--flare-delay, 0s) !important;
}

@keyframes sunSpikeAlive {
0%, 100% {
opacity: 0.10;
transform: scale(0.94);
}
28% {
opacity: 0.22;
transform: scale(1.02);
}
57% {
opacity: 0.14;
transform: scale(0.98);
}
76% {
opacity: 0.30;
transform: scale(var(--flare-peak, 1.08));
}
89% {
opacity: 0.17;
transform: scale(1.00);
}
}

/* LEGIBILITY_SHADOW_OVERRIDE */
.outer-ring,
.tick {
filter: drop-shadow(0 0 1.2px rgba(0, 0, 0, 0.28));
}

.major-label {
filter: drop-shadow(0 0 1.6px rgba(0, 0, 0, 0.30));
}

#label12 {
filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.34));
}

/* CLOCK_MARKS_CLEAN_BLUE */
.outer-ring,
.tick {
  stroke: #17304d !important;
  filter: none !important;
}

.major-label {
  filter: none !important;
}

#label12 {
  fill: #17304d !important;
  filter: none !important;
}

/* CLOCK_MARKS_HAIRLINE */
.outer-ring {
  stroke-width: 0.65 !important;
}

.tick {
  stroke-width: 0.55 !important;
}

/* CLOCK_MARKS_FINER_HAIRLINE */
.outer-ring {
  stroke-width: 0.45 !important;
}

.tick {
  stroke-width: 0.35 !important;
}

/* ILIZIJA_TEXT_ARCHITECTURE */
.ilizija-brand {
  display: grid;
  justify-items: center;
  gap: 3px;
  margin-bottom: 18px;
  text-align: center;
  pointer-events: none;
}

.ilizija-brand-name {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: rgba(235, 203, 150, 0.94);
}

.ilizija-brand-sub {
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: rgba(255, 255, 255, 0.58);
}

.phase {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.20em;
  color: rgba(235, 203, 150, 0.94);
}

.status {
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.52);
}

/* CENTER_TEXT_ARCHITECTURE */
.ilizija-brand,
.meta {
  width: 100%;
  justify-self: center;
  justify-items: center;
  text-align: center;
}

.ilizija-brand-name,
.ilizija-brand-sub,
.phase,
.status {
  text-align: center;
}

/* ILIZIJA_LIVE_INFO_FINAL */
.ilizija-brand {
  margin-bottom: 18px;
}

.ilizija-brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  color: #d9b477;
}

.ilizija-brand-sub {
  margin-top: 8px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: rgba(230, 212, 185, 0.72);
}

.meta {
  gap: 8px;
  padding-top: 4px;
}

.phase {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: #d9b477;
  text-transform: uppercase;
}

.status {
  max-width: none;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0.11em;
  color: rgba(235, 235, 235, 0.68);
  text-transform: uppercase;
}

.daylight-total {
  margin-top: -1px;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.08em;
  color: #d9b477;
}

.location-line {
  margin-top: 2px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.38);
}


/* ILIZIJA_MOON_STRIP */
.moon-section {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 15px;
  margin: 20px 0 16px;
}

.moon-section::before {
  content: "";
  width: 78%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(217, 180, 119, 0.22) 22%,
    rgba(217, 180, 119, 0.34) 50%,
    rgba(217, 180, 119, 0.22) 78%,
    transparent
  );
}

.moon-strip {
  width: min(72%, 330px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 24px;
}

.moon-phase {
  width: 11px;
  height: 11px;
  flex: 0 0 11px;
  border-radius: 50%;
  opacity: 0.48;
  box-shadow: 0 0 4px rgba(230, 224, 208, 0.04);
  transition:
    transform 700ms ease,
    opacity 700ms ease,
    box-shadow 700ms ease;
}

.moon-phase.phase-0,
.moon-phase.phase-8 {
  background: #09101a;
  box-shadow:
    inset 0 0 0 1px rgba(218, 218, 210, 0.25),
    0 0 3px rgba(218, 218, 210, 0.06);
}

.moon-phase.phase-1 {
  background:
    radial-gradient(circle at 32% 50%, #09101a 0 58%, transparent 60%),
    #d8d4c8;
}

.moon-phase.phase-2 {
  background: linear-gradient(90deg, #09101a 0 50%, #d8d4c8 50% 100%);
}

.moon-phase.phase-3 {
  background:
    radial-gradient(circle at 12% 50%, #09101a 0 46%, transparent 48%),
    #d8d4c8;
}

.moon-phase.phase-4 {
  background: #ddd8ca;
}

.moon-phase.phase-5 {
  background:
    radial-gradient(circle at 88% 50%, #09101a 0 46%, transparent 48%),
    #d8d4c8;
}

.moon-phase.phase-6 {
  background: linear-gradient(90deg, #d8d4c8 0 50%, #09101a 50% 100%);
}

.moon-phase.phase-7 {
  background:
    radial-gradient(circle at 68% 50%, #09101a 0 58%, transparent 60%),
    #d8d4c8;
}

.moon-phase.current {
  transform: scale(1.55);
  opacity: 0.96;
  box-shadow: 0 0 9px rgba(226, 215, 190, 0.26);
}

/* MOON_CONTINUOUS_TRUTH */
.moon-strip {
  position: relative;
}

.moon-phase.current {
  transform: none !important;
  opacity: 0.48 !important;
  box-shadow: none !important;
}

.moon-now {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  opacity: 0.98;
  box-shadow:
    0 0 10px rgba(226, 215, 190, 0.26),
    0 0 22px rgba(226, 215, 190, 0.10);
}

/* MOON_CONTINUOUS_TRUTH_FINAL */
.moon-strip {
  position: relative;
}

.moon-phase.current {
  transform: none !important;
  opacity: 0.48 !important;
  box-shadow: none !important;
}

.moon-now {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  pointer-events: none;
  opacity: 0.98;
  box-shadow:
    0 0 10px rgba(226, 215, 190, 0.26),
    0 0 22px rgba(226, 215, 190, 0.10);
}

.moon-now.phase-0 {
  background: #09101a;
  box-shadow:
    inset 0 0 0 1px rgba(218, 218, 210, 0.34),
    0 0 10px rgba(226, 215, 190, 0.12);
}

.moon-now.phase-1 {
  background:
    radial-gradient(circle at 32% 50%, #09101a 0 58%, transparent 60%),
    #d8d4c8;
}

.moon-now.phase-2 {
  background:
    linear-gradient(90deg, #09101a 0 50%, #d8d4c8 50% 100%);
}

.moon-now.phase-3 {
  background:
    radial-gradient(circle at 12% 50%, #09101a 0 46%, transparent 48%),
    #d8d4c8;
}

.moon-now.phase-4 {
  background: #ddd8ca;
}

.moon-now.phase-5 {
  background:
    radial-gradient(circle at 88% 50%, #09101a 0 46%, transparent 48%),
    #d8d4c8;
}

.moon-now.phase-6 {
  background:
    linear-gradient(90deg, #d8d4c8 0 50%, #09101a 50% 100%);
}

.moon-now.phase-7 {
  background:
    radial-gradient(circle at 68% 50%, #09101a 0 58%, transparent 60%),
    #d8d4c8;
}

/* PRESENT_MOON_ONLY */
.moon-strip {
  width: auto !important;
  min-height: 34px;
  display: flex !important;
  align-items: center;
  justify-content: center !important;
  gap: 14px;
}

.moon-strip .moon-phase,
.moon-strip .moon-now {
  display: none !important;
}

.present-moon {
  width: 28px;
  height: 28px;
  display: block;
  flex: 0 0 28px;
  filter: drop-shadow(0 0 8px rgba(220, 214, 198, 0.15));
}

.present-moon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.moon-next {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.13em;
  color: rgba(217, 180, 119, 0.78);
  white-space: nowrap;
}

/* MOON_PHASE_RENDER_TRUTH */
.present-moon {
  width: 32px;
  height: 32px;
}

.moon-disc {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #d8d4c8;
  box-shadow: 0 0 10px rgba(220, 214, 198, 0.15);
}

/* New */
.moon-disc-0 {
  background: #09101a;
  box-shadow:
    inset 0 0 0 1px rgba(216, 212, 200, 0.28),
    0 0 8px rgba(220, 214, 198, 0.05);
}

/* Waxing crescent — light on right */
.moon-disc-1 {
  background:
    radial-gradient(circle at 28% 50%, #09101a 0 62%, transparent 64%),
    #d8d4c8;
}

/* First quarter — right half light */
.moon-disc-2 {
  background:
    linear-gradient(90deg, #09101a 0 50%, #d8d4c8 50% 100%);
}

/* Waxing gibbous — mostly light, shadow left */
.moon-disc-3 {
  background:
    radial-gradient(circle at 8% 50%, #09101a 0 42%, transparent 44%),
    #d8d4c8;
}

/* Full */
.moon-disc-4 {
  background: #d8d4c8;
}

/* Waning gibbous — mostly light, shadow right */
.moon-disc-5 {
  background:
    radial-gradient(circle at 92% 50%, #09101a 0 42%, transparent 44%),
    #d8d4c8;
}

/* Last quarter — left half light */
.moon-disc-6 {
  background:
    linear-gradient(90deg, #d8d4c8 0 50%, #09101a 50% 100%);
}

/* Waning crescent — light on left */
.moon-disc-7 {
  background:
    radial-gradient(circle at 72% 50%, #09101a 0 62%, transparent 64%),
    #d8d4c8;
}

/* FINAL_INFORMATION_ORDER */
.meta {
  display: grid;
  justify-items: center;
  gap: 7px;
}

.ilizija-time {
  order: 1;
  margin: 0;
  font-size: 27px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: #d9b477;
}

.status {
  order: 2;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.phase {
  order: 3;
  margin-top: 3px;
  font-size: 11px;
  letter-spacing: 0.13em;
}

#locationLine {
  display: none !important;
}

.moon-section {
  margin: 18px 0 13px;
}

.moon-strip {
  width: auto !important;
  min-height: 52px;
  display: flex !important;
  justify-content: center !important;
  align-items: center;
  gap: 15px;
}

.nasa-moon-link {
  display: block;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  text-decoration: none;
}

.nasa-moon {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: contain;
  border: 0;
  filter:
    drop-shadow(0 0 7px rgba(218, 210, 190, 0.13));
}

.moon-next {
  font-size: 10px;
  letter-spacing: 0.13em;
}

.ilizija-footer {
  display: block;
  margin: 5px auto 0;
  text-align: center;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(217, 180, 119, 0.66);
  text-decoration: none;
}

.ilizija-footer:hover {
  color: #d9b477;
}

/* NASA_MOON_CIRCLE_MASK */
.nasa-moon-link {
  border-radius: 50% !important;
  overflow: hidden !important;
}

.nasa-moon {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

/* NASA_MOON_REFINEMENT */
.nasa-moon-link {
width: 47px !important;
height: 47px !important;
flex: 0 0 47px !important;
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.34));
}

.nasa-moon {
width: 100% !important;
height: 100% !important;
}

/* NASA_MOON_CROP_FIX */
.nasa-moon-link {
  width: 50px !important;
  height: 50px !important;
  flex: 0 0 50px !important;
  overflow: hidden !important;
  border-radius: 50% !important;
}

.nasa-moon {
  width: calc(100% + 6px) !important;
  height: calc(100% + 6px) !important;
  max-width: none !important;
  transform: translate(-3px, -3px);
  object-fit: cover !important;
}

/* MOON_RISE_SET_LINE */
.moon-times {
  margin-top: -6px;
  text-align: center;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

/* MOON_TIMES_AND_CIVIL_REFERENCE */
.moon-section {
  gap: 8px !important;
}

.moon-times {
  display: block !important;
  margin-top: -2px !important;
  text-align: center;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.42);
}

#locationLine {
  display: block !important;
  margin-top: 5px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.10em;
  color: rgba(255, 255, 255, 0.34);
}

/* CYCLE_INFORMATION_REFINEMENT */
.meta {
  gap: 5px !important;
}

.ilizija-time {
  order: 1 !important;
}

#locationLine {
  order: 2 !important;
  display: block !important;
  margin: -1px 0 3px !important;
  font-size: 8px !important;
  letter-spacing: 0.12em !important;
  color: rgba(255, 255, 255, 0.34) !important;
}

.status {
  order: 3 !important;
}

.phase {
  order: 4 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-top: 2px !important;
}

.season-cycle {
  font-size: 10px;
  line-height: 1.1;
  letter-spacing: 0.13em;
  color: #d9b477;
}

.season-next {
  font-size: 9px;
  line-height: 1.1;
  letter-spacing: 0.11em;
  color: rgba(217, 180, 119, 0.78);
}

.moon-section {
  gap: 0 !important;
  margin: 15px 0 11px !important;
}

.moon-strip {
  width: auto !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 11px !important;
}

.moon-copy {
  height: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  text-align: left;
}

.moon-cycle {
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.42);
  white-space: nowrap;
}

.moon-next {
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: 0.12em !important;
  color: rgba(217, 180, 119, 0.86) !important;
  white-space: nowrap;
}

.moon-times-inline {
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.38);
  white-space: nowrap;
}

.moon-times {
  display: none !important;
}

/* ILIZIJA_HIERARCHY_CLEAN_09 */
.meta {
  gap: 0 !important;
  text-align: center;
}

.ilizija-time {
  order: 1 !important;
  margin: 0 !important;
  font-size: 34px !important;
  line-height: 1 !important;
  letter-spacing: 0.04em !important;
  color: #d9b477 !important;
}

#locationLine {
  order: 2 !important;
  display: block !important;
  margin: 5px 0 0 !important;
  font-size: 8px !important;
  line-height: 1 !important;
  letter-spacing: 0.15em !important;
  color: rgba(255,255,255,0.34) !important;
}

.status {
  order: 3 !important;
  margin-top: 14px !important;
  max-width: none !important;
  font-size: 9px !important;
  line-height: 1.2 !important;
  letter-spacing: 0.11em !important;
  color: rgba(255,255,255,0.62) !important;
  white-space: nowrap;
}

.phase {
  order: 4 !important;
  display: block !important;
  margin-top: 6px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 500 !important;
  letter-spacing: 0.11em !important;
  color: #d9b477 !important;
  white-space: nowrap;
}

.moon-section {
  margin: 18px 0 11px !important;
  padding-top: 14px !important;
}

.moon-strip {
  width: auto !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
}

.nasa-moon-link,
.present-moon {
  width: 50px !important;
  height: 50px !important;
  flex: 0 0 50px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
}

.nasa-moon {
  width: calc(100% + 6px) !important;
  height: calc(100% + 6px) !important;
  max-width: none !important;
  transform: translate(-3px, -3px) !important;
  object-fit: cover !important;
}

.moon-copy {
  height: 50px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  gap: 3px !important;
  text-align: left !important;
}

.moon-cycle {
  font-size: 8px !important;
  line-height: 1 !important;
  letter-spacing: 0.13em !important;
  color: rgba(255,255,255,0.42) !important;
  white-space: nowrap;
}

.moon-next {
  font-size: 10px !important;
  line-height: 1 !important;
  letter-spacing: 0.11em !important;
  color: #d9b477 !important;
  white-space: nowrap;
}

.moon-times-inline {
  font-size: 8px !important;
  line-height: 1 !important;
  letter-spacing: 0.11em !important;
  color: rgba(255,255,255,0.42) !important;
  white-space: nowrap;
}

.moon-times {
  display: none !important;
}

/* CENTER_MOON_SEPARATOR */
.moon-section {
  width: min(100%, 540px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* MOON_BLOCK_TRUE_CENTER */
.moon-section {
position: relative !important;
width: 100% !important;
margin: 18px 0 11px !important;
padding-top: 18px !important;
display: flex !important;
flex-direction: column !important;
align-items: center !important;
justify-content: center !important;
border-top: none !important;
}

.moon-section::before {
content: "" !important;
position: absolute !important;
top: 0 !important;
left: 50% !important;
transform: translateX(-50%) !important;
width: min(82%, 620px) !important;
height: 1px !important;
background: linear-gradient(
90deg,
rgba(217,180,119,0) 0%,
rgba(217,180,119,0.38) 18%,
rgba(217,180,119,0.38) 82%,
rgba(217,180,119,0) 100%
) !important;
}

.moon-strip {
width: fit-content !important;
max-width: 100% !important;
margin: 0 auto !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
gap: 12px !important;
}

.moon-copy {
height: 50px !important;
display: flex !important;
flex-direction: column !important;
justify-content: center !important;
align-items: flex-start !important;
}




/* ILIZIJA_PRODUCTION_CONTROLS */
.ilizija-brand {
  position: relative;
}

.instrument-controls {
  position: absolute;
  top: 4px;
  left: 50%;
  width: min(92vw, 500px);
  height: 28px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 30;
}

.icon-control {
  position: absolute;
  top: 0;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 5px;
  appearance: none;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(217,180,119,0.58);
  cursor: pointer;
  pointer-events: auto;
  opacity: 0.82;
}

.icon-control:hover,
.icon-control:focus-visible,
.icon-control[aria-expanded="true"] {
  color: rgba(217,180,119,0.94);
  background: rgba(217,180,119,0.05);
  outline: none;
}

.menu-toggle {
  left: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}

.menu-toggle span {
  display: block;
  width: 13px;
  height: 1px;
  margin: 0 auto;
  background: currentColor;
}

.location-toggle {
  right: 0;
}

.location-toggle svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.control-panel {
  position: absolute;
  z-index: 40;
  top: 36px;
  width: min(84vw, 330px);
  padding: 16px 17px;
  border: 1px solid rgba(217,180,119,0.18);
  background: rgba(8,10,15,0.97);
  box-shadow: 0 18px 42px rgba(0,0,0,0.42);
  backdrop-filter: blur(12px);
  pointer-events: auto;
  text-align: left;
}

.control-panel[hidden] {
  display: none;
}

.menu-panel {
  position: absolute;
  top: 58px;
  left: 20px;
  z-index: 60;
  min-width: 172px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(8,10,15,.96);
  box-shadow: 0 18px 50px rgba(0,0,0,.34);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.menu-panel[hidden] {
  display: none;
}

.menu-choice {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 8px;
  padding: 12px 14px;
  background: transparent;
  color: rgba(255,255,255,.82);
  font: inherit;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .14em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.menu-choice:hover,
.menu-choice:focus-visible {
  background: rgba(255,255,255,.06);
  color: #fff;
  outline: none;
}

.about-panel {
  left: 0;
}

.location-panel {
  right: 0;
}

.about-title {
  margin-bottom: 10px;
  color: #d9b477;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.about-panel p {
  margin: 0 0 11px;
  color: rgba(245,242,233,0.68);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.about-anchors {
  display: grid;
  gap: 4px;
  margin: 0 0 11px;
  color: rgba(217,180,119,0.88);
  font-size: 9px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.current-location-choice {
  width: 100%;
  margin: 0 0 14px;
  padding: 8px 0 10px;
  border: 0;
  border-bottom: 1px solid rgba(217,180,119,0.18);
  border-radius: 0;
  background: transparent;
  color: #d9b477;
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.13em;
  cursor: pointer;
}

.location-search-form label {
  display: block;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.38);
  font-size: 8px;
  letter-spacing: 0.13em;
}

.location-search-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(217,180,119,0.28);
}

#locationSearch {
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: #f3f1e8;
  font: inherit;
  font-size: 11px;
  outline: none;
}

#locationSearch::placeholder {
  color: rgba(255,255,255,0.28);
}

.location-search-row button {
  width: 30px;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  color: rgba(217,180,119,0.72);
  cursor: pointer;
}

.location-search-status {
  min-height: 14px;
  margin-top: 8px;
  color: rgba(255,255,255,0.38);
  font-size: 8px;
  letter-spacing: 0.09em;
}

.location-results {
  display: grid;
  max-height: 240px;
  overflow-y: auto;
}

.location-result {
  display: grid;
  gap: 3px;
  width: 100%;
  margin: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.location-result:last-child {
  border-bottom: 0;
}

.location-result:hover,
.location-result:focus-visible {
  background: rgba(217,180,119,0.04);
  outline: none;
}

.location-result-name {
  color: rgba(245,242,233,0.82);
  font-size: 10px;
  line-height: 1.25;
}

.location-result-zone {
  color: rgba(255,255,255,0.32);
  font-size: 8px;
  letter-spacing: 0.06em;
}

@media (max-width: 560px) {
  .instrument-controls {
    width: calc(100vw - 26px);
  }

  .control-panel {
    position: fixed;
    top: 72px;
  }

  .about-panel {
    left: 13px;
  }

  .location-panel {
    right: 13px;
  }
}


/* ABOUT_CLOSE_AND_LIVING_COPY */
.panel-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(217,180,119,0.58);
  font-size: 18px;
  line-height: 24px;
  font-weight: 300;
  cursor: pointer;
}

.panel-close:hover,
.panel-close:focus-visible {
  color: rgba(217,180,119,0.96);
  outline: none;
}

.about-panel {
  max-height: min(72vh, 620px);
  overflow-y: auto;
}

.about-panel strong {
  color: rgba(217,180,119,0.92);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.09em;
}

/* ABOUT_WHY */
.about-section-label {
  margin: 14px 0 7px;
  color: #d9b477;
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.18em;
}

.about-why-line {
  color: rgba(217,180,119,0.88) !important;
  font-style: italic;
}


/* ABOUT_FULLSCREEN_READING_SPACE */
.about-panel {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-height: none !important;
  padding: 0 !important;
  border: 0 !important;
  background:
    radial-gradient(
      circle at 50% 8%,
      rgba(30,34,43,0.98) 0%,
      rgba(8,10,15,0.995) 45%,
      rgba(4,5,8,1) 100%
    ) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  text-align: left !important;
}

.about-panel[hidden] {
  display: none !important;
}

.about-content {
  width: min(100% - 42px, 560px);
  margin: 0 auto;
  padding:
    max(72px, calc(env(safe-area-inset-top) + 56px))
    0
    max(54px, calc(env(safe-area-inset-bottom) + 40px));
}

.about-kicker {
  margin: 0 0 4px;
  color: rgba(217,180,119,0.48);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.28em;
}

.about-title {
  margin: 0 0 30px !important;
  color: #d9b477 !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(28px, 7vw, 42px) !important;
  line-height: 0.95 !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
}

.about-intro {
  margin-bottom: 36px;
}

.about-panel p {
  margin: 0 0 14px !important;
  color: rgba(245,242,233,0.70) !important;
  font-size: 12px !important;
  line-height: 1.72 !important;
  letter-spacing: 0.012em !important;
}

.about-intro p {
  color: rgba(245,242,233,0.86) !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}

.about-section {
  margin-top: 34px;
  padding-top: 30px;
  border-top: 1px solid rgba(217,180,119,0.14);
}

.about-section-label {
  margin: 0 0 17px !important;
  color: rgba(217,180,119,0.82) !important;
  font-size: 8px !important;
  line-height: 1 !important;
  letter-spacing: 0.22em !important;
}

.about-why-line,
.about-final-line {
  margin-top: 20px !important;
  color: rgba(217,180,119,0.92) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px !important;
  line-height: 1.55 !important;
  font-style: italic;
}

.about-anchors {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px !important;
  margin: 0 0 30px !important;
  color: rgba(217,180,119,0.82) !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
}

.about-moment {
  margin-bottom: 24px;
}

.about-moment:last-child {
  margin-bottom: 0;
}

.about-moment strong {
  display: block;
  margin-bottom: 7px;
  color: rgba(217,180,119,0.94) !important;
  font-size: 9px !important;
  line-height: 1.2;
  font-weight: 500 !important;
  letter-spacing: 0.11em !important;
}

.about-moment p {
  margin-bottom: 0 !important;
}

.panel-close {
  position: fixed !important;
  z-index: 110 !important;
  top: max(18px, env(safe-area-inset-top)) !important;
  right: max(18px, env(safe-area-inset-right)) !important;
  width: 38px !important;
  height: 38px !important;
  padding: 0 !important;
  border: 1px solid rgba(217,180,119,0.14) !important;
  border-radius: 50% !important;
  background: rgba(8,10,15,0.48) !important;
  color: rgba(217,180,119,0.68) !important;
  font-size: 24px !important;
  line-height: 34px !important;
  font-weight: 200 !important;
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.panel-close:hover,
.panel-close:focus-visible {
  border-color: rgba(217,180,119,0.38) !important;
  color: rgba(217,180,119,1) !important;
  outline: none !important;
}

.about-footer {
  padding-top: 44px;
  text-align: center;
}

.about-footer-rule {
  width: 48px;
  height: 1px;
  margin: 0 auto 24px;
  background: rgba(217,180,119,0.24);
}

.about-contact {
  display: inline-block;
  padding: 10px 14px;
  color: rgba(217,180,119,0.72);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.20em;
  text-decoration: none;
}

.about-contact:hover,
.about-contact:focus-visible {
  color: rgba(217,180,119,1);
  outline: none;
}

@media (max-width: 520px) {
  .about-content {
    width: calc(100% - 36px);
    padding-top:
      max(70px, calc(env(safe-area-inset-top) + 54px));
  }

  .about-title {
    margin-bottom: 26px !important;
  }

  .about-intro {
    margin-bottom: 30px;
  }

  .about-section {
    margin-top: 30px;
    padding-top: 26px;
  }

  .about-anchors {
    grid-template-columns: 1fr;
    gap: 6px !important;
  }

  .about-panel p {
    font-size: 12px !important;
    line-height: 1.68 !important;
  }

  .about-intro p {
    font-size: 13px !important;
  }
}

/* ABOUT_DESKTOP_GLASS_WINDOW */
@media (min-width: 700px) {
  .about-panel {
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    padding: 32px 0 !important;
    background: rgba(4, 5, 8, 0.42) !important;
    backdrop-filter: blur(3px) !important;
    overflow: hidden !important;
  }

  .about-content {
    width: min(640px, calc(100vw - 80px)) !important;
    max-height: calc(100dvh - 64px) !important;
    margin: 0 auto !important;
    padding: 46px 52px 42px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(217, 180, 119, 0.18);
    background:
      radial-gradient(
        circle at 50% 0%,
        rgba(27, 31, 40, 0.91) 0%,
        rgba(8, 10, 15, 0.88) 52%,
        rgba(5, 6, 9, 0.90) 100%
      );
    box-shadow:
      0 28px 80px rgba(0, 0, 0, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(15px);
  }

  .panel-close {
    top: 46px !important;
    right:
      max(
        54px,
        calc((100vw - 640px) / 2 + 14px)
      ) !important;
  }

  .about-title {
    font-size: 38px !important;
  }

  .about-intro p {
    font-size: 13px !important;
  }

  .about-panel p {
    font-size: 11px !important;
    line-height: 1.68 !important;
  }
}


/* =========================================================
   ILIZIJA FINAL FLOATING WINDOWS
   ========================================================= */

/* ABOUT — transparent enough to keep the clock alive behind it */
.about-panel {
  background:
    radial-gradient(
      circle at 50% 10%,
      rgba(19, 23, 31, 0.76) 0%,
      rgba(7, 9, 14, 0.72) 48%,
      rgba(3, 4, 7, 0.78) 100%
    ) !important;
  backdrop-filter: blur(7px) !important;
}

/* Location is a true centered floating glass surface.
   No inherited right alignment, no border box. */
.location-panel {
  position: fixed !important;
  z-index: 100 !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;

  width: min(
    380px,
    calc(100vw - 36px)
  ) !important;

  max-height: min(
    72dvh,
    520px
  ) !important;

  margin: 0 !important;
  padding: 28px 26px 24px !important;

  overflow-y: auto !important;
  overscroll-behavior: contain;

  border: 0 !important;
  border-radius: 0 !important;

  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(24, 28, 36, 0.78) 0%,
      rgba(8, 10, 15, 0.70) 58%,
      rgba(5, 6, 9, 0.74) 100%
    ) !important;

  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.30) !important;

  backdrop-filter: blur(11px) !important;
  -webkit-backdrop-filter: blur(11px) !important;

  text-align: left !important;
}

.location-panel-close {
  position: absolute;
  top: 8px;
  right: 10px;

  width: 28px;
  height: 28px;

  margin: 0;
  padding: 0;

  border: 0;
  background: transparent;

  color: rgba(217,180,119,0.58);

  font-size: 20px;
  line-height: 28px;
  font-weight: 200;

  cursor: pointer;
}

.location-panel-close:hover,
.location-panel-close:focus-visible {
  color: rgba(217,180,119,0.98);
  outline: none;
}

.current-location-choice {
  margin-top: 8px !important;
  padding-right: 30px !important;
}

.location-results {
  max-height: min(34dvh, 260px) !important;
}

/* Phone: exact symmetric horizontal margins */
@media (max-width: 699px) {
  .location-panel {
    left: 50% !important;
    right: auto !important;

    width: calc(100vw - 32px) !important;
    max-width: 380px !important;

    padding:
      26px
      22px
      22px !important;

    transform:
      translate(-50%, -50%) !important;
  }

  .about-panel {
    background:
      radial-gradient(
        circle at 50% 10%,
        rgba(18, 22, 30, 0.72) 0%,
        rgba(7, 9, 14, 0.68) 50%,
        rgba(3, 4, 7, 0.74) 100%
      ) !important;

    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
  }
}

/* Desktop: centered glass reading window with clock visible */
@media (min-width: 700px) {
  .about-panel {
    display: grid !important;
    place-items: center !important;

    padding: 32px !important;

    background:
      rgba(3, 4, 7, 0.26) !important;

    backdrop-filter: blur(3px) !important;
    -webkit-backdrop-filter: blur(3px) !important;
  }

  .about-panel[hidden] {
    display: none !important;
  }

  .about-content {
    width: min(
      620px,
      calc(100vw - 80px)
    ) !important;

    max-height:
      calc(100dvh - 64px) !important;

    margin: 0 !important;

    padding:
      46px
      50px
      42px !important;

    overflow-y: auto !important;

    border: 0 !important;

    background:
      radial-gradient(
        circle at 50% 0%,
        rgba(24, 28, 36, 0.82) 0%,
        rgba(8, 10, 15, 0.76) 56%,
        rgba(5, 6, 9, 0.80) 100%
      ) !important;

    box-shadow:
      0 26px 72px rgba(0, 0, 0, 0.34) !important;

    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }

  .panel-close {
    top:
      calc(
        50% - min(
          50dvh - 32px,
          310px
        ) + 12px
      ) !important;

    right:
      calc(
        50% - min(
          310px,
          (100vw - 80px) / 2
        ) + 12px
      ) !important;
  }

  .location-panel {
    width: min(
      390px,
      calc(100vw - 64px)
    ) !important;
  }
}


/* TRUE_VIEWPORT_FLOATING_PANELS */

/* About overlay is always viewport-bound. */
.about-panel {
  position: fixed !important;
  inset: 0 !important;
  transform: none !important;
}

/* Fixed exit is always reachable while content scrolls. */
.panel-close {
  position: fixed !important;
  top: max(16px, env(safe-area-inset-top)) !important;
  right: max(16px, env(safe-area-inset-right)) !important;
  left: auto !important;
  bottom: auto !important;
  z-index: 120 !important;
}

/* Location remains centered relative to the actual viewport. */
.location-panel {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
}

/* Symmetric phone margins, including narrow landscape windows. */
@media (max-width: 699px) {
  .about-content {
    width: min(
      560px,
      calc(100vw - 32px)
    ) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .location-panel {
    width: min(
      380px,
      calc(100vw - 32px)
    ) !important;
  }

  .panel-close {
    top: max(14px, env(safe-area-inset-top)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
  }
}

/* Desktop About content is centered in the real viewport. */
@media (min-width: 700px) {
  .about-panel {
    display: grid !important;
    place-items: center !important;
  }

  .about-panel[hidden] {
    display: none !important;
  }

  .about-content {
    width: min(
      620px,
      calc(100vw - 80px)
    ) !important;
    margin: 0 auto !important;
  }

  .panel-close {
    top: 20px !important;
    right: 20px !important;
  }
}

/* MOBILE_ABOUT_X_VIEWPORT_LOCK */
@media (max-width: 699px) {
  .about-panel .panel-close {
    position: fixed !important;
    top: max(14px, env(safe-area-inset-top)) !important;
    right: max(14px, env(safe-area-inset-right)) !important;
    left: auto !important;
    bottom: auto !important;

    width: 38px !important;
    height: 38px !important;

    margin: 0 !important;
    transform: none !important;

    z-index: 1000 !important;
    pointer-events: auto !important;

    flex: none !important;
  }
}
