:root {
    --custom-main-hue: 0deg;


    --thyuu--main-color: var(--custom-main-hue, 0deg) var(--custom-main-sat, 70%) var(--custom-main-lig, 70%);
    --thyuu--subs-color: var(--custom-subs-hue, 20deg) var(--custom-subs-sat, 70%) var(--custom-subs-lig, 70%);
    --thyuu--color-font: 0deg 0% 20%;
    --thyuu--alpha-font: 100%;
    --thyuu--color-font-head: hsl(var(--thyuu--color-font) / var(--thyuu--alpha-font));
    --thyuu--color-font-fill: hsl(0deg 0% 100% / .9);
    --thyuu--color-scroll: hsl(var(--thyuu--main-color) / 30%);
    --thyuu--color-back-font: hsl(var(--thyuu--color-font) / 5%);
    --thyuu--color-back-have: hsl(0deg 0% 98%);
    --thyuu--color-back-white: hsl(0deg 0% 100%);
    --thyuu--color-back-none: transparent;
    --thyuu--font-weight-normal: 400;
    --thyuu--font-weight-title: 600;
    --thyuu--font-family-normal: var(--custom-fonts, none), 'Misans VF', 'PingFang SC', 'Noto Sans SC', sans-serif, thyuu-iconfont;
    --thyuu--font-family-slogn: var(--custom-slogn, none), '快看世界体', var(--thyuu--font-family-normal);
    --thyuu--font-family-coder: var(--custom-coder, none), 'Monaco', 'Consolas', var(--thyuu--font-family-normal);
    --thyuu--font-family-title: var(--thyuu--font-family-normal);
    --thyuu--size-normal: var(--custom-font-size, 16px);
    --thyuu--size-medium: .875rem;
    --thyuu--size-small: .75rem;
    --thyuu--size-title: 1rem;
    --thyuu--size-edgetb: var(--thyuu--height-head);
    --thyuu--size-edgelr: 3rem;
    --thyuu--size-area: 3rem;
    --thyuu--size-divs: 1.5rem;
    --thyuu--size-span: 1rem;
    --thyuu--size-icon: 1.25rem;
    --thyuu--size-radius: var(--custom-radius, var(--thyuu--size-normal));
    --thyuu--size-card-normal: 22.5rem;
    --thyuu--size-card-small: 13.5rem;
    --thyuu--size-screen-medium: 1152px;
    --thyuu--size-content: var(--custom-content-size, 62.5rem);
    --thyuu--size-scroll: 12px;
    --thyuu--size-cover-top: max(10em, 30vh);
    --thyuu--height-head: 4rem;
    --fasgt-header-blur: 10px;
    --thyuu--sticky-head: var(--thyuu--height-head);
    --thyuu--height-cover: max(var(--thyuu--size-card-normal), 80vh);
    --thyuu--align-cover: var(--custom-cover-align, center);
    --thyuu--mask-scroll-y: linear-gradient(#0000, #000 var(--thyuu--size-divs), #000 calc(100% - var(--thyuu--size-divs)), #0000);
    --thyuu--mask-scroll-x: linear-gradient(90deg, #0000, #000 var(--thyuu--size-divs), #000 calc(100% - var(--thyuu--size-divs)), #0000);
    --thyuu--border: thin solid hsl(var(--thyuu--color-font) / 5%);
    --thyuu--shadow-text: 0 .04rem .2rem rgb(0 0 0 / 30%);
    --thyuu--shadow-normal: 0 .2rem 1rem 0 hsl(0deg 0% 15% / 10%);
    --thyuu--shadow-white: 0 .2rem 1rem 0 hsl(0deg 0% 15% / 4%);
    --thyuu--shadow-color: var(--thyuu--shadow-normal), 0 2rem 2rem -2rem hsl(var(--thyuu--main-color) / 30%);
    --animation-on: cubic-bezier(.6, .1, 0, 1);
    --animation-in: cubic-bezier(.6, .2, .25, 1);
    --animation: opacity .5s var(--animation-in) backwards, transform 1s var(--animation-in) backwards, filter .7s var(--animation-in);
    /* 首页星球入场动画时长：pages.css 的 fasgtPlanetIn 与流星启动延迟共用这一处定义 */
    --fasgt-hero-enter-duration: 1.1s;
    /* 星球入场结束后的缓冲，流星在这一段之后再启动 */
    --fasgt-hero-enter-buffer: .6s;
    --wp--preset--font-size--small: .75em;
    --wp--preset--font-size--medium: 1.75em;
    --wp--preset--font-size--large: 2em;
    --wp--preset--font-size--x-large: 3em;
}
body{
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}
/* 定义字体 */
@font-face {
    font-family: "AaGouChengZhuYi";
    src: url("../file/font/AaGouChengZhuYi-2.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* 控制字体加载期间的显示行为 */
  }

.site-main {}

.container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    --flow-color: hsl(var(--thyuu--main-color) / .4);
    --sun-size: 70vmin;
    padding-top: 0;
    /* --gap: calc(var(--thyuu--size-edgelr)* -1); */
    flex-direction: column;
}

.box {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    inset: 0;
    margin: auto;
    contain: layout;
    pointer-events: none;
    transition: 1s;

}

@media (max-width: 1152px) {
    .box {
        bottom: auto;
        height: calc(var(--sun-size) + var(--thyuu--size-edgetb)* 2);
    }
}

/* 首页星球上方的流星点缀：仅首页结构内存在，纯 CSS 动画 */
.container > .box {
    z-index: 0;
}

.meteor-sky {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.meteor {
    --meteor-tail: calc(var(--sun-size) * 0.65);
    --meteor-travel: calc(var(--sun-size) * 0.95);
    position: absolute;
    width: var(--meteor-tail);
    height: 1px;
    border-radius: 999px;
    background: linear-gradient(90deg,
            hsl(var(--thyuu--main-color) / 0) 0%,
            hsl(var(--thyuu--main-color) / 0.18) 55%,
            hsl(var(--thyuu--main-color) / 0.7) 100%);
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(166deg);
    /* 首轮等星球入场动画结束并缓冲后再开始，三颗流星之间原有的 0/10/20s 间隔不变 */
    animation: meteorFall 30s linear infinite;
    animation-delay: calc(var(--fasgt-hero-enter-duration) + var(--fasgt-hero-enter-buffer) + var(--meteor-delay, 0s));
    will-change: transform, opacity;
}

/* 流星头部的一点微光，亮度低于星球光晕 */
.meteor::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 3px;
    height: 3px;
    margin-top: -1.5px;
    border-radius: 50%;
    background: hsl(var(--thyuu--main-color) / 0.85);
    box-shadow: 0 0 6px 1px hsl(var(--thyuu--main-color) / 0.35);
}

.meteor:nth-child(1) {
    top: 13%;
    right: calc(50% - var(--sun-size) * 0.89);
    --meteor-delay: 0s;
}

.meteor:nth-child(2) {
    top: 17%;
    right: calc(50% - var(--sun-size) * 0.75);
    --meteor-delay: 10s;
}

.meteor:nth-child(3) {
    top: 20%;
    right: calc(50% - var(--sun-size) * 1);
    --meteor-delay: 20s;
}

@keyframes meteorFall {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) rotate(166deg);
    }

    1.5% {
        opacity: 0;
        transform: translate3d(calc(var(--meteor-travel) * -0.05), calc(var(--meteor-travel) * 0.012), 0) rotate(166deg);
    }

    2.5% {
        opacity: 0.8;
    }

    4% {
        opacity: 0.55;
    }

    5% {
        opacity: 0;
        transform: translate3d(calc(var(--meteor-travel) * -0.97), calc(var(--meteor-travel) * 0.235), 0) rotate(166deg);
    }

    100% {
        opacity: 0;
        transform: translate3d(calc(var(--meteor-travel) * -0.97), calc(var(--meteor-travel) * 0.235), 0) rotate(166deg);
    }
}

