@font-face {

    font-family: "Source Han Sans";

    src:
        local("Source Han Sans SC"),
        local("思源黑体"),
        local("Noto Sans CJK SC");

    font-weight: 100 900;

}


/* =========================================================
   Variables
========================================================= */

:root {

    --blue: #174fbf;
    --blue-light: #8ed8bf;

    --text: #19345f;
    --subtext: #86a8d8;

    --background: #f8edc8;
    --card: #ffffff;

    --live2d-background: #edf5ff;

    --border: #e4edf8;

    --camera: #f8d0d0;
    --correction: #fffbd4;
    --star-eyes: #e4e0ff;

    --radius: 28px;

}


/* =========================================================
   Reset
========================================================= */

* {

    box-sizing: border-box;

}


html {

    margin: 0;
    padding: 0;

    scroll-behavior: smooth;

}


body {

    margin: 0;
    padding: 0;

    min-height: 100vh;

    background: var(--background);

    color: var(--text);

    font-family:
        "Source Han Sans",
        "Noto Sans SC",
        "Microsoft YaHei",
        sans-serif;

    font-weight: 500;

    line-height: 1.7;

}


img {

    max-width: 100%;

    display: block;

}


/* =========================================================
   Header / Banner
========================================================= */

.banner {

    width: 100%;

    height: 320px;

    overflow: hidden;

    background: #dfeeff;

}


.banner img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;

}


/* =========================================================
   Main
========================================================= */

main {

    width: min(92%, 900px);

    margin: 0 auto;

}


/* =========================================================
   Main Card
========================================================= */

.profile-card {

    position: relative;

    margin-top: -55px;
    margin-bottom: 40px;

    padding: 36px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 249, 0.76),
            rgba(255, 250, 235, 0.64)
        );

    border:
        1px solid rgba(255, 255, 255, 0.72);

    border-radius: var(--radius);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28),
        0 16px 45px rgba(74, 119, 174, 0.10),
        0 0 0 1px rgba(205, 222, 242, 0.38);

    backdrop-filter:
        blur(30px) saturate(1.12);

    -webkit-backdrop-filter:
        blur(30px) saturate(1.12);

}


/* =========================================================
   Profile
========================================================= */

.profile {

    display: flex;

    align-items: center;

    gap: 24px;

    margin-bottom: 38px;

}


.avatar {

    width: 120px;
    height: 120px;

    flex: 0 0 120px;

    object-fit: cover;

    border-radius: 32px;

    border: 4px solid #ffffff;

    box-shadow:
        0 10px 28px rgba(23,
            79,
            191,
            0.12);

}


.profile-text {

    min-width: 0;

}


.profile-text h1 {

    margin: 0;

    color: var(--blue);

    font-size: 42px;

    font-weight: 900;

    line-height: 1.25;

    letter-spacing: 0.02em;

}


.subtitle {

    margin: 8px 0 0;

    color: var(--subtext);

    font-size: 20px;

    line-height: 1.5;

}


.update {

    margin: 8px 0 0;

    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    color: #a6b8d3;

    font-size: 14px;

}

.expand-contact-button {

    margin: 0 0 0 auto;

    padding: 8px 18px;

    border: 0;

    border-radius: 16px;

    background: #ffd14e;

    color: #19345f;

    font-family: inherit;

    font-size: 14px;

    font-weight: 800;

    line-height: 1.3;

    cursor: pointer;

    box-shadow:
        0 6px 16px rgba(220, 174, 38, 0.18);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;

}

.expand-contact-button:hover {

    transform: translateY(-1px);

    box-shadow:
        0 8px 20px rgba(220, 174, 38, 0.24);

    filter: brightness(1.02);

}

.expand-contact-button:active {

    transform: translateY(0);

}


/* =========================================================
   Sections
========================================================= */

section {

    margin-top: 42px;

}


section:first-child {

    margin-top: 0;

}


section h2 {

    margin: 0 0 18px;

    color: var(--blue);

    font-size: 28px;

    font-weight: 800;

    line-height: 1.35;

}


.site-section {

    margin-top: 42px;

}


.site-section-title {

    margin: 0 0 24px;

    color: var(--blue);

    font-size: 32px;

    font-weight: 900;

    line-height: 1.3;

    letter-spacing: 0.01em;

}


