:root {
    --bg: #f6f7fb;
    --fg: #0f1c2f;
    --accent: #0f8bff;
    --muted: #7d8ca3;
    --shadow: 0 18px 45px rgba(15, 28, 47, 0.18);
}

* {
    box-sizing: border-box;
    touch-action: manipulation;
}

body {
    margin: 0;
    min-height: 100dvh;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--fg);
    background: radial-gradient(circle at 20% 20%, rgba(15, 139, 255, 0.08), transparent 30%),
        radial-gradient(circle at 80% 0%, rgba(15, 28, 47, 0.08), transparent 35%),
        var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    width: 100%;
}

.shell {
    width: min(1000px, calc(100vw - 16px));
    display: flex;
    flex-direction: column;
}

header {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    max-width: 100%;
    white-space: nowrap;
    padding-bottom: 12px;
    border-bottom: 3px solid #e67e22;
}

h1 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 8px;
    color: #0f1c2f;
}

.carousel {
    position: relative;
    background: #0b1020;
    border-radius: 18px;
    overflow: visible;
    width: calc(100% - 16px);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.slides {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 280ms ease;
    pointer-events: none;
    background: linear-gradient(120deg, #0b1020, #0d152b);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide.is-active.swipe-next {
    animation: slideInFromRight 400ms ease;
}

.slide.is-active.swipe-prev {
    animation: slideInFromLeft 400ms ease;
}

.slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(15, 28, 47, 0.5);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.nav:hover {
    background: rgba(15, 139, 255, 0.8);
}

.nav:active {
    transform: translateY(-50%) scale(0.98);
}

.nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.nav.prev {
    left: max(10px, env(safe-area-inset-left, 0px));
}

.nav.next {
    right: max(10px, env(safe-area-inset-right, 0px));
}

.dots {
    position: absolute;
    inset-inline: 0;
    bottom: 12px;
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
    transition: transform 160ms ease, background 160ms ease;
    pointer-events: auto;
    cursor: pointer;
}

.dot.is-active {
    background: #fff;
    transform: scale(1.1);
}

.empty {
    text-align: center;
    padding: 32px;
    color: var(--muted);
}

.logo-container {
    position: relative;
    margin-top: 16px;
    margin-bottom: 16px;
    align-self: flex-end;
    margin-right: 8px;
}

.topparken-logo {
    width: 100px;
    height: auto;
    display: block;
    opacity: 0.9;
    transition: opacity 160ms ease;
}

.topparken-logo:hover {
    opacity: 1;
}

.fullscreen-btn {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: none;
    background: rgba(15, 28, 47, 0.5);
    color: #fff;
    font-size: 18px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    z-index: 10;
}

.fullscreen-btn:hover {
    background: rgba(15, 139, 255, 0.8);
}

.fullscreen-btn:active {
    transform: scale(0.98);
}

.fullscreen-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.enlarge-btn {
    padding: 10px 16px;
    margin: 8px 8px 0 auto;
    background: rgba(15, 28, 47, 0.5);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    align-self: flex-end;
}

.enlarge-btn:hover {
    background: rgba(15, 139, 255, 0.8);
}

.enlarge-btn:active {
    transform: scale(0.98);
}

.enlarge-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Fullscreen mode */
body.fullscreen-mode {
    margin: 0;
    padding: 0;
    background: #000;
    width: 100vw;
    width: 100dvw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

body.fullscreen-mode .shell {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

body.fullscreen-mode header {
    display: none;
}

body.fullscreen-mode .carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    margin: 0;
    overflow: visible;
}

body.fullscreen-mode .slides {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body.fullscreen-mode .slide {
    background: #000;
}

body.fullscreen-mode .slide img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

body.fullscreen-mode .fullscreen-btn {
    background: rgba(15, 28, 47, 0.5);
    font-size: 0;
}

body.fullscreen-mode .fullscreen-btn::after {
    content: '⊡';
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transform: translateY(-5px);
}

body.fullscreen-mode .fullscreen-btn:hover {
    background: rgba(15, 139, 255, 0.8);
}

body.fullscreen-mode .logo-container {
    display: none;
}

body.fullscreen-mode .enlarge-btn {
    display: none;
}

.features-table {
    width: 100%;
    max-width: calc(100% - 16px);
    border-collapse: collapse;
    margin: 16px auto 0;
    font-size: 14px;
    line-height: 1.6;
}

.features-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.features-table td {
    padding: 10px 12px;
}

.features-table td.label {
    font-weight: bold;
    color: #e67e22;
    width: 45%;
}

.features-table td:not(.label) {
    color: var(--fg);
}

.features-table td.info-cell {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-btn {
    padding: 6px 12px;
    background: rgba(15, 28, 47, 0.5);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease;
    white-space: nowrap;
}

.info-btn:hover {
    background: rgba(15, 139, 255, 0.8);
}

body.fullscreen-mode .features-table {
    display: none;
}