:root {
    color-scheme: dark light
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: #0a0a0a;
    color: #eee
}

header{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

header,
footer {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #111;
    border-bottom: 1px solid #222
}

header .bar {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 10px 16px;
    flex-wrap: wrap
}

.btn {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer
}

.btn[disabled] {
    opacity: .4;
    cursor: default
}

#lire select {
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #333;
    border-radius: 10px;
    padding: 6px 8px
}

.meta {
    opacity: .8;
    font-size: 14px
}

.stage {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px
}

#viewer {
    max-width: 1100px;
    width: 100%;
    position: relative;
    user-select: none
}

.page {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    background: #111
}

.spread {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.zones {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1fr 1fr
}

.zones button {
    appearance: none;
    background: transparent;
    border: 0
}

.zones button:focus {
    /*outline: 2px solid #555;
    outline-offset: 2px*/
}

.help {
    position: fixed;
    right: 10px;
    bottom: 10px;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    opacity: .9
}

.badge {
    background: #222;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 4px 8px
}

.link-fallback {
    color: #9ae6b4
}