:root{
  --color-primary:#0f8f98;
  --color-primary-dark:#0c737a;
  --color-title:#0e5f66;
  --color-text:#133238;
  --color-white:rgba(255,255,255,0.92);
  --shadow-soft:0 8px 20px rgba(0,0,0,0.12);
  --radius-lg:20px;
  --radius-xl:24px;
}

*{
  box-sizing:border-box;
  margin:0;
  padding:0;
}

html,
body{
  min-height:100%;
}

body{
  font-family:Arial, sans-serif;
  background-image:url("../assets/background.jpg");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  color:var(--color-text);
  position:relative;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  background:linear-gradient(
    180deg,
    rgba(255,255,255,0.06) 0%,
    rgba(255,255,255,0.02) 30%,
    rgba(0,0,0,0.05) 100%
  );
  pointer-events:none;
  z-index:0;
}

.main{
  position:relative;
  z-index:1;
  flex:1;
  width:100%;
  display:flex;
  justify-content:center;
  align-items:center;
  padding:28px 16px 12px;
}

.container{
  width:100%;
  max-width:430px;
  text-align:center;
}

.logo{
  width:210px;
  max-width:72%;
  display:block;
  margin:0 auto 14px;
  filter:
    drop-shadow(0 0 10px rgba(255,255,255,0.55))
    drop-shadow(0 2px 12px rgba(255,255,255,0.28));
}

h1{
  font-size:32px;
  color:var(--color-title);
  margin-bottom:8px;
  text-shadow:
    0 0 12px rgba(255,255,255,0.85),
    0 2px 8px rgba(255,255,255,0.55);
}

.sub{
  font-size:18px;
  color:#4b4b4b;
  margin-bottom:22px;
  text-shadow:
    0 0 10px rgba(255,255,255,0.90),
    0 1px 6px rgba(255,255,255,0.55);
}

.input-wrap{
  position:relative;
  margin-bottom:18px;
}

input{
  width:100%;
  height:86px;
  padding:0 82px 0 24px;
  font-size:18px;
  border-radius:18px;
  border:2px solid rgba(255,255,255,0.72);
  background:var(--color-white);
  color:#25363b;
  outline:none;
  text-align:center;
  box-shadow:
    0 0 20px rgba(255,255,255,0.35),
    var(--shadow-soft),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

input::placeholder{
  color:#5e6b70;
  text-align:center;
}

.input-icon{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  width:52px;
  height:52px;
  border-radius:12px;
  background:linear-gradient(180deg,#c8efe8,#a7e2d7);
  box-shadow:
    0 0 12px rgba(255,255,255,0.4),
    inset 0 1px 0 rgba(255,255,255,0.7);
  display:flex;
  justify-content:center;
  align-items:center;
}

.input-icon svg{
  width:26px;
  height:26px;
  fill:#75b4aa;
}

button{
  width:100%;
  height:92px;
  font-size:21px;
  font-weight:bold;
  color:white;
  border:none;
  border-radius:var(--radius-lg);
  cursor:pointer;
  background:linear-gradient(180deg,#1aa0a6 0%, #0f888f 55%, #0c737a 100%);
  box-shadow:
    0 0 24px rgba(255,255,255,0.22),
    0 8px 22px rgba(0,0,0,0.20),
    inset 0 2px 0 rgba(255,255,255,0.28),
    inset 0 -2px 0 rgba(0,0,0,0.08);
  text-shadow:0 1px 2px rgba(0,0,0,0.15);
  transition:transform .18s ease, opacity .18s ease;
  position:relative;
  overflow:hidden;
}

button::before{
  content:"";
  position:absolute;
  left:12px;
  right:12px;
  top:8px;
  height:28px;
  border-radius:999px;
  background:linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0));
  pointer-events:none;
}

button:hover{
  transform:translateY(-1px);
}

button:disabled{
  opacity:0.65;
  cursor:not-allowed;
}

#resultado{
  margin-top:22px;
}

.resultado-card{
  background:rgba(255,255,255,0.74);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  border-radius:var(--radius-xl);
  border:2px solid rgba(255,255,255,0.58);
  padding:26px 20px;
  box-shadow:
    0 0 24px rgba(255,255,255,0.18),
    0 10px 28px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.65);
}

.nome{
  font-size:23px;
  font-weight:bold;
  color:#10181d;
  margin-bottom:16px;
}

.saldo-label{
  font-size:18px;
  color:#28353b;
  margin-bottom:10px;
}

.saldo{
  font-size:31px;
  font-weight:bold;
  color:var(--color-primary);
  display:flex;
  justify-content:center;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  text-shadow:0 0 8px rgba(255,255,255,0.55);
}

.moeda{
  width:34px;
  height:34px;
  object-fit:contain;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,0.14));
}

.motivacao{
  margin-top:18px;
  font-size:18px;
  color:#202c31;
}

.loading,
.erro{
  padding:26px 20px;
  font-size:18px;
  text-shadow:0 0 10px rgba(255,255,255,0.65);
}

.erro{
  color:#4a2e2e;
}

footer{
  position:relative;
  z-index:1;
  width:100%;
  text-align:center;
  padding:10px 20px 24px;
  color:white;
}

.footer-title{
  font-size:18px;
  margin-bottom:12px;
  color:white;
  text-shadow:
    0 0 12px rgba(255,255,255,0.70),
    0 2px 8px rgba(0,0,0,0.22);
}

.social{
  display:flex;
  justify-content:center;
  gap:18px;
}

.social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:56px;
  height:56px;
  border-radius:18px;
  text-decoration:none;
  background:rgba(255,255,255,0.14);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  box-shadow:
    0 0 12px rgba(255,255,255,0.18),
    0 8px 18px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.25);
  transition:transform .18s ease;
}

.social a:hover{
  transform:translateY(-2px);
}

.social img{
  width:32px;
  height:32px;
}

.coin-fall{
  position:fixed;
  top:-40px;
  pointer-events:none;
  animation:fall linear forwards;
  z-index:3;
  width:32px;
  height:32px;
  object-fit:contain;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,0.18));
}

@keyframes fall{
  0%{
    transform:translateY(0) rotate(0deg);
    opacity:1;
  }
  100%{
    transform:translateY(110vh) rotate(360deg);
    opacity:0;
  }
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  white-space:nowrap;
  border:0;
}

@media (max-width:500px){
  .main{
    padding-top:22px;
  }

  .logo{
    width:190px;
  }

  h1{
    font-size:29px;
  }

  .sub{
    font-size:17px;
  }

  input{
    height:82px;
  }

  button{
    height:86px;
    font-size:20px;
  }

  .saldo{
    font-size:27px;
  }

  .footer-title{
    font-size:17px;
  }

  .moeda{
    width:30px;
    height:30px;
  }
}