:root {
    --bg: #000000;
    --surface: #070707;
    --surface-strong: #0d0d0d;
    --surface-soft: rgba(255, 255, 255, 0.04);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.18);
    --text: #f3f3f3;
    --text-muted: #a8a8a8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    min-width: 320px;
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
}

img {
    display: block;
    max-width: 100%;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: min(1040px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.92);
    border-bottom: 1px solid var(--line);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.brand {
    flex: 0 0 auto;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text);
}

.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-pill,
.view-pill,
.icon-button,
.button,
.tab-button,
.info-link {
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.header-pill,
.view-pill,
.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--text-muted);
}

.header-pill {
    min-width: 58px;
    padding: 0 16px;
    text-transform: lowercase;
}

.view-pill {
    gap: 8px;
    min-width: 84px;
    padding: 0 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

.view-pill svg {
    width: 16px;
    height: 16px;
}

.icon-button {
    width: 40px;
    padding: 0;
}

.icon-button svg {
    width: 18px;
    height: 18px;
}

.header-pill:hover,
.header-pill:focus-visible,
.view-pill:hover,
.view-pill:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
    color: var(--text);
    background: var(--surface-soft);
}

.hero,
.download-section,
.info-section {
    padding: 64px 0 0;
}

.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero::before {
    background-image: url("assets/Yukino Yukinoshita.jpg");
    background-size: cover;
    background-position: center 18%;
    filter: blur(2px) saturate(0.96) brightness(0.68);
    transform: scale(1.015);
    opacity: 0.92;
}

.hero::after {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.58) 34%, rgba(0, 0, 0, 0.32) 58%, rgba(0, 0, 0, 0.64)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.46));
}

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-copy {
    min-width: 0;
}

.hero-gif-shot {
    margin-top: 28px;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.76rem;
}

.eyebrow-plain {
    text-transform: none;
    letter-spacing: 0.02em;
}

h1,
h2,
h3,
p {
    margin: 0;
}

h1 {
    max-width: 10ch;
    font-size: clamp(3rem, 7vw, 5rem);
    line-height: 0.94;
    overflow-wrap: anywhere;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    line-height: 1.04;
}

.hero-text {
    max-width: 420px;
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.hero-visual {
    position: relative;
    min-height: 560px;
}

.hero-photo {
    display: none;
}

.hero-shot {
    position: absolute;
    left: 0;
    top: 54px;
    width: clamp(170px, 21vw, 232px);
    aspect-ratio: 1 / 1;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-strong);
    transform: rotate(-5deg);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}

.hero-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.4));
}

.hero-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.character {
    position: absolute;
    right: 6%;
    bottom: -20px;
    width: clamp(220px, 26vw, 320px);
    filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.55));
}

.download-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
    gap: 28px;
    align-items: center;
}

.download-stack {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 24px;
    min-width: 0;
}

.download-media {
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(118px, 150px);
    grid-template-areas:
        "main figure"
        "extra figure";
    gap: 14px 18px;
    align-items: center;
    justify-items: start;
    min-height: 0;
}

.download-preview {
    position: relative;
    height: 100%;
    min-height: 320px;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
}

.download-preview::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
}

.download-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.section-head {
    display: grid;
    gap: 10px;
}

.tabs {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 6px;
    width: fit-content;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.tab-button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.tab-button.is-active {
    background: var(--surface-strong);
    color: var(--text);
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.download-card,
.install-card,
.info-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.download-card {
    max-width: 760px;
    padding: 28px;
}

.download-card h3 {
    font-size: 1.4rem;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #f2f2f2;
    color: #000000;
}

.button:hover,
.button:focus-visible {
    background: #ffffff;
}

.button-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--line-strong);
}

.button-ghost:hover,
.button-ghost:focus-visible {
    background: rgba(255, 255, 255, 0.06);
}

.download-figure {
    position: relative;
    grid-area: figure;
    align-self: end;
    justify-self: end;
    width: min(150px, 100%);
    opacity: 0.28;
    pointer-events: none;
    filter: grayscale(0.08);
}

.decor-shot {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
    z-index: 1;
}

.decor-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.3));
}