@media (max-width: 768px) {
    .meteor {
        --meteor-tail: calc(var(--sun-size) * 0.5);
    }

    /* 移动端只保留两道 */
    .meteor:nth-child(3) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .meteor-sky {
        display: none;
    }
}

.box-content {
    position: absolute;
    color: var(--flow-color);
    font-size: var(--sun-size);
    width: 1em;
    height: 1em;
    transform-style: preserve-3d;
    pointer-events: none;
}

.box-content sun {
    background: var(--thyuu--color-back-have);
    box-shadow: 0 0 1em, 0.2em -0.25em 0.5em 0.2em inset;
    position: absolute;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    transform-style: preserve-3d;
}

.box-content sun,
.box-content flow,
.box-content flow i {
    position: absolute;
    width: 1em;
    height: 1em;
    border-radius: 50%;
    transform-style: preserve-3d;
}

.box-content flow i {
    border: thin solid;
    opacity: 0;
    transform: rotate3d(1, 0, 1, 85deg);
    animation: flow 10s linear infinite backwards;
}

.box-content flow i:nth-child(2) {
    animation-duration: 8s;
    animation-delay: 2s;
}

.box-content flow i:nth-child(3) {
    animation-delay: 4s;
}

@keyframes flow {
    10% {
        opacity: 1;
    }

    100% {
        transform: scale(3) rotate3d(1, 0, -1, 85deg);
        opacity: 0;
    }
}

