:root{
  --bg-image:url("https://lost-city-frontend.s3.eu-north-1.amazonaws.com/assets/Wroclaw-1945-K.-Gorazdowska-R.-Jagusch+(1).jpg");
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bottom:env(safe-area-inset-bottom,0px);
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  width:100%;
  height:100%;
  overflow:hidden;
  background:#000;
  font-family:system-ui,sans-serif;
}

body{
  touch-action:manipulation;
}

a{
  text-decoration:none;
}

.app{
  position:relative;
  width:100vw;
  height:100vh;
  height:100svh;
  overflow:hidden;
  background:#000;
}

/* TŁO */

.bg{
  position:absolute;
  inset:-10%;

  background-image:
    linear-gradient(
      to bottom,
      rgba(255,245,225,.44),
      rgba(255,245,225,.12),
      rgba(0,0,0,.68)
    ),
    var(--bg-image);

  background-size:cover;
  background-position:center;

  filter:grayscale(.32) sepia(.24) contrast(1.08) brightness(.94);

  transform:translate3d(0,0,0) scale(1.18);
  opacity:0;

  transition:opacity 2.5s ease;
  will-change:transform,opacity;

  z-index:1;
}

.fog{
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 50% 18%, rgba(255,255,255,.15), transparent 42%);
  mix-blend-mode:screen;
  opacity:.55;
  pointer-events:none;
  z-index:2;
}

.noise{
  position:absolute;
  inset:0;
  opacity:.06;
  pointer-events:none;
  z-index:3;
  background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* JĘZYKI */

.lang-bar{
  position:absolute;
  top:0;
  left:0;

  width:100%;
  height:calc(46px + var(--safe-top));

  display:flex;
  align-items:center;
  gap:5px;

  padding:calc(7px + var(--safe-top)) 8px 7px;

  z-index:20;

  overflow-x:auto;
  overflow-y:hidden;
  white-space:nowrap;

  background:linear-gradient(
    to bottom,
    rgba(0,0,0,.76),
    rgba(0,0,0,.22),
    rgba(0,0,0,0)
  );

  -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}

.lang-bar::-webkit-scrollbar{
  display:none;
}

.lang-bar button{
  flex:0 0 auto;

  min-width:34px;
  height:28px;

  padding:0 7px;

  border:1px solid rgba(255,241,220,.45);
  border-radius:999px;

  background:rgba(0,0,0,.46);
  color:#fff1de;

  font-size:10.5px;
  font-weight:800;
  letter-spacing:.2px;

  cursor:pointer;

  text-shadow:0 2px 5px rgba(0,0,0,.85);
}

.lang-bar button.active{
  background:#fff1de;
  color:#161311;
  text-shadow:none;
}

/* CONTENT */

.content{
  position:relative;
  z-index:5;

  width:100%;
  height:100%;

  display:grid;
  grid-template-rows:auto auto auto auto 1fr auto auto;
  justify-items:center;

  padding:
    calc(52px + var(--safe-top))
    16px
    calc(12px + var(--safe-bottom));

  text-align:center;
}

/* LOGO */

.logo{
  width:clamp(78px,22vw,145px);
}

.logo img{
  width:100%;
  display:block;
  object-fit:contain;
  filter:drop-shadow(0 6px 18px rgba(0,0,0,.4));
}

/* TYTUŁ */

h1{
  margin:clamp(4px,1.2vh,12px) 0 0;

  font-family:'Anton',sans-serif;
  font-size:clamp(44px,13vw,96px);
  line-height:.9;
  letter-spacing:2px;

  color:#111;
  text-transform:uppercase;

  text-shadow:
    0 2px 0 rgba(255,255,255,.18),
    0 10px 26px rgba(0,0,0,.45);
}

.breslau{
  margin-top:clamp(2px,.8vh,8px);

  font-family:'Anton',sans-serif;
  font-size:clamp(20px,5.6vw,42px);
  line-height:1;
  letter-spacing:clamp(2px,1vw,5px);

  color:#1c1714;

  text-shadow:
    0 2px 0 rgba(255,255,255,.14),
    0 6px 16px rgba(0,0,0,.38);
}

.subtitle{
  margin-top:clamp(8px,1.5vh,16px);

  max-width:min(88vw,560px);

  color:#fff1de;

  font-size:clamp(14px,3.5vw,20px);
  font-weight:700;
  line-height:1.25;

  text-shadow:
    0 2px 8px rgba(0,0,0,.95),
    0 8px 20px rgba(0,0,0,.62);
}

.spacer{
  width:100%;
}

/* PRZYCISKI */

.buttons{
  width:min(88vw,430px);

  display:flex;
  flex-direction:column;

  gap:clamp(10px,2vh,20px);

  margin-bottom:clamp(10px,2vh,20px);
}

.btn{
  width:100%;
  height:clamp(52px,8.4vh,84px);

  display:flex;
  justify-content:center;
  align-items:center;

  text-align:center;
  text-decoration:none;

  border-radius:999px;

  font-family:'Anton',sans-serif;
  font-size:clamp(22px,6vw,38px);
  line-height:1;
  letter-spacing:1px;

  cursor:pointer;

  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);

  user-select:none;
}

