/* Cramberry · dashboard + setup */

/* ---------- dashboard ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.dash-head .lede { margin-top: 14px; }
.dash { padding-block: 40px 72px; }
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.dp { background: var(--panel); border-radius: 12px; padding: 22px; box-shadow: 0 0 0 2px var(--panel-edge); display: grid; gap: 14px; align-content: start; min-width: 0; }
.dp header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.dp h2 { font-size: 18px; color: #fff; }
.dp header code { color: var(--gold); background: #262a36; padding: 2px 8px; border-radius: 4px; font-size: 13px; }
.dp-board { grid-column: span 7; } .dp-streak { grid-column: span 5; }
.dp-battles { grid-column: span 7; } .dp-radar { grid-column: span 5; }
.dp-weak { grid-column: span 6; } .dp-badges { grid-column: span 6; }
.board { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.board li { display: grid; grid-template-columns: 34px 40px 1fr auto; gap: 12px; align-items: center; background: #1f2230; border-radius: 10px; padding: 12px 14px; }
.rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #2b211b; }
.r1 { background: var(--trophy); } .r2 { background: #c9ccd8; } .r3 { background: #e08b47; }
.who { display: grid; gap: 4px; min-width: 0; }
.who b { color: #fff; font-size: 16.5px; }
.who span { color: var(--night-muted); font-size: 14.5px; }
.lvbar { height: 10px; background: #2a2e3d; border-radius: 3px; overflow: hidden; }
.lvbar i { display: block; height: 100%; background: var(--trophy); }
.xp { font-family: var(--f-pixel); font-size: 24px; color: #fff; text-align: right; }
.xp small { display: block; font-size: 12px; color: var(--night-muted); }
.big { font-size: 22px; } .big b { font-family: var(--f-pixel); font-size: 52px; color: var(--hp-red); text-shadow: 4px 4px 0 #4a1016; line-height: 1; }
.next-duel { background: #1f2230; border-radius: 10px; padding: 14px; display: grid; gap: 2px; }
.next-duel .kick { font-family: var(--f-pixel); font-size: 13px; letter-spacing: .08em; color: var(--gold); text-transform: uppercase; }
.next-duel b { color: #fff; font-size: 20px; }
.next-duel code { color: #fff; }
.battles, .radar, .weak, .dshelf { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.battles li { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; background: #1f2230; border-radius: 10px; padding: 10px 14px; }
.battles b, .radar b { color: #fff; display: block; }
.battles span.muted, .radar span.muted { font-size: 14.5px; }
.out { font-family: var(--f-pixel); font-size: 13px; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.out.win { background: rgba(46,200,142,.16); color: var(--hp-green); }
.out.lose { background: rgba(236,76,88,.16); color: #ff8a93; }
.radar li { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; background: #1f2230; border-radius: 10px; padding: 10px 14px; border-left: 5px solid #3a3f50; }
.radar li.soon { border-left-color: var(--hp-red); } .radar li.near { border-left-color: var(--trophy); }
.days { display: grid; justify-items: center; font-size: 12px; color: var(--night-muted); }
.days b { font-family: var(--f-pixel); font-size: 26px; color: #fff; line-height: 1; }
.weak li { display: grid; grid-template-columns: minmax(110px, 160px) 1fr 28px; gap: 12px; align-items: center; font-size: 15.5px; }
.wbar { height: 16px; background: #23263a; border-radius: 3px; overflow: hidden; }
.wbar i { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--hp-red) 0 12px, #c63a46 12px 14px); }
.weak b { color: #fff; font-family: var(--f-pixel); text-align: right; }
.dshelf { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dshelf li { background: #1f2230; border-radius: 10px; padding: 12px 6px; display: grid; justify-items: center; gap: 2px; text-align: center; }
.dshelf .e { font-size: 28px; }
.dshelf b { color: #fff; font-size: 13.5px; }
.dshelf span:last-child { font-size: 12px; color: var(--night-muted); }
.dshelf li.locked { opacity: .45; filter: grayscale(1); }
.dp .small { font-size: 14px; }
@media (max-width: 980px) { .dash-grid > .dp { grid-column: 1 / -1; } }
@media (max-width: 480px) {
  .board li { grid-template-columns: 30px 1fr auto; } .board canvas { display: none; }
  .dshelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weak li { grid-template-columns: 1fr 1fr 24px; }
  .battles li { grid-template-columns: 44px 1fr; } .battles .out { grid-column: 2; justify-self: start; }
}
