/* Small, bounded decorative layer: never intercepts taps or changes layout. */
.hyt-motion-layer{position:fixed;inset:0;z-index:9000;pointer-events:none;overflow:hidden;contain:strict}
.hyt-motion-badge{position:absolute;padding:10px 18px;border-radius:999px;font:800 22px/1.2 system-ui,sans-serif;white-space:nowrap;box-shadow:0 5px 0 #a66b08,0 12px 30px #a66b0840;background:linear-gradient(135deg,#fef3c7,#fbbf24);color:#713f12}
.hyt-motion-badge.is-spend{background:#e0f2fe;color:#075985;box-shadow:0 5px 0 #0369a1,0 12px 30px #0369a130}
.hyt-motion-coin{position:absolute;width:26px;height:26px;object-fit:contain;filter:drop-shadow(1px 3px 2px #92400e50)}
.hyt-motion-counter{position:absolute;display:flex;align-items:center;justify-content:center;border-radius:8px;font-variant-numeric:tabular-nums;text-shadow:0 0 4px #fff;box-shadow:0 0 0 3px #fff;background:#fff!important}
.hyt-motion-status{position:fixed;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
.hyt-motion-background{position:fixed;inset:0;pointer-events:none;z-index:0;overflow:hidden}
.hyt-motion-background i{position:absolute;width:90px;height:90px;border-radius:50%;background:radial-gradient(circle,#fbbf2426,transparent 70%);animation:hyt-ambient 18s ease-in-out infinite alternate}
@keyframes hyt-ambient{from{transform:translate3d(-15px,20px,0) scale(.8)}to{transform:translate3d(20px,-30px,0) scale(1.25)}}
.hyt-motion-background.is-paused i{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.hyt-motion-background{display:none}.hyt-motion-layer{display:none}}

.app-shell{position:relative;z-index:1}
/* Action feedback only: no layout shifts, click interception or palette changes. */
.hyt-action-layer{position:fixed;inset:0;pointer-events:none;z-index:10001;overflow:hidden;contain:strict}
.hyt-action-toast{position:absolute;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:18px;width:min(340px,calc(100vw - 32px));box-sizing:border-box;padding:20px;border:2px solid #d1fae5;border-radius:22px;background:#fff;box-shadow:0 6px 0 #bbf7d0,0 14px 38px #0f172a30;color:#14532d}
.hyt-action-toast.state-pending{border-color:#fde68a;box-shadow:0 6px 0 #fcd34d,0 14px 38px #0f172a30;color:#92400e}
.hyt-action-toast.state-rejected{border-color:#cbd5e1;box-shadow:0 4px 0 #cbd5e1,0 14px 30px #0f172a20;color:#475569}
.hyt-action-art{position:relative;display:flex;align-items:center;justify-content:center;flex:0 0 70px;height:64px}
.hyt-action-copy{display:flex;min-width:0;flex-direction:column;gap:9px;font:600 14px/1.4 system-ui,sans-serif}
.hyt-action-copy span{overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hyt-action-stamp{display:block;font:900 19px/1.2 system-ui,sans-serif;letter-spacing:.2px}
.state-approved .hyt-action-stamp{border:2px solid #16a34a;border-radius:7px;padding:5px 9px;align-self:flex-start;color:#15803d}
.hyt-envelope{position:relative;width:66px;height:45px;background:linear-gradient(145deg,#fbbf24,#f59e0b);border:2px solid #b45309;border-radius:6px;box-shadow:0 4px 0 #d97706;overflow:hidden}
.hyt-envelope:after{content:'';position:absolute;inset:0;clip-path:polygon(0 100%,0 25%,50% 70%,100% 25%,100% 100%);background:#fcd34d}
.hyt-letter{position:absolute;left:10px;top:5px;width:45px;height:30px;border-radius:3px;background:#fffbeb}
.hyt-letter:after{content:'';position:absolute;left:7px;right:7px;top:9px;height:3px;background:#d97706;box-shadow:0 7px 0 #fbbf24}
.hyt-flap{position:absolute;inset:0;background:#f59e0b;clip-path:polygon(0 0,100% 0,50% 56%)}
.hyt-mail-flight{position:absolute;width:76px;height:56px}
.hyt-gift{position:relative;width:52px;height:43px;margin-top:14px;border-radius:5px;background:linear-gradient(135deg,#fb923c,#f97316);border:2px solid #c2410c;box-shadow:0 4px 0 #9a3412}
.hyt-gift-lid{position:absolute;left:-6px;right:-6px;top:-9px;height:15px;border-radius:4px;background:#fb923c;border:2px solid #c2410c;z-index:2}
.hyt-gift-ribbon{position:absolute;top:-7px;bottom:0;left:20px;width:10px;background:#fef3c7;z-index:3}
.hyt-gift-bow{position:absolute;top:-23px;left:8px;width:32px;height:14px;border:5px solid #fbbf24;border-radius:50% 50% 30% 30%;z-index:3;box-sizing:border-box}
.hyt-gift-spark{position:absolute;left:32px;top:30px;width:8px;height:8px;border-radius:2px;background:#fbbf24;opacity:0}
.hyt-reject-mark{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border:3px solid #94a3b8;border-radius:50%;font:500 42px/1 system-ui;color:#64748b}
.hyt-ripple-clip{position:absolute;overflow:hidden}
.hyt-ripple-clip i{position:absolute;display:block;border-radius:50%;background:rgba(255,255,255,.75);box-shadow:inset 0 0 0 2px #0f172a18}
.hyt-action-announcement{position:fixed;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;pointer-events:none}
@media(prefers-reduced-motion:reduce){.hyt-ripple-clip,.hyt-mail-flight,.hyt-gift-spark{display:none}}

/* DEV playful reactions: decorative overlays keep avatar controls untouched. */
.hyt-chain-break{position:absolute;width:0;height:0;filter:drop-shadow(0 3px 5px #0f172a30)}
.hyt-chain-break>img{position:absolute;width:66px;height:66px;left:-33px;top:-33px;filter:drop-shadow(0 0 16px #fbbf24)}
.hyt-chain-half{position:absolute;left:0;top:0;width:100px;height:40px}
.hyt-chain-break strong{position:absolute;left:0;top:42px;transform:translateX(-50%);white-space:nowrap;color:#166534;background:#f0fdf4;border:2px solid #86efac;border-radius:16px;padding:7px 12px;font:800 17px/1.3 system-ui}
.hyt-avatar-celebration{position:absolute;transform:translate(-50%,-50%);border:3px solid #fbbf24;border-radius:50%;box-sizing:border-box;box-shadow:0 0 18px #fbbf2490,inset 0 0 12px #fbbf2440}
.hyt-avatar-celebration i{position:absolute;left:50%;top:50%;font:normal 24px/1 system-ui;color:#f59e0b;text-shadow:0 1px 0 #92400e}
[data-hyt-wallet]>img[role="button"]{cursor:pointer;touch-action:manipulation}
[data-hyt-wallet]>img[role="button"]:focus-visible{outline:3px solid #2563eb;outline-offset:5px;border-radius:50%}

.hyt-avatar-celebration {
    border-color: #fde047;
    box-shadow: 0 0 0 7px #fbbf2450, 0 0 36px 12px #fbbf24a0, inset 0 0 20px #fde04790;
}
.hyt-avatar-award {
    position: absolute;
    left: 50%;
    bottom: -19px;
    translate: -50% 0;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fde047;
    color: #713f12;
    white-space: nowrap;
    font: 900 24px/1.2 system-ui,sans-serif;
    box-shadow: 0 4px 0 #b45309;
}
.state-sanction .hyt-action-stamp {
    align-self: flex-start;
    border: 2px solid #b91c1c;
    border-radius: 7px;
    padding: 3px 8px;
    color: #991b1b;
    text-transform: uppercase;
}

.hyt-open-notices {
    display: block;
    margin: 14px auto 22px;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: #e0f2fe;
    color: #0c4a6e;
    font-weight: 800;
    --hyt-edge: #7dd3fc;
}
#hyt-notice-count {
    display: inline-block;
    min-width: 1.5em;
    margin-left: 5px;
    border-radius: 999px;
    background: #075985;
    color: white;
}
.hyt-child-notices {
    box-sizing: border-box;
    width: 100%;
    max-width: 480px;
    margin: 18px auto 0;
    color: #1e293b;
    text-align: left;
}
.hyt-open-notices {
    width: fit-content;
    text-decoration: none;
}
.hyt-notice-feedback .hyt-action-toast {
    position: relative;
    inset: auto;
    transform: none;
    width: 100%;
    margin: 12px 0;
    pointer-events: none;
}
.hyt-notice-empty:not([hidden]) {
    display: grid;
    justify-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 16px;
    border-radius: 15px;
    background: #ecfdf5;
    color: #166534;
}
.hyt-caught-up-check {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #166534;
    color: white;
    font: 900 28px/1 system-ui;
}
.hyt-child-notices header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.hyt-child-notices h2 { margin: 0; }
.hyt-child-notice {
    margin-top: 12px;
    padding: 14px;
    border-radius: 14px;
    overflow-wrap: anywhere;
    background: #ecfdf5;
}
.hyt-child-notice.is-loss { background: #fff1f2; }
.hyt-child-notice p { margin: 6px 0; }
.hyt-child-notices button {
    border: 0;
    border-radius: 9px;
    padding: 8px 12px;
    color: white;
    background: #075985;
}
.hyt-notice-read { display: block; margin: 9px 0 0 auto; }
#hyt-notice-error { color: #991b1b; }

.hyt-avatar-sanction {
    border-color: #ef4444;
    box-shadow: 0 0 0 5px #ef444430, 0 0 24px 5px #ef444475;
}
.hyt-avatar-sanction .hyt-avatar-award {
    background: #fee2e2;
    color: #991b1b;
    box-shadow: 0 4px 0 #b91c1c;
}

html.hyt-motion-off *, html.hyt-motion-off *::before, html.hyt-motion-off *::after {
    animation: none !important;
    transition: none !important;
}
html.hyt-motion-off .hyt-motion-background { display: none; }
[data-hyt-motion-toggle][aria-checked="true"] .push-switch { background: #16a34a; }
[data-hyt-motion-toggle][aria-checked="true"] .push-switch-knob { transform: translateX(18px); }
.hyt-confirm-clear {
    width: min(90vw, 400px);
    box-sizing: border-box;
    border: 0;
    border-radius: 20px;
    padding: 24px;
    color: #1e293b;
    background: #fff;
    box-shadow: 0 18px 48px #0f172a50;
}
.hyt-confirm-clear::backdrop { background: #0f172a99; }
.hyt-confirm-clear h2 { font-size: 1.2rem; }
.hyt-confirm-clear div { display: flex; justify-content: end; flex-wrap: wrap; gap: 10px; }
.hyt-confirm-clear #hyt-confirm-clear-button { background: #b91c1c; }
