* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; background: transparent; user-select: none; font-family: var(--font); font-stretch: 87.5%; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
:root {
    --font: 'Akrobat', 'Bahnschrift', 'Roboto Condensed', 'Arial Narrow', sans-serif;
    --mono: 'Source Code Pro', Consolas, ui-monospace, monospace;
    --accent: #FDCB02;
    --accent-text: #FFE680;
    --on-accent: #151617;
    --accent-08: rgba(253, 203, 2, .08);
    --accent-soft: rgba(253, 203, 2, .16);
    --accent-24: rgba(253, 203, 2, .24);
    --accent-line: rgba(253, 203, 2, .45);
    --accent-half: rgba(253, 203, 2, .6);
    --accent-glow: rgba(253, 203, 2, .35);
    --ok: #97D44A;
    --warn: #FF9F2E;
    --danger: #FF4848;
    --ink: #F1F1F1;
    --muted: rgba(241, 241, 241, .55);
    --panel: rgba(21, 22, 23, .94);
    --panel-solid: #151617;
    --card: rgba(241, 241, 241, .05);
    --card-h: rgba(241, 241, 241, .1);
    --line: rgba(241, 241, 241, .08);
    --item: radial-gradient(176% 100% at 50% 0%, rgba(107, 107, 107, 0) 0%, rgba(117, 117, 117, .32) 100%), #141414;
    --shadow: 0 24px 60px rgba(0, 0, 0, .55);
    --r: 6px;
    --r-lg: 12px;
}
#lockpick {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .86) 100%);
    z-index: 70;
    user-select: none;
    cursor: none;
}

#lockpick.hidden { display: none; }

.lp-box {
    width: min(960px, 96vw, calc((100vh - 190px) * 2.09 + 28px));
    padding: 14px;
    border-radius: 16px;
    background: var(--panel);
    border: 1px solid rgba(241, 241, 241, .09);
    box-shadow: 0 34px 80px rgba(0, 0, 0, .75);
}

.lp-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 2px 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(241, 241, 241, .07);
}

.lp-title {
font-size: 16px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}

.lp-level {
    padding: 3px 9px;
    border-radius: 4px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-line);
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
}

.lp-level:empty { display: none; }

.lp-esc {
    margin-left: auto;
    padding: 4px 9px;
    border-radius: 5px;
    background: rgba(241, 241, 241, .07);
    color: rgba(241, 241, 241, .55);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    cursor: pointer;
}

.lp-esc:hover { background: rgba(255, 72, 72, .22); color: #F1F1F1; }

.lp-stage {
    position: relative;
    border-radius: 11px;
    overflow: hidden;
    border: 1px solid rgba(241, 241, 241, .06);
    background: #0b0b0c;
}

#lp-canvas {
    display: block;
    width: 100%;
    aspect-ratio: 920 / 440;
}

.lp-msg {
    position: absolute;
    left: 50%;
    top: 12px;
    max-width: 66%;
    transform: translate(-50%, -6px);
    padding: 6px 14px;
    border-radius: 7px;
    background: rgba(21, 22, 23, .9);
    border: 1px solid rgba(241, 241, 241, .1);
    color: #F1F1F1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: center;
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: none;
}

.lp-msg.show { opacity: 1; transform: translate(-50%, 0); }
.lp-msg.ok { border-color: rgba(151, 212, 74, .55); color: #B4E37A; }
.lp-msg.warn { border-color: rgba(255, 176, 32, .55); color: #ffcf73; }
.lp-msg.bad { border-color: rgba(255, 72, 72, .6); color: #ff9a9b; }

.lp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.lp-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 7px;
    background: rgba(241, 241, 241, .035);
    border: 1px solid rgba(241, 241, 241, .05);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    color: rgba(241, 241, 241, .5);
    white-space: nowrap;
}

.lp-stat b { color: #F1F1F1; font-family: var(--mono); font-weight: 700; }
.lp-stat.hidden { display: none; }
.lp-wide { flex: 1 1 150px; }

.lp-meter {
    position: relative;
    flex: 1;
    min-width: 70px;
    height: 7px;
    border-radius: 4px;
    background: rgba(241, 241, 241, .07);
    overflow: hidden;
}

.lp-meter em {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #97D44A, #B4E37A);
}

.lp-meter u {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 0;
    display: none;
}

.lp-ten em { background: linear-gradient(90deg, #D9A800, var(--accent-text)); opacity: .45; }
.lp-ten.on em { opacity: 1; }
.lp-ten.heavy em { background: linear-gradient(90deg, #d6452f, #ff9a7a); }
#lp-sweet { background: rgba(151, 212, 74, .28); }
#lp-spool { background: rgba(255, 196, 80, .32); }
.lp-ten.hints u { display: block; }

.lp-keys {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    margin-top: 10px;
    font-size: 12px;
    color: rgba(241, 241, 241, .45);
}

.lp-keys .pl-k b { margin-right: 6px; }

.pl-k {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: rgba(241, 241, 241, .8);
}

.pl-k b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    margin-right: 6px;
    padding: 0 6px;
    border-radius: 3px;
    border: none;
    background: var(--ink);
    color: var(--panel-solid);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
:root { color-scheme: dark; }
html, body { background: var(--panel-solid); }
#lockpick { background: var(--panel-solid); align-items: flex-start; }
.lp-box { width: 100vw; border: 0; border-radius: 0; box-shadow: none; }
#lp-again { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 80; background: rgba(0, 0, 0, .55); }
#lp-again button { font: 800 15px var(--font); letter-spacing: .08em; text-transform: uppercase; padding: 12px 26px; border-radius: 8px; border: none; background: var(--accent); color: var(--on-accent); cursor: pointer; }
#lp-again p { position: absolute; top: 38%; font: 800 26px var(--font); letter-spacing: .06em; color: var(--ink); text-transform: uppercase; }
