:root {
    --bg: #191a24;
    --column: #232533;
    --text: #e6e4da;
    --muted: #a4a2b0;
    --link: #68c2d3;
    --button: #c2d368;
    --button-text: #212123;
    --border: #393b4f;
    --font: "Lato", "PT Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html.ru .en, html.en .ru { display: none !important; }

body {
    margin: 0;
    min-height: 100vh;
    background-color: var(--bg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
    color: var(--text);
    font: 15px/1.5 var(--font);
}

a { color: var(--link); }
img { display: block; max-width: 100%; height: auto; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 46px;
    padding: 0 16px;
    background: #121218;
    border-bottom: 1px solid #000;
    font-size: 14px;
}
.topbar .home { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 700; }
.topbar .home img { width: 26px; height: 26px; border-radius: 5px; }
.topbar .spacer { flex: 1; }
.topbar a.plain { color: #cfcdd8; text-decoration: none; padding: 6px 10px; border-radius: 3px; }
.topbar a.plain:hover { background: #26262f; color: #fff; }
.topbar .lang { display: flex; background: #26262f; border-radius: 3px; padding: 2px; }
.topbar .lang button { font: 700 12px var(--font); color: #9b99a6; background: none; border: 0; padding: 4px 8px; border-radius: 2px; cursor: pointer; }
html.ru .topbar [data-lang="ru"], html.en .topbar [data-lang="en"] { background: var(--link); color: #121218; }

.wrapper { max-width: 960px; margin: 34px auto 60px; }
.column { background: var(--column); box-shadow: 0 0 8px rgba(0, 0, 0, .35); border-radius: 3px; overflow: hidden; }

.banner { display: flex; justify-content: center; background: #11121a; }

.embed {
    position: relative;
    aspect-ratio: var(--ratio, 16 / 9);
    background: #000;
}
.hero { position: relative; aspect-ratio: var(--ratio, 16 / 9); background: #000 center / cover; display: flex; align-items: flex-end; padding: 24px; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 45%, rgba(0, 0, 0, .7)); }
.hero .button { position: relative; font-size: 18px; padding: 12px 22px; }
.title-bar { padding: 22px 30px 0; }
.title-bar h1 { margin: 0; font-size: 30px; }

.downloads { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.download { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #1b1c27; border: 1px solid var(--border); border-radius: 3px; }
.download .name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 700; }
.download .size { color: var(--muted); font-size: 13px; white-space: nowrap; }
.credits { color: var(--muted); font-size: 14px; }
.note { padding: 10px 14px; border-left: 3px solid var(--button); background: #1b1c27; border-radius: 0 3px 3px 0; margin: 0 0 12px; font-size: 14px; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.launch {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background-color: #000;
    background-position: center;
    background-size: cover;
}
.launch::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .25); }
.run {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px 14px 22px;
    font: 700 20px var(--font);
    color: var(--button-text);
    background: var(--button);
    border: 0;
    border-radius: 3px;
    box-shadow: inset 0 0 1px rgba(255, 255, 255, .6), 0 2px 0 rgba(0, 0, 0, .4), 0 0 0 6px rgba(0, 0, 0, .25);
    cursor: pointer;
    text-shadow: 0 1px 0 rgba(255, 255, 255, .3);
}
.run:hover { filter: brightness(1.08); }
.run svg { width: 22px; height: 22px; }
.launch .hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; text-shadow: 0 1px 2px #000; }

.embed-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #1b1c27;
    border-top: 1px solid #000;
    font-size: 13px;
    color: var(--muted);
}
.embed-bar .spacer { flex: 1; }
.icon-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #2c2e3e;
    border: 1px solid var(--border);
    color: var(--text);
    font: 13px var(--font);
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
}
.icon-btn:hover { background: #363849; }
.icon-btn svg { width: 15px; height: 15px; }

.cols { display: flex; gap: 30px; padding: 26px 30px 34px; }
.left { flex: 1; min-width: 0; }
.right { width: 300px; flex: none; display: flex; flex-direction: column; gap: 10px; }

.formatted h1 { font-size: 26px; margin: 0 0 4px; line-height: 1.2; }
.formatted .short { color: var(--muted); margin: 0 0 18px; }
.formatted h2 { font-size: 20px; margin: 26px 0 8px; }
.formatted p { margin: 0 0 12px; }
.formatted ul { margin: 0 0 14px; padding-left: 22px; }
.formatted li { margin-bottom: 4px; }
.formatted kbd { font: 700 12px monospace; background: #353748; border: 1px solid #4a4c60; border-bottom-width: 2px; border-radius: 3px; padding: 1px 6px; }

.more { margin-top: 22px; }
.more > button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--link);
    font: 15px var(--font);
    cursor: pointer;
    text-decoration: underline;
}
.more > button::after { content: " \25BE"; text-decoration: none; display: inline-block; margin-left: 4px; }
.more.open > button::after { content: " \25B4"; }
.more table { display: none; margin-top: 10px; border-collapse: collapse; width: 100%; font-size: 14px; }
.more.open table { display: table; }
.more td { padding: 6px 10px 6px 0; border-top: 1px solid var(--border); vertical-align: top; }
.more td:first-child { color: var(--muted); width: 150px; }
.tag { display: inline-block; margin: 0 4px 4px 0; padding: 1px 8px; border-radius: 10px; background: #33354a; color: var(--text); text-decoration: none; font-size: 13px; }

.buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--button);
    color: var(--button-text);
    font: 700 15px var(--font);
    text-decoration: none;
    border-radius: 3px;
    box-shadow: inset 0 0 1px rgba(255, 255, 255, .6), 0 2px 0 rgba(0, 0, 0, .35);
}
.button.secondary { background: #34364a; color: var(--text); }
.button:hover { filter: brightness(1.08); }
.button svg { width: 17px; height: 17px; }
.button img { height: 18px; width: auto; }
.button.light { background: #f2f0e5; color: #212123; }

.shot { border-radius: 3px; overflow: hidden; cursor: zoom-in; border: 1px solid #000; background: #000; padding: 0; }
.shot img { width: 100%; transition: opacity .15s; }
.shot:hover img { opacity: .85; }

.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.others a { color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; }
.others img { border-radius: 3px; margin-bottom: 6px; aspect-ratio: 630 / 500; object-fit: cover; width: 100%; }
.others a:hover b { text-decoration: underline; }

.footer { text-align: center; margin-top: 18px; font-size: 13px; color: var(--muted); }
.footer a { color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .88); display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 3px; }

.download-icon { width: 17px; height: 17px; }
.keyboard-note { display: none; padding: 10px 14px; background: #3a3020; color: #ede19e; font-size: 14px; }

@media (hover: none) and (pointer: coarse) {
    .keyboard-note { display: block; }
}

@media (max-width: 760px) {
    .wrapper { margin: 0 0 30px; }
    .column { border-radius: 0; }
    .cols { flex-direction: column; padding: 20px 16px; }
    .right { width: auto; display: grid; grid-template-columns: 1fr 1fr; }
    .topbar a.plain .label { display: none; }
    .others { grid-template-columns: 1fr 1fr; }
}
