/*
    REPORT (shown after analysis)
    Top to bottom: game line, accuracies, this move's verdict, engine lines, moves, counts.
    Flat sections split by hairlines; the verdict is the one framed block.
*/
#report-cards {
    flex: 1;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

/* Same heading size as the practice heading (.tutor-opening) */
.game-header {
    font-size: var(--fs-lg);
    font-weight: 400;
    line-height: 1.25;
    color: var(--ink-2);
}

#game-players {
    color: var(--ink);
    font-weight: 600;
}

#opening-name:not(:empty)::before {
    content: " \00b7  ";
}

#opening-name:empty {
    display: none;
}

/*
    ACCURACY
*/
.accuracyDiv {
    display: flex;
}

.accuracy-tile {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-right: var(--space-5);
}

.accuracy-tile + .accuracy-tile {
    padding-left: var(--space-5);
    padding-right: 0;
    border-left: 1px solid var(--hair);
}

.accuracy-side {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--ink-2);
    font-size: var(--fs-xs);
}

.accuracy-side > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.accuracies {
    font-family: var(--font-mono);
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/*
    CURRENT MOVE: "10...Nxe5 is a mistake"
*/
#classification-message-container {
    display: none;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    border: 1px solid var(--hair-strong);
    border-radius: var(--radius-card);
    background: var(--surface);
}

#classification-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.verdict-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#classification-message {
    font-size: var(--fs-md);
    font-weight: 600;
    line-height: 1.3;
}

#top-alternative-message {
    display: none;
    color: var(--ink-2);
    font-size: var(--fs-sm);
}

.verdict-evals {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-1);
    color: var(--ink-3);
}

/*
    ENGINE LINES
*/
#engine-suggestions {
    display: flex;
    flex-direction: column;
}

/* The one section label: Engine lines, Moves, Other lines from here, Your stats */
.quiet-title {
    margin-bottom: var(--space-2);
    color: var(--ink-2);
    font-size: var(--fs-sm);
    font-weight: 500;
    letter-spacing: 0;
}

.engine-suggestion {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-height: 28px;
    border-top: 1px solid var(--hair);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
}

.engine-suggestion b {
    min-width: 44px;
    font-weight: 500;
}

.engine-suggestion span {
    color: var(--ink-2);
}

/*
    MOVES: takes the room that is left
*/
#report-moves {
    flex: 1;
    min-height: 120px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#report-move-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/*
    CLASSIFICATION COUNTS: one row, white and black counts under each icon
*/
#classification-count-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-3) var(--space-2);
    font-variant-numeric: tabular-nums;
}

.classification-count-head {
    display: none;
}

.classification-count-row {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas: "content content" "white black";
    justify-content: center;
    row-gap: 2px;
    column-gap: var(--space-2);
    font-size: var(--fs-sm);
}

.classification-count-content {
    grid-area: content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--ink-2);
    font-size: var(--fs-xs);
    text-transform: capitalize;
}

.classification-count-content > img {
    width: 16px;
    height: 16px;
}

.classification-count-white,
.classification-count-black {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-mono);
    font-weight: 500;
}

.classification-count-white { grid-area: white; justify-self: end; }
.classification-count-black { grid-area: black; justify-self: start; }

.classification-count-white::before,
.classification-count-black::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 2px;
}

.classification-count-white::before { background: var(--ink); }
.classification-count-black::before { background: var(--ground); border: 1px solid rgba(255, 255, 255, 0.35); }

/* Classification colours, matching the icon discs. Blunder text is #ef4444 for contrast on dark (the disc is #c93230). */
.cls-brilliant { color: #1baaa6; }
.cls-great { color: #5b8baf; }
.cls-best,
.cls-excellent { color: #98bc49; }
.cls-good { color: #97af8b; }
.cls-inaccuracy { color: #f4bf44; }
.cls-mistake { color: #e28c28; }
.cls-blunder { color: #ef4444; }