.btn:active{
  transform:scale(.97);
}

.btn-dark{
  background:rgba(22,19,17,.88);
  color:#fff1de;

  border:2px solid rgba(255,236,214,.78);

  box-shadow:0 12px 30px rgba(0,0,0,.32);
}

.btn-light{
  background:rgba(255,241,220,.84);
  color:#1d1713;

  border:2px solid rgba(24,20,18,.92);

  box-shadow:0 10px 24px rgba(0,0,0,.24);
}

/* HISTORIA */

.history{
  width:clamp(150px,44vw,230px);
  height:clamp(38px,6.2vh,54px);

  display:flex;
  justify-content:center;
  align-items:center;

  text-align:center;
  text-decoration:none;

  border:2px solid rgba(24,20,18,.9);
  border-radius:999px;

  background:rgba(255,241,220,.88);
  color:#221c18;

  font-family:'Anton',sans-serif;
  font-size:clamp(17px,4.5vw,28px);
  line-height:1;
  letter-spacing:1px;

  cursor:pointer;

  box-shadow:0 8px 18px rgba(0,0,0,.25);

  z-index:12;
}

.history:active{
  transform:scale(.96);
}

/* MAŁE TELEFONY */

@media(max-height:680px){

  .content{
    padding-top:calc(48px + var(--safe-top));
  }

  .logo{
    width:clamp(62px,18vw,102px);
  }

  h1{
    font-size:clamp(38px,11.5vw,70px);
  }

  .breslau{
    font-size:clamp(16px,4.8vw,30px);
  }

  .subtitle{
    font-size:13px;
    margin-top:6px;
  }

  .buttons{
    gap:9px;
    margin-bottom:8px;
  }

  .btn{
    height:48px;
    font-size:22px;
  }

  .history{
    height:36px;
    font-size:17px;
  }
}

/* BARDZO NISKIE EKRANY */

@media(max-height:590px){

  .subtitle{
    display:none;
  }

  .logo{
    width:58px;
  }

  h1{
    font-size:38px;
  }

  .breslau{
    font-size:16px;
  }

  .btn{
    height:44px;
    font-size:20px;
  }

  .history{
    height:34px;
    font-size:16px;
  }
}

/* TABLETY */

@media(min-width:768px) and (min-height:760px){

  .lang-bar{
    height:64px;
    padding:14px 22px;
    gap:10px;
  }

  .lang-bar button{
    height:34px;
    min-width:44px;
    font-size:13px;
    padding:0 12px;
  }

  .content{
    padding-top:90px;
    padding-bottom:34px;
  }

  .logo{
    width:170px;
  }

  h1{
    font-size:110px;
  }

  .breslau{
    font-size:48px;
  }

  .subtitle{
    font-size:22px;
  }

  .buttons{
    width:460px;
    gap:24px;
  }

  .btn{
    height:92px;
    font-size:42px;
  }

  .history{
    width:240px;
    height:58px;
    font-size:28px;
  }
}