.site-section > section {

    margin-top: 0;

}


.site-section > .gallery-pair {

    margin-top: 0;

}


.site-section h3 {

    margin: 0 0 18px;

    color: #6f8fbd;

    font-size: 23px;

    font-weight: 800;

    line-height: 1.4;

}


.subsection-title {

    margin-top: 28px !important;

}


section p {

    margin: 0;

}


/* =========================================================
   OC Intro
========================================================= */

.intro {

    padding: 26px;

    border-radius: 22px;

    background: #f8fbff;

    border:
        1px solid var(--border);

}


.intro p {

    color: #526f99;

    font-size: 16px;

}


/* =========================================================
   OC Info Section
========================================================= */

.oc-info-section {
    margin-top: 22px;
}

.oc-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.oc-info-item {
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8fbff;
    box-shadow: 0 6px 18px rgba(74, 119, 174, 0.04);
}

.oc-info-label {
    color: #86a8d8;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.oc-info-value {
    margin-top: 4px;
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.oc-info-item:first-child {
    grid-column: 1 / -1;
}

.oc-info-loading,
.oc-info-error {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8fbff;
    color: #7894bb;
    font-size: 14px;
    text-align: center;
}


/* =========================================================
   Live2D Section
========================================================= */

.live2d-section {

    margin-top: 42px;

}


.live2d-description {

    margin: 0;

    color: #6f86a8;

    font-size: 14px;

    font-weight: 500;

    line-height: 1.6;

}


.live2d-description p {

    margin: 0;

}


/* =========================================================
   Live2D Controls
========================================================= */

.live2d-controls {

    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3,
            minmax(0,
                1fr));

    gap:
        clamp(8px,
            1.5vw,
            14px);

    margin-top: 18px;

    margin-bottom: 16px;

}


/* =========================================================
   Live2D Control Button
========================================================= */

.live2d-control {

    width: 100%;

    min-width: 0;

    min-height:
        clamp(68px,
            9vw,
            88px);

    padding:
        clamp(10px,
            1.8vw,
            17px) clamp(8px,
            2vw,
            20px);

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    gap:
        clamp(3px,
            0.6vw,
            5px);

    border:
        1px solid rgba(220,
            230,
            242,
            0.9);

    border-radius:
        clamp(15px,
            2.2vw,
            20px);

    color: var(--text);

    font-family: inherit;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        filter 0.18s ease;

}


.live2d-control:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 22px rgba(59,
            91,
            133,
            0.10);

    filter:
        brightness(1.015);

}


.live2d-control:active {

    transform:
        translateY(0);

}


.live2d-control.camera {

    background:
        var(--camera);

}


.live2d-control.correction {

    background:
        var(--correction);

}


.live2d-control.star-eyes {

    background:
        var(--star-eyes);

}


/* =========================================================
   Control Text
========================================================= */

.control-title {

    max-width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size:
        clamp(15px,
            2vw,
            18px);

    font-weight: 750;

    line-height: 1.3;

}


.control-status {

    max-width: 100%;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    color: #7288a9;

    font-size:
        clamp(11px,
            1.6vw,
            14px);

    line-height: 1.3;

}


/* =========================================================
   Live2D Canvas
========================================================= */

#live2d {

    width: 100%;

    height: 420px;

    display: flex;

    justify-content: center;

    align-items: flex-end;

    overflow: hidden;

    border-radius: 24px;

    background:
        var(--live2d-background);

    border:
        1px solid var(--border);

}


#live2d-canvas {

    display: block;

    width: 100%;
    height: 100%;

}


/* =========================================================
   Face Camera
========================================================= */

#face-camera {

    display: none;

    width: 100%;

    max-width: 360px;

    margin: 16px auto 0;

    border-radius: 20px;

    background: #dfe8f5;

    object-fit: cover;

}


/* =========================================================
   Gallery Section
========================================================= */

.gallery-section {

    margin-top: 42px;

}


/* =========================================================
   Gallery
========================================================= */

.gallery {

    --gallery-height: 480px;

    position: relative;

    width: 100%;

    margin: 0;

    padding: 0;

}


/* =========================================================
   Gallery Content
========================================================= */

.gallery-content {

    position: relative;

    width: 100%;

    min-width: 0;

}


/* =========================================================
   Gallery Image
========================================================= */

