:root {
    --forest-backdrop: #2c3524;
    --surface: rgba(255, 248, 238, 0.9);
    --surface-strong: rgba(255, 251, 245, 0.97);
    --text: #1c1712;
    --muted: #685d4f;
    --line: rgba(61, 45, 23, 0.18);
    --shadow-soft: 0 18px 50px rgba(15, 11, 8, 0.14);
    --shadow-card: 0 12px 30px rgba(15, 11, 8, 0.12);
    --button: #2b2218;
    --button-text: #f7f3eb;
    --button-secondary: #efe4d4;
    --button-secondary-text: #201812;
    --tone-info: #e3ddd0;
    --tone-success: #d9e1cf;
    --tone-warning: #ecd9b8;
    --tone-error: #ebd2cd;
    --frontpage-outline: rgba(78, 208, 255, 0.95);
    --frontpage-outline-hover: rgba(255, 205, 92, 0.98);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--text);
    background: var(--forest-backdrop);
    font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.page-frontpage {
    overflow: hidden;
    background: var(--forest-backdrop);
}

.shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.surface {
    width: min(100%, 640px);
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-soft);
}

.hero {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 26px;
}

.hero-compact {
    margin-bottom: 20px;
}

.brand-mark {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    margin: 2px 0 6px;
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.02;
}

