.site-banner {
    align-items: center;
    background: #000;
    color: #fff;
    display: flex;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    position: relative;
}

.banner-start,
.banner-end {
    align-items: center;
    display: flex;
    gap: 1rem;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
}

.banner-username {
    font-size: 0.95rem;
}

.menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 0.28rem;
    margin: 0;
    min-height: auto;
    padding: 0.55rem 0.5rem;
}

.menu-toggle span {
    background: #fff;
    border-radius: 999px;
    display: block;
    height: 2px;
    width: 1.2rem;
}

.site-menu {
    background: #1a1a1a;
    border: 1px solid #3a3a3a;
    border-radius: 1rem;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    display: none;
    left: 1rem;
    min-width: 14rem;
    padding: 0.75rem;
    position: absolute;
    top: 4.6rem;
    z-index: 20;
}

.site-menu.is-open {
    display: block;
}

.site-menu[hidden],
.walks-towns-card[hidden] {
    display: none !important;
}

.site-menu-label {
    color: #9f9f9f;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 0.55rem;
    padding: 0 0.6rem;
    text-transform: uppercase;
}

.site-menu-link,
.site-menu-button {
    border-radius: 0.75rem;
    color: #fff;
    display: block;
    padding: 0.8rem 0.9rem;
    text-decoration: none;
    transition: background-color 120ms ease, transform 120ms ease;
}

.site-menu-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
    width: 100%;
}

.site-menu-link + form,
.site-menu-link + .site-menu-link,
.site-menu form + .site-menu-link {
    margin-top: 0.3rem;
}

.site-menu-link:hover,
.site-menu-link:focus,
.site-menu-button:hover,
.site-menu-button:focus,
.site-banner .button:hover,
.site-banner .button:focus {
    background: #2a2a2a;
}

.site-menu-link:hover,
.site-menu-link:focus,
.site-menu-button:hover,
.site-menu-button:focus {
    transform: translateX(2px);
}

.site-main {
    padding-top: 2rem;
}

.site-footer {
    color: #8a8a8a;
    font-size: 0.78rem;
    padding: 0 1.5rem 1.25rem;
    text-align: center;
}

.content-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.06);
}

.content-card + .content-card {
    margin-top: 1.5rem;
}

.summary-card {
    border: 1px solid #ececec;
    border-radius: 0.75rem;
    height: 100%;
    padding: 1rem 1.1rem;
}

.games-filter {
    margin-bottom: 1.25rem;
}

.games-year-field {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.games-year-field .label {
    margin-bottom: 0;
}

.game-bar-list {
    display: grid;
    gap: 0.12rem;
}

.game-bar-row {
    align-items: center;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(9rem, 34%) minmax(7rem, 1fr) 2.5rem;
}

.game-bar-name {
    overflow-wrap: anywhere;
}

.game-bar-chart {
    appearance: none;
    background: #f2f2f2;
    border: 1px solid #e1e1e1;
    border-radius: 999px;
    display: block;
    height: 0.85rem;
    overflow: hidden;
    width: 100%;
}

.game-bar-chart::-webkit-progress-bar {
    background: #f2f2f2;
}

.game-bar-chart::-webkit-progress-value {
    background: #6f6f6f;
    border-radius: 999px;
}

.game-bar-chart::-moz-progress-bar {
    background: #6f6f6f;
    border-radius: 999px;
}

.game-bar-count {
    color: #6a6a6a;
    font-size: 0.9rem;
    text-align: right;
}

.summary-header,
.walks-header {
    align-items: flex-start;
    margin-bottom: 1rem;
}

.walks-towns-toggle {
    background: transparent;
    border: 0;
    color: #4a4a4a;
    cursor: pointer;
    font: inherit;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 0.18rem;
}

.walks-towns-toggle:hover,
.walks-towns-toggle:focus {
    color: #000;
}

.walks-towns-card {
    background: #fafafa;
    border: 1px solid #eeeeee;
    box-shadow: 0 0.6rem 1.2rem rgba(0, 0, 0, 0.04);
    margin-bottom: 1rem;
}

.walks-town-list {
    column-gap: 2rem;
    columns: 2;
    margin-top: 0.75rem;
}

.walks-stats {
    color: #6b6b6b;
    font-size: 0.82rem;
    margin: 0.75rem 0 1rem;
    max-width: 34rem;
}

.walks-stats .table {
    background: transparent;
}

.walks-stats table th:not([align]),
.walks-stats table td:not([align]) {
    border-color: #eeeeee;
    padding: 0.25rem 0.45rem;
    text-align: center;
    white-space: nowrap;
}

.walks-search {
    margin: 1rem 0;
    max-width: 38rem;
}

.walks-search .input,
.walks-search .button {
    box-shadow: none;
    height: 2.5em;
}

.walks-search .button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

.walks-search-submit {
    background: #f2f2f2;
    border-color: #d8d8d8;
    color: #1f1f1f;
}

.walks-search-submit:hover,
.walks-search-submit:focus {
    background: #e6e6e6;
    border-color: #c9c9c9;
    color: #000;
}

.walks-search-clear {
    background: #fafafa;
    border-color: #dedede;
    color: #6a6a6a;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
}

.walks-search-clear:hover,
.walks-search-clear:focus {
    background: #eeeeee;
    border-color: #cfcfcf;
    color: #2f2f2f;
}

.walks-search-clear-icon {
    height: 1.1rem;
    stroke: currentColor;
    width: 1.1rem;
}

.walk-card-list {
    margin: 1rem 0;
}

.walk-card {
    border-bottom: 1px solid #e6e6e6;
    display: grid;
    gap: 1.5rem;
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 32%);
    padding: 1.25rem 0;
}