.gallery-image {

    position: relative;

    width: 100%;

    height: var(--gallery-height);

    overflow: hidden;

    border-radius: 24px;

    background: #edf3fb;

    border:
        1px solid var(--border);

    isolation: isolate;

}


/* =========================================================
   Gaussian Blur Background
========================================================= */

.gallery-image::before {

    content: "";

    position: absolute;

    inset: -30px;

    z-index: 0;

    background-image:
        var(--gallery-background);

    background-position: center;

    background-size: cover;

    background-repeat: no-repeat;

    filter:
        blur(24px);

    transform:
        scale(1.08);

    opacity: 0.9;

}


/* =========================================================
   Main Image
========================================================= */

.gallery-image img {

    position: relative;

    z-index: 1;

    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;

    background: transparent;

}


/* =========================================================
   Gallery Description
========================================================= */

.gallery-description {

    position: relative;

    z-index: 2;

    width: 100%;

    margin: 10px 0 0;

    padding: 0 6px;

    color: #6f86a8;

    font-size: 14px;

    line-height: 1.6;

    text-align: center;

}


/* =========================================================
   Gallery Buttons
========================================================= */

.gallery-button {

    position: absolute;

    top: auto;

    bottom: 14px;

    z-index: 20;

    width: 62px;

    height: 62px;

    margin: 0;

    padding: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    border:
        1px solid var(--border);

    border-radius: 20px;

    background:
        rgba(255,
            255,
            255,
            0.60);

    color: var(--blue);

    font-family: inherit;

    font-size: 24px;

    font-weight: 700;

    line-height: 1;

    cursor: pointer;

    /* Inline SVG icon keeps the control independent of platform fonts. */
    --back-to-top-icon-size: 24px;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    box-shadow:
        0 7px 18px rgba(59,
            91,
            133,
            0.10);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;

}


/* =========================================================
   Left Button
========================================================= */

.gallery-prev {

    left: 14px;

}


/* =========================================================
   Right Button
========================================================= */

.gallery-next {

    right: 14px;

}


/* =========================================================
   Gallery Button Hover
========================================================= */

.gallery-prev:hover,
.gallery-next:hover {

    background:
        rgba(255,
            255,
            255,
            0.72);

    box-shadow:
        0 9px 22px rgba(59,
            91,
            133,
            0.14);

    transform:
        translateY(-2px);

}


/* =========================================================
   Gallery Button Active
========================================================= */

.gallery-prev:active,
.gallery-next:active {

    transform:
        translateY(0);

}


/* =========================================================
   Contact Modal
========================================================= */

.contact-modal {

    position: fixed;

    inset: 0;

    z-index: 1000;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 24px;

}

.contact-modal[hidden] {

    display: none;

}

.contact-modal-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(32, 55, 92, 0.18);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    animation:
        contact-backdrop-in 0.36s ease both;

}

.contact-dialog {

    position: relative;

    z-index: 1;

    width: min(760px, 100%);

    max-height: min(720px, calc(100vh - 48px));

    overflow: auto;

    padding: 34px;

    border:
        1px solid rgba(255, 255, 255, 0.72);

    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.82),
            rgba(248, 252, 255, 0.72)
        );

    box-shadow:
        0 24px 70px rgba(38, 72, 120, 0.20);

    backdrop-filter:
        blur(26px) saturate(1.08);

    -webkit-backdrop-filter:
        blur(26px) saturate(1.08);

    animation:
        contact-dialog-in 0.36s ease both;

}

.contact-modal.is-closing .contact-dialog {

    animation:
        contact-dialog-out 0.36s ease both;

}

.contact-modal.is-closing .contact-modal-backdrop {

    animation:
        contact-backdrop-out 0.36s ease both;

}

.contact-dialog-grid {

    display: grid;

    grid-template-columns:
        minmax(220px, 0.86fr)
        minmax(0, 1.14fr);

    gap: 36px;

    align-items: center;

    padding-top: 8px;

}

.contact-dialog h2 {

    margin: 0 0 16px;

    color: var(--blue);

    font-size: 23px;

    font-weight: 800;

    line-height: 1.35;

}

.contact-qr-panel {

    min-width: 0;

    padding-right: 6px;

}

