:root{
  --bg:#0d0d0f;
  --surface:#16161a;
  --surface2:#1e1e24;
  --border:rgba(255,255,255,0.08);
  --accent:#c8f542;
  --accent2:#5b8fff;
  --text:#f0eeea;
  --muted:#8b8b96;
  --low:#ff6b4a;
  --high:#5b8fff;
  --win:#c8f542;
  --radius:18px;
  --mono:'Space Mono', monospace;
  --display:'Syne', sans-serif;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  background:
    radial-gradient(circle at top left, rgba(91,143,255,0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(200,245,66,0.15), transparent 35%),
    linear-gradient(135deg,#09090b,#111118,#16161f);

  background-size:200% 200%;
  animation:bgMove 12s ease infinite;

  color:var(--text);
  font-family:var(--display);

  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;

  padding:2rem 1rem;
  overflow:hidden;
  position:relative;
}

body::before{
  content:'';
  position:fixed;
  inset:0;

  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

  background-size:40px 40px;

  mask-image:radial-gradient(circle at center, black 30%, transparent 90%);

  pointer-events:none;
}

body::after{
  content:'';
  position:fixed;
  width:500px;
  height:500px;
  background:radial-gradient(circle, rgba(200,245,66,0.12), transparent 70%);
  top:-150px;
  left:-150px;
  border-radius:50%;
  animation:floatGlow 8s ease-in-out infinite alternate;
  pointer-events:none;
}

.container{
  position:relative;
  z-index:2;
  width:100%;
  max-width:500px;
}

.info-btn{
  position:absolute;
  top:0;
  left:0;

  width:45px;
  height:45px;

  border:none;
  border-radius:50%;

  background:var(--accent);
  color:#000;

  font-size:20px;
  font-weight:bold;

  cursor:pointer;

  box-shadow:0 0 20px rgba(200,245,66,.4);
}

.header{
  margin-bottom:2rem;
}

.tag{
  display:inline-block;
  border:1px solid rgba(200,245,66,.4);
  color:var(--accent);

  padding:5px 12px;
  border-radius:6px;

  font-size:11px;
  margin-bottom:1rem;
}

h1{
  font-size:3.2rem;
  line-height:1;
  font-weight:800;
}

h1 span{
  color:var(--accent);
  text-shadow:0 0 15px rgba(200,245,66,.5);
}

.subtitle{
  margin-top:.8rem;
  color:var(--muted);
  font-size:13px;
}

.card{
  background:rgba(22,22,26,.75);
  backdrop-filter:blur(12px);

  border:1px solid var(--border);
  border-radius:var(--radius);

  padding:1.7rem;

  box-shadow:
    0 10px 40px rgba(0,0,0,.45),
    0 0 30px rgba(200,245,66,.05);
}

.range-labels{
  display:flex;
  justify-content:space-between;

  color:var(--muted);
  font-size:11px;

  margin-bottom:.5rem;
}

.range-track{
  height:5px;
  background:var(--surface2);
  border-radius:20px;
  overflow:hidden;
  position:relative;

  margin-bottom:1.7rem;
}

.range-fill{
  position:absolute;
  height:100%;
  background:linear-gradient(90deg,var(--accent2),var(--accent));
  transition:.4s;
}

.hint-box{
  background:rgba(255,255,255,.03);

  border:1px solid rgba(255,255,255,.05);

  border-radius:14px;

  padding:1.6rem;

  text-align:center;

  margin-bottom:1.5rem;
}

.hint-icon{
  font-size:34px;
  display:block;
  margin-bottom:.5rem;
}

.hint-text{
  font-size:1.5rem;
  font-weight:700;
}

.hint-sub{
  margin-top:.6rem;
  color:var(--muted);
  font-size:12px;
}

.input-row{
  display:flex;
  gap:10px;
  margin-bottom:1rem;
}

input{
  flex:1;

  background:var(--surface2);

  border:1px solid var(--border);
  border-radius:12px;

  padding:.8rem;

  color:white;

  font-size:1.2rem;
  text-align:center;

  outline:none;
}

input:focus{
  border-color:var(--accent);
  box-shadow:0 0 15px rgba(200,245,66,.2);
}

.btn-guess{
  background:linear-gradient(135deg,var(--accent),#e7ff9d);

  color:#000;

  border:none;
  border-radius:12px;

  padding:.8rem 1.3rem;

  font-weight:bold;
  cursor:pointer;

  transition:.2s;
}

.btn-guess:hover{
  transform:translateY(-2px);
  box-shadow:0 0 20px rgba(200,245,66,.35);
}

.history{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.chip{
  padding:6px 11px;
  border-radius:30px;

  font-size:12px;
  font-weight:bold;
}

.chip-low{
  background:rgba(255,107,74,.15);
  color:var(--low);
}

.chip-high{
  background:rgba(91,143,255,.15);
  color:var(--high);
}

.chip-win{
  background:rgba(200,245,66,.15);
  color:var(--win);
}

.win-overlay{
  display:none;
  text-align:center;
  margin-top:1rem;
}

.win-overlay.show{
  display:block;
}

.win-number{
  font-size:4rem;
  color:var(--accent);
  font-weight:800;
  text-shadow:0 0 25px rgba(200,245,66,.4);
}

.btn-new{
  margin-top:1rem;

  background:transparent;

  border:1px solid rgba(200,245,66,.5);
  color:var(--accent);

  padding:.8rem 1.5rem;
  border-radius:12px;

  cursor:pointer;
}

.bottom-stats{
  display:flex;
  gap:14px;
  margin-top:1.5rem;
}

.stat-box{
  flex:1;

  background:rgba(255,255,255,.04);

  border:1px solid rgba(255,255,255,.06);

  border-radius:16px;

  padding:1rem;

  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;

  backdrop-filter:blur(10px);

  box-shadow:0 5px 20px rgba(0,0,0,.25);
}

.stat-title{
  font-size:12px;
  color:var(--muted);
  margin-bottom:.4rem;
}

.stat-number{
  font-size:2rem;
  font-weight:800;
  color:var(--accent);

  text-shadow:0 0 15px rgba(200,245,66,.3);
}

.credit{
  text-align:center;
  margin-top:2rem;
  color:var(--muted);
  font-size:12px;
}

.credit span{
  color:var(--accent);
}

.info-window{
  position:fixed;
  inset:0;

  background:rgba(0,0,0,.7);

  display:none;
  align-items:center;
  justify-content:center;

  z-index:999;
}

.info-window.show{
  display:flex;
}

.info-content{
  width:90%;
  max-width:420px;

  background:#17171c;

  border:1px solid rgba(255,255,255,.08);

  border-radius:20px;

  padding:2rem;

  position:relative;
}

.info-content h2{
  color:var(--accent);
  margin-bottom:1rem;
}

.info-content p,
.info-content li{
  line-height:1.9;
  font-size:14px;
}

.info-content ul{
  margin-top:1rem;
  padding-right:1rem;
}

.close-btn{
  position:absolute;
  top:10px;
  left:15px;

  border:none;
  background:none;

  color:white;
  font-size:25px;

  cursor:pointer;
}

@keyframes bgMove{
  0%{
    background-position:0% 50%;
  }

  50%{
    background-position:100% 50%;
  }

  100%{
    background-position:0% 50%;
  }
}

@keyframes floatGlow{
  from{
    transform:translateY(0px) translateX(0px);
  }

  to{
    transform:translateY(40px) translateX(40px);
  }
}
.info-wrapper{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:20px;
}

.info-text{
  color:white;
  font-size:14px;
  opacity:0.8;
}