:root{
  --bg:#22958e;
  --card:#0f1a2e;
  --txt:#eaf0ff;
  --muted:#b9c6ff;
  --accent:#6ea8fe;

  /* background image nasa /assets */
  --bg-img: url("bg.png");  /* <-- palitan mo file name kung iba */
  --overlay: rgba(0, 0, 0, 0);

  /* ✅ CONTROL: move image up/down (positive = baba, negative = taas) */
  --bg-img-y: 75px;

  /* ✅ RESPONSIVE SIZE CONTROL (auto scale) */
  --bg-img-w: clamp(220px, 55vw, 500px); /* width scales by screen */
  --bg-img-h: auto;                      /* keep aspect ratio */

}

@media (max-width: 600px){
  :root{ --bg-img-y: 100px; 
        --bg-img-w: clamp(200px, 78vw, 420px); /* a bit wider on phones */
      }
}

*{box-sizing:border-box}

body{
  margin:0;
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:18px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--txt);

   /* ✅ image is OUTSIDE the card, positioned center-top */
  background-image:
    var(--bg-img),
    radial-gradient(1200px 600px at 20% 10%, #3bcdda, var(--bg));
  background-repeat: no-repeat, no-repeat;
  background-position: center var(--bg-img-y), center;
  background-size: var(--bg-img-w) var(--bg-img-h), cover; /* responsive image size */


  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color:var(--txt);
  padding:18px;

  position: relative; /* needed for overlay */
}

/* NEW: overlay layer (full page) */
body::before{
  content:"";
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 0;
}

/* NEW: keep content above overlay */
body > *{
  position: relative;
  z-index: 1;
}

.card{
  width:min(520px, 100%);
  background: rgba(15,26,46,.92);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);

  /* optional glass effect */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

h1{margin:10px 0 8px; font-size:1.55rem}
p{margin:0 0 12px; color:var(--muted); line-height:1.5}

.badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-weight:700;
  font-size:.8rem;
  letter-spacing:.4px;
}
.badge.warn{background:rgba(255,193,7,.18); color:#ffd36b; border:1px solid rgba(255,193,7,.25)}
.badge.ok{background:rgba(25,135,84,.18); color:#6ee7b7; border:1px solid rgba(25,135,84,.25)}

.btn{
  border:0;
  padding:10px 14px;
  border-radius:12px;
  background: var(--accent);
  color:#0b1220;
  font-weight:800;
  cursor:pointer;
}
.btn:hover{filter:brightness(1.05)}

.hint{font-size:.95rem}

.small{
  margin-top:14px;
  font-size:.85rem;
  color:#cbd5ff;
  opacity:.95;
}

code{
  background:rgba(255,255,255,.08);
  padding:2px 6px;
  border-radius:8px;
}

.progress{
  width:100%;
  height:10px;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  overflow:hidden;
  margin:14px 0 8px;
}
.bar{
  width:0%;
  height:100%;
  background:rgba(110,168,254,.9);
  transition:width .3s linear;
}

.card-hero{
  width: 100%;
  height: clamp(120px, 22vw, 240px);
  object-fit: cover;
  display:block;
  border-radius:14px;
  margin-bottom:12px;


  object-fit: cover;
  max-height: 180px;
}

@media (min-width: 768px){
  .card-hero{ max-height: 220px; }
}