@font-face { font-family: Poppins; font-weight: 400; src: url(../fonts/poppins-400.woff) format("woff"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 500; src: url(../fonts/poppins-500.woff) format("woff"); font-display: swap; }
@font-face { font-family: Poppins; font-weight: 700; src: url(../fonts/poppins-700.woff) format("woff"); font-display: swap; }

:root {
  --ink: #14213d;
  --soft: #5f6880;
  --line: #eceae6;
  --wash: #f6f4f1;
  --white: #fff;
  --pink: #d23a12;
  --violet: #14213d;
  --glow: linear-gradient(135deg, #f4622e, #dc3d15);
  --ring: conic-gradient(from 210deg, #ffc247, #f2542d, #ffc247);
  --shadow: 0 10px 34px rgba(20, 33, 61, .1);
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1rem/1.6 Poppins, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--pink); text-underline-offset: .18em; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.14; letter-spacing: -.022em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); }
h2 { margin-top: 2.25rem; margin-bottom: .6rem; font-size: 1.28rem; }
h3 { font-size: 1.08rem; }
p { margin: .55rem 0; text-wrap: pretty; }
small { color: var(--soft); font-size: .8rem; }
code { font-size: .82em; word-break: break-all; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
[hidden] { display: none !important; }
.icon { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; min-height: 3.75rem; padding: .45rem var(--gutter); background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.top a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
.tabs { display: flex; gap: .15rem; margin-left: auto; }
.tabs a { position: relative; display: flex; align-items: center; gap: .4rem; padding: .48rem .75rem; border-radius: 12px; color: var(--soft); font-size: .88rem; font-weight: 500; transition: background .15s, color .15s; }
.tabs a:hover { background: var(--wash); color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); background: var(--wash); }
.tabs .icon { width: 1.2rem; height: 1.2rem; }
.tab-create { color: var(--white) !important; background: var(--glow) !important; }
.count { min-width: 1.15rem; padding: 0 .28rem; border-radius: 99px; background: var(--pink); color: var(--white); font-size: .66rem; font-weight: 700; line-height: 1.15rem; text-align: center; }
.balance { color: var(--pink); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.top-link { margin-left: auto; color: var(--ink); font-weight: 500; }
.only-narrow { display: none; }

.page { width: min(100% - 2 * var(--gutter), 70rem); margin: clamp(1.25rem, 4vw, 2.5rem) auto 3.5rem; }
.narrow { width: min(100% - 2 * var(--gutter), 36rem); }
.center-page { padding-top: 10vh; text-align: center; }
.lead { max-width: 38rem; color: var(--soft); font-size: 1.04rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem; padding: 1.75rem 1rem; border-top: 1px solid var(--line); font-size: .8rem; }
.foot a { color: var(--soft); text-decoration: none; }
.flash { width: min(100% - 2 * var(--gutter), 36rem); margin: 1rem auto 0; padding: .75rem 1rem; border-radius: 14px; background: #e8f8f0; color: #0d6b43; font-size: .92rem; font-weight: 500; animation: rise .35s var(--ease); }
.flash-error { background: #ffece3; color: #b02e0c; }
.note { padding: .8rem 1rem; border-radius: 14px; background: var(--wash); }
.aside-link { margin-top: 1rem; color: var(--soft); font-size: .92rem; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .9rem; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .62rem 1.3rem; border: 0; border-radius: 14px; font: 500 .94rem/1.2 Poppins, sans-serif; text-align: center; text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-main { background: var(--glow); color: var(--white); font-weight: 700; }
.btn-main:hover { filter: brightness(1.05); box-shadow: 0 8px 24px rgba(242, 84, 45, .32); }
.btn-large { min-height: 3.4rem; padding-inline: 1.9rem; font-size: 1rem; }
.btn-plain { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-plain:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-soft { background: var(--wash); color: var(--ink); }
.btn-soft:hover { background: var(--line); }
.btn-white { background: var(--white); color: var(--pink); font-weight: 700; }
.btn-line { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
.btn-danger { background: #ffece3; color: #b02e0c; }
.linkish { min-height: 2rem; padding: 0; border: 0; background: none; color: var(--soft); font: 500 .84rem Poppins, sans-serif; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.chip { display: inline-flex; align-items: center; padding: .28rem .7rem; border-radius: 99px; background: var(--wash); color: var(--ink); font-size: .76rem; font-weight: 500; text-decoration: none; white-space: nowrap; }
.chip-hot { background: #ffece3; color: var(--pink); }

.form { display: flex; flex-direction: column; margin-top: 1.4rem; }
.form + .form { margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.form .btn { align-self: flex-start; margin-top: 1.3rem; }
.form h2 { margin-top: 0; }
label { font-size: .85rem; font-weight: 500; }
.form > label, .form .two label, .oracle label, .sheet label, .panel form > label { display: block; margin: .95rem 0 .3rem; }
.form small { margin-top: .3rem; }
input, select, textarea { width: 100%; min-height: 2.95rem; padding: .62rem .85rem; border: 1.5px solid transparent; border-radius: 14px; background: var(--wash); color: var(--ink); font: 400 1rem/1.4 Poppins, sans-serif; transition: border-color .15s, background .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); outline: 0; background: var(--white); }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { flex: none; width: 1.15rem; height: 1.15rem; min-height: 0; margin: .15rem 0 0; accent-color: #f2542d; }
input[type=file] { padding: .45rem; color: var(--soft); font-size: .86rem; }
input[type=file]::file-selector-button { margin-right: .7rem; padding: .42rem .85rem; border: 0; border-radius: 10px; background: var(--white); color: var(--ink); font: 500 .84rem Poppins, sans-serif; cursor: pointer; }
.form > .check, .check { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; font-weight: 400; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.trap { position: absolute; left: -9999px; }
.choice { display: grid; gap: .55rem; margin: 1.1rem 0 0; padding: 0; border: 0; }
.choice legend { margin-bottom: .4rem; padding: 0; font-size: .85rem; font-weight: 500; }
.choice label { display: flex; gap: .65rem; padding: .8rem .9rem; border: 1.5px solid var(--line); border-radius: 14px; font-weight: 400; cursor: pointer; }
.choice label:has(:checked) { border-color: #f2542d; background: #fff4ee; }
.choice b { display: block; font-size: .96rem; }
.choice.inline { grid-template-columns: 1fr 1fr; }
.danger { padding: 1.2rem; border: 1.5px solid #ffd6c6 !important; border-radius: 18px; }
.copy-line { display: flex; gap: .45rem; margin: .6rem 0; }
.copy-line input { min-width: 0; font-size: .82rem; }
.copy-line .btn { flex: none; }

.avatar { display: inline-block; flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; object-fit: cover; object-position: 50% 18%; background: var(--wash); }
.avatar-empty { display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; font-weight: 700; }
.tone-1 { background: #ffe9c7; color: #8a5200; }
.tone-2 { background: #ffe6da; color: #b02e0c; }
.tone-3 { background: #d9f5ea; color: #0d6b43; }
.tone-4 { background: #e3e9f7; color: #27407a; }
.avatar-lg { width: 6rem; height: 6rem; font-size: 2.2rem; }
.avatar-xl { width: 6.4rem; height: 6.4rem; font-size: 2.4rem; }
.ring { display: inline-block; padding: 3px; border-radius: 50%; background: var(--ring); }
.ring .avatar { display: flex; border: 3px solid var(--white); }
.id-head { display: flex; gap: 1.2rem; align-items: center; }
.id-head h1 { font-size: clamp(1.6rem, 6vw, 2.2rem); }
.id-head p { margin: .1rem 0; color: var(--soft); font-size: .9rem; }
.tally { margin-top: 1.3rem; color: var(--soft); }
.tally b { color: var(--ink); font-size: 1.35rem; }
.plain-list li { display: flex; flex-wrap: wrap; gap: .25rem .8rem; align-items: center; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.plain-list li > span:not(.avatar) { flex: 1; }
.plain-list b, .plain-list small { display: block; }

.top-home { position: static; border: 0; }
.land { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; width: min(100% - 2 * var(--gutter), 70rem); min-height: calc(100svh - 7rem); margin: 0 auto; padding: 1.5rem 0 3rem; }
.land-date { margin: 0 0 1rem; color: var(--pink); font-size: .9rem; font-weight: 500; }
.land h1 { font-size: clamp(2.5rem, 6.2vw, 4.5rem); line-height: 1.05; letter-spacing: -.035em; }
.land .lead { margin: 1.2rem 0 1.7rem; font-size: 1.12rem; }
.land-show { padding: clamp(1.25rem, 4vw, 2.75rem); border-radius: 36px; background: var(--glow); }
.demo-card { display: flex; flex-direction: column; align-items: center; gap: .7rem; padding: 2rem 1.4rem 1.5rem; border-radius: 26px; background: var(--white); text-align: center; box-shadow: 0 24px 60px rgba(120, 40, 10, .3); animation: float .9s var(--ease) both; }
@keyframes float { from { opacity: 0; transform: translateY(26px) rotate(-2deg); } }
.demo-photo { display: grid; place-items: center; width: 6rem; height: 6rem; border-radius: 50%; background: #ffe6da; color: var(--pink); font-size: 2.4rem; font-weight: 700; box-shadow: 0 0 0 3px var(--white), 0 0 0 6px #f2542d; }
.demo-card strong { font-size: 1.55rem; line-height: 1.15; letter-spacing: -.02em; }
.demo-card em { color: var(--soft); font-style: normal; }
.demo-names { display: flex; align-items: center; margin-top: .3rem; font-size: .8rem; }
.demo-names i { display: grid; place-items: center; width: 2rem; height: 2rem; margin-left: -.4rem; border: 2px solid var(--white); border-radius: 50%; background: #e3e9f7; color: #27407a; font-style: normal; font-weight: 700; }
.demo-names i:nth-child(2n) { background: #ffe9c7; color: #8a5200; }
.demo-names b { margin-left: .5rem; font-weight: 500; }
.how { width: min(100% - 2 * var(--gutter), 70rem); margin: 0 auto; padding: 3rem 0 4.5rem; border-top: 1px solid var(--line); }
.how h2 { margin: 0 0 1.75rem; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.how ol { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.75rem; }
.how li { counter-increment: step; }
.how li::before { content: counter(step); display: grid; place-items: center; width: 2.2rem; height: 2.2rem; margin-bottom: .75rem; border-radius: 50%; background: var(--glow); color: var(--white); font-weight: 700; }
.how p { color: var(--soft); }

.feed-page { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.head-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.head-row h1 { margin-right: auto; }
.spot { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .75rem; margin-top: 1rem; }
.spot-card, .rank { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 20px; background: var(--wash); isolation: isolate; }
.spot-card { content-visibility: auto; contain-intrinsic-size: 15rem 18.75rem; animation: rise .35s var(--ease) backwards; }
.tag { position: absolute; left: .55rem; top: .55rem; z-index: 2; padding: .1rem .55rem; border-radius: 99px; background: var(--white); color: var(--pink); font-size: .7rem; font-weight: 700; }
.spot-card:target { box-shadow: 0 0 0 3px #f2542d; }
.spot-img { display: flex; width: 100%; height: 100%; border-radius: 0; font-size: clamp(4rem, 16vw, 6.5rem); transition: transform .5s var(--ease); }
.spot-card:hover .spot-img, .rank:hover .spot-img { transform: scale(1.04); }
.spot-over { position: absolute; inset: auto 0 0; z-index: 1; padding: 3.5rem .75rem .75rem; background: linear-gradient(transparent, rgba(10, 8, 16, .84) 62%); color: var(--white); }
.spot-over h2 { margin: 0; overflow: hidden; font-size: 1.05rem; text-overflow: ellipsis; white-space: nowrap; }
.spot-over p { margin: .05rem 0 .55rem; overflow: hidden; font-size: .72rem; opacity: .92; text-overflow: ellipsis; white-space: nowrap; }
.spot-over .btn { min-height: 2.45rem; padding: .35rem .6rem; font-size: .84rem; }
.spot-over .is-sent { background: var(--white); color: var(--ink); }
.spot-over .btn { width: 100%; }
.spot-over a { color: var(--white); font-size: .78rem; }
.spot-over small { color: var(--white); opacity: .85; }
.empty { margin-top: 1rem; padding: 2rem 1.4rem; border-radius: 24px; background: var(--wash); text-align: center; }
.empty h2 { margin-top: 0; }
.filters-box { margin-top: 1.25rem; }
.filters-box summary { color: var(--soft); font-size: .86rem; font-weight: 500; cursor: pointer; }
.filters { display: flex; flex-wrap: wrap; gap: .65rem; align-items: flex-end; margin-top: .8rem; }
.filters label { flex: 1 1 9rem; color: var(--soft); font-size: .78rem; }
.filters input, .filters select { margin-top: .25rem; }
.side { display: grid; gap: .9rem; position: sticky; top: 5rem; }
.panel { margin-top: 1rem; padding: 1.1rem; border: 1px solid var(--line); border-radius: 22px; }
.side .panel { margin: 0; }
.panel h2 { margin: 0 0 .5rem; font-size: 1.02rem; }
.panel p { color: var(--soft); font-size: .86rem; }
.panel .btn { margin-top: .4rem; }
.panel form .btn { margin-top: 1rem; }
.panel-color { border: 0; background: var(--glow); color: var(--white); }
.panel-color p { color: var(--white); opacity: .92; }
.panel-color input { background: rgba(255, 255, 255, .2); color: var(--white); }
.people li, .person-btn { display: flex; gap: .65rem; align-items: center; }
.people li { padding: .3rem 0; }
.person-btn { width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.people .avatar, .leader .avatar { width: 2.5rem; height: 2.5rem; font-size: .95rem; }
.people b, .people small, .leader b, .leader small { display: block; line-height: 1.3; }
.people b, .leader b { font-size: .88rem; font-weight: 500; }
.leader { display: flex; gap: .65rem; align-items: center; color: inherit; text-decoration: none; }
.echoes { margin-top: .6rem; }
.echoes li { padding: .18rem 0; color: var(--soft); font-size: .78rem; }
.echoes b { color: var(--ink); font-weight: 500; }

.sheet { width: min(100% - 1.5rem, 30rem); padding: 1.4rem; border: 0; border-radius: 24px; background: var(--white); color: var(--ink); box-shadow: 0 24px 80px rgba(20, 33, 61, .3); }
.sheet[open] { animation: rise .25s var(--ease); }
.sheet::backdrop { background: rgba(20, 33, 61, .5); }
.sheet h2 { margin-top: 0; }
.sheet .check { display: flex; }

.ranks { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: .8rem; align-items: end; margin-top: 1.5rem; }
.rank a:first-child { display: block; height: 100%; }
.rank-1 { box-shadow: 0 0 0 3px var(--white), 0 0 0 6px #f2542d; }
.rank .spot-over { pointer-events: none; }
.rank .spot-over a { pointer-events: auto; }
.rank h2 { font-size: clamp(1rem, 3vw, 1.4rem); }
.rank-1 .spot-over h2 { white-space: normal; }
.race { margin-top: 1rem; color: var(--pink); font-size: .88rem; font-weight: 500; }
.oracle { display: flex; gap: 1rem; margin-top: 1.75rem; padding: 1.2rem; border-radius: 22px; background: var(--wash); }
.oracle form { flex: 1; min-width: 0; }
.oracle h2 { margin: 0; }
.oracle textarea { background: var(--white); }
.oracle .btn { margin-top: .8rem; }
.feed { display: grid; margin-top: .4rem; }
.feed > li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.wall .feed { display: block; columns: 19rem 2; column-gap: 2.5rem; }
.wall .feed > li { break-inside: avoid; }
.feed-text { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.feed-meta { margin: 0; font-size: .84rem; line-height: 1.35; }
.feed-meta a { color: inherit; font-weight: 700; text-decoration: none; }
.feed-head { display: flex; gap: .6rem; align-items: center; margin-bottom: .5rem; }
.feed .is-diamond .feed-text { padding-left: .7rem; border-left: 3px solid #2f6fed; }
.feed .is-new { margin-inline: -.75rem; padding-inline: .75rem; border-radius: 16px; background: #fff4ee; border-bottom-color: transparent; }
.feed .is-system .feed-text { color: var(--soft); font-size: .9rem; }
.report { margin-top: .3rem; color: var(--soft); font-size: .74rem; }
.report summary { cursor: pointer; }
.report form { display: flex; flex-wrap: wrap; gap: .45rem; align-items: flex-end; margin-top: .4rem; }
.report label { flex: 1 1 8rem; }
.pager { display: flex; gap: 1.1rem; justify-content: center; margin: 1.5rem 0; color: var(--soft); font-size: .84rem; }

.choices { display: grid; gap: .8rem; margin-top: 1.25rem; }
.choice-card { display: block; padding: 1.25rem; border: 1.5px solid var(--line); border-radius: 22px; color: var(--ink); text-decoration: none; transition: transform .18s var(--ease), box-shadow .2s; }
.choice-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.choice-card b { display: block; font-size: 1.15rem; }
.choice-card span { color: var(--soft); font-size: .9rem; }
.choice-hot { border: 0; background: var(--glow); color: var(--white); }
.choice-hot span { color: var(--white); }
.relatives li { display: grid; grid-template-columns: auto 1fr auto; gap: .2rem .7rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.rel-main b, .rel-main small { display: block; line-height: 1.3; }
.rel-actions { grid-column: 2 / -1; display: flex; gap: .85rem; align-items: center; margin-top: .3rem; }
.rel-actions .btn { min-height: 2.3rem; padding: .35rem .8rem; font-size: .8rem; }
.sign-head { text-align: center; }
.sign-head .ring { margin-bottom: .6rem; }
.sign-head .lead { margin-inline: auto; }
.signed-by { color: var(--soft); font-size: .84rem; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.preview { position: sticky; top: 5.5rem; padding: 4.5rem 1.25rem 1.25rem; border-radius: 28px; background: var(--glow); }
.gift { position: relative; padding: 4.6rem clamp(1.1rem, 4vw, 1.75rem) 1.6rem; border-radius: 26px; background: var(--white); color: var(--ink); text-align: center; box-shadow: 0 24px 60px rgba(120, 40, 10, .3); }
.avatar-gift { position: absolute; top: -3.6rem; left: 50%; display: flex; width: 7.2rem; height: 7.2rem; margin-left: -3.6rem; font-size: 2.8rem; box-shadow: 0 0 0 4px var(--white), 0 0 0 7px #f2542d; }
.gift h1, .gift h2 { margin: 0; font-size: clamp(1.7rem, 7vw, 2.2rem); }
.gift-text { color: #3c3c48; font-size: 1.05rem; overflow-wrap: anywhere; }
.gift-from { margin-bottom: 0; color: var(--soft); font-size: .86rem; font-weight: 500; }
.pot-line { color: var(--pink); font-weight: 700; }
.signs { display: grid; gap: .6rem; margin-top: 1.2rem; text-align: left; }
.signs li { padding: .8rem .9rem; border-radius: 16px; background: var(--wash); overflow-wrap: anywhere; }
.signs p { margin: 0 0 .15rem; font-size: .92rem; }
.signs b { font-size: .78rem; }

.on-color { min-height: 100svh; background: linear-gradient(165deg, #f9743a, #e2441b 58%, #b92d10) fixed; color: var(--white); }
.on-color .flash { color: var(--ink); }
.reveal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; width: min(100% - 2 * var(--gutter), 28rem); min-height: 100svh; margin: 0 auto; padding: 5.5rem 0 2rem; }
.reveal-wide { width: min(100% - 2 * var(--gutter), 34rem); }
.blow { text-align: center; }
.blow-for { margin: 0 0 1rem; font-size: clamp(2.2rem, 10vw, 3.2rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.blow-hint { margin: 0; font-weight: 500; }
.big-candle { position: relative; padding: 5.5rem 3rem 0; border: 0; background: none; cursor: pointer; }
.candle { position: relative; display: block; width: 44px; height: 190px; margin: 0 auto; border-radius: 12px 12px 4px 4px; background: repeating-linear-gradient(145deg, #fff 0 18px, #ffe6da 18px 36px); box-shadow: 0 16px 40px rgba(100, 30, 8, .28); }
.candle::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 3px; height: 15px; margin-left: -1.5px; background: var(--white); }
.candle.lit::after { content: ""; position: absolute; left: 50%; bottom: calc(100% + 10px); width: 38px; height: 62px; margin-left: -19px; border-radius: 50% 50% 50% 50% / 66% 66% 34% 34%; background: radial-gradient(ellipse at 50% 72%, #fff 0 28%, #fff2b8 50%, #ffc93c 78%); box-shadow: 0 0 34px 12px rgba(255, 230, 150, .65); transform-origin: 50% 100%; animation: flicker 1.9s ease-in-out infinite alternate; }
@keyframes flicker { from { transform: scale(1) rotate(-2deg); } to { transform: scale(.95, 1.06) rotate(2deg); } }
.blown .candle.lit::after { opacity: 0; transform: translateY(-10px) scale(.2); transition: .25s; animation: none; }
.js .reveal [data-gift], .js .reveal [data-gift-actions] { display: none; }
.js .opened [data-blow] { display: none; }
.js .opened [data-gift] { display: block; margin-top: 3.2rem; animation: pop .6s var(--ease); }
.js .opened [data-gift-actions] { display: flex; animation: rise .5s .25s var(--ease) backwards; }
html:not(.js) [data-blow] { display: none; }
.reveal [data-gift] { width: 100%; margin-top: 3.2rem; }
.gift-actions { display: flex; flex-direction: column; gap: .6rem; width: 100%; }
.gift-actions form { text-align: center; }
.gift-actions .linkish { color: var(--white); font-weight: 400; }
.gift h1:focus { outline: 0; }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.94); } }
.sprinkles { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.sprinkles i { position: absolute; top: -14px; left: var(--x); width: 9px; height: 14px; border-radius: 2px; background: var(--white); animation: fall 2.2s var(--d) cubic-bezier(.3, .6, .5, 1) both; }
.sprinkles i:nth-child(3n) { background: #ffd23f; }
.sprinkles i:nth-child(3n+1) { background: #7be6c6; }
@keyframes fall { to { transform: translateY(106vh) rotate(var(--r)); } }

.prose h2 { font-size: 1.1rem; }
.prose ul { padding-left: 1.1rem; list-style: disc; }
.prose p, .prose li { color: var(--soft); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
th, td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--soft); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
.actions form { display: inline-block; margin-right: .7rem; }
.is-banned { opacity: .5; }

/* Formulaires */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.auth { width: min(100% - 2 * var(--gutter), 27rem); }
.auth h1 { text-align: center; }
.auth .aside-link { text-align: center; }
.card-form { padding: clamp(1.1rem, 4vw, 1.6rem); border: 1px solid var(--line); border-radius: 24px; background: var(--white); box-shadow: 0 8px 30px rgba(20, 33, 61, .06); }
.form + .card-form { padding-top: clamp(1.1rem, 4vw, 1.6rem); border-top: 1px solid var(--line); margin-top: 1.25rem; }
.btn-full, .card-form > .btn { width: 100%; align-self: stretch !important; }
.step { min-width: 0; margin: 0; padding: 0; border: 0; }
.step legend { padding: 0; font-size: 1.15rem; font-weight: 700; }
.step + .step { margin-top: 1.5rem; }
.js [data-steps].is-wizard .step { display: none; margin: 0; animation: rise .25s var(--ease); }
.js [data-steps].is-wizard .step.is-on { display: block; }
.step > label, .step > .pass-box + small { display: block; }
.step > label { margin: .95rem 0 .3rem; }
.step > label.check { display: flex; }
.step-nav { flex-wrap: nowrap; }
.step-nav .btn { flex: 1; margin-top: .4rem; }
.steps-bar { height: 5px; margin: 1rem 0 -.3rem; overflow: hidden; border-radius: 9px; background: var(--wash); }
.steps-bar i { display: block; width: var(--p, 33%); height: 100%; border-radius: inherit; background: var(--glow); transition: width .3s var(--ease); }
.trio { display: grid; grid-template-columns: 1fr 1.5fr 1.1fr; gap: .45rem; margin: .95rem 0 .2rem; padding: 0; border: 0; }
.trio legend { margin-bottom: .3rem; padding: 0; font-size: .85rem; font-weight: 500; }
.trio select { padding-inline: .55rem; }
.pass-box { position: relative; }
.pass-box input { padding-right: 5.2rem; }
.pass-toggle { position: absolute; right: .35rem; top: .35rem; bottom: .35rem; padding: 0 .65rem; border: 0; border-radius: 10px; background: transparent; color: var(--soft); font: 500 .76rem Poppins, sans-serif; cursor: pointer; }
.meter { height: 4px; margin-top: .4rem; overflow: hidden; border-radius: 9px; background: var(--wash); }
.meter i { display: block; width: var(--s, 0); height: 100%; background: var(--c, #dc3d15); transition: width .2s; }
.forgot { align-self: flex-end; margin-top: .55rem; font-size: .8rem; text-decoration: none; }
.photo-pick { display: flex !important; gap: .8rem; align-items: center; margin: .3rem 0 .4rem !important; padding: .6rem; border: 1.5px dashed var(--line); border-radius: 18px; cursor: pointer; }
.photo-pick:hover, .photo-pick:focus-within { border-color: var(--pink); }
.photo-pick img, .photo-empty { flex: none; width: 3.6rem; height: 3.6rem; border-radius: 50%; object-fit: cover; }
.photo-empty { display: grid; place-items: center; background: #ffece3; color: var(--pink); }
.photo-text b, .photo-text small { display: block; }
.char-count { align-self: flex-end; margin-top: .15rem; color: var(--soft); font-size: .7rem; }
.form-error { margin: .6rem 0 0; color: var(--pink); font-size: .85rem; }
.btn.is-busy { opacity: .7; }
.suggest { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.suggest button { padding: .32rem .7rem; border: 0; border-radius: 99px; background: var(--wash); color: var(--ink); font: 500 .76rem Poppins, sans-serif; cursor: pointer; }
.danger-box { margin-top: 1.5rem; color: var(--soft); font-size: .86rem; }
.danger-box summary { cursor: pointer; }

.spot-img.avatar-empty { align-items: flex-start; padding-top: 24%; }
.app-box .btn-soft { background: var(--white); }

/* Cercle */
.muted { margin: .1rem 0; color: var(--soft); font-size: .88rem; }
.searchbar { display: grid; grid-template-columns: 1.5fr 1fr 1fr auto; gap: .45rem; margin-top: 1rem; }
.searchbar input, .searchbar select { min-width: 0; font-size: .86rem; }
.filters-row { display: flex; gap: .4rem; margin: .7rem calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
.filters-row::-webkit-scrollbar { display: none; }
.chip-on { background: var(--ink); color: var(--white); }
.more { margin-top: 1.1rem; text-align: center; }
.toast { position: fixed; left: 50%; bottom: calc(5rem + env(safe-area-inset-bottom)); z-index: 40; max-width: calc(100% - 2rem); margin: 0; padding: .6rem 1rem; border-radius: 99px; background: var(--ink); color: var(--white); font-size: .86rem; transform: translateX(-50%); animation: rise .25s var(--ease); }

/* Profil */
.pro-head { display: flex; gap: clamp(1rem, 5vw, 2.25rem); align-items: center; }
.ring-big .avatar-xl { width: clamp(5.2rem, 22vw, 8rem); height: clamp(5.2rem, 22vw, 8rem); font-size: 2.6rem; }
.pro-main { flex: 1; min-width: 0; }
.pro-main h1 { font-size: clamp(1.35rem, 5.5vw, 1.9rem); overflow-wrap: anywhere; }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 99px; background: #e3e9f7; color: #27407a; font-size: .68rem; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.pro-stats { display: flex; gap: clamp(1rem, 5vw, 2rem); margin-top: .65rem; color: var(--soft); font-size: .76rem; }
.pro-stats b { display: block; color: var(--ink); font-size: 1.12rem; line-height: 1.2; }
.pro-bio { margin: 1rem 0 0; }
.pro-line { margin: .3rem 0 0; color: var(--soft); font-size: .84rem; }
.pro-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1rem; }
.pro-actions > *, .pro-actions form .btn { flex: 1 1 8rem; width: 100%; }
.pro-actions form { display: flex; }
.pro-title { display: flex; align-items: baseline; justify-content: space-between; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin-inline: calc(var(--gutter) * -.35); overflow: hidden; border-radius: 16px; }
.tiles li { display: flex; flex-direction: column; justify-content: space-between; aspect-ratio: 1; padding: .6rem; overflow: hidden; }
.tiles p { display: -webkit-box; margin: 0; overflow: hidden; font-size: clamp(.68rem, 2.6vw, .86rem); font-weight: 500; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.tiles small { overflow: hidden; color: inherit; font-size: .64rem; opacity: .8; text-overflow: ellipsis; white-space: nowrap; }
.tile-1 { background: #ffece3; }
.tile-2 { background: var(--ink); color: var(--white); }
.tile-3 { background: #ffefc9; }
.tile-4 { background: var(--glow); color: var(--white); }
.app-box { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; margin-top: 1.2rem; padding: .9rem 1rem; border-radius: 18px; background: var(--wash); }
.app-box b, .app-box small { display: block; }
.app-box .row { margin: 0; }
.pro-foot { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .84rem; }

/* En-tête et accueil membre */
.me-link { display: flex; }
.me-link .avatar { width: 2.2rem; height: 2.2rem; font-size: .85rem; box-shadow: 0 0 0 2px var(--white), 0 0 0 3.5px #f2542d; }
.tab-avatar { width: 1.45rem; height: 1.45rem; font-size: .62rem; }
.tabs a[aria-current] .tab-avatar { box-shadow: 0 0 0 1.5px var(--white), 0 0 0 3px var(--pink); }
.me-card { display: flex; gap: .75rem; align-items: center; margin-top: .9rem; padding: .75rem; border: 1px solid var(--line); border-radius: 20px; }
.me-card > div { flex: 1; min-width: 0; line-height: 1.3; }
.me-card b, .me-card small { display: block; }
.me-card .btn { flex: none; min-height: 2.5rem; padding: .4rem .8rem; font-size: .8rem; }
.app-banner { position: relative; display: flex; gap: .7rem; align-items: center; margin-top: .6rem; padding: .65rem 2rem .65rem .7rem; border-radius: 18px; background: var(--ink); color: var(--white); }
.app-banner img { border-radius: 11px; }
.app-banner > div { flex: 1; min-width: 0; line-height: 1.3; }
.app-banner b, .app-banner small { display: block; }
.app-banner small { color: #cfd6e6; }
.app-banner .btn { flex: none; min-height: 2.4rem; padding: .3rem .8rem; font-size: .8rem; }
.banner-close { position: absolute; top: .2rem; right: .3rem; width: 1.8rem; height: 1.8rem; border: 0; background: none; color: var(--white); font-size: 1.2rem; cursor: pointer; }

/* Cadeaux */
.gift-ico { width: 2rem; height: 2rem; fill: none; stroke: var(--pink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.after-wish h2 { margin-top: 0; }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.4rem, 1fr)); gap: .5rem; margin: .8rem 0; }
.gift-tile { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .7rem .4rem; border-radius: 16px; background: #fff4ee; color: var(--ink); text-align: center; text-decoration: none; }
.gift-tile b { font-size: .8rem; font-weight: 500; }
.gift-tile small { font-size: .68rem; }
.gift-head { text-align: center; }
.gift-head h1 { margin-top: .5rem; font-size: 1.6rem; }
.gift-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; margin: 0; padding: 0; border: 0; }
.gift-pick legend { margin-bottom: .4rem; padding: 0; font-size: .85rem; font-weight: 500; }
.gift-pick span { display: flex; flex-direction: column; align-items: center; height: 100%; padding: .75rem .4rem; border: 1.5px solid var(--line); border-radius: 16px; text-align: center; cursor: pointer; }
.gift-pick input:checked + span { border-color: #f2542d; background: #fff4ee; }
.gift-pick input:focus-visible + span { outline: 2px solid var(--ink); }
.gift-pick small { font-size: .68rem; line-height: 1.35; }
[data-money-fields] label { display: block; margin: .9rem 0 .3rem; }
.showcase { display: flex; gap: .5rem; overflow-x: auto; }
.showcase li { display: grid; flex: none; justify-items: center; min-width: 5rem; padding: .55rem; border-radius: 16px; background: #fff4ee; }
.showcase b { font-size: .95rem; line-height: 1.1; }
.showcase small { font-size: .66rem; }

/* Fête */
.invite { padding: 1.6rem 1.1rem; border-radius: 26px; background: var(--glow); color: var(--white); text-align: center; }
.invite h1 { margin-top: .6rem; font-size: clamp(1.7rem, 7vw, 2.3rem); }
.invite-date { margin: .6rem 0 0; font-size: 1.05rem; font-weight: 700; }
.invite p { margin-block: .2rem; }
.invite-text { margin-top: .8rem !important; }
.invite small { color: var(--white); opacity: .9; }
.section-card { margin-top: 1.25rem; }
.section-card h2 { margin-top: 0; }
.rsvp .btn { flex: 1; }
.claim { display: flex; gap: .35rem; align-items: center; }
.claim input { width: 7.5rem; min-height: 2.4rem; padding: .3rem .6rem; font-size: .8rem; }
.claim .btn { min-height: 2.4rem; padding: .3rem .7rem; font-size: .76rem; }
.party-stats { margin-top: 1rem; }
.goal { display: grid; gap: .2rem; margin: .5rem 0; }
progress { width: 100%; height: .6rem; overflow: hidden; border: 0; border-radius: 9px; background: var(--wash); accent-color: #f2542d; }
progress::-webkit-progress-bar { background: var(--wash); }
progress::-webkit-progress-value { background: #e2441b; }
progress::-moz-progress-bar { background: #e2441b; }
.center-text { text-align: center; }

/* Connexion faible */
.offline-bar { position: sticky; top: 3.75rem; z-index: 15; margin: 0; padding: .45rem 1rem; background: var(--ink); color: var(--white); font-size: .78rem; text-align: center; }
.draft-note { margin: 0 0 .5rem; padding: .45rem .7rem; border-radius: 10px; background: #e8f8f0; color: #0d6b43; font-size: .78rem; }
.more-box { margin-top: 1rem; }
.more-box summary { color: var(--pink); font-size: .88rem; font-weight: 500; cursor: pointer; }
.more-box label { display: block; margin: .9rem 0 .3rem; }
.lite-box { display: flex; gap: .65rem; align-items: flex-start; margin-top: .7rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 18px; cursor: pointer; }
.lite-box b, .lite-box small { display: block; }
.lite *, .lite *::before, .lite *::after { animation: none !important; transition: none !important; }
.lite .card-form, .lite .demo-card { box-shadow: none; }

/* Offrir et cagnotte */
.spot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; }
.spot-over .spot-actions .btn { width: 100%; padding-inline: .2rem; font-size: .76rem; }
.spot-over .spot-actions .btn-gift { gap: .15rem; background: var(--white); color: var(--pink); font-weight: 700; }
.btn-gift .gift-ico { width: 1.1rem; height: 1.1rem; }
.people li { position: relative; }
.mini-gift { display: grid; flex: none; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: #fff4ee; }
.mini-gift .gift-ico { width: 1.2rem; height: 1.2rem; }
.choice-pot { border-color: #ffc247; background: #fff8e6; }
.pot h2 { margin-top: 0; }
.pot label { display: block; margin: .9rem 0 .3rem; }
.pot .btn { margin-top: 1rem; }
.pot, .pot-panel { margin-top: 1.25rem; }
.pot-pay { margin-top: .6rem; padding: .85rem; border-radius: 16px; background: #fff4ee; }
.pot-pay p { margin: .2rem 0; font-size: .9rem; }
.pot-panel form > label { display: block; margin: .8rem 0 .3rem; }
.pot-panel .check { display: flex; }
.goal small b { color: var(--ink); }
.post-act { min-height: 2rem; padding: 0; border: 0; background: none; color: var(--ink); font: 500 .78rem Poppins, sans-serif; cursor: pointer; }
.post-bar a.post-gift { display: inline-flex; gap: .25rem; align-items: center; padding: .22rem .6rem .22rem .4rem; border-radius: 99px; background: var(--white); color: var(--pink); font-weight: 700; text-decoration: none; }
.post:not(.post-short) .post-gift { background: #fff4ee; }
.post-gift .gift-ico { width: 1.05rem; height: 1.05rem; }
.rel-actions { flex-wrap: wrap; }

/* Réglages */
.admin { width: min(100% - 2 * var(--gutter), 56rem); }
.settings { margin-top: 1.25rem; padding: clamp(1rem, 4vw, 1.5rem); border: 1px solid var(--line); border-radius: 24px; }
.settings h2 { margin-top: 0; }
.agl-state { padding: .6rem .8rem; border-radius: 12px; font-size: .84rem; }
.agl-state.is-ok { background: #e8f8f0; color: #0d6b43; }
.agl-state.is-off { background: #fff8e6; color: #7a5200; }
.set-group { display: grid; gap: .45rem; margin: 1.1rem 0 0; padding: 0; border: 0; }
.set-group legend { margin-bottom: .4rem; padding: 0; font-weight: 700; }
.set-group label { display: flex; gap: .65rem; padding: .7rem .8rem; border: 1.5px solid var(--line); border-radius: 14px; font-size: .8rem; font-weight: 400; color: var(--soft); cursor: pointer; }
.set-group b { display: block; color: var(--ink); font-size: .92rem; }
.set-group label:has(:checked) { border-color: #f2542d; background: #fff4ee; }
.set-group .is-disabled { opacity: .5; cursor: not-allowed; }
.set-rate { display: block; margin: 1.1rem 0 .3rem; }
.settings input[type=number] { max-width: 7rem; }
.settings form > .btn { display: flex; margin-top: 1.1rem; }

.admin-chip { flex: none; padding: .28rem .7rem; border-radius: 99px; background: var(--ink); color: var(--white) !important; font-size: .76rem; font-weight: 700; }
.btn-dark { background: var(--ink); color: var(--white); font-weight: 700; }
@media (max-width: 430px) { .top:has(.admin-chip) .brand span { display: none; } }

.member-no { margin: .4rem 0 0; color: var(--soft); font-size: .78rem; }

/* Mur */
.wall { width: min(100% - 2 * var(--gutter), 62rem); }
.wall-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.top3 { display: flex; gap: .9rem; }
.top3 a { position: relative; display: grid; justify-items: center; width: 4.9rem; color: var(--ink); text-decoration: none; }
.top3 .avatar { width: 3.5rem; height: 3.5rem; }
.top3 i { position: absolute; top: 2.75rem; display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border: 2px solid var(--white); border-radius: 50%; background: var(--ink); color: var(--white); font-size: .62rem; font-style: normal; font-weight: 700; }
.top3 b { max-width: 100%; margin-top: .3rem; overflow: hidden; font-size: .76rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.top3 small { font-size: .64rem; }
.fav { margin-top: 1.2rem; padding: clamp(1.2rem, 4vw, 2rem); border-radius: 26px; background: var(--ink); color: var(--white); }
.fav small { color: #ffc247; font-weight: 500; }
.fav > p { margin: .45rem 0 1rem; font-size: clamp(1.25rem, 4vw, 1.85rem); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; overflow-wrap: anywhere; }
.fav-foot { display: flex; gap: .6rem; align-items: center; font-size: .82rem; }
.fav-foot > span { flex: 1; min-width: 0; }
.fav-foot a { color: inherit; font-weight: 700; }
.fav .like { color: var(--white); }
.wall .oracle { align-items: center; margin-top: .9rem; padding: .9rem; }
.wall .oracle h2 { font-size: 1rem; }
.inline-send { display: flex; gap: .4rem; margin-top: .5rem; }
.inline-send input { min-width: 0; background: var(--white); }
.inline-send .btn { margin: 0; flex: none; }
.wall-tabs { margin-top: 1.3rem; }
.posts { columns: 17rem 3; column-gap: .8rem; margin-top: .9rem; }
.post { break-inside: avoid; margin-bottom: .8rem; padding: .95rem; border: 1px solid var(--line); border-radius: 20px; background: var(--white); }
.post .feed-text { font-size: .96rem; }
.post-short { border: 0; }
.post-short .feed-text { font-size: 1.28rem; font-weight: 700; line-height: 1.25; letter-spacing: -.015em; }
.post-c1 { background: #fff4ee; }
.post-c2 { background: #ffefc9; }
.post-c3 { background: #e3e9f7; }
.post.is-diamond { box-shadow: inset 0 0 0 2px #2f6fed; }
.post-bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: .6rem; font-size: .78rem; }
.post-bar > a { color: var(--ink); font-weight: 500; }
.post-bar .report { margin: 0 0 0 auto; }
.like-form { display: inline-flex; }
.like { display: inline-flex; gap: .3rem; align-items: center; min-height: 2rem; padding: 0; border: 0; background: none; color: var(--ink); font: 500 .8rem Poppins, sans-serif; cursor: pointer; }
.like .icon { width: 1.25rem; height: 1.25rem; transition: transform .18s var(--ease); }
.like:active .icon { transform: scale(1.3); }
.like.is-on { color: #e2441b; }
.like.is-on .icon { fill: currentColor; }

@media (max-width: 920px) {
  .feed-page, .split, .land { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .preview { display: none; }
  .land { min-height: 0; padding-top: .5rem; }
  .only-wide { display: none !important; }
  .only-narrow { display: inline-flex; }
  .has-tabs { padding-bottom: calc(4.3rem + env(safe-area-inset-bottom)); }
  .top .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; justify-content: space-around; gap: 0; margin: 0; padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
  .tabs a { flex: 1; flex-direction: column; gap: .05rem; padding: .2rem 0; border-radius: 10px; font-size: .66rem; }
  .tabs a[aria-current] { background: none; color: var(--pink); }
  .tabs .icon { width: 1.4rem; height: 1.4rem; }
  .tabs .count { position: absolute; top: 0; left: calc(50% + .35rem); }
  .tab-create { flex: 0 0 3.2rem !important; height: 2.9rem; align-self: center; justify-content: center; border-radius: 16px !important; }
  .tab-create span { display: none; }
  .balance { margin-left: auto; }
  .spot { grid-template-columns: repeat(auto-fill, minmax(9.6rem, 1fr)); }
}
@media (max-width: 600px) {
  .sheet { width: 100%; max-width: none; margin: auto 0 0; border-radius: 24px 24px 0 0; padding-bottom: calc(1.4rem + env(safe-area-inset-bottom)); }
  .form .btn, .land .btn { width: 100%; align-self: stretch; }
  .step-nav .btn { width: auto; }
  .me-card { flex-wrap: wrap; }
  .me-card > div { flex: 1 1 60%; }
  .me-card .btn { width: 100%; }
  .claim input { width: 6rem; }
  .searchbar { grid-template-columns: 1fr 1fr auto; }
  .searchbar input[type=search] { grid-column: 1 / 3; }
  .searchbar .btn { grid-column: 3; grid-row: 1; width: auto; }
  .searchbar select { grid-column: 2 / 4; }
  .ranks { grid-template-columns: 1fr 1fr; }
  .rank-1 { grid-column: 1 / -1; aspect-ratio: 5 / 4; }
  .oracle { flex-direction: column; }
  td:nth-child(2), th:nth-child(2), td:nth-child(3), th:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Bougies par personne */
.cake { display: inline-flex; flex-direction: column; align-items: center; width: min(100%, 21rem); }
.cake-candles { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.7rem .62rem; padding: 2rem .7rem 0; }
.mini-candle { position: relative; display: block; width: 10px; height: 40px; border-radius: 3px 3px 1px 1px; background: repeating-linear-gradient(150deg, #fff 0 6px, #ffc247 6px 12px); box-shadow: 0 0 0 1px rgba(20, 33, 61, .14); }
.mini-candle:nth-child(2n) { height: 46px; background: repeating-linear-gradient(150deg, #14213d 0 6px, #fff 6px 12px); }
.mini-candle:nth-child(3n) { height: 36px; background: repeating-linear-gradient(150deg, #f2542d 0 6px, #ffe2d6 6px 12px); }
.mini-candle::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 5px; margin-left: -1px; background: #14213d; }
.mini-candle::after { content: ""; position: absolute; left: 50%; bottom: calc(100% + 3px); width: 13px; height: 20px; margin-left: -6.5px; border-radius: 50% 50% 50% 50% / 66% 66% 34% 34%; background: radial-gradient(ellipse at 50% 72%, #fff 0 22%, #ffe27a 45%, #ff9a2e 78%); transform-origin: 50% 90%; animation: flicker .7s ease-in-out infinite alternate; }
.mini-candle:nth-child(2n)::after { animation-duration: .92s; animation-delay: -.3s; }
.mini-candle:nth-child(3n)::after { animation-duration: .58s; animation-delay: -.15s; }
.mini-candle.is-off { opacity: .45; }
.mini-candle.is-off::after { display: none; }
.mini-candle.is-new { animation: candle-in .6s var(--ease); }
@keyframes candle-in { from { transform: translateY(14px) scale(.7); opacity: 0; } }
.cake-base { display: block; width: 100%; height: 3.1rem; border-radius: 14px 14px 22px 22px; background: linear-gradient(#ffc247 0 .62rem, #14213d .62rem); box-shadow: 0 16px 34px rgba(90, 28, 8, .28); }
.cake-more { display: block; margin-top: .5rem; font-size: .84rem; font-weight: 500; }
.cake-button { display: inline-flex; flex-direction: column; align-items: center; width: 100%; margin: .4rem 0 1.2rem; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.cake-button:focus-visible { outline: 3px solid var(--white); outline-offset: 6px; border-radius: 16px; }
.blown .mini-candle::after { opacity: 0; transform: translateY(-9px) scale(.2); transition: .28s; animation: none; }
.blown .mini-candle:nth-child(2n)::after { transition-delay: .16s; }
.blown .mini-candle:nth-child(3n)::after { transition-delay: .32s; }
.blown .mini-candle:nth-child(5n)::after { transition-delay: .48s; }
.sign-head .cake { margin-top: .4rem; }
.manage-cake { margin: .8rem 0 1.2rem; text-align: center; }

/* Ouverture */
.on-color .flash { margin-top: 3.7rem; }
.blow { width: 100%; }
.blow-count { margin: -.4rem 0 .4rem; font-size: 1.05rem; font-weight: 500; }
.blow-mic { width: min(100%, 19rem); margin: 0 auto .8rem; }
.blow-mic[hidden], [data-blow-meter][hidden] { display: none; }
.blow-meter { display: block; width: min(100%, 15rem); height: 8px; margin: 0 auto .8rem; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .28); }
.blow-meter i { display: block; height: 100%; border-radius: inherit; background: var(--white); transform: scaleX(0); transform-origin: left; transition: transform .08s linear; }
.sound-toggle { position: fixed; top: max(.8rem, env(safe-area-inset-top)); right: .8rem; z-index: 20; min-height: 2.4rem; padding: 0 .9rem; border: 0; border-radius: 99px; background: rgba(20, 33, 61, .28); color: var(--white); font: 500 .8rem Poppins, sans-serif; cursor: pointer; }
.sound-toggle[aria-pressed="false"] { background: rgba(20, 33, 61, .58); }
.js .reveal .thanks-box { display: none; }
.js .opened .thanks-box { display: block; animation: rise .5s .2s var(--ease) backwards; }
.thanks-box { width: 100%; padding: 1.2rem; border-radius: 22px; background: var(--white); color: var(--ink); }
.thanks-box h2 { margin: 0 0 .5rem; font-size: 1.15rem; }
.thanks-box label { display: block; margin-bottom: .3rem; font-size: .86rem; font-weight: 500; }
.thanks-box .btn { margin-top: .6rem; }
.thanks-box .row { display: flex; flex-wrap: wrap; gap: .5rem; }
.thanks-text { padding: .8rem .9rem; border-radius: 16px; background: #fff4ee; overflow-wrap: anywhere; }
.thanks-note { margin: 1rem 0; padding: 1rem 1.1rem; border-radius: 20px; background: #fff4ee; }
.thanks-note h2 { margin: 0 0 .25rem; font-size: 1rem; }
.thanks-note p { margin: 0; overflow-wrap: anywhere; }
.sign-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem; align-items: center; }
.sign-foot .linkish { min-height: 1.6rem; font-size: .72rem; font-weight: 400; }
.play-all { margin-top: .9rem; }
.row-center { justify-content: center; }

/* Vocaux */
.voice-box { margin-top: .9rem; padding: .85rem; border-radius: 18px; background: var(--wash); }
.voice-box[hidden] { display: none; }
.voice-box small { display: block; margin-top: .45rem; }
.voice-box audio { display: block; width: 100%; height: 2.6rem; margin-top: .6rem; }
.voice-box audio[hidden] { display: none; }
.voice-actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }
.voice-actions .is-recording { background: var(--pink); color: var(--white); }
.voice-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.voice-time[hidden] { display: none; }
.voice-note { display: flex; gap: .55rem; align-items: center; width: 100%; min-height: 2.75rem; margin: .35rem 0; padding: .3rem .75rem .3rem .35rem; border: 0; border-radius: 99px; background: #fff0e8; color: var(--ink); font: 500 .8rem Poppins, sans-serif; cursor: pointer; text-align: left; }
.voice-ico { position: relative; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--glow); }
.voice-ico::after { content: ""; position: absolute; top: 50%; left: 54%; border-style: solid; border-width: .36rem 0 .36rem .58rem; border-color: transparent transparent transparent #fff; transform: translate(-50%, -50%); }
.is-playing .voice-ico::after { left: 50%; width: .62rem; height: .62rem; border: 0; background: #fff; }
.voice-label { flex: none; }
.voice-bar { flex: 1; min-width: 2rem; height: 4px; overflow: hidden; border-radius: 99px; background: rgba(210, 58, 18, .2); }
.voice-bar i { display: block; height: 100%; background: var(--pink); transform: scaleX(0); transform-origin: left; }
.voice-note small { flex: none; color: var(--soft); }

/* Musique, liens et groupes */
.music-pick { margin: 1rem 0 0; padding: 0; border: 0; }
.music-pick legend { padding: 0; font-weight: 500; }
.more-box .music-pick label { display: flex; gap: .55rem; align-items: center; margin: .25rem 0; }
.music-pick span { flex: 1; }
.link-tools { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: .5rem; }
.panel-color .linkish { color: var(--white); }
.month-nav { display: flex; gap: .5rem; align-items: center; justify-content: space-between; }
.month-nav h2 { margin: 0; font-size: 1.25rem; }
.month-nav .btn { min-height: 2.3rem; margin: 0; padding: 0 .8rem; font-size: .76rem; }
.month-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .4rem; margin: 1rem 0; padding: 0; list-style: none; }
.month-list li { display: flex; gap: .55rem; align-items: center; padding: .35rem; border-radius: 12px; background: var(--wash); }
.month-list b { display: grid; flex: none; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #ffc247; font-size: .82rem; }
.month-list span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .86rem; }
.poster-panel .btn-main { width: 100%; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .55rem; margin: .6rem 0 0; }
.stat-grid div { padding: .8rem; border-radius: 16px; background: var(--wash); }
.stat-grid dd { margin: 0; font-size: 1.45rem; font-weight: 700; }
.stat-grid dt { color: var(--soft); font-size: .76rem; }

@media (prefers-reduced-motion: reduce) {
  .mini-candle::after, .mini-candle.is-new { animation: none; }
}

