*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --text: #ffffff;
  --header-pad-x: clamp(1rem, 5vw, 3rem);
  --header-pad-y: clamp(1.25rem, 4vw, 2.5rem);
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  background: #0f1419;
}

.page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.page__bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.page__shade {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(8, 12, 18, 0.85) 0%,
    rgba(8, 12, 18, 0.35) 35%,
    transparent 65%
  );
}

.page__header {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(0.75rem, 2.5vw, 1.25rem);
  padding: var(--header-pad-y) var(--header-pad-x);
  padding-top: max(var(--header-pad-y), env(safe-area-inset-top, 0px));
  padding-left: max(var(--header-pad-x), env(safe-area-inset-left, 0px));
  padding-right: max(var(--header-pad-x), env(safe-area-inset-right, 0px));
}

.page__title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: clamp(1.5rem, 4.5vw + 0.5rem, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.page__logo {
  position: static;
  display: block;
  width: min(68vw, 11rem);
  max-width: 100%;
  height: auto;
  margin: 0;
  filter: drop-shadow(0 2px 16px rgba(0, 0, 0, 0.35));
}

/* Večji zaslon: logo levo zgoraj, napis na sredini (brez prekrivanja) */
@media (min-width: 40rem) and (min-height: 33rem) {
  .page__header {
    align-items: center;
    gap: 0;
  }

  .page__logo {
    position: fixed;
    z-index: 3;
    top: max(clamp(0.75rem, 2.5vw, 1.25rem), env(safe-area-inset-top, 0px));
    left: max(clamp(0.75rem, 3vw, 1.5rem), env(safe-area-inset-left, 0px));
    width: min(46vw, 11rem);
    max-width: calc(100% - 2rem);
  }
}

@media (orientation: landscape) and (max-height: 32rem) {
  .page__shade {
    background: linear-gradient(
      to bottom,
      rgba(8, 12, 18, 0.75) 0%,
      rgba(8, 12, 18, 0.25) 50%,
      transparent 100%
    );
  }

  .page__header {
    padding-top: max(clamp(0.75rem, 3vw, 1.5rem), env(safe-area-inset-top, 0px));
  }

  .page__logo {
    width: min(52vw, 10rem);
  }
}
