html, body{
  height: auto;
  overflow: visible;
}

.score-canvas{
  aspect-ratio: auto;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  padding-bottom: 4.5vw;
  background-attachment: fixed;
}
.nav__home{
  color: var(--ink);
}
.nav__home::after{
  display: none;
}
.nav{
  position: relative;
  height: auto;
  padding: 2.4vw 5.34vw 1.2vw;
}
.nav__home,
.nav__links{
  transform: none;
}

.score-ornament{
  position: absolute;
  top: 0.9vw;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cinzel', serif;
  font-size: 0.85vw;
  letter-spacing: 0.35em;
  color: var(--ink-dim);
  opacity: 0.55;
  z-index: 5;
  white-space: nowrap;
}

.score-title{
  position: relative;
  z-index: 2;
  margin: 1vw 0 0 5.34vw;
  max-width: 22vw;
}
.score-title__word{
  margin: 0;
  font-family: 'Pirata One', 'Cinzel', serif;
  font-size: 3.4vw;
  color: var(--ink);
  line-height: 0.9;
  text-shadow: 0 0 2vw rgba(255,255,255,0.15);
}
.score-title__divider{
  display: flex;
  align-items: center;
  gap: 0.6vw;
  margin-top: 0.5vw;
}
.score-title__divider span{
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(255,255,255,0.7), rgba(255,255,255,0));
}
.score-title__divider i{
  font-style: normal;
  font-size: 0.75vw;
  color: var(--ink-dim);
}

.score-tabs{
  position: relative;
  z-index: 2;
  display: flex;
  gap: 1vw;
  margin: 2vw 5.34vw 0;
}
.score-tab{
  appearance: none;
  padding: 0.85vw 1.7vw;
  border-radius: 0.7vw;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(4px);
  font-family: 'Cinzel', serif;
  font-size: 0.95vw;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
  transition: color .2s ease, border-color .2s ease;
}
.score-tab:hover{ color: var(--ink); }
.score-tab.is-active{ color: var(--ink); border-color: var(--accent); }

.score-panel{
  position: relative;
  z-index: 2;
  margin: 2vw 5.34vw 0;
  display: none;
}
.score-panel.is-active{ display: block; }

.overall-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4vw;
}
@media (max-width: 1100px){
  .overall-grid{ grid-template-columns: repeat(2, 1fr); }
}
.overall-card{
  border: 1px solid var(--panel-border);
  border-radius: 1vw;
  background: var(--panel);
  backdrop-filter: blur(4px);
  padding: 1.2vw 1.4vw;
  display: flex;
  flex-direction: column;
  gap: 0.9vw;
  transition: border-color .25s ease;
}
.overall-card:hover{ border-color: var(--accent); }

.overall-card__head{
  display: flex;
  align-items: baseline;
  gap: 0.7vw;
}
.overall-card__id{
  font-family: 'Cinzel', serif;
  font-size: 1.15vw;
  font-weight: 600;
  color: var(--accent);
}
.overall-card__name{
  font-family: 'Cinzel', serif;
  font-size: 0.95vw;
  color: var(--ink);
}
.overall-card__body{
  display: flex;
  gap: 1vw;
}
.overall-card__image{
  width: 6.5vw;
  height: 6.5vw;
  min-width: 60px;
  min-height: 60px;
  border-radius: 0.7vw;
  flex-shrink: 0;
  background-color: rgba(255,255,255,0.06);
  background-size: cover;
  background-position: center;
}
.overall-card__rows{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.5vw;
  min-width: 0;
}
.overall-card__row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5vw;
  padding: 0.45vw 0.75vw;
  border-radius: 0.55vw;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: 'Poppins', sans-serif;
  font-size: 0.75vw;
  color: var(--ink-dim);
}
.overall-card__row span:last-child{ flex-shrink: 0; }
.overall-card__row.is-total{
  color: var(--ink);
  border-color: var(--accent);
  background: rgba(201,155,216,0.15);
  font-weight: 600;
}

.live-layout{
  display: flex;
  align-items: flex-start;
  gap: 1.6vw;
}
.live-side{
  width: 22%;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 0.8vw;
}
.live-categories{
  display: flex;
  flex-direction: column;
  gap: 0.6vw;
}
.live-cat{
  appearance: none;
  width: 100%;
  flex: none;
  box-sizing: border-box;
  padding: 0.9vw 1.1vw;
  border-radius: 0.7vw;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(4px);
  font-family: 'Cinzel', serif;
  font-size: 0.95vw;
  color: var(--ink-dim);
  text-align: left;
  transition: color .2s ease, border-color .2s ease;
}
.live-cat:hover{ color: var(--ink); }
.live-cat.is-active{ color: var(--accent); border-color: var(--accent); }

