@font-face {
    font-family: Nunito;
    src: url("/themes/about/nunito.woff2") format("woff2");
    font-display: swap;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    height: 100vh;
    height: 100dvh;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    background: #161b29;
    color: #f5f0e5;
    font-family: Nunito, sans-serif;
}
iframe { width: 100%; height: 100%; border: 0; background: #161b29; }
footer { min-width: 0; margin: 10px 12px 12px; padding: 12px 16px 10px; background: #24333b; color: #f5f0e5; border-radius: 22px; box-shadow: 0 8px 28px #0003; }
header { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 18px; margin-bottom: 8px; }
nav { display: flex; gap: 3px; }
nav[aria-label="Filter scenes"] { flex-shrink: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button {
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    color: #bbc6c7;
    border: 0;
    background: transparent;
    padding: 5px 11px;
    border-radius: 20px;
    cursor: pointer;
}
button[aria-pressed="true"] { background: #e0ebe2; color: #24333b; }
button:hover { background: #ffffff12; }
button[aria-pressed="true"]:hover { background: #f0f5e9; }
#selection { margin: 0; text-align: right; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#use-theme { margin-left: auto; flex-shrink: 0; color: #e0ebe2; font-size: 13px; font-weight: 800; text-decoration: none; }
#use-theme:hover { color: #fff; }
#theme-navigation { flex-shrink: 0; gap: 8px; }
#theme-navigation a { padding: 5px 8px; border-radius: 20px; color: #e0ebe2; font-size: 13px; font-weight: 800; text-decoration: none; }
#theme-navigation a:hover { background: #ffffff12; }
ol {
    list-style: none;
    padding: 3px 2px 7px;
    margin: 0;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #7f9995 transparent;
}
li { flex: 0 0 152px; }
li[hidden] { display: none; }
li a { display: block; color: #bbc6c7; text-decoration: none; border-radius: 12px; }
img { display: block; width: 100%; height: 86px; object-fit: cover; border: 2px solid transparent; border-radius: 12px; background: #303749; }
li span { display: block; font-size: 11px; font-weight: 700; margin: 4px 2px 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
li a:hover { color: #fff; }
li a:hover img { border-color: #ffffff70; }
li a[aria-current="true"] { color: #fff; }
li a[aria-current="true"] img { border-color: #e0ebe2; }
a:focus-visible, button:focus-visible { outline: 2px solid #e0ebe2; outline-offset: 3px; }

@media (max-width: 600px) {
    footer { margin: 6px; padding: 10px 10px max(8px, env(safe-area-inset-bottom)); border-radius: 18px; }
    header { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 10px; }
    nav[aria-label="Filter scenes"] { grid-column: 1 / 3; }
    #theme-navigation { grid-column: 1; grid-row: 2; }
    button { padding: 5px 9px; }
    #selection { grid-column: 2 / -1; grid-row: 2; font-size: 11px; }
    #use-theme { grid-column: 3; grid-row: 1; font-size: 11px; }
    li { flex-basis: 132px; }
    img { height: 68px; }
}
