*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html,body{
  width:100%;
  min-height:100%;
  background:#02010a;
  font-family:Arial, sans-serif;
  overflow:hidden;
}

.hidden{
  display:none!important;
}

/* OVERLAY */

.overlay{
  position:fixed;
  inset:0;
  background:#02010a;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:32px;
  z-index:10;
  padding:24px;
}

.overlay h1{
  color:#18cfff;
  font-size:clamp(38px,11vw,95px);
  max-width:100%;
  text-align:center;
  letter-spacing:1px;
  line-height:1;
  white-space:nowrap;
  text-shadow:0 0 35px rgba(24,207,255,.7);
}

.overlay button{
  border:2px solid #18cfff;
  background:rgba(24,207,255,.08);
  color:#18cfff;
  border-radius:999px;
  padding:16px 46px;
  font-size:24px;
  font-weight:900;
  letter-spacing:3px;
}

/* APP */

.app{
  width:100%;
  height:100vh;
  background:#f8f6ff;
  padding:env(safe-area-inset-top) 14px 14px;
  overflow:hidden;
}

.top{
  height:64px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.round{
  width:54px;
  height:54px;
  border-radius:50%;
  border:none;
  background:white;
  color:#111;
  font-size:32px;
  font-weight:900;
  text-decoration:none;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.exit{
  background:#ff4b3e;
  color:white;
}

.coins{
  background:white;
  border-radius:999px;
  padding:11px 22px;
  font-size:25px;
  font-weight:900;
  box-shadow:0 5px 15px rgba(0,0,0,.15);
}

.screen{
  width:100%;
  height:calc(100vh - 78px);
  text-align:center;
}

.scrollScreen{
  overflow-y:auto;
  overflow-x:hidden;
  padding-bottom:40px;
  -webkit-overflow-scrolling:touch;
}

h2{
  font-size:30px;
  margin:6px 0 14px;
  color:#111;
}

/* ALFABETO */

.alphabet{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  max-width:420px;
  margin:0 auto;
  padding-bottom:35px;
}

.ball{
  aspect-ratio:1/1;
  border-radius:50%;
  border:none;
  color:white;
  font-size:34px;
  font-weight:900;
  position:relative;
  overflow:hidden;
  box-shadow:
    inset -8px -10px 15px rgba(0,0,0,.25),
    inset 5px 7px 12px rgba(255,255,255,.35),
    0 8px 15px rgba(0,0,0,.25);
  transition:.15s;
}

.ball:active{
  transform:scale(.92);
}

.ball::after{
  content:"";
  position:absolute;
  width:38%;
  height:25%;
  top:14%;
  left:16%;
  border-radius:50%;
  background:rgba(255,255,255,.55);
  filter:blur(3px);
}

.ball.done{
  outline:5px solid gold;
}

/* SILABAS */

.syllables{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  max-width:420px;
  margin:0 auto 18px;
  padding-bottom:10px;
}

.syllableBall{
  aspect-ratio:1/1;
  border-radius:50%;
  border:none;
  color:white;
  font-size:34px;
  font-weight:900;
  position:relative;
  overflow:hidden;
  box-shadow:
    inset -8px -10px 15px rgba(0,0,0,.25),
    inset 5px 7px 12px rgba(255,255,255,.35),
    0 8px 15px rgba(0,0,0,.25);
  transition:.15s;
}

.syllableBall:active{
  transform:scale(.92);
}

.syllableBall::after{
  content:"";
  position:absolute;
  width:38%;
  height:25%;
  top:14%;
  left:16%;
  border-radius:50%;
  background:rgba(255,255,255,.55);
  filter:blur(3px);
}

.readBtn{
  margin-top:10px;
  width:90%;
  max-width:380px;
  padding:20px;
  border:none;
  border-radius:28px;
  background:#ffcc00;
  color:#111;
  font-size:28px;
  font-weight:900;
  box-shadow:0 8px 18px rgba(0,0,0,.25);
}

/* QUIZ */

.quizBox{
  background:white;
  border-radius:28px;
  padding:18px;
  margin-bottom:14px;
  box-shadow:0 6px 15px rgba(0,0,0,.15);
}

.quizWord{
  font-size:48px;
  font-weight:900;
  color:#111;
}

.streak{
  font-size:22px;
  font-weight:900;
  margin-top:8px;
}

.options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.option{
  aspect-ratio:1/1;
  border:none;
  border-radius:24px;
  background:white;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  box-shadow:0 6px 15px rgba(0,0,0,.18);
  transition:.15s;
}

.option img{
  width:88%;
  height:88%;
  object-fit:contain;
}

.option:active{
  transform:scale(.94);
}

.option.wrong{
  opacity:0;
  pointer-events:none;
}

.option.correct{
  background:#8cff8c;
}

/* MONEDAS */

.coin{
  position:fixed;
  width:42px;
  height:42px;
  border-radius:50%;
  pointer-events:none;
  z-index:9999;
  background:
    radial-gradient(circle at 30% 30%, #fff7b0 0%, #ffe066 20%, #f5b700 60%, #b8860b 100%);
  border:2px solid #ffd700;
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,.7),
    inset 0 -4px 6px rgba(0,0,0,.25),
    0 4px 10px rgba(0,0,0,.3);
}

.coin::after{
  content:"★";
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff8c5;
  font-size:18px;
  font-weight:bold;
}

/* IPHONE CHICO */

@media(max-width:390px){
  .overlay h1{
    font-size:clamp(34px,10vw,46px);
    letter-spacing:0;
  }

  .overlay button{
    font-size:22px;
    padding:15px 40px;
  }

  .alphabet{
    gap:10px;
  }

  .ball,
  .syllableBall{
    font-size:30px;
  }
}

/* TABLET / DESKTOP */

@media(min-width:700px){
  .alphabet{
    grid-template-columns:repeat(6,1fr);
    max-width:650px;
  }

  .syllables{
    grid-template-columns:repeat(5,1fr);
    max-width:650px;
  }

  .options{
    max-width:650px;
    margin:0 auto;
  }
}