/* 大厅与牌桌共用的 toast / 确认框 / loading。
 * 暗金皮对齐邀请卡、设置弹层；颜色走 --lobby-*，百人页无 token 时用 fallback。
 * 游戏页禁止引入 Bootstrap，本文件也不依赖它。
 */

.gu-toast,
.gu-mask,
.gu-dialog,
.gu-btn {
    box-sizing: border-box;
}

.gu-toast {
    position: fixed;
    left: 50%;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    max-width: 80%;
    padding: 10px 16px;
    background: rgba(12, 18, 28, .92);
    color: var(--lobby-text, #e8edf6);
    font-size: 14px;
    line-height: 1.45;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    z-index: 10080;
    opacity: 0;
    visibility: hidden;
    -webkit-transition: opacity .18s;
    transition: opacity .18s;
    text-align: center;
    pointer-events: none;
}
.gu-toast.show {
    display: block !important;
    opacity: 1;
    visibility: visible;
}
.gu-toast--success { border-left: 3px solid var(--lobby-green, #1f9d63); }
.gu-toast--danger { border-left: 3px solid var(--lobby-danger, #e5484d); }
.gu-toast--warning { border-left: 3px solid var(--lobby-gold, #f5c451); }

.gu-mask {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    z-index: 10100;
    padding: 20px;
}
.gu-dialog {
    width: 100%;
    max-width: 320px;
    background: rgba(18, 28, 38, .98);
    color: var(--lobby-text, #e8edf6);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.gu-dialog-hd {
    padding: 14px 16px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.gu-dialog-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--lobby-gold, #f5c451);
}
.gu-dialog-body {
    padding: 22px 18px;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    color: var(--lobby-text, #e8edf6);
}
.gu-dialog-foot {
    display: -webkit-flex;
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.gu-btn {
    -webkit-flex: 1;
    flex: 1;
    padding: 13px 0;
    background: transparent;
    font-size: 16px;
    border: 0;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}
.gu-btn:active {
    opacity: .75;
}
.gu-btn-ghost {
    color: var(--lobby-sub, #9aa7bd);
    border-right: 1px solid rgba(255, 255, 255, .08);
}
.gu-btn-primary {
    color: var(--lobby-gold, #f5c451);
    font-weight: 600;
}

.gu-loading {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .25);
    display: none;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    z-index: 10070;
}
.gu-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgba(255, 255, 255, .35);
    border-top-color: var(--lobby-gold, #ffe08a);
    border-radius: 50%;
    -webkit-animation: gu-spin .8s linear infinite;
    animation: gu-spin .8s linear infinite;
}
@-webkit-keyframes gu-spin { to { -webkit-transform: rotate(360deg); } }
@keyframes gu-spin { to { transform: rotate(360deg); } }
