:root{
  --bg:#f7fbff;
  --card:#ffffff;
  --ink:#0f172a;
  --muted:#64748b;
  --purple:#a855f7;
  --shadow: 0 14px 35px rgba(15,23,42,.10);
  --radius: 18px;
}

*{ box-sizing:border-box }

body{
  margin:0;
  font-family: system-ui, Arial;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(59,130,246,.12), transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(251,113,133,.12), transparent 45%),
    radial-gradient(circle at 40% 95%, rgba(34,197,94,.12), transparent 45%),
    var(--bg);
  min-height:100vh;
}

header{
  text-align:center;
  padding:24px 16px 10px;
}

.badge{
  display:inline-block;
  padding:8px 14px;
  border-radius:999px;
  background:rgba(168,85,247,.14);
  color:#6d28d9;
  font-weight:800;
  font-size:13px;
}

h1{ margin:10px 0 6px; }
.lead{ color:var(--muted); max-width:860px; margin:0 auto; }

.wrap{
  max-width:1100px;
  margin:14px auto 36px;
  padding:0 16px;
}

.grid{
  display:grid;
  gap:14px;
}

@media(min-width:900px){
  .grid{ grid-template-columns:1fr 1fr; }
}

.card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  border:1px solid rgba(15,23,42,.06);
}

.topic{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.icon{
  width:46px;height:46px;
  border-radius:14px;
  background:rgba(168,85,247,.16);
  display:grid;
  place-items:center;
  font-size:22px;
  flex:0 0 auto;
}

.topic h3{ margin:0 0 6px; font-size:18px; }
.topic p{ margin:0; color:var(--muted); font-size:14px; line-height:1.55; }

.controls{
  margin-top:14px;
  padding:12px;
  border-radius:16px;
  background:rgba(15,23,42,.03);
  border:1px solid rgba(15,23,42,.06);
  display:grid;
  gap:8px;
}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.chip{
  background:rgba(59,130,246,.12);
  color:#1d4ed8;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

input[type="range"]{
  width:100%;
  margin:4px 0 6px;
}

.toggle{
  font-size:12px;
  color:var(--muted);
  font-weight:800;
  display:flex;
  gap:8px;
  align-items:center;
}

.btn{
  border:1px solid rgba(59,130,246,.22);
  background:linear-gradient(135deg, rgba(59,130,246,.14), rgba(34,197,94,.10));
  padding:8px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 18px rgba(15,23,42,.08);
  transition:.12s ease;
}

.btn:hover{ transform:translateY(-1px); }
.btn:active{ transform:translateY(0px) scale(.99); }

.note{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.5;
}

/* PRESSURE BAR */
.pressureBar{
  width:100%;
  height:12px;
  background:rgba(15,23,42,.1);
  border-radius:999px;
  overflow:hidden;
  margin-top:-2px;
}

.pressureFill{
  height:100%;
  width:0%;
  background:linear-gradient(90deg, #22c55e, #fbbf24, #ef4444);
  border-radius:999px;
  transition: width .15s ease;
}

.simCard{ text-align:center; }

canvas{
  background:#0f172a;
  border-radius:14px;
  max-width:100%;
}

.simHint{
  font-size:12px;
  color:var(--muted);
  margin-top:8px;
}

 
