.game-history { color: #334155; line-height: 1.6; overflow-wrap: anywhere; }
.game-history-heading { display: flex; flex-wrap: wrap; gap: 20px 48px; margin-bottom: 24px; }
.game-history-heading > div { flex: 1 1 200px; min-width: 0; }
.game-history-label { color: #64748b; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.game-history .krotalia-display { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.game-history .krotalia-display h3 { margin: 4px 0; color: #1e293b; font-size: 23px; font-weight: 600; }
.game-history .krotalia-edit { margin-top: 6px; }
.game-history .krotalia-input { max-width: 280px; margin-bottom: 8px; }
.game-history-barcode { font-family: monospace; font-size: 18px; margin-top: 4px; }
.game-history-status { padding: 18px 22px; border: 1px solid #dbe5ed; border-left: 4px solid #64748b; border-radius: 6px; background: #f8fafc; margin-bottom: 28px; }
.game-history-status h3 { margin: 4px 0 8px; font-size: 20px; font-weight: 600; }
.game-history-status--success { background: #f0f9f5; border-color: #b7dfcc; border-left-color: #23845b; }
.game-history-status--warning { background: #fffbeb; border-color: #f1d991; border-left-color: #b7791f; }
.game-history-status--danger { background: #fff5f5; border-color: #edbcbc; border-left-color: #b94040; }
.game-history-status--info { border-left-color: #397c9f; }
.game-history-section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 20px; }
.game-history-section-heading h4 { margin: 0; font-size: 17px; font-weight: 600; }
.game-history-section-heading span { font-size: 12px; }
.game-history-timeline { margin: 0 0 14px 17px; padding: 0; list-style: none; }
.game-history-event { position: relative; display: flex; gap: 24px; border-left: 2px solid #e2e8f0; padding: 0 0 28px 32px; }
.game-history-event:last-child { padding-bottom: 6px; border-color: transparent; }
.game-history-event-icon { position: absolute; left: -17px; top: -1px; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid #dbe5ed; border-radius: 50%; color: #536b80; background: #f8fafc; }
.game-history-event--success .game-history-event-icon { color: #23845b; border-color: #b7dfcc; background: #f0f9f5; }
.game-history-event--warning .game-history-event-icon { color: #946315; border-color: #f1d991; background: #fffbeb; }
.game-history-event-time { flex: 0 0 140px; color: #64748b; font-size: 12px; padding-top: 4px; }
.game-history-event-time small { display: block; font-size: 10px; }
.game-history-event-content { flex: 1; min-width: 0; }
.game-history-event-content h5 { margin: 3px 0 8px; color: #1e293b; font-size: 15px; font-weight: 600; }
.game-history-field > span { color: #64748b; }
.game-history details > summary { cursor: pointer; color: #365b74; font-weight: 600; padding: 8px 0; }
.game-history details > summary:focus-visible { outline: 2px solid #397c9f; outline-offset: 3px; }
.game-history-event-details { margin-top: 6px; }
.game-history-event-details[open] { background: #f8fafc; border-radius: 4px; padding: 0 14px 8px; margin-top: 10px; }
.game-history-fields { margin: 8px 0; }
.game-history-fields > div { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 6px 0; border-bottom: 1px solid #e8edf2; }
.game-history-fields > div:last-child { border-bottom: 0; }
.game-history-fields dt { flex: 0 0 210px; font-weight: 400; color: #64748b; }
.game-history-fields dd { flex: 1 1 200px; margin: 0; white-space: pre-wrap; }
.game-history-section { border: 1px solid #e2e8f0; border-radius: 5px; padding: 4px 16px; margin-top: 10px; background: #fff; }
.game-history-section[open] { padding-bottom: 14px; }
.game-history-note { color: #64748b; font-size: 12px; margin: 16px 0; }
.game-history-images { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; }
.game-history-images img { max-width: 180px; max-height: 140px; border-radius: 4px; border: 1px solid #e2e8f0; }
.game-history .table { font-size: 12px; }
@media (max-width: 767px) {
    .game-history-heading { gap: 12px; margin-bottom: 18px; }
    .game-history-heading > div { flex-basis: 100%; }
    .game-history-status { padding: 14px; }
    .game-history-event { display: block; padding-left: 28px; padding-bottom: 24px; }
    .game-history-event-time { margin-bottom: 6px; }
    .game-history-event-time small { display: inline; margin-left: 8px; }
    .game-history-fields > div { display: block; }
    .game-history-fields dd { margin-top: 2px; }
    .game-history-section { padding-left: 12px; padding-right: 12px; }
}
