@font-face {
    font-family: "Annabelle";
    src: url("/static/fonts/Annabelle.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Garamond";
    src: url("/static/fonts/Garamond-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Garamond";
    src: url("/static/fonts/Garamond-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Garamond";
    src: url("/static/fonts/Garamond-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Garamond";
    src: url("/static/fonts/Garamond-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --scene-scale-main: 1;
    --scene-scale-modal: 1;
    --bg: #94b0ca;
    --ink: #2d4e7e;
    --annabelle: "Annabelle", "Great Vibes", cursive;
    --garamond: "Garamond", "Cormorant Garamond", "Times New Roman", serif;
    --viaoda: "Viaoda Libre", serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
}

body.modal-open {
    overflow: hidden;
    touch-action: none;
}

.viaoda-libre-regular {
    font-family: "Viaoda Libre", serif;
    font-weight: 400;
    font-style: normal;
  }
  

.render-shell {
    width: 100%;
}

.scene-host {
    position: relative;
    margin: 0 auto;
}

.scene-host-main {
    width: min(100%, 1080px);
    height: calc(12223px * var(--scene-scale-main));
    overflow: hidden;
}

.scene-host-modal {
    z-index: 2;
}

.scene {
    position: relative;
    width: 1080px;
    transform-origin: top left;
}

.scene-main {
    height: 12223px;
    transform: scale(var(--scene-scale-main));
}

.scene-modal {
    height: 2000px;
    transform: scale(var(--scene-scale-modal));
}

.layer {
    position: absolute;
    pointer-events: none;
}

.layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

.table-illustration img {
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
}

.modal-flower {
    overflow: visible;
}

.modal-flower img {
    object-fit: contain;
    object-position: top left;
}

.layer-bg-solid {
    inset: 0;
    background: var(--bg);
}

.layer-modal-bg {
    inset: 0;
    background: #f7f0e8;
}

.layer-mask {
    -webkit-mask-image: var(--mask-url);
    -webkit-mask-size: var(--mask-size, cover);
    -webkit-mask-position: var(--mask-position, 0 0);
    -webkit-mask-repeat: no-repeat;
    mask-image: var(--mask-url);
    mask-size: var(--mask-size, cover);
    mask-position: var(--mask-position, 0 0);
    mask-repeat: no-repeat;
    overflow: hidden;
}

.shape-oval {
    width: 100%;
    height: 100%;
    border-radius: 506px;
    border: 5px solid #4476a5;
    background: #f7f0e8;
}

.shape-left-pill {
    width: 100%;
    height: 100%;
    border-radius: 303px;
    border: 5px solid #175e94;
    background: #e9d3be;
}

.shape-bottom-pill {
    width: 100%;
    height: 100%;
    border-radius: 576px;
    border: 5px solid #0b4880;
    background: #e9d3be;
}

.shape-countdown-top {
    width: 100%;
    height: 100%;
    border-radius: 160px;
    border: 5px solid #708ea8;
    background: #f1ebe3;
}

.shape-countdown-bottom {
    width: 100%;
    height: 100%;
    border-radius: 245px;
    border: 5px solid #708ea8;
    background: #eddecf;
}

.shape-map-button {
    width: 100%;
    height: 100%;
    border-radius: 141.557px;
    background: #abbed0;
}

.shape-survey-button {
    width: 100%;
    height: 100%;
    border-radius: 111px;
    background: #b1bdc8;
}

.shape-modal-field {
    width: 100%;
    height: 100%;
    border-radius: 93.5px;
    background: #b1bdc8;
}

.shape-modal-submit {
    width: 100%;
    height: 100%;
    border-radius: 93.5px;
    background: #b1bdc8;
}

.text {
    font-weight: 400;
    color: #2d4e7e;
    line-height: 1.064;
    text-align: center;
}

.text-annabelle {
    font-family: var(--annabelle);
}

.text-garamond {
    font-family: var(--garamond);
}

.text-viaoda {
    font-family: var(--viaoda);
}

.text-invitation {
    font-size: 63.69px;
}

.date-bg {
    font-size: 508px;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: rgba(149, 174, 197, 0.45);
    text-align: left;
}

.names {
    font-size: 158px;
    line-height: 1.05;
    text-align: left;
}

.ampersand {
    font-size: 281px;
    color: rgba(81, 101, 138, 0.26);
}

.heading-main {
    font-size: 120px;
}

.paragraph-main {
    font-size: 64px;
}

.wedding-line {
    font-size: 80px;
}

.wedding-date {
    font-size: 128px;
    line-height: 1.01;
}

.wedding-date span {
    font-size: 90px;
}

.section-title {
    font-size: 120px;
}

.section-title.left {
    text-align: left;
}

.section-title.center {
    text-align: center;
}

.time-big {
    font-size: 90px;
    text-align: left;
}

.timeline-text-large {
    font-size: 64px;
}

.timeline-text-large.left {
    text-align: left;
}

.timeline-text-small {
    font-size: 37px;
}

.place-address {
    font-size: 68.896px;
    line-height: 1.15;
}

.text-annabelle-inline {
    font-family: var(--annabelle);
    font-size: 85px;
}

.map-label {
    font-size: 73px;
}

.wishes-main {
    font-size: 64px;
}

.wishes-sub {
    font-size: 64px;
}

.survey-text {
    font-size: 64px;
}

.survey-btn-label {
    font-size: 100px;
    line-height: 1.064;
}

.hotspot {
    pointer-events: auto;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    border-radius: 999px;
}

.hotspot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px dashed transparent;
    transition: border-color 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    opacity: 0;
}

.hotspot:hover::after,
.hotspot:focus-visible::after {
    border-color: rgba(45, 78, 126, 0.55);
    background: rgba(177, 189, 200, 0.2);
    opacity: 1;
}

.countdown-title-layer {
    font-size: 130px;
    text-align: left;
}

.countdown-grid {
    pointer-events: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: start;
    justify-items: center;
    column-gap: 4px;
    font-family: var(--annabelle);
    color: var(--ink);
    letter-spacing: 0.02em;
    line-height: 1;
}

.cd-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
    text-align: center;
}

.cd-digit {
    display: block;
    width: 100%;
    font-family: var(--annabelle);
    font-size: 132px;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cd-colon {
    display: block;
    font-family: var(--annabelle);
    font-size: 90px;
    line-height: 1;
    align-self: start;
}

.cd-label {
    display: block;
    width: 100%;
    font-family: var(--garamond);
    font-size: 43px;
    line-height: 1.064;
    text-align: center;
}

.anketa-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 16px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.anketa-modal.is-open {
    display: flex;
}

.anketa-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(27, 41, 61, 0.65);
    backdrop-filter: blur(3px);
    cursor: pointer;
}

.anketa-card {
    position: relative;
    width: min(680px, 100%);
    margin: auto;
    padding: 40px 44px 40px;
    border-radius: 16px;
    background: #f6ede1;
    background-image: url("/static/modal/paper.png");
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 60px rgba(15, 36, 70, 0.4);
    color: var(--ink);
    font-family: var(--garamond);
}

.anketa-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(15, 36, 70, 0.15);
    transition: background 0.15s, box-shadow 0.15s;
}

.anketa-close:hover,
.anketa-close:focus-visible {
    background: #fff;
    outline: none;
    box-shadow: 0 4px 14px rgba(15, 36, 70, 0.25);
}

.anketa-flower {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    width: 220px;
    opacity: 0.35;
}

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

.anketa-flower-top {
    top: -28px;
    right: -28px;
    transform: scaleX(-1);
}

.anketa-flower-bottom {
    bottom: -28px;
    left: -28px;
}

.anketa-form {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    text-align: center;
}

.anketa-title {
    margin: 0;
    color: var(--ink);
    font-size: 72px;
    line-height: 1;
    text-align: center;
}

.anketa-subtitle {
    margin: 2px auto 4px;
    max-width: 440px;
    font-size: 22px;
    line-height: 1.3;
    text-align: center;
}

.anketa-field {
    border: 0;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}

.anketa-label {
    display: block;
    font-size: 22px;
    line-height: 1.25;
    text-align: center;
    color: var(--ink);
}

.anketa-sub-label {
    display: block;
    margin-top: 2px;
    font-size: 18px;
    opacity: 0.85;
}

.anketa-input {
    width: 100%;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #b1bdc8;
    color: var(--ink);
    font-family: var(--garamond);
    font-size: 20px;
    text-align: center;
    outline: none;
    transition: background 0.15s, box-shadow 0.15s;
}

.anketa-input::placeholder {
    color: rgba(45, 78, 126, 0.55);
}

.anketa-input:focus {
    background: #c6d2dd;
    box-shadow: 0 0 0 2px rgba(45, 78, 126, 0.4);
}

.anketa-input:invalid:not(:placeholder-shown) {
    box-shadow: 0 0 0 2px rgba(170, 50, 50, 0.45);
}

.anketa-radios {
    gap: 8px;
}

.anketa-radio {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 44px;
    padding: 6px 22px;
    border-radius: 999px;
    background: #b1bdc8;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.anketa-radio:hover {
    background: #a3b1bf;
}

.anketa-radio:focus-within {
    box-shadow: 0 0 0 2px rgba(45, 78, 126, 0.45);
}

.anketa-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.anketa-radio-dot {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--ink);
    background: transparent;
    transition: background 0.15s, box-shadow 0.15s;
}

.anketa-radio input[type="radio"]:checked + .anketa-radio-dot {
    background: var(--ink);
    box-shadow: inset 0 0 0 3px #b1bdc8;
}

.anketa-radio-text {
    flex-shrink: 0;
}

.anketa-radio-with-input {
    gap: 10px;
}

.anketa-radio-with-input .anketa-radio-text {
    margin-right: 4px;
}

.anketa-inline-input {
    flex: 1;
    min-width: 0;
    height: 32px;
    padding: 0 6px 4px;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: var(--garamond);
    font-size: 18px;
    text-align: left;
    outline: none;
}

.anketa-inline-input:focus {
    border-bottom-color: var(--ink);
    box-shadow: inset 0 -2px 0 -1px var(--ink);
}

.anketa-status {
    margin: 4px 0 0;
    min-height: 22px;
    font-size: 16px;
    line-height: 1.25;
    text-align: center;
    color: var(--ink);
}

.anketa-status.is-error {
    color: #a14040;
}

.anketa-status.is-success {
    color: #2a6a3b;
}

.anketa-submit {
    margin: 8px auto 0;
    width: min(320px, 100%);
    min-height: 62px;
    padding: 10px 28px;
    border: 0;
    border-radius: 999px;
    background: #b1bdc8;
    color: var(--ink);
    font-family: var(--annabelle);
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s, transform 0.05s;
}

.anketa-submit:hover,
.anketa-submit:focus-visible {
    background: #a3b1bf;
    box-shadow: 0 6px 18px rgba(15, 36, 70, 0.25);
    outline: none;
}

.anketa-submit:active {
    transform: translateY(1px);
}

.anketa-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

@media (max-width: 480px) {
    .anketa-card {
        padding: 36px 22px 28px;
    }

    .anketa-title {
        font-size: 64px;
    }

    .anketa-subtitle {
        font-size: 18px;
    }

    .anketa-label {
        font-size: 18px;
    }

    .anketa-input,
    .anketa-radio {
        font-size: 17px;
    }

    .anketa-submit {
        font-size: 38px;
        min-height: 64px;
    }

    .anketa-flower {
        width: 160px;
    }
}

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

@media (max-width: 720px) {
    .hotspot::after {
        border-color: transparent;
    }

    .cd-digit,
    .cd-colon {
        font-size: 108px;
    }

    .cd-label {
        font-size: 32px;
    }

    .cd-cell {
        gap: 22px;
    }
}
