:root{
  --bg:#0b1220;
  --bg2:#0f1a2c;
  --card:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.10);
  --text:#f3efe6;
  --muted:rgba(243,239,230,.72);
  --accent:#d6b56c;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --r:18px;
  --max: 980px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:
    radial-gradient(1200px 800px at 30% 10%, rgba(214,181,108,.12), transparent 60%),
    radial-gradient(900px 600px at 80% 30%, rgba(130,190,160,.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
}

.app{min-height:100%; display:flex; flex-direction:column}
.top{padding:18px 16px}
.content{width:100%; max-width:var(--max); margin:0 auto; padding:0 16px 24px}
.foot{padding:18px 16px; color:var(--muted); font-size:12px; text-align:center}

.brand{display:flex; gap:12px; align-items:center; max-width:var(--max); margin:0 auto}
.logo{
  width:42px; height:42px; border-radius:14px;
  background: radial-gradient(circle at 30% 30%, rgba(214,181,108,.9), rgba(214,181,108,.25));
  box-shadow: var(--shadow);
  border:1px solid var(--border);
}
.name{font-weight:800; letter-spacing:.3px}
.sub{color:var(--muted); font-size:12px}

.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:var(--r);
  padding:16px;
  box-shadow:var(--shadow);
  margin:12px 0;
  backdrop-filter: blur(10px);
}

h1{margin:0 0 10px; font-size:22px}
h2{margin:0 0 10px; font-size:20px}
h3{margin:14px 0 10px; font-size:14px; color:var(--text)}
.note{color:var(--text); line-height:1.35}
.disclaimer{color:var(--muted); font-size:12px; line-height:1.35}

.row{display:grid; grid-template-columns: 1fr 120px; gap:10px; margin:12px 0}
.field span{display:block; color:var(--muted); font-size:12px; margin-bottom:6px}
input{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(0,0,0,.18);
  color:var(--text);
  outline:none;
}

.btn{
  border:1px solid var(--border);
  background:rgba(0,0,0,.16);
  color:var(--text);
  padding:12px 14px;
  border-radius:14px;
  cursor:pointer;
}
.btn.primary{
  border-color: rgba(214,181,108,.35);
  background: rgba(214,181,108,.18);
}
.btn:active{transform: translateY(1px)}
.hidden{display:none}

.progress{color:var(--muted); font-size:12px; margin-bottom:10px}

.options{display:grid; gap:10px}
.opt{
  border:1px solid var(--border);
  border-radius:16px;
  padding:12px;
  background: rgba(0,0,0,.14);
  cursor:pointer;
}
.opt .t{font-weight:700}
.opt .s{color:var(--muted); font-size:12px; margin-top:6px; line-height:1.35}

.choice{margin-top:12px; padding-top:12px; border-top:1px solid var(--border)}
.choiceTitle{font-weight:800; margin-bottom:6px}
.choiceText{color:var(--muted); line-height:1.45}
.choiceActions{display:flex; gap:10px; margin-top:10px; flex-wrap:wrap}

.resultGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:8px;
  margin:10px 0 12px;
}
.line{
  display:flex; justify-content:space-between; gap:10px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.14);
}
.line b{color:var(--text)}
.line span{color:var(--muted)}
.big{margin:8px 0 12px; font-weight:800}
#leading{color:var(--accent)}
.praise{
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(214,181,108,.25);
  background: rgba(214,181,108,.10);
  margin-bottom:12px;
  line-height:1.4;
}

.cols{display:grid; grid-template-columns:1fr; gap:12px}
ul{margin:0; padding-left:18px; color:var(--muted)}
.actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:12px}
.small{color:var(--muted); font-size:12px; margin-top:10px}

.history{display:grid; gap:10px}
.histItem{
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background: rgba(0,0,0,.14);
}
.histItem .d{color:var(--muted); font-size:12px}
.histItem .x{margin-top:6px; font-weight:700}

@media (min-width:820px){
  .resultGrid{grid-template-columns: 1fr 1fr}
  .cols{grid-template-columns:1fr 1fr}
}
