﻿  /* ===== Bag / Shop (꾸미기 시스템) ===== */
  .bag-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
  }
  .bag-title { font-size: 17px; font-weight: 800; color: #1A1A24; }
  .bag-coin-row {
    display: flex; gap: 12px;
    padding: 4px 16px 16px;
    background: #fff;
  }
  .bag-coin-pill {
    flex: 1; min-width: 0;
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #FFF7E6 0%, #FFE5D9 100%);
    border-radius: 14px;
  }
  .bag-coin-label { font-size: 11px; color: #B88600; font-weight: 700; flex-shrink: 0; }
  .bag-coin-value {
    font-size: 15px; font-weight: 800; color: #1A1A24;
    margin-left: auto;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .bag-coin-plus {
    width: 22px; height: 22px; border-radius: 50%;
    background: #FFB400; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 15px; flex-shrink: 0;
  }
  .bag-shop-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #E5FBEE 0%, #BBF7D0 100%);
    border: none; border-radius: 14px;
    color: #15803D; font-size: 14px; font-weight: 800;
    cursor: pointer; white-space: nowrap; flex-shrink: 0;
  }
  .bag-tabs {
    display: flex; gap: 18px;
    padding: 8px 16px 0;
    background: #fff;
    border-bottom: 1px solid #F2F2F7;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .bag-tabs::-webkit-scrollbar { display: none; }
  .bag-tab {
    position: relative;
    padding: 10px 2px;
    font-size: 14px; font-weight: 700;
    color: #A0A0AE;
    cursor: pointer;
    white-space: nowrap; flex-shrink: 0;
  }
  .bag-tab.active { color: #0EA5E9; font-weight: 800; }
  .bag-tab.active::after {
    content: ''; position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 3px; border-radius: 2px;
    background: var(--brand-grad);
  }
  .bag-preview {
    display: flex; align-items: center; justify-content: center;
    padding: 28px 24px;
    min-height: 180px;
    background: linear-gradient(180deg, #E0F2FE 0%, #DCFCE7 55%, #FFE4E6 100%);
    position: relative;
  }
  .bag-preview-card {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 20px 32px;
    border-radius: 22px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    border: 2px solid #D9D9E1;
  }
  .bag-preview-emoji { font-size: 72px; line-height: 1; }
  .bag-preview-name { font-size: 15px; font-weight: 800; color: #1A1A24; }
  .bag-preview-rarity { font-size: 12px; font-weight: 800; }
  .bag-preview-empty {
    display: flex; flex-direction: column; align-items: center;
  }
  .rarity-common-card { border-color: #D9D9E1 !important; }
  .rarity-rare-card { border-color: #0EA5E9 !important; box-shadow: 0 0 24px rgba(14,165,233,.22); }
  .rarity-epic-card { border-color: #A855F7 !important; box-shadow: 0 0 28px rgba(168,85,247,.3); }
  .rarity-legendary-card { border-color: #F5C026 !important; box-shadow: 0 0 32px rgba(245,192,38,.4); }
  .bag-section { padding: 16px 16px 8px; }
  .bag-section-title {
    font-size: 14px; font-weight: 800; color: #1A1A24;
    margin-bottom: 12px;
  }
  .bag-empty {
    text-align: center; padding: 20px 0;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
  }
  .bag-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .bag-item-card {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 14px 8px 10px;
    border-radius: 14px;
    border: 1.5px solid #ECECF2;
    background: #fff;
    cursor: pointer;
    transition: transform .12s, border-color .15s, box-shadow .2s;
  }
  .bag-item-card:active { transform: scale(0.97); }
  .bag-item-card.equipped {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 1.5px rgba(14,165,233,.3);
  }
  .bag-item-card.selected {
    border-color: #0EA5E9;
    box-shadow: 0 4px 14px rgba(14,165,233,.22);
  }
  .bag-item-emoji {
    font-size: 32px;
    width: 60px; height: 60px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
  }
  .rarity-common-bg { background: #F4F4F8; }
  .rarity-rare-bg { background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%); }
  .rarity-epic-bg { background: linear-gradient(135deg, #F3E8FF 0%, #E9D5FF 100%); }
  .rarity-legendary-bg { background: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%); }
  .bag-item-name {
    font-size: 12px; font-weight: 700; color: #1A1A24;
    text-align: center; line-height: 1.2;
    max-width: 100%;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .bag-item-time {
    font-size: 10px; color: #6B6B7A; font-weight: 600;
    display: flex; align-items: center; gap: 2px;
  }
  .bag-item-price {
    font-size: 12px; color: #1A1A24; font-weight: 800;
  }
  .bag-item-equipped-badge {
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%);
    padding: 3px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, #0EA5E9 0%, #06C28F 100%);
    color: #fff;
    font-size: 10px; font-weight: 800;
    box-shadow: 0 2px 6px rgba(14,165,233,.4);
    white-space: nowrap;
  }
  .bag-item-rarity-tag {
    position: absolute;
    top: 6px; left: 6px;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff; font-size: 9px; font-weight: 800;
  }
  .bag-cta-wrap {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 12px 20px 20px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 30%);
  }

  /* Equipped frame indicator on profile avatar */
  .user-card-avatar-wrap {
    position: relative;
    flex-shrink: 0;
  }
  .user-card-frame-badge {
    position: absolute;
    bottom: -4px; right: -4px;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
    border: 2px solid #fff;
  }

  /* =============================================================
     Brand polish — Sky→Aqua gradient CTAs, glow, banner treatment
     ============================================================= */
  :root {
    --blnyangi-fur: #D7D9D7;
    --blnyangi-fur-light: #ECEDE9;
    --blnyangi-stripe: #8F9895;
    --blnyangi-stripe-dark: #6F7774;
    --blnyangi-outline: #2F3434;
    --blnyangi-eye: #272039;
    --blnyangi-pink: #F4AFC1;
    --blnyangi-blush: #F2A1A7;
    --brand-purple: #272039;
    --brand-pink: #F2A1A7;
    --brand-grad: linear-gradient(135deg, #272039 0%, #6F7774 54%, #F2A1A7 100%);
    --brand-grad-soft: linear-gradient(135deg, #ECEDE9 0%, #FBE8ED 100%);
    --brand-grad-deep: linear-gradient(135deg, #272039 0%, #2F3434 72%, #6F7774 100%);
    --brand-glow: 0 8px 24px rgba(242, 161, 167, .34);
    --brand-glow-soft: 0 4px 14px rgba(111, 119, 116, .22);
  }

  /* Primary CTAs — full-width / prominent action buttons get the signature gradient */
  .order-btn,
  .order-cta,
  .charge-cta,
  .empty-cta,
  .order-card-btn.primary,
  .review-submit,
  .compose-submit,
  .gift-send-btn,
  .sched-submit-btn,
  .sched-action-btn.primary,
  .pe-save,
  .mr-btn.primary {
    background: var(--brand-grad) !important;
    box-shadow: var(--brand-glow) !important;
    border: none !important;
    transition: transform .12s ease-out, box-shadow .2s ease-out, filter .2s ease-out;
  }
  .order-btn:hover, .order-cta:hover, .charge-cta:hover, .empty-cta:hover,
  .order-card-btn.primary:hover, .review-submit:hover, .compose-submit:hover,
  .gift-send-btn:hover, .sched-submit-btn:hover, .sched-action-btn.primary:hover,
  .pe-save:hover, .mr-btn.primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 10px 28px rgba(242, 161, 167, .38) !important;
  }
  .order-btn:active, .order-cta:active, .charge-cta:active, .empty-cta:active,
  .order-card-btn.primary:active, .review-submit:active, .compose-submit:active,
  .gift-send-btn:active, .sched-submit-btn:active, .sched-action-btn.primary:active,
  .pe-save:active, .mr-btn.primary:active {
    transform: scale(0.985);
  }
  /* Disabled state — flatten and de-glow */
  .order-btn:disabled, .order-cta:disabled, .charge-cta:disabled, .empty-cta:disabled,
  .order-card-btn.primary:disabled, .review-submit:disabled, .compose-submit:disabled,
  .gift-send-btn:disabled, .sched-submit-btn:disabled, .sched-action-btn.primary:disabled,
  .pe-save:disabled, .mr-btn.primary:disabled {
    background: #D7D9D7 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    filter: none !important;
  }

  /* Round send buttons — keep circular shape but use gradient + glow */
  .comment-send,
  .vroom-chat-send,
  .send-btn {
    background: var(--brand-grad) !important;
    box-shadow: var(--brand-glow-soft) !important;
    border: none !important;
  }
  .comment-send:disabled, .vroom-chat-send:disabled, .send-btn:disabled {
    background: #BAE6FD !important;
    box-shadow: none !important;
  }

  /* Self chat bubble — consumes the equipped bubble's CSS vars so equipping
     a new 채팅 말풍선 visibly changes the user's chat bubble immediately. */
  .bubble.me {
    background: var(--my-bubble-bg, var(--brand-grad)) !important;
    box-shadow: var(--my-bubble-shadow, 0 4px 14px rgba(14, 165, 233, .25));
    color: var(--my-bubble-text, #fff) !important;
  }
  .bubble.me a, .bubble.me strong { color: var(--my-bubble-text, #fff) !important; }

  /* Equipped profile frame — rendered as a glowing ring + tag emoji on
     anywhere we put .my-avatar (currently the profile screen). */
  .my-avatar-wrap {
    position: relative;
    display: inline-block;
  }
  .my-avatar-wrap::before {
    /* Static frame ring */
    content: '';
    position: absolute; inset: -4px;
    border-radius: 50%;
    border: 2.5px solid var(--my-frame-color, transparent);
    box-shadow: var(--my-frame-glow, none), var(--my-aura-glow, none);
    pointer-events: none;
  }
  .my-avatar-wrap::after {
    /* Animated ring (conic gradient) — only visible when ring is equipped */
    content: '';
    position: absolute; inset: -8px;
    border-radius: 50%;
    background: var(--my-ring-grad, none);
    -webkit-mask: radial-gradient(circle at center, transparent 56%, #000 58%);
            mask: radial-gradient(circle at center, transparent 56%, #000 58%);
    animation: var(--my-ring-animation, none);
    pointer-events: none;
  }
  /* Voice recording 3s progress ring — CSS로 처리해서 JS render tick 없이 부드러움 */
  @keyframes voice-rec-fill {
    from { stroke-dashoffset: 389.557; }  /* 2π × 62 */
    to   { stroke-dashoffset: 0; }
  }
  @keyframes ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }
  /* Pet companion — small emoji floating bottom-right of avatar */
  .my-avatar-wrap::before { z-index: 1; }
  .my-pet-badge {
    position: absolute;
    bottom: -6px; right: -10px;
    font-size: 22px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
    animation: pet-bob 2.4s ease-in-out infinite;
    z-index: 2;
  }
  @keyframes pet-bob {
    0%,100% { transform: translateY(0) rotate(-4deg); }
    50%     { transform: translateY(-4px) rotate(6deg); }
  }

  /* Equipped nameplate — applied to .my-nameplate spans */
  .my-nameplate {
    color: var(--my-name-color, inherit);
    text-shadow: var(--my-name-shadow, none);
    background: var(--my-name-bg, transparent);
    -webkit-background-clip: var(--my-name-clip, border-box);
    background-clip: var(--my-name-clip, border-box);
    -webkit-text-fill-color: var(--my-name-fill, currentColor);
    font-family: var(--my-name-font, inherit);
  }

  .profile-bg {
    background: var(--my-profile-bg, var(--surface-mute)) !important;
  }

  .profile-bg .user-card,
  .profile-bg .coin-card,
  .profile-bg .menu-card,
  .profile-bg .quick-stats {
    backdrop-filter: blur(18px);
    background: rgba(255, 255, 255, .88);
  }

  .my-typing-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 5px 12px rgba(31, 35, 48, .12);
    font-size: 15px;
    animation: typing-chip-pop 1.2s ease-in-out infinite;
  }

  @keyframes typing-chip-pop {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.08); }
  }

  .my-read-receipt {
    display: inline-flex;
    margin-left: 3px;
    color: var(--my-mic-color, #EC4899);
    filter: drop-shadow(0 0 5px rgba(236,72,153,.35));
  }

  .vroom-seat.my-seat .vroom-seat-av {
    position: relative;
  }

  .vroom-seat.my-seat .vroom-seat-av::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 999px;
    border: 2px solid var(--my-seat-border, #06C28F);
    box-shadow: var(--my-seat-glow, 0 0 12px rgba(6,194,143,.45));
    pointer-events: none;
  }

  .vroom-seat-av.my-mic-on::before {
    content: '';
    position: absolute;
    inset: -11px;
    border-radius: 999px;
    background: var(--my-mic-ring, conic-gradient(from 0deg,#06C28F,transparent,#06C28F));
    -webkit-mask: radial-gradient(circle at center, transparent 59%, #000 61%);
            mask: radial-gradient(circle at center, transparent 59%, #000 61%);
    animation: ring-spin 2.8s linear infinite;
    opacity: .92;
    pointer-events: none;
  }

  /* (Equipped profile background is now applied directly to .profile-bg
     above via var(--my-profile-bg). Overlay layers broke the
     screen's absolute positioning and disabled scrolling.) */

  /* Equipped entry effect — center toast triggered on voice-room enter. */
  .entry-effect-toast {
    /* .phone 컨테이너 안 absolute — viewport 가 아니라 폰 화면 기준 중앙.
       데스크탑 미리보기에서도 폰 화면 안에 자연스레 표시됨. */
    position: absolute;
    left: 50%; top: 40%;
    transform: translate(-50%, -50%) scale(0.7);
    padding: 18px 28px;
    border-radius: 20px;
    color: #fff;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0,0,0,.4);
    z-index: 9999;
    animation: entry-pop .35s cubic-bezier(.34,1.56,.64,1) forwards;
    pointer-events: none;
    max-width: calc(100% - 40px);
    white-space: nowrap;
  }
  .entry-effect-toast.fade {
    animation: entry-fade .8s ease-out forwards;
  }
  @keyframes entry-pop {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  }
  @keyframes entry-fade {
    0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -60%) scale(0.9); }
  }

  /* Default banner (no inline background) gets the brand gradient */
  .banner:not([style*="background"]) {
    background: var(--brand-grad);
    box-shadow: var(--brand-glow-soft);
  }

  /* Logo: solid brand coral wordmark (gradient text banned) */
  .logo {
    color: var(--coral-500);
  }

  /* Tiny accents — make the notification dot use brand pink/aqua */
  .notif-dot {
    background: var(--brand-grad);
    box-shadow: 0 0 0 2px #fff, 0 0 8px rgba(242, 161, 167, .5);
  }

  .logo-badge,
  .level-badge,
  .menu-badge {
    background: #FBE8ED !important;
    color: #8A4B5A !important;
  }
  .tab.active {
    color: #272039;
  }
  .tab.active svg {
    color: #272039;
  }
  .screen {
    background-color: #FFFDFB;
  }
  .empty-state {
    gap: 8px;
  }

  /* ===================== 💎 PREMIUM GIFT SPECTACLE ===================== */
  /* Premium gift animation: scoped to the app frame, not the desktop viewport. */
  .gift-spectacle {
    position: absolute; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
    overflow: hidden;
    animation: spectacle-bg 5.8s ease-out forwards;
  }
  @keyframes spectacle-bg {
    0%   { background: radial-gradient(circle at 50% 50%, rgba(255,215,0,0) 0%, rgba(0,0,0,0) 70%); }
    12%  { background: radial-gradient(circle at 50% 50%, rgba(255,244,153,.74) 0%, rgba(236,72,153,.58) 44%, rgba(20,184,166,.42) 74%, rgba(0,0,0,.7) 100%); }
    48%  { background: radial-gradient(circle at 30% 35%, rgba(255,215,0,.7) 0%, rgba(236,72,153,.62) 38%, rgba(124,58,237,.56) 70%, rgba(0,0,0,.76) 100%); }
    82%  { background: radial-gradient(circle at 70% 40%, rgba(186,230,253,.56) 0%, rgba(251,207,232,.52) 48%, rgba(0,0,0,.64) 100%); }
    100% { background: radial-gradient(circle at 50% 50%, rgba(255,215,0,0) 0%, rgba(0,0,0,0) 100%); }
  }
  /* 무지개 스타 mp4 — 검정 배경을 screen 블렌드로 투명 처리 (빛나는 별만 채팅 위로).
     contain = 별 전체 표시(잘림 없음), 검정 레터박스도 screen으로 보이지 않음. */
  .gift-spectacle .spec-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: screen;
    pointer-events: none;
    animation: spec-video-in .55s cubic-bezier(.16,1,.3,1) both;
  }
  @keyframes spec-video-in {
    from { opacity: 0; transform: scale(1.12); }
    to   { opacity: 1; transform: none; }
  }
  /* 영상 연출(무지개 스타 mp4): 영상이 별 본체이므로 SVG용 장식(회전 무지개 사각프레임·링·꼬리·버스트)을
     모두 끄고, 배경도 투명하게 — 검정 배경은 영상의 mix-blend-mode:screen 이 처리, 별만 채팅 위로. */
  .gift-spectacle.spec-has-video { background: transparent !important; animation: none !important; }
  .gift-spectacle.spec-has-video::before { display: none !important; }
  .gift-spectacle.spec-has-video .spec-ring,
  .gift-spectacle.spec-has-video .spec-burst,
  .gift-spectacle.spec-has-video .spec-fx-ribbon,
  .gift-spectacle.spec-has-video .spec-comet { display: none !important; }
  .gift-spectacle .spec-emoji {
    font-size: clamp(92px, 28vw, 156px);
    line-height: 1;
    filter: drop-shadow(0 0 28px rgba(255,255,255,.95)) drop-shadow(0 0 60px rgba(236,72,153,.82));
    animation: spec-emoji-anim 5.8s ease-out forwards;
  }
  @keyframes spec-emoji-anim {
    0%   { transform: scale(0) rotate(-180deg); opacity: 0; }
    15%  { transform: scale(1.3) rotate(20deg); opacity: 1; }
    25%  { transform: scale(1) rotate(0deg); opacity: 1; }
    35%  { transform: scale(1.15) rotate(-8deg); }
    45%  { transform: scale(1) rotate(8deg); }
    55%  { transform: scale(1.15) rotate(-8deg); }
    65%  { transform: scale(1) rotate(0deg); }
    85%  { transform: scale(1.05) rotate(0deg); opacity: 1; }
    100% { transform: scale(0.4) translateY(-120%) rotate(720deg); opacity: 0; }
  }
  .gift-spectacle .spec-text {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    width: calc(100% - 48px);
    font-size: clamp(17px, 4.4vw, 24px);
    font-weight: 900;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0,0,0,.7), 0 0 30px rgba(255,215,0,.8);
    white-space: normal;
    animation: spec-text-anim 5.8s ease-out forwards;
    letter-spacing: 0;
  }
  .gift-spectacle .spec-text .spec-sub {
    display: block;
    font-size: 14px;
    font-weight: 700;
    opacity: 0.95;
    margin-top: 8px;
    text-shadow: 0 2px 12px rgba(0,0,0,.7);
  }
  .gift-spectacle.rainbow-gift::before {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 30px;
    padding: 5px;
    background: conic-gradient(from 0deg, #FF004C, #FFB800, #18C7B8, #06B6D4, #6366F1, #EC4899, #FF004C);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: spec-rainbow-border 1.2s linear infinite;
    filter: drop-shadow(0 0 18px rgba(255,255,255,.62));
  }
  .gift-spectacle.rainbow-gift .spec-text {
    bottom: 16%;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(17, 24, 39, .42);
    border: 1px solid rgba(255,255,255,.24);
    box-shadow: 0 18px 50px rgba(0,0,0,.28), inset 0 0 28px rgba(255,255,255,.08);
  }
  .gift-spectacle.rainbow-gift .spec-ring {
    border-color: rgba(255,255,255,.95);
    box-shadow: 0 0 34px rgba(255,255,255,.85), inset 0 0 34px rgba(236,72,153,.42);
  }
  .gift-spectacle.gift-fx-gift_star .spec-particle {
    filter: drop-shadow(0 0 12px rgba(255,255,255,.95)) drop-shadow(0 0 18px rgba(250,204,21,.75));
  }
  .gift-spectacle.gift-fx-gift_burst .spec-burst {
    background: radial-gradient(circle at center, rgba(255,255,255,.95) 0%, rgba(251,113,133,.58) 18%, rgba(245,158,11,.34) 34%, transparent 54%);
  }
  .gift-spectacle.gift-fx-gift_jackpot .spec-text {
    border: 1px solid rgba(250,204,21,.38);
    background: linear-gradient(135deg, rgba(17,24,39,.52), rgba(88,28,135,.46));
    border-radius: 22px;
    padding: 14px 16px;
  }
  @keyframes spec-rainbow-border {
    to { transform: rotate(360deg); }
  }
  @keyframes spec-text-anim {
    0%   { opacity: 0; transform: translateX(-50%) translateY(40px); }
    20%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    85%  { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-40px); }
  }
  .gift-spectacle .spec-particle {
    position: absolute;
    top: -15%;
    font-size: 30px;
    pointer-events: none;
    animation: spec-particle-fall 5.8s linear forwards;
    will-change: transform;
    filter: drop-shadow(0 0 10px rgba(255,255,255,.9));
  }
  @keyframes spec-particle-fall {
    0%   { top: -15%; transform: rotate(0deg); opacity: 1; }
    100% { top: 115%; transform: rotate(720deg); opacity: 0; }
  }
  .gift-spectacle .spec-burst {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.9) 0%, rgba(255,215,0,.4) 20%, transparent 50%);
    animation: spec-burst-anim 1.2s ease-out forwards;
  }
  .gift-spectacle .spec-ring {
    position: absolute;
    width: min(76%, 320px);
    aspect-ratio: 1;
    border: 2px solid rgba(255,255,255,.72);
    border-radius: 50%;
    box-shadow: 0 0 26px rgba(255,255,255,.58), inset 0 0 24px rgba(255,255,255,.26);
    animation: spec-ring-anim 5.8s ease-out forwards;
  }
  .gift-spectacle .spec-ring.r2 {
    width: min(92%, 400px);
    border-color: rgba(253,230,138,.62);
    animation-delay: .18s;
  }
  .gift-spectacle .spec-comet {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #fff;
    box-shadow: -28px 0 18px rgba(255,255,255,.6), 0 0 18px rgba(253,230,138,.95);
    animation: spec-comet-anim 2.9s ease-in-out forwards;
  }
  @keyframes spec-ring-anim {
    0% { transform: scale(.25) rotate(0deg); opacity: 0; }
    16% { opacity: 1; }
    70% { opacity: .65; }
    100% { transform: scale(1.65) rotate(260deg); opacity: 0; }
  }
  @keyframes spec-comet-anim {
    0% { transform: translate(-220px, -130px) rotate(18deg); opacity: 0; }
    12% { opacity: 1; }
    100% { transform: translate(220px, 150px) rotate(18deg); opacity: 0; }
  }
  @keyframes spec-burst-anim {
    0%   { transform: scale(0); opacity: 0; }
    20%  { transform: scale(0.5); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
  }
