.result-detail-cell { width: 96px; text-align: right; }
.result-detail-button { background: #100d17; border: 1px solid #b79b22; color: #fff; font: inherit; font-size: .82rem; padding: 8px 13px; min-height: 36px; cursor: pointer; white-space: nowrap; }
.result-detail-button:hover { border-color: #ffdf00; background: #21182d; }
.result-detail-button:focus-visible, .score-detail-dialog button:focus-visible { outline: 2px solid #ffdf00; outline-offset: 3px; }
.score-detail-dialog { box-sizing: border-box; width: min(1040px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; color: #fff; background: #110e19; border: 1px solid #9870c5; border-radius: 6px; box-shadow: 0 24px 90px #000a; overflow: auto; }
.score-detail-dialog::backdrop { background: #050309ba; }
.detail-header, .detail-footer { display: flex; justify-content: space-between; gap: 20px; align-items: center; background: #110e19; padding: 20px 24px; }
.detail-header { border-bottom: 1px solid #ffffff18; }
.detail-header h2 { font-size: 1.65rem; margin: 4px 0; }
.detail-header p { margin: 0; }
.detail-header .card-label { font-size: .75rem; color: #ffe100; }
.detail-meta, .detail-empty, .detail-status, .detail-footer small { color: #ada5bb; font-size: .84rem; line-height: 1.5; }
.detail-close { align-self: flex-start; border: 0; background: transparent; color: #c3bcd0; font-size: 1.8rem; min-width: 40px; min-height: 40px; cursor: pointer; }
.detail-main { padding: 20px 24px; }
.detail-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.detail-summary > div { padding: 12px 16px; border: 1px solid #ffffff25; border-left: 5px solid #fff; border-radius: 4px; }
.detail-summary .detail-summary-0 { border-left-color: #ffe100; }
.detail-summary .detail-summary-1 { border-left-color: #a270f2; }
.detail-summary small { display: block; font-size: .72rem; }
.detail-summary strong { font-size: 1.8rem; }
.detail-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.detail-tabs button { border: 1px solid #62516f; padding: 9px 16px; color: #fff; background: transparent; cursor: pointer; font: inherit; font-size: .86rem; min-height: 40px; }
.detail-tabs button[aria-pressed="true"] { border-color: #ab7bf3; background: #352048; }
.detail-section { border: 1px solid #564265; border-radius: 4px; padding: 16px; margin-top: 16px; }
.detail-section-heading, .detail-trick-title, .detail-part-heading, .detail-part-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.detail-section-heading { flex-wrap: wrap; margin-bottom: 14px; }
.detail-section-heading h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.12rem; }
.detail-section-heading h3 span { background: #ffe100; color: #08060c; padding: 5px 10px; }
.detail-e .detail-section-heading h3 span { background: #a270f2; }
.detail-section-heading > strong { font-size: .9rem; }
.detail-trick { background: #ffffff03; border-top: 1px solid #ffffff18; padding: 12px 0; }
.detail-trick h4, .detail-part-heading h4 { font-size: 1rem; margin: 2px 0; }
.detail-trick-title small { color: #a99fb9; font-size: .72rem; }
.detail-trick-title > span { font-size: .78rem; white-space: nowrap; }
.detail-trick-title strong { font-size: 1.1rem; margin-left: 7px; }
.detail-scales { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin: 12px 0 0; }
.detail-scales div { padding: 8px; background: #ffffff04; border: 1px solid #ffffff10; }
.detail-scales dt { color: #b8aec9; font-size: .65rem; text-transform: uppercase; overflow-wrap: anywhere; }
.detail-scales dd { margin: 4px 0 0; font-size: .94rem; }
.detail-execution { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.detail-execution-part { min-width: 0; padding: 12px; border: 1px solid #ffffff20; }
.detail-part-heading > span { color: #ada5bb; font-size: .8rem; }
.detail-table-scroll { overflow-x: auto; }
.detail-breakdown { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: 10px; }
.detail-breakdown th, .detail-breakdown td { padding: 8px 5px; text-align: right; border-bottom: 1px solid #ffffff14; font-variant-numeric: tabular-nums; }
.detail-breakdown th { font-size: .7rem; color: #bdb1ce; }
.detail-breakdown th:first-child, .detail-breakdown td:first-child { text-align: left; }
.detail-part-total { padding-top: 12px; font-size: .86rem; }
.detail-notice { font-size: .8rem; color: #e5ce76; }
.detail-footer { border-top: 1px solid #ffffff18; padding-top: 14px; padding-bottom: 14px; }
@media(max-width: 640px) {
  .score-detail-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .detail-header, .detail-main, .detail-footer { padding: 14px; }
  .detail-header h2 { font-size: 1.3rem; }
  .detail-summary { gap: 6px; }
  .detail-summary > div { padding: 10px 7px; }
  .detail-summary strong { font-size: 1.4rem; }
  .detail-summary small { font-size: .6rem; }
  .detail-section { padding: 10px; }
  .detail-scales { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-execution { grid-template-columns: 1fr; }
  .detail-trick-title { align-items: flex-start; }
  .detail-trick-title > span { white-space: normal; text-align: right; }
}
