.acwf-app { display: grid; grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.82fr); gap: 26px; align-items: start; }

.acwf-stage-card {
  position: relative;
  border-radius: 24px;
  border: 1px solid rgba(245, 210, 122, 0.28);
  overflow: hidden;
  padding: 14px;
  box-shadow: 0 22px 54px rgba(6, 12, 26, 0.55);
  background: #0e1b33;
}

.acwf-friend-banner {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(184, 37, 56, 0.92), rgba(150, 27, 44, 0.96));
  border: 1px solid rgba(245, 210, 122, 0.65); border-radius: 16px;
  padding: 12px 14px; margin-bottom: 10px; color: #fffdf8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.32);
}
.acwf-friend-banner-text { flex: 1; min-width: 200px; font-size: 14px; line-height: 1.4; }
.acwf-friend-banner-text strong { display: block; font-size: 15px; color: #f5d27a; }

.acwf-stage-top { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.acwf-stage-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.acwf-tree-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(14, 27, 51, 0.84); border: 1px solid rgba(245, 210, 122, 0.45);
  border-radius: 999px; padding: 5px 12px; font-size: 13px; font-weight: 800; color: #f5d27a;
}
.acwf-tier-pill {
  background: linear-gradient(135deg, #d49b35, #f5d27a); color: #0e1b33;
  border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 800;
}
.acwf-progress-pill {
  font-size: 13px; font-weight: 700; color: #fffdf8;
  background: rgba(14, 27, 51, 0.84); border: 1px solid rgba(255, 253, 248, 0.16);
  border-radius: 999px; padding: 5px 11px;
}
.acwf-audio-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(14, 27, 51, 0.84); border: 1px solid rgba(245, 210, 122, 0.35);
  color: #f5d27a; border-radius: 999px; padding: 5px 11px;
  font-family: "Nunito", sans-serif; font-size: 12px; font-weight: 700; cursor: pointer;
}
.acwf-audio-btn[aria-pressed="true"] { background: rgba(212, 155, 53, 0.28); border-color: #f5d27a; color: #fffdf8; }

.acwf-tree-viewport {
  position: relative; z-index: 2; width: 100%; max-width: 560px; margin: 0 auto;
  aspect-ratio: 896 / 1200; border-radius: 18px; overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(245, 210, 122, 0.22);
}
.acwf-tree-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: filter 0.45s ease; }

.acwf-tree-snow, .acwf-tree-snow-2 { position: absolute; inset: -120px 0 0 0; pointer-events: none; z-index: 4; }
.acwf-tree-snow {
  background-image:
    radial-gradient(2.5px 2.5px at 14% 12%, rgba(255, 255, 255, 0.92), transparent),
    radial-gradient(3px 3px at 38% 28%, rgba(255, 252, 240, 0.85), transparent),
    radial-gradient(2px 2px at 64% 18%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(3.5px 3.5px at 84% 46%, rgba(255, 250, 230, 0.8), transparent),
    radial-gradient(2.5px 2.5px at 24% 66%, rgba(255, 255, 255, 0.88), transparent),
    radial-gradient(3px 3px at 72% 78%, rgba(255, 255, 255, 0.82), transparent);
  background-size: 240px 240px; animation: treeSnowA 9s linear infinite;
}
.acwf-tree-snow-2 {
  background-image:
    radial-gradient(4px 4px at 22% 24%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(3.5px 3.5px at 56% 52%, rgba(253, 230, 138, 0.55), transparent),
    radial-gradient(4.5px 4.5px at 82% 16%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(3.5px 3.5px at 42% 84%, rgba(255, 255, 255, 0.65), transparent);
  background-size: 320px 320px; animation: treeSnowB 14s linear infinite;
}
@keyframes treeSnowA { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(26px, 240px, 0); } }
@keyframes treeSnowB { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-28px, 320px, 0); } }
@media (prefers-reduced-motion: reduce) { .acwf-tree-snow, .acwf-tree-snow-2 { animation: none; } }

.acwf-theme-overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; transition: background 0.45s ease; background: transparent; }
.acwf-stage-card[data-theme="cozy-cabin"] .acwf-tree-img { filter: sepia(0.24) saturate(1.18) brightness(0.96); }
.acwf-stage-card[data-theme="cozy-cabin"] .acwf-theme-overlay { background: radial-gradient(circle at 50% 88%, rgba(212, 120, 42, 0.28), transparent 65%); }
.acwf-stage-card[data-theme="frosted-pine"] .acwf-tree-img { filter: hue-rotate(-14deg) saturate(0.88) brightness(1.04) contrast(1.03); }
.acwf-stage-card[data-theme="frosted-pine"] .acwf-theme-overlay { background: linear-gradient(180deg, rgba(186, 230, 253, 0.16) 0%, transparent 55%); }
.acwf-stage-card[data-theme="aurora-pro"] .acwf-theme-overlay {
  background: radial-gradient(ellipse at 25% 16%, rgba(52, 211, 153, 0.34), transparent 55%), radial-gradient(ellipse at 78% 22%, rgba(167, 139, 250, 0.32), transparent 55%);
  mix-blend-mode: screen;
}
.acwf-stage-card[data-theme="ice-crystal"] .acwf-tree-img { filter: saturate(0.72) brightness(1.1) contrast(1.06); }
.acwf-stage-card[data-theme="ice-crystal"] .acwf-theme-overlay { background: radial-gradient(ellipse at 50% 15%, rgba(224, 242, 254, 0.34), transparent 60%); mix-blend-mode: screen; }

