:root{
  --bg-image:url("https://lost-city-frontend.s3.eu-north-1.amazonaws.com/assets/Wroclaw-1945-K.-Gorazdowska-R.-Jagusch+(1).jpg");
  --bg-speed-x:0.15;
  --bg-speed-y:0.10;
  --bg-speed-scale:0.06;
  --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-y:auto;
  background:#000;
  font-family:system-ui,sans-serif;
}

body{ touch-action:manipulation; }

a{ text-decoration:none; }

.app{
  position:relative;
  width:100%;
  height:auto;
  min-height:100vh;
  min-height:100svh;
  overflow-y:auto;
  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:30px;
  height:24px;
  padding:0 6px;
  border:1px solid rgba(255,241,220,.45);
  border-radius:999px;
  background:rgba(0,0,0,.46);
  color:#fff1de;
  font-size:9.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 auto;
  justify-items:center;
  padding:
    calc(52px + var(--safe-top))
    16px
    calc(32px + var(--safe-bottom));
  text-align:center;
}

.content::before{
  content:"";
  position:absolute;
  z-index:0;
  top:8%;
  left:50%;
  width:min(96vw,680px);
  height:48%;
  transform:translateX(-50%);
  border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(0,0,0,.58) 0%,rgba(0,0,0,.3) 42%,transparent 76%);
  filter:blur(8px);
  pointer-events:none;
}

.content > *{position:relative;z-index:1}

/* LOGO */

.logo{
  position:relative;
  width:clamp(78px,22vw,145px);
  isolation:isolate;
  background:radial-gradient(ellipse at center,rgba(0,0,0,.34) 0%,rgba(0,0,0,.16) 46%,transparent 76%);
}

.logo::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:-24%;
  border-radius:50%;
  background:radial-gradient(ellipse at center,rgba(0,0,0,.42) 0%,rgba(0,0,0,.18) 48%,transparent 78%);
  filter:blur(4px);
  pointer-events:none;
}

.logo::after{
  display:none;
}

.logo img{
  position:relative;
  z-index:1;
  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:
    -1px -1px 0 rgba(255,241,222,.72),
    1px -1px 0 rgba(255,241,222,.72),
    -1px 1px 0 rgba(255,241,222,.72),
    1px 1px 0 rgba(255,241,222,.72),
    0 4px 0 rgba(255,241,222,.62),
    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;
  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 + SKLEP */

.history-panel{
  position:relative;
  display:flex;
  justify-content:center;
  width:min(88vw,430px);
  z-index:12;
}

.history-link{
  width:clamp(150px,44vw,230px);
  height:clamp(38px,6.2vh,54px);
  margin:0 auto;
  font-size:clamp(17px,4.5vw,28px);
}

.history,
.shop-button{
  width:clamp(150px,44vw,230px);
  height:clamp(38px,6.2vh,54px);
  display:flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  text-align:center;
  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);
  text-decoration:none;
}

.history{
  width:100%;
  height:auto;
  min-height:clamp(72px,13vh,108px);
  padding:clamp(12px,2vw,18px) clamp(18px,3vw,24px);
  gap:clamp(12px,2vw,18px);
  justify-content:flex-start;
  align-items:center;
  border-radius:28px;
  border:3px double rgba(62,47,35,.72);
  overflow:hidden;
  position:relative;
}

.shop-button{
  margin-top:10px;
  border-color:rgba(255,255,255,.98);
  box-shadow:
    0 8px 18px rgba(0,0,0,.25),
    inset 0 0 0 2px rgba(255,241,220,.62);
  filter: brightness(0.6) saturate(1.1);
  padding:0 18px;
}

.shop-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width:1.15em;
  height:1.15em;
  flex-shrink:0;
}

.shop-icon svg{
  display:block;
  width:100%;
  height:100%;
}

.shop-label{
  display:inline-block;
  line-height:1;
}

.history:active,
.shop-button:active,
.history-gallery-button:active{
  transform:scale(.96);
}

.history-icon-wrap{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:clamp(48px,8vw,62px);
  height:clamp(48px,8vw,62px);
  border-radius:18px;
  background:rgba(22,19,17,.88);
  border:2px solid rgba(255,241,220,.72);
  box-shadow:inset 0 0 0 1px rgba(255,241,220,.28);
  flex-shrink:0;
}

.camera-icon{
  font-size:clamp(22px,3vw,28px);
  line-height:1;
  filter:drop-shadow(0 2px 6px rgba(0,0,0,.38));
}

.enter-icon{
  position:absolute;
  right:-4px;
  bottom:-4px;
  display:flex;
  align-items:center;
  justify-content:center;
  width:clamp(19px,3vw,24px);
  height:clamp(19px,3vw,24px);
  border-radius:50%;
  background:#fff1de;
  color:#1d1713;
  font-size:clamp(12px,2.1vw,16px);
  border:2px solid rgba(22,19,17,.9);
  font-weight:700;
}

.history-copy{
  display:flex;
  flex:1;
  flex-direction:column;
  align-items:flex-start;
  text-align:left;
  gap:4px;
}

.history-title{
  display:block;
  font-family:'Anton',sans-serif;
  font-size:clamp(20px,5vw,32px);
  line-height:1;
  letter-spacing:1px;
}

.history-description{
  display:block;
  max-width:34ch;
  color:#1d1713;
  font-size:clamp(11px,2.3vw,14px);
  font-weight:700;
  line-height:1.35;
  letter-spacing:.2px;
  max-height:0;
  overflow:hidden;
  opacity:0;
  transition:max-height .25s ease, opacity .2s ease, margin-top .2s ease;
}

