/*
 * 站点级别的覆盖样式。
 *
 * 这里只放「我们要和 NG 原版不一样」的地方，方便一眼看清改了什么。
 * 尽量用模板原有的类名定位，不要动它的布局骨架。
 */

/* 顶部 APP 下载条：我们没有 App，这条是 NG 的占位内容（Yabo logo + 立即下载）。
   整条隐藏，不占位。 */
._1NVYcMR8wQx5d7ut2QW_Ae {
    display: none !important;
}

/*
 * 余额前面的货币符号换成 USDT 官方图标。
 *
 * 模板里是 <i>¥</i>（我们之前换成了 <i>U</i>），单独一个字母悬在数字旁边
 * 又小又突兀。这里把 <i> 当成图标容器，用背景图显示 USDT 的圆形 logo，
 * 文字用 font-size:0 隐藏掉。
 */
._3_AKbOq_DEeg9X2aaPk0ce > i,
._3_AKbOq_DEeg9X2aaPk0ce i {
    display: inline-block;
    width: .44rem;
    height: .44rem;
    margin-right: .06rem;
    vertical-align: -.04rem;
    background: url('/legacy/Content/images/usdt.svg') center / contain no-repeat;
    font-size: 0 !important;
    line-height: 1;
    color: transparent;
}

/*
 * 登录/注册页的背景和 logo 换成「吉祥娱乐」素材。
 *
 * 模板原本用的是 NG 的 quickRegister_bg.jpg（篮球明星）和
 * quickRegister_logo.png（yabo 亚博）。这里用 CSS 覆盖指向我们自己的文件，
 * 不改动模板自带的 CSS。
 */
._2WuNrNq83pmKdj8XQFQCPL {
    background-image:
        linear-gradient(180deg,
            rgba(5, 5, 5, 0) 54%,
            rgba(5, 5, 5, .72) 70%,
            #050505 84%),
        url('/legacy/Content/images/main/quickRegister_bg.webp') !important;
    background-size: cover, cover !important;
    background-position: center top, center center !important;
    background-repeat: no-repeat, no-repeat !important;
    background-color: #050505 !important;
}

/*
 * 页面里那块独立的 logo 容器：不显示模板自带的 yabo logo，但保留高度占位。
 *
 * 背景整页用的是「吉祥娱乐」启动图，图里顶部已经带骰子和站名。
 * 如果这个容器继续显示模板 logo，会重影；
 * 如果直接 display:none，表单会上移压到背景的 logo 上。
 * 所以：去掉背景图（不显示 yabo），保留一块空白高度把表单推到 logo 下方。
 */
._2WuNrNq83pmKdj8XQFQCPL ._2kb6BvUNY5zacWvoh1noM3 {
    background: none !important;
    display: block !important;
    width: 1.2rem !important;
    /* 留白：把表单再往下推，别让「吉祥娱乐」贴着输入框 */
    height: 2.55rem !important;
}

/*
 * 登录页底部的「注册新账号」压在新背景的金色圆环上，白字看不清。
 * 加一层描边阴影让它在任何底色上都能读。
 */
/*
 * 「注册新账号」（登录页）/「已有账号？去登录」（注册页）
 *
 * 模板里它是左对齐的，压在扑克牌花纹上看不清。
 * 改成：整行居中 + 纯白加粗 + 描边阴影 + 胶囊底衬。
 */
.hvuyHuXcLoCU1bQ5IDLo- {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: .3rem;
}

/*
 * 登录页是 <a>，注册页是 <span>，两个都要覆盖。
 * 和「忘记密码?」保持同一档字号/字重，不加底衬。
 */
.hvuyHuXcLoCU1bQ5IDLo- a,
.hvuyHuXcLoCU1bQ5IDLo- span,
._1GAQXzCaaOxm_HTyI2Q0CL a,
._1GAQXzCaaOxm_HTyI2Q0CL span {
    display: inline-block;
    color: #fff !important;
    text-decoration: none;
    font-size: .28rem !important;
    font-weight: 600 !important;
    padding: 0 !important;
    background: none !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 10px rgba(0, 0, 0, .8);
}

/* 注册页底部容器本身也居中 */
._1GAQXzCaaOxm_HTyI2Q0CL {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: .3rem;
    cursor: pointer;
}

/* ============================================================
   注册页：和登录页用同一张「吉祥娱乐」背景
   ============================================================ */
.kInaJDT-JwTKZ2RuZwj6c {
    background-image: url('/legacy/Content/images/main/quickRegister_bg.webp') !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-color: #1a0d08 !important;
}

/*
 * 注册页那块独立 logo 同样去掉，只保留高度占位（背景图里自带 logo）。
 * 高度和登录页保持一致（2.55rem），两页视觉节奏统一。
 */
.kInaJDT-JwTKZ2RuZwj6c .JQU43xoGLZs2D5jWs3SI5 {
    background: none !important;
    display: block !important;
    height: 2.55rem !important;
}

/* 注册页背景从顶部对齐，让图里的 logo 落在标题下方 */
.kInaJDT-JwTKZ2RuZwj6c {
    background-position: center top !important;
}

/* ============================================================
   登录页 / 注册页底部小字的可读性
   ============================================================ */

/*
 * 「忘记密码?」和「注册新账号 / 已有账号去登录」这几处小字，
 * 落在新背景（金色圆环 + 扑克牌）上，原来的半透明白色完全看不清。
 * 统一加：更亮的字色 + 描边阴影 + 一点点底衬。
 */
._22YD6TXIGDBB9wuXjrc0zw,
.hvuyHuXcLoCU1bQ5IDLo-,
._1GAQXzCaaOxm_HTyI2Q0CL {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .75);
    letter-spacing: .01rem;
}

