@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;800&display=swap");

:root {
  --mfvh: calc(100vh - 96px) !important;
}

html {
  height: 100%;
  overflow: auto !important;
}

body {
  position: static !important;
  top: auto;
  left: auto;
  width: 100%;
  height: auto;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: #f0f3f6;
  background: radial-gradient(circle at center, #1c222b 0%, #0c0e12 100%);
}

.orloj-site-header {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2rem;
  border-bottom: 1px solid rgba(229, 179, 66, 0.35);
  background: linear-gradient(180deg, #181d24 0%, #121418 100%);
}

.orloj-brand {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 1rem;
}

.orloj-brand img {
  display: block;
  width: 58px;
  height: 58px;
  flex: none;
  border: 2px solid #e5b342;
  border-radius: 50%;
  background: #121418;
  box-shadow: 0 0 12px rgba(229, 179, 66, 0.3);
  object-fit: cover;
}

.orloj-brand h1 {
  margin: 0;
  color: #f7d57f;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.orloj-brand p {
  margin: 0.3rem 0 0;
  color: #9ba7b5;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
}

.orloj-header-controls {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: flex-end;
}

.orloj-site-header .controls.site-header-controls {
  display: flex !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: none !important;
  background: transparent !important;
}

.orloj-site-header .controls.site-header-controls > .pi {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  width: 38px;
  height: 38px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #f7d57f;
  background: #222730;
  cursor: pointer;
  opacity: 1 !important;
}

.orloj-site-header .controls.site-header-controls > .pi:hover {
  border-color: rgba(229, 179, 66, 0.35);
  background: #2c3340;
}

.orloj-site-header .controls.site-header-controls > .place-name-group {
  position: relative;
  top: auto;
  display: flex;
  margin: 0 0.25rem;
  padding: 0;
  color: #f0f3f6;
  opacity: 1;
  pointer-events: auto;
}

.orloj-site-header .controls.site-header-controls > .place-name-group.collapsed {
  opacity: 1 !important;
}

.orloj-site-header .controls.site-header-controls > .time-text.track-time {
  position: static !important;
  display: block !important;
  width: auto;
  height: auto;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #e5b342 !important;
  background: #222730;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.875rem;
  white-space: nowrap;
}

.orloj-site-header .controls.site-header-controls.collapsed > .button-row,
.orloj-site-header .controls.site-header-controls.collapsed > .time-row,
.orloj-site-header .controls.site-header-controls.collapsed > tze-zone-selector {
  display: none !important;
}

.app-wrapper {
  position: relative;
  width: 100vw;
  height: calc(100vh - 96px);
  min-height: 360px;
  overflow: hidden;
  background: transparent;
}

.app-wrapper app-root {
  display: block;
  width: 100%;
  height: 100%;
}

#graphics-credit {
  display: none !important;
}

body .app-wrapper app-root .wrapper {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 8px;
}

body .app-wrapper app-root .wrapper.collapsed {
  grid-template-columns: minmax(0, 1fr) !important;
}

@media (max-width: 760px) {
  :root {
    --mfvh: calc(100vh - 132px) !important;
  }

  .orloj-site-header {
    min-height: 132px;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .orloj-brand {
    gap: 0.75rem;
  }

  .orloj-brand img {
    width: 48px;
    height: 48px;
  }

  .orloj-brand h1 {
    font-size: 1.2rem;
  }

  .orloj-brand p {
    font-size: 0.7rem;
  }

  .orloj-header-controls {
    width: 100%;
  }

  .orloj-site-header .controls.site-header-controls {
    width: 100% !important;
    justify-content: flex-end;
  }

  .orloj-site-header .controls.site-header-controls > .pi {
    width: 34px;
    height: 34px;
  }

  .orloj-site-header .controls.site-header-controls > .time-text.track-time {
    margin-right: auto;
    padding: 0.45rem 0.55rem;
    font-size: 0.75rem;
  }

  .app-wrapper {
    height: calc(100vh - 132px);
  }
}
