:root {
    --bg-soft: #f3ebdb;
    --bg-deep: #d0b07a;
    --ink: #2f261b;
    --ink-soft: #6e6048;
    --panel: rgba(255, 250, 240, 0.84);
    --stroke: #d8c49d;
    --stroke-strong: #9c7740;
    --accent: #6a4e1f;
    --accent-2: #b6874d;
    --error: #b84444;
    --success: #1f7e4f;
    --radius-xl: 26px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow: 0 14px 34px rgba(56, 42, 20, 0.17);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 10%, rgba(240, 225, 195, 0.7), transparent 32%),
        radial-gradient(circle at 90% 16%, rgba(220, 192, 140, 0.68), transparent 30%),
        radial-gradient(circle at 50% 120%, rgba(210, 176, 120, 0.5), transparent 42%),
        linear-gradient(165deg, #f5eedf 0%, #e8d9bf 38%, #cfb17a 100%);
    background-attachment: fixed;
    line-height: 1.45;
    overflow-x: hidden;
}

.js-images-guard img {
    opacity: 0;
    transition: opacity 0.22s ease;
}

.js-images-guard img.img-loaded {
    opacity: 1;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: -1;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.35;
    animation: aura-drift 16s ease-in-out infinite alternate;
}

body::before {
    width: 280px;
    height: 280px;
    left: -60px;
    top: 18vh;
    background: rgba(255, 219, 160, 0.78);
}

body::after {
    width: 340px;
    height: 340px;
    right: -80px;
    top: 58vh;
    animation-delay: 4s;
    background: rgba(166, 126, 64, 0.36);
}

.wizard {
    width: 100%;
    margin: 0;
    padding: 0;
}

.step {
    display: none;
}

.step.active {
    display: block;
    animation: step-enter 0.42s cubic-bezier(0.2, 0.72, 0.25, 1);
}

.step.active#step-style {
    display: flex;
}

.step-shell {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    min-height: 100vh;
    padding: clamp(1rem, 2.8vw, 2rem) clamp(1rem, 4.2vw, 3.2rem) 3.2rem;
}

.step-shell>* {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
}

.step__title {
    display: flex;
    align-items: center;
    gap: 0.86rem;
    font-size: clamp(1.64rem, 4vw, 2.7rem);
    line-height: 1.1;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    color: var(--ink);
}

.step__title .num {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    display: grid;
    place-content: center;
    font-size: 1.12rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(150deg, #b88a50, #7c5b2a);
}

.step__subtitle {
    margin-top: 0.48rem;
    margin-bottom: 1.2rem;
    color: var(--ink-soft);
    font-weight: 600;
}

.btn-row {
    display: flex;
    justify-content: space-between;
    gap: 0.74rem;
    margin-top: 1.36rem;
    flex-wrap: wrap;
}

.btn-row--center {
    justify-content: center;
}

.btn-row--left {
    justify-content: flex-start;
}

.btn {
    border: 0;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.015em;
    cursor: pointer;
    padding: 0.82rem 1.4rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0) scale(0.985);
}

.btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.btn--primary {
    color: #fff;
    background: linear-gradient(120deg, #6f4f20, #8f6630);
    box-shadow: 0 12px 22px rgba(90, 66, 26, 0.28);
    animation: cta-pulse 3.2s ease-in-out infinite;
}

.btn--secondary {
    color: var(--ink);
    background: #f4ecdb;
    border: 1px solid #d9c6a3;
}

.btn--ghost {
    color: #5b4422;
    background: rgba(232, 216, 186, 0.46);
    border: 1px solid #d1b98d;
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
}

.btn--large {
    padding: 0.98rem 1.8rem;
    font-size: 1.05rem;
}

#step-style {
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.24) 0, transparent 40%),
        radial-gradient(circle at 90% 86%, rgba(112, 67, 24, 0.2) 0, transparent 46%),
        linear-gradient(152deg, #d6b985 0%, #c9a66c 45%, #a8824a 100%);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: clamp(0.74rem, 2.2vw, 1.44rem) clamp(1rem, 4vw, 3rem);
    min-height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: clamp(0.5rem, 1.2vh, 1rem);
}

.showcase-top {
    display: flex;
    justify-content: center;
}

.showcase-logo {
    width: clamp(86px, 18vw, 250px);
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 20px rgba(0, 0, 0, 0.2));
}

