body {
    min-height: 100vh;
}

.gift-app {
    max-width: 860px;
}

.gift-back-header {
    margin-bottom: 8px;
    padding: 4px 0;
}

.gift-back-link,
.gift-breadcrumb a {
    color: #A24F5B;
    font-weight: 700;
    text-decoration: none;
}

.gift-back-link:hover,
.gift-breadcrumb a:hover {
    text-decoration: underline;
}

.gift-main {
    padding-top: 2px;
}

.gift-breadcrumb {
    margin: 8px 0 14px;
    color: var(--text-sub);
    font-size: 0.82rem;
}

.gift-intro {
    margin-bottom: 16px;
    text-align: center;
}

.gift-eyebrow {
    margin: 0 0 4px;
    color: #A24F5B;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.gift-intro h1 {
    margin: 0;
    color: var(--text-main);
    font-family: var(--font-casual);
    font-size: clamp(1.75rem, 5vw, 2.45rem);
    line-height: 1.28;
}

.gift-intro-text {
    max-width: 640px;
    margin: 9px auto 0;
    color: var(--text-sub);
    font-size: 0.95rem;
    line-height: 1.65;
}

.gift-affiliate-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 15px;
    border: 1px solid #E3C55E;
    border-radius: 12px;
    background: #FFF9DD;
    color: #5E4600;
    font-size: 0.78rem;
    line-height: 1.55;
}

.gift-affiliate-notice strong {
    flex: 0 0 auto;
    color: #493600;
}

.gift-picker {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #F1D9DD;
    border-radius: 20px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.gift-picker-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.9fr);
    align-items: center;
    gap: 16px;
}

.gift-picker-copy label {
    display: block;
    margin-bottom: 3px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 800;
}

.gift-picker-copy p {
    margin: 0;
    color: var(--text-sub);
    font-size: 0.8rem;
}

.gift-select-wrap {
    position: relative;
}

.gift-select-wrap::after {
    content: '⌄';
    position: absolute;
    top: 50%;
    right: 16px;
    color: #A24F5B;
    font-size: 1.2rem;
    font-weight: 900;
    pointer-events: none;
    transform: translateY(-55%);
}

#gift-age-select {
    width: 100%;
    min-height: 52px;
    padding: 0 44px 0 16px;
    border: 2px solid #EFBFC7;
    border-radius: 14px;
    appearance: none;
    background: #FFF8F9;
    color: var(--text-main);
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
}

#gift-age-select:focus-visible {
    outline: 3px solid rgba(255, 158, 170, 0.28);
    outline-offset: 2px;
}

.gift-quick-label {
    margin: 15px 0 7px;
    color: var(--text-sub);
    font-size: 0.76rem;
    font-weight: 700;
}

.gift-quick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.gift-quick-chip {
    min-height: 42px;
    padding: 7px 12px;
    border: 1px solid #E8D5D8;
    border-radius: 999px;
    background: #FFFFFF;
    color: #705F62;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
}

.gift-quick-chip:hover {
    border-color: #D88995;
    background: #FFF8F9;
}

.gift-quick-chip:focus-visible {
    outline: 3px solid rgba(255, 158, 170, 0.28);
    outline-offset: 2px;
}

.gift-quick-chip.is-active {
    border-color: #A94D5B;
    background: #A94D5B;
    color: #FFFFFF;
}

.gift-results {
    padding: 22px;
    border: 1px solid var(--border-color);
    border-radius: 22px;
    background: var(--card-bg);
    box-shadow: var(--card-shadow);
}

.gift-results-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
}

.gift-stage-label {
    margin: 0 0 3px;
    color: #A24F5B;
    font-size: 0.78rem;
    font-weight: 850;
}

.gift-results h2 {
    margin: 0;
    color: var(--text-main);
    font-family: var(--font-casual);
    font-size: clamp(1.35rem, 4vw, 1.75rem);
    line-height: 1.35;
}

.gift-age-detail {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #B9DDD5;
    border-radius: 999px;
    background: #EDF9F6;
    color: #2E7062;
    font-size: 0.75rem;
    font-weight: 800;
    white-space: nowrap;
}

.gift-stage-intro {
    margin: 8px 0 16px;
    color: var(--text-sub);
    font-size: 0.88rem;
    line-height: 1.6;
}

.gift-results-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.gift-results-meta strong {
    color: var(--text-main);
    font-size: 0.9rem;
}

.gift-results-meta span {
    color: var(--text-sub);
    font-size: 0.7rem;
    text-align: right;
}

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

