* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #000;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ── Name input ─────────────────────────────────────────────── */

#politician-input {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: min(500px, 80vw);
    padding: 12px 18px;
    background: rgba(0, 0, 0, 0.82);
    border: 2px solid rgba(255, 200, 60, 0.6);
    border-radius: 30px;
    color: #fff;
    font-size: 15px;
    z-index: 200;
    backdrop-filter: blur(10px);
    outline: none;
    text-align: center;
    letter-spacing: 0.02em;
}

#politician-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
    font-size: 13px;
}

#politician-input:focus {
    border-color: rgba(255, 200, 60, 1);
    box-shadow: 0 0 16px rgba(255, 200, 60, 0.3);
}

/* ── Judge button ───────────────────────────────────────────── */

#judge-btn {
    position: fixed;
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 28px;
    background: rgba(255, 200, 60, 0.15);
    border: 2px solid rgba(255, 200, 60, 0.7);
    border-radius: 24px;
    color: #ffc83c;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 0.08em;
    cursor: pointer;
    z-index: 200;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

#judge-btn:hover {
    background: rgba(255, 200, 60, 0.3);
    border-color: rgba(255, 200, 60, 1);
    box-shadow: 0 0 20px rgba(255, 200, 60, 0.4);
}

#judge-btn:active {
    transform: translateX(-50%) scale(0.96);
}

/* ── Camera controls ────────────────────────────────────────── */

.controls-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    gap: 14px;
    z-index: 200;
}

.control-button {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.75);
    border: 2px solid rgba(255, 255, 255, 0.22);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
}

.control-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.control-button:active { transform: scale(0.94); }
.control-button svg    { width: 22px; height: 22px; }

.photo-btn { border-color: rgba(100, 200, 255, 0.4); }
.photo-btn:hover {
    background: rgba(100, 200, 255, 0.15);
    border-color: rgba(100, 200, 255, 0.8);
}

/* ── Status bar ─────────────────────────────────────────────── */

#status {
    position: fixed;
    bottom: 28px;
    left: 28px;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 10px 18px;
    border-radius: 22px;
    font-size: 12px;
    z-index: 200;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    max-width: calc(100vw - 180px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.loading { color: #ffcc00; }
.ready   { color: #00ff88; }
.error   { color: #ff4444; }

/* ── Mobile ─────────────────────────────────────────────────── */

@media (max-width: 768px) {
    #politician-input { top: 14px; font-size: 13px; }
    #judge-btn        { top: 62px; font-size: 12px; padding: 8px 22px; }
    .controls-container { bottom: 18px; right: 18px; }
    #status { bottom: 18px; left: 18px; font-size: 11px; }
}