:root {
    --year13-primary: #0a005a;
    --year13-blue: #006bff;
    --year13-purple: #694bd5;
    --year13-surface: #edf5fd;
    --year13-line: rgba(255, 255, 255, 0.9);
    --year13-muted: #66749a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #d1e6fa url("../images/bg.png") center top / cover fixed no-repeat;
    color: var(--year13-primary);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang HK", "Microsoft JhengHei", sans-serif;
}

a {
    color: inherit;
}

.year13-subpage {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 64px;
}

.year13-subpage__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0 24px;
}

.year13-subpage__brand {
    display: block;
    width: min(360px, 58vw);
}

.year13-subpage__brand img {
    display: block;
    width: 100%;
    height: auto;
}

.year13-subpage__nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.year13-subpage__nav-link,
.year13-subpage__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 18px;
    border: 1px solid var(--year13-blue);
    border-radius: 999px;
    color: var(--year13-blue);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.year13-subpage__nav-link:hover,
.year13-subpage__button:hover {
    background: var(--year13-blue);
    color: #ffffff;
    transform: translateY(-1px);
}

.year13-subpage__hero {
    padding: 48px clamp(24px, 5vw, 64px);
    border: 3px solid var(--year13-line);
    border-radius: 8px;
    background: rgba(237, 245, 253, 0.88);
    box-shadow: 0 18px 48px rgba(40, 72, 170, 0.12);
    text-align: center;
}

.year13-subpage__eyebrow {
    margin: 0 0 12px;
    color: var(--year13-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.year13-subpage__title {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.15;
}

.year13-subpage__lead {
    max-width: 760px;
    margin: 18px auto 0;
    color: #42517c;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.8;
}

.year13-subpage__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 26px;
}

.year13-subpage__button--primary {
    border-color: transparent;
    background: linear-gradient(90deg, var(--year13-blue), var(--year13-purple));
    color: #ffffff;
}

.year13-subpage__section {
    margin-top: 28px;
}

.year13-subpage__section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin: 0 0 22px;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    text-align: center;
}

.year13-subpage__section-title::before,
.year13-subpage__section-title::after {
    width: min(90px, 12vw);
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--year13-blue));
    content: "";
}

.year13-subpage__section-title::after {
    background: linear-gradient(90deg, var(--year13-blue), transparent);
}

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

.year13-media-card {
    align-self: start;
    margin: 0;
    overflow: hidden;
    border: 3px solid var(--year13-line);
    border-radius: 8px;
    background: transparent;
    box-shadow: 0 16px 38px rgba(40, 72, 170, 0.1);
    line-height: 0;
}

.year13-media-card--wide {
    grid-column: 1 / -1;
}

.year13-media-card img,
.year13-media-card video {
    display: block;
    width: 100%;
    height: auto;
}

.year13-media-card img {
    object-fit: initial;
    vertical-align: top;
}

.year13-media-card:has(video) {
    background: #000000;
}

.year13-media-card video {
    background: #000000;
    aspect-ratio: 16 / 9;
}

.year13-gift-list {
    overflow: hidden;
    border: 3px solid var(--year13-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 16px 38px rgba(40, 72, 170, 0.1);
}

.year13-gift-item {
    display: grid;
    grid-template-columns: minmax(260px, 35%) minmax(0, 1fr);
    gap: clamp(22px, 4vw, 48px);
    padding: clamp(24px, 4vw, 42px);
}

.year13-gift-item + .year13-gift-item {
    border-top: 1px solid rgba(10, 0, 90, 0.14);
}

.year13-gift-item__media {
    position: relative;
    align-self: start;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    /* overflow: hidden; */
    border: 0;
    border-radius: 8px;
    background: #dceafa;
    box-shadow: 0 10px 24px rgba(40, 72, 170, 0.16);
    color: inherit;
    cursor: pointer;
}

.year13-gift-item__media img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.year13-gift-item__media:hover img {
    transform: scale(1.025);
}

.year13-gift-item__play,
.year13-gift-item__zoom {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    background: rgba(10, 0, 90, 0.82);
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.2);
}

.year13-gift-item__play::before {
    position: absolute;
    top: 50%;
    left: 53%;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid #ffffff;
    content: "";
    transform: translate(-50%, -50%);
}

.year13-gift-item__zoom::before,
.year13-gift-item__zoom::after {
    position: absolute;
    content: "";
}