._22YD6TXIGDBB9wuXjrc0zw span,
.hvuyHuXcLoCU1bQ5IDLo- a,
.hvuyHuXcLoCU1bQ5IDLo- span,
._1GAQXzCaaOxm_HTyI2Q0CL span {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .9), 0 0 8px rgba(0, 0, 0, .75);
    font-size: .26rem;
    font-weight: 500;
}


/*
 * 「忘记密码?」——不要底衬，纯白加粗，靠描边阴影保证在花纹上也清楚。
 */
._22YD6TXIGDBB9wuXjrc0zw {
    display: flex;
    background: none !important;
    /* 模板是 flex + space-between，单个子元素会贴最左边。
       往右挪一点，和上面输入框的图标列对齐。 */
    justify-content: flex-start;
    padding: 0 0 0 .28rem !important;
}

._22YD6TXIGDBB9wuXjrc0zw span {
    font-size: .28rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .95), 0 0 10px rgba(0, 0, 0, .8);
}

/* ============================================================
   干掉浏览器密码管理器的自动填充底色
   ============================================================ */

/*
 * Chrome 会在它"识别"出的用户名/密码框上刷一层淡蓝（或淡黄）底色，
 * 而且优先级比普通 CSS 高，看着像输入框坏了。
 *
 * 常规写法 background: transparent !important 压不住它（浏览器用的是
 * 内部伪元素 + 内联样式）。可靠做法是把 background-color 的过渡时间
 * 拉到极大——颜色永远"正在过渡中"，于是永远不生效，输入框保持原样。
 */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    caret-color: #fff;
    transition: background-color 999999s ease-in-out 0s,
                color 999999s ease-in-out 0s;
}

/* 输入框本身也强制透明，避免模板给它加了底色 */
.vhPUsKpQ0hGVc9IRGrRFZ input,
.my-input-control input {
    background: transparent !important;
    background-color: transparent !important;
}

/* ============================================================
   注册页表单容器高度
   ============================================================ */