.contact-qr {

    width: min(100%, 280px);

    margin: 0 auto;

    padding: 14px;

    border:
        1px solid rgba(228, 237, 248, 0.95);

    border-radius: 22px;

    background:
        rgba(255, 255, 255, 0.66);

    box-shadow:
        0 10px 28px rgba(74, 119, 174, 0.08);

}

.contact-qr img {

    width: 100%;

    height: auto;

    aspect-ratio: 1;

    object-fit: contain;

    border-radius: 12px;

}

.contact-links-panel {

    min-width: 0;

}

.contact-link-list {

    border-top:
        1px solid rgba(182, 203, 230, 0.66);

}

.contact-link {

    min-width: 0;

    min-height: 72px;

    padding: 14px 4px;

    display: flex;

    align-items: center;

    gap: 14px;

    border-bottom:
        1px solid rgba(182, 203, 230, 0.66);

    color: var(--text);

    text-decoration: none;

    transition:
        background 0.18s ease,
        transform 0.18s ease;

}

.contact-link:hover {

    background: rgba(255, 255, 255, 0.26);

}

.contact-link:active {

    transform: translateY(1px);

}

.contact-link-icon {

    width: 32px;

    height: 32px;

    flex: 0 0 32px;

    display: block;

    fill: currentColor;

    color: var(--blue);

}

.contact-link-copy {

    min-width: 0;

    flex: 1;

    display: flex;

    flex-direction: column;

    gap: 2px;

}

.contact-link-copy strong {

    color: var(--text);

    font-size: 16px;

    font-weight: 800;

    line-height: 1.3;

}

.contact-link-copy span {

    color: #7188aa;

    font-size: 13px;

    line-height: 1.45;

    overflow-wrap: anywhere;

}

.contact-link-arrow {

    flex: 0 0 auto;

    color: #7e9bc3;

    font-size: 22px;

    font-weight: 700;

    line-height: 1;

}

.contact-welcome {

    padding: 22px 10px 6px;

    color: #6982a5;

    font-size: 15px;

    font-weight: 650;

    text-align: center;

}

.contact-modal-close {

    position: absolute;

    top: 14px;

    right: 14px;

    width: 42px;

    height: 42px;

    z-index: 2;

    padding: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    border:
        1px solid rgba(218, 230, 243, 0.86);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, 0.52);

    color: #6f86a8;

    font-family: inherit;

    font-size: 26px;

    font-weight: 500;

    line-height: 1;

    cursor: pointer;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    transition:
        background 0.18s ease,
        transform 0.18s ease;

}

.contact-modal-close:hover {

    background:
        rgba(255, 255, 255, 0.78);

    transform:
        translateY(-1px);

}

.contact-modal-close:active {

    transform:
        translateY(0);

}

@keyframes contact-dialog-in {

    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }

}

@keyframes contact-backdrop-in {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes contact-backdrop-out {

    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }

}

@keyframes contact-dialog-out {

    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.985);
    }

}

@media (max-width: 768px) {

    .contact-dialog {

        padding: 28px 22px 22px;

        border-radius: 24px;

    }

    .contact-dialog-grid {

        grid-template-columns: 1fr;

        gap: 26px;

        padding-top: 6px;

    }

    .contact-qr-panel {

        padding-right: 0;

    }

    .contact-qr {

        width: min(100%, 300px);

    }

    .contact-dialog h2 {

        font-size: 19px;

    }

    .contact-modal-close {

        top: 10px;

        right: 10px;

    }

}

@media (max-width: 430px) {

    .contact-modal {

        padding: 14px;

    }

    .contact-dialog {

        max-height: calc(100vh - 28px);

        padding: 26px 16px 18px;

        border-radius: 24px;

    }

    .contact-dialog-grid {

        gap: 22px;

    }

    .contact-link {

        min-height: 66px;

        gap: 11px;

    }

    .contact-link-icon {

        width: 28px;

        height: 28px;

        flex-basis: 28px;

    }

    .contact-link-copy strong {

        font-size: 15px;

    }

    .contact-link-copy span {

        font-size: 12px;

    }

}

/* =========================================================
   Footer
========================================================= */

footer {

    width: min(92%, 900px);

    margin:
        45px auto 35px;

    text-align: center;

    color: #7894bb;

    font-size: 15px;

}


footer p {

    margin: 0;

}


/* =========================================================
   Focus
========================================================= */

