/* ===== Alchimie (peste roua/style.css) ===== */
.a-banner { background:
  radial-gradient(520px 260px at 12% 20%, rgba(176,107,255,0.3), transparent 60%),
  radial-gradient(520px 260px at 55% 0%, rgba(77,163,255,0.22), transparent 60%),
  radial-gradient(520px 260px at 88% 30%, rgba(242,201,76,0.25), transparent 60%),
  linear-gradient(180deg, #171129, #0b0d14); }
.lead { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.65; }
.lead b, .note-line b { color: var(--text); }

/* piatra desenata */
.gem { display: inline-block; width: 16px; height: 16px; flex: 0 0 16px; background: var(--c, #f2c94c);
  clip-path: polygon(50% 0, 100% 35%, 80% 100%, 20% 100%, 0 35%);
  box-shadow: 0 0 10px color-mix(in srgb, var(--c, #f2c94c) 70%, transparent); }
.gem.big { width: 30px; height: 30px; flex-basis: 30px; }

.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tri { padding: 14px 16px; border-radius: 16px; background: rgba(0,0,0,0.25); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--panel-border)); }
.tri h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 17px; color: var(--c); }
.tri p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; color: #cfd6e6; }
.ladder { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 10px 0 12px; }
.ladder .st { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 9px; background: rgba(255,255,255,0.05); border: 1px solid var(--panel-border); font-size: 12px; font-weight: 700; }
.ladder .st em { font-style: normal; font-size: 10.5px; color: var(--muted); font-weight: 600; }
.ladder .st.lv { font-family: ui-monospace, Menlo, monospace; }
.ladder .ar { font-style: normal; color: var(--gold); opacity: .55; font-size: 12px; }
.order { margin-top: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(242,201,76,0.1); border-left: 3px solid var(--gold); font-size: 14px; }
.order i { font-style: normal; color: var(--gold); }

/* selector */
.pickers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.pickers > .pk { display: grid; gap: 6px; align-content: start; }
.pickers > .pk > span { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--panel-border); background: rgba(255,255,255,0.04); color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.chips button:hover { color: var(--text); }
.chips button.on { color: var(--text); border-color: var(--c, var(--gold)); background: color-mix(in srgb, var(--c, #f2c94c) 16%, transparent); }
.chips button.off { opacity: .3; cursor: not-allowed; }
.lvc button { font-family: ui-monospace, Menlo, monospace; min-width: 46px; justify-content: center; }

.sel-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.pill { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--c) 10%, rgba(0,0,0,0.25)); border: 1px solid color-mix(in srgb, var(--c) 45%, var(--panel-border)); }
.pill i { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.pill b { font-size: 17px; font-family: var(--font-display); }
.pill span { font-size: 12px; color: var(--muted); }
.note-line { margin: 12px 0; font-size: 13px; color: var(--muted); line-height: 1.6; }

.stones { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.stone { border-radius: 16px; padding: 14px 16px; background: color-mix(in srgb, var(--c) 7%, rgba(0,0,0,0.25)); border: 1px solid color-mix(in srgb, var(--c) 40%, var(--panel-border)); }
.stone header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.stone h3 { margin: 0; font-family: var(--font-display); font-size: 19px; color: var(--c); }
.stone ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.stone li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.5; color: #cfd6e6; }
.stone li i { font-style: normal; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: color-mix(in srgb, var(--c) 30%, transparent); color: #fff; font-size: 11px; font-weight: 800; }
.stone li.dim { opacity: .4; }
.setb { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--panel-border); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.setb i { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.setbase { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(242,201,76,0.08); border: 1px solid rgba(242,201,76,0.3); font-size: 13.5px; color: #d8dcea; }

/* flacari */
.flames { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 4px 0 8px; }
.flames > div { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 12px; background: rgba(0,0,0,0.25); border: 1px solid var(--panel-border); }
.flames span { font-size: 12.5px; font-weight: 700; }
.flames em { font-style: normal; font-family: var(--font-display); font-size: 22px; color: #ff8c1a; }
.sub { margin: 20px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.tbl { display: block; overflow-x: auto; width: 100%; max-width: 100%; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 500px; }
@media (max-width: 560px) { .tbl table { min-width: 460px; font-size: 12px; } }
.tbl th { text-align: left; padding: 9px 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); background: rgba(0,0,0,0.35); }
.tbl td { padding: 9px 10px; border-top: 1px solid var(--panel-border); color: #cfd6e6; }
.tbl tr:nth-child(even) td { background: rgba(255,255,255,0.02); }
.tbl em { font-style: normal; color: var(--muted); font-size: 12px; }
.tbl .fl { color: #ff8c1a; font-weight: 800; }
.tbl .z { opacity: .3; }
.hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }

.sim { padding: 14px 16px; border-radius: 16px; background: rgba(0,0,0,0.25); border: 2px solid rgba(255,140,26,0.4); }
.sim-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px; align-items: center; margin-bottom: 10px; }
.sim-row > span { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sim-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.sim-stats > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.04); }
.sim-stats i { font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sim-stats b { font-family: var(--font-display); font-size: 21px; color: var(--gold); }
.sim-go { display: flex; gap: 8px; flex-wrap: wrap; }
.sim-go button { padding: 10px 18px; border-radius: 10px; border: 0; background: linear-gradient(135deg, #ff8c1a, #e0433f); color: #fff; font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.sim-go button.ghost { background: rgba(255,255,255,0.07); color: var(--text); }
.sim-out { margin-top: 12px; min-height: 58px; }
.sim-out .ph { margin: 0; font-size: 13px; color: var(--muted); }
.res { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; border-left: 3px solid var(--gold); background: rgba(242,201,76,0.1); }
.res.good { border-color: #4ade80; background: rgba(74,222,128,0.12); }
.res.bad { border-color: #ff6b6b; background: rgba(255,107,107,0.1); }
.res b { font-family: var(--font-display); font-size: 20px; }
.res span { font-size: 13px; color: var(--muted); }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.two h3 { margin: 0 0 8px; font-family: var(--font-display); font-size: 18px; }
.two p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.6; color: #cfd6e6; }
.warn { padding: 11px 14px; border-radius: 12px; background: rgba(224,67,63,0.12); border-left: 3px solid #e0433f; font-size: 13.5px; color: #d8dcea; margin-bottom: 14px; }
.warn b { color: #ff8a86; }

@media (max-width: 900px) {
  .three, .pickers, .two { grid-template-columns: 1fr; }
  .sel-head { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim-row { grid-template-columns: 1fr; }
  .flames { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) { .sel-head { grid-template-columns: 1fr; } .sec { padding: 14px; } }

.two > div, .tri, .stone, .pk { min-width: 0; }
.sec { overflow: hidden; }

.stone li { grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; }
.stone li em { font-style: normal; font-family: var(--font-display); font-size: 16px; color: var(--c); white-space: nowrap; }
.stone li.dim em { color: var(--muted); }
.rnd { margin-top: 10px; padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,0.04); font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.rnd i { display: block; font-style: normal; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c); margin-bottom: 3px; }

.stone .sic { width: 46px; height: 46px; image-rendering: -webkit-optimize-contrast; border-radius: 8px; box-shadow: 0 0 14px color-mix(in srgb, var(--c) 40%, transparent); }

.chips .cic { width: 26px; height: 26px; border-radius: 6px; }
.jumps { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.jbtn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px; text-decoration: none; font-weight: 800; font-size: 13.5px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1300; box-shadow: 0 6px 18px -8px rgba(242,201,76,.8); }
.jbtn::before { content: "▸"; }
.jbtn.flame { background: linear-gradient(135deg, #ff8c1a, #e0433f); color: #fff; box-shadow: 0 6px 18px -8px rgba(224,67,63,.9); }
.jbtn:hover { filter: brightness(1.08); }
#sim-alchimie, #sim-flacari { scroll-margin-top: 84px; }

.ladder .lic { width: 22px; height: 22px; border-radius: 5px; }
.flames .flc { width: 40px; height: 40px; border-radius: 9px; }
.fic { width: 22px; height: 22px; vertical-align: -5px; margin-right: 5px; }
.flames em { display: inline-flex; align-items: center; gap: 2px; }
.sim-stats b .fic { width: 24px; height: 24px; vertical-align: -4px; }

.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.acc-btn { display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; font: inherit; }
.acc-btn .h { margin: 0; }
.acc-arrow { width: 11px; height: 11px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; }
.acc-btn.open .acc-arrow { transform: rotate(-135deg) translate(-2px, -2px); }
.acc-body[hidden] { display: none; }
.acc-body { padding-top: 12px; }
.jbtn img { width: 22px; height: 22px; }
.jbtn::before { content: none; }
@media (max-width: 560px) { .acc-head { flex-direction: column; align-items: stretch; } .jbtn { justify-content: center; } }

.hint.disc{margin:0 0 14px;line-height:1.55;padding:10px 12px;border:1px solid rgba(255,140,26,.28);border-left:3px solid #ff8c1a;border-radius:10px;background:rgba(255,140,26,.06)}
.hint.disc b{color:#ffb35c}

.warn .wic{width:20px;height:20px;vertical-align:-4px;margin:0 5px 0 1px;image-rendering:auto}
