/* 期間限定の画像生成：右下のボタンとパネル（app/imagegen/static/widget.js）。モックアップ A（浮かぶ窓）。 */
.ig-root {
  --ig-ink: #1a1a1a;
  --ig-sub: #55555a;
  --ig-line: #e6e6e6;
  --ig-soft: #f6f6f7;
  --ig-accent: #0064d6;
  --ig-accent-soft: #e8f1ff;
  --ig-accent-ink: #0b57c9;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, sans-serif;
  color: var(--ig-ink);
}
.ig-root *, .ig-root *::before, .ig-root *::after { box-sizing: border-box; }
.ig-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ig-root svg { flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Floating button ---------- */
.ig-fab {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 2500;
  display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 16px;
  border: 0; border-radius: 999px; background: var(--ig-ink); color: #fff;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.28);
  transition: transform .15s ease, box-shadow .15s ease, bottom .2s ease;
}
.ig-fab:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(15, 23, 42, 0.32); }
.ig-fab:active { transform: scale(.97); }
.ig-fab:focus-visible { outline: 3px solid #8ab4ff; outline-offset: 3px; }
.ig-fab[hidden] { display: none; }
.ig-fab-tag {
  position: absolute; left: 14px; top: -9px; padding: 1px 7px; border-radius: 999px;
  background: var(--ig-accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 1.6; white-space: nowrap;
}
.ig-fab-chip { padding: 2px 9px; border-radius: 999px; background: #fff; color: var(--ig-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ig-fab-chip:empty { display: none; }
.ig-fab.is-busy .ig-fab-chip { display: none; }
.ig-fab-spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: ig-spin .9s linear infinite; }
.ig-fab.is-busy .ig-fab-spin { display: block; }
.ig-fab.is-busy .ig-fab-icon { display: none; }
.ig-fab-dot { display: none; width: 10px; height: 10px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 3px rgba(61, 220, 132, .3); }
.ig-fab.is-ready .ig-fab-dot { display: block; animation: ig-pulse 1.4s ease-in-out infinite; }
.ig-fab.is-ready .ig-fab-chip { display: none; }
body.pl-bar-visible .ig-fab { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
body:has(#login-modal.show, #report-modal.show, #contact-modal.show, #post-modal.show, .input-image-lightbox, #ui-confirm-overlay.show) .ig-fab,
body:has(#login-modal.show, #report-modal.show, #contact-modal.show, #post-modal.show) .ig-panel { display: none; }
.ig-root.is-open .ig-fab { z-index: 2601; }

/* ---------- Panel ---------- */
.ig-panel {
  position: fixed; right: 24px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 2600;
  width: 400px; height: min(640px, calc(100vh - 120px)); max-height: calc(100dvh - 120px);
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--ig-line); border-radius: 16px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22), 0 2px 6px rgba(15, 23, 42, 0.1);
  font-size: 14px; line-height: 1.6; text-align: left;
  animation: ig-panel-in .22s cubic-bezier(.2, .8, .2, 1) both;
}
.ig-panel[hidden] { display: none; }
body.pl-bar-visible .ig-panel { bottom: calc(144px + env(safe-area-inset-bottom, 0px)); height: min(640px, calc(100vh - 172px)); }
.ig-backdrop { display: none; }
.ig-head { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px; border-bottom: 1px solid var(--ig-line); }
.ig-head h2 { margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; }
.ig-head .ig-spark { color: var(--ig-accent); }
.ig-tag { padding: 2px 8px; border-radius: 999px; background: var(--ig-accent-soft); color: var(--ig-accent-ink); font-size: 11px; font-weight: 600; white-space: nowrap; }
.ig-remain { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: #f2f2f4; color: #3a3a3c; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ig-remain:empty { visibility: hidden; }
.ig-icon-btn { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--ig-ink); cursor: pointer; }
.ig-icon-btn:hover { background: rgba(0, 0, 0, .05); }
.ig-icon-btn:focus-visible { outline: 2px solid var(--ig-accent); outline-offset: 1px; }
.ig-tabs { flex: 0 0 auto; display: flex; gap: 20px; padding: 0 16px; border-bottom: 1px solid var(--ig-line); }
.ig-tab { height: 44px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 14px; font-weight: 600; color: #6e6e73; cursor: pointer; }
.ig-tab[aria-selected="true"] { color: var(--ig-ink); border-bottom-color: var(--ig-ink); }
.ig-tab:focus-visible { outline: 2px solid var(--ig-accent); outline-offset: -2px; }
.ig-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.ig-body:focus { outline: none; }
.ig-stack { display: flex; flex-direction: column; gap: 14px; }
.ig-stack.is-tight { gap: 10px; }
.ig-title { margin: 0; font-size: 15px; font-weight: 600; }
.ig-note { margin: 0; font-size: 12px; color: var(--ig-sub); }
.ig-note.is-center { text-align: center; }
.ig-box { padding: 10px 12px; border-radius: 8px; background: var(--ig-soft); font-size: 12px; color: #3a3a3c; }
.ig-box.is-warn { background: #fff4e0; color: #5c3d00; }
.ig-box.is-error { background: #fdeeee; color: #7a1712; }
.ig-list { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.ig-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding: 8px 0; font-size: 13px; cursor: pointer; }
.ig-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--ig-ink); }
.ig-check.is-strong { font-size: 14px; font-weight: 600; }

.ig-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid #dcdce0; background: #fff; color: var(--ig-ink);
  font: inherit; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.ig-btn:hover { background: #f5f5f7; }
.ig-btn:focus-visible { outline: 2px solid var(--ig-accent); outline-offset: 2px; }
.ig-btn.is-primary { min-height: 52px; border-color: var(--ig-ink); background: var(--ig-ink); color: #fff; font-size: 15px; font-weight: 600; }
.ig-btn.is-primary:hover { background: #000; }
.ig-btn:disabled, .ig-btn[aria-disabled="true"] { border-color: #e6e6ea; background: #e6e6ea; color: #55555a; cursor: not-allowed; }
.ig-btn-chip { padding: 2px 10px; border-radius: 999px; background: #fff; color: var(--ig-ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.ig-btn:not(.is-primary) .ig-btn-chip { padding: 1px 7px; background: #f2f2f4; font-size: 11px; }
.ig-btn:disabled .ig-btn-chip { color: #55555a; }
.ig-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ig-row2 .ig-btn { padding: 0 10px; gap: 6px; }
.ig-btn span { white-space: nowrap; }
.ig-link-btn { align-self: center; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--ig-ink); font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; cursor: pointer; }

.ig-source { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--ig-line); border-radius: 10px; }
.ig-source img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; background: #eceef1; }
.ig-source-k { font-size: 11px; color: #6e6e73; }
.ig-source-t { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ig-source > div { min-width: 0; }
.ig-field { display: flex; flex-direction: column; gap: 6px; }
.ig-field-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: #3a3a3c; }
.ig-slot-chip { padding: 1px 6px; border-radius: 4px; background: #23262b; color: #fff; font-size: 11px; font-weight: 500; }
.ig-input, .ig-textarea {
  width: 100%; border: 1px solid #dcdce0; border-radius: 10px; background: #fff; color: var(--ig-ink);
  font: inherit; font-size: 16px;
}
.ig-input { height: 44px; padding: 0 12px; }
.ig-textarea { padding: 12px; line-height: 1.6; resize: vertical; min-height: 140px; }
.ig-input:focus, .ig-textarea:focus { outline: 2px solid var(--ig-accent); outline-offset: 0; border-color: transparent; }
.ig-preview { max-height: 168px; overflow-y: auto; padding: 12px; border-radius: 8px; background: var(--ig-soft); font-size: 13px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.ig-preview mark { background: #23262b; color: #fff; border-radius: 4px; padding: 0 5px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.ig-preview .ig-unfilled { background: #e3e4e8; color: #3a3a3c; border-radius: 4px; padding: 0 4px; }
.ig-count { font-size: 12px; color: var(--ig-sub); text-align: right; }
.ig-count.is-over { color: #9c1f18; font-weight: 600; }
.ig-shapes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ig-shape { height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; border: 2px solid #dcdce0; background: #fff; color: var(--ig-ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.ig-shape[aria-pressed="true"] { border-color: var(--ig-ink); background: #f2f2f4; }
.ig-shape:focus-visible { outline: 2px solid var(--ig-accent); outline-offset: 2px; }
.ig-shape i { display: block; border: 2px solid var(--ig-ink); border-radius: 2px; }

.ig-photo-pick { height: 112px; width: 100%; border: 2px dashed #a9a9b2; border-radius: 12px; background: #fafafa; color: var(--ig-ink); font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.ig-photo-pick:focus-visible { outline: 2px solid var(--ig-accent); outline-offset: 2px; }
.ig-photo-chosen { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--ig-line); border-radius: 12px; }
.ig-photo-chosen img { width: 96px; height: 64px; border-radius: 8px; object-fit: cover; flex: 0 0 auto; }

.ig-center-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; border-radius: 12px; background: var(--ig-soft); text-align: center; }
.ig-center-card.is-error { background: #fdeeee; }
.ig-center-card strong { font-size: 16px; }
.ig-center-card p { margin: 0; font-size: 13px; color: #3a3a3c; }
.ig-status { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; }
.ig-status-icon { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; }
.ig-status-icon.is-ok { background: #e3f3e8; color: #17663a; }
.ig-status-icon.is-wait { background: #fff4e0; color: #5c3d00; }
.ig-result { position: relative; border-radius: 12px; overflow: hidden; background: #f3f3f5; }
.ig-result img { display: block; width: 100%; height: 256px; object-fit: contain; }
.ig-result.is-small img { height: 200px; }
.ig-badge { position: absolute; left: 10px; bottom: 10px; padding: 4px 8px; border-radius: 999px; background: rgba(15, 17, 21, 0.78); color: #fff; font-size: 11px; font-weight: 600; }
.ig-who { display: flex; align-items: center; gap: 12px; }
.ig-who img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; flex: 0 0 auto; background: #eceef1; }

/* ---------- Generating ---------- */
.ig-stage { position: relative; align-self: center; width: 82%; aspect-ratio: 1 / 1; border-radius: 18px; overflow: hidden; background: #dfe3ee; box-shadow: 0 10px 30px rgba(120, 130, 200, 0.22); }
.ig-stage.is-portrait { width: 58%; aspect-ratio: 2 / 3; }
.ig-stage.is-landscape { width: 100%; aspect-ratio: 3 / 2; }
.ig-stage-ring { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, #8ab4ff, #c9b6ff, #ffc0d9, #ffe0a8, #b6ead4, #8ab4ff); animation: ig-spin 5s linear infinite; }
.ig-stage-inner { position: absolute; inset: 3px; border-radius: 15px; overflow: hidden; background: #f3f4f8; }
.ig-blob { position: absolute; border-radius: 50%; filter: blur(34px); opacity: .88; }
.ig-blob.b1 { left: -10%; top: -10%; width: 70%; height: 70%; background: #8ab4ff; animation: ig-drift-a 7s ease-in-out infinite alternate; }
.ig-blob.b2 { right: -15%; top: 5%; width: 65%; height: 65%; background: #ffc0d9; animation: ig-drift-b 9s ease-in-out infinite alternate; }
.ig-blob.b3 { left: 0; bottom: -20%; width: 75%; height: 70%; background: #ffe0a8; animation: ig-drift-c 8s ease-in-out infinite alternate; }
.ig-blob.b4 { right: -5%; bottom: -10%; width: 55%; height: 55%; background: #b6ead4; animation: ig-drift-d 10s ease-in-out infinite alternate; }
.ig-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .75) 1px, rgba(255, 255, 255, 0) 1.5px); background-size: 14px 14px; animation: ig-dots 5s linear infinite; }
.ig-sweep { position: absolute; top: -20%; left: -60%; width: 45%; height: 140%; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.8) 50%, rgba(255,255,255,0) 100%); animation: ig-sweep 2.6s cubic-bezier(.4, 0, .2, 1) infinite; }
.ig-star { position: absolute; fill: #fff; stroke: none; opacity: 0; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .95)); animation: ig-twinkle 2.4s ease-in-out infinite; }
.ig-stage-glass {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
  box-shadow: 0 6px 24px rgba(31, 41, 80, .14); text-align: center;
}
.ig-stage-glass strong { font-size: 13px; white-space: nowrap; }
.ig-stage-glass span { font-size: 12px; color: #3a3a3c; font-variant-numeric: tabular-nums; }
.ig-spinner { position: relative; width: 44px; height: 44px; }
.ig-spinner::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(26, 26, 26, .14); border-top-color: var(--ig-ink); animation: ig-spin .9s linear infinite; }
.ig-spinner svg { position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; animation: ig-pulse 1.4s ease-in-out infinite; }
.ig-progress { position: relative; height: 4px; border-radius: 999px; background: #e6e6ea; overflow: hidden; }
.ig-progress span { position: absolute; top: 0; left: -45%; width: 40%; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8ab4ff, #c9b6ff, #ffc0d9); animation: ig-slide 1.5s ease-in-out infinite; }
.ig-tips { position: relative; height: 44px; }
.ig-tips p { position: absolute; inset: 0 0 auto; margin: 0; text-align: center; font-size: 13px; opacity: 0; transition: opacity .4s ease; }
.ig-tips p.is-on { opacity: 1; }

/* ---------- Reveal ---------- */
.ig-result.is-reveal { animation: ig-glow 1.5s ease-out both; }
.ig-result.is-reveal img { animation: ig-reveal 1.1s cubic-bezier(.16, .84, .24, 1) both; }
.ig-result .ig-shine { position: absolute; top: -20%; left: -50%; width: 40%; height: 140%; opacity: 0; pointer-events: none; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.85) 50%, rgba(255,255,255,0) 100%); }
.ig-result.is-reveal .ig-shine { animation: ig-sweep-once 1.1s ease-out .25s both; }
.ig-result .ig-burst { position: absolute; fill: #fff; stroke: none; opacity: 0; pointer-events: none; filter: drop-shadow(0 0 8px #fff); }
.ig-result.is-reveal .ig-burst { animation: ig-pop .9s ease-out both; }
.ig-result.is-reveal .ig-badge { animation: ig-rise .4s ease .9s both; }
.ig-rise { animation: ig-rise .42s cubic-bezier(.2, .8, .2, 1) .65s both; }

/* ---------- My pictures ---------- */
.ig-mine { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ig-mine-item { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.ig-mine-item:focus-visible { outline: 2px solid var(--ig-accent); outline-offset: 3px; border-radius: 10px; }
.ig-mine-img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; background: #eceef1; }
.ig-mine-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11px; color: #6e6e73; }
.ig-pill { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; background: #f2f2f4; color: #3a3a3c; }
.ig-pill.is-public { background: #e3f3e8; color: #17663a; }
.ig-pill.is-pending { background: #fff4e0; color: #5c3d00; }
.ig-pill.is-hidden { background: #fdeeee; color: #7a1712; }
.ig-empty { margin: 24px 0; text-align: center; font-size: 13px; color: var(--ig-sub); }

/* ---------- Post page ---------- */
#detail-modal .ig-post-cta {
  width: 100%; min-height: 48px; margin: 0 0 18px; padding: 0 14px 0 16px; border-radius: 12px;
  border: 1px solid #9cc2ff; background: #eef5ff; color: #0b3d91;
  display: flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; text-align: left; cursor: pointer;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, sans-serif;
}
#detail-modal .ig-post-cta:hover { background: #e3eeff; }
#detail-modal .ig-post-cta:focus-visible { outline: 2px solid #0064d6; outline-offset: 2px; }
#detail-modal .ig-post-cta svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
#detail-modal .ig-post-cta .ig-cta-tags { margin-left: auto; display: flex; gap: 6px; }
#detail-modal .ig-post-cta .ig-cta-tag { padding: 2px 8px; border-radius: 999px; background: #fff; color: #1a1a1a; border: 1px solid #c7c7cc; font-size: 11px; font-weight: 700; white-space: nowrap; }
#detail-modal .ig-post-cta .ig-cta-chip { padding: 2px 9px; border-radius: 999px; background: #1a1a1a; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
#detail-modal .ig-post-cta .ig-cta-chip:empty { display: none; }
@media (max-width: 899px) { #detail-modal .ig-post-cta { display: none; } }

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .ig-fab { right: 16px; }
  .ig-backdrop { display: block; position: fixed; inset: 0; z-index: 2599; background: rgba(0, 0, 0, .5); animation: ig-fade .2s ease both; }
  .ig-backdrop[hidden] { display: none; }
  .ig-panel, body.pl-bar-visible .ig-panel { left: 0; right: 0; bottom: 0; top: 44px; width: auto; height: auto; max-height: none; border-radius: 20px 20px 0 0; border-bottom: 0; animation: ig-sheet-in .28s cubic-bezier(.2, .8, .2, 1) both; }
  .ig-body { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .ig-root.is-open .ig-fab { display: none; }
}

@keyframes ig-spin { to { transform: rotate(360deg); } }
@keyframes ig-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.16); } }
@keyframes ig-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ig-panel-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes ig-sheet-in { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ig-drift-a { to { transform: translate(38%, 30%) scale(1.25); } }
@keyframes ig-drift-b { from { transform: scale(1.1); } to { transform: translate(-36%, 34%) scale(.9); } }
@keyframes ig-drift-c { to { transform: translate(30%, -36%) scale(1.2); } }
@keyframes ig-drift-d { from { transform: scale(.95); } to { transform: translate(-32%, -30%) scale(1.3); } }
@keyframes ig-sweep { 0% { transform: translateX(0) skewX(-14deg); } 60%, 100% { transform: translateX(420%) skewX(-14deg); } }
@keyframes ig-sweep-once { 0% { transform: translateX(0) skewX(-14deg); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateX(520%) skewX(-14deg); opacity: 0; } }
@keyframes ig-dots { to { background-position: 28px 28px; } }
@keyframes ig-twinkle { 0% { transform: scale(.2) rotate(0deg); opacity: 0; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } 100% { transform: scale(.2) rotate(90deg); opacity: 0; } }
@keyframes ig-slide { from { left: -45%; } to { left: 105%; } }
@keyframes ig-reveal { 0% { filter: blur(28px) saturate(1.6) brightness(1.2); transform: scale(1.1); opacity: 0; } 25% { opacity: 1; } 100% { filter: none; transform: none; opacity: 1; } }
@keyframes ig-pop { 0% { transform: scale(0) rotate(0deg); opacity: 0; } 45% { transform: scale(1.15) rotate(40deg); opacity: 1; } 100% { transform: scale(0) rotate(90deg); opacity: 0; } }
@keyframes ig-glow { 0% { box-shadow: 0 0 0 3px rgba(138, 180, 255, .7), 0 12px 44px rgba(150, 140, 255, .5); } 100% { box-shadow: 0 0 0 0 rgba(138, 180, 255, 0), 0 0 0 rgba(150, 140, 255, 0); } }
@keyframes ig-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ig-root *, .ig-root *::before, .ig-root *::after, #detail-modal .ig-post-cta { animation: none !important; transition: none !important; }
  .ig-star, .ig-burst, .ig-shine { display: none; }
}
