:root {
  --bg: #f4f1ff;
  --bg2: #ffffff;
  --ink: #232a3b;
  --muted: #6b7386;
  --line: #e2e0ee;
  --accent: #7b5cff;
  --accent2: #ff5fa2;
  --good: #22b07d;
  --danger: #e5484d;
  --stage: #e9edf3;
  --kid: #7b5cff;
  --shadow: 0 6px 18px rgba(40, 30, 90, .12);
  --radius: 18px;
  --font: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1b2b; --bg2: #2a2740; --ink: #f1efff; --muted: #b3b0c9; --line: #3d3958; --stage: #15141f;
    --shadow: 0 6px 18px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1b2b; --bg2: #2a2740; --ink: #f1efff; --muted: #b3b0c9; --line: #3d3958; --stage: #15141f;
  --shadow: 0 6px 18px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--font); }
body { overscroll-behavior: none; -webkit-user-select: none; user-select: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; }
[hidden] { display: none !important; }

.screen { position: fixed; inset: 0; display: flex; flex-direction: column; padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }

/* ---------- buttons ---------- */
.btn {
  border: 0; border-radius: 999px; padding: 10px 18px; background: var(--bg2); color: var(--ink);
  font-weight: 800; box-shadow: 0 2px 0 var(--line), 0 0 0 2px var(--line) inset; display: inline-flex; align-items: center; gap: 6px;
  transition: transform .1s; white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 3px 0 #5a3fd6; }
.btn.danger { background: var(--danger); color: #fff; box-shadow: 0 3px 0 #b5343a; }
.btn.ghost { background: transparent; box-shadow: none; color: var(--muted); }
.btn.big { padding: 14px 20px; font-size: 18px; justify-content: center; }
.btn.small { padding: 6px 12px; font-size: 14px; }
.btn.left { margin-right: auto; }
.icon-btn {
  border: 0; background: var(--bg2); width: 46px; height: 46px; border-radius: 14px; font-size: 22px;
  display: grid; place-items: center; box-shadow: 0 2px 0 var(--line); flex: none;
}
.icon-btn:active { transform: scale(.94); }
.row { display: flex; gap: 10px; align-items: center; margin-top: 14px; }
.row.end { justify-content: flex-end; }
.row.wrap { flex-wrap: wrap; }

/* ---------- profiles ---------- */
#profiles { background: radial-gradient(circle at 20% 10%, #ffe0f0 0, transparent 40%), radial-gradient(circle at 85% 90%, #dff3ff 0, transparent 45%), var(--bg); overflow-y: auto; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) #profiles { background: var(--bg); } }
.profiles-wrap { margin: auto; width: 100%; max-width: 900px; padding: 24px 16px; text-align: center; }
.brand { display: flex; align-items: center; justify-content: center; gap: 12px; }
.brand h1 { font-size: clamp(40px, 8vw, 64px); margin: 0; font-weight: 900; letter-spacing: -1px;
  background: linear-gradient(90deg, #ff5f6d, #ff9f43, #ffd23f, #2ec4b6, #3a86ff, #7b5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo { width: clamp(56px, 11vw, 84px); height: auto; }
.who { font-size: clamp(22px, 4.5vw, 30px); margin: 10px 0 24px; }
.profile-grid { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.profile { border: 0; background: var(--bg2); border-radius: 26px; padding: 18px 14px 14px; width: 150px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; transition: transform .12s; }
.profile:active { transform: scale(.95); }
.pav { width: 96px; height: 96px; border-radius: 50%; background: var(--pc, #ddd); display: grid; place-items: center; font-size: 56px; box-shadow: inset 0 -6px 0 rgba(0,0,0,.12); }
.profile.add .pav { background: var(--bg); font-size: 40px; box-shadow: inset 0 0 0 3px var(--line); }
.pname { font-weight: 900; font-size: 20px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pedit { position: absolute; top: 8px; right: 10px; font-size: 20px; }
.profile.editing { animation: wiggle .5s ease-in-out infinite alternate; }
@keyframes wiggle { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
.profiles-foot { margin-top: 28px; display: flex; gap: 12px; justify-content: center; }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--bg2); box-shadow: 0 2px 10px rgba(0,0,0,.06); z-index: 2; flex: none; }
.spacer { flex: 1; }
.me { border: 0; background: var(--bg); border-radius: 999px; padding: 4px 14px 4px 4px; display: flex; align-items: center; gap: 8px; font-weight: 900; }
.me .av { width: 40px; height: 40px; border-radius: 50%; background: var(--pc); display: grid; place-items: center; font-size: 24px; }
.me .nm { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabs { display: flex; gap: 6px; background: var(--bg); padding: 4px; border-radius: 999px; }
.tab { border: 0; background: transparent; padding: 8px 14px; border-radius: 999px; font-weight: 800; color: var(--muted); }
.tab.on { background: var(--bg2); color: var(--ink); box-shadow: 0 2px 6px rgba(0,0,0,.08); }

/* ---------- home ---------- */
.home-main { flex: 1; overflow-y: auto; padding: 8px 16px 40px; -webkit-overflow-scrolling: touch; }
#home.drop .home-main { outline: 4px dashed var(--accent); outline-offset: -10px; }
.sec h3 { margin: 18px 4px 10px; font-size: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.card { border: 0; padding: 0; background: var(--bg2); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-align: left; position: relative; cursor: pointer; transition: transform .12s; }
.card:active { transform: scale(.97); }
.thumb { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap { padding: 8px 12px 10px; font-weight: 800; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 2px 8px; font-size: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.prog { position: absolute; left: 10px; right: 10px; bottom: 44px; height: 8px; background: rgba(255,255,255,.85); border-radius: 99px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.15); }
.prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--good), #7ed957); border-radius: 99px; }
.card .more { position: absolute; top: 6px; left: 6px; border: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); font-size: 18px; font-weight: 900; color: #333; }
.tip { margin: 16px 4px 0; padding: 14px 16px; border-radius: 16px; background: var(--bg2); box-shadow: var(--shadow); font-size: 16px; }
.empty { text-align: center; font-size: 64px; margin-top: 12vh; }
.empty p { font-size: 20px; color: var(--muted); }
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .tab span { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .topbar { padding: 8px 10px; gap: 6px; }
  .me .nm { display: none; }
  .me { padding: 4px; }
}

/* ---------- play ---------- */
#play { background: var(--stage); }
.play-top { gap: 6px; }
.play-title { font-weight: 900; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; padding-left: 4px; }
.stage { flex: 1; position: relative; min-height: 0; }
.stage canvas { position: absolute; inset: 0; display: block; }
.tray { flex: none; background: var(--bg2); box-shadow: 0 -2px 10px rgba(0,0,0,.06); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); z-index: 2; }
.palette { display: flex; gap: 10px; overflow-x: auto; padding: 12px 18px 8px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; scroll-padding: 0 40px; }
.sw { flex: none; width: 54px; height: 54px; border: 0; padding: 0; background: transparent; border-radius: 50%; position: relative; transition: transform .15s; }
.sw .dot { position: absolute; inset: 5px; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-weight: 900; font-size: 19px; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.14); }
.sw .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--good) calc(var(--p, 0) * 360deg), var(--line) 0); }
.sw.on { transform: translateY(-5px) scale(1.14); }
.sw.on::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 3px solid var(--accent); }
.sw.done { opacity: .55; transform: scale(.82); }
.sw.done .dot { font-size: 0; }
.sw.done .dot::after { content: '✓'; font-size: 22px; }
.sw.done.on { opacity: 1; }
.sw.gap { margin-left: 14px; }
.sw.gap::before { content: ''; position: absolute; left: -13px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.sw.custom { cursor: pointer; }
.sw.custom .dot { background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); color: #fff; font-size: 28px; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.sw.custom.on .dot { background: var(--c, #888); }
.sw.custom input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 2px 14px 0; }
.tools > * { flex: none; }
.seg { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 16px; }
.tool { border: 0; background: transparent; border-radius: 12px; padding: 4px 10px; display: flex; flex-direction: column; align-items: center; min-width: 58px; }
.tool .ti { font-size: 24px; line-height: 1.1; }
.tool .tl { font-size: 12px; font-weight: 800; color: var(--muted); }
.tool.on { background: var(--bg2); box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.tool.on .tl { color: var(--accent); }
.size { border: 0; background: transparent; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
.size span { background: var(--ink); border-radius: 50%; display: block; }
.size.on { background: var(--bg2); box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.size.on span { background: var(--accent); }
.chip { border: 0; background: var(--bg); border-radius: 999px; padding: 8px 14px; font-weight: 800; color: var(--muted); }
.chip.on { background: var(--accent); color: #fff; }
.seg .chip { background: transparent; }
.seg .chip.on { background: var(--accent); }
.guide { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.opacity { width: 120px; accent-color: var(--accent); }
@media (max-width: 560px) {
  .icon-btn { width: 40px; height: 40px; font-size: 19px; border-radius: 12px; }
  .play-title { font-size: 15px; }
  .tool { min-width: 48px; padding: 4px 6px; }
  .tool .tl { display: none; }
  .sw { width: 48px; height: 48px; }
  .tools { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .guide { flex-wrap: nowrap; }
  .opacity { width: 90px; }
  .sheet-img { width: 96px; }
  .sheet-head .row { flex-wrap: wrap; }
  .sheet-head h3 { font-size: 19px; }
}

/* ---------- finished ---------- */
.finish { position: absolute; inset: 0; background: rgba(30, 24, 60, .55); z-index: 10; display: flex; padding: 12px; animation: fadein .25s; }
.finish-card { margin: auto; background: var(--bg2); border-radius: 26px; box-shadow: var(--shadow); width: min(980px, 100%); height: min(860px, 100%); display: flex; flex-direction: column; padding: 14px; gap: 10px; }
.finish-title { text-align: center; font-size: clamp(22px, 4vw, 32px); font-weight: 900; }
.finish-art { flex: 1; min-height: 0; position: relative; display: grid; place-items: center; }
.finish-art canvas { border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.finish-art canvas.confetti { position: absolute; inset: 0; box-shadow: none; pointer-events: none; border-radius: 0; }
.blend { display: flex; align-items: center; gap: 10px; justify-content: center; font-weight: 800; font-size: 15px; }
.blend input { flex: 1; max-width: 420px; accent-color: var(--accent); height: 30px; }
.finish-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(30, 24, 60, .45); z-index: 50; display: flex; padding: 16px; overflow-y: auto; animation: fadein .15s; }
.modal-card { margin: auto; background: var(--bg2); border-radius: 24px; padding: 20px; width: min(480px, 100%); box-shadow: var(--shadow); }
.modal-card.wide { width: min(720px, 100%); }
.modal-card h3 { margin: 0 0 12px; font-size: 22px; }
.modal-card h4 { margin: 20px 0 6px; font-size: 18px; }
.lbl { display: block; font-weight: 800; margin: 16px 0 8px; color: var(--muted); }
.text { width: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 18px; background: var(--bg); color: var(--ink); -webkit-user-select: text; user-select: text; }
.text:focus { outline: none; border-color: var(--accent); }
.big-num { font-size: 28px; text-align: center; letter-spacing: 4px; }
.pin { width: 200px; font-size: 16px; padding: 8px 12px; }
.shake { animation: shake .35s; border-color: var(--danger); }
@keyframes shake { 25% { transform: translateX(-8px); } 75% { transform: translateX(8px); } }
.avatars { display: flex; flex-wrap: wrap; gap: 6px; }
.avt { border: 0; width: 50px; height: 50px; border-radius: 14px; font-size: 30px; background: var(--bg); }
.avt.on { background: var(--accent); box-shadow: 0 0 0 3px var(--accent); }
.colors { display: flex; flex-wrap: wrap; gap: 10px; }
.clr { border: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--c); }
.clr.on { box-shadow: 0 0 0 3px var(--bg2), 0 0 0 6px var(--ink); }
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.lvl { border: 0; background: var(--bg); border-radius: 14px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lvl b { font-size: 14px; color: var(--accent); letter-spacing: 1px; }
.lvl small { font-size: 12px; color: var(--muted); font-weight: 700; text-align: center; }
.lvl.on { background: var(--accent); }
.lvl.on b, .lvl.on small { color: #fff; }
@media (max-width: 520px) { .levels { grid-template-columns: repeat(3, 1fr); } }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mode { border: 0; background: var(--bg); border-radius: 18px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; transition: transform .1s; }
.mode:active { transform: scale(.95); }
.mode .mi { font-size: 40px; }
.mode b { font-size: 16px; }
.mode small { color: var(--muted); font-weight: 700; font-size: 12px; }
@media (max-width: 620px) { .modes { grid-template-columns: repeat(2, 1fr); } }
.sheet-head { display: flex; gap: 14px; align-items: center; }
.sheet-img { width: 140px; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; box-shadow: var(--shadow); background: #fff; flex: none; }
.sheet-head .row { margin-top: 4px; }
.menu { display: flex; flex-direction: column; gap: 10px; }
.set { display: flex; flex-direction: column; gap: 12px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 800; }
.set-row .row { margin: 0; }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.switch input { width: 24px; height: 24px; accent-color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- loading & toast ---------- */
.loading { position: fixed; inset: 0; z-index: 60; background: rgba(30, 24, 60, .35); display: grid; place-items: center; }
.loading-card { background: var(--bg2); border-radius: 22px; padding: 24px 28px; text-align: center; font-weight: 800; font-size: 18px; box-shadow: var(--shadow); width: min(340px, 90vw); }
.spinner { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: conic-gradient(#ff5f6d, #ffd23f, #2ec4b6, #3a86ff, #7b5cff, #ff5f6d); -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%); mask: radial-gradient(circle, transparent 52%, #000 54%); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bar { height: 10px; background: var(--bg); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; border-radius: 99px; }
.toast { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top)); transform: translate(-50%, -16px); background: #232a3b; color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 800; z-index: 70; opacity: 0; transition: opacity .25s, transform .25s; max-width: calc(100vw - 32px); text-align: center; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- version 1.1 additions ---------- */
.thumb { background: #fff; }
.thumb img { object-fit: contain; }
.sec-head { display: flex; align-items: center; gap: 10px; margin: 18px 4px 10px; }
.sec-head h3 { margin: 0; }
.sec-head .btn { margin-left: auto; }
.sec-head .btn + .btn { margin-left: 0; }
.card .tick { display: none; position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--bg2); color: transparent; font-weight: 900; font-size: 20px; place-items: center; box-shadow: inset 0 0 0 3px var(--line); }
.card.selectable .tick { display: grid; }
.card.selectable .more, .card.selectable .badge { display: none; }
.card.picked { outline: 4px solid var(--accent); outline-offset: -4px; }
.card.picked .tick { background: var(--accent); color: #fff; box-shadow: none; }
.card .more { width: 40px; height: 40px; font-size: 20px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.select-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20; display: flex; align-items: center; gap: 10px; background: var(--bg2); padding: 10px 12px 10px 18px; border-radius: 999px; box-shadow: 0 8px 28px rgba(30, 20, 80, .28); font-weight: 800; max-width: calc(100vw - 24px); }
.select-bar .btn[disabled] { opacity: .45; }

.sheet-imgbtn { border: 0; padding: 0; background: none; position: relative; flex: none; border-radius: 14px; }
.sheet-imgbtn .zoom { position: absolute; right: 6px; bottom: 6px; background: rgba(255,255,255,.92); border-radius: 50%; width: 32px; height: 32px; display: grid; place-items: center; font-size: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.sheet-img { object-fit: contain; }

.viewer { position: fixed; inset: 0; z-index: 80; background: #1b1a26; display: flex; flex-direction: column; animation: fadein .2s; }
.viewer-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; color: #fff; }
.viewer-title { font-weight: 900; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.viewer-stage { flex: 1; position: relative; min-height: 0; }
.viewer-stage canvas { position: absolute; inset: 0; }

.peek { position: absolute; top: 12px; right: 12px; z-index: 5; width: min(34vw, 300px); background: #fff; border-radius: 14px; padding: 6px; box-shadow: 0 8px 24px rgba(20, 20, 50, .3); cursor: pointer; animation: fadein .2s; }
.peek canvas { display: block; width: 100%; height: auto; border-radius: 9px; }
.peek::after { content: '✖'; position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; background: #232a3b; color: #fff; display: grid; place-items: center; font-size: 13px; }
#playPeek.on { background: var(--accent); }

.update-bar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(10px + env(safe-area-inset-top)); z-index: 90; display: flex; align-items: center; gap: 10px; background: #232a3b; color: #fff; padding: 8px 8px 8px 18px; border-radius: 999px; font-weight: 800; box-shadow: 0 8px 28px rgba(0,0,0,.3); max-width: calc(100vw - 24px); }
.update-bar .ghost { color: #c9c4e8; }

/* gifts */
.gift-names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gift-names .lbl { margin-top: 0; }
@media (max-width: 520px) { .gift-names { grid-template-columns: 1fr; } }
.gift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; max-height: 300px; overflow-y: auto; padding: 4px; }
.gtile { border: 0; padding: 0; background: var(--bg); border-radius: 14px; overflow: hidden; position: relative; text-align: left; }
.gtile img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; display: block; }
.gtile .gcap { display: block; padding: 5px 8px 7px; font-weight: 800; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gtile .gcap small { display: block; color: var(--muted); font-weight: 700; }
.gtile .tick { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.92); color: transparent; display: grid; place-items: center; font-weight: 900; box-shadow: inset 0 0 0 2px var(--line); }
.gtile.picked { outline: 3px solid var(--accent); outline-offset: -3px; }
.gtile.picked .tick { background: var(--accent); color: #fff; box-shadow: none; }
.link-box { font-size: 15px; margin: 8px 0 14px; }
.gift-open { text-align: center; }
.gift-bow { font-size: 64px; animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-4deg); } }
.gift-note { font-style: italic; color: var(--ink); margin: 0 4px 10px; }
.gift-thumbs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin: 10px 0 4px; }
.gift-thumbs img { width: 84px; height: 63px; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); background: #fff; }
.who-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.who { border: 0; background: var(--bg); border-radius: 999px; padding: 6px 14px 6px 6px; font-size: 16px; display: flex; align-items: center; gap: 8px; font-weight: 800; }
.who.on { background: var(--accent); color: #fff; }
.pav.sm { width: 34px; height: 34px; font-size: 20px; box-shadow: none; }
.gift-sec { background: linear-gradient(135deg, rgba(255, 95, 162, .1), rgba(123, 92, 255, .1)); border-radius: 22px; padding: 2px 12px 14px; margin-top: 12px; }

/* opening screen */
.splash { background: #1b1a26; cursor: pointer; transition: opacity .42s ease; padding: 0; }
.splash canvas { position: absolute; inset: 0; display: block; }
.splash.out { opacity: 0; }
.splash-hint { position: absolute; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(255,255,255,.92); color: #232a3b; font-weight: 900; font-size: 20px; padding: 12px 26px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.3); animation: hintbob 1.4s ease-in-out infinite; pointer-events: none; }
@keyframes hintbob { 50% { transform: translate(-50%, -7px); } }
@media (prefers-reduced-motion: reduce) { .splash-hint, .gift-bow { animation: none; } }
