body {
    margin: 0;
    box-sizing: border-box;
    background: #111;
    color: #fff;
    font-family: sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    width: 100%;
}

h1 { margin: 0 0 1rem; }

#startBtn, #stopBtn, #recordBtn, #cancelBtn, #downloadBtn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    min-width: 160px;
    border-radius: 4px;
    border: none;
    touch-action: manipulation;
}

#startBtn {
    background: #2ecc71;
    color: #000;
}
#downloadBtn {
    background: lightgray;
    color: #000;
}

#recordBtn {
    background: #2ecc71;
    color: #000;
}

#stopBtn {
    background: #c0392b;
    color: #fff;
}

#cancelBtn {
    background: #444;
    color: #fff;
}

#createdButtons {
    display: flex;
    justify-content: center;
    column-gap: 20px;
}

#cameraToggle {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid #444;
}

#cameraToggle button {
    flex: 1;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    background: #222;
    color: #aaa;
    touch-action: manipulation;
}

#cameraToggle button.active {
    background: #2980b9;
    color: #fff;
}

#arena {
    position: relative;
    width: 100%;
    max-width: 720px;
}

#competitionIdElem {
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #aaa;
    margin-bottom: 0.5rem;
    align-self: flex-start;
    max-width: 720px;
    width: 100%;
}

#competitionIdElem span {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    margin-left: 0.4rem;
}

#judgeCount {
    font-size: 1rem;
    color: #aaa;
    margin-bottom: 0.5rem;
    align-self: flex-start;
    max-width: 720px;
    width: 100%;
}

#judgeCount span {
    font-size: 1.6rem;
    font-weight: bold;
    color: #fff;
    margin-left: 0.4rem;
}

#feed {
    width: 100%;
    border-radius: 8px;
    visibility: hidden;
}

#record-canvas {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.recording-preview {
    display: block;
    width: 100%;
    max-width: 720px;
    border-radius: 8px;
    margin-top: 0.5rem;
}

#presentationScores {
    width: 100%;
    max-width: 720px;
    margin-top: 1rem;
}

#presTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

#presTable th,
#presTable td {
    padding: 0.4rem 0.75rem;
    text-align: right;
    border-bottom: 1px solid #2a2a2a;
}

#presTable th:first-child,
#presTable td:first-child {
    text-align: left;
    color: #aaa;
}

#presTable th {
    color: #666;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}