/* Block Party — classifiche (P7). Stessi colori del sito; numeri e nomi in Silkscreen come nel gioco. */
@font-face { font-family: "Silkscreen"; src: url("/assets/silkscreen-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

.acct.lb { width: min(1180px, 100%); }
.lbl { font: 12px/1.25 "Silkscreen", ui-monospace, monospace; letter-spacing: .06em; text-transform: uppercase; color: #9fb0b8; }
.gold { color: var(--porch); }
canvas.px { image-rendering: pixelated; image-rendering: crisp-edges; display: block; }
/* le Candy: un caramello a pixel dopo il numero (come nel gioco) */
.candy::after { content: ""; display: inline-block; width: .95em; height: .95em; margin-left: .2em; vertical-align: -.1em; image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 9' shape-rendering='crispEdges'%3E%3Cpath fill='%23f2b24b' d='M3 2h3v1h1v3h-1v1h-3v-1h-1v-3h1z'/%3E%3Cpath fill='%23ffe08a' d='M3 3h1v1h-1z'/%3E%3Cpath fill='%23c2761f' d='M5 5h1v1h-1z'/%3E%3Cpath fill='%23e05a6a' d='M0 3h2v1h-1v1h-1zM7 3h2v2h-1v-1h-1zM0 5h1v1h-1zM8 5h1v1h-1z'/%3E%3C/svg%3E") center / contain no-repeat; }

.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lb-period { display: flex; box-shadow: 0 0 0 3px var(--ink); }
.seg, .tab {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 0; cursor: pointer;
  font: 13px/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  color: #c9d3d7; background: #132027;
}
.seg[aria-pressed="true"] { color: #201a12; background: var(--cream); }
.lb-tabs { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { box-shadow: 0 0 0 3px var(--ink); }
.tab[aria-pressed="true"] { color: var(--porch-ink); background: var(--porch); box-shadow: inset 0 4px 0 #ffd88f, inset 0 -4px 0 #a8671a, 0 0 0 3px var(--ink); }
.seg:focus-visible, .tab:focus-visible { outline: 3px solid var(--cream); outline-offset: 3px; }

.worst {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 20px;
  background: #2b1a06; box-shadow: 0 0 0 3px var(--ink-deep), inset 0 4px 0 var(--porch);
}
.worst canvas { width: 104px; height: 104px; box-shadow: 0 0 0 3px var(--porch); }
.worst-who { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.worst-name { font: clamp(20px, 3.4vw, 30px)/1.05 var(--display); color: var(--cream) !important; overflow-wrap: anywhere; }
.worst-line { font: 13px/1.35 "Silkscreen", ui-monospace, monospace; color: #e8d3b0; }
.worst-score { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; margin-left: auto; }
.worst-dmg { font: clamp(22px, 3.4vw, 30px)/1 var(--display); color: var(--porch); }
.worst.none canvas { opacity: .25; }

.lb-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.lb-table { padding: 10px 16px 16px; }
.lb-note { margin: 6px 0 4px !important; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font: 13px/1.3 "Silkscreen", ui-monospace, monospace; color: #dfe6e9; }
th { text-align: left; font-weight: 400; color: #9fb0b8; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; padding: 10px 8px; border-bottom: 2px solid #22343d; white-space: nowrap; }
td { padding: 7px 8px; border-bottom: 1px solid #1c2c34; vertical-align: middle; }
th.num, td.num { text-align: right; }
td.rank { font: 15px/1 var(--display); color: #9fb0b8; width: 36px; }
td.art { width: 46px; }
td.art canvas { width: 40px; height: 40px; }
td.id a { font: 14px/1 var(--display); color: var(--cream); }
td.id .sub { display: none; margin-top: 5px; font-size: 11px; color: var(--fog); overflow-wrap: anywhere; }
td.score { font: 14px/1 var(--display); color: var(--porch); white-space: nowrap; }
tr.top td.rank { color: var(--porch); }
.west { color: #8fd0e0; }
.east { color: #e597a4; }
.lb-empty { margin: 14px 4px 4px !important; }

.sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0 12px; }
.side-card { padding: 12px 14px; background: var(--ink); box-shadow: inset 0 3px 0 #04080a; display: flex; flex-direction: column; gap: 6px; }
.side-card b { font: 18px/1 var(--display); font-weight: 400; }
.side-card span { font: 12px/1.3 "Silkscreen", ui-monospace, monospace; color: var(--fog); }

.lb-side .h2 { margin-top: 0; }
.past { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.past li a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 8px; background: var(--ink); color: var(--cream); text-decoration: none; }
.past li a:hover { background: #142229; }
.past canvas { width: 36px; height: 36px; }
.past .w { display: flex; flex-direction: column; gap: 3px; min-width: 0; font: 12px/1.2 "Silkscreen", ui-monospace, monospace; }
.past .w b { font: 13px/1 var(--display); font-weight: 400; }
.past .w span { color: var(--fog); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.past .d { font: 13px/1 var(--display); color: var(--porch); }

.lookup { display: flex; flex-direction: column; gap: 8px; }
.lookup-row { display: flex; gap: 10px; }
.lookup input {
  flex: 1 1 80px; min-width: 0; min-height: 44px; padding: 0 12px; border: 0; border-radius: 0;
  font: 16px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--cream); background: var(--ink);
  box-shadow: inset 0 3px 0 #04080a, 0 0 0 3px #3b4144;
}
.lookup input:focus { outline: 3px solid var(--porch); outline-offset: 2px; }

@media (max-width: 900px) {
  .lb-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .worst-score { align-items: flex-start; text-align: left; margin-left: 0; }
  .hide-sm { display: none; }
  td.id .sub { display: block; }
  td, th { padding: 7px 5px; }
}