.year13-gift-item__zoom::before {
    top: 10px;
    left: 10px;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.year13-gift-item__zoom::after {
    top: 27px;
    left: 27px;
    width: 9px;
    height: 2px;
    background: #ffffff;
    transform: rotate(45deg);
    transform-origin: left center;
}

.year13-gift-item__content {
    min-width: 0;
    color: #27365f;
}

.year13-gift-item__content h3,
.year13-gift-item__content h4 {
    margin: 0 0 12px;
    color: var(--year13-primary);
    line-height: 1.5;
}

.year13-gift-item__content h3 {
    font-size: clamp(20px, 2.4vw, 28px);
}

.year13-gift-item__content h4 {
    margin-top: 20px;
    font-size: 18px;
}

.year13-gift-item__content p {
    margin: 0 0 13px;
    font-size: 16px;
    line-height: 1.85;
    overflow-wrap: anywhere;
}

.year13-gift-item__content a {
    color: var(--year13-blue);
}

.year13-gift-item__content hr {
    margin: 22px 0;
    border: 0;
    border-top: 1px dashed rgba(10, 0, 90, 0.25);
}

.year13-video-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.88);
}

.year13-video-modal.is-open {
    display: flex;
}

.year13-video-modal__dialog {
    position: relative;
    width: min(1000px, 94vw);
}

.year13-video-modal video {
    display: block;
    width: 100%;
    max-height: 86vh;
    background: #000000;
}

.year13-video-modal__close {
    position: absolute;
    z-index: 1;
    top: -46px;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

body.year13-modal-open {
    overflow: hidden;
}

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

.year13-punch-card {
    overflow: hidden;
    border: 3px solid var(--year13-line);
    border-radius: 8px;
    background: rgba(237, 245, 253, 0.95);
    box-shadow: 0 16px 38px rgba(40, 72, 170, 0.1);
}

.year13-punch-card__image {
    display: block;
    width: 100%;
    height: auto;
}

.year13-punch-card__caption {
    padding: 20px 22px 22px;
}

.year13-punch-card__caption h2 {
    margin: 0;
    color: var(--year13-primary);
    font-size: 22px;
    line-height: 1.4;
}

.year13-punch-card__caption p {
    margin: 7px 0 0;
    color: var(--year13-muted);
    font-size: 15px;
    line-height: 1.65;
}

.year13-punch-card__copy {
    padding: clamp(24px, 4vw, 46px);
}

.year13-punch-card__copy h2,
.year13-punch-card__copy h3 {
    margin: 0 0 18px;
    color: var(--year13-primary);
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.year13-punch-card__copy h3 {
    margin-top: 28px;
    font-size: clamp(20px, 2.4vw, 28px);
}

.year13-punch-card__copy p {
    margin: 0 0 14px;
    color: #27365f;
    font-size: 16px;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

.year13-event-info {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 28px 0;
}

.year13-event-info__item {
    padding: 18px;
    border: 1px solid rgba(0, 107, 255, 0.18);
    border-radius: 8px;
    background: #ffffff;
}

.year13-event-info__label {
    display: block;
    margin-bottom: 6px;
    color: var(--year13-blue);
    font-size: 13px;
    font-weight: 800;
}

.year13-event-info__value {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.65;
}

.year13-subpage__footer {
    padding-top: 36px;
    color: var(--year13-muted);
    font-size: 13px;
    text-align: center;
}

@media (max-width: 760px) {
    .year13-subpage {
        width: min(100% - 20px, 1120px);
        padding-top: 12px;
    }

    .year13-subpage__nav {
        align-items: flex-start;
        flex-direction: column;
        padding-bottom: 16px;
    }

    .year13-subpage__brand {
        width: min(310px, 82vw);
    }

    .year13-subpage__nav-links {
        justify-content: flex-start;
    }

    .year13-subpage__hero {
        padding: 34px 18px;
    }

    .year13-media-grid,
    .year13-punch-grid,
    .year13-event-info {
        grid-template-columns: 1fr;
    }

    .year13-punch-grid {
        gap: 16px;
    }

    .year13-punch-card__caption {
        padding: 16px 18px 18px;
    }

    .year13-media-card--wide {
        grid-column: auto;
    }

    .year13-gift-item {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 18px;
    }

    .year13-gift-item__content h3 {
        font-size: 21px;
    }
}
