html[data-snd-theme] { background-color: var(--snd-bg); }

@media (max-width: 960px) {
    .snd-app .snd-app-header .snd-app-nav > a {
        padding-inline: clamp(8px, 2.5vw, 12px);
        overflow-wrap: anywhere;
    }
}

.snd-home-carousel {
    position: relative;
    max-width: 100%;
    margin-block: 0 clamp(1.65rem, 4vw, 2.65rem);
    background: var(--snd-surface);
    border-radius: clamp(19px, 3vw, 30px);
}
.snd-banner-definitions { position: absolute; pointer-events: none; }
.snd-banner-track {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    border-radius: inherit;
}
.snd-home-carousel[data-ready] .snd-banner-track { scrollbar-width: none; }
.snd-app .snd-banner-track:focus-visible {
    outline: 2px dashed var(--snd-control-border) !important;
    outline-offset: 3px;
}
.snd-app a.snd-banner {
    --banner-bg: #224737;
    --banner-ink: #f0f5e2;
    --banner-mark: #c8e6a1;
    --banner-map: #b4d6ae;
    --banner-relief: #162f26;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    min-height: clamp(220px, 25vw, 302px);
    padding: clamp(1rem, 3vw, 2.5rem) clamp(3.4rem, 7vw, 6rem);
    overflow: hidden;
    border-radius: inherit;
    background: var(--banner-bg);
    color: var(--banner-ink) !important;
    text-decoration: none !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.snd-app a.snd-banner-mountain {
    --banner-bg: #293c34;
    --banner-ink: #eff2d9;
    --banner-mark: #d8e5a9;
    --banner-map: #acc6a0;
    --banner-relief: #3e5544;
    background: radial-gradient(ellipse at 77% 34%, var(--banner-relief), transparent 60%), var(--banner-bg);
}
.snd-app a.snd-banner-city {
    --banner-bg: #21434a;
    --banner-ink: #eef7ee;
    --banner-mark: #ace5d8;
    --banner-map: #a8dad0;
    --banner-relief: #173139;
}
.snd-banner::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    pointer-events: none;
}
.snd-banner-district::before {
    background: url(banner-tiles.svg) center / 310px auto repeat;
    opacity: .21;
}
.snd-banner-mountain::before {
    background: url(banner-contours.svg) center / cover no-repeat;
    opacity: .29;
}
.snd-banner-city::before {
    background: url(banner-streets.svg) center / 345px auto repeat;
    opacity: .19;
}
.snd-banner-copy { min-width: 0; }
.snd-app .snd-banner-copy h2 {
    max-width: 15ch;
    margin: 0;
    color: var(--banner-ink);
    font-size: clamp(2rem, 4.4vw, 3.9rem);
    font-weight: 735;
    line-height: 1.04;
    letter-spacing: -.042em;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
.snd-app .snd-banner-copy p {
    max-width: 28ch;
    margin: .42rem 0 .8rem;
    color: var(--banner-ink);
    font-size: clamp(.87rem, 1.75vw, 1.1rem);
    line-height: 1.42;
    overflow-wrap: anywhere;
}
.snd-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: .44rem;
    min-height: 44px;
    padding: .45rem .8rem;
    border-radius: .6rem;
    background: #ffda59;
    color: #172b23;
    font-size: .9rem;
    font-weight: 750;
    line-height: 1.18;
}
.snd-banner-cta svg { flex: none; }
.snd-banner:hover .snd-banner-cta { background: #ffe681; }
.snd-app a.snd-banner:focus-visible {
    outline: 3px solid var(--banner-ink) !important;
    outline-offset: -5px;
}
.snd-banner:hover .snd-banner-copy h2 { text-decoration: underline; text-underline-offset: .16em; text-decoration-thickness: .06em; }
.snd-banner-visual {
    position: absolute;
    z-index: -1;
    inset: 0 3.3rem 0 52%;
    display: grid;
    place-items: center;
    color: var(--banner-map);
    pointer-events: none;
}
.snd-banner-district .snd-banner-visual::before {
    content: "";
    position: absolute;
    inset: 12% 15% 14% 12%;
    transform: rotate(-11deg);
    border-radius: 19px;
    background-color: var(--banner-relief);
    background-image: linear-gradient(to right, color-mix(in srgb, currentColor 13%, transparent) 1px, transparent 1px),
        linear-gradient(to bottom, color-mix(in srgb, currentColor 13%, transparent) 1px, transparent 1px);
    background-size: 22px 22px;
    box-shadow: 10px 10px 0 color-mix(in srgb, currentColor 14%, transparent), 21px 20px 0 color-mix(in srgb, currentColor 8%, transparent);
}
.snd-banner-map {
    position: relative;
    width: 100%;
    height: 93%;
    max-height: 300px;
    padding: 9px 12px;
    fill: color-mix(in srgb, currentColor 18%, transparent);
    stroke: currentColor;
    stroke-width: 2px;
    stroke-linejoin: round;
    overflow: visible;
}
.snd-banner-district .snd-banner-map { --banner-selected-fill: var(--banner-mark); }
.snd-banner-map-region { fill: var(--banner-selected-fill, inherit); }
.snd-banner-marker { fill: var(--banner-mark); stroke: var(--banner-bg); stroke-width: 4px; }
.snd-banner-marker-detail { fill: none; }
.snd-banner-route { stroke: var(--banner-mark); stroke-width: 5px; stroke-dasharray: 11 11; fill: none; }
.snd-banner-arrows {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: clamp(.3rem, 1.35vw, .9rem);
    pointer-events: none;
}
.snd-banner-arrows[hidden] { display: none; }
.snd-app .snd-banner-arrow {
    display: grid;
    place-items: center;
    width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #edf4e441;
    border-radius: 12px;
    color: #f0f5e2 !important;
    background: #183630 !important;
    pointer-events: auto;
}
.snd-app .snd-banner-arrow:hover { background: #33584a !important; }
.snd-banner-arrow[data-banner-step="-1"] svg { transform: rotate(180deg); }
.snd-app .snd-banner-arrow:focus-visible { outline: 2px solid #ffda59 !important; outline-offset: 2px; }
.snd-app .snd-directory-heading {
    max-width: 980px;
    margin: 0 auto clamp(.85rem, 2.6vw, 1.45rem);
}
.snd-app .snd-directory-heading h2 {
    margin: 0 0 .35rem;
    font-size: clamp(1.48rem, 3.6vw, 2.25rem);
    line-height: 1.12;
}
.snd-app .snd-directory-heading p { max-width: 67ch; margin: 0; color: var(--snd-text); line-height: 1.55; }
.snd-app .snd-all-games .snd-game-directory { margin-top: 0; }

.snd-app .snd-app-footer {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1rem;
    width: min(calc(100% - 3.5rem), 1120px);
    padding: 1.25rem 0 1.65rem;
    border-top-color: var(--snd-border);
}
.snd-app .snd-app-footer a { min-height: 44px; font-size: .94rem; }
.snd-app .snd-app-footer a:hover { text-decoration: underline; text-underline-offset: .2em; }
.snd-footer-brand { display: inline-flex; align-items: center; gap: .56rem; justify-self: start; font-weight: 720; }
.snd-footer-brand .snd-compass { width: 31px; height: 31px; color: var(--snd-accent); }
.snd-footer-links { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 1rem; }
.snd-footer-links a { display: inline-flex; align-items: center; }
.snd-footer-author { display: inline-flex; align-items: center; gap: .4rem; justify-self: end; white-space: nowrap; font-weight: 650; }
.snd-footer-author-mark {
    flex: 0 0 1.35rem;
    height: 1.35rem;
    background: var(--snd-accent);
    mask: url('cvjetan-icon.png') center / contain no-repeat;
}
.snd-app .snd-privacy {
    max-width: 48rem;
    margin-inline: auto;
    padding: clamp(1.25rem, 5vw, 3rem);
    border: 1px solid var(--snd-border);
    border-radius: 22px;
    background: var(--snd-surface);
}
.snd-app .snd-privacy h1 {
    margin-block-end: .6rem;
    font-size: clamp(1.5rem, 6.2vw, 2.1rem);
    overflow-wrap: anywhere;
    hyphens: auto;
}
.snd-app .snd-privacy h2 { margin-block: 1.55rem .35rem; font-size: 1.17rem; }
.snd-app .snd-privacy p { color: var(--snd-text); font-size: 1rem; line-height: 1.65; overflow-wrap: anywhere; }
.snd-app .snd-privacy p + p { margin-block-start: .55rem; }
.snd-app .snd-privacy a { text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 640px) {
    .snd-app .snd-app-footer {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: .3rem .75rem;
        width: calc(100% - 28px);
        box-sizing: border-box;
        padding-block: 14px 64px;
    }
    .snd-app .snd-app-footer a { font-size: 14px; }
    .snd-app .snd-footer-brand { min-width: 0; }
    .snd-footer-brand > span { min-width: 0; overflow-wrap: anywhere; }
    .snd-footer-brand .snd-compass { flex-shrink: 0; }
    .snd-footer-links { grid-row: 2; grid-column: 1 / -1; }
    .snd-footer-author { grid-row: 1; grid-column: 2; }
    .snd-footer-brand .snd-compass { width: 27px; height: 27px; }
    .snd-app a.snd-banner { grid-template-columns: minmax(0, 1.55fr) minmax(0, .45fr); min-height: 223px; padding: 1rem 3.2rem; }
    .snd-banner-copy h2 { font-size: clamp(1.32rem, 5.85vw, 2.45rem) !important; }
    .snd-banner-visual { inset-inline-start: 64%; inset-inline-end: 2.65rem; }
    .snd-banner-cta { font-size: .84rem; padding-inline: .55rem; }
    .snd-banner-map { height: 82%; padding: 2px; }
    .snd-banner-district .snd-banner-visual::before { inset: 15% 11% 16% 5%; }
    .snd-app .snd-banner-arrow { width: 40px; }
}
