/* PawStar — mobile-first styles */
:root {
    --bg: #FFF6EE;
    --surface: #FFFFFF;
    --soft: #FFEDE1;
    --line: #F3E3D6;
    --ink: #2B211C;
    --ink-2: #5B4B42;
    --muted: #9A887D;
    --primary: #FF6B4A;
    --primary-2: #FF9459;
    --primary-ink: #FFFFFF;
    --gold: #FFB52E;
    --gold-soft: #FFF1D3;
    --ok: #2FB57A;
    --danger: #E5484D;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 10px 30px -12px rgba(120, 60, 30, .25);
    --shadow-sm: 0 4px 14px -6px rgba(120, 60, 30, .22);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
            "Apple SD Gothic Neo", "Noto Sans JP", "Noto Sans KR", "Malgun Gothic", "Yu Gothic", sans-serif;
    --font-ja: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
            "Yu Gothic UI", "Meiryo", sans-serif;
    --font-ko: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
    --font-display: "Fredoka", var(--font);
    --safe-b: env(safe-area-inset-bottom, 0px);
    color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: #F6E9DE;
    background-image: radial-gradient(rgba(255, 107, 74, .09) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}
body.lang-ja { font-family: var(--font-ja); }
body.lang-ko { font-family: var(--font-ko); word-break: keep-all; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
p { margin: 0; }
.ic { width: 22px; height: 22px; flex: none; }
.ic.tiny { width: 14px; height: 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }

/* ---------- app frame ---------- */
.app {
    position: relative;
    max-width: 480px;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    background: var(--bg);
    display: flex;
    flex-direction: column;
}
@media (min-width: 520px) {
    .app { box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(120, 60, 30, .35); }
}
.content {
    flex: 1;
    padding: 4px 20px calc(28px + var(--safe-b));
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ---------- top bar ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
    background: rgba(255, 246, 238, .86);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-mark {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    box-shadow: var(--shadow-sm);
    transform: rotate(-6deg);
}
.brand-mark .ic { width: 22px; height: 22px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: .01em; }
.icon-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 4px;
    min-width: 42px; height: 42px; padding: 0 10px;
    border: 0; border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    text-decoration: none;
    color: var(--ink);
}
.icon-btn:active { transform: scale(.94); }
.lang-code { font-family: var(--font-display); font-weight: 600; font-size: 13px; }

.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu-pop {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 180px; padding: 6px;
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 16px 40px -10px rgba(80, 40, 20, .3), 0 0 0 1px var(--line);
    animation: pop .16s ease-out;
}
.menu-pop a, .menu-pop button {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    width: 100%; padding: 11px 12px;
    border: 0; border-radius: 11px; background: none;
    text-decoration: none; text-align: left; font-size: 15px; cursor: pointer;
}
.menu-pop a.on { font-weight: 700; color: var(--primary); }
.menu-pop a:active, .menu-pop button:active { background: var(--soft); }
.menu-pop .ic { width: 18px; height: 18px; }
.menu-pop hr { margin: 4px 6px; border: 0; border-top: 1px solid var(--line); }
.menu-pop form { margin: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 54px; padding: 0 24px;
    border: 0; border-radius: 18px;
    font-weight: 700; font-size: 16.5px;
    text-decoration: none; cursor: pointer;
    transition: transform .12s, box-shadow .12s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn-block { width: 100%; }
.btn-primary {
    color: var(--primary-ink);
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    box-shadow: 0 10px 22px -8px rgba(255, 107, 74, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:disabled { opacity: .45; box-shadow: none; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-text-danger { min-height: 44px; background: none; color: var(--danger); font-weight: 600; font-size: 15px; }
.btn-text-danger .ic { width: 18px; height: 18px; }

.sticky-cta {
    position: sticky; bottom: 0; z-index: 10;
    margin: auto -20px calc(-28px - var(--safe-b));
    padding: 18px 20px calc(16px + var(--safe-b));
    display: flex; flex-direction: column; gap: 4px;
    background: linear-gradient(to bottom, rgba(255, 246, 238, 0), var(--bg) 34%);
}

/* ---------- type ---------- */
.title { font-size: 28px; font-weight: 800; }
.lang-en .title, .lang-en .hero-title { font-family: var(--font-display); font-weight: 700; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .02em; }
.page-head { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }

/* ---------- home ---------- */
.hero { text-align: center; padding-top: 4px; }
.hero-art { position: relative; height: 270px; margin: 0 -20px 6px; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(2px); }
.b1 { width: 260px; height: 260px; left: 50%; top: 10px; margin-left: -150px; background: radial-gradient(circle at 30% 30%, #FFD3B8, #FFB08A); opacity: .7; }
.b2 { width: 150px; height: 150px; right: 26px; top: 120px; background: radial-gradient(circle at 30% 30%, #FFF0C2, #FFD27A); opacity: .75; }
.polaroid {
    position: absolute;
    width: 150px; padding: 9px 9px 12px;
    background: #fff; border-radius: 18px;
    box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: center; gap: 9px;
}
.p1 { left: 50%; margin-left: -138px; top: 36px; transform: rotate(-8deg); animation: bob 5s ease-in-out infinite; }
.p2 { left: 50%; margin-left: -8px; top: 70px; transform: rotate(7deg); animation: bob 5s ease-in-out -2.5s infinite; }
.ph { width: 100%; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; color: rgba(255, 255, 255, .92); }
.ph .ic { width: 62px; height: 62px; }
.ph-cat { background: linear-gradient(150deg, #FFB48F, #FF7E5F); }
.ph-dog { background: linear-gradient(150deg, #FFD88A, #FFAE4D); }
.float-star { position: absolute; color: var(--gold); animation: twinkle 2.6s ease-in-out infinite; }
.f1 { left: 34px; top: 30px; }
.f2 { right: 40px; top: 24px; animation-delay: -.9s; }
.f2 .ic { width: 30px; height: 30px; }
.f3 { right: 70px; bottom: 18px; animation-delay: -1.6s; }
.f3 .ic { width: 16px; height: 16px; }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes twinkle { 50% { transform: scale(.65) rotate(20deg); opacity: .55; } }
.hero-title { font-size: 31px; font-weight: 800; line-height: 1.2; }
.hero-sub { margin: 12px auto 0; max-width: 330px; color: var(--ink-2); }

.steps {
    list-style: none; margin: 4px 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
}
.steps li {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 14px 8px; text-align: center;
    background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
}
.steps b { display: block; font-size: 14.5px; }
.steps small { display: block; font-size: 11.5px; line-height: 1.35; color: var(--muted); margin-top: 2px; }
.step-n {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px;
    font-family: var(--font-display); font-weight: 700; color: var(--primary); background: var(--soft);
}

/* ---------- forms ---------- */
.auth { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; }
.auth-badge {
    display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px;
    border-radius: 22px; color: #fff;
    background: linear-gradient(135deg, var(--primary-2), var(--primary));
    box-shadow: var(--shadow); transform: rotate(-8deg);
}
.auth-badge .ic { width: 36px; height: 36px; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.field small { font-size: 12.5px; color: var(--muted); }
.field input, .field textarea {
    width: 100%; padding: 15px 16px;
    font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
    color: var(--ink);
    background: var(--surface);
    border: 1.5px solid var(--line); border-radius: 16px;
    outline: none; transition: border-color .15s, box-shadow .15s;
    -webkit-appearance: none; appearance: none;
}
.field textarea { resize: none; min-height: 112px; }
.field input:focus, .field textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(255, 148, 89, .18); }
.field input::placeholder, .field textarea::placeholder { color: #C6B6AA; }
.counter { font-style: normal; font-weight: 500; color: var(--muted); }
.pw { position: relative; }
.pw input { padding-right: 54px; }
.pw-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border: 0; background: none; color: var(--muted); cursor: pointer;
}
.pw-toggle.on { color: var(--primary); }
.switch { margin-top: 10px; text-align: center; color: var(--muted); font-size: 15px; }
.switch a { color: var(--primary); font-weight: 700; text-decoration: none; margin-left: 4px; }

.alert {
    padding: 13px 16px; border-radius: var(--radius-sm);
    background: #FFE8E6; color: #B4292E; font-size: 14.5px; font-weight: 600;
    animation: shake .35s;
}
.alert-ok { background: #E3F7EE; color: #17794F; animation: none; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* photo picker */
.photo-pick {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 4 / 5; border-radius: var(--radius);
    background: var(--surface);
    border: 2px dashed #F2C9B0;
    cursor: pointer;
}
.photo-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; z-index: 2; }
.photo-empty {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    color: var(--ink-2); text-align: center; padding: 20px;
}
.photo-empty small { color: var(--muted); font-size: 13px; }
.photo-icon {
    display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 8px;
    border-radius: 24px; color: var(--primary); background: var(--soft);
}
.photo-icon .ic { width: 34px; height: 34px; }
.photo-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.photo-change {
    position: absolute; right: 12px; bottom: 12px; z-index: 1;
    display: none; align-items: center; gap: 6px; padding: 8px 13px;
    border-radius: 999px; font-size: 13px; font-weight: 700;
    color: #fff; background: rgba(30, 20, 15, .55);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.photo-change .ic { width: 16px; height: 16px; }
.photo-pick.has { border-style: solid; border-color: transparent; box-shadow: var(--shadow); }
.photo-pick.has .photo-preview { opacity: 1; }
.photo-pick.has .photo-empty { display: none; }
.photo-pick.has .photo-change { display: inline-flex; }

/* ---------- my pets ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
    border-radius: 999px; font-size: 13px; font-weight: 700;
    background: var(--soft); color: var(--primary);
}
.chip .ic { width: 15px; height: 15px; }
.chip-gold { background: var(--gold-soft); color: #B97800; }

.pet-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pet-card {
    position: relative; overflow: hidden;
    background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
    animation: rise .4s both;
}
.pet-card:nth-child(2) { animation-delay: .05s; }
.pet-card:nth-child(3) { animation-delay: .1s; }
.pet-card:nth-child(4) { animation-delay: .15s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.pet-card-link { display: block; text-decoration: none; }
.pet-card-link:active { opacity: .85; }
.pet-card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--soft); }
.pet-card-body { padding: 10px 12px 13px; display: flex; flex-direction: column; gap: 2px; }
.pet-card h3 { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pet-card small { font-size: 12px; line-height: 1.35; }
.score-row { display: flex; align-items: center; gap: 6px; }
.score { font-family: var(--font-display); font-size: 17px; }
.pet-card-share {
    position: absolute; top: 8px; right: 8px;
    display: grid; place-items: center; width: 36px; height: 36px;
    border: 0; border-radius: 12px; cursor: pointer;
    color: var(--ink); background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
}
.pet-card-share .ic { width: 18px; height: 18px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 16px; }
.empty-art {
    display: grid; place-items: center; width: 110px; height: 110px; margin-bottom: 8px;
    border-radius: 38px; color: var(--primary-2); background: var(--surface); box-shadow: var(--shadow);
    transform: rotate(-6deg);
}
.empty-art .ic { width: 56px; height: 56px; }
.empty h2 { font-size: 21px; }
.empty .btn { margin-top: 10px; }

/* ---------- stars ---------- */
.stars-static { display: inline-flex; gap: 2px; color: var(--gold); }
.stars-static .s { position: relative; display: inline-block; width: 20px; height: 20px; }
.stars-static .s > .ic { width: 100%; height: 100%; color: #F1E2D3; }
.stars-static .s-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; }
.stars-static .s-fill .ic { width: 20px; height: 20px; }
.stars-static.sm .s, .stars-static.sm .s-fill .ic { width: 14px; height: 14px; }
.stars-static.lg { gap: 6px; }
.stars-static.lg .s, .stars-static.lg .s-fill .ic { width: 40px; height: 40px; }

/* ---------- pet page ---------- */
.page-pet .content { padding-top: 0; }
.pet { display: flex; flex-direction: column; gap: 18px; }
.pet-photo {
    position: relative; margin: 0 -4px; overflow: hidden;
    border-radius: 28px; box-shadow: var(--shadow); background: var(--soft);
}
.pet-photo img { width: 100%; max-height: 72vh; object-fit: cover; }
.pet-photo figcaption {
    position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px;
    color: #fff; background: linear-gradient(to top, rgba(25, 14, 8, .72), rgba(25, 14, 8, 0));
}
.pet-photo h1 { font-size: 32px; font-weight: 800; text-shadow: 0 2px 12px rgba(0, 0, 0, .25); overflow-wrap: anywhere; }
.lang-en .pet-photo h1 { font-family: var(--font-display); font-weight: 700; }
.owner-tag {
    display: inline-flex; align-items: center; gap: 5px; margin-bottom: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700;
    background: rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.owner-tag .ic { width: 14px; height: 14px; }
.pet-caption {
    padding: 0 6px; font-size: 16.5px; color: var(--ink-2); white-space: normal; overflow-wrap: anywhere;
}

.card {
    position: relative; overflow: hidden;
    padding: 22px 20px; border-radius: var(--radius);
    background: var(--surface); box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 10px;
}
.card-title { display: flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 800; }
.ic.ok { color: #fff; background: var(--ok); border-radius: 50%; padding: 4px; width: 26px; height: 26px; }

.link-box { display: flex; gap: 8px; margin: 4px 0 6px; }
.link-box input {
    flex: 1; min-width: 0; padding: 0 14px; height: 46px;
    font: inherit; font-size: 14px; color: var(--ink-2);
    background: var(--bg); border: 1.5px solid var(--line); border-radius: 14px; outline: none;
}
.link-box .icon-btn { height: 46px; box-shadow: none; background: var(--soft); color: var(--primary); }

.stats-top { display: flex; align-items: center; gap: 22px; }
.stats-top > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.big-score { font-family: var(--font-display); font-size: 50px; font-weight: 700; line-height: 1; }
.dist { flex: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.dist li { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.dist li > span { width: 8px; text-align: right; font-weight: 700; }
.dist li > .ic { color: var(--gold); }
.dist i { flex: 1; height: 7px; border-radius: 9px; background: #F6ECE3; overflow: hidden; }
.dist i b { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, #FFCB5C, var(--gold)); }
.dist em { width: 22px; font-style: normal; text-align: right; }
.owner-note { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.danger-zone { display: flex; justify-content: center; margin: 0; }

/* rating */
.rate-card, .done-card { align-items: center; text-align: center; padding: 26px 20px 22px; }
.rate-card h2, .done-card h2 { font-size: 22px; font-weight: 800; }
.star-picker { display: flex; justify-content: center; gap: 4px; margin: 12px 0 2px; }
.star-picker input { position: absolute; opacity: 0; pointer-events: none; }
.star-picker label {
    cursor: pointer; padding: 3px; color: #F1E2D3;
    transition: transform .18s cubic-bezier(.3, 1.6, .5, 1), color .15s;
}
.star-picker label .ic { width: 48px; height: 48px; filter: drop-shadow(0 3px 4px rgba(200, 120, 0, 0)); }
.star-picker input:focus-visible + label { outline: 3px solid rgba(255, 148, 89, .4); border-radius: 12px; }
.star-picker[data-v="1"] label:nth-of-type(-n+1),
.star-picker[data-v="2"] label:nth-of-type(-n+2),
.star-picker[data-v="3"] label:nth-of-type(-n+3),
.star-picker[data-v="4"] label:nth-of-type(-n+4),
.star-picker[data-v="5"] label:nth-of-type(-n+5) { color: var(--gold); }
.star-picker[data-v] label .ic { filter: drop-shadow(0 3px 5px rgba(230, 150, 0, .28)); }
.star-picker label.pop { animation: starpop .38s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes starpop { 40% { transform: scale(1.35) rotate(-8deg); } }
.star-word { min-height: 26px; margin-bottom: 8px; font-weight: 800; font-size: 17px; color: var(--primary); }
.rate-card .star-word:not(.on) { color: var(--muted); font-weight: 600; font-size: 14.5px; }

.rate-again { display: inline-block; margin-top: 14px; color: var(--muted); font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta-btn { margin-top: 18px; }
.cta-btn + .rate-again { margin-top: 12px; }
.cta-btn .ic { width: 18px; height: 18px; }
.done-card .eyebrow { margin-top: 10px; }
.done-card .stars-static { margin-top: 2px; }
.done-card .star-word { margin: 6px 0 0; }
.done-heart {
    display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 4px;
    border-radius: 50%; color: #fff; background: linear-gradient(135deg, #FF8A9B, #FF5A6E);
    box-shadow: 0 10px 22px -8px rgba(255, 90, 110, .7);
    animation: beat 1.2s ease-in-out .3s 2;
}
.done-heart .ic { width: 32px; height: 32px; }
@keyframes beat { 30% { transform: scale(1.18); } 60% { transform: scale(.96); } }
.is-new { animation: rise .45s both; }

.confetti { position: absolute; inset: 0; pointer-events: none; }
.confetti i {
    position: absolute; top: -12px; width: 8px; height: 13px; border-radius: 3px; opacity: 0;
    animation: drop 1.6s ease-in forwards;
}
.confetti i:nth-child(1) { left: 8%;  background: var(--primary); animation-delay: .05s; }
.confetti i:nth-child(2) { left: 20%; background: var(--gold); animation-delay: .25s; }
.confetti i:nth-child(3) { left: 33%; background: #7FD1AE; animation-delay: .1s; }
.confetti i:nth-child(4) { left: 46%; background: #FF8A9B; animation-delay: .35s; }
.confetti i:nth-child(5) { left: 59%; background: var(--primary-2); animation-delay: .15s; }
.confetti i:nth-child(6) { left: 71%; background: #8FB8FF; animation-delay: .3s; }
.confetti i:nth-child(7) { left: 83%; background: var(--gold); animation-delay: 0s; }
.confetti i:nth-child(8) { left: 93%; background: #7FD1AE; animation-delay: .2s; }
@keyframes drop {
    0% { opacity: 1; transform: translateY(0) rotate(0); }
    100% { opacity: 0; transform: translateY(260px) rotate(540deg); }
}

.promo {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    border-radius: var(--radius); text-decoration: none;
    background: linear-gradient(135deg, #FFF1D3, #FFE1CF);
}
.promo b { display: block; font-size: 15.5px; }
.promo small { display: block; font-size: 13px; color: var(--ink-2); }
.promo > span:nth-child(2) { flex: 1; }
.promo-icon {
    display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px;
    color: #fff; background: linear-gradient(135deg, var(--primary-2), var(--primary));
}
.promo-arrow { color: var(--primary); transform: rotate(180deg); }

/* ---------- toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: calc(100px + var(--safe-b)); z-index: 50;
    padding: 12px 20px; border-radius: 999px;
    font-size: 15px; font-weight: 700; color: #fff; background: rgba(43, 33, 28, .92);
    transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .25s cubic-bezier(.3, 1.4, .5, 1);
    white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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