:root { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial; }
body { margin: 0; background: #0b0d12; color: #eef1ff; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 22px; }
.top h1 { margin: 0 0 6px; font-size: 28px; }
.sub { margin: 0 0 18px; opacity: .85; line-height: 1.35; }

.panel { background: #121726; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 920px) { .grid { grid-template-columns: 1fr; } }

.row { display:flex; align-items:center; justify-content:space-between; gap: 12px; margin-bottom: 16px; }
.label { opacity:.7; font-size:12px; }
.big { font-size: 22px; font-weight: 800; }
.right { display:flex; gap:10px; flex-wrap: wrap; }

.btn { background:#6c7bff; color:#0b0d12; border:0; padding:10px 12px; border-radius:12px; cursor:pointer; font-weight:800; }
.btn.ghost { background: transparent; color: #eef1ff; border: 1px solid rgba(255,255,255,.18); }
.btn:disabled { opacity:.45; cursor:not-allowed; }

.diceLine { display:flex; gap: 12px; align-items: flex-start; margin: 10px 0 8px; }
.diceBadge {
  width: 48px; height: 48px; border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  font-weight: 900; font-size: 18px;
}
.diceTitle { font-weight: 900; font-size: 16px; }
.diceText { opacity: .85; margin-top: 4px; line-height: 1.35; }

.options { display:flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.optionBtn {
  text-align: left;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color:#eef1ff;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
}
.optionBtn:hover { border-color: rgba(255,255,255,.22); }
.optionBtn.active { background:#eef1ff; color:#0b0d12; border-color:#eef1ff; }
.optionMeta { margin-top: 6px; opacity: .85; font-size: 13px; }

.hint { margin-top: 12px; opacity:.78; font-size: 13px; line-height: 1.35; }
.mini { display:flex; justify-content:space-between; gap: 10px; margin-top: 12px; opacity:.88; font-size: 13px; flex-wrap: wrap; }

.pl { margin-top: 10px; }
.plRow { display:flex; justify-content:space-between; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.plRow:last-child { border-bottom: 0; }
.plName { opacity:.92; }
.plVal { font-variant-numeric: tabular-nums; font-weight:800; }
.plRow.section .plName { font-weight: 900; opacity: 1; }
.plRow.section { padding-top: 12px; }
.plRow.total .plName, .plRow.total .plVal { font-size: 16px; font-weight: 950; }

.sep { border: 0; border-top: 1px solid rgba(255,255,255,.10); margin: 14px 0; }

.kpis { display:grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 6px; }
.kpi { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 10px; }
.kpiLabel { opacity:.75; font-size: 12px; }
.kpiVal { font-weight: 950; font-size: 18px; margin-top: 4px; font-variant-numeric: tabular-nums; }

.history { margin-top: 14px; }
.history h3 { margin: 0 0 8px; font-size: 14px; opacity:.92; }
.historyRow { display:flex; justify-content:space-between; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.07); font-variant-numeric: tabular-nums; }

.footnote { margin-top: 12px; opacity:.65; }
