:root {
  --blue: #2a25e8;
  --magenta: #ef0a8c;
  --mint: #b5e5d0;
  --board: #0b0a26;
  --board2: #12103b;
  --panel: #1a1854;
  --panel2: #242270;
  --line: #3834a3;
  --line2: #4e4ad8;
  --chalk: #e7e9ec;
  --muted: #b5e5d0;
  --dim: #888ad4;
  --gold: #f5c518;
  --danger: #ef0a8c;
  --good: #7be0a0;
  --disp: "Poppins", sans-serif;
  --ui: "Poppins", system-ui, sans-serif;
  --mono: "Space Mono", monospace;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  background: var(--board);
  color: var(--chalk);
  font-family: var(--ui);
  -webkit-font-smoothing: antialiased;
}
body {
  min-height: 100vh;
  padding: 20px 15px 70px;
  background:
    radial-gradient(800px 400px at 50% -100px, rgba(42, 37, 232, 0.35), transparent 70%),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(231, 233, 236, 0.015) 46px 47px), var(--board);
}
.wrap {
  max-width: 760px;
  margin: 0 auto;
}
.screen {
  display: none;
}
.screen.on {
  display: block;
  animation: fade 0.35s ease;
}
@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.kick {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 700;
}
h1 {
  font-family: var(--disp);
  font-size: clamp(28px, 7vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 6px;
  text-transform: uppercase;
  line-height: 1.04;
}
h1 span {
  color: var(--gold);
}

/* ---------- INTRO ---------- */
.intro {
  text-align: center;
  padding-top: 6px;
}
.intro .lead {
  color: var(--chalk);
  font-size: 14px;
  line-height: 1.6;
  max-width: 540px;
  margin: 14px auto 0;
  opacity: 0.92;
}
.how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 20px 0;
}
@media (max-width: 560px) {
  .how {
    grid-template-columns: 1fr;
  }
}
.how .step {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}
.how .step .n {
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
}
.how .step .h {
  font-family: var(--disp);
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 5px 0 4px;
}
.how .step .d {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.ladder-preview {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
  text-align: left;
}
.ladder-preview .lb {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 700;
  margin-bottom: 9px;
}
.lp-rung {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.lp-rung:last-child {
  border-bottom: none;
}
.lp-rung .ic {
  font-size: 17px;
  flex: none;
  width: 24px;
  text-align: center;
}
.lp-rung .nm {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
}
.lp-rung .tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
}
.lp-rung.bo {
  background: linear-gradient(90deg, rgba(245, 197, 24, 0.1), transparent);
  border-radius: 8px;
  margin: 0 -6px;
  padding: 8px 6px;
}
.lp-rung.bo .nm {
  color: var(--gold);
}
.model-preview {
  background: var(--panel);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  text-align: left;
}
.model-preview .lb {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 4px;
}
.model-preview .note {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.mw {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
}
.mw .em {
  font-size: 14px;
  width: 20px;
  flex: none;
  text-align: center;
}
.mw-txt {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}
.mw .nm {
  font-size: 12.5px;
  font-weight: 600;
}
.mw .def {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  line-height: 1.3;
}
.mw .bar {
  flex: 1;
  height: 8px;
  background: var(--board);
  border-radius: 5px;
  overflow: hidden;
}
.mw .bar .b {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}
.mw .pct {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  width: 34px;
  text-align: right;
  flex: none;
}

.btn-primary {
  width: 100%;
  max-width: 340px;
  font-family: var(--disp);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--board);
  background: linear-gradient(180deg, var(--gold), #d9ac0c);
  border: none;
  border-radius: 11px;
  padding: 16px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
}
.btn-primary:disabled {
  background: var(--panel2);
  color: var(--dim);
  cursor: not-allowed;
}

/* ---------- DRAFT ---------- */
.tb-left {
  display: flex;
  align-items: center;
  gap: 9px;
}
.home-btn {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--chalk);
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 8px;
  padding: 5px 9px;
  cursor: pointer;
  line-height: 1;
  transition: 0.15s;
}
.home-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.topbar .step {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mint);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.draft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .draft-grid {
    grid-template-columns: 1fr;
  }
}
.col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}
.box .lb {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.cons-box {
  border-color: var(--magenta);
}
.cons-box .lb {
  color: var(--magenta);
}
.con {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}
.con:last-child {
  border-bottom: none;
}
.con .em {
  font-size: 14px;
  flex: none;
}
.con .tx {
  flex: 1;
}
.con .ck {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--danger);
}
.con.ok .ck {
  color: var(--good);
}
.con.ok {
  color: var(--good);
}
.con .kind {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.yr-box .yr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 9px;
}
.season {
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.season small {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--dim);
  font-weight: 400;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.reroll-btn {
  background: var(--blue);
  border: 1px solid var(--magenta);
  color: var(--chalk);
  font-family: var(--disp);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}
.reroll-btn:hover:not(:disabled) {
  background: var(--magenta);
}
.reroll-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--panel);
}
.pool {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.pcard {
  background: var(--board2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 6px 9px;
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
  color: inherit;
  text-align: left;
  width: 100%;
}
.pcard:hover {
  border-color: var(--gold);
}
.pcard.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold) inset;
}
.pcard .row1 {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.pcard .who {
  font-family: var(--disp);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
.pcard .flag {
  font-size: 8.5px;
  font-weight: 700;
  color: var(--magenta);
  margin-left: auto;
  background: rgba(239, 10, 140, 0.12);
  padding: 2px 5px;
  border-radius: 4px;
}
.pcard .meta {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--mint);
  margin-top: 1px;
}
.mini {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin-top: 5px;
}
.mc {
  background: var(--board);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 3px 1px;
  text-align: center;
  font: inherit;
  color: inherit;
}
.pool-msg {
  width: 100%;
  text-align: center;
  padding: 34px 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.pool-msg button {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  background: none;
  border: 1px solid var(--gold);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
}
.spin {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line2);
  border-top-color: var(--gold);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.mc.pick {
  cursor: pointer;
  transition: 0.12s;
}
.mc.pick:hover {
  border-color: var(--gold);
  background: rgba(245, 197, 24, 0.18);
}
.pcard {
  cursor: default;
}
.mc.top {
  border-color: var(--gold);
  background: rgba(245, 197, 24, 0.08);
}
.mc.done {
  opacity: 0.25;
  filter: grayscale(1);
}
.mc .l {
  font-size: 9px;
  line-height: 1;
}
.mc .v {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}
.mc.top .v {
  color: var(--gold);
}
.selhint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  margin-top: 8px;
  text-align: center;
  display: none;
}
.selhint.on {
  display: block;
}

.meta-box {
  border-color: var(--gold);
}
.meta-fig {
  text-align: center;
  margin: 2px 0 10px;
}
.meta-fig .core {
  font-size: 34px;
  filter: grayscale(1);
  opacity: 0.5;
  transition: 0.5s;
}
.meta-fig.built .core {
  filter: none;
  opacity: 1;
  text-shadow: 0 0 22px rgba(245, 197, 24, 0.6);
}
.meta-fig .cnt {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  margin-top: 2px;
}
.plrow {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 2px;
  border-bottom: 1px solid var(--line);
}
.plrow:last-child {
  border-bottom: none;
}
.plrow .em {
  font-size: 14px;
  flex: none;
  width: 20px;
  text-align: center;
}
.plrow .k {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  width: 54px;
  flex: none;
  text-transform: uppercase;
}
.plrow.top .k {
  color: var(--gold);
}
.plrow .bar {
  flex: 1;
  height: 9px;
  background: var(--board);
  border-radius: 5px;
  overflow: hidden;
}
.plrow .bar .b {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  width: 0;
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.plrow .pdon {
  width: 90px;
  flex: none;
  text-align: right;
  overflow: hidden;
}
.plrow .who {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plrow .psub {
  font-family: var(--mono);
  font-size: 7.5px;
  color: var(--mint);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}
.plrow .n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  width: 24px;
  text-align: right;
  flex: none;
}
.plrow.empty .who,
.plrow.empty .n {
  color: var(--dim);
}
.plrow.just .bar .b {
  box-shadow: 0 0 12px var(--gold);
}
.assign {
  margin-left: auto;
  font-family: var(--disp);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--board);
  background: var(--gold);
  border: none;
  border-radius: 6px;
  padding: 6px 9px;
  cursor: pointer;
}
.assign:hover {
  background: #ffd633;
}

/* ---------- SIM ---------- */
.sim-score {
  position: sticky;
  top: 8px;
  z-index: 5;
  text-align: center;
  background: linear-gradient(180deg, var(--panel2), var(--board2));
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
}
.sim-score .lab {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.sim-score .big {
  font-family: var(--disp);
  font-size: 40px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.simflow {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sim-h {
  font-family: var(--disp);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--mint);
  margin-top: 6px;
  opacity: 0;
  animation: pop 0.3s forwards;
}
.sim-row {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 13px;
  opacity: 0;
  animation: pop 0.3s forwards;
}
.sim-row .em {
  flex: none;
  font-size: 15px;
}
.sim-row .tx {
  flex: 1;
  line-height: 1.35;
}
.sim-row .val {
  font-family: var(--mono);
  font-weight: 700;
  flex: none;
}
.sim-row.good {
  border-color: var(--good);
}
.sim-row.good .val {
  color: var(--good);
}
.sim-row.bad {
  border-color: var(--danger);
}
.sim-row.bad .val {
  color: var(--danger);
}
.sim-row .val.plus {
  color: var(--gold);
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.skip {
  margin: 0 auto 12px;
  display: block;
  position: sticky;
  top: 8px;
  z-index: 5;
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.skip:hover {
  color: var(--chalk);
  border-color: var(--line2);
}

/* ---------- SUMMARY ---------- */
.verdict {
  text-align: center;
  border-radius: 14px;
  padding: 22px 16px;
  margin-bottom: 14px;
  overflow: hidden;
}
.verdict.t3 {
  background:
    radial-gradient(500px 240px at 50% 0, rgba(245, 197, 24, 0.22), transparent 70%),
    linear-gradient(180deg, var(--panel2), var(--board2));
  border: 2px solid var(--gold);
}
.verdict.t0 {
  background: linear-gradient(180deg, var(--panel2), var(--board2));
  border: 2px solid var(--line2);
}
.verdict .cap {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 700;
}
.verdict .medal {
  font-size: 42px;
  margin: 6px 0 2px;
}
.verdict .head {
  font-family: var(--disp);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--gold);
}
.verdict .score {
  font-family: var(--disp);
  font-size: 46px;
  font-weight: 800;
  margin-top: 8px;
  line-height: 1;
}
.verdict .best {
  font-family: var(--mono);
  font-size: 10.5px;
  margin-top: 8px;
  color: var(--mint);
}
.sum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
@media (max-width: 560px) {
  .sum-grid {
    grid-template-columns: 1fr;
  }
}
.sum-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
}
.sum-box .lb {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 700;
  margin-bottom: 9px;
}
.sum-fac {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
}
.sum-fac:last-child {
  border-bottom: none;
}
.sum-fac .w {
  font-family: var(--mono);
  color: var(--muted);
}
.rung2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.rung2:last-child {
  border-bottom: none;
}
.rung2 .ic {
  flex: none;
}
.rung2 .nm {
  flex: 1;
}
.rung2 .st {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}
.rung2.beat .st {
  color: var(--good);
}
.rung2.miss .st {
  color: var(--danger);
}
.fut-card {
  max-width: 330px;
  margin: 4px auto 16px;
  border-radius: 18px;
  padding: 16px 15px 14px;
  position: relative;
  overflow: hidden;
  border: 2px solid #55556a;
  background: linear-gradient(160deg, #3a3a48, #23232e);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: cardIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fut-card::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -30%;
  width: 80%;
  height: 180%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}
.fut-top {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.fut-ovr {
  font-family: var(--disp);
  font-size: 38px;
  font-weight: 800;
  line-height: 0.82;
  color: var(--fc, #e7e9ec);
}
.fut-ovr small {
  display: block;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.12em;
  opacity: 0.8;
  font-weight: 400;
}
.fut-pos {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
  color: var(--fc, #e7e9ec);
}
.fut-rarity {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--fc, #e7e9ec);
}
.fut-name {
  font-family: var(--disp);
  font-size: 19px;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  margin: 8px 0 12px;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  color: var(--fc, #e7e9ec);
}
.fut-pil {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.fut-pil .em {
  font-size: 12px;
  width: 16px;
  flex: none;
  text-align: center;
}
.fut-pil .lab {
  font-family: var(--mono);
  font-size: 8.5px;
  width: 58px;
  flex: none;
  text-transform: uppercase;
  opacity: 0.8;
  color: var(--fc, #e7e9ec);
}
.fut-pil .bar {
  flex: 1;
  height: 7px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}
.fut-pil .bar .b {
  height: 100%;
  border-radius: 5px;
  background: var(--fc, #e7e9ec);
}
.fut-pil .n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  text-align: right;
  flex: none;
  color: var(--fc, #e7e9ec);
}
.fut-pil .dn {
  font-family: var(--mono);
  font-size: 8px;
  opacity: 0.55;
  width: 52px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: none;
  color: var(--fc, #e7e9ec);
}
.fut-foot {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
  font-family: var(--disp);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 14px;
  position: relative;
  z-index: 1;
  color: var(--fc, #e7e9ec);
}
.fut-foot small {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  opacity: 0.75;
  margin-top: 3px;
  text-transform: none;
}
.fut-card.tier-0 {
  --fc: #cfd0dc;
  border-color: #55556a;
  background: linear-gradient(160deg, #3a3a48, #23232e);
}
.fut-card.tier-1 {
  --fc: #f0b985;
  border-color: #cd7f32;
  background: linear-gradient(160deg, #4a3016, #2c1c0e);
  box-shadow: 0 12px 40px rgba(205, 127, 50, 0.28);
}
.fut-card.tier-2 {
  --fc: #eef1f7;
  border-color: #c7ccd6;
  background: linear-gradient(160deg, #454a54, #282b32);
  box-shadow: 0 12px 40px rgba(199, 204, 214, 0.22);
}
.fut-card.tier-3 {
  --fc: #ffe38a;
  border-color: var(--gold);
  background: linear-gradient(160deg, #5a4712, #332809);
  box-shadow: 0 12px 44px rgba(245, 197, 24, 0.36);
}
.fut-card.tier-4 {
  --fc: #ffe9a8;
  border-color: var(--gold);
  background: linear-gradient(160deg, #241033, #0c0716 55%, #241033);
  box-shadow:
    0 0 0 1px var(--gold),
    0 12px 50px rgba(245, 197, 24, 0.5),
    0 0 60px rgba(239, 10, 140, 0.35);
  animation:
    cardIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
    boGlow 2.4s ease-in-out infinite alternate 1s;
}
@keyframes boGlow {
  from {
    box-shadow:
      0 0 0 1px var(--gold),
      0 12px 50px rgba(245, 197, 24, 0.4),
      0 0 40px rgba(239, 10, 140, 0.25);
  }
  to {
    box-shadow:
      0 0 0 1px var(--gold),
      0 12px 62px rgba(245, 197, 24, 0.75),
      0 0 85px rgba(239, 10, 140, 0.5);
  }
}
.fut-hd {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 11px;
  position: relative;
  z-index: 1;
}
.fut-photo {
  width: 60px;
  height: 78px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  flex: none;
}
.fut-htxt {
  flex: 1;
  min-width: 0;
  color: var(--fc, #e7e9ec);
}
.fut-nm {
  font-family: var(--disp);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
}
.fut-desc {
  font-family: var(--mono);
  font-size: 9px;
  opacity: 0.7;
  margin-top: 2px;
}
.fut-rating {
  font-family: var(--disp);
  font-size: 14px;
  font-weight: 700;
  margin-top: 6px;
}
.fut-rating b {
  font-size: 26px;
}
.fut-sl {
  font-family: var(--mono);
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.92;
}
.fut-pilbox {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 9px;
  position: relative;
  z-index: 1;
}
.fut-pilrow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-family: var(--mono);
  color: var(--fc, #e7e9ec);
}
.fut-pilrow .lab {
  font-size: 9.5px;
  width: 72px;
  flex: none;
  text-transform: uppercase;
  opacity: 0.82;
}
.fut-pilrow .n {
  font-size: 14px;
  font-weight: 700;
  width: 26px;
  flex: none;
  text-align: right;
}
.fut-pilrow .src {
  font-size: 9px;
  opacity: 0.6;
}
.brand-logo {
  height: 22px;
  display: block;
  margin: 0 auto 2px;
  opacity: 0.95;
}
.fut-cons {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 2px 0 10px;
  position: relative;
  z-index: 1;
}
.fc-item {
  font-family: var(--mono);
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--fc, #e7e9ec);
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.fc-item.ok {
  border-color: rgba(123, 224, 160, 0.45);
}
.fc-item.ok .s {
  color: var(--good);
}
.fc-item.no {
  border-color: rgba(239, 10, 140, 0.45);
}
.fc-item.no .s {
  color: var(--danger);
}
.fut-ft {
  margin-top: 10px;
  text-align: right;
  position: relative;
  z-index: 1;
}
.fut-logo {
  height: 13px;
  opacity: 0.8;
}
.bdl {
  background: var(--blue);
  color: var(--chalk);
  border-color: var(--line2);
}
.bdl:hover {
  background: var(--magenta);
  color: var(--chalk);
}
.badges {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  margin-bottom: 14px;
}
.badges-lb {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--mint);
  font-weight: 700;
  margin-bottom: 9px;
}
.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ui);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--board2);
  border: 1px solid var(--line2);
  border-radius: 999px;
  padding: 5px 11px;
  margin: 0 6px 6px 0;
  cursor: help;
  outline: none;
}
.badge .tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%) translateY(4px);
  width: max-content;
  max-width: 190px;
  background: var(--board2);
  color: var(--chalk);
  border: 1px solid var(--gold);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: 0.15s;
  z-index: 30;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
}
.badge .tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--gold);
}
.badge:hover .tip,
.badge:focus .tip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.badge .be {
  font-size: 14px;
}
.badge-none {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}
.badges-total {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--dim);
  margin-top: 4px;
}
.expert-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--chalk);
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 0 auto 12px;
  cursor: pointer;
}
.expert-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}
.expert-toggle span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  font-weight: 400;
}
.img-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 5, 20, 0.9);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.io-box {
  max-width: 360px;
  width: 100%;
  text-align: center;
}
.io-img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 12px 44px rgba(0, 0, 0, 0.6);
  display: block;
  margin: 0 auto;
}
.io-hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mint);
  margin: 12px 4px 14px;
  line-height: 1.5;
}
.io-actions {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.io-btn {
  font-family: var(--disp);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 9px;
  padding: 11px 12px;
  cursor: pointer;
  border: 1px solid var(--line2);
  flex: 1;
}
.io-btn.share {
  background: var(--gold);
  color: var(--board);
  border-color: var(--gold);
}
.io-btn.dl {
  background: var(--blue);
  color: var(--chalk);
}
.io-btn.close {
  background: var(--panel);
  color: var(--chalk);
}
.btn-ghost {
  display: block;
  width: 100%;
  max-width: 340px;
  margin: 10px auto 0;
  font-family: var(--disp);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--chalk);
  background: var(--panel);
  border: 1px solid var(--line2);
  border-radius: 11px;
  padding: 12px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 10px;
}
@media (min-width: 520px) {
  .badge-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.bcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
}
.bcard.got {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(245, 197, 24, 0.12), var(--panel));
}
.bcard.lockd {
  opacity: 0.45;
}
.bcard.secret {
  border-color: #b9f2ff;
  background: linear-gradient(180deg, rgba(185, 242, 255, 0.12), var(--panel));
}
.stats-wrap {
  margin-top: 10px;
}
.stat-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 520px) {
  .stat-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-c {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
}
.stat-c .sv {
  font-family: var(--disp);
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
}
.stat-c .sv .plus {
  font-size: 13px;
  color: #b9f2ff;
}
.stat-c .sl {
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 3px;
  letter-spacing: 0.03em;
}
.stat-sec {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  text-transform: uppercase;
  margin: 16px 0 8px;
  letter-spacing: 0.05em;
}
.tbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.tbar .tl {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  width: 62px;
  flex: none;
}
.tbar .ttrk {
  flex: 1;
  height: 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
}
.tbar .tfl {
  display: block;
  height: 100%;
  border-radius: 99px;
}
.f0 {
  background: #6b6472;
}
.f1 {
  background: #cd7f32;
}
.f2 {
  background: #b8c0c8;
}
.f3 {
  background: #f5c518;
}
.f4 {
  background: linear-gradient(90deg, #f5c518, #ef0a8c);
}
.tbar .tn {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--chalk);
  width: 22px;
  text-align: right;
  flex: none;
}
.bem {
  font-size: 26px;
  line-height: 1;
}
.bname {
  font-family: var(--disp);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin: 7px 0 3px;
}
.bcard.got .bname {
  color: var(--gold);
}
.bdesc {
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  line-height: 1.35;
}
.fut-perfect {
  position: absolute;
  bottom: 11px;
  left: 11px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0a1a2a;
  background: linear-gradient(90deg, #b9f2ff, #ffffff, #b9f2ff);
  border-radius: 999px;
  padding: 4px 9px;
  box-shadow: 0 0 16px rgba(185, 242, 255, 0.85);
}
.fut-card.perfect {
  box-shadow:
    0 0 0 1px #b9f2ff,
    0 12px 50px rgba(245, 197, 24, 0.5),
    0 0 70px rgba(185, 242, 255, 0.5);
}
.cele {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, rgba(245, 197, 24, 0.3), rgba(6, 5, 20, 0.95));
  backdrop-filter: blur(3px);
  cursor: pointer;
}
.cele.on {
  display: flex;
  animation: celeFade 0.4s ease;
}
.cele-in {
  text-align: center;
  animation: celePop 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
.cele-crown {
  font-size: 88px;
  filter: drop-shadow(0 0 30px rgba(245, 197, 24, 0.9));
  animation: celeSpin 2.6s ease-in-out infinite alternate;
}
.cele-t {
  font-family: var(--disp);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, #ffe9a8, #f5c518, #ffe9a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-top: 6px;
}
.cele-s {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--chalk);
  margin-top: 6px;
}
.cele-h {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  margin-top: 14px;
}
@keyframes celeFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes celePop {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes celeSpin {
  from {
    transform: rotate(-8deg) scale(1);
  }
  to {
    transform: rotate(8deg) scale(1.09);
  }
}
.actions {
  display: flex;
  gap: 10px;
}
.actions button {
  flex: 1;
  font-family: var(--disp);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid var(--line2);
}
.bcopy {
  background: var(--gold);
  color: var(--board);
  border-color: var(--gold);
}
.bagain {
  background: var(--panel);
  color: var(--chalk);
}
.bagain:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.foot {
  text-align: center;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  line-height: 1.7;
}
.foot-logo {
  height: 16px;
  opacity: 0.7;
  display: block;
  margin: 0 auto 8px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(18px);
  background: var(--gold);
  color: var(--board);
  font-weight: 700;
  font-size: 13px;
  padding: 10px 20px;
  border-radius: 999px;
  opacity: 0;
  transition: 0.25s;
  pointer-events: none;
  z-index: 60;
}
.toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001s !important;
  }
  .plrow .bar .b {
    transition: none !important;
  }
}

.lb-gold {
  color: var(--gold);
}
#simBtn {
  margin: 16px auto 0;
  display: block;
}
