:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #080b12;
  --blue: #278cff;
  --gold: #f4c542;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
button { font: inherit; }
.awards-page { min-height: 100vh; min-height: 100dvh; color: #f5f7fb; }
.awards-dashboard { display: flex; flex-direction: column; height: 100vh; height: 100dvh; padding: clamp(1rem, 3vw, 2.5rem); overflow: hidden; }
.awards-header { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.awards-title { margin: 0; font-size: clamp(1.7rem, 4vw, 3rem); }
.awards-threshold { margin: 0.25rem 0 0; color: #aeb9ca; }
.awards-tabs { display: flex; gap: 0.4rem; overflow-x: auto; }
.awards-tab {
  min-height: 2.75rem;
  padding: 0.55rem 0.9rem;
  color: #aeb9ca;
  background: #151b27;
  border: 1px solid #2b3548;
  border-radius: 0.4rem;
  white-space: nowrap;
  cursor: pointer;
}
.awards-tab[aria-selected="true"] { color: white; background: #174a91; border-color: var(--blue); }
.awards-panel { display: grid; min-height: 0; flex: 1; }
.awards-panel.is-entering { animation: awards-enter 220ms ease-out; }
.awards-list { min-width: 0; padding: clamp(0.8rem, 2vw, 1.4rem); overflow-y: auto; background: #101621; border-radius: 0.7rem; }
.award-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 6.5rem; align-items: center; gap: 0.7rem; min-height: 3rem; margin: 0.55rem 0; }
.award-rank { color: #aeb9ca; font-size: 1.1rem; font-weight: 750; text-align: right; }
.award-label { position: relative; width: 100%; min-width: 0; padding: 0.7rem; overflow: hidden; color: inherit; background: #1b2432; border: 0; border-radius: 0.35rem; font: inherit; text-align: left; cursor: pointer; }
.award-label:hover, .award-label:focus-visible { outline: 2px solid var(--blue); }
.award-bar { position: absolute; inset: 0 auto 0 0; width: var(--value); background: #174a91; }
.award-name { position: relative; display: block; overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.award-detail { position: relative; display: block; color: #b9c5d7; font-size: 0.78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award-value { color: var(--gold); font-size: 1.05rem; font-weight: 750; text-align: right; white-space: nowrap; }
.award-meme .award-label { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.7rem; align-items: center; padding: 0.35rem; }
.award-meme img { position: relative; width: 5.5rem; height: 5.5rem; object-fit: cover; border-radius: 0.25rem; background: #080b12; }
.award-separator { color: #77849a; font-size: 1.8rem; line-height: 1; text-align: center; }
.award-empty { color: #aeb9ca; }
.awards-dialog { width: min(64rem, calc(100vw - 2rem)); max-height: calc(100dvh - 2rem); padding: 1rem; color: #f5f7fb; background: #101621; border: 1px solid #343f53; border-radius: 0.7rem; }
.awards-dialog::backdrop { background: #000c; }
.awards-dialog-title { margin: 0 3rem 1rem 0; }
.awards-dialog-close { position: absolute; top: 0.6rem; right: 0.8rem; width: 2.5rem; height: 2.5rem; color: white; background: transparent; border: 0; font-size: 2rem; cursor: pointer; }
.awards-dialog-content { max-height: calc(100dvh - 7rem); overflow: auto; }
.awards-preview { display: block; width: 100%; max-height: calc(100dvh - 8rem); object-fit: contain; }
.awards-dialog-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.75rem; }
.awards-dialog-gallery button { padding: 0; overflow: hidden; background: #080b12; border: 1px solid #343f53; border-radius: 0.4rem; cursor: pointer; }
.awards-dialog-gallery img { display: block; width: 100%; height: 10rem; object-fit: contain; }
@keyframes awards-enter { from { opacity: 0; transform: translateX(1rem); } }
@media (max-width: 700px) {
  .awards-header { align-items: stretch; flex-direction: column; }
  .awards-dashboard { padding: 0.8rem; }
  .award-row { grid-template-columns: 2.25rem minmax(0, 1fr) 5.5rem; gap: 0.4rem; }
  .award-meme .award-label { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .award-meme img { width: 4.5rem; height: 4.5rem; }
}
@media (prefers-reduced-motion: reduce) { .awards-panel.is-entering { animation: none; } }