.eyebrow {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.status-card {
    padding: 20px;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    background: var(--tone-info);
}

.tone-success {
    background: var(--tone-success);
}

.tone-warning {
    background: var(--tone-warning);
}

.tone-error {
    background: var(--tone-error);
}

.status-message {
    margin: 0;
    font-size: 1rem;
    line-height: 1.55;
}

.status-meta {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.status-debug {
    font-weight: 600;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.button {
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: var(--button);
    color: var(--button-text);
    box-shadow: var(--shadow-card);
}

.button-secondary {
    background: var(--button-secondary);
    color: var(--button-secondary-text);
}

.app-info-shell {
    min-height: 100vh;
    display: grid;
    align-items: center;
    padding: 40px;
    background: #000;
}

.app-info-page {
    width: min(100%, 1400px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
    gap: 52px;
    align-items: center;
    color: #f5efe5;
}

.app-info-page__media {
    display: grid;
    place-items: center;
}

.app-info-page__logo {
    width: min(100%, 420px);
    max-height: 72vh;
    object-fit: contain;
}

.app-info-page__content {
    max-width: 760px;
}

.app-info-page__eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 238, 210, 0.72);
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.app-info-page__badge {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 205, 92, 0.16);
    color: #ffd98a;
    font-size: 0.92rem;
}

.app-info-page__title {
    margin: 0 0 14px;
    font-size: clamp(2.4rem, 5vw, 4.5rem);
    line-height: 0.98;
}

.app-info-page__lede {
    margin: 0 0 18px;
    color: rgba(245, 239, 229, 0.92);
    font-size: 1.18rem;
    line-height: 1.5;
}

.app-info-page__body p {
    margin: 0 0 14px;
    color: rgba(245, 239, 229, 0.84);
    font-size: 1rem;
    line-height: 1.7;
}

.app-info-page__body a {
    color: #ffd98a;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
}

.app-info-page__body strong {
    color: #fff4d6;
    font-weight: 700;
}

.app-info-page__body em {
    color: #f4d7a1;
    font-style: italic;
}

.app-info-page__body code {
    padding: 0.14em 0.38em;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.95em;
}

.app-info-page__list {
    margin: 0 0 18px;
    padding-left: 20px;
    color: rgba(245, 239, 229, 0.84);
    line-height: 1.7;
}

.frontpage-shell {
    min-height: 100vh;
}

.frontpage {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: var(--forest-backdrop);
}

.frontpage-background {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.frontpage-mobile-background-wrap {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
}

.frontpage-background--mobile {
    position: absolute;
    inset: 0;
}

.frontpage-desktop-nav {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 0;
}

.frontpage-desktop-nav__shell {
    position: relative;
    width: min(100vw, 133.3vh);
    aspect-ratio: 2666 / 2000;
    overflow: hidden;
}

.frontpage-scene,
.frontpage-highlight {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
}

.frontpage-highlight {
    opacity: 0;
    transition: opacity 120ms ease;
}

.frontpage-highlight.is-active {
    opacity: 1;
}

.frontpage-tooltips {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.frontpage-tooltip {
    position: absolute;
    width: 30%;
    min-height: 18%;
    padding: 20px 22px;
    border: 1px solid rgba(87, 61, 24, 0.28);
    border-radius: 20px;
    background: rgba(251, 244, 230, 0.9);
    box-shadow: 0 18px 34px rgba(18, 12, 8, 0.18);
    color: #261a0f;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 140ms ease, transform 140ms ease;
    backdrop-filter: blur(10px);
}

.frontpage-tooltip.is-active {
    opacity: 1;
    transform: translateY(0);
}

.frontpage-tooltip--top-left {
    left: 16%;
    top: 20%;
}

.frontpage-tooltip--top-center {
    left: 35%;
    top: 18%;
}

.frontpage-tooltip--top-right {
    right: 16%;
    top: 20%;
}

.frontpage-tooltip--bottom-left {
    left: 16%;
    bottom: 17%;
}

.frontpage-tooltip--bottom-center {
    left: 35%;
    bottom: 15%;
}

.frontpage-tooltip--bottom-right {
    right: 16%;
    bottom: 17%;
}

.frontpage-tooltip__title {
    margin: 0 0 8px;
    font-size: 1.28rem;
    line-height: 1.1;
}

.frontpage-tooltip__summary {
    margin: 0 0 10px;
    font-size: 0.98rem;
    line-height: 1.4;
}

.frontpage-tooltip__points {
    margin: 0;
    padding-left: 18px;
    font-size: 0.93rem;
    line-height: 1.35;
}

.frontpage-tooltip__points li + li {
    margin-top: 5px;
}

.frontpage-hitmap {
    position: absolute;
    inset: 0;
    z-index: 4;
    width: 100%;
    height: 100%;
}

.desktop-hotspot {
    outline: none;
}

.desktop-hotspot__shape {
    fill: transparent;
    stroke: transparent;
    stroke-width: 0;
    vector-effect: non-scaling-stroke;
    transition: fill 120ms ease, stroke 120ms ease;
    pointer-events: auto;
}

.desktop-hotspot:hover .desktop-hotspot__shape,
.desktop-hotspot:focus-visible .desktop-hotspot__shape,
.desktop-hotspot.is-active .desktop-hotspot__shape {
    fill: transparent;
    stroke: transparent;
}

.desktop-hotspot:focus-visible {
    outline: none;
}

.frontpage--compact {
    display: none;
}

.frontpage-wheel {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    padding: clamp(14px, 2.8vh, 22px) clamp(18px, 4vw, 30px);
    align-items: center;
    gap: clamp(10px, 2vh, 18px);
    touch-action: none;
}

.frontpage-wheel__control {
    justify-self: center;
    min-width: 110px;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid rgba(104, 73, 27, 0.42);
    border-radius: 999px;
    background: rgba(255, 247, 233, 0.74);
    color: #2f2214;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    backdrop-filter: blur(10px);
    box-shadow: 0 14px 28px rgba(15, 11, 8, 0.18);
}

.frontpage-wheel__control:focus-visible {
    outline: 2px solid var(--frontpage-outline-hover);
    outline-offset: 3px;
}

.frontpage-wheel__viewport {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    justify-items: center;
    align-items: center;
    gap: clamp(14px, 2vh, 22px);
}

.frontpage-wheel__track {
    position: relative;
    width: min(100%, 520px);
    height: 100%;
    min-height: min(58vh, 560px);
    max-height: min(62vh, 620px);
}

.frontpage-wheel__card {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(100%, 360px);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(12, 10, 8, 0.3);
    transition:
        transform 220ms ease,
        opacity 220ms ease,
        filter 220ms ease,
        box-shadow 220ms ease;
    pointer-events: none;
    opacity: 0;
}

.frontpage-wheel__card-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.frontpage-wheel__card[data-wheel-state="active"] {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    filter: none;
    pointer-events: auto;
    z-index: 4;
}

.frontpage-wheel__card[data-wheel-state="prev"] {
    transform: translate(-50%, calc(-50% - var(--wheel-step, 170px))) scale(0.82);
    opacity: 0.72;
    filter: saturate(0.82) blur(0.3px);
    z-index: 3;
}

.frontpage-wheel__card[data-wheel-state="next"] {
    transform: translate(-50%, calc(-50% + var(--wheel-step, 170px))) scale(0.82);
    opacity: 0.72;
    filter: saturate(0.82) blur(0.3px);
    z-index: 3;
}

.frontpage-wheel__card.is-periodic-flash[data-wheel-state="prev"],
.frontpage-wheel__card.is-periodic-flash[data-wheel-state="next"] {
    opacity: 1;
}

.frontpage-wheel__card[data-wheel-state="before-prev"] {
    transform: translate(-50%, calc(-50% - var(--wheel-far-step, 320px))) scale(0.68);
    opacity: 0;
    filter: saturate(0.6) blur(1px);
    z-index: 1;
}

.frontpage-wheel__card[data-wheel-state="after-next"] {
    transform: translate(-50%, calc(-50% + var(--wheel-far-step, 320px))) scale(0.68);
    opacity: 0;
    filter: saturate(0.6) blur(1px);
    z-index: 1;
}

.frontpage-wheel__card:focus-visible {
    outline: 3px solid var(--frontpage-outline-hover);
    outline-offset: 4px;
}

.frontpage-wheel__caption {
    width: min(100%, 420px);
    padding: 16px 18px 18px;
    border: 1px solid rgba(88, 62, 26, 0.28);
    border-radius: 24px;
    background: rgba(248, 241, 229, 0.82);
    box-shadow: 0 20px 36px rgba(18, 12, 8, 0.18);
    text-align: center;
    backdrop-filter: blur(12px);
}

.frontpage-wheel__eyebrow {
    margin: 0 0 8px;
    color: #7a6040;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.frontpage-wheel__title {
    margin: 0;
    color: #25180f;
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.08;
}

.frontpage-wheel__description {
    margin: 10px 0 0;
    color: #5b4731;
    font-size: 0.98rem;
    line-height: 1.45;
}

@media (max-width: 1024px) {
    .page-frontpage,
    .frontpage-shell,
    body.page-frontpage {
        min-height: 100vh;
        min-height: 100dvh;
        overflow: hidden;
    }

    .frontpage--desktop {
        display: none;
    }

    .frontpage--compact {
        display: block;
    }

    .frontpage-mobile-background-wrap {
        display: block;
    }
}

@media (max-width: 1024px) and (orientation: portrait) {
    .frontpage-wheel__track {
        --wheel-step: min(21vh, 170px);
        --wheel-far-step: min(40vh, 330px);
        width: min(100%, 360px);
        min-height: min(56vh, 520px);
    }

    .frontpage-wheel__card {
        width: min(100%, 315px);
    }

    .frontpage-wheel__caption {
        display: none;
    }
}

@media (max-width: 1024px) and (orientation: landscape) {
    .frontpage-wheel {
        grid-template-rows: auto 1fr auto;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .frontpage-wheel__viewport {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
        grid-template-rows: 1fr;
        gap: clamp(16px, 3vw, 28px);
    }

    .frontpage-wheel__track {
        --wheel-step: min(28vh, 150px);
        --wheel-far-step: min(44vh, 300px);
        width: min(100%, 420px);
        min-height: min(66vh, 420px);
        max-height: min(68vh, 440px);
    }

    .frontpage-wheel__card {
        width: min(100%, 300px);
    }

    .frontpage-wheel__caption {
        width: min(100%, 320px);
        text-align: left;
    }
}

@media (max-width: 640px) {
    .app-info-shell {
        padding: 24px;
    }

    .app-info-page {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .app-info-page__logo {
        width: min(100%, 280px);
        max-height: 40vh;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .frontpage-wheel__control {
        min-width: 92px;
        min-height: 38px;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }

    .frontpage-wheel__description {
        font-size: 0.92rem;
    }
}