.split-flap-header {
    min-height: 86px;
    margin-bottom: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.split-flap-char {
    width: clamp(20px, 3.2vw, 42px);
    height: 84px;
    display: grid;
    place-content: center;
    font-size: clamp(1.7rem, 4vw, 3.7rem);
    color: #fff;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.14);
}

.split-flap-char.is-empty {
    color: transparent;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.15rem;
}

.flip-card {
    position: relative;
    width: min(230px, 100%);
    aspect-ratio: 3 / 4;
    margin: 0 auto;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotateY(0deg);
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    box-shadow: 0 16px 30px rgba(26, 16, 8, 0.25);
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    background: #fdf8eb;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.flip-card-front {
    transform: rotateY(0deg);
}

.flip-card-back {
    transform: rotateY(180deg);
}

.card-image {
    width: 100%;
    height: 82%;
    object-fit: contain;
    object-position: center;
    display: block;
    background: #ead8b8;
}

.card-info {
    height: 18%;
    display: grid;
    place-content: center;
    background: linear-gradient(180deg, #f8efdd, #efe0bf);
}

.card-title {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #473729;
}

.showcase-next {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 3px solid #fff;
    border-radius: 999px;
    min-height: 66px;
    padding: 0.95rem 2rem;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    color: #6b5328;
    background: linear-gradient(180deg, #fff 0%, #f7f4ef 100%);
    box-shadow: 0 12px 26px rgba(59, 31, 21, 0.23);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    cursor: pointer;
    font-family: inherit;
}

.showcase-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 15px 28px rgba(59, 31, 21, 0.3);
    filter: brightness(1.03);
}

.showcase-next__arrow {
    width: 1ch;
    display: inline-grid;
    place-content: center;
}

.upload-zone {
    border: 3px dashed var(--stroke-strong);
    border-radius: 20px;
    background: linear-gradient(180deg, #f7efdd, #f0e3c8);
    min-height: 160px;
    display: grid;
    place-content: center;
    text-align: center;
    color: #766a56;
    cursor: pointer;
    transition: border-color 0.24s ease, transform 0.24s ease, box-shadow 0.24s ease;
    padding: 1rem;
}

.upload-zone.is-dragging {
    border-color: #8f6f33;
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(86, 64, 32, 0.18);
}

.upload-zone__icon {
    font-size: 2rem;
    margin-bottom: 0.4rem;
}

.upload-zone__text {
    font-size: clamp(1.1rem, 2.8vw, 1.7rem);
    font-family: Georgia, "Times New Roman", serif;
    color: #73624d;
}

.upload-zone__hint {
    font-size: 0.95rem;
    margin-top: 0.35rem;
    color: #8c7a61;
}

.photo-count {
    margin-top: 0.95rem;
    font-size: 1.24rem;
    font-weight: 700;
    color: var(--success);
}

.photo-grid {
    margin-top: 0.75rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
    justify-content: center;
    gap: 1rem;
}

.photo-card {
    position: relative;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 250, 240, 0.84) 100%);
    backdrop-filter: blur(6px);
    padding: 0.62rem;
    box-shadow: 0 10px 22px rgba(55, 40, 16, 0.07);
    transform-style: preserve-3d;
}

.photo-card__remove {
    position: absolute;
    right: 0.9rem;
    top: 0.9rem;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 0;
    font-size: 1.2rem;
    color: #fff;
    background: rgba(41, 34, 19, 0.62);
    cursor: pointer;
}

.photo-card__image {
    width: 100%;
    height: clamp(150px, 24vw, 210px);
    border-radius: var(--radius-md);
    object-fit: contain;
    object-position: center;
    display: block;
    background: #f4efe4;
}

.photo-card__filename {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: #8f7d61;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.photo-card__name-input {
    width: 100%;
    margin-top: 0.48rem;
    border: 2px solid #ddcfb0;
    border-radius: 12px;
    background: #fffdf8;
    font-size: 0.98rem;
    padding: 0.58rem 0.74rem;
    color: #2f2618;
    outline: none;
}

.photo-card__name-input:focus {
    border-color: #b1904e;
    box-shadow: 0 0 0 3px rgba(177, 144, 78, 0.16);
}

.photo-hint {
    margin-top: 0.6rem;
    color: #83705b;
}

.builder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.panel {
    border: 1px solid rgba(176, 143, 89, 0.34);
    border-radius: var(--radius-xl);
    background: var(--panel);
    backdrop-filter: blur(7px);
    padding: 1rem;
    box-shadow: var(--shadow);
    animation: panel-breathe 8s ease-in-out infinite;
}

.panel--aurora {
    position: relative;
    overflow: hidden;
}

.panel--aurora::before {
    content: "";
    position: absolute;
    width: 160%;
    height: 200%;
    left: -30%;
    top: -40%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 236, 201, 0.35), transparent 48%),
        radial-gradient(circle at 70% 70%, rgba(188, 138, 73, 0.26), transparent 42%);
    animation: aurora-wave 9s ease-in-out infinite alternate;
    pointer-events: none;
}

.panel>* {
    position: relative;
    z-index: 1;
}

