body.results-open { overflow: hidden; }
#game-message { color: #efa399; font-size: 12px; text-align: center; }#game-message:empty { display: none; }
.result-card { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; margin: 0; padding: 18px; border-radius: 0; background: #000b; text-align: center; }
.result-dialog { --result-accent: #52b91d; width: min(100%, 630px); max-height: calc(100dvh - 36px); overflow-y: auto; overscroll-behavior: contain; border-radius: 10px; background: #1f2223; box-shadow: 0 20px 70px #0008; scrollbar-width: thin; outline: none; }
.result-dialog.lost { --result-accent: #cc1c22; }
.result-banner { position: relative; background: var(--result-accent); padding: 20px 44px; }
.result-banner h2 { margin: 0; font-size: clamp(28px, 5vw, 40px); font-weight: 750; letter-spacing: -.045em; line-height: 1.15; }
#result-close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: #0002; color: white; font-size: 23px; line-height: 1; }
#result-close:hover { background: #0004; }
.result-content { padding: 26px 30px 22px; }
.result-card .result-kicker { text-transform: uppercase; font-size: 16px; color: #91999c; margin: 0 0 12px; }
.result-card .result-song { color: var(--text); font-size: clamp(22px, 4vw, 30px); font-weight: 600; letter-spacing: -.055em; line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.result-card .result-song span { color: inherit; }
.result-period { display: inline-flex; margin: 24px auto 22px; border: 1px solid #35393a; border-radius: 30px; padding: 2px; }
.result-period button { border: 0; background: transparent; color: #929b9d; border-radius: 25px; padding: 6px 21px; font-size: 14px; }
.result-period button.active { background: #323738; color: var(--text); }
.result-summary { display: grid; grid-template-columns: 1fr 1fr; width: 300px; max-width: 100%; margin: 0 auto 22px; padding: 17px 0; border-radius: 23px; background: #16191a; }
.result-summary > div { display: grid; gap: 3px; }
.result-summary > div + div { border-left: 1px solid #363a3b; }
.result-summary span { color: #949d9f; font-size: 18px; }
.result-card .result-summary strong { color: var(--text); font-size: 39px; line-height: 1.15; font-weight: 600; }
.result-chart { padding: 21px 25px 17px; border-radius: 23px; background: #16191a; }
.result-chart > header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; text-align: left; }
.result-chart h4 { color: #959ea0; font-size: 17px; font-weight: 500; margin: 0; }
#result-chart-date { color: #6f787b; font-size: 14px; white-space: nowrap; }
.result-bars { display: grid; gap: 6px; }
.result-bar-row { display: grid; grid-template-columns: 25px minmax(0, 1fr) 27px; align-items: center; gap: 9px; text-align: right; min-height: 24px; }
.result-bar-label { color: #9da5a8; font-size: 18px; font-weight: 650; }
.result-bar-track { height: 24px; position: relative; }
.result-bar-track::before { content: ''; position: absolute; width: 1px; background: #666c6d; left: 0; top: -3px; bottom: -3px; }
.result-bar { display: block; height: 100%; border-radius: 0 5px 5px 0; background: #434849; }
.result-bar.highlight { background: var(--result-accent); }
.result-bar-count { color: #818b8d; font-size: 12px; font-variant-numeric: tabular-nums; }
.result-card #result-comparison { margin: 19px 0 3px; color: #8b9598; font-size: 16px; line-height: 1.45; }
#result-sample { color: #606c70; font-size: 11px; }
.result-card .result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 25px; }
.result-actions button { min-height: 48px; border: 1px solid #393f40; border-radius: 6px; background: transparent; color: #d2d6d6; font-size: 16px; font-weight: 550; }
.result-actions button.result-primary { background: var(--green); color: white; border-color: var(--green); }
.result-actions button:hover { filter: brightness(1.12); }
.result-dialog button:focus-visible, .result-reopen:focus-visible { outline: 2px solid white; outline-offset: 3px; }
.result-card #result-status, .result-card .result-finished-note { color: #9ba5a7; margin-top: 12px; font-size: 12px; }
.result-card #result-status:empty { display: none; }
#result-share-text { width: 100%; min-height: 110px; background: #16191a; color: white; border: 1px solid #51595c; border-radius: 6px; margin-top: 12px; }
.result-reopen { display: block; margin: 18px auto 0; border: 1px solid var(--line); border-radius: 6px; color: var(--text); background: var(--surface); padding: 12px 38px; }
.result-soundcloud { margin-top: 24px; }
.result-soundcloud iframe { position:absolute; width:320px; height:166px; clip-path:inset(100%); opacity:0; pointer-events:none; border:0; }
.compact-track { display:flex; align-items:center; gap:12px; padding:14px; border-radius:12px; background:#e9eceb; color:#222; text-align:left; }
.compact-play { flex:none; width:42px; height:42px; border:0; border-radius:50%; background:#52b91d; color:white; font-size:21px; cursor:pointer; }
.compact-play:disabled { opacity:.5; }
.compact-details { flex:1; min-width:0; }
.compact-title { display:block; color:#222; font-size:13px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; text-decoration:none; }
.compact-seek { display:block; width:100%; margin:9px 0; accent-color:#52b91d; cursor:pointer; }
.compact-meta { display:flex; justify-content:space-between; gap:10px; font-size:11px; }
.compact-source { color:#555; }
.play-button:disabled, .guess-button:disabled { cursor: default; opacity: .4; }
@media (max-width: 540px) {
  .result-card { padding: 10px; }
  .result-dialog { max-height: calc(100dvh - 20px); }
  .result-banner { padding: 18px 38px; }
  .result-content { padding: 20px 16px; }
  .result-period { margin-block: 20px; }
  .result-summary { width: 255px; }
  .result-chart { padding: 17px 15px; }
  .result-chart h4 { font-size: 14px; }
  #result-chart-date { font-size: 12px; }
  .result-card #result-comparison { font-size: 14px; }
}