.gift-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 17px;
    border: 1px solid #ECDCE0;
    border-radius: 16px;
    background: linear-gradient(145deg, #FFFFFF 0%, #FFFBFC 100%);
    box-shadow: 0 5px 15px rgba(101, 66, 72, 0.06);
}

.gift-product-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.gift-product-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    background: #FFF0F2;
    font-size: 1.45rem;
}

.gift-product-category {
    padding: 5px 8px;
    border-radius: 999px;
    background: #F1F8F6;
    color: #3C7569;
    font-size: 0.68rem;
    font-weight: 800;
}

.gift-product-card h3 {
    margin: 0 0 6px;
    color: var(--text-main);
    font-size: 1.02rem;
    line-height: 1.4;
}

.gift-product-reason {
    flex: 1;
    margin: 0 0 10px;
    color: #6F6062;
    font-size: 0.82rem;
    line-height: 1.55;
}

.gift-product-check {
    margin: 0 0 12px;
    padding-top: 9px;
    border-top: 1px solid #F0E5E7;
    color: #847579;
    font-size: 0.72rem;
    line-height: 1.5;
}

.gift-product-check strong {
    color: #76545A;
}

.gift-product-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 13px;
    border-radius: 12px;
    background: #8B1E2D;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.gift-product-link::after {
    content: ' ↗';
    margin-left: 4px;
}

.gift-product-link:hover {
    background: #6F1724;
}

.gift-product-link:focus-visible {
    outline: 3px solid rgba(139, 30, 45, 0.25);
    outline-offset: 3px;
}

.gift-safety {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 15px;
    padding: 12px 14px;
    border: 1px solid #D9E7E3;
    border-radius: 13px;
    background: #F3FAF8;
    color: #45645D;
    font-size: 0.76rem;
    line-height: 1.55;
}

.gift-safety strong {
    flex: 0 0 auto;
    color: #2F5D52;
}

.gift-method {
    margin: 18px 0 0;
    padding: 18px 20px;
    border: 1px solid #E6DFD7;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.88);
}

.gift-method h2 {
    margin: 0 0 8px;
    color: var(--text-main);
    font-size: 1.02rem;
}

.gift-method ul {
    margin: 0;
    padding-left: 20px;
    color: var(--text-sub);
    font-size: 0.8rem;
    line-height: 1.65;
}

.gift-method li + li {
    margin-top: 4px;
}

.gift-noscript {
    margin-bottom: 18px;
    padding: 14px;
    border: 1px solid #E7C55C;
    border-radius: 12px;
    background: #FFF9DD;
    color: #5E4600;
    font-size: 0.85rem;
}

.gift-footer {
    padding: 24px 16px;
    margin-top: 34px;
    border-top: 1px solid var(--border-color);
    color: var(--text-sub);
    text-align: center;
}

.gift-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    margin-bottom: 11px;
}

.gift-footer a {
    color: var(--text-sub);
    font-size: 0.82rem;
    text-decoration: none;
}

.gift-footer a:hover {
    text-decoration: underline;
}

.gift-footer p {
    margin: 0;
    font-size: 0.78rem;
}

[data-theme="dark"] .gift-affiliate-notice {
    border-color: #8A7434;
    background: #413A24;
    color: #F4E7B2;
}

[data-theme="dark"] .gift-affiliate-notice strong {
    color: #FFF0B4;
}

[data-theme="dark"] #gift-age-select,
[data-theme="dark"] .gift-quick-chip,
[data-theme="dark"] .gift-product-card,
[data-theme="dark"] .gift-method {
    background: var(--card-bg);
    color: var(--text-main);
}

[data-theme="dark"] .gift-age-detail,
[data-theme="dark"] .gift-safety {
    border-color: #46675F;
    background: #30433E;
    color: #D5E9E3;
}

@media (max-width: 640px) {
    .gift-app {
        padding: 14px;
    }

    .gift-picker,
    .gift-results {
        padding: 16px 14px;
        border-radius: 18px;
    }

    .gift-picker-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gift-quick-list {
        flex-wrap: nowrap;
        margin-right: -14px;
        padding-right: 14px;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .gift-quick-chip {
        flex: 0 0 auto;
    }

    .gift-results-header,
    .gift-results-meta,
    .gift-affiliate-notice,
    .gift-safety {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .gift-results-meta span {
        text-align: left;
    }

    .gift-product-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gift-product-link,
    .gift-quick-chip {
        scroll-behavior: auto;
        transition: none;
    }
}