button:focus-visible {

    outline:
        3px solid rgba(23,
            79,
            191,
            0.24);

    outline-offset: 3px;

}


/* =========================================================
   Tablet / Mobile
========================================================= */

@media (max-width: 768px) {

    .banner {

        height: 230px;

    }


    main {

        width: 92%;

    }


    .profile-card {

        margin-top: -38px;

        padding:
            24px 20px;

        border-radius: 24px;

    }


    .profile {

        gap: 16px;

        margin-bottom: 30px;

    }


    .avatar {

        width: 88px;
        height: 88px;

        flex-basis: 88px;

        border-radius: 24px;

    }


    .profile-text h1 {

        font-size: 30px;

    }


    .subtitle {

        margin-top: 5px;

        font-size: 16px;

    }


    .update {

        margin-top: 5px;

        font-size: 12px;

    }


    section {

        margin-top: 34px;

    }


    section h2 {

        margin-bottom: 14px;

        font-size: 21px;

    }


    .intro {

        padding: 20px;

        border-radius: 20px;

    }


    .intro p {

        font-size: 15px;

    }


    .oc-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .oc-info-item:first-child {
        grid-column: auto;
    }

    .oc-info-item {
        padding: 14px 16px;
        border-radius: 16px;
    }

    .oc-info-value {
        font-size: 14px;
    }


    /* =====================================================
       Live2D Controls
    ===================================================== */

    .live2d-controls {

        grid-template-columns:
            repeat(3,
                minmax(0,
                    1fr));

        gap: 8px;

        margin-bottom: 12px;

    }


    .live2d-control {

        min-height: 72px;

        padding:
            10px 6px;

        border-radius: 16px;

    }


    .control-title {

        font-size:
            clamp(13px,
                4vw,
                16px);

    }


    .control-status {

        font-size:
            clamp(10px,
                3vw,
                13px);

    }


    /* =====================================================
       Live2D
    ===================================================== */

    #live2d {

        height:
            clamp(320px,
                82vw,
                380px);

        border-radius: 22px;

        align-items: flex-end;

    }


    #live2d-canvas {

        width: 100%;
        height: 100%;

    }


    /* =====================================================
       Gallery
    ===================================================== */

    .gallery {

        --gallery-height: 320px;

    }


    .gallery-image {

        height:
            var(--gallery-height);

        border-radius: 19px;

    }


    .gallery-image::before {

        inset: -24px;

        filter:
            blur(20px);

        transform:
            scale(1.08);

    }


    .gallery-button {

        width: 50px;
        height: 50px;

        border-radius: 17px;

        font-size: 19px;

    }


    .gallery-prev {

        left: 10px;

    }


    .gallery-next {

        right: 10px;

    }


    .gallery-description {

        margin-top: 8px;

        padding: 0 4px;

        font-size: 13px;

        line-height: 1.55;

    }


    /* =====================================================
       Footer
    ===================================================== */

    footer {

        width: 92%;

        margin-top: 35px;

    }

}


/* =========================================================
   Small Mobile
========================================================= */

@media (max-width: 430px) {

    .banner {

        height: 190px;

    }


    .profile-card {

        padding:
            20px 16px;

    }


    .profile {

        align-items: flex-start;

    }


    .avatar {

        width: 76px;
        height: 76px;

        flex-basis: 76px;

    }


    .profile-text h1 {

        font-size: 26px;

    }


    .subtitle {

        font-size: 15px;

    }


    /* =====================================================
       Live2D Controls
    ===================================================== */

    .live2d-controls {

        gap: 6px;

    }


    .live2d-control {

        min-height: 66px;

        padding:
            8px 4px;

        border-radius: 14px;

    }


    .control-title {

        font-size: 13px;

    }


    .control-status {

        font-size: 10px;

    }


    /* =====================================================
       Live2D
    ===================================================== */

    #live2d {

        height: 320px;

        min-height: 0;

        border-radius: 20px;

        align-items: flex-end;

    }


    #live2d-canvas {

        width: 100%;
        height: 100%;

    }


    /* =====================================================
       Gallery
    ===================================================== */

    .gallery {

        --gallery-height: 260px;

    }


    .gallery-image {

        height:
            var(--gallery-height);

        border-radius: 17px;

    }


    .gallery-image::before {

        inset: -22px;

        filter:
            blur(18px);

    }


    .gallery-button {

        width: 44px;
        height: 44px;

        border-radius: 15px;

        font-size: 21px;

    }


    .gallery-prev {

        left: 8px;

    }


    .gallery-next {

        right: 8px;

    }


    .gallery-description {

        margin-top: 7px;

        font-size: 12px;

    }

}