.walk-card:first-child {
    padding-top: 0.5rem;
}

.walk-card-text {
    min-width: 0;
}

.walk-card-header {
    margin-bottom: 0.75rem;
}

.walk-card-header .title,
.walk-card-header .subtitle {
    margin-bottom: 0.25rem;
}

.walk-card-comment {
    color: #5f5f5f;
    font-style: italic;
}

.walk-card-spaced-line {
    margin-top: 0.45rem;
}

.walk-score {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.walk-score-icons {
    align-items: center;
    display: inline-flex;
    gap: 0.18rem;
}

.walks-page-icon,
.walk-score-icon,
.walks-search-clear-icon {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.walk-score-icon {
    height: 1rem;
    stroke: #9a9a9a;
    width: 1rem;
}

.walk-score-icon.is-active {
    stroke: #5f5f5f;
}

.walk-card-map {
    align-items: center;
    align-self: stretch;
    background: #f5f5f5;
    border: 1px solid #e4e4e4;
    border-radius: 0.75rem;
    display: flex;
    justify-content: center;
    min-height: 10rem;
    overflow: hidden;
    text-align: center;
}

.walk-card-map img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.walks-pagination {
    margin: 1rem 0;
}

.walks-pagination-group {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

.walks-pagination-form {
    align-items: center;
    display: flex;
    gap: 0.5rem;
}

.walks-page-arrow {
    min-width: 2.5rem;
}

.walks-page-icon {
    height: 1.25rem;
    stroke: currentColor;
    width: 1.25rem;
}

.walks-page-input {
    font-size: 1rem;
    text-align: center;
    width: 4rem;
}

.walks-page-total {
    align-items: center;
    display: inline-flex;
    font-size: 1rem;
    min-height: 2rem;
}

.login-form {
    max-width: 24rem;
}

.login-layout {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - 9.5rem);
}

.login-card {
    margin: 0 auto;
    max-width: 30rem;
    width: 100%;
}

.form-submit {
    min-width: 8rem;
}

.form-message {
    margin-bottom: 1rem;
}

.site-banner .button.is-ghost {
    color: #fff;
}

.site-banner .button.is-ghost:hover,
.site-banner .button.is-ghost:focus {
    background: #111;
    color: #fff;
}

@media (max-width: 640px) {
    .site-banner {
        align-items: flex-start;
        flex-direction: column;
        padding: 0.9rem 1rem;
    }

    .banner-start,
    .banner-end {
        flex-wrap: wrap;
        width: 100%;
    }

    .site-menu {
        left: 1rem;
        right: 1rem;
        top: 5.6rem;
        width: auto;
    }

    .site-main {
        padding: 1.5rem 1rem;
    }

    .walks-header {
        display: block;
    }

    .walks-town-list {
        columns: 1;
    }

    .walks-search .field.has-addons {
        display: block;
    }

    .walks-search .control + .control {
        margin-top: 0.5rem;
    }

    .walks-search .button {
        width: 100%;
    }

    .walk-card {
        grid-template-columns: 1fr;
    }

    .game-bar-row {
        gap: 0.35rem;
        grid-template-columns: 1fr 2.5rem;
    }

    .game-bar-chart {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .site-banner {
        gap: 0.75rem;
    }

    .banner-start,
    .banner-end {
        gap: 0.75rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-menu {
        left: 0.75rem;
        min-width: 0;
        right: 0.75rem;
        top: 5.9rem;
    }

    .site-main {
        padding: 1.25rem 0.75rem;
    }

    .login-layout {
        align-items: flex-start;
        min-height: auto;
    }

    .login-card {
        border-radius: 0.5rem;
    }

    .form-submit {
        width: 100%;
    }
}