/*
 * 模板给表单行容器写死了 height: 3.6rem（按原来 7 个字段排的）。
 * 我们去掉了真实姓名/手机号码/取款密码，但那个固定高度还在，
 * 4 行（约 210px）仍然超出 180px，溢出的部分被下面的「注册」按钮压住。
 *
 * 改成自适应高度，行数变了也不会重叠。
 */
.JN0c5EXa9yLHkKvDgzL8j._13tbIIvxUKB2IqKh4kfKPc,
.JN0c5EXa9yLHkKvDgzL8j._1y84tBXXdaelpHuZMQV8FL {
    height: auto !important;
    margin-bottom: .18rem !important;
}

/* 按钮区和行区之间留出足够间距，别贴着最后一行 */
._1pTF74OkP6Krf_wpZceYwO {
    margin-top: .42rem !important;
}

/* ============================================================
   注册/登录页：每行固定高度，禁止被压缩
   ============================================================ */

/*
 * 模板的行容器是 display:flex; flex-flow: column nowrap。
 * 一旦容器高度不足（比如被固定成 3.6rem），flex 会把这些行**压扁**，
 * 最后一行（验证码）就只剩 35px，看起来像被下面的按钮盖住了。
 *
 * 这里给每行钉死高度和 flex 基准，容器再矮也不会压缩它们。
 */
.JN0c5EXa9yLHkKvDgzL8j > ._3LPMlMiybDtYM5GnYZwie4,
._2WuNrNq83pmKdj8XQFQCPL ._3LPMlMiybDtYM5GnYZwie4 {
    flex: 0 0 .9rem !important;
    min-height: .9rem !important;
    height: .9rem !important;
    max-height: .9rem !important;
}

/* ============================================================
   首页顶部 logo
   ============================================================ */

/*
 * 素材是「骰子 + 吉祥娱乐」的横排图（比例约 3.5:1），
 * 按表头高度 44px 给 .54rem(27px) 高，宽度自适应。
 * 模板原来写死 1.36rem × 0.54rem，横排图会被拉扁。
 */
._3SxZ2QKgblmljwW-BLd7Kv {
    display: block !important;
    height: .54rem !important;
    width: auto !important;
    max-width: 2.4rem;
    object-fit: contain;
    object-position: left center;
}

/* ============================================================
   首页改版（对齐设计稿）
   ============================================================ */

