:root {
    --bg: #14232f;
    --kartu: #fff;
    --teks: #1c2b36;
    --muted: #5b6b77;
    --aksen: #2b7bb9;
    --bahaya: #b3261e;
    --garis: #d9e0e6
}

* {
    box-sizing: border-box
}

html {
    height: 100%
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--bg);
    color: var(--teks);
    font-family: 'Source Sans Pro', system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.45;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px
}

.wrap {
    width: 100%;
    max-width: 440px
}

.merek {
    color: #fff;
    text-align: center;
    margin: 0 0 22px;
    font-weight: 700;
    font-size: clamp(2.1rem, 9vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -.01em
}

.kartu {
    background: var(--kartu);
    border-radius: 14px;
    padding: 24px
}

h1 {
    font-size: 1.5rem;
    margin: 0 0 4px
}

.sub {
    color: var(--muted);
    margin: 0 0 18px
}

label {
    display: block;
    font-weight: 600;
    margin: 14px 0 6px
}

input[type=text],
input[type=password] {
    width: 100%;
    height: 48px;
    border: 1px solid var(--garis);
    border-radius: 8px;
    padding: 0 14px;
    font: inherit
}

input:focus,
button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(43, 123, 185, .45);
    outline-offset: 1px
}

.tampil {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    color: var(--muted);
    margin: 12px 0 0
}

.tampil input {
    width: 20px;
    height: 20px
}

button,
.tombol {
    display: block;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 8px;
    background: var(--aksen);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    margin-top: 18px;
    text-align: center;
    text-decoration: none;
    line-height: 50px
}

button:disabled {
    opacity: .5;
    cursor: not-allowed
}

button.sekunder {
    background: #e8eef3;
    color: var(--teks)
}

button.teks {
    background: none;
    color: var(--aksen);
    height: auto;
    line-height: 1.4;
    margin-top: 8px;
    width: auto;
    padding: 4px 0;
    text-decoration: underline
}

.pesan {
    background: #fdecea;
    color: var(--bahaya);
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 0 14px
}

.stage {
    position: relative;
    background: #0b141b;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 1/1
}

.stage video,
.stage canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block
}

.tunggu {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    color: #e6edf2;
    font-weight: 600
}

.status {
    color: var(--muted);
    font-size: .95rem;
    margin: 12px 0 0;
    word-break: break-word
}

.aksi {
    display: grid;
    gap: 8px
}

.aksi button {
    margin-top: 10px
}

.selesai {
    text-align: center;
    padding: 32px 22px
}

.selesai h1 {
    font-size: 2.2rem;
    margin-bottom: 16px
}

.foto {
    display: block;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    margin: 0 auto 16px;
    background: #e8eef3
}

[hidden] {
    display: none !important
}