.acwf-ornaments-layer { position: absolute; inset: 0; z-index: 3; }

.acwf-node {
  position: absolute; transform: translate(-50%, -50%);
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid #f5d27a;
  background: radial-gradient(circle at 32% 26%, rgba(255, 253, 245, 0.94) 0%, rgba(242, 224, 185, 0.84) 62%, rgba(196, 156, 92, 0.82) 100%);
  color: #241a15; font-family: "Nunito", sans-serif; font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.58), inset 0 2px 5px rgba(255, 255, 255, 0.85), inset 0 -4px 8px rgba(130, 88, 30, 0.35);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}
.acwf-node::before {
  content: ""; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  width: 2px; height: 11px; background: linear-gradient(180deg, rgba(245, 210, 122, 0.25), #f5d27a); pointer-events: none;
}
.acwf-node::after {
  content: ""; position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 6px; border-radius: 3px 3px 1px 1px;
  background: linear-gradient(90deg, #a6711c, #fde68a 50%, #a6711c); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); pointer-events: none;
}
.acwf-node:hover {
  transform: translate(-50%, -50%) scale(1.16);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.65), 0 0 18px rgba(245, 210, 122, 0.85), inset 0 2px 5px rgba(255, 255, 255, 0.9);
  z-index: 10;
}

.acwf-node.is-hung {
  width: 56px; height: 56px; border: none; background: transparent; box-shadow: none;
  transform-origin: 50% 0%; animation: ornamentSway 4.2s ease-in-out infinite;
}
.acwf-node.is-hung::after { display: none; }
.acwf-node.is-hung::before { top: -10px; height: 12px; }
.acwf-node.is-hung:nth-child(even) { animation-duration: 4.9s; animation-delay: 0.6s; }
.acwf-node.is-opened .acwf-node-svg { filter: drop-shadow(0 0 14px rgba(253, 230, 138, 0.95)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.55)); }
.acwf-node.is-shaking { animation: nodeShake 0.45s ease-in-out !important; }

.acwf-node.is-plucking {
  animation: pluckOffTree 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
  z-index: 20;
}
.acwf-node.is-plucking::before { opacity: 0; transition: opacity 0.12s; }

@keyframes pluckOffTree {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  28% { transform: translate(-50%, -36%) scale(0.92) rotate(-8deg); }
  65% { transform: translate(-50%, -78%) scale(1.38) rotate(6deg); filter: brightness(1.25); }
  100% { transform: translate(-50%, -110%) scale(1.6) rotate(0deg); opacity: 0; }
}

@keyframes ornamentSway { 0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); } 50% { transform: translate(-50%, -50%) rotate(3deg); } }
@keyframes nodeShake {
  0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
  20% { transform: translate(-58%, -50%) rotate(-10deg); }
  45% { transform: translate(-42%, -50%) rotate(10deg); }
  70% { transform: translate(-54%, -50%) rotate(-6deg); }
}