/* 未登录：两个描边按钮 */
.w11-guest-actions {
    display: flex;
    gap: .16rem;
    margin-bottom: .14rem;
}
.w11-btn-outline {
    min-width: 1.16rem;
    height: .52rem;
    line-height: .5rem;
    text-align: center;
    border: 1px solid #cbb9e8;
    border-radius: .26rem;
    color: #8b5cf6;
    font-size: .26rem;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
}
.w11-btn-outline:active { background: #f6f2fd; }
.w11-guest-tip {
    font-size: .24rem;
    color: #8b5cf6;
    font-weight: 500;
}

/*
 * 一键取回按钮：布局和文字样式交给模板的 ._1KpN2FS... 类处理。
 * 但那个类把宽度写死 .72rem(36px)，只能放两个字；
 * 「一键取回」是四个字，会被挤成两行，所以宽度要放开。
 */
.w11-act {
    text-decoration: none;
    width: auto !important;
    min-width: .72rem;
}
.w11-act h4 {
    white-space: nowrap;
}
.w11-act-ic {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: .56rem;
    margin-bottom: .08rem;
    overflow: hidden;
}
.w11-act-ic svg { width: 22px !important; height: 22px !important; }
/* h4 的字体/颜色/字号由模板 ._1KpN2FS_tuaOsFUYgYfYDp h4 规则接管，这里不再覆盖 */


/* ============================================================
   首页平台卡片（对齐设计稿）
   ============================================================ */

.w11-plat-list {
    display: flex;
    flex-direction: column;
    gap: .18rem;
    padding: .12rem .28rem .24rem;
}

.w11-plat-card {
    position: relative;
    display: block;
    border-radius: .16rem;
    overflow: hidden;
    background: linear-gradient(100deg, #f7f3ff 0%, #ece3ff 50%, #e7dcff 100%);
    box-shadow: 0 2px 12px rgba(124, 58, 237, .08);
    text-decoration: none;
    /* 高度自适应：内容约 117px，写死会被切掉 */
    min-height: 2.3rem;
}

/* 右侧大图：盖住右边 58%，左边缘做个渐变遮罩柔化 */
.w11-plat-card .bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 58%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

.w11-plat-card .info {
    position: relative;
    z-index: 2;
    width: 56%;
    padding: .2rem .22rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.w11-plat-card .head {
    display: flex;
    align-items: center;
    gap: .12rem;
    margin-bottom: .04rem;
}

.w11-plat-card .logo {
    width: .46rem;
    height: .46rem;
    border-radius: 50%;
    object-fit: contain;
    flex: 0 0 .46rem;
    background: #fff;
}

.w11-plat-card .name {
    font-size: .3rem;
    font-weight: 700;
    color: #1f2333;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w11-plat-card .sub {
    font-size: .2rem;
    color: #a78bfa;
    margin-top: .04rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w11-plat-card .enter {
    align-self: flex-start;
    margin-top: .12rem;
    padding: .06rem .22rem;
    border-radius: .2rem;
    background: linear-gradient(135deg, #a855f7, #7c3aed);
    color: #fff;
    font-size: .22rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}

/* 整图卡片：整张设计稿直接铺满，不叠任何文字 */
.w11-plat-card--img {
    background: none;
    min-height: 0;
    line-height: 0;
    /* 整图卡统一比例，所有场馆卡等高 */
    aspect-ratio: 1120 / 385;
}
.w11-plat-card--img .whole {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: .16rem;
}

/* ============ 场馆余额条 ============
 *
 * 首页主账户余额下方的一行。进游戏时余额整笔转进场馆，
 * 主账户只剩小数位，玩家看不到钱在哪儿；这一行补上「钱在哪个场馆、有多少」。
 * 只在场馆有钱时显示（JS 控制 display），余额 0 时不占位。
 *
 * 尺寸用 rem（根字号 50px）：.24rem = 12px，.3rem = 15px，
 * 和首页其它文案同一套比例。
 */
.w11-venue {
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  margin-top: .08rem;
  font-size: .24rem;
  line-height: 1.2;
  color: #8a8f99;
  /* 余额区是个窄栏，不锁死就会把「场馆/取回」拆成两行 */
  white-space: nowrap;
}
.w11-venue-amount {
  font-size: .3rem;
  font-weight: 600;
  color: #d2b496;
}
.w11-venue-unit {
  font-size: .22rem;
  color: #b9bcc4;
}
.w11-venue-recover {
  margin-left: .06rem;
  padding: .02rem .16rem;
  border: 1px solid rgba(210, 180, 150, .55);
  border-radius: .18rem;
  color: #b5844e;
  font-size: .22rem;
  text-decoration: none;
  white-space: nowrap;
}
.w11-venue-recover:active {
  background: rgba(210, 180, 150, .12);
}


/* ============ 余额刷新按钮 ============
 *
 * 充值回来余额不更新，必须重开页面。在余额右边放一个蓝色圆形箭头，
 * 点一下立刻拉最新余额；从充值页返回时也会自动刷一次（逻辑在 w11-boot.js）。
 *
 * 尺寸用 rem（根字号 50px）：.34rem ≈ 17px，比余额数字略小，不抢视觉。
 */
.w11-balance-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: .34rem;
  height: .34rem;
  margin-left: .12rem;
  color: #2f80ed;
  text-decoration: none;
  /* 父容器是 flex 且 align-items 为默认值，不居中就会顶到行首 */
  align-self: center;
}
.w11-balance-refresh svg {
  display: block;
  width: 100%;
  height: 100%;
}
.w11-balance-refresh.is-spinning svg {
  animation: w11-balance-spin .7s linear;
}
@keyframes w11-balance-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/*
 * 登录/注册页背景。
 *
 * 默认 cover：铺满屏幕，和老站一致。
 * 但 cover 是按高度缩放的——窗口比设计稿矮时，图里的骰子 logo 会上移，
 * 顶到标题「登录」。所以视口偏矮时改成按宽度铺、顶部对齐，
 * logo 的位置就只跟宽度有关，不会叠字。
 */
._2WuNrNq83pmKdj8XQFQCPL {
    background-size: cover !important;
    background-position: center top !important;
}

@media (max-height: 780px) {
    ._2WuNrNq83pmKdj8XQFQCPL {
        background-size: 100% auto, 100% auto !important;
        background-position: center top !important;
        background-color: #000 !important;
    }
}

/*
 * 登录页底部的第三方登录入口（Telegram / Facebook / Google）。
 * 圆底 + 白色图标，和设计稿一致；尺寸用 rem 跟随页面缩放。
 */
.third-login {
    margin: 0.6rem 0 0;
    padding: 0.4rem 0 0.9rem;
    text-align: center;
}

.third-tip {
    color: #b99a6b;
    font-size: 0.26rem;
    letter-spacing: 0.02rem;
    margin-bottom: 0.24rem;
}

.third-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.third-btn {
    width: 0.76rem;
    height: 0.76rem;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 0.12rem 0.28rem rgba(0, 0, 0, .45);
    transition: transform .15s ease;
}

.third-btn:active {
    transform: scale(.94);
}

.third-btn svg {
    width: 55%;
    height: 55%;
}

.third-btn.tg { background: #2aabee; }
.third-btn.fb { background: #1877f2; }
.third-btn.gg { background: #ea4335; }

/* Telegram 官方组件弹层 */
#tg-login-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .72);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#tg-login-box {
    background: #fff;
    border-radius: 12px;
    padding: 22px 26px;
    text-align: center;
    min-width: 240px;
}

#tg-login-box p {
    margin: 0 0 14px;
    font-size: 14px;
    color: #333;
}

/*
 * 登录页不需要滚动。
 *
 * 模板脚本会往 body 末尾插一个 64px 的占位块（给带底部导航的页面留位置），
 * 加上 body 自带的 padding-bottom，登录页会多出 70 多像素的滚动条。
 * 这里只针对登录页清掉，其他页面不受影响。
 */
body.login-page {
    padding-bottom: 0 !important;
}

body.login-page > div[style*="height: 64px"] {
    display: none !important;
}

/* 键盘焦点：默认浏览器 outline 太弱，这里统一成品牌色 */
.third-btn:focus,
.third-btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid #e8c78c;
    outline-offset: 2px;
}

input:focus-visible {
    outline: 2px solid rgba(232, 199, 140, .8);
    outline-offset: 1px;
}

/* 图标视觉保持 38px，点击区扩到 44px，方便手指点 */
.third-btn {
    position: relative;
}

.third-btn::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
}


/*
 * 注册页：手机号注册与短信暂未开放，
 * 模板脚本会把 #UserPhone 的内联 display:none 去掉，这里用样式固定隐藏。
 */
#UserPhone,
#sendCodeLi,
#Mailbox {
    display: none !important;
}

/*
 * 注册页等使用 w11-eye-v2 生成的「眼睛」，
 * 位置和颜色对齐登录页模板眼睛（右边距 15px、白色 85%）。
 */
.w11-eye {
    right: .3rem !important;
    width: .4rem !important;
    height: .4rem !important;
    color: rgba(255, 255, 255, .85) !important;
}

.w11-eye svg {
    stroke: currentColor !important;
}