.decor-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.decor-shot-wide {
    width: min(320px, 100%);
    aspect-ratio: 16 / 9;
    transform: rotate(3deg);
}

.decor-shot-square {
    width: min(132px, 100%);
    aspect-ratio: 1 / 1;
    transform: rotate(4deg);
}

.decor-shot-landscape {
    width: min(240px, 100%);
    aspect-ratio: 736 / 386;
    transform: rotate(-3deg);
}

.decor-shot-portrait {
    width: min(118px, 100%);
    aspect-ratio: 676 / 1200;
    transform: rotate(3deg);
}

.decor-shot-poster {
    width: min(180px, 17vw);
    aspect-ratio: 736 / 1042;
    transform: rotate(-4deg);
}

.decor-shot-tall {
    width: min(190px, 19vw);
    aspect-ratio: 565 / 800;
    transform: rotate(4deg);
}

.decor-shot-slim {
    width: min(130px, 13vw);
    aspect-ratio: 403 / 750;
    transform: rotate(5deg);
}

.download-shot {
    grid-area: main;
    justify-self: start;
    margin-right: 0;
    transform: rotate(-3deg);
}

.download-extra-shot {
    grid-area: extra;
    justify-self: end;
}

.install-section {
    position: relative;
    margin-top: 72px;
    padding: 56px 0;
    overflow: hidden;
}

.install-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.48));
}

.install-bg {
    position: absolute;
    inset: -6px;
    width: calc(100% + 12px);
    height: calc(100% + 12px);
    object-fit: cover;
    filter: blur(2px) brightness(0.78) saturate(0.96);
    transform: scale(1.01);
}

.install-card {
    z-index: 1;
    max-width: 620px;
    padding: 28px;
    background: rgba(7, 7, 7, 0.66);
    backdrop-filter: blur(3px);
}

.install-layout {
    display: grid;
    grid-template-columns: minmax(0, 620px) minmax(150px, 200px) minmax(180px, 240px);
    gap: 22px;
    align-items: center;
}

.install-shot {
    justify-self: end;
}

.install-wide-shot {
    justify-self: start;
}

.install-section .container,
.info-layout {
    position: relative;
    z-index: 1;
}

.install-card p + p {
    margin-top: 10px;
}

.route-guides {
    display: grid;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.route-guides-title {
    color: var(--text-muted);
}

.route-guide-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.route-guide-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.route-guide-button {
    min-height: 40px;
    min-width: 58px;
    padding: 0 16px;
}

.info-layout {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) minmax(210px, 300px);
    gap: 26px;
    align-items: end;
    padding-bottom: 56px;
}

.info-side-media {
    display: grid;
    gap: 16px;
    align-self: start;
}

.info-shot-primary {
    align-self: start;
    justify-self: start;
    margin-top: 18px;
}

.info-shot-tall {
    justify-self: end;
}

.info-card {
    min-width: 0;
    padding: 28px;
}

.info-group + .info-group {
    margin-top: 22px;
}

.info-group {
    min-width: 0;
}

.info-label {
    color: var(--text-muted);
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.info-copy {
    max-width: 100%;
    color: var(--text-muted);
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.info-list {
    display: grid;
    gap: 8px;
}

.info-list li::before {
    content: "- ";
    color: var(--text-muted);
}

.info-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    color: var(--text);
}

.info-link:hover,
.info-link:focus-visible {
    background: var(--surface-soft);
}

.info-figure {
    position: relative;
    justify-self: end;
    display: grid;
    grid-template-columns: minmax(100px, 150px) minmax(130px, 1fr);
    grid-template-areas:
        "slim character"
        "wide character";
    gap: 14px;
    align-items: end;
    width: min(340px, 100%);
    min-height: 0;
}

.info-shot-secondary {
    grid-area: slim;
    position: relative;
    left: auto;
    top: auto;
}

.info-shot-wide {
    grid-area: wide;
    width: min(170px, 100%);
}

.info-photo-card {
    position: absolute;
    left: 0;
    top: 28px;
    width: min(230px, 74%);
    aspect-ratio: 736 / 1042;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    transform: rotate(-4deg);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
}

.info-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.info-character {
    grid-area: character;
    position: relative;
    right: auto;
    bottom: auto;
    width: min(190px, 100%);
    opacity: 0.92;
    filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.5));
}