.panel__title {
    font-size: 1.32rem;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    color: #4b341f;
    font-weight: 700;
}

.panel__title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.panel__subtitle {
    margin-top: 0.2rem;
    color: #7c6b52;
    font-size: 0.92rem;
}

.card-grid {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.select-card {
    display: block;
    border: 1px solid rgba(176, 143, 89, 0.3);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 251, 242, 0.92) 100%);
    padding: 0.72rem;
    cursor: pointer;
    transform-style: preserve-3d;
    transition: border-color 0.2s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.select-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(60, 35, 40, 0.14);
}

.select-card.is-selected {
    border-color: #a6843a;
    box-shadow: 0 0 0 3px rgba(166, 132, 58, 0.16), 0 12px 22px rgba(80, 58, 26, 0.1);
}

.select-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
    display: block;
    background: #f3eee2;
}

.select-card__emoji {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    display: grid;
    place-content: center;
    background: #f3eee2;
    font-size: 2.4rem;
}

.select-card__title {
    margin-top: 0.65rem;
    font-weight: 800;
    color: #3a1f16;
}

.select-card__desc {
    margin-top: 0.2rem;
    font-size: 0.9rem;
    color: #7c6c4c;
}

.variant-picker {
    margin-top: 0.9rem;
    padding: 1rem;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 250, 240, 0.92) 100%);
    min-height: 88px;
}

.variant-picker__title {
    font-weight: 800;
    margin-bottom: 0.65rem;
}

.variant-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 0.55rem;
}

.variant-btn {
    text-align: left;
    border: 1px solid rgba(168, 132, 58, 0.38);
    border-radius: 12px;
    background: #fefbf5;
    padding: 0.68rem 0.75rem;
    cursor: pointer;
    font-size: 0.93rem;
    color: #4a2e24;
    transform-style: preserve-3d;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.variant-btn.is-selected {
    border-color: #a6843a;
    background: #f9f2e1;
}

.variant-btn__meta {
    margin-top: 0.25rem;
    font-size: 0.82rem;
    color: #847153;
}

.inline-controls {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.58rem;
}

.field-label {
    font-size: 0.84rem;
    font-weight: 700;
    color: #644d30;
}

.inline-number,
.field-input {
    border: 1px solid #cdb58b;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.96);
    color: #392512;
    padding: 0.64rem 0.72rem;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.inline-number {
    width: 86px;
}

.field-input:focus,
.inline-number:focus {
    border-color: #ab7f45;
    box-shadow: 0 0 0 3px rgba(171, 127, 69, 0.16);
}

.gift-card-grid {
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.7rem;
}

.gift-card {
    text-align: left;
    border: 1px solid rgba(168, 132, 58, 0.34);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 247, 230, 0.94), rgba(248, 232, 201, 0.88));
    padding: 0.74rem;
    cursor: pointer;
    display: grid;
    gap: 0.18rem;
    transform-style: preserve-3d;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gift-card:hover {
    transform: translateY(-2px);
}

.gift-card.is-selected {
    border-color: #8b642f;
    box-shadow: 0 0 0 3px rgba(139, 100, 47, 0.18);
}

.gift-card__title {
    font-weight: 800;
    color: #402712;
}

.gift-card__desc {
    color: #7a6445;
    font-size: 0.82rem;
}

.gift-controls {
    margin-top: 0.9rem;
    display: grid;
    gap: 0.6rem;
}

.field-wrap {
    display: grid;
    gap: 0.22rem;
}

.panel--cart {
    margin-top: 1rem;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.pill {
    border: 1px solid rgba(140, 105, 55, 0.48);
    border-radius: 999px;
    padding: 0.3rem 0.72rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #684c22;
    background: rgba(255, 255, 255, 0.75);
}

.cart-empty {
    margin-top: 0.8rem;
    color: #7f6d52;
}

.cart-list {
    margin-top: 0.8rem;
    display: grid;
    gap: 0.62rem;
}

.cart-item {
    border: 1px solid rgba(171, 127, 69, 0.34);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.72rem;
    transform-style: preserve-3d;
}

.cart-item__head {
    font-weight: 800;
    color: #3d2813;
}

.cart-item__meta {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    color: #7a6548;
}

.cart-item__controls {
    margin-top: 0.45rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.52rem;
}

.cart-item__subtotal {
    margin-left: auto;
    font-weight: 800;
    color: #4a3015;
}

.cart-total {
    margin-top: 0.8rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #4a3015;
}

.generate-summary {
    border: 1px solid rgba(176, 143, 89, 0.3);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 250, 240, 0.88) 100%);
    padding: 0.95rem;
}

.generate-summary dl {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.45rem 0.72rem;
}

