/* Hit Simulator */
body[data-page="hit-sim"] {
    height: 100vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

body[data-page="hit-sim"] .app-container {
    width: 100%;
}

/* status-bar, sim-controls, progress-bar/-fill/-text, target-panel: see ../common.css */

.canvas-container {
    flex: 1;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: white;
    width: 100%;
    margin: 0 auto;
    min-height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1/1;
}

#impactCanvas {
    width: 100%;
    height: 100%;
}

/* stats-panel: see ../common.css */

#statsTable {
    width: 100%;
    border-collapse: collapse;
}

#statsTable tr {
    border-bottom: 1px solid #f0f0f0;
}

#statsTable tr:last-child {
    border-bottom: none;
}

#statsTable td {
    padding: 6px 4px;
}

/* stat-label, stat-value, sim-disclaimer: see ../common.css */

.loading {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 20px;
    border-radius: 8px;
    z-index: 1000;
}

.loading.show {
    display: block;
}

