/* Farm Pietre Dragon · unealtă de evidență */

.pt-banner { background: linear-gradient(120deg, rgba(245,197,66,.16), rgba(11,13,20,0) 60%), radial-gradient(70% 120% at 82% 0%, rgba(176,107,255,.22), transparent 70%); }

/* ---- sumar ---- */
.board { position: sticky; top: 76px; z-index: 30; backdrop-filter: blur(10px); background: rgba(14,17,27,.93); }
.board-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); min-width: 0; }
.stat i { display: block; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stat b { display: block; font-size: 30px; line-height: 1.15; font-weight: 800; margin-top: 2px; }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat.big { border-color: rgba(245,197,66,.35); background: rgba(245,197,66,.09); }
.stat.big b { color: var(--gold); }
.stat.clock b { font-size: 26px; font-variant-numeric: tabular-nums; color: #9fd8e8; }
.stat.all-done b { color: #4ade80; }
.bar { position: relative; height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); margin-top: 12px; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, var(--gold-2), var(--gold)); transition: width .25s ease; }

/* ---- setari ---- */
.opts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.opt { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.opt-sp { flex: 1; }
.stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(10,12,20,.6); }
.stepper button { width: 30px; height: 30px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 17px; cursor: pointer; }
.stepper button:hover { color: #fff; }
.stepper b { min-width: 24px; text-align: center; font-weight: 800; color: var(--text); }
.opt.sw { cursor: pointer; }
.opt.sw input { width: 17px; height: 17px; accent-color: var(--gold); }
.opts button.ghost { padding: 8px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05);
  color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.opts button.ghost:hover { color: var(--text); border-color: rgba(255,255,255,.22); }
.opts button.danger:hover { color: #ff8ea3; border-color: rgba(255,92,122,.45); background: rgba(255,92,122,.08); }

/* ---- conturi ---- */
.acc-card { margin: 0 0 14px; border: 1px solid var(--panel-border); border-radius: 18px; background: var(--panel); overflow: hidden; }
.acc-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid rgba(255,255,255,.06); }
.acc-top .num { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 9px; font-size: 13px; font-weight: 800;
  background: rgba(245,197,66,.14); color: var(--gold); border: 1px solid rgba(245,197,66,.3); }
.acc-top input { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; font-weight: 700; font-size: 15px; }
.acc-top input:hover { border-color: rgba(255,255,255,.12); }
.acc-top input:focus { outline: none; border-color: rgba(245,197,66,.5); background: rgba(10,12,20,.6); }
.acc-prog { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--muted); white-space: nowrap; }
.acc-prog.done { color: #4ade80; border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.1); }
.acc-del { width: 30px; height: 30px; flex: none; border-radius: 9px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.04);
  color: var(--muted); font-size: 15px; cursor: pointer; }
.acc-del:hover { color: #ff8ea3; border-color: rgba(255,92,122,.4); }

.chars { display: flex; flex-direction: column; }
.char { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid rgba(255,255,255,.05); }
.char:last-child { border-bottom: 0; }
.char.done { background: rgba(74,222,128,.05); }
.char .ci { width: 24px; flex: none; text-align: center; font-size: 12px; font-weight: 800; color: rgba(255,255,255,.28); }
.char .cn { flex: 1; min-width: 0; padding: 7px 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; font-size: 14.5px; }
.char .cn::placeholder { color: rgba(255,255,255,.28); }
.char .cn:hover { border-color: rgba(255,255,255,.1); }
.char .cn:focus { outline: none; border-color: rgba(245,197,66,.5); background: rgba(10,12,20,.6); }

.q { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04); color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.q img { width: 22px; height: 22px; opacity: .6; }
.q:hover { color: var(--text); border-color: rgba(255,255,255,.24); }
.q.on { color: #bff3d0; border-color: rgba(74,222,128,.45); background: rgba(74,222,128,.14); }
.q.on img { opacity: 1; }
.q.on::after { content: "✓"; font-size: 12px; color: #4ade80; }
.q.d2 { border-color: rgba(176,107,255,.22); }
.q.d2.on { color: #e3d0ff; border-color: rgba(176,107,255,.5); background: rgba(176,107,255,.16); }
.q.d2.on::after { color: #c9a0ff; }

.st { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(10,12,20,.55); }
.st button { width: 28px; height: 30px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 15px; cursor: pointer; }
.st button:hover { color: #fff; }
.st input { width: 44px; border: 0; background: none; color: var(--gold); font: inherit; font-weight: 800; font-size: 14px; text-align: center; -moz-appearance: textfield; }
.st input::-webkit-outer-spin-button, .st input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.st input:focus { outline: none; }
.st-ic { width: 20px; height: 20px; margin: 0 2px 0 7px; opacity: .85; }

.add-row { margin: 4px 0 22px; text-align: center; }
.add-row button { padding: 11px 20px; border-radius: 12px; border: 1px dashed rgba(245,197,66,.4); background: rgba(245,197,66,.07);
  color: var(--gold); font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.add-row button:hover { background: rgba(245,197,66,.14); }

/* ---- modal backup ---- */
.modal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(5,7,12,.72); backdrop-filter: blur(3px); }
.modal[hidden] { display: none; }
.modal-box { position: relative; width: min(560px, 100%); background: #11141f; border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 22px; }
.modal-box h3 { margin: 0 0 8px; font-size: 18px; color: var(--gold); }
.modal-box p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.modal-box textarea { width: 100%; height: 130px; resize: vertical; border-radius: 10px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,10,16,.8); color: var(--text); font: 12px/1.5 ui-monospace, Menlo, monospace; padding: 10px; }
.modal-box textarea:focus { outline: none; border-color: rgba(245,197,66,.5); }
.modal-go { display: flex; gap: 8px; margin-top: 10px; }
.modal-go button { padding: 9px 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06);
  color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.modal-go button:hover { border-color: rgba(245,197,66,.5); }
.modal-x { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 9px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05); color: var(--muted); font-size: 17px; cursor: pointer; }
.modal-box .hint { margin: 10px 0 0; font-size: 13px; }

@media (max-width: 860px) {
  .board { position: static; }
  .board-row { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 26px; }
}
@media (max-width: 620px) {
  .char { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .char .cn { flex: 1 1 100%; order: -1; font-size: 15px; }
  .char .ci { order: -2; }
  .q { flex: 1; justify-content: center; }
  .st { margin-left: auto; }
}
