@font-face {
  font-family: 'OneStrokeScript';
  src: url('text/onestrokescriptrus_lat.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
}

a {
    text-decoration: none;
}

.wrapper {
    background: linear-gradient(180deg,rgba(0, 209, 232, 1) 34%, rgba(158, 245, 255, 1) 100%);
    width: 100%;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    font-family: 'OneStrokeScript', sans-serif;
    font-weight: 400;
}

.hero-section {
    width: 100vw;
    height: auto;
    position: relative;
    overflow: hidden;
}

.main-screen {
    width: 100vw;
    height: auto;
    object-fit: cover;
    display: block;
}

.button-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.button {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    text-decoration: none;
}

.button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.button:hover {
    transform: scale(1.1); 
    transition: transform 0.3s ease;
}

.lore-section{
  padding: 160px 0px;
}

.lore-content{
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 100px;
}

.lore-left,
.img-right{
  height: 820px;
  flex: 10 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cloud-background img{
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
}

.lore-title{
  position: absolute;
  top: 12%;
  left: 63%;
  transform: translateX(-50%);
  width: 50%;
  max-width: 480px;
  text-align: center;
}

.lore-title img{
  width: 50%;
  height: auto;
  display: block;
}

.lore-text-container{
  position: absolute;
  top: 29%;
  left: 53%;
  transform: translateX(-50%);
  width: 70%;
  text-align: center;
}

.lore-text{
  font-size: 30px;
  line-height: 1;
  color: #0a0a0a;
}

.bear-image{
  height: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  animation: floaty 3.2s ease-in-out infinite;
  will-change: transform;
}

.mission-section{
  padding: 30px 0;
}

.mission-content{
  max-width: 2000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
}

.mission-left{
  position: relative;
  width: 800px;
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cloud-back{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.bear-loop{
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
  height: auto;
  object-fit: cover;
  border-radius: 50px;
  z-index: 2;
}

.cloud-front{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 3;
  pointer-events: none;
}

.mission-right{
  position: relative;
  width: 950px;
  height: 850px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-cloud{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 1;
}

.mission-title{
  position: absolute;
  top: 14%;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  max-width: 520px;
  z-index: 2;
}

.mission-text{
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  text-align: center;
  z-index: 2;
  font-size: 34px;
  line-height: 1.1;
  color: #0a0a0a;
}

@media (max-width: 1000px){
  .mission-content{
    flex-direction: column;
    gap: 40px;
  }
  .mission-left{
    width: 90vw;
    height: 90vw;
  }
  .mission-right{
    width: 92vw;
    height: calc(92vw * 0.895);
  }
  .mission-title{ width: 65%; }
  .mission-text{ width: 80%; font-size: 16px; }
}

.footer {
    text-align: center;
    padding: 20px;
    font-size: 30px;    
}

.buy-fixed{
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(env(safe-area-inset-bottom));
  width: 350px;
  z-index: 10000;
  animation: floaty 3.2s ease-in-out infinite;
  transition: transform .2s ease,
              filter .2s ease;
}

.buy-fixed img{
  width: 100%;
  height: auto;
  display: block;
}

.buy-fixed:hover{
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.06);
  filter: drop-shadow(0 10px 22px rgba(0,0,0,.25));
}

@keyframes floaty{
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@media (max-width: 900px){
  .buy-fixed{ width: 120px; }
}

@media (max-width: 480px){
  .buy-fixed{
    width: 96px;
    top: max(8px, env(safe-area-inset-top));
    left: max(8px, env(safe-area-inset-left));
  }
}

@media (prefers-reduced-motion: reduce){
  .buy-fixed{ animation: none; }
}

.cloud-back{
  animation: floaty 5s ease-in-out infinite;
  will-change: transform;
}

.cloud-front{
  animation: floaty 4.2s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}

.clouds-wrap{
  position:relative;
  isolation:isolate;
}

.clouds-wrap::before{
  content:"";
  position:absolute;
  inset:0;
  background: url("images/fonoblaka.png") center top / cover no-repeat;
  z-index:0;
  opacity:1;
}

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


@media (max-width: 900px){
  .button-container{
    top: 8px;               
    gap: 8px;               
  }
  .button{                 
    width: 72px;
    height: 72px;
  }
}
@media (max-width: 480px){
  .button{ width: 60px; height: 60px; }
}

@media (max-width: 900px){
  .lore-section{ padding: 48px 0; }
  .lore-content{
    max-width: 95vw;
    gap: 24px;
    flex-direction: column;      
  }
  .lore-left,
  .img-right{
    height: auto;                
  }
  .cloud-background img{
    width: 100%; height: auto;     
  }

  .lore-title{
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;                   
    max-width: none;
  }
  .lore-title img{
    width: 100%; height: auto;    
  }

  .lore-text-container{
    top: 42%;
    left: 50%;
    transform: translateX(-50%);
    width: 82%;
    text-align: center;
  }
  .lore-text{
    font-size: 16px;               
    line-height: 1.35;
  }

  .bear-image{
    width: 85vw;
    height: auto;
  }
}


.buy-fixed{
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));  
}
@media (max-width: 480px){
  .buy-fixed{
    width: 96px;
    right: max(8px, env(safe-area-inset-right));   
    bottom: max(8px, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce){
  .buy-fixed{ animation: none; }
}


@media (max-width: 480px){
  .lore-section{ display: none; }
}

.mission-text .quant{
  color: #00e77b;      
  font: inherit;      
}

.lore-text .quant{
  color: #00e77b;      
  font: inherit;      
}

