/* Awards tab: the week's award cards + the season trophy case. Tokens only. */

.aw-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }

.aw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }

/* one award */
.aw-card {
  --tone: var(--axis);
  position: relative; overflow: hidden; min-width: 0;
  padding: 14px 16px 14px 20px; display: flex; flex-direction: column; gap: 10px;
}
.aw-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tone); }
.aw-card.good { --tone: var(--pos); background: color-mix(in srgb, var(--pos-soft) 38%, var(--surface)); }
.aw-card.shame { --tone: var(--neg); background: color-mix(in srgb, var(--neg-soft) 55%, var(--surface)); }
.aw-card.unlucky { --tone: var(--neg); }
.aw-card.neutral { --tone: var(--axis); }

.aw-hd { display: flex; align-items: center; gap: 8px; min-width: 0; }
.aw-ico { font-size: 20px; line-height: 1; flex: none; }
.aw-title { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.25; min-width: 0; }
.aw-tag {
  margin-left: auto; flex: none; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; background: var(--surface);
}
.aw-tag.shame { color: var(--bad-text); border: 1px solid var(--neg); }
.aw-tag.unlucky { color: var(--ink-2); border: 1px dashed var(--axis); }

.aw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.aw-val { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.aw-card.shame .aw-val { color: var(--bad-text); }
.aw-unit { font-size: 12px; color: var(--ink-2); margin-top: 2px; }

.aw-shot {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.aw-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.aw-ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 20px; font-weight: 800; color: var(--ink-2); }

.aw-who { min-width: 0; }
.aw-who .team { max-width: 100%; }
.aw-detail { margin: 0; font-size: 13px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.aw-tied { margin: -4px 0 0; font-size: 12px; color: var(--ink-2); font-style: italic; }
.aw-card .share-btn { align-self: flex-start; } /* last in the card; hidden unless you're signed in */

/* trophy case */
.aw-trophy { margin-top: 36px; }
.aw-table { border-collapse: separate; border-spacing: 0; }
.aw-table th, .aw-table td { padding: 4px 6px; }
.aw-table th.c, .aw-table td.c { text-align: center; min-width: 48px; font-variant-numeric: tabular-nums; }
.aw-table td.has { font-weight: 700; }
.aw-table td.lead.good { background: var(--gold-soft); }
.aw-table td.lead.shame { background: var(--neg-soft); }
.aw-table th.tm, .aw-table td.tm {
  position: sticky; left: 0; z-index: 1; text-align: left; padding-left: 14px; background: var(--surface);
  box-shadow: 1px 0 0 var(--grid);
}
.aw-table tbody tr:hover td.tm { background: var(--surface-2); }
.aw-table .team .nm { max-width: 190px; }

.aw-sort {
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0;
  border-radius: 8px; cursor: pointer; min-height: 40px; min-width: 40px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center; gap: 3px;
}
.aw-sort:hover, .aw-sort.on { color: var(--ink); }
.aw-sort:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.aw-sort .ico { font-size: 18px; line-height: 1; }
.aw-sort .arr { display: inline-block; width: 9px; font-size: 9px; text-align: center; }
.aw-table th.tm .aw-sort { justify-content: flex-start; padding-left: 0; }

.aw-legend {
  display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 12px 16px; border-top: 1px solid var(--grid);
  font-size: 13px; color: var(--ink-2);
}
.aw-key .ico { margin-right: 5px; }

@media (max-width: 540px) {
  .aw-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .aw-table .team .mgr { display: none; }
  .aw-table .team .nm { max-width: 112px; }
  .aw-table th.tm, .aw-table td.tm { padding-left: 10px; }
}