.generate-summary dt {
    font-weight: 700;
    color: #7b6a4f;
}

.generate-summary dd {
    color: #2d1913;
}

.summary-list {
    list-style: none;
    display: grid;
    gap: 0.18rem;
}

.panel--preview {
    margin-top: 1rem;
}

.generate-btn-wrap {
    margin-top: 0.8rem;
}

.preview-hint {
    margin-top: 0.5rem;
    color: #8a775a;
    font-size: 0.9rem;
}

#results-container {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.result-card {
    border: 1px solid rgba(176, 143, 89, 0.34);
    border-radius: var(--radius-lg);
    padding: 0.72rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 251, 242, 0.88) 100%);
}

.result-card__preview {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8dcc4;
    background: linear-gradient(145deg, #f6f7f2 0%, #efe6d5 100%);
}

.result-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

.result-card__title {
    margin-top: 0.55rem;
    font-weight: 800;
}

.result-card__subtitle {
    margin-top: 0.2rem;
    color: #7b6a4f;
    font-size: 0.9rem;
}

.result-card__actions {
    margin-top: 0.45rem;
}

.result-card__link {
    color: #705113;
    font-weight: 700;
}

.result-card--error {
    border-color: #d08585;
    background: #fff5f5;
}

.focus-spot {
    animation: focus-ring 1s ease;
}

.checkout-form {
    margin-top: 1rem;
}

.field-grid {
    margin-top: 0.7rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

#shipping-fields {
    margin-top: 0.92rem;
}

.section-title {
    font-size: 1.04rem;
    color: #5f4625;
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

.checkout-actions {
    margin-top: 1rem;
}

.checkout-status {
    max-width: 1140px;
    margin: 0 auto 0.8rem;
    border: 1px solid #d7bf93;
    border-radius: 12px;
    padding: 0.66rem 0.82rem;
    background: rgba(255, 248, 230, 0.92);
    color: #5b4524;
}

.checkout-status.is-success {
    border-color: #87c4a2;
    background: rgba(229, 247, 237, 0.94);
    color: #1c7047;
}

.checkout-status.is-error {
    border-color: #da9f9f;
    background: rgba(255, 239, 239, 0.94);
    color: #8c2d2d;
}

.spinner-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.42rem;
    background: rgba(25, 20, 10, 0.52);
    z-index: 1000;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

.spinner-overlay.active {
    display: flex;
}

.spinner {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 4px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

.spinner-text {
    font-size: 1.1rem;
    font-weight: 800;
}

.spinner-sub {
    font-size: 0.92rem;
    opacity: 0.94;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.56s ease, transform 0.56s ease;
    transition-delay: calc(var(--stagger, 0) * 46ms);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.interactive-tilt {
    transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
    transition: transform 0.15s ease;
}

.interactive-tilt.is-tilting {
    transition: transform 0.06s ease;
}

.step-enter-item {
    animation: pop-in 0.52s cubic-bezier(0.2, 0.72, 0.25, 1) both;
    animation-delay: calc(var(--enter-order, 0) * 34ms);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes step-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes aura-drift {
    from {
        transform: translateY(-8px) scale(1);
    }

    to {
        transform: translateY(8px) scale(1.06);
    }
}

@keyframes aurora-wave {
    from {
        transform: rotate(0deg) scale(1);
    }

    to {
        transform: rotate(12deg) scale(1.08);
    }
}

@keyframes cta-pulse {

    0%,
    100% {
        box-shadow: 0 12px 22px rgba(90, 66, 26, 0.28);
        filter: brightness(1);
    }

    50% {
        box-shadow: 0 14px 28px rgba(90, 66, 26, 0.36);
        filter: brightness(1.04);
    }
}

@keyframes panel-breathe {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-1px);
    }
}

@keyframes pop-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.985);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes focus-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(171, 127, 69, 0.34);
    }

    100% {
        box-shadow: 0 0 0 18px rgba(171, 127, 69, 0);
    }
}

@media (max-width: 980px) {
    .builder-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 780px) {
    #step-style {
        min-height: 100dvh;
        justify-content: flex-start;
        padding-top: 1rem;
    }

    .showcase-logo {
        width: clamp(120px, 42vw, 190px);
    }

    .split-flap-header {
        min-height: 66px;
        margin-bottom: 0.7rem;
    }

    .split-flap-char {
        height: 66px;
        width: clamp(16px, 3.2vw, 28px);
    }

    .showcase-next {
        min-height: 60px;
        padding: 0.88rem 1.65rem;
        font-size: 1rem;
    }

    .generate-summary dl {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

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

    .cart-item__subtotal {
        margin-left: 0;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 180px));
        gap: 0.75rem;
    }

    .photo-card__image {
        height: clamp(130px, 42vw, 180px);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
