:root { color-scheme: dark; font-family: Inter, "Noto Sans SC", system-ui, sans-serif; background: #11131a; color: #eef0f7; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: radial-gradient(circle at 70% -10%, #2d2244, transparent 37rem), #11131a; }
.shell { width: min(1400px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 80px; }
h1 { margin: 3px 0 8px; font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -.055em; }.page-header { display: block; }.refresh { position: fixed; right: 28px; bottom: 28px; z-index: 20; height: 42px; border: 1px solid #9c7ce6; border-radius: 10px; padding: 0 17px; background: #402d67; color: #f3ecff; font-weight: 750; cursor: pointer; box-shadow: 0 10px 30px #090b10aa; }.refresh:hover:not(:disabled) { background: #563b8a; }.refresh:disabled { opacity: .7; cursor: progress; }
.eyebrow { margin: 0; color: #bb9dfb; font-size: .75rem; letter-spacing: .15em; font-weight: 700; }
.subtle { color: #9da4b9; margin: 0; }
.progress-panel { margin: 32px 0 22px; padding: 20px; border: 1px solid #303646; background: #191d28c9; border-radius: 14px; }
.progress-title { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 14px; }.progress-title span { display: block; color: #aab1c5; font-size: .8rem; }.progress-title b { display: block; font-size: 1.35rem; margin-top: 4px; }.progress-title small { color: #7e879d; }
.progress-bar { display: flex; height: 34px; overflow: hidden; border: 1px solid #40495e; border-radius: 8px; background: #10131b; }.progress-segment { display: grid; place-items: center; min-width: 0; color: #11131a; font-size: .72rem; font-weight: 800; transition: filter .15s ease; }.progress-segment:hover { filter: brightness(1.16); }.progress-segment + .progress-segment { border-left: 1px solid #11131a; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 13px; }.legend-item { display: inline-flex; align-items: center; gap: 5px; color: #eef0f7; font-size: .78rem; }.legend-item i { width: 11px; height: 11px; border-radius: 3px; }.legend-item b { font-weight: 750; }.legend-item em { color: #aeb6c8; font-style: normal; }
.filters { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; padding: 18px; background: #181c27; border: 1px solid #303646; border-radius: 14px; }
label { display: grid; gap: 6px; color: #b9c0d1; font-size: .78rem; font-weight: 650; }
select, input { height: 36px; border: 1px solid #3b4357; border-radius: 8px; padding: 0 10px; background: #10131b; color: #f3f4f8; min-width: 126px; outline: none; } input { min-width: 190px; }
#resultCount { margin: 18px 0 10px; }.table-wrap { overflow: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid #303646; background: #171a24; }table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .9rem; }th { text-align: left; padding: 0; position: sticky; top: 0; background: #202533; }td { padding: 13px 16px; border-top: 1px solid #2a3040; white-space: nowrap; }tbody tr:hover { background: #212738; }
.sort { width: 100%; border: 0; padding: 13px 16px; background: transparent; color: #aeb6ca; text-align: left; font: 700 .75rem/1 Inter, "Noto Sans SC", system-ui, sans-serif; letter-spacing: .04em; cursor: pointer; }.sort:hover, .sort[data-active="true"] { color: #fff; background: #2b3243; }.sort::after { content: '↕'; margin-left: 7px; color: #737d94; }.sort[data-direction="asc"]::after { content: '↑'; color: #cbb5ff; }.sort[data-direction="desc"]::after { content: '↓'; color: #cbb5ff; }
.song { font-weight: 700; max-width: 400px; overflow: hidden; text-overflow: ellipsis; }.song.leggendaria { color: #e4a8ff; }.badge { display: inline-block; min-width: 3.8em; padding: 3px 7px; border-radius: 99px; font-size: .75rem; text-align: center; font-weight: 800; }
.lamp-unplayed { background: #343b4d; color: #c9d0df; }.lamp-failed { background: #8d343d; color: #ffd5d8; }.lamp-assist { background: #6f3ca0; color: #f2ddff; }.lamp-easy { background: #287c55; color: #d4ffe5; }.lamp-clear { background: #286fae; color: #d9efff; }.lamp-hard { background: #e4e8f0; color: #1b2230; }.lamp-exhard { background: #ddaa2b; color: #251a00; }.lamp-fullcombo { background: linear-gradient(90deg, #ee657b, #efbd3e, #5ecf8e, #6fa8f2, #c873e8); color: #14151b; }.personal { color: #ffd98a; font-size: .75rem; margin-left: 5px; }.empty { padding: 32px; color: #aab1c5; }

@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 620px); padding: 28px 0 80px; }
  h1 { margin-top: 2px; font-size: 2rem; letter-spacing: -.04em; }
  .eyebrow { font-size: .68rem; letter-spacing: .1em; }
  .page-header .subtle { max-width: calc(100% - 72px); font-size: .78rem; line-height: 1.45; }
  .refresh { right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); height: 40px; padding: 0 13px; font-size: .8rem; }
  .progress-panel { margin: 24px 0 16px; padding: 16px; border-radius: 12px; }
  .progress-title { display: block; margin-bottom: 12px; }
  .progress-title b { font-size: 1.1rem; }
  .progress-title small { display: block; margin-top: 5px; font-size: .75rem; }
  .progress-bar { height: 28px; }
  .legend { gap: 7px 12px; margin-top: 11px; }
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 14px; border-radius: 12px; }
  .filters label { min-width: 0; }
  .filters label:has(input) { grid-column: 1 / -1; }
  select, input { width: 100%; min-width: 0; }
  #resultCount { margin: 14px 0 9px; font-size: .82rem; }
  .table-wrap { margin-inline: -2px; border-radius: 12px; }
  table { min-width: 680px; font-size: .82rem; }
  td { padding: 11px 12px; }
  .sort { padding: 11px 12px; font-size: .7rem; }
  .song { max-width: 150px; }
}