.for-come {
    color: hsl(var(--thyuu--main-color));
    display: flex;
    width: 100%;
    height: var(--sun-size);
    flex-flow: column;
    justify-content: center;
    text-align: center;
    grid-area: 1 / 1 / 1 / 1;
    margin: var(--thyuu--size-edgetb) 0;
    /* 标题与 logo 需盖在星球与轨道之上，星球仍在其下播放动画 */
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.for-come .greets {
    display: grid;
    place-items: center;
    animation: var(--animation);
    animation-delay: .3s;
}

.for-come h2 {
    grid-area: 1 / 1;
    height: 1.5em;
    font: 400 clamp(1.5em, var(--sun-size) / (var(--count, 10) + 1), 4em)/1.5 var(--thyuu--font-family-slogn);
    letter-spacing: max(2px, var(--sun-size) / var(--count, 10) / 10);
    text-shadow: 0.1em 0.1em var(--flow-color);
    -webkit-mask: linear-gradient(#000 30%, rgb(0 0 0 / .5));
    mask: linear-gradient(#000 30%, rgb(0 0 0 / .5));
    transition: .5s;
    font-family: "AaGouChengZhuYi", fallback-font, sans-serif;
}

/* 首页大标题上方的 logo，居中且不影响星球与流星动画 */
.home-logo {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: clamp(12px, 2.2vmin, 20px);
}

.home-logo img {
    display: block;
    width: auto;
    height: clamp(108px, 19.5vmin, 171px);
    max-width: min(100vw, 540px);
    object-fit: contain;
}

/* logo 遮罩：图片作为 alpha，填充设置的颜色；未设置颜色或浏览器不支持 mask 时显示原图 */
.home-logo-mask {
    display: none;
    position: absolute;
    inset: 0;
    -webkit-mask-image: var(--home-logo-src);
    mask-image: var(--home-logo-src);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: contain;
    mask-size: contain;
}

@supports ((-webkit-mask-image: none) or (mask-image: none)) {
    .home-logo--masked .home-logo-img {
        visibility: hidden;
    }

    .home-logo--masked .home-logo-mask {
        display: block;
    }
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    transition: transform 0.28s ease;
    will-change: transform;
}

/* 向下滚动时由 JS 添加，向上滚动/回顶部时移除 */
.site-header.is-hidden {
    transform: translateY(-100%);
}

/* 顶栏毛玻璃层：同一元素覆盖顶栏并向下延伸，底部用遮罩渐隐，避免两段模糊拼接出分界线 */
.site-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -20px;
    z-index: -1;
    pointer-events: none;
    backdrop-filter: blur(var(--fasgt-header-blur, 10px));
    -webkit-backdrop-filter: blur(var(--fasgt-header-blur, 10px));
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 20px), transparent 100%);
}

@media (max-width: 640px) {
    .site-header::before {
        bottom: -16px;
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 16px), transparent 100%);
        mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 16px), transparent 100%);
    }
}

/* 减少动效或低性能设备：去掉模糊层 */
@media (prefers-reduced-motion: reduce) {
    .site-header::before {
        display: none;
    }
}

/* 键盘焦点进入顶栏时始终可见，避免焦点落在不可见元素上 */
.site-header:focus-within {
    transform: none;
}

/* 减少动效：直接保持常显，不做位移 */
@media (prefers-reduced-motion: reduce) {
    .site-header {
        transition: none;
    }

    .site-header.is-hidden {
        transform: none;
    }
}

