:root {
    --bg: #0d1117;
    --fg: #e6edf3;
    --ui: #161b22;
    --acc: #58a6ff;
}

html,
body {
    padding: 0px;
    margin: 0px;
    min-width: 465px;
}

body {
    background: var(--bg);
    color: var(--fg);
    font: 14px/1.35 system-ui, Segoe UI, Roboto, Helvetica, Arial;
}

header {
    background: var(--ui);
    border-bottom: 1px solid #263040;
}

main {
    position: relative;
    height: calc(100% - 50px);
}

.bj--stat-box {
    padding: .2rem .5rem;
    border-radius: .5rem;
    background: #0f141b;
    border: 1px solid #243142;
    display: block;
    width: 100%;
}

.bj--go-back {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    color: #FFFFFF !important;
}

@media (max-width: 767px) {

    .bj--go-back {
        right: unset;
        left: 50%;
        transform: translateX(-50%);
    }
}

.bj--start {
    background: var(--acc);
    color: #00122b;
    border: 0;
    border-radius: 10px;
    padding: .5rem .8rem;
    font-weight: 700;
    display: block;
    width: 100%;
    height: 50px;
}

.bj--restart {
    background: #2ea043;
    color: #041;
    border: 0;
    border-radius: 0.5rem;
    padding: .45rem .65rem;
    font-weight: 800;
    width: 100%;
    height: 50px;
}

.bj--card {
    background: var(--ui);
    border: 1px solid #263040;
    border-radius: .75rem;
}

.bj--tag {
    border-radius: .5rem;
    background: #0d1420;
    border: 1px solid #2a3a50;
    padding: 0.5rem;
    margin: 0.75rem 0px;
}

.bj--tag kbd {
    background: #11181f;
    border: 1px solid #263041;
    border-radius: 6px;
    padding: .05rem .35rem;
    font-weight: 700;
    margin: 0px 0.25rem;
}

.bj--label {
    background: #2b3749 !important;
    color: #cacaca !important;
    border: 1px solid #2b3749 !important;
    min-width: 75px;
}

.bj--input,
.bj--select {
    background-color: #0b1118 !important;
    border: 1px solid #2b3749 !important;
    border-radius: 8px;
    padding: .4rem .5rem;
    font: inherit;
    color: #ffffff !important;
    height: 50px;
}

.bj--select {
    cursor: pointer;
}

.bj--controls {
    display: flex;
    justify-content: center;
    align-items: center;
}

.bj--control-btn {
    background: var(--acc);
    border: 0;
    color: #00122b;
    border-radius: 10px;
    padding: .5rem .8rem;
    font-weight: 700;
    width: 33%;
    height: 50px;
}

.bj--control-btn:not(:last-child) {
    margin-right: 0.5rem;
}

/* gameplay */

#stage {
    background: radial-gradient(circle at 50% -10%, #1a2330 10%, #0e141d 70%);
    padding: 12px;
    padding-bottom: 50px;
    border: 1px solid #263040;
    border-radius: .75rem;
    position: relative;
    height: calc(100vh - 35px - 100px - 2rem);
}

.fly {
    position: fixed;
    pointer-events: none;
    z-index: 9;
    font-weight: 800;
    padding: .2rem .35rem;
    border-radius: .5rem;
    box-shadow: 0 2px 8px #0008
}

.fly.steps {
    background: #0b2415;
    color: #7ee39d;
    border: 1px solid #164
}

.fly.pain {
    background: #2b0f12;
    color: #ffb3b3;
    border: 1px solid #b33
}

.burst {
    position: fixed;
    pointer-events: none;
    z-index: 10;
    font-weight: 900;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.9);
    transition: opacity .9s ease, transform .9s ease;
    background: rgba(0, 0, 0, .65);
    padding: .2rem .45rem;
    border-radius: .5rem;
    box-shadow: 0 2px 8px #0008
}

.burst.good {
    color: #2fb46f
}

.burst.bad {
    color: #c43b3b
}