/* Warm look: white ground, deep teal ink, each person a soft gradient. One theme on purpose. */
@font-face { font-family: 'Fet'; src: url(fonts/Fet-Regular.ttf) format('truetype'); font-display: swap; }
@font-face { font-family: 'Fredoka'; font-weight: 500; src: url(fonts/fredoka-500.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Fredoka'; font-weight: 600; src: url(fonts/fredoka-600.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 400; src: url(fonts/nunito-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 600; src: url(fonts/nunito-600.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 700; src: url(fonts/nunito-700.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Nunito'; font-weight: 800; src: url(fonts/nunito-800.woff2) format('woff2'); font-display: swap; }

:root {
  --ink: #07414D;
  --ink2: #3A6069;
  --bg: #FFFFFF;
  --page: #FFF6EF;
  --peach: #FFEDE1;
  --peach2: #FFF6EF;
  --mint1: #DDF4EA;
  --mint2: #BFE9DD;
  --aqua: #E6F4EF;
  --salmon: #FBA99B;
  --warn: #FFE1DA;
  --danger: #9C2B1B;
  --white: #FFFFFF;
  --focus: #0B5F6E;
  --display: 'Fredoka', 'Nunito', system-ui, sans-serif;
  color-scheme: light;
}

html { box-sizing: border-box; height: 100%; }
*, *::before, *::after { box-sizing: inherit; }
body { height: 100%; margin: 0; background: var(--page); color: var(--ink); font-family: 'Nunito', system-ui, sans-serif; font-size: 16px; line-height: 1.35; -webkit-tap-highlight-color: transparent; }
#app { height: 100%; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 600; text-wrap: balance; }
h1 { font-size: 28px; line-height: 34px; }
h2 { font-size: 18px; line-height: 24px; }
button, input, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--focus); }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.shell { position: relative; height: 100%; max-width: 430px; margin: 0 auto; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.view { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.view > *, .sheet-body > * { flex: none; }

.wordmark { font-family: 'Fet', 'Fredoka', cursive; font-size: 40px; line-height: 48px; color: var(--ink); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top-date { font-size: 19px; line-height: 24px; }
.top-sub { font-size: 15px; font-weight: 600; color: var(--ink2); }
.top-btns { display: flex; gap: 8px; }
.test-badge { flex: none; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 800; text-align: center; padding: 3px 8px; letter-spacing: 0.04em; }

.btn { width: 100%; min-height: 56px; border: 0; border-radius: 28px; background: var(--ink); color: var(--white); font-family: var(--display); font-size: 18px; font-weight: 600; padding: 8px 20px; }
.btn-quiet { background: var(--peach); color: var(--ink); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-ghost { min-height: 48px; border: 0; border-radius: 16px; background: var(--peach2); box-shadow: inset 0 0 0 2px var(--peach); color: var(--ink); font-size: 15px; font-weight: 800; padding: 8px 14px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; text-align: center; }
.btn-ghost.danger { color: var(--danger); }
.icon-btn { width: 44px; height: 44px; flex: none; border: 0; border-radius: 22px; background: var(--peach); color: var(--ink); padding: 0; display: flex; align-items: center; justify-content: center; }
.icon-btn.white { background: var(--white); }
.icon-btn.small { width: 36px; height: 36px; background: var(--white); }
.mini { min-height: 36px; border: 0; border-radius: 12px; background: var(--ink); color: var(--white); font-size: 13px; font-weight: 800; padding: 4px 12px; flex: none; }
.mini-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

.group { display: flex; flex-direction: column; gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack.tight { gap: 6px; }
.hint { font-size: 14px; font-weight: 600; color: var(--ink2); }
.empty { font-size: 15px; font-weight: 600; color: var(--ink2); padding: 4px 0; }
.sub-l { font-size: 13px; font-weight: 800; color: var(--ink2); margin-top: 2px; }

.bubble { background: linear-gradient(180deg, var(--mint1) 0%, var(--mint2) 100%); border-radius: 22px; padding: 14px 16px; font-size: 16px; line-height: 22px; font-weight: 700; }
.bubble.small { border-radius: 18px; padding: 12px 14px; font-size: 15px; line-height: 20px; }
.note-box { background: var(--aqua); border-radius: 18px; padding: 12px 14px; font-size: 14px; line-height: 19px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.note-box span { flex: 1; min-width: 0; }
.flag { background: var(--warn); border-radius: 18px; padding: 10px 12px 10px 14px; font-size: 14.5px; line-height: 19px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.flag svg { flex: none; }
.flag-text { flex: 1; min-width: 0; }

.chips { display: grid; gap: 8px; }
.chips.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chips.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.chips.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chips.c7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.chips.wrap { display: flex; flex-wrap: wrap; }
.chips.wrap > .chip { flex: 1 1 96px; }
.chips.scroll { display: flex; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chips.scroll > .chip { flex: none; padding: 0 16px; }
.chips.grow { flex: 1; min-width: 0; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.chip { min-height: 44px; min-width: 0; border: 0; border-radius: 14px; background: var(--peach); color: var(--ink); font-size: 15px; font-weight: 800; padding: 4px 8px; display: flex; align-items: center; justify-content: center; gap: 5px; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.chip.on { background: var(--ink); color: var(--white); }
.chip.outline { background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.chip.tiny { padding: 4px 0; font-size: 14px; }
.chip.pchip.on { color: var(--ink); box-shadow: inset 0 0 0 3px var(--ink); }
.dot { width: 12px; height: 12px; border-radius: 6px; flex: none; }

.tile { width: 100%; border: 0; border-radius: 22px; padding: 12px 14px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; color: var(--ink); }
.tile.mine { box-shadow: inset 0 0 0 3px var(--ink); }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 20px; background: var(--white); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--ink); }
.avatar.big { width: 52px; height: 52px; border-radius: 26px; font-size: 24px; }
.avatar.white { background: var(--white); }
.tile-text { display: flex; flex-direction: column; min-width: 0; align-items: flex-start; }
.tile-title { font-size: 17px; line-height: 22px; font-weight: 800; }
.tile-sub { font-size: 14px; line-height: 20px; font-weight: 600; }
.tile-right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.tile-time { font-family: var(--display); font-size: 17px; line-height: 22px; font-weight: 600; white-space: nowrap; }
.pill { display: flex; align-items: center; gap: 4px; background: var(--white); border-radius: 999px; padding: 2px 8px; font-size: 12px; line-height: 18px; font-weight: 800; white-space: nowrap; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
.pill svg { flex: none; }
.pill-on { background: var(--ink); color: var(--white); }
.pill-alert { background: var(--white); box-shadow: inset 0 0 0 2px var(--danger); color: var(--danger); }
.ex-tag { display: inline-block; font-family: 'Nunito', system-ui, sans-serif; font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; background: var(--white); color: var(--ink2); border-radius: 6px; padding: 0 6px; margin-top: 3px; }

.row { width: 100%; border: 0; border-radius: 18px; background: var(--peach); padding: 9px 12px 9px 14px; display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; color: var(--ink); }
.row.is-done { opacity: 0.62; }
.row-wait { grid-template-columns: minmax(0, 1fr); background: var(--aqua); }
.date-block { border-radius: 12px; padding: 3px 0; display: flex; flex-direction: column; align-items: center; align-self: start; }
.date-block.db-plain { background: var(--white); }
.kind-badge { width: 34px; height: 34px; border-radius: 17px; background: var(--white); color: var(--ink); display: flex; align-items: center; justify-content: center; align-self: start; }
.kind-badge.dark { background: var(--ink); color: var(--white); }
.db-day { font-family: var(--display); font-size: 15px; line-height: 18px; font-weight: 600; }
.db-md { font-size: 11.5px; line-height: 14px; font-weight: 800; }
.row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.row-title { font-size: 16px; line-height: 22px; font-weight: 800; }
.row-sub { font-size: 13.5px; line-height: 18px; font-weight: 600; color: var(--ink2); }
.row-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.st-line { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.st { display: inline-flex; align-items: center; gap: 4px; border-radius: 999px; padding: 2px 9px; font-size: 12px; line-height: 18px; font-weight: 800; }
.st-ok { background: var(--mint2); }
.st-need { background: var(--white); box-shadow: inset 0 0 0 2px var(--ink); }
.st-plain { background: var(--white); }

.wk { display: flex; flex-direction: column; gap: 6px; }
.wk-day { display: flex; flex-direction: column; gap: 4px; }
.wk-day.is-today { margin: 0 -6px; padding: 6px; border-radius: 20px; box-shadow: inset 0 0 0 3px var(--ink); }
.wk-row { display: grid; gap: 8px; align-items: start; }
.wk-kid { min-height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 16px; font-weight: 600; padding: 2px 8px; text-align: center; overflow-wrap: anywhere; }
.wk-label { display: flex; flex-direction: column; align-items: center; padding-top: 5px; }
.wk-dn { font-family: var(--display); font-size: 15px; line-height: 18px; font-weight: 600; }
.wk-dd { font-size: 12px; line-height: 14px; font-weight: 800; color: var(--ink2); }
.wk-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wk-span, .wk-empty { grid-column: 2 / -1; }
.wk-blank { height: 46px; border-radius: 14px; background: var(--peach2); }
.wk-empty { min-height: 46px; border-radius: 14px; background: var(--peach2); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: var(--ink2); }
.mini-tile { width: 100%; min-height: 46px; border: 0; border-radius: 14px; padding: 5px 10px; display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: var(--ink); min-width: 0; }
.mini-tile.is-task { background: var(--white); box-shadow: inset 0 0 0 2px var(--salmon); }
.mini-tile.is-done { opacity: 0.6; }
.mt-title { font-size: 14px; line-height: 18px; font-weight: 800; overflow-wrap: anywhere; }
.mt-sub { font-size: 12.5px; line-height: 18px; font-weight: 600; }

.person-card { width: 100%; border: 0; border-radius: 20px; background: var(--peach); padding: 12px 14px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); }
.band { flex: none; padding: 16px 16px 20px; border-radius: 0 0 28px 28px; display: flex; align-items: center; gap: 12px; }
.band-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.band-text h1 { font-size: 28px; line-height: 32px; overflow-wrap: anywhere; }
.band-sub { font-size: 15px; font-weight: 700; }
.slim { width: 100%; min-height: 44px; border: 0; border-radius: 16px; padding: 4px 12px 4px 6px; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); }
.slim-day { min-width: 48px; min-height: 32px; border-radius: 12px; padding: 0 8px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 14px; font-weight: 600; }
.slim-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 800; padding-left: 6px; }
.slim-time { font-family: var(--display); font-size: 15px; font-weight: 500; white-space: nowrap; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fact { background: var(--peach); border-radius: 16px; padding: 8px 12px; display: flex; flex-direction: column; min-width: 0; }
.fact-l { font-size: 12px; line-height: 16px; font-weight: 800; color: var(--ink2); overflow-wrap: anywhere; }
.fact-v { font-size: 15px; line-height: 21px; font-weight: 700; overflow-wrap: anywhere; }
.contact, .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.contact > *, .actions > * { flex: 1 1 150px; }
.actions.col { flex-direction: column; }
.actions.col > * { flex: none; }
.sel { white-space: nowrap; user-select: all; -webkit-user-select: all; font-weight: 600; }

.sheet { position: absolute; inset: 0; z-index: 20; background: var(--bg); display: flex; flex-direction: column; animation: rise 0.22s ease-out; }
.sheet-head { flex: none; display: flex; align-items: center; gap: 12px; padding: 14px 20px 10px; }
.sheet-head h1 { flex: 1; min-width: 0; font-size: 24px; line-height: 30px; overflow-wrap: anywhere; }
.sheet-right { display: flex; gap: 8px; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 20px 24px; display: flex; flex-direction: column; gap: 16px; }
.sheet-foot { flex: none; padding: 12px 20px 16px; background: var(--bg); box-shadow: 0 -2px 0 var(--peach); }
.foot-row { display: flex; gap: 10px; }
.foot-row > .btn { flex: 1; }
.item-title { font-size: 26px; line-height: 32px; overflow-wrap: anywhere; }
.info-list { display: flex; flex-direction: column; gap: 10px; background: var(--peach2); border-radius: 20px; padding: 14px; }
.info { display: flex; gap: 10px; align-items: flex-start; }
.info-ic { width: 32px; height: 32px; flex: none; border-radius: 16px; background: var(--peach); display: flex; align-items: center; justify-content: center; }
.info-text { display: flex; flex-direction: column; min-width: 0; }
.info-l { font-size: 12px; line-height: 16px; font-weight: 800; color: var(--ink2); }
.info-v { font-size: 16px; line-height: 22px; font-weight: 700; overflow-wrap: anywhere; }

.fl { display: flex; flex-direction: column; gap: 6px; }
.fl-l { font-size: 13px; line-height: 18px; font-weight: 800; color: var(--ink2); }
.field { width: 100%; min-width: 0; min-height: 48px; border: 2px solid var(--peach); border-radius: 14px; background: var(--peach2); padding: 8px 12px; font-size: 16px; font-weight: 700; color: var(--ink); }
.field::placeholder { color: var(--ink2); opacity: 0.75; font-weight: 600; }
.field.strong { border-color: var(--ink); background: var(--white); font-size: 17px; }
.field.center { text-align: center; padding: 8px 4px; font-family: var(--display); font-size: 18px; }
.field.area { min-height: 96px; resize: vertical; line-height: 1.4; font-weight: 600; }
.field.area.tall { min-height: 220px; height: auto; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline > .field { flex: 1; }
.inline > .field.strong { flex: 0 0 96px; }
.inline > .chip { flex: none; padding: 4px 16px; }
.every { display: grid; grid-template-columns: auto 64px repeat(3, minmax(0, 1fr)); gap: 8px; align-items: center; font-size: 15px; font-weight: 800; }
.every.two { grid-template-columns: 72px auto; justify-content: start; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 700; }
.check input { width: 22px; height: 22px; accent-color: var(--ink); }
.detail-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 44px; gap: 8px; align-items: center; }
.card { background: var(--peach2); border-radius: 20px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.card-h { font-family: var(--display); font-size: 16px; font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(7, minmax(0, 44px)); gap: 6px; }
.swatch { width: 100%; aspect-ratio: 1; border: 0; border-radius: 50%; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.color-row { display: flex; flex-direction: column; gap: 6px; }
.color-name { font-size: 14px; font-weight: 800; }
.swatch.on { box-shadow: inset 0 0 0 3px var(--ink); }

.setup { padding-top: 28px; }
.setup-step { font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink2); }
.setup-title { font-size: 30px; line-height: 36px; }

.guide-card { background: var(--peach2); border-radius: 20px; padding: 14px; display: flex; gap: 12px; align-items: flex-start; }
.guide-ic { width: 40px; height: 40px; flex: none; border-radius: 20px; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, var(--mint1) 0%, var(--mint2) 100%); }
.guide-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.guide-t { font-family: var(--display); font-size: 17px; line-height: 22px; font-weight: 600; }
.guide-b { font-size: 15px; line-height: 21px; font-weight: 600; color: var(--ink2); }

.faq { background: var(--peach2); border-radius: 18px; box-shadow: inset 0 0 0 2px var(--peach); }
.faq summary { list-style: none; cursor: pointer; min-height: 48px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--display); font-size: 16px; line-height: 21px; font-weight: 600; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform 0.2s ease; }
.faq[open] summary svg { transform: rotate(90deg); }
.faq-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 22px; font-weight: 600; }
.faq-body ol, .faq-body ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legend { display: flex; flex-direction: column; gap: 10px; background: var(--peach2); border-radius: 18px; padding: 14px; }
.legend-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 15px; line-height: 21px; font-weight: 600; }
.legend-row > :first-child { justify-self: start; }
.legend-row .kind-badge { background: var(--peach); align-self: center; }
.legend-row .kind-badge.dark { background: var(--ink); }
.legend-sw { width: 52px; height: 36px; border-radius: 12px; }
.legend-sw.plain { background: var(--white); box-shadow: inset 0 0 0 2px var(--peach); }
.legend-sw.ring { box-shadow: inset 0 0 0 3px var(--ink); }
.center-screen { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; }
.auth { padding-top: 32px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.btn:disabled { opacity: 0.6; }
.sync-bar { flex: none; background: var(--warn); padding: 8px 12px 8px 16px; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 800; }
.sync-bar span { flex: 1; min-width: 0; }
.nav { flex: none; min-height: 76px; border-top: 2px solid var(--peach); display: flex; align-items: center; background: var(--bg); }
.nav-btn { flex: 1; min-height: 72px; border: 0; background: none; padding: 0; font-size: 12px; font-weight: 700; color: var(--ink2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.nav-btn.on { color: var(--ink); font-weight: 800; }
.nav-mid { flex: 1; display: flex; justify-content: center; }
.fab { width: 56px; height: 56px; border: 0; border-radius: 28px; background: var(--ink); color: var(--white); padding: 0; display: flex; align-items: center; justify-content: center; }

.toast { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--white); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 800; white-space: nowrap; }
.scrim { position: absolute; inset: 0; z-index: 50; background: rgba(7, 65, 77, 0.45); display: flex; align-items: flex-end; padding: 16px; }
.ask { width: 100%; background: var(--bg); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.ask p { font-family: var(--display); font-size: 19px; line-height: 25px; font-weight: 600; }

/* The present */
.gift { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; padding: 28px 24px; text-align: center; background: linear-gradient(180deg, var(--peach2) 0%, var(--peach) 100%); }
.gift > * { flex: none; }
.gift-for { font-size: 46px; line-height: 56px; }
.gift-from { font-size: 16px; font-weight: 700; color: var(--ink2); }
.gift-hint { font-size: 15px; font-weight: 800; min-height: 21px; }
.present { position: relative; width: 220px; height: 220px; border: 0; background: none; padding: 0; transition: transform 0.5s ease, margin 0.5s ease; }
.present:disabled { cursor: default; }
.present.closed { animation: wiggle 2.6s ease-in-out infinite; }
.present.card { transform: scale(0.66); margin: -34px 0; }
.p-box { position: absolute; left: 20px; right: 20px; bottom: 0; height: 132px; border-radius: 16px; background: linear-gradient(180deg, #FFCFC4 0%, #FBA99B 100%); overflow: hidden; }
.p-lid { position: absolute; left: 6px; right: 6px; bottom: 124px; height: 46px; border-radius: 14px; background: linear-gradient(180deg, #FBA99B 0%, #F2907F 100%); transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.7s ease 0.15s; }
.p-rib { position: absolute; left: 50%; top: 0; bottom: 0; width: 30px; margin-left: -15px; background: linear-gradient(180deg, #F0E7AE 0%, #E0D47F 100%); }
.p-bow { position: absolute; left: 50%; bottom: 100%; width: 0; height: 0; }
.p-bow i { position: absolute; bottom: -4px; width: 58px; height: 42px; border: 12px solid #E0D47F; border-radius: 50%; }
.p-bow i:first-child { right: -4px; transform: rotate(-22deg); transform-origin: bottom right; }
.p-bow i:nth-child(2) { left: -4px; transform: rotate(22deg); transform-origin: bottom left; }
.p-bow b { position: absolute; left: -13px; bottom: -8px; width: 26px; height: 20px; border-radius: 9px; background: #D2C55F; }
.present.opening .p-lid, .present.card .p-lid { transform: translate(34px, -130px) rotate(20deg); opacity: 0; }
.confetti { position: absolute; left: 50%; top: 42%; border-radius: 2px; opacity: 0; animation: burst 1.35s cubic-bezier(0.15, 0.7, 0.3, 1) forwards; pointer-events: none; }
.gift-card { width: 100%; max-width: 340px; background: var(--bg); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; gap: 12px; animation: rise 0.4s ease-out; }
.gift-note { font-size: 17px; line-height: 25px; font-weight: 600; white-space: pre-line; }
.gift-sign { font-family: 'Fet', 'Fredoka', cursive; font-size: 30px; line-height: 38px; }

@keyframes rise { from { transform: translateY(18px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes wiggle { 0%, 72%, 100% { transform: rotate(0); } 78% { transform: rotate(-4deg); } 86% { transform: rotate(4deg); } 93% { transform: rotate(-2deg); } }
@keyframes burst {
  from { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  70% { opacity: 1; }
  to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sheet, .gift-card { animation: none; }
  .present.closed { animation: none; }
  .confetti { display: none; }
  .p-lid, .present { transition: none; }
}
