/* Shared top-down feedback for authorization and game input. */
.wx-toast-region { position: fixed; z-index: 1000; top: max(12px, env(safe-area-inset-top)); bottom: auto; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 28px); pointer-events: none; display: flex; flex-direction: column; align-items: center; }
.wx-top-toast { box-sizing: border-box; display: flex; align-items: center; gap: 9px; width: max-content; max-width: min(560px, calc(100vw - 28px)); min-height: 40px; padding: 10px 15px; border: 1px solid #d6e5fa; border-radius: 14px; background: #fff; color: #245b94; box-shadow: 0 5px 18px rgba(31,50,79,.10); font: 600 13px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; text-align: left; white-space: normal; }
.wx-top-toast > span { min-width: 0; overflow-wrap: anywhere; }
.wx-top-toast > i, .wx-top-toast > .wx-feedback-icon { flex-shrink: 0; font-size: 16px; line-height: 1; width: 16px; height: 16px; color: inherit; }
.wx-toast--error { color: #b91c1c; border-color: #ffc3c3; }
.wx-toast--error > i, .wx-toast--error > .wx-feedback-icon { color: #ed3038; }
.wx-toast--warning { color: #a94d0a; border-color: #ffd591; }
.wx-toast--warning > i, .wx-toast--warning > .wx-feedback-icon { color: #e98a06; }
.wx-toast--success { color: #267549; border-color: #c6e8d3; }
@keyframes wx-feedback-enter { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: translateY(0); } }
[data-theme="dark"] .wx-top-toast { background: #2a2c32; color: #abd0ff; border-color: #475c78; box-shadow: 0 5px 18px rgba(0,0,0,.22); }
[data-theme="dark"] .wx-toast--error { color: #ffb3b6; border-color: #805055; }
[data-theme="dark"] .wx-toast--warning { color: #ffd09a; border-color: #79603a; }
[data-theme="dark"] .wx-toast--success { color: #a3dfb9; border-color: #446b51; }
@media (max-width: 360px) { .wx-top-toast { padding: 9px 12px; font-size: 12px; gap: 7px; } }
@media (prefers-reduced-motion: reduce) { .wx-toast-item { animation: none; transition: none; } }

.wx-toast-item { box-sizing: border-box; flex: 0 0 auto; max-width: 100%; padding-bottom: 8px; opacity: 1; animation: wx-feedback-enter .28s cubic-bezier(.2,.8,.2,1); transition: height .24s ease, opacity .22s ease, padding .24s ease, transform .24s ease; }
.wx-toast-item.is-leaving { height: 0!important; padding-bottom: 0; opacity: 0; overflow: hidden; transform: translateY(-14px); animation: none; }
@media (prefers-reduced-motion: reduce) { .wx-toast-item { animation: none; transition: none; } }