.acwf-node-svg { width: 54px; height: 54px; display: block; pointer-events: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 8px rgba(245, 210, 122, 0.35)); }
.acwf-node-day {
  position: absolute; bottom: -2px; right: -2px; background: #fffdf8; color: #961b2c;
  border: 1px solid #d49b35; border-radius: 6px; font-family: "Nunito", sans-serif;
  font-size: 11px; line-height: 1; padding: 2px 5px; min-width: 20px; text-align: center;
  font-weight: 800; transform: rotate(-6deg); box-shadow: 0 3px 6px rgba(0, 0, 0, 0.42);
}
.acwf-node-multi {
  position: absolute; top: -4px; left: -4px; background: #b82538; color: #fffdf8;
  border: 1px solid #f5d27a; border-radius: 999px; font-size: 10px; font-weight: 800;
  padding: 1px 5px; line-height: 1.2; box-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

.acwf-stage-legend { position: relative; z-index: 3; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: #f2eadb; }
.acwf-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.acwf-dot-empty { background: #f2e0b9; border: 1.5px solid #d49b35; }
.acwf-dot-hung { background: #b82538; border: 1.5px solid #f5d27a; }
.acwf-dot-opened { background: #f5d27a; box-shadow: 0 0 8px #f5d27a; }

.acwf-panel { display: flex; flex-direction: column; gap: 16px; }
.acwf-card { background: #ffffff; color: #241a15; border: 1px solid #e8decb; border-radius: 20px; padding: 22px; box-shadow: 0 14px 36px rgba(6, 12, 26, 0.34); }
.acwf-heading-lg { font-family: "Nunito", sans-serif; font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 6px; color: #241a15; }
.acwf-heading-md { font-family: "Nunito", sans-serif; font-size: 17px; font-weight: 800; line-height: 1.25; margin: 0 0 8px; color: #241a15; }
.acwf-tagline { color: #6e5e52; font-size: 14px; margin: 0 0 14px; }

.acwf-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.acwf-field label { font-size: 13px; font-weight: 700; color: #241a15; }
.acwf-field input, .acwf-field textarea {
  width: 100%; background: #faf5eb; border: 1px solid #e8decb; border-radius: 12px;
  padding: 11px 13px; color: #241a15; font-family: "Nunito", sans-serif; font-size: 15px;
}
.acwf-field input:focus, .acwf-field textarea:focus { border-color: #b82538; background: #ffffff; outline: none; }

.acwf-theme-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.acwf-theme-btn {
  background: #faf5eb; border: 1.5px solid #e8decb; border-radius: 12px; color: #6e5e52;
  padding: 9px 6px; font-family: "Nunito", sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; text-align: center;
}
.acwf-theme-btn[aria-pressed="true"] { border-color: #b82538; background: #fff7f8; color: #b82538; }

.acwf-compat-strip { margin-top: 14px; padding-top: 14px; border-top: 1px solid #f2eadb; text-align: center; }
.acwf-compat-label { font-size: 12px; font-weight: 700; color: #6e5e52; margin-bottom: 8px; }
.acwf-compat-icons { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.acwf-compat-ico {
  width: 32px; height: 32px; border-radius: 50%; background: #faf5eb; border: 1px solid #e8decb;
  display: inline-flex; align-items: center; justify-content: center; color: #241a15; box-shadow: 0 2px 5px rgba(36, 26, 21, 0.08);
}
.acwf-compat-ico svg { width: 15px; height: 15px; }

.acwf-tiles-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.acwf-tile-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 4px; border-radius: 12px; background: #faf5eb; border: 1px solid #e8decb;
  color: #241a15; font-family: "Nunito", sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none;
}
.acwf-tile-btn:hover { background: #f2eadb; border-color: #b82538; color: #b82538; text-decoration: none; }
.acwf-tile-btn svg { width: 18px; height: 18px; }

.acwf-social-pills { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.acwf-soc-btn {
  display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border-radius: 999px;
  background: #faf5eb; border: 1px solid #e8decb; color: #241a15; font-size: 12px; font-weight: 700; text-decoration: none;
}
.acwf-soc-btn:hover { border-color: #b82538; color: #b82538; text-decoration: none; }
.acwf-soc-btn svg { width: 14px; height: 14px; }

.acwf-code-box { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #faf5eb; border: 1px dashed #d49b35; border-radius: 12px; padding: 10px 14px; margin: 10px 0; }
.acwf-code-val { font-family: "Nunito", sans-serif; font-size: 19px; font-weight: 800; letter-spacing: 0.14em; color: #b82538; }
.acwf-status-msg { margin: 8px 0 0; font-size: 13px; color: #b82538; min-height: 18px; font-weight: 700; }

.acwf-lookup-row { display: flex; gap: 8px; }
.acwf-lookup-row input { flex: 1; min-width: 0; background: #faf5eb; border: 1px solid #e8decb; border-radius: 999px; padding: 9px 14px; color: #241a15; font-family: "Nunito", sans-serif; font-size: 14px; }
.acwf-my-trees { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.acwf-tree-chip { background: #faf5eb; border: 1px solid #e8decb; color: #b82538; border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.acwf-pro-strip { background: #faf5eb; border: 1px solid #e8decb; }
.acwf-pro-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.acwf-owner-box { margin-top: 12px; padding: 12px; border-radius: 12px; background: #faf5eb; border: 1px dashed #e8decb; font-size: 13px; color: #6e5e52; }

.acwf-pro-media {
  background: #faf5eb; border: 1px solid #e8decb; border-radius: 12px; padding: 12px; margin-bottom: 12px;
}
.acwf-pro-media-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 800; color: #241a15; margin-bottom: 8px; flex-wrap: wrap; }
.acwf-pro-media-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acwf-media-preview { position: relative; margin-top: 10px; background: #ffffff; border: 1px solid #e8decb; border-radius: 10px; padding: 8px; text-align: center; }
.acwf-media-preview audio { width: 100%; display: block; height: 36px; }
.acwf-media-preview video, .acwf-media-preview img { width: 100%; max-height: 180px; object-fit: contain; border-radius: 8px; display: block; margin: 0 auto; }

.acwf-pair-actions { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.acwf-pair-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 13px 16px; border-radius: 14px; font-family: "Nunito", sans-serif; font-size: 15px; font-weight: 800; cursor: pointer; }

.acwf-modal-backdrop {
  position: fixed; inset: 0; background: rgba(14, 27, 51, 0.82); backdrop-filter: blur(6px);
  z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 14px;
  overscroll-behavior: contain;
}
.acwf-modal {
  width: 100%; max-width: 490px; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain;
  background: #ffffff; color: #241a15; border: 1px solid #e8decb; border-radius: 22px;
  padding: 24px; box-shadow: 0 22px 56px rgba(6, 12, 26, 0.55); position: relative;
}
.acwf-modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e8decb; background: #faf5eb; color: #241a15; font-size: 18px; cursor: pointer; z-index: 5; }

.acwf-icon-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 8px 0 14px; }
.acwf-icon-opt {
  height: 58px; border-radius: 14px; border: 1.5px solid #e8decb; background: #faf5eb;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 5px;
  box-shadow: 0 2px 6px rgba(36, 26, 21, 0.08); transition: transform 0.14s ease, border-color 0.15s ease;
}
.acwf-icon-opt:hover { transform: scale(1.08); border-color: #b82538; }
.acwf-icon-opt[aria-pressed="true"] { border-color: #b82538; background: #fff4f5; box-shadow: 0 0 0 2px rgba(184, 37, 56, 0.25); }
.acwf-icon-opt svg { width: 42px; height: 42px; display: block; filter: drop-shadow(0 3px 4px rgba(36, 26, 21, 0.22)); }

.acwf-check-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: #6e5e52; margin: 8px 0; cursor: pointer; }
.acwf-check-row-viral { background: #faf5eb; border: 1px solid #e8decb; border-radius: 12px; padding: 10px 12px; font-weight: 700; color: #241a15; margin-bottom: 14px; }

.acwf-giftbox-stage { padding: 20px 0 14px; text-align: center; cursor: pointer; }
.acwf-giftbox {
  position: relative; width: 136px; height: 128px; margin: 18px auto 14px;
  animation: giftWobble 1.6s ease-in-out infinite;
}
.acwf-giftbox-base {
  position: absolute; bottom: 0; left: 8px; width: 120px; height: 86px; border-radius: 10px;
  background: linear-gradient(135deg, #c81e3a 0%, #881337 100%);
  box-shadow: 0 14px 28px rgba(136, 19, 55, 0.35), inset 0 -6px 12px rgba(0, 0, 0, 0.25);
}
.acwf-giftbox-base::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; transform: translateX(-50%);
  background: linear-gradient(90deg, #b4781c, #fde68a 50%, #b4781c);
}
.acwf-giftbox-lid {
  position: absolute; top: 18px; left: 0; width: 136px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #e11d48 0%, #9f1239 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
  z-index: 3;
}
.acwf-giftbox-lid::before {
  content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 22px; transform: translateX(-50%);
  background: linear-gradient(90deg, #b4781c, #fde68a 50%, #b4781c);
}
.acwf-giftbox-bow {
  position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 24px;
}
.acwf-giftbox-bow::before, .acwf-giftbox-bow::after {
  content: ""; position: absolute; top: 2px; width: 28px; height: 22px;
  border: 5px solid #f5d27a; border-radius: 50% 50% 0 50%;
}
.acwf-giftbox-bow::before { left: 0; transform: rotate(-18deg); }
.acwf-giftbox-bow::after { right: 0; border-radius: 50% 50% 50% 0; transform: rotate(18deg); }

.acwf-giftbox.is-opening { animation: none; }
.acwf-giftbox.is-opening .acwf-giftbox-lid { transform: translateY(-64px) rotate(-18deg) scale(1.06); opacity: 0; }
.acwf-giftbox-glow {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 230, 138, 0.9), transparent 68%);
  opacity: 0; transform: scale(0.4); transition: opacity 0.35s ease, transform 0.45s ease;
}
.acwf-giftbox.is-opening .acwf-giftbox-glow { opacity: 1; transform: scale(1.8); }

@keyframes giftWobble {
  0%, 100% { transform: rotate(0deg) scale(1); }
  20% { transform: rotate(-4deg) scale(1.03); }
  40% { transform: rotate(4deg) scale(1.03); }
  60% { transform: rotate(-2deg) scale(1.01); }
  80% { transform: rotate(2deg) scale(1.01); }
}

.acwf-unwrap-box { text-align: center; padding: 6px 0; position: relative; }
.acwf-reveal-content { animation: letterRise 0.48s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes letterRise { from { opacity: 0; transform: translateY(22px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

.acwf-unwrap-icon {
  width: 82px; height: 82px; margin: 0 auto 10px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: #faf5eb; border: 2px solid #d49b35; box-shadow: 0 8px 20px rgba(36, 26, 21, 0.14);
}
.acwf-unwrap-icon svg { width: 58px; height: 58px; filter: drop-shadow(0 4px 6px rgba(36, 26, 21, 0.22)); }

.acwf-confetti-layer { pointer-events: none; position: absolute; inset: 0; overflow: hidden; z-index: 4; }
.acwf-spark { position: absolute; width: 9px; height: 9px; border-radius: 2px; animation: sparkFly 1s ease-out forwards; }
@keyframes sparkFly {
  0% { transform: translate(0, 0) scale(1) rotate(0deg); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.2) rotate(260deg); opacity: 0; }
}

.acwf-note-quote {
  background: repeating-linear-gradient(180deg, #faf5eb 0px, #faf5eb 29px, #e8decb 30px);
  border: 1px solid #e8decb; border-radius: 14px; padding: 16px 18px;
  font-family: "Nunito", sans-serif; font-size: 16px; font-weight: 600; line-height: 30px;
  color: #241a15; margin: 12px 0; white-space: pre-wrap; word-break: break-word; text-align: left;
}

.acwf-media-embed {
  position: relative; margin: 12px 0; border-radius: 14px; overflow: hidden;
  border: 1px solid #e8decb; background: #0e1b33; min-height: 76px;
}
.acwf-media-embed iframe { display: block; width: 100%; border: 0; position: relative; z-index: 1; }
.acwf-media-loading {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 16px;
  background: linear-gradient(135deg, #122341, #0e1b33); color: #f5d27a;
  font-size: 13px; font-weight: 700; transition: opacity 0.25s ease;
}
.acwf-media-loading.is-done { opacity: 0; pointer-events: none; }
.acwf-spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(245, 210, 122, 0.25); border-top-color: #f5d27a;
  animation: acwfSpin 0.8s linear infinite;
}
@keyframes acwfSpin { to { transform: rotate(360deg); } }

.acwf-countdown { display: inline-block; background: #faf5eb; border: 1px solid #b82538; color: #b82538; border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; margin: 8px 0 12px; }

@media (max-width: 940px) { .acwf-app { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 640px) {
  .acwf-stage-card { padding: 10px 8px 14px; border-radius: 20px; }
  .acwf-tree-viewport { border-radius: 14px; }
  .acwf-node { width: 38px; height: 38px; font-size: 13px; }
  .acwf-node::before { top: -10px; height: 9px; }
  .acwf-node::after { top: -5px; width: 10px; height: 5px; }
  .acwf-node.is-hung { width: 44px; height: 44px; }
  .acwf-node-svg { width: 42px; height: 42px; }
  .acwf-card { padding: 18px 16px; border-radius: 18px; }
  .acwf-icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}