.site-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* padding: 1rem; */
}

.site-header-logo {
    width: 100px;
    /* height: 100px; */
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-header-logo a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.site-header-logo img {
    width: 100%;
    height: 50%;
    margin: 0 1rem;
    object-fit: contain;
    /* filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(var(--custom-main-hue)); */
    filter: sepia(100%) saturate(300%) brightness(88%) hue-rotate(calc(var(--custom-main-hue) + 290deg));
}

.site-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header-nav ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-header-nav ul li {
    list-style: none;
    margin: 0 1rem;

}

.site-header-nav ul li a {
    color: hsl(var(--thyuu--main-color));
}

.for-news {
    --gap: calc(var(--thyuu--size-edgelr)* -1);
    grid-area: 1 / 1 / 1 / 1;
    /* align-self: end; */
    display: grid;
    /* padding: var(--thyuu--size-edgelr); */
    margin: calc(var(--thyuu--size-edgetb)* -2) var(--gap) 0;
    border-radius: 100vw / var(--thyuu--size-edgelr);
    border-top: thin solid var(--flow-color);
    box-shadow: 0 -4em 3em -4em rgb(0 0 0 / 5%);
    -webkit-backdrop-filter: blur(10px) saturate(1.5);
    backdrop-filter: blur(10px) saturate(1.5);
    animation: opacity .5s backwards;
    animation-delay: .7s;
    width: 100%;
    justify-items: center;
    padding-bottom: var(--thyuu--size-edgelr);
}

.news-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    /* width: 100%; */
    height: 100%;
    padding: 1rem;
}


.news-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 3rem;
    /* background-color: #d4d4d4; */
    border-radius: 1rem;

}

/* 头部搜索与页面导航 */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header-inner {
    gap: 1rem;
    padding: 0.35rem 0;
}

.site-header-nav {
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-right: 1rem;
}

/* 窄桌面（>720px）：顶栏保持单行，空间不足时优先压缩搜索框，避免明暗按钮换行 */
@media (min-width: 721px) {
    .site-header-nav {
        flex-wrap: nowrap;
    }

    .site-search {
        flex: 0 1 auto;
        min-width: 0;
    }

    .site-search input {
        flex: 0 1 auto;
        min-width: 5rem;
    }
}

.site-nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
}

.site-header-nav .site-nav-list li {
    margin: 0;
}

.site-nav-list a {
    display: inline-flex;
    align-items: center;
    height: 2rem;
    padding: 0 0.7rem;
    border-radius: 0.6rem;
    color: var(--text-ecolor);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, background 0.3s ease;
}

.site-nav-list a:hover {
    color: var(--text-color);
    background: hsl(var(--thyuu--main-color) / 0.2);
}

.site-nav-list a.current {
    color: var(--text-color);
    background: hsl(var(--thyuu--main-color) / 0.32);
    box-shadow: inset 0 0 0 1px hsl(var(--thyuu--main-color) / 0.25);
}

.site-search {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    height: 2.2rem;
    padding: 0 0.3rem 0 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.site-search input {
    width: 9.5rem;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text-color);
    font-size: 0.82rem;
    font-family: inherit;
}

.site-search input::placeholder {
    color: var(--text-ecolor);
}

.site-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border: none;
    border-radius: 50%;
    background: hsl(var(--thyuu--main-color) / 0.35);
    color: var(--text-color);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.site-search button:hover {
    background: hsl(var(--thyuu--main-color) / 0.65);
    transform: scale(1.05);
}

@media (max-width: 720px) {
    .site-header-inner {
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0.35rem 0.6rem;
    }

    .site-header-nav {
        margin-right: 0;
        margin-left: auto;
        gap: 0.4rem;
        flex-wrap: nowrap;
    }

    .site-header-nav .site-nav-list {
        display: none;
    }

    .site-header-logo {
        width: 76px;
    }

    .site-header-logo img {
        margin: 0 0.5rem;
    }

    .nav-toggle {
        flex: none;
    }

    .site-search input {
        width: clamp(4.5rem, 24vw, 7rem);
    }
}

/* 移动端抽屉导航 */
.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 35px;
    height: 35px;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    color: var(--text-color);
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background 0.3s ease;
}

