body {
    background-color: #202020;
    font-family: Roboto, Verdana, Arial, sans-serif;
}

.page-header {
    position: relative;
    padding: 20px 15px 50px;
    background-color: #000000;
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.brand img {
    flex-shrink: 0;
}

.brand h1 {
    min-width: 0;
    margin: 0;
    padding: 0;
    background: none;
    color: #ff0000;
    font: bold 30px Roboto, Verdana, Arial, sans-serif;
    letter-spacing: normal;
    overflow-wrap: anywhere;
}

.brand-short {
    display: none;
}

.header-actions {
    position: absolute;
    inset-inline-end: 15px;
    bottom: 15px;
    display: flex;
    gap: 6px;
}

.header-actions img {
    display: block;
    border: 0;
}

.header-actions a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 4px;
}

.language-picker {
    position: absolute;
    inset-inline-start: 15px;
    bottom: 15px;
    z-index: 10;
    color: #ffffff;
    font: 500 14px/1.4 Roboto, Verdana, Arial, sans-serif;
    user-select: none;
    -webkit-user-select: none;
}

.language-picker summary {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    cursor: pointer;
    list-style: none;
}

.language-picker summary::-webkit-details-marker {
    display: none;
}

.language-picker svg {
    display: block;
    flex: none;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.language-picker .language-chevron {
    width: 18px;
    height: 18px;
}

.language-picker[open] .language-chevron {
    transform: rotate(180deg);
}

.language-picker nav {
    position: absolute;
    inset-inline-start: 0;
    top: calc(100% + 8px);
    width: max-content;
    min-width: 180px;
    max-width: calc(100vw - 30px);
    max-height: 50vh;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid #484848;
    border-radius: 10px;
    background: #202020;
    box-shadow: 0 8px 24px #0008;
}

.language-picker a {
    display: block;
    padding: 8px 12px;
    border-radius: 5px;
    color: #ffffff;
    text-align: start;
}

.language-picker a:hover,
.language-picker a[aria-current="page"] {
    background: #3b3b3b;
}

.language-picker a:focus-visible,
.language-picker summary:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

main {
    display: flex;
    flex-direction: column;
    padding: 20px 12px 0;
}

.platforms,
.screenshots {
    display: flex;
    justify-content: center;
    gap: 25px;
}

.screenshots {
    order: 1;
}

.platform {
    width: 240px;
    max-width: 100%;
    flex-shrink: 0;
    text-align: center;
}

.platform h2 {
    margin: 0;
    padding: 0;
    border-radius: 12px;
    background-color: #ff0000;
    font: bold 1.2em Roboto, Verdana, Arial, sans-serif;
    font-variant: normal;
    letter-spacing: normal;
}

.platform h2 a {
    display: block;
    padding: 8px 12px;
    border-radius: inherit;
    color: #ffffff;
    background-color: #ff0000;
    transition: background-color 150ms ease;
}

.platform h2 a:hover,
.platform h2 a:focus-visible {
    background-color: #d90000;
}

.platform h2 a:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.screenshot h2 {
    display: none;
}

.screenshot img {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 10px;
    border: 0;
}

#web-screenshot img {
    border-radius: 6px;
}

.overview {
    order: 2;
    width: 100%;
    max-width: 560px;
    margin: 28px auto 0;
}

.description {
    margin: 0;
    color: #ffffff;
    font: 0.96em/1.5 Roboto, Verdana, Arial, sans-serif;
    text-align: justify;
}

.description p {
    margin: 0;
    font: inherit;
}

.description p + p {
    margin-top: 1em;
}

.faq {
    order: 3;
    width: 100%;
    max-width: 560px;
    margin: 36px auto 0;
    color: #ffffff;
    font: 0.96em/1.55 Roboto, Verdana, Arial, sans-serif;
    text-align: start;
}

.faq h2 {
    margin: 0 0 8px;
    padding: 8px 12px;
    border-radius: 12px;
    background-color: #ff0000;
    font: bold 1.25em/1.4 Roboto, Verdana, Arial, sans-serif;
    font-variant: normal;
    letter-spacing: normal;
    text-align: center;
}

.faq details:not(:last-child) {
    border-bottom: 1px solid #3d3d3d;
}

.faq summary {
    position: relative;
    padding: 16px 0;
    padding-inline-end: 28px;
    color: #ff4444;
    font-size: 1.08em;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    position: absolute;
    top: 50%;
    inset-inline-end: 4px;
    width: 7px;
    height: 7px;
    margin-top: -6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
}

.faq details[open] summary::after {
    margin-top: -2px;
    transform: rotate(225deg);
}

.faq summary:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

.faq p {
    margin: 0 0 14px;
    color: #dedede;
    font: inherit;
}

.faq a {
    color: #ff7777;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.notification-figure {
    margin: 20px 0 16px;
}

.notification-figure figcaption {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: bold;
}

.notification-platform,
.notification-number {
    flex: none;
    background-color: #c90000;
    color: #ffffff;
    font-weight: bold;
}

.notification-platform {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.85em;
}

.notification-image {
    position: relative;
    aspect-ratio: var(--notification-ratio, 1440 / 480);
    overflow: hidden;
    border-radius: 12px;
    direction: ltr;
}

.notification-image img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: auto;
    /* Keep the original screenshot; each locale specifies its visible crop. */
    transform: translateY(var(--notification-offset, -23.4375%));
}

.notification-image svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.notification-image path {
    fill: none;
    stroke: #c90000;
    stroke-width: 4;
    stroke-linecap: round;
}

.notification-image circle {
    fill: #c90000;
    stroke: #ffffff;
    stroke-width: 3;
}

.notification-image text {
    fill: #ffffff;
    font: bold 42px Arial, sans-serif;
    text-anchor: middle;
    dominant-baseline: central;
}

.notification-key {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.95em;
}

.notification-key-intro {
    grid-template-columns: 1fr;
    margin: 0 0 18px;
}

.notification-key li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
}

.notification-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 12px;
    line-height: 1;
}

.notification-key p {
    margin: 6px 0 0;
}

@media (max-width: 580px) {
    .notification-key {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

.social-feed {
    order: 4;
    width: 100%;
    max-width: 560px;
    margin: 36px auto 0;
    overflow: hidden;
}

.page-footer {
    order: 5;
    margin: 40px -12px 0;
    padding: 28px 24px 32px;
    background-color: #000000;
    text-align: center;
}

.footer-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    max-width: 100%;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.footer-links a {
    color: #ff4444;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    text-decoration: underline;
}

.copyright {
    margin: 24px 0 0;
    color: #b5b5b5;
    font: 0.8em/1.6 Roboto, Verdana, Arial, sans-serif;
}

.copyright a {
    color: #d99797;
}

@media (max-width: 800px) {
    .page-header {
        padding: 20px 12px 50px;
    }

    #i18n_app {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .brand-short {
        display: inline;
    }

    .platforms,
    .screenshots {
        flex-direction: column;
        align-items: center;
    }

    .platforms {
        gap: 8px;
    }

    .overview {
        order: 1;
    }

    .screenshots {
        order: 2;
        margin-top: 28px;
    }

    .screenshot h2 {
        display: block;
    }

    #web,
    #web-screenshot {
        order: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .platform h2 a {
        transition: none;
    }
}