.history-panel.is-expanded .history-description,
.history-panel.is-expanded .history-gallery-button{
  max-height:90px;
  opacity:1;
  margin-top:0;
}

.history-gallery-button{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:fit-content;
  min-width:clamp(160px,32vw,220px);
  margin-left:auto;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(22,19,17,.9);
  border:2px solid rgba(255,241,220,.7);
  color:#fff1de;
  font-family:'Anton',sans-serif;
  font-size:clamp(15px,3.6vw,23px);
  letter-spacing:.8px;
  text-decoration:none;
  max-height:0;
  overflow:hidden;
  opacity:0;
  pointer-events:none;
  transition:max-height .25s ease, opacity .2s ease, transform .2s ease;
  box-shadow:0 10px 22px rgba(0,0,0,.26);
}

.history-panel.is-expanded .history-gallery-button{
  pointer-events:auto;
  transform:translateY(0);
}

.gallery-button-icon{
  font-size:1.1em;
  line-height:1;
}

/* Aged stone-and-parchment treatment for homepage actions. */
.btn,
.history,
.shop-button{
  position:relative;
  overflow:hidden;
  border:3px double rgba(62,47,35,.72);
  border-radius:24px;
  box-shadow:0 12px 30px rgba(0,0,0,.34),inset 0 0 0 2px rgba(120,86,52,.22);
}

.btn-dark{border-color:rgba(255,241,222,.9)}

.btn::before,
.history::before,
.shop-button::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(ellipse at 0 0,rgba(58,40,26,.34),transparent 32%),
    radial-gradient(ellipse at 100% 0,rgba(58,40,26,.34),transparent 32%),
    radial-gradient(ellipse at 0 100%,rgba(58,40,26,.34),transparent 32%),
    radial-gradient(ellipse at 100% 100%,rgba(58,40,26,.34),transparent 32%),
    linear-gradient(90deg,rgba(58,40,26,.32) 0%,transparent 20%,transparent 80%,rgba(58,40,26,.32) 100%);
}

.btn>* ,
.history>* ,
.shop-button>*{position:relative;z-index:1}

.workshops-home-note {
  max-width: 320px;
  margin: 8px auto 0;
  color: rgba(255, 241, 222, 0.82);
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
}

/* FOOTER */

.footer{
  position:relative;
  z-index:50;
  padding:
    9px
    12px
    calc(9px + var(--safe-bottom));
  background:linear-gradient(
    to top,
    rgba(0,0,0,.86),
    rgba(0,0,0,.48),
    transparent
  );
  text-align:center;
}

.footer-links{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
}

.footer-links a{
  color:#fff1de;
  font-size:11.5px;
  font-weight:600;
  text-decoration:none;
  opacity:.9;
}

.footer-links a:hover{
  opacity:1;
  color:white;
}

.footer-links span{
  color:rgba(255,255,255,.35);
  font-size:11px;
}

.footer-copy{
  margin-top:4px;
  font-size:10.5px;
  color:rgba(255,255,255,.58);
}

/* MAŁE TELEFONY */

@media(max-height:680px){

  .content{
    padding-top:calc(48px + var(--safe-top));
    padding-bottom:calc(28px + var(--safe-bottom));
  }

  .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,
  .shop-button{
    height:36px;
    font-size:17px;
  }

  .shop-button{
    margin-top:7px;
  }

  .footer-links a{
    font-size:10.5px;
  }

  .footer-copy{
    font-size:9.5px;
  }
}

/* BARDZO NISKIE EKRANY */

@media(max-height:590px){

  .content{
    padding-bottom:calc(24px + var(--safe-bottom));
  }

  .subtitle{
    display:none;
  }

  .logo{
    width:58px;
  }

  h1{
    font-size:38px;
  }

  .breslau{
    font-size:16px;
  }

  .btn{
    height:44px;
    font-size:20px;
  }

  .history,
  .shop-button{
    height:34px;
    font-size:16px;
  }

  .footer{
    padding:
      7px
      8px
      calc(7px + var(--safe-bottom));
  }

  .footer-links{
    gap:5px;
  }

  .footer-links a{
    font-size:9.8px;
  }

  .footer-copy{
    display:none;
  }
}

/* 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:calc(96px + var(--safe-bottom));
  }

  .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,
  .shop-button{
    width:240px;
    height:58px;
    font-size:28px;
  }

  .footer-links a{
    font-size:13px;
  }

  .footer-copy{
    font-size:12px;
  }
}
/* =========================
   USER / ACCOUNT
========================= */

.user-button {
  position: fixed;
  top: 18px;
  right: 18px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 2px solid #fff1de;
  border-radius: 50%;

  background: #000;

  color: #fff1de;
  text-decoration: none;

  z-index: 1000;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.user-button:hover {
  transform: scale(1.08);
  background: #000;
}

.user-icon {
  position: relative;
  width: 19px;
  height: 19px;
  display: block;
}

.user-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff1de;
  transform: translateX(-50%);
}

.user-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 17px;
  height: 9px;
  border-radius: 10px 10px 3px 3px;
  background: #fff1de;
  transform: translateX(-50%);
}

@media(max-width:700px){
  .homepage-view .lang-bar{
    height:auto;
    min-height:76px;
    display:grid;
    grid-template-columns:repeat(6,minmax(0,1fr));
    align-content:start;
    gap:5px;
    padding:7px 8px;
    overflow:hidden;
  }
  .homepage-view .lang-bar button{min-width:0;width:100%;height:23px;padding:0 2px;border-radius:999px}
  .homepage-view .user-button{top:14px;right:18px;width:34px;height:34px}
  .homepage-view .content{padding-top:calc(132px + var(--safe-top))}
}