/* =========================================================
   Itinerary Section
========================================================= */

.itinerary-section {
    margin-top: 42px;
}

.itinerary {
    position: relative;
    width: 100%;
    padding: 8px 0 8px 34px;
}

.itinerary::before {
    content: "";
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 11px;
    width: 2px;
    background: linear-gradient(
        to bottom,
        rgba(23, 79, 191, 0.16),
        rgba(142, 216, 191, 0.65),
        rgba(23, 79, 191, 0.16)
    );
    border-radius: 999px;
}

.itinerary-event {
    position: relative;
    padding: 0 0 24px;
}

.itinerary-event:last-child {
    padding-bottom: 0;
}

.itinerary-dot {
    position: absolute;
    left: -29px;
    top: 7px;
    width: 12px;
    height: 12px;
    border: 3px solid #ffffff;
    border-radius: 50%;
    background: var(--blue-light);
    box-shadow: 0 0 0 3px rgba(142, 216, 191, 0.22);
}

.itinerary-card {
    padding: 18px 20px;
    background: #f8fbff;
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(74, 119, 174, 0.05);
}

.itinerary-date {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.itinerary-title {
    margin-top: 2px;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
}

.itinerary-location {
    margin-top: 4px;
    color: var(--subtext);
    font-size: 13px;
    line-height: 1.5;
}

.itinerary-description {
    margin-top: 8px;
    color: #6f86a8;
    font-size: 14px;
    line-height: 1.65;
    white-space: pre-line;
}

.itinerary-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.itinerary-link:hover {
    text-decoration: underline;
}

.itinerary-loading,
.itinerary-empty,
.itinerary-error {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: #f8fbff;
    color: #7894bb;
    font-size: 14px;
    text-align: center;
}

@media (max-width: 768px) {
    .itinerary {
        padding-left: 28px;
    }

    .itinerary::before {
        left: 8px;
    }

    .itinerary-dot {
        left: -25px;
    }

    .itinerary-card {
        padding: 16px;
        border-radius: 18px;
    }

    .itinerary-title {
        font-size: 16px;
    }

    .itinerary-description {
        font-size: 13px;
    }
}


/* =========================================================
   OC Detail Toggle
========================================================= */

.oc-info-toggle-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.oc-info-toggle {
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    padding: 10px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #f8fbff;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(74, 119, 174, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.oc-info-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(74, 119, 174, 0.08);
    background: #ffffff;
}

.oc-info-toggle:active {
    transform: translateY(0);
}

.oc-info-details {
    margin-top: 14px;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    overflow: hidden;
    transition: grid-template-rows 0.32s ease, opacity 0.22s ease;
}

.oc-info-details.is-open {
    grid-template-rows: 1fr;
    opacity: 1;
}

.oc-info-details > .oc-info-grid {
    min-height: 0;
    overflow: hidden;
}

.oc-info-collapse {
    margin-top: 12px;
}

@media (max-width: 768px) {
    .oc-info-toggle {
        min-height: 46px;
        border-radius: 16px;
        font-size: 13px;
    }
}


/* =========================================================
   Wide Gallery Layout
========================================================= */

@media (min-width: 1000px) {

    .gallery-pair {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
        align-items: start;
    }

    .gallery-pair .gallery-section,
    .gallery-pair .gallery-section:first-child {
        min-width: 0;
        margin-top: 42px;
    }

}



/* =========================================================
   Mica Card Surfaces
========================================================= */

.profile-card,
.intro,
.oc-info-item,
.oc-info-loading,
.oc-info-error,
#live2d,
.gallery-image,
.itinerary-card,
.itinerary-loading,
.itinerary-empty,
.itinerary-error,
.contact-dialog,
.contact-qr {

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 249, 0.70),
            rgba(255, 250, 235, 0.56)
        );

    border-color:
        rgba(255, 255, 255, 0.74);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        0 10px 28px rgba(74, 119, 174, 0.07),
        0 0 0 1px rgba(205, 222, 242, 0.26);

    backdrop-filter:
        blur(22px) saturate(1.10);

    -webkit-backdrop-filter:
        blur(22px) saturate(1.10);

}