@media (max-width: 920px) {
    .hero-layout,
    .install-layout,
    .info-layout {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 440px;
    }

    .hero-shot {
        top: 34px;
        width: clamp(150px, 28vw, 208px);
    }

    .download-shell {
        grid-template-columns: 1fr;
    }

    .download-media {
        justify-self: end;
        grid-template-columns: minmax(170px, 1fr) minmax(100px, 130px);
        width: min(380px, 100%);
        min-height: 0;
    }

    .download-figure {
        width: 130px;
        opacity: 0.2;
    }

    .install-shot {
        justify-self: end;
    }

    .download-shot {
        justify-self: start;
    }

    .decor-shot-square {
        width: min(130px, 28vw);
    }

    .decor-shot-landscape {
        width: min(210px, 44vw);
    }

    .decor-shot-portrait {
        width: min(130px, 30vw);
    }

    .decor-shot-poster {
        width: min(190px, 42vw);
    }

    .decor-shot-tall {
        width: min(200px, 42vw);
    }

    .decor-shot-slim {
        width: min(140px, 30vw);
    }

    .info-shot-primary {
        margin-top: 0;
    }

    .info-side-media {
        grid-template-columns: max-content max-content;
        justify-self: start;
        align-items: end;
    }

    .info-figure {
        justify-self: end;
        width: min(320px, 70vw);
        min-height: 0;
    }

    .info-photo-card {
        top: 14px;
        width: min(210px, 72%);
    }

    h1 {
        max-width: none;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(1040px, calc(100% - 28px));
    }

    .brand {
        max-width: 44vw;
        font-size: 0.8rem;
        letter-spacing: 0.03em;
    }

    .header-row {
        min-height: 64px;
        gap: 8px;
    }

    .header-actions {
        gap: 6px;
    }

    .header-pill {
        min-width: 48px;
        padding: 0 10px;
    }

    .view-pill {
        min-width: auto;
        padding: 0 8px;
        gap: 5px;
        font-size: 0.82rem;
    }

    .view-pill svg {
        width: 14px;
        height: 14px;
    }

    .icon-button {
        width: 34px;
        min-height: 34px;
    }

    .hero,
    .download-section,
    .info-section {
        padding-top: 40px;
    }

    h1 {
        font-size: clamp(2.7rem, 13vw, 3.8rem);
        line-height: 0.96;
    }

    .hero-visual {
        min-height: 360px;
    }

    .hero-shot {
        left: 0;
        top: 18px;
        width: min(160px, 40vw);
    }

    .character {
        right: 4%;
        width: min(220px, 58vw);
    }

    .tabs,
    .download-links {
        width: 100%;
    }

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

    .download-card,
    .install-card,
    .info-card {
        padding: 22px;
    }

    .download-links {
        flex-direction: column;
    }

    .download-links .button,
    .info-link {
        width: 100%;
    }

    .download-figure {
        width: 126px;
    }

    .download-media {
        grid-template-columns: minmax(0, 1fr) minmax(88px, 112px);
        gap: 12px;
        min-height: 0;
    }

    .decor-shot-wide {
        width: min(240px, 72vw);
    }

    .decor-shot-poster {
        width: min(150px, 46vw);
    }

    .decor-shot-tall {
        width: min(158px, 46vw);
    }

    .decor-shot-slim {
        width: min(110px, 34vw);
    }

    .decor-shot-square {
        width: min(112px, 32vw);
    }

    .decor-shot-landscape {
        width: min(190px, 58vw);
    }

    .decor-shot-portrait {
        width: min(116px, 34vw);
    }

    .install-shot,
    .info-shot-primary {
        justify-self: center;
    }

    .download-shot {
        justify-self: start;
    }

    .install-layout,
    .info-layout {
        gap: 20px;
    }

    .info-figure {
        width: min(250px, 78vw);
    }

    .info-photo-card {
        top: 18px;
        width: min(170px, 66%);
    }

    .install-section {
        margin-top: 46px;
        padding: 46px 0;
    }
}