.nav-toggle:hover {
    background: hsl(var(--thyuu--main-color) / 0.25);
}

.nav-toggle-bar {
    display: block;
    width: 0.8rem;
    height: 1.5px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
}

@media (max-width: 720px) {
    .nav-toggle {
        display: inline-flex;
    }
}

.mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgb(0 0 0 / 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    width: min(82vw, 20rem);
    transform: translateX(-105%);
    transition: transform 0.38s var(--animation-in);
}

body.nav-open .mobile-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
}

body.nav-open .mobile-nav {
    transform: translateX(0);
}

@media (max-width: 720px) {
    .mobile-nav {
        display: flex;
    }
}

.mobile-nav-panel {
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    height: 100%;
    padding: 0.75rem 1rem 1.5rem;
    overflow-y: auto;
    border-right: 1px solid hsl(var(--thyuu--main-color) / 0.18);
    background: var(--card-bg);
    box-shadow: 12px 0 30px rgb(0 0 0 / 0.18);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
}

/* 抽屉顶部图片：铺满面板宽度，左下角叠加座右铭 */
.mobile-nav-cover {
    position: relative;
    flex: none;
    height: clamp(7rem, 34vw, 9.5rem);
    margin: -0.75rem -1rem 0;
    background-color: hsl(var(--thyuu--main-color) / 0.2);
    background-image:
        linear-gradient(180deg, rgb(0 0 0 / 0) 30%, rgb(0 0 0 / 0.55)),
        var(--drawer-cover, linear-gradient(135deg, hsl(var(--thyuu--main-color) / 0.5), hsl(var(--thyuu--main-color) / 0.18)));
    background-position: center;
    background-size: cover;
    overflow: hidden;
}

.mobile-nav-motto {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.8rem;
    margin: 0;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: right;
    text-shadow: 0 1px 4px rgb(0 0 0 / 0.7);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 0.85rem;
    border-radius: 0.7rem;
    color: var(--text-ecolor);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease, background 0.3s ease;
}

.mobile-nav-list a::after {
    content: "›";
    font-size: 1.1rem;
    opacity: 0.45;
}

.mobile-nav-list a:hover,
.mobile-nav-list a.current {
    color: var(--text-color);
    background: hsl(var(--thyuu--main-color) / 0.24);
}

/* ========== 全局消息弹窗（toast） ========== */
.fasgt-toast {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 76px);
    left: 50%;
    z-index: 10050;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    width: min(92vw, 480px);
    min-height: 50px;
    padding: 10px 14px;
    border-radius: 10px;
    background-color: var(--messagegreen, #21a67599);
    color: #fff;
    font-size: 0.86rem;
    line-height: 1.5;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    transform: translate(-50%, -40px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

.fasgt-toast.is-visible {
    visibility: visible;
    animation: fasgtToastIn 0.42s ease forwards;
}

.fasgt-toast.is-hiding {
    visibility: visible;
    animation: fasgtToastOut 0.3s ease forwards;
}

.fasgt-toast-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
}

.fasgt-toast-text {
    flex: 1 1 auto;
    margin: 0;
    overflow-wrap: anywhere;
}

.fasgt-toast-close {
    display: none;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.24);
    color: #fff;
    font-size: 14px;
    font-family: inherit;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
}

.fasgt-toast.is-closable .fasgt-toast-close {
    display: inline-block;
}

.fasgt-toast-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    transform-origin: left center;
    animation: fasgtToastProgress var(--fasgt-toast-time, 3000ms) linear forwards;
}

@keyframes fasgtToastIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -40px);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes fasgtToastOut {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -24px);
    }
}

@keyframes fasgtToastProgress {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

@media (max-width: 640px) {
    .fasgt-toast {
        top: calc(env(safe-area-inset-top, 0px) + 68px);
        width: min(94vw, 480px);
        padding: 9px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fasgt-toast.is-visible {
        visibility: visible;
        animation: none;
        opacity: 1;
        transform: translate(-50%, 0);
    }

    .fasgt-toast.is-hiding {
        visibility: visible;
        animation: none;
        opacity: 0;
        transform: translate(-50%, 0);
        transition: opacity 0.2s ease;
    }

    .fasgt-toast-progress {
        display: none;
    }
}