.itinerary-card.is-nearest {

    background:
        linear-gradient(
            135deg,
            rgba(255, 248, 207, 0.94),
            rgba(255, 253, 237, 0.72)
        );

    border-color:
        rgba(255, 209, 78, 0.62);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.96),
        inset 0 0 0 1px rgba(255, 255, 255, 0.28),
        0 10px 28px rgba(220, 174, 38, 0.14),
        0 0 0 1px rgba(255, 209, 78, 0.16);

}

.itinerary-event.is-nearest .itinerary-dot {

    background: #ffd14e;

    box-shadow:
        0 0 0 3px rgba(255, 209, 78, 0.24);

}



/* Keep card-like controls in the same Mica material family. */

.live2d-control,
.oc-info-toggle {

    border-color:
        rgba(255, 255, 255, 0.74);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        inset 0 0 0 1px rgba(255, 255, 255, 0.20),
        0 8px 22px rgba(74, 119, 174, 0.07),
        0 0 0 1px rgba(205, 222, 242, 0.24);

    backdrop-filter:
        blur(20px) saturate(1.10);

    -webkit-backdrop-filter:
        blur(20px) saturate(1.10);

}

.live2d-control.camera {
    background: rgba(248, 208, 208, 0.66);
}

.live2d-control.correction {
    background: rgba(255, 251, 212, 0.70);
}

.live2d-control.star-eyes {
    background: rgba(228, 224, 255, 0.66);
}

.oc-info-toggle {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 249, 0.70),
            rgba(255, 250, 235, 0.56)
        );
}

/* =========================================================
   Profile actions / Star
========================================================= */

.profile-actions {
    margin-left: auto;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 12px;
}

.expand-contact-button {
    margin: 0;
    min-width: 104px;
    min-height: 42px;
    padding: 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f0c75c;
    border-radius: 14px;
    background: #ffd14e;
    color: #111111;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(220, 174, 38, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.expand-contact-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(220, 174, 38, 0.22);
    filter: brightness(1.02);
}

.expand-contact-button:active {
    transform: translateY(0);
}

.site-star-button {
    min-width: 132px;
    min-height: 42px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(74, 119, 174, 0.10);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.site-star-button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: #fffdf2;
    box-shadow: 0 8px 18px rgba(74, 119, 174, 0.16);
}

.site-star-button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.site-star-button.is-starred {
    border-color: #f0c75c;
    background: #fff8d9;
    color: #8a6700;
}

.site-star-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: block;
    fill: #e6ad18;
}

.site-star-count {
    min-width: 1.25em;
    color: #6f86a8;
    font-variant-numeric: tabular-nums;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 620px) {
    .profile {
        flex-wrap: wrap;
    }

    .profile-actions {
        width: 100%;
        margin-left: 0;
        flex-direction: row;
        justify-content: flex-start;
    }

    .expand-contact-button {
        min-width: 104px;
        min-height: 42px;
        padding: 8px 18px;
        border-radius: 14px;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.2;
    }
}



/* =========================================================
   Ambient Background Motion
========================================================= */

body {
    position: relative;
    isolation: isolate;
}

body::before {
    content: "";
    position: fixed;
    inset: -40%;
    z-index: -1;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(
            135deg,
            rgba(178, 146, 54, 0.14) 0,
            rgba(178, 146, 54, 0.14) 3px,
            transparent 3px,
            transparent 18px
        );
    background-size: 36px 36px;
    animation: ambient-diagonal-drift 18s linear infinite;
}

@keyframes ambient-diagonal-drift {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-104px, 104px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before {
        animation: none;
    }
}

/* =========================================================
   Wide Layout / Overview
========================================================= */

.overview-card {
    display: none;
}

#story,
#visual,
#events,
#oc-profile,
#artwork,
#fursuit,
#live2d-section-title,
#itinerary-section-title {
    scroll-margin-top: 24px;
}