.live-stats{
  margin-top: 0.4vw;
  display: flex;
  flex-direction: column;
  gap: 0.6vw;
  padding: 1vw 1.1vw;
  border-radius: 0.9vw;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(4px);
}
.live-stats__row{
  display: flex;
  justify-content: space-between;
  gap: 0.6vw;
  font-family: 'Poppins', sans-serif;
  font-size: 0.78vw;
  color: var(--ink-dim);
}
.live-stats__row span:last-child{
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.live-list{
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1vw;
  padding: 1.4vw 1.6vw;
  border-radius: 1vw;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(4px);
  max-height: 58vh;
  overflow-y: auto;
}
.live-list::-webkit-scrollbar{ width: 6px; }
.live-list::-webkit-scrollbar-track{ background: transparent; }
.live-list::-webkit-scrollbar-thumb{
  background: var(--panel-border);
  border-radius: 4px;
}
.live-row{
  display: flex;
  align-items: center;
  gap: 1vw;
}
.live-row__rank{
  width: 1.6vw;
  flex-shrink: 0;
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 1.1vw;
  color: var(--ink-dim);
}
.live-row__avatar{
  width: 3vw;
  height: 3vw;
  min-width: 34px;
  min-height: 34px;
  flex-shrink: 0;
  border-radius: 0.6vw;
  background-color: rgba(255,255,255,0.08);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,0.18);
}
.live-row__bar{
  flex: 1;
  height: 1.6vw;
  min-height: 20px;
  border-radius: 0.8vw;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
}
.live-row__fill{
  height: 100%;
  border-radius: 0.8vw;
  background: linear-gradient(to right, rgba(201,155,216,0.45), var(--accent));
  transition: width .4s ease;
}
.live-row__value{
  width: 3.4vw;
  flex-shrink: 0;
  text-align: right;
  font-family: 'Cinzel', serif;
  font-size: 1vw;
  font-weight: 600;
  color: var(--ink);
}

.live-list[hidden]{ display: none; }

.live-unavailable{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 20vw;
  padding: 1.4vw 1.6vw;
  border-radius: 1vw;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  backdrop-filter: blur(4px);
  font-family: 'Cinzel', serif;
  font-size: 1.1vw;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
.live-unavailable[hidden]{ display: none; }

.live-row.is-updated .live-row__value{
  animation: voteBump .9s ease;
}
.live-row.is-updated .live-row__bar{
  animation: voteGlow .9s ease;
}
@keyframes voteBump{
  0%{ color: var(--accent); transform: scale(1.25); }
  100%{ color: var(--ink); transform: scale(1); }
}
@keyframes voteGlow{
  0%{ box-shadow: 0 0 0.8vw rgba(201,155,216,0.7); border-color: var(--accent); }
  100%{ box-shadow: none; }
}
@media (prefers-reduced-motion: reduce){
  .live-row.is-updated .live-row__value,
  .live-row.is-updated .live-row__bar{ animation: none !important; }
}

.stage-footnote{
  position: absolute;
  right: 2%;
  bottom: 2%;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75vw;
  color: var(--ink-dim);
  opacity: 0.7;
  z-index: 2;
}

@media (max-width: 760px){
  .score-ornament{ display: none; }

  .nav{
    position: static;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 20px 16px;
  }
  .nav__home{ font-size: 22px; }
  .nav__links{
    width: 100%;
    font-size: 14px;
    row-gap: 10px;
    column-gap: 18px;
    flex-wrap: wrap;
  }

  .score-title{ margin: 8px auto 0; max-width: 480px; padding: 0 20px; }
  .score-title__word{ font-size: clamp(38px, 13vw, 52px); }

  .score-tabs{ margin: 20px 20px 0; gap: 10px; }
  .score-tab{ flex: 1; padding: 12px 10px; font-size: 13px; text-align: center; }

  .score-panel{ margin: 20px 20px 0; }

  .overall-grid{ grid-template-columns: 1fr; gap: 12px; }
  .overall-card{ padding: 14px 16px; gap: 10px; }
  .overall-card__id{ font-size: 16px; }
  .overall-card__name{ font-size: 14px; }
  .overall-card__body{ gap: 10px; }
  .overall-card__image{ width: 64px; height: 64px; min-width: 0; min-height: 0; }
  .overall-card__row{ font-size: 12px; padding: 6px 10px; }

  .live-layout{ flex-direction: column; gap: 14px; }
  .live-side{ width: 100%; min-width: 0; flex-direction: column; }
  .live-categories{ width: 100%; gap: 8px; }
  .live-cat{ flex: none; width: 100%; font-size: 13px; padding: 10px; text-align: left; }
  .live-stats{ width: 100%; }
  .live-stats__row{ font-size: 12px; }
  .live-list{ width: 100%; padding: 14px 16px; gap: 12px; max-height: none; overflow: visible; }
  .live-unavailable{ min-height: 140px; font-size: 14px; padding: 20px; }
  .live-row__rank{ width: 18px; font-size: 13px; }
  .live-row__avatar{ width: 32px; height: 32px; }
  .live-row__bar{ height: 18px; }
  .live-row__value{ width: auto; font-size: 13px; }

  .stage-footnote{ position: static; text-align: center; margin-top: 20px; font-size: 11px; }
}

@keyframes fadeUp{
  from{ opacity: 0; transform: translateY(2.4vw); }
  to{ opacity: 1; transform: translateY(0); }
}
.nav,
.score-title,
.score-tabs,
.score-panel.is-active{
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.score-title{ animation-delay: 0.15s; }
.score-tabs{ animation-delay: 0.3s; }
.score-panel.is-active{ animation-delay: 0.4s; }

@media (max-width: 760px){
  @keyframes fadeUp{
    from{ opacity: 0; transform: translateY(24px); }
    to{ opacity: 1; transform: translateY(0); }
  }
}
@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; animation: none !important; }
}