@media (min-width: 835px) and (orientation: landscape) {

    main {
        width: min(94%, 1240px);
    }

    .content-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 290px;
        align-items: start;
        gap: 24px;
        margin-top: -55px;
    }

    .profile-card {
        margin-top: 0;
        margin-bottom: 40px;
    }

    .overview-card {
        position: sticky;
        top: 24px;
        display: block;
        min-width: 0;
        padding: 26px 22px;
        border: 1px solid rgba(255, 255, 255, 0.74);
        border-radius: var(--radius);
        background:
            linear-gradient(
                135deg,
                rgba(255, 255, 249, 0.70),
                rgba(255, 250, 235, 0.56)
            );
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.94),
            inset 0 0 0 1px rgba(255, 255, 255, 0.22),
            0 10px 28px rgba(74, 119, 174, 0.07),
            0 0 0 1px rgba(205, 222, 242, 0.26);
        backdrop-filter: blur(22px) saturate(1.10);
        -webkit-backdrop-filter: blur(22px) saturate(1.10);
    }

    .overview-header {
        padding: 2px 2px 14px;
        border-bottom: 1px solid rgba(205, 222, 242, 0.30);
    }

    .overview-kicker {
        display: block;
        color: var(--subtext);
        font-size: 11px;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: 0.12em;
    }

    .overview-header h2 {
        margin: 4px 0 0;
        color: var(--blue);
        font-size: 26px;
        font-weight: 800;
        line-height: 1.3;
    }

    .overview-nav {
        display: flex;
        flex-direction: column;
        margin-top: 10px;
    }

    .overview-link {
        color: var(--text);
        text-decoration: none;
        transition:
            color 0.18s ease,
            background 0.18s ease,
            transform 0.18s ease;
    }

    .overview-link-primary {
        min-height: 42px;
        margin-top: 4px;
        padding: 8px 10px;
        display: flex;
        align-items: center;
        gap: 10px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 800;
    }

    .overview-link-primary:hover {
        background: rgba(255, 255, 255, 0.40);
        color: var(--blue);
        transform: translateX(2px);
    }

    .overview-link-primary:active {
        transform: translateX(1px);
    }

    .overview-index {
        min-width: 1.8em;
        color: var(--subtext);
        font-size: 11px;
        font-weight: 800;
        font-variant-numeric: tabular-nums;
        letter-spacing: 0.04em;
    }

    .overview-link-secondary {
        margin-left: 32px;
        padding: 5px 10px;
        border-left: 1px solid rgba(142, 216, 191, 0.54);
        color: #7188aa;
        font-size: 13px;
        font-weight: 600;
        line-height: 1.45;
    }

    .overview-link-secondary:hover {
        color: var(--blue);
        background: rgba(255, 255, 255, 0.28);
    }

}

@media (min-width: 835px) and (max-width: 1100px) and (orientation: landscape) {

    main {
        width: min(96%, 1100px);
    }

    .content-layout {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 18px;
    }

    .overview-card {
        padding: 22px 18px;
    }

    .overview-header h2 {
        font-size: 23px;
    }

    .overview-link-primary {
        font-size: 14px;
    }

    .overview-link-secondary {
        font-size: 12px;
    }

}



/* =========================================================
   Floating Back To Top
========================================================= */

.back-to-top {
    --back-to-top-icon-size: 24px;

    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;

    width: 56px;
    height: 56px;

    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: var(--radius);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 249, 0.70),
            rgba(255, 250, 235, 0.56)
        );

    color: var(--blue);
    font-family: inherit;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        0 10px 28px rgba(74, 119, 174, 0.12),
        0 0 0 1px rgba(205, 222, 242, 0.26);

    backdrop-filter: blur(22px) saturate(1.10);
    -webkit-backdrop-filter: blur(22px) saturate(1.10);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);
    transition:
        opacity 0.22s ease,
        visibility 0.22s ease,
        transform 0.22s ease,
        box-shadow 0.18s ease;
}

.back-to-top-icon {
    width: var(--back-to-top-icon-size);
    height: var(--back-to-top-icon-size);
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.94),
        inset 0 0 0 1px rgba(255, 255, 255, 0.22),
        0 13px 32px rgba(74, 119, 174, 0.16),
        0 0 0 1px rgba(205, 222, 242, 0.30);
}

.back-to-top:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 48px;
        height: 48px;
        border-radius: 24px;
        font-size: 22px;
        --back-to-top-icon-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-to-top {
        transition: opacity 0.15s ease, visibility 0.15s ease;
    }
}
