/* 7709 landing page | consolidated stylesheet. Original cascade order preserved.
   Layout and line panel styles are intentionally kept in source order to prevent regressions. */

/* ---- style.css ---- */
html,
        body {
            margin: 0;
            font-family: Arial, sans-serif;
            background: transparent;
        }

        /* ===== 页面容器 ===== */
        .mobile-wrap {
            position: relative;
            min-height: 100vh;
            display: flex;
            justify-content: center;
        }

        /* ===== 背景图片 ===== */
        .bg {
            position: fixed;
            inset: 0;
            display: flex;
            justify-content: center;
            background: transparent;
            z-index: -2;
        }

        .bg img {
            width: 100%;
            height: auto;
        }

        /* 电脑端限制背景图宽度 */
        @media (min-width: 768px) {
            .bg img {
                max-width: 520px;
            }
        }

        /* 底部暖金红渐变遮罩 */
        .bg::after {
            content: "";
            position: absolute;
            top: 0;
            bottom: 0;
            left: 50%;
            width: 100%;
            max-width: 520px;
            transform: translateX(-50%);

            background: linear-gradient(
                to bottom,
                transparent 58%,
                rgba(183, 25, 10, 0.08) 74%,
                rgba(111, 5, 2, 0.35) 100%
            );

            pointer-events: none;
        }

        /* ===== 内容区域 ===== */
        .content {
            width: 100%;
            max-width: 500px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            align-items: center;
            padding-bottom: 70px;
        }

        /* ==================================================
           底部红色四宫格
        ================================================== */
        .menu {
            width: 91%;
            display: grid;

            grid-template-columns: repeat(2, minmax(0, 1fr));
            grid-template-rows: repeat(2, minmax(0, 1fr));

            aspect-ratio: 2.18 / 1;
            box-sizing: border-box;

            border: 2px solid #f0c257;
            border-radius: 14px;
            overflow: visible;

            background: #e84237;

            box-shadow:
                0 2px 8px rgba(126, 20, 10, 0.12);
        }

        /* 顶部轻微高光 */
        .menu::before {
            content: "";
            position: absolute;
            left: 8px;
            right: 8px;
            top: 7px;
            height: 18%;
            border-radius: 12px;

            background: linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.08),
                rgba(255, 255, 255, 0)
            );

            pointer-events: none;
            z-index: 0;
        }

        /* 四个按钮统一设置 */
        .menu > a {
            position: relative;
            z-index: 1;
            box-sizing: border-box;

            min-width: 0;
            min-height: 0;
            width: 100%;
            height: 100%;

            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;

            padding: 0;
            text-decoration: none;
            text-align: center;
            color: #fff2cd;

            background: linear-gradient(
                180deg,
                #ef4b3f 0%,
                #e64035 100%
            );

            border: 0;
            transition: 0.3s;
        }

        /* 鼠标经过不改变颜色 */
        .menu > a:hover {
            background: linear-gradient(
                180deg,
                #ef4b3f 0%,
                #e64035 100%
            );
        }

        /* 左右分隔线 */
        #main > a:nth-of-type(odd) {
            border-right: 1px solid rgba(255, 245, 214, 0.70);
        }

        /* 上下分隔线 */
        #main > a:nth-of-type(-n+2) {
            border-bottom: 1px solid rgba(255, 245, 214, 0.70);
        }

        /* 点击进入网页版后的文字颜色 */
        .li01.active span {
            color: #ffd665;
        }

        /* ===== 按钮内容 ===== */
        .btn-img-text {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: #fff1c8;
        }

        /* 四个图标统一大小 */
        .btn-img-text img {
            display: block;

            width: clamp(30px, 7.2vw, 32px);
            height: clamp(30px, 7.2vw, 32px);

            object-fit: contain;

            margin:
                0
                0
                clamp(7px, 1.45vw, 9px);

            filter:
                brightness(0)
                saturate(100%)
                invert(94%)
                sepia(22%)
                saturate(593%)
                hue-rotate(331deg)
                brightness(108%)
                contrast(104%);
        }

        /* 四个按钮文字统一 */
        .btn-img-text span {
            display: block;
            font-size: clamp(16px, 3.7vw, 19px);
            line-height: 1;
            font-weight: 800;
            letter-spacing: 0;
            color: #ffffff;
            white-space: nowrap;

            text-shadow:
                0 1px 2px rgba(82, 0, 0, 0.24);
        }

        /* ===== 红色区域位置 ===== */
        #main {
            position: fixed;
            left: 50%;

            /* 原来是 clamp(68px, 8vh, 103px)，现在下移约10px */
            bottom: calc(
                clamp(58px, 7vh, 93px) +
                env(safe-area-inset-bottom)
            );

            transform: translateX(-50%);

            width: 91%;
            max-width: 650px;

            z-index: 999;
        }

        /* 电脑端与背景图宽度匹配 */
        @media (min-width: 768px) {
            #main {
                width: 91%;
                max-width: 473px;
            }
        }

        /* ===== 底部版权文字 ===== */
        .footer {
            position: fixed;
            left: 50%;

            bottom: calc(
                clamp(16px, 4.1vh, 52px) +
                env(safe-area-inset-bottom)
            );

            transform: translateX(-50%);
            width: 100%;
            text-align: center;

            font-size: clamp(14px, 3.55vw, 25px);
            line-height: 1.1;
            color: #a00805;
            letter-spacing: 0;
            white-space: nowrap;
        }

        /* ==================================================
           进入网页版线路展开框
        ================================================== */
        #main .jsBox {
            position: absolute;
            left: 0;
            bottom: 100%;

            width: 92%;
            padding: 15px;

            border-radius: 16px;

            background: linear-gradient(
                180deg,
                #ef4b3f 0%,
                #e64035 100%
            );

            border: 1px solid rgba(255, 245, 214, 0.82);

            box-shadow:
                0 4px 14px rgba(126, 20, 10, 0.16);

            opacity: 0;
            transform: translateY(20px);
            pointer-events: none;
            z-index: 999;
        }

        /* 线路框展开状态 */
        #main .jsBox.show {
            opacity: 1;
            transform: translateY(-10px);
            pointer-events: auto;
        }

        /* APP下载横条 */
        #main .jsBox .txtapp {
            width: 95%;
            margin: 0 auto; /* 整个横条水平居中 */
            display: flex;
            justify-content: space-between;
            align-items: center;

            box-sizing: border-box;
            padding: 10px 12px;
            border-radius: 30px;

            background: linear-gradient(
                90deg,
                #f1b52f,
                #fff2ba,
                #e9a71f
            );

            color: #780703;
            font-size: 14px;
            font-weight: bold;
            text-decoration: none;

            box-shadow:
                inset 0 0 0 1px rgba(255, 255, 255, 0.45);
        }

        /* 点击下载按钮 */
        #main .jsBox .txtapp span {
            padding: 5px 16px;

            border-radius: 20px;
            border: 1px solid rgba(255, 215, 108, 0.8);

            background: linear-gradient(
                180deg,
                #ce1a10,
                #920704
            );

            color: #fff2c4;
            font-size: 12px;
            white-space: nowrap;
        }

        /* 安全提示文字 */
        #main .jsBox p {
            color: #fff0c2 !important;
        }

        /* 线路列表 */
        .ulList {
            display: contents;
            align-items: center;
            justify-content: space-between;
        }

        #main .jsBox li {
            display: flex;
            align-items: center;
            justify-content: space-between;

            box-sizing: border-box;
            padding: 10px;
            margin-bottom: 10px;

            border-radius: 12px;

            background: linear-gradient(
                180deg,
                #fff8e3,
                #f3dda0
            );

            color: #7a0b06;
            font-size: 13px;
            list-style: none;

            box-shadow:
                inset 0 0 3px rgba(126, 24, 10, 0.18),
                0 2px 7px rgba(74, 4, 2, 0.18);
        }

        /* 线路箭头图片 */
        #main .jsBox li > img {
            filter:
                brightness(0)
                saturate(100%)
                invert(18%)
                sepia(87%)
                saturate(4459%)
                hue-rotate(358deg)
                brightness(82%)
                contrast(104%);
        }

        /* 立即进入按钮 */
        #main .jsBox li a {
            padding: 6px 14px;

            border-radius: 8px;
            border: 1px solid rgba(255, 210, 91, 0.9);

            background: linear-gradient(
                180deg,
                #d91e13,
                #9c0804
            );

            color: #fff2c4;
            font-size: 12px;
            font-weight: bold;
            text-decoration: none;
            white-space: nowrap;

            box-shadow:
                0 2px 5px rgba(109, 5, 2, 0.25);
        }

        /* 展开框底部箭头 */
        #main .jsBox .arrow {
            position: absolute;
            left: 50%;
            bottom: -15px;

            width: 16px;

            transform: translateX(-50%);

            filter:
                brightness(0)
                saturate(100%)
                invert(78%)
                sepia(78%)
                saturate(471%)
                hue-rotate(349deg)
                brightness(105%)
                contrast(102%);
        }

        /* 线路延迟数字 */
        #main .jsBox .ms {
            color: #c5150d;
            font-weight: bold;
        }


        /* ===== 中间 LOGO 悬浮按钮（置于四宫格正上方） ===== */
        #main .center-logo-float {
            position: absolute;
            left: 50%;
            top: -10px; /* 与四宫格拉开约 10px 间距 */
            transform: translate(-50%, -100%);
            z-index: 1002;

            width: clamp(220px, 58vw, 300px);
            height: clamp(58px, 14vw, 68px);
            transition: opacity .18s ease, visibility .18s ease;
        }

        /* 展开线路时隐藏顶部悬浮按钮，避免遮挡线路框 */
        #main .center-logo-float.hide {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        #main .center-logo-float a {
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0;
            box-sizing: border-box;
            text-decoration: none;
            border-radius: 999px;
            overflow: hidden;

            background: #ef1c14;
            border: 0;
            box-shadow: 0 4px 10px rgba(94, 0, 0, 0.16);
        }

        #main .center-logo-float .logo-text {
            display: inline-flex;
            align-items: baseline;
            justify-content: center;
            font-family: Arial, Helvetica, sans-serif;
            font-weight: 800;
            line-height: 1;
            letter-spacing: -0.02em;
            text-shadow: 0 2px 3px rgba(122, 0, 0, 0.22);
        }

        #main .center-logo-float .logo-num {
            color: #ffe500;
            font-size: clamp(23px, 5.2vw, 28px);
        }

        #main .center-logo-float .logo-domain {
            color: #ffffff;
            font-size: clamp(23px, 5.2vw, 28px);
        }


        /* ==================================================
           电脑端自适应优化（仅桌面端生效，手机端保持原样）
        ================================================== */
        @media (min-width: 768px) {
            html, body {
                width: 100%;
                min-height: 100%;
                overflow-x: hidden;
            }

            .mobile-wrap {
                width: 100%;
                min-height: 100vh;
                min-height: 100dvh;
                align-items: stretch;
            }

            /* 背景保持手机比例居中显示，电脑端不再无限放大 */
            .bg img {
                width: min(100vw, 520px);
                height: 100vh;
                height: 100dvh;
                max-width: 520px;
                object-fit: cover;
                object-position: center top;
            }

            .bg::after {
                width: min(100vw, 520px);
                max-width: 520px;
            }

            .content {
                width: 520px;
                max-width: 100%;
                min-height: 100vh;
                min-height: 100dvh;
                padding-bottom: 0;
                box-sizing: border-box;
            }

            /* 四宫格按背景宽度同步缩放，保持原有比例 */
            #main {
                width: 473px;
                max-width: calc(100vw - 40px);
                bottom: calc(clamp(68px, 8vh, 90px) + env(safe-area-inset-bottom));
            }

            .menu {
                width: 100%;
                border-radius: 14px;
            }

            /* 电脑端固定合理字号，避免因为 vw 导致文字过大 */
            .btn-img-text img {
                width: 32px;
                height: 32px;
                margin-bottom: 8px;
            }

            .btn-img-text span {
                font-size: 18px;
            }

            /* 悬浮 LOGO 与四宫格比例统一 */
            #main .center-logo-float {
                width: 270px;
                height: 60px;
                top: -10px;
            }

            #main .center-logo-float .logo-num,
            #main .center-logo-float .logo-domain {
                font-size: 28px;
            }

            /* 线路展开框在电脑端与四宫格视觉宽度更协调 */
            #main .jsBox {
                width: calc(100% - 30px);
                left: 50%;
                transform: translate(-50%, 20px);
                box-sizing: border-box;
            }

            #main .jsBox.show {
                transform: translate(-50%, -10px);
            }

            #main .jsBox .txtapp {
                width: 100%;
            }

            /* 版权文字桌面端不跟随 vw 放大 */
            .footer {
                width: min(100vw, 520px);
                bottom: calc(24px + env(safe-area-inset-bottom));
                font-size: 16px;
            }
        }
/* Restored reference: usability-only safeguards (no visual redesign) */
html,body{overflow-x:hidden}
#main .jsBox:not(.show){visibility:hidden}
#main .jsBox.show{visibility:visible}
#main .jsBox{transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
#main .jsBox .ulList{padding:0;margin:12px 0 0}
#main .jsBox li .url{flex:1;min-width:0;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[lang^="en"] #main .jsBox li .url{font-size:12px}
html[lang^="en"] #main .jsBox li .ms{flex-basis:43px}
html[lang^="en"] #main .jsBox li > img{width:20px;margin:0 4px}
html[lang^="en"] #main .jsBox li a{font-size:11px;padding:6px 9px}
html[lang^="en"] #main .center-logo-float .logo-num{margin-right:.2em}
#main .jsBox li .ms{flex:0 0 57px;text-align:left;font-size:12px}
#main .jsBox li > img{width:26px;height:auto;margin:0 6px}
#main .jsBox li a{margin-left:5px}
#main .jsBox .txtapp{gap:8px}
#main .jsBox .txtapp .app-caption{flex:1;min-width:0}
#main .jsBox .txtapp .download-action{flex:0 0 auto}
#main .jsBox p{margin:10px 5px 2px;line-height:1.5}
#main .center-logo-float a:focus-visible,#main > a:focus-visible,#main .jsBox a:focus-visible{outline:3px solid #ffe500;outline-offset:2px}
#toast{position:fixed;z-index:2000;left:50%;bottom:15px;transform:translateX(-50%);min-width:220px;max-width:calc(100% - 40px);padding:10px 18px;border-radius:999px;background:rgba(65,30,23,.9);color:#fff;text-align:center;font:13px/1.4 Arial,sans-serif;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease}
#toast.visible{opacity:1;visibility:visible}
@media(max-width:374px){#main .jsBox{width:calc(100% - 22px);padding:11px;box-sizing:border-box}#main .jsBox li{padding:8px 5px}#main .jsBox li .url{font-size:11px}#main .jsBox li a{padding:6px 8px}#main .jsBox li .ms{flex-basis:47px;font-size:11px}}
@media(max-height:640px){#main .jsBox{max-height:calc(100dvh - 200px);overflow-y:auto}#main .jsBox .arrow{display:none}}
@media(min-width:768px){.footer{font-size:16px}}
/* Browser-probe improvement: preserve the reference layout and palette. */
#main .jsBox .refresh-wrap{text-align:right;margin:-3px 3px 6px}
#main .jsBox #refreshLines{appearance:none;-webkit-appearance:none;border:1px solid rgba(255,241,185,.75);border-radius:999px;background:rgba(255,245,204,.12);color:#fff3cd;padding:4px 11px;font:600 11px/1.35 Arial,"Microsoft YaHei",sans-serif;cursor:pointer}
#main .jsBox #refreshLines:disabled{opacity:.68;cursor:wait}
#main .jsBox li.line-recommended{outline:2px solid #ffcf51;outline-offset:-2px}
#main .jsBox li .ms.ms--verified{color:#11704f}
#main .jsBox li .ms.ms--response{color:#c5150d}
#main .jsBox li .ms.ms--failed{color:#9d7762}
#main .jsBox #refreshLines:focus-visible{outline:2px solid #ffe500;outline-offset:2px}

/* ===== 专用浏览器：参考白色圆角下载条，保留原站四宫格和配色 ===== */
#main .browserBox {
    position:absolute;
    left:0;
    bottom:100%;
    width:100%;
    box-sizing:border-box;
    padding:17px 14px 14px;
    border-radius:20px;
    border:1.5px solid rgba(244,196,104,.88);
    background:linear-gradient(160deg,rgba(255,250,241,.98),rgba(255,233,216,.98));
    box-shadow:0 12px 28px rgba(98,39,17,.18);
    opacity:0;
    visibility:hidden;
    transform:translateY(18px);
    pointer-events:none;
    z-index:1001;
    transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}
#main .browserBox.show {
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(-11px);
}
#main .browserBox__title {
    color:#a45c25;
    font-size:15px;
    font-weight:800;
    text-align:center;
    padding-bottom:13px;
}
#main .browserBox__list {display:grid;gap:11px}
#main .browserBox .browser-choice {
    min-height:57px;
    box-sizing:border-box;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    background:#fff;
    border-radius:999px;
    border:1px solid rgba(239,190,143,.42);
    box-shadow:0 3px 10px rgba(201,123,72,.07);
    color:#4d5f82;
    text-decoration:none;
    font-size:17px;
    font-weight:650;
    transition:transform .16s ease, box-shadow .16s ease;
}
#main .browserBox .browser-choice:hover{transform:translateY(-1px);box-shadow:0 5px 13px rgba(201,123,72,.12)}
#main .browserBox .browser-choice:focus-visible{outline:3px solid #da923c;outline-offset:2px}
#main .browser-logo {
    width:31px;height:31px;flex:0 0 31px;border-radius:50%;
    display:grid;place-items:center;font-size:20px;font-weight:900;
}
#main .browser-logo--hy {color:#fff;background:linear-gradient(125deg,#b93532 0 36%,#f8fafb 36% 58%,#343d46 58%);border:2px solid #484848}
#main .browser-logo--chrome {position:relative;background:conic-gradient(#eb4437 0 120deg,#fbbc05 120deg 205deg,#34a853 205deg 292deg,#eb4437 292deg 360deg)}
#main .browser-logo--chrome .chrome-center{width:14px;height:14px;border:2px solid white;border-radius:50%;background:#4389e7;box-shadow:0 0 1px #fff}
#main .browser-logo--vpn {color:#fff;background:linear-gradient(135deg,#ffa34b,#ef713c);font-size:17px}
#main .browser-logo--default{color:#fff;background:#de8a55}
#main .browserBox__hint{margin:12px 0 0;text-align:center;font-size:11px;color:#ab8062;line-height:1.4}
#main .browserBox__arrow {position:absolute;bottom:-8px;left:25%;height:14px;width:14px;transform:translateX(-50%) rotate(45deg);background:#ffead8;border-right:1px solid rgba(244,196,104,.88);border-bottom:1px solid rgba(244,196,104,.88)}
@media(min-width:768px){#main .browserBox{left:50%;width:calc(100% - 30px);transform:translate(-50%,18px)}#main .browserBox.show{transform:translate(-50%,-11px)}}
@media(max-width:374px){#main .browserBox{padding:12px 10px}#main .browserBox .browser-choice{min-height:51px;font-size:15px}#main .browserBox__title{font-size:14px}}
@media(max-height:610px){#main .browserBox{max-height:calc(100dvh - 185px);overflow-y:auto}}

/* ===== V5 五条优选线路：仅增强弹层布局，原四宫格及背景不变 ===== */
#main .jsBox {
  max-height: min(580px, calc(100dvh - 275px));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,235,178,.7) transparent;
}
#main .jsBox .line-source-label {
  margin: 3px 4px 3px;
  font-size: 10px;
  color: rgba(255,239,191,.9) !important;
  text-align: left;
}
#main .jsBox .refresh-wrap {
  display:flex;
  gap:8px;
  align-items:center;
  justify-content: space-between;
  margin: 0 3px 4px;
}
#main .jsBox #lineNotice {
  flex:1;
  min-width:0;
  font-size:10px;
  line-height:1.35;
  color:#fff0ca;
}
#main .jsBox .ulList {margin: 6px 0 0;}
#main .jsBox li.line-slot {padding: 9px 9px; margin-bottom: 8px; min-height: 51px;}
#main .jsBox li.line-slot .url {font-size:12px; font-weight:600;}
#main .jsBox li.line-slot .ms {font-size: 12px; flex:0 0 53px;}
#main .jsBox li.line-slot > img {width:22px;margin:0 5px;}
#main .jsBox li.line-slot a {padding:6px 9px;}
#main .jsBox li.line-empty {opacity:.7}
#main .jsBox li.line-empty .thcom {cursor:default;background:#a98b74;}
@media(max-width:374px) {
  #main .jsBox li.line-slot {padding:8px 6px;}
  #main .jsBox li.line-slot .ms {font-size:11px;flex-basis:44px;}
  #main .jsBox li.line-slot > img {width:17px;margin:0 3px;}
  #main .jsBox li.line-slot a {padding:6px 8px;font-size:11px;}
}
@media(max-height:670px){#main .jsBox{max-height:calc(100dvh - 275px);}}

/* V6: restore the original 3 fixed line buttons and a less crowded panel. */
#main .jsBox {max-height:min(500px, calc(100dvh - 250px));padding:14px 14px 12px;}
#main .jsBox .line-guidance {margin:10px 6px 7px!important;color:#ffedc7!important;text-align:center;font:11px/1.45 Arial,"Microsoft YaHei",sans-serif!important;}
#main .jsBox .refresh-wrap {margin:0 4px 9px;gap:8px;align-items:center;}
#main .jsBox #lineNotice {font-size:10.5px;line-height:1.5;color:#fff7d9;}
#main .jsBox #refreshLines {font-size:11px;padding:5px 10px;flex-shrink:0;}
#main .jsBox .ulList {margin:2px 0 0;}
#main .jsBox li.line-slot {min-height:56px;margin-bottom:9px;padding:10px 10px;border-radius:13px;}
#main .jsBox li.line-slot:last-child {margin-bottom:1px;}
#main .jsBox li.line-slot .ms {font-size:12px;flex:0 0 57px;font-variant-numeric:tabular-nums;}
#main .jsBox li.line-slot .url {font-size:13px;font-weight:700;display:flex;gap:5px;justify-content:center;align-items:center;}
#main .jsBox li.line-slot .thcom {font-size:12px;min-width:74px;text-align:center;}
#main .jsBox li.line-recommended {outline:2px solid #ffcf51;box-shadow:0 0 0 2px rgba(255,240,193,.15),0 2px 8px rgba(114,8,0,.2)}
#main .jsBox li .recommend-badge {font-size:9px;border-radius:20px;line-height:1;padding:3px 4px;background:#d51a10;color:#fff7cd;font-weight:700;flex-shrink:0;}
#main .jsBox li .ms.ms--failed {color:#ad6f59}
@media(max-width:374px) {
  #main .jsBox {padding:12px 9px;}
  #main .jsBox li.line-slot {padding:8px 5px;min-height:50px;}
  #main .jsBox li.line-slot .ms {flex-basis:48px;font-size:11px;}
  #main .jsBox li.line-slot .url {font-size:12px;}
  #main .jsBox li.line-slot .thcom {min-width:62px;font-size:11px;padding:6px 5px;}
  #main .jsBox li.line-slot > img {width:17px;margin:0 2px;}
}

/* V6.1: simplify the line panel. Keep test status accessible to screen readers.
   Only the safety reminder and refresh button remain visually prominent. */
#main .jsBox .refresh-wrap{justify-content:flex-end;margin:0 4px 6px;}
#main .jsBox #lineNotice{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
#main .jsBox .line-guidance{margin:10px 5px 6px!important;}

/* ---- theme-7709.css ---- */
/* 7709 V6.3 hero-fit visual preview.
   Purely visual overrides: no changes to routing, line probing or configuration. */
:root {
  --warm-ink: #66402b;
  --warm-orange: #e88935;
  --warm-border: #e4b780;
  --warm-cream: #fff7ed;
}
html,body {
  background: #fff9f4;
}
body {
  background-image: linear-gradient(90deg,#faf5f0 0%,#fffaf6 25%,#fff8f1 50%,#fffaf6 75%,#faf5f0 100%);
}
.bg::after {
  background: linear-gradient(to bottom,
    transparent 61%,
    rgba(255,247,239,.015) 74%,
    rgba(255,245,236,.26) 93%,
    rgba(255,248,242,.48) 100%);
}
/* Default entry menu: ivory-peach instead of the old solid red. */
#main.menu {
  border: 1.5px solid #dba56e;
  background: rgba(243,210,173,.32);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px rgba(106,55,30,.13),0 2px 5px rgba(119,69,39,.06);
}
#main.menu::before {background:linear-gradient(180deg,rgba(255,255,255,.22),transparent);}
#main.menu > a {
  background: linear-gradient(155deg,rgba(255,244,230,.52) 0%,rgba(244,209,168,.48) 100%);
  transition:background .2s ease;
}
#main.menu > a:hover,
#main.menu > a:focus-visible {
  background: linear-gradient(155deg,rgba(255,248,235,.68) 0%,rgba(240,196,149,.58) 100%);
}
#main.menu > a.btn-img-text span {
  color: #65391f;
  text-shadow: 0 1px 0 rgba(255,255,255,.44);
}
#main.menu > a.btn-img-text img {
  filter: brightness(0) saturate(100%) invert(32%) sepia(27%) saturate(1164%) hue-rotate(342deg) brightness(94%) contrast(87%);
}
#main > a:nth-of-type(odd) {border-right:1px solid rgba(194,135,74,.45);}
#main > a:nth-of-type(-n+2) {border-bottom:1px solid rgba(194,135,74,.45);}
#main.menu .li01.active span {color:#a3521e;}
/* Small award entry remains accessible, but avoids fighting the main artwork. */
#main .center-logo-float {width:clamp(205px,55vw,244px);height:48px;top:-10px;}
#main .center-logo-float a {
  background: linear-gradient(110deg,#f2aa50 0%,#e47e2e 60%,#d86d26 100%);
  border:1px solid rgba(255,226,174,.86);
  box-shadow:0 6px 14px rgba(140,74,31,.19),inset 0 1px 0 rgba(255,255,255,.3);
}
#main .center-logo-float .logo-text {text-shadow:0 1px 2px rgba(82,36,14,.2);letter-spacing:0;}
#main .center-logo-float .logo-num,
#main .center-logo-float .logo-domain {font-size:clamp(17px,4.6vw,21px);color:#fff9ee;}
/* Light, warm, readable line selection sheet. */
#main .jsBox {
  background: linear-gradient(165deg,rgba(255,249,240,.95) 0%,rgba(248,228,207,.94) 100%);
  border:1px solid #e9c69e;
  box-shadow:0 15px 32px rgba(110,59,32,.20),0 2px 6px rgba(110,59,32,.07);
  backdrop-filter:blur(10px);
}
#main .jsBox .txtapp {
  border:1px solid #efc58c;
  background:linear-gradient(95deg,#fff5e6,#ffe7c5);
  color:#623922;
  box-shadow:inset 0 1px 0 #fff,0 2px 5px rgba(110,61,26,.06);
}
#main .jsBox .txtapp .download-action {
  background:linear-gradient(130deg,#efa24c,#dc742a);
  color:#fffefa;
  border:1px solid rgba(242,168,87,.8);
  box-shadow:0 2px 6px rgba(165,83,29,.16);
}
#main .jsBox .line-guidance,
#main .jsBox p.line-guidance {
  color:#896244 !important;
  font-size:11px !important;
  line-height:1.55 !important;
}
#main .jsBox #refreshLines {
  color:#9a591e;
  background:rgba(255,255,255,.75);
  border:1px solid #e2b581;
}
#main .jsBox li.line-slot,
#main .jsBox li {
  background:linear-gradient(180deg,#fffdf8,#fff4e8);
  color:#60402c;
  border:1px solid #edcfad;
  box-shadow:0 3px 9px rgba(124,75,39,.10);
}
#main .jsBox li > img {
  filter:brightness(0) saturate(100%) invert(52%) sepia(57%) saturate(1306%) hue-rotate(345deg) brightness(103%) contrast(90%);
}
#main .jsBox li a,
#main .jsBox li.line-slot .thcom {
  color:#fffdf7;
  border:1px solid #e3a36b;
  background:linear-gradient(160deg,#ec9b4e,#c96b29);
  box-shadow:0 2px 6px rgba(160,81,30,.18);
}
#main .jsBox li.line-recommended {
  outline:2px solid #e3af61;
  box-shadow:0 3px 11px rgba(167,98,35,.18);
}
#main .jsBox li .ms.ms--verified {color:#168568;}
#main .jsBox li .ms.ms--response {color:#ba6c2b;}
#main .jsBox li .ms.ms--failed {color:#9b8778;}
#main .jsBox li .recommend-badge {color:#fff;background:#c47d31;}
/* Browser selection popup already uses the right layout, just soften its border. */
#main .browserBox {
  background:linear-gradient(160deg,#fffaf5,#fbe8d8);
  border-color:#ebc6a6;
  box-shadow:0 10px 24px rgba(105,61,28,.15);
}
#main .browserBox__title {color:#955e38;}
#main .browserBox__arrow {background:#fbe8d8;border-color:#ebc6a6;}
.footer {color:#ad4f22;text-shadow:0 1px 1px rgba(255,255,255,.95);font-weight:700;letter-spacing:.2px;}
@media(min-width:768px) {
  #main .center-logo-float {width:244px;height:48px;}
  #main .center-logo-float .logo-num,
  #main .center-logo-float .logo-domain {font-size:20px;}
}
@media(max-width:374px) {
  #main .center-logo-float{height:43px;width:205px;}
  #main .center-logo-float .logo-num,
  #main .center-logo-float .logo-domain{font-size:17px;}
}
/* Bring the artwork above the page background but below all controls. */
.bg {z-index:0;align-items:flex-start;pointer-events:none;}
.bg img {align-self:flex-start;}
.content {position:relative;z-index:1;}
.footer {z-index:2;}

/* ---- one-screen.css ---- */
/* 7709 V6.3.1 - compact viewport-fit layout.
   Only UI geometry and presentation. The V6.3 probe engine is unchanged. */
html,body { width:100%;height:100%;overflow:hidden; }
body { overscroll-behavior: none; }
.mobile-wrap {
  height:100vh;height:100dvh;min-height:0;
  max-height:100dvh;overflow:hidden;
}
.bg {align-items:flex-start;justify-content:center;}
.bg img {max-width:520px;max-height:none;transform:translateY(-6px);}

.footer {
  bottom:calc(12px + env(safe-area-inset-bottom));
  font-size:clamp(14px,3.7vw,17px);line-height:1.12;
  z-index:4;pointer-events:none;
}
#main.menu {
  bottom:calc(39px + env(safe-area-inset-bottom));
  width:min(calc(100vw - 32px),473px);
  aspect-ratio:2.26 / 1;
  border-radius:15px;
  z-index:10;
}
#main.menu .center-logo-float {
  top:-8px;width:clamp(180px,54vw,224px);height:40px;
}
#main.menu .center-logo-float .logo-num,
#main.menu .center-logo-float .logo-domain {font-size:clamp(15px,4.2vw,19px);}
/* One horizontal row: security notice on the left, check button on the right. */
#main .jsBox .line-notice-bar {
  display:flex;align-items:center;justify-content:space-between;
  box-sizing:border-box;width:100%;min-height:32px;
  gap:8px;margin:7px auto 5px;padding:3px 5px 3px 8px;
  border:1px solid rgba(207,156,103,.32);
  background:rgba(255,255,255,.45);border-radius:9px;
}
#main .jsBox .line-notice-bar .line-guidance,
#main .jsBox .line-notice-bar p.line-guidance {
  flex:1;min-width:0;max-width:none;margin:0!important;padding:0!important;
  font:500 11px/1.2 Arial,"Microsoft YaHei",sans-serif!important;
  color:#855e40!important;white-space:nowrap!important;
  overflow:hidden;text-overflow:ellipsis;text-align:left!important;
}
#main .jsBox .line-notice-bar #refreshLines {
  flex:0 0 auto;min-width:65px;height:26px;box-sizing:border-box;
  margin:0;padding:3px 8px;font:600 11px/1.1 Arial,"Microsoft YaHei",sans-serif;
  background:linear-gradient(180deg,#fffaf2,#fff1e2);
  border:1px solid #e5b781;border-radius:7px;color:#98612f;
  white-space:nowrap;
}
/* Keep live network result available to assistive tech, without an extra visual line. */
#main .jsBox .screenreader-status {
  position:absolute!important;width:1px!important;height:1px!important;
  padding:0!important;margin:-1px!important;border:0!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;
  white-space:nowrap!important;
}
#main .jsBox {
  box-sizing:border-box;
  max-height:calc(100dvh - 218px);
  overflow-y:auto;overscroll-behavior:contain;
  scrollbar-width:thin;
  padding:11px 12px 10px;
}
#main .jsBox .txtapp {
  width:100%;min-height:38px;
  padding:7px 10px;margin:0 auto;gap:8px;
  font-size:12px;
}
#main .jsBox .txtapp .download-action {padding:5px 10px;font-size:11px;}
#main .jsBox .ulList {display:block;margin:4px 0 0;padding:0;}
#main .jsBox li.line-slot {
  min-height:46px; padding:7px 9px; margin:0 0 6px;
  border-radius:10px;
}
#main .jsBox li.line-slot:last-child{margin-bottom:0;}
#main .jsBox li.line-slot .ms {flex:0 0 48px;font-size:11px;}
#main .jsBox li.line-slot > img{width:18px;margin:0 3px;}
#main .jsBox li.line-slot .url {font-size:12px;gap:3px;}
#main .jsBox li.line-slot .thcom {font-size:11px;min-width:67px;padding:6px 8px;}
#main .jsBox li .recommend-badge {font-size:8px;padding:2px 3px;}
#main .jsBox .arrow {display:none;}
/* Phone layouts: maintain a full-height one-screen home. */
@media (max-width:767px) {
  #main.menu {aspect-ratio:2.36 / 1;}
  #main.menu > a.btn-img-text img {width:clamp(23px,6vw,29px);height:clamp(23px,6vw,29px);margin-bottom:5px;}
  #main.menu > a.btn-img-text span {font-size:clamp(13px,3.6vw,16px);}
  #main .jsBox {width:calc(100% - 6px);left:50%;max-width:none;transform:translate(-50%,18px);}
  #main .jsBox.show {transform:translate(-50%,-8px);}
  #main .browserBox {max-height:calc(100dvh - 230px);}
}
@media (max-width:767px) and (max-height:750px) {
  .bg img {width:min(83vw,520px);transform:translateY(-3px);}
  #main.menu {bottom:calc(36px + env(safe-area-inset-bottom));aspect-ratio:2.48 / 1;}
  #main.menu .center-logo-float {height:35px;width:186px;top:-6px;}
  #main.menu .center-logo-float .logo-num,
  #main.menu .center-logo-float .logo-domain {font-size:15px;}
  #main .jsBox {max-height:calc(100dvh - 202px);padding:8px 10px;}
  #main .jsBox .txtapp{min-height:34px;padding:5px 8px;font-size:11px;}
  #main .jsBox .line-notice-bar{min-height:29px;margin:5px 0 4px;}
  #main .jsBox li.line-slot{min-height:42px;padding:5px 8px;margin-bottom:5px;}
  #main .jsBox li.line-slot .thcom{padding:5px 7px;}
  .footer {bottom:calc(9px + env(safe-area-inset-bottom));font-size:14px;}
}
@media (max-width:767px) and (max-height:610px) {
  .bg img {width:min(83vw,520px);transform:translateY(0);}
  #main.menu {width:calc(100vw - 24px);bottom:calc(31px + env(safe-area-inset-bottom));aspect-ratio:2.65 / 1;}
  #main.menu .center-logo-float {height:30px;width:170px;}
  #main.menu .center-logo-float .logo-num,
  #main.menu .center-logo-float .logo-domain {font-size:14px;}
  #main.menu > a.btn-img-text img{width:22px;height:22px;margin-bottom:3px;}
  #main.menu > a.btn-img-text span{font-size:13px;}
  #main .jsBox {max-height:calc(100dvh - 185px);}
  #main .jsBox li.line-slot{min-height:39px;}
  #main .jsBox li.line-slot .ms{flex-basis:39px;font-size:10px;}
  #main .jsBox li.line-slot > img{width:15px;margin:0 2px;}
  #main .jsBox li.line-slot .url{font-size:11px;}
  #main .jsBox li.line-slot .thcom{min-width:61px;font-size:10px;}
  .footer {font-size:13px;bottom:calc(6px + env(safe-area-inset-bottom));}
}
/* Desktop: preserve narrow centered artwork and make the dialog stay within the viewport. */
@media (min-width:768px) {
  .bg img {transform:translateY(-8px);}
  #main.menu {width:min(calc(100vw - 48px),473px);bottom:calc(51px + env(safe-area-inset-bottom));}
  #main .jsBox {width:calc(100% - 16px);left:50%;max-height:calc(100dvh - 265px);}
  #main .jsBox.show {transform:translate(-50%,-9px);}
  .footer{bottom:calc(16px + env(safe-area-inset-bottom));font-size:18px;}
}
/* Respect accessibility preferences. */
@media (prefers-reduced-motion:reduce) {
  #main .jsBox,#main .browserBox {transition:none!important;}
}


/* V6.3.4 visual correction: readable, restrained frosted-glass controls.
   Preserve four-grid geometry, user links, health checks and responsive sizes. */
#main.menu {
  background:rgba(246,224,200,.48);
  border:1.5px solid rgba(207,145,86,.72);
  -webkit-backdrop-filter:blur(15px) saturate(1.04);
  backdrop-filter:blur(15px) saturate(1.04);
  box-shadow:0 8px 18px rgba(104,64,42,.13);
}
#main.menu::before {
  background:linear-gradient(180deg,rgba(255,255,255,.16),transparent);
}
#main.menu > a.btn-img-text {
  background:linear-gradient(155deg,rgba(255,249,241,.78) 0%,rgba(247,220,191,.77) 100%);
}
#main.menu > a.btn-img-text:hover,
#main.menu > a.btn-img-text:focus-visible {
  background:linear-gradient(155deg,rgba(255,251,244,.85) 0%,rgba(245,214,179,.84) 100%);
}
#main.menu > a.btn-img-text span {
  color:#613820;
  text-shadow:0 1px 1px rgba(255,255,255,.65);
}
#main .jsBox {
  background:linear-gradient(165deg,rgba(255,250,244,.985),rgba(252,235,214,.982));
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
  box-shadow:0 12px 27px rgba(93,61,41,.15);
}
#main .jsBox .line-notice-bar {
  background:rgba(255,255,255,.88);
}
#main .browserBox {
  background:linear-gradient(165deg,#fffaf4 0%,#faeadc 100%);
  -webkit-backdrop-filter:blur(13px);
  backdrop-filter:blur(13px);
}
/* Keep a visible keyboard focus indicator without a harsh yellow rectangle. */
#main > a:focus-visible, #main .jsBox a:focus-visible,
#main .center-logo-float a:focus-visible {
  outline:2px solid #c87e35;
  outline-offset:2px;
}

/* V6.3.5 - refine readability of glass controls and reclaim hero area.
   This block is purely presentational; probe, routing and user configs unchanged. */
#main.menu {
  aspect-ratio: 2.72 / 1;
  background: rgba(252,237,221,.62);
  -webkit-backdrop-filter: blur(24px) saturate(.87);
  backdrop-filter: blur(24px) saturate(.87);
  border: 1px solid rgba(201,143,86,.72);
  box-shadow: 0 8px 19px rgba(106,68,42,.13);
}
#main.menu::before {background:linear-gradient(180deg,rgba(255,255,255,.12),transparent);}
#main.menu > a.btn-img-text {
  background:linear-gradient(158deg,rgba(255,252,248,.84),rgba(249,227,207,.82));
}
#main.menu > a.btn-img-text:hover,
#main.menu > a.btn-img-text:focus-visible {
  background:linear-gradient(158deg,rgba(255,252,248,.90),rgba(246,219,192,.90));
}
#main.menu > a.btn-img-text span {
  color:#68402a;
  text-shadow:0 1px 0 rgba(255,255,255,.65);
  font-weight:700;
}
#main.menu > a.btn-img-text img {filter:brightness(0) saturate(100%) invert(35%) sepia(28%) saturate(700%) hue-rotate(340deg) brightness(85%) contrast(92%);}
#main.menu > a:focus:not(:focus-visible) {outline:none;}
#main .jsBox {
  background:linear-gradient(158deg,rgba(255,251,245,.98),rgba(250,233,215,.98));
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
#main .browserBox {
  background:linear-gradient(158deg,rgba(255,251,246,.98),rgba(250,233,216,.98));
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}
/* Reduce the menu's overlay height without losing the two-by-two structure. */
@media (max-width:767px) {
  #main.menu {aspect-ratio:2.72 / 1;bottom:calc(36px + env(safe-area-inset-bottom));}
  #main.menu > a.btn-img-text img {width:clamp(21px,5.8vw,27px);height:clamp(21px,5.8vw,27px);margin-bottom:4px;}
  #main.menu > a.btn-img-text span {font-size:clamp(12px,3.45vw,16px);}
  #main.menu .center-logo-float {height:34px;top:-7px;}
}
@media (max-width:767px) and (max-height:750px) {
  #main.menu {aspect-ratio:2.82 / 1;bottom:calc(31px + env(safe-area-inset-bottom));}
  #main.menu .center-logo-float {height:32px;top:-6px;}
}
@media (max-width:767px) and (max-height:610px) {
  #main.menu {aspect-ratio:2.94 / 1;bottom:calc(27px + env(safe-area-inset-bottom));}
  #main.menu > a.btn-img-text img {width:21px;height:21px;margin-bottom:2px;}
  #main.menu > a.btn-img-text span {font-size:12px;}
  #main.menu .center-logo-float {height:28px;top:-5px;}
}
@media (min-width:768px) {
  #main.menu {aspect-ratio:2.70 / 1;bottom:calc(45px + env(safe-area-inset-bottom));}
  #main.menu .center-logo-float {height:37px;top:-7px;}
}

/* ---- adaptive-fit.css ---- */
/* V6.3.7 - responsive hero safe area.
   Keeps artwork above the fixed four-button menu across varying mobile aspect
   ratios and mobile browser toolbar states. Visual-only: no routing changes. */
@media (max-width:767px) {
  /* Small viewport height stays stable when iOS/Android browser chrome moves. */
  .mobile-wrap { height:100vh;max-height:100vh; }
  @supports (height:100svh) {
    .mobile-wrap {height:100svh;max-height:100svh;}
  }
  /* The image's visually important portion occupies the first ~66% of height.
     For wide/short phones, scale that portion into the space above the badge/menu;
     taller phones keep the original full-width presentation. */
  .bg img {
    width:min(100vw,520px,calc(83.3vh - min(calc(30.6vw - 10px),145px) - 75px)) !important;
    max-width:520px;
    height:auto !important;
    max-height:none;
    object-fit:contain !important;
    object-position:center top;
    transform:none !important;
    flex-shrink:0;
  }
  @supports (height:100svh) {
    .bg img {
      width:min(100vw,520px,calc(83.3svh - min(calc(30.6vw - 10px),145px) - 75px - env(safe-area-inset-bottom))) !important;
    }
  }
}

/* ---- award-tight.css ---- */
/* V6.3.8 -- award plaque + tighter mobile spacing.
   CSS-only adjustment. The same hero image, line pool, endpoints and handlers are retained. */

/* Convert the original orange pill into a warm-white editorial honor plaque.
   Existing #awardA and #awardB are populated by the original app.js. */
#main.menu .center-logo-float {
  width: clamp(230px, 67vw, 270px);
  height: 53px;
  top: -7px;
}
#main.menu .center-logo-float a {
  display:flex;
  position:relative;
  justify-content:center;
  align-items:center;
  box-sizing:border-box;
  width:100%;height:100%;
  padding: 0 12px;
  gap:0;
  border:1px solid rgba(204,137,72,.84);
  border-radius:12px;
  background:linear-gradient(115deg,rgba(255,252,247,.99),rgba(255,239,218,.985));
  box-shadow:0 4px 12px rgba(127,79,41,.11),inset 0 1px 0 #fff;
  text-decoration:none;
  overflow:hidden;
}
#main.menu .center-logo-float a::after {
  content:"";
  position:absolute;
  left:12px;right:12px;bottom:4px;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(215,150,91,.56),transparent);
  pointer-events:none;
}
#main.menu .center-logo-float .logo-text {
  display:flex;
  width:auto;
  justify-content:center;
  align-items:center;
  gap:9px;
  text-shadow:none;
  letter-spacing:0;
  line-height:1;
}
#main.menu .center-logo-float .logo-num {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:45px;
  height:30px;
  padding:0 5px;
  border-radius:7px;
  background:linear-gradient(145deg,#e9a051,#d77b31);
  color:#fffaf4;
  font-size:13px;
  font-weight:800;
  line-height:1;
  box-shadow:inset 0 1px rgba(255,255,255,.33);
}
#main.menu .center-logo-float .logo-domain {
  display:inline-block;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  font-size:19px;
  font-weight:850;
  color:#7a3f23;
  letter-spacing:.012em;
  white-space:nowrap;
  line-height:1.08;
}

/* Use the reclaimed vertical room to bring the badge closer to the artwork,
   without altering the four-tile structure or covering the footer. */
@media (max-width:767px){
  #main.menu {bottom:calc(43px + env(safe-area-inset-bottom));}
  #main.menu .center-logo-float {height:51px;top:-6px;}
}
@media (max-width:767px) and (max-height:750px){
  #main.menu {bottom:calc(39px + env(safe-area-inset-bottom));}
  #main.menu .center-logo-float {height:48px;top:-6px;}
  #main.menu .center-logo-float .logo-domain {font-size:18px;}
}
@media (max-width:767px) and (max-height:610px){
  #main.menu {bottom:calc(32px + env(safe-area-inset-bottom));}
  #main.menu .center-logo-float {
    width:min(74vw,232px);
    height:42px;top:-5px;
  }
  #main.menu .center-logo-float a {padding:0 8px;}
  #main.menu .center-logo-float .logo-text {gap:6px;}
  #main.menu .center-logo-float .logo-num {min-width:38px;height:26px;font-size:11px;}
  #main.menu .center-logo-float .logo-domain {font-size:15px;}
}
@media (min-width:768px){
  #main.menu .center-logo-float {height:54px;width:275px;top:-8px;}
}

/* ---- premium-balance.css ---- */
/* 7709 V6.3.9 - balanced mobile hero/menu composition.
   Presentation only: probes, destination links, 3-route selection unchanged. */
@media (max-width:767px) {
  /* Give each of the four actions back its comfortable physical tap area. */
  #main.menu {
    aspect-ratio: 2.52 / 1;
    bottom: calc(39px + env(safe-area-inset-bottom));
    border: 1.4px solid #dba975;
    border-radius: 17px;
    box-shadow: 0 7px 18px rgba(106,65,37,.13);
  }
  #main.menu > a.btn-img-text img {
    width: clamp(26px,7.1vw,31px);
    height: clamp(26px,7.1vw,31px);
    margin-bottom:6px;
  }
  #main.menu > a.btn-img-text span {
    font-size:clamp(14px,4vw,17px);
    font-weight:800;
    line-height:1.1;
  }
  /* A stronger honor plaque: bright orange seal and bold ink typography. */
  #main.menu .center-logo-float {
    width: min(81vw,320px);
    height:56px;
    top:-6px;
  }
  #main.menu .center-logo-float a {
    padding:0 11px;
    border:1.7px solid #d59453;
    border-radius:16px;
    background:linear-gradient(145deg,#fffcf6 0%,#ffedcf 68%,#f6d9b0 100%);
    box-shadow:0 7px 15px rgba(116,67,34,.17),inset 0 1px 0 rgba(255,255,255,.9);
  }
  #main.menu .center-logo-float a::after {
    bottom:5px;height:2px;left:16px;right:16px;
    background:linear-gradient(90deg,transparent,rgba(222,133,50,.42),transparent);
  }
  #main.menu .center-logo-float .logo-text {gap:10px;align-items:center;}
  #main.menu .center-logo-float .logo-num {
    min-width:53px;height:35px;padding:0 7px;
    border-radius:8px;
    font-size:15px;font-weight:850;
    background:linear-gradient(135deg,#f29c41,#da7025);
    box-shadow:0 2px 5px rgba(143,78,33,.18),inset 0 1px 0 rgba(255,255,255,.35);
    color:#fff;
  }
  #main.menu .center-logo-float .logo-domain {
    font-size:22px;font-weight:900;
    color:#71391d;letter-spacing:0;
  }
}
/* Keep the compact structure for genuinely short phone viewports. */
@media (max-width:767px) and (max-height:620px) {
  #main.menu {aspect-ratio:2.68/1;bottom:calc(29px + env(safe-area-inset-bottom));}
  #main.menu > a.btn-img-text img{width:clamp(23px,6.9vw,26px);height:clamp(23px,6.9vw,26px);margin-bottom:4px;}
  #main.menu > a.btn-img-text span{font-size:clamp(12px,3.9vw,14px);}
  #main.menu .center-logo-float {width:min(80vw,284px);height:46px;top:-5px;}
  #main.menu .center-logo-float .logo-num {min-width:45px;height:30px;font-size:13px;}
  #main.menu .center-logo-float .logo-domain {font-size:18px;}
}
/* Desktop presentation stays a centered, readable column. */
@media (min-width:768px) {
  #main.menu{aspect-ratio:2.50/1;}
  #main.menu .center-logo-float{height:56px;width:310px;top:-7px;}
  #main.menu .center-logo-float .logo-domain{font-size:22px;}
  #main.menu .center-logo-float .logo-num{font-size:15px;height:35px;min-width:53px;}
  #main.menu > a.btn-img-text img {width:31px;height:31px;margin-bottom:7px;}
  #main.menu > a.btn-img-text span {font-size:17px;}
}
/* On normal-height phones tighten the art-to-award join rather than leaving
   a long strip of empty peach between the slot pedestal and the plaque. */
@media (min-width:360px) and (max-width:767px) and (max-height:750px) {
  #main.menu {aspect-ratio:2.38 / 1;}
  .bg img {transform:translateY(-7px)!important;}
}
@media (min-width:360px) and (max-width:767px) and (min-height:751px) {
  #main.menu {aspect-ratio:2.32 / 1;}
}

/* ---- action-contrast.css ---- */
/* V6.4.1 | Only the four controls' ICON and TEXT colors change.
   Backgrounds, sizes, positions and translucency are inherited unchanged
   from V6.3.9's existing theme, as requested. */

/* Main action: warm vivid terracotta; contrasted against pale cream cells. */
#main.menu > a#webToggle.btn-img-text span,
#main.menu > a#webToggle.btn-img-text.active span {
  color: #bf4c15 !important;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
#main.menu > a#webToggle.btn-img-text img {
  filter: brightness(0) saturate(100%) invert(38%) sepia(92%) saturate(1647%) hue-rotate(352deg) brightness(91%) contrast(94%) !important;
  opacity: 1;
}

/* Three supporting actions: a unified deep slate blue, echoing PG's cool tones. */
#main.menu > a#appLink.btn-img-text span,
#main.menu > a#browserToggle.btn-img-text span,
#main.menu > a#customerLink.btn-img-text span,
#main.menu > a#browserToggle.btn-img-text.active span {
  color: #344c67 !important;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(255,255,255,.7);
}
#main.menu > a#appLink.btn-img-text img,
#main.menu > a#browserToggle.btn-img-text img,
#main.menu > a#customerLink.btn-img-text img {
  filter: brightness(0) saturate(100%) invert(26%) sepia(20%) saturate(1125%) hue-rotate(170deg) brightness(91%) contrast(90%) !important;
  opacity: 1;
}

/* Preserve original cell backgrounds, separators, corners and dimensions. */
#main.menu > a.btn-img-text:focus-visible {
  outline: 2px solid rgba(200,101,33,.85);
  outline-offset: -3px;
}

/* ---- official-ky.css ---- */
/* 7709 V6.4.2 | The official KY tile is real HTML/CSS over the ORIGINAL hero artwork.
   No changes to routes, navigation, page interaction, or probing logic. */

/* Use the exact responsive hero width already proven by V6.3.7, but apply it
   to a parent frame so the supplied KY logo stays locked to the artwork. */
.bg {align-items:flex-start;justify-content:center;}
.bg > .hero-frame {
  position:relative; flex:0 0 auto; display:block;
  width:min(100vw,520px); aspect-ratio:941 / 1672;
  transform:translateY(-7px);
}
.bg .hero-frame > .hero-main-image {
  width:100% !important; height:100% !important;
  max-width:none !important; max-height:none !important;
  display:block; object-fit:fill !important;
  transform:none !important;
}
@media (max-width:767px) {
  .bg > .hero-frame {
    width:min(100vw,520px,calc(83.3vh - min(calc(30.6vw - 10px),145px) - 75px));
    transform:none;
  }
  @supports (height:100svh) {
    .bg > .hero-frame {
      width:min(100vw,520px,calc(83.3svh - min(calc(30.6vw - 10px),145px) - 75px - env(safe-area-inset-bottom)));
    }
  }
}
@media (min-width:360px) and (max-width:767px) and (max-height:750px) {
  .bg > .hero-frame{transform:translateY(-7px);}
}

/* Exactly the user's blue-K/red-Y logo, in a clean coordinated blue card.
   The original KY item is occluded inside its gold rim, without touching
   the cowgirl, PG machine, adjacent FG/Choice tiles or the site controls. */
.bg .ky-official-card {
  container-type:inline-size;
  position:absolute;
  left:2.85%; top:46.08%; width:22.5%; height:10.55%;
  box-sizing:border-box; overflow:hidden;
  border:2.8px solid #e9ad43;
  border-radius:25% 22% 23% 24% / 24% 23% 25% 26%;
  background:radial-gradient(ellipse 75% 55% at 49% 33%,#73b8f2 0%,#1677c8 50%,#0c3c8e 100%);
  box-shadow:inset 0 0 0 1px rgba(255,246,210,.80),inset 0 -7px 18px rgba(7,28,108,.26),0 2px 3px rgba(110,60,22,.17);
  display:flex;align-items:center;justify-content:center;
  pointer-events:none;
}
.bg .ky-official-card::before {
  content:''; position:absolute; inset:6% 7% auto; height:40%;
  border-radius:80% 80% 30% 30%;
  background:linear-gradient(180deg,rgba(255,255,255,.25),transparent);
  pointer-events:none;
}
.bg .ky-official-card > img.ky-official-mark {
  position:absolute; left:17%;top:4%; width:66% !important;height:61% !important;
  max-width:none !important; max-height:none !important;
  object-fit:contain !important;
  transform:none !important;
  filter:drop-shadow(0 2px 2px rgba(5,18,62,.22));
}
.bg .ky-official-card > .ky-official-name {
  position:absolute; bottom:0; left:0; right:0; height:34%;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(180deg,rgba(8,59,151,.76),rgba(9,36,108,.96));
  border-top:1px solid rgba(255,234,185,.45);
  font:900 15.6cqw/1.05 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;
  letter-spacing:.012em; color:#fffaf3;
  text-shadow:0 1px 2px rgba(0,20,79,.52);
  white-space:nowrap;
}

/* Restrained, brighter orange details to coordinate with the site's palette.
   Keep the four cream buttons, orange primary action, three slate-blue actions. */
#main.menu {border-color:#e7a25f;box-shadow:0 8px 19px rgba(170,91,34,.16);}
#main.menu .center-logo-float a {border-color:#e49b46;box-shadow:0 4px 11px rgba(186,100,32,.14),inset 0 1px 0 #fff;}
.footer {color:#b45128; font-weight:750;}

/* V6.4.2 final: warmer, brighter ORANGE design matching the approved mockup. */
html,body {background-color:#fff0e5;}
body {background-image:linear-gradient(90deg,#fff0e4 0%,#fff5ee 24%,#ffead9 50%,#fff5ee 76%,#fff0e4 100%);}
#main.menu {
  background:rgba(255,246,234,.98);
  border:2px solid #eaa35c;
  box-shadow:0 5px 17px rgba(163,76,24,.13);
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}
#main.menu > a.btn-img-text {
  background:linear-gradient(165deg,#fffcf8 0%,#ffeada 100%);
}
#main.menu > a.btn-img-text:hover,
#main.menu > a.btn-img-text:focus-visible {
  background:linear-gradient(165deg,#fff8ee 0%,#ffdfbd 100%);
}
#main > a:nth-of-type(odd) {border-right:1px solid rgba(224,130,53,.52);}
#main > a:nth-of-type(-n+2) {border-bottom:1px solid rgba(224,130,53,.52);}
#main.menu > a#webToggle.btn-img-text span {color:#df4f18!important;}
#main.menu > a#webToggle.btn-img-text img {
  filter:brightness(0) saturate(100%) invert(40%) sepia(93%) saturate(2343%) hue-rotate(355deg) brightness(100%) contrast(102%)!important;
}
#main.menu > a#appLink.btn-img-text span,
#main.menu > a#browserToggle.btn-img-text span,
#main.menu > a#customerLink.btn-img-text span,
#main.menu > a#browserToggle.btn-img-text.active span {color:#1558b2!important;}
#main.menu > a#appLink.btn-img-text img,
#main.menu > a#browserToggle.btn-img-text img,
#main.menu > a#customerLink.btn-img-text img {
  filter:brightness(0) saturate(100%) invert(30%) sepia(93%) saturate(1584%) hue-rotate(202deg) brightness(92%) contrast(95%)!important;
}
#main.menu .center-logo-float a {
  border:1.5px solid #eeb45d;
  background:linear-gradient(115deg,#fffcf5 0%,#ffead0 75%,#ffdfa9 100%);
  box-shadow:0 5px 12px rgba(188,83,25,.14),inset 0 1px #fff;
}
#main.menu .center-logo-float .logo-num {
  background:linear-gradient(135deg,#ff9c2f,#eb5f0c);
  color:#fff!important;
}
#main.menu .center-logo-float .logo-domain {color:#67351c;}
.footer {color:#c84918; font-weight:800; text-shadow:0 1px 0 #fff;}

/* ---- footer-space.css ---- */
/* V6.4.3: copyright translated to English in index.html; a little more breathing
   room after the footer on phones, without creating page scrolling.
   Keep the award, menu, and footer together; no changes to line probing, links,
   animation or artwork. */
@media (max-width:767px) {
  #main.menu { transform: translate(-50%, -14px); }
  .footer { transform: translate(-50%, -14px); }
}
@media (max-width:767px) and (max-height:620px) {
  #main.menu { transform: translate(-50%, -10px); }
  .footer { transform: translate(-50%, -10px); }
}

/* ---- seamless-layout.css ---- */
/* V6.4.5 – seamless artwork + content-first mobile responsive layout.
   Pure presentation. All line probes, URLs and button event handlers remain unchanged.
   Unlike the legacy fixed-position variants, smaller devices may scroll slightly. */
:root {
  --site-art-width: min(100vw, 520px);
  --site-art-height: min(108vw, 562px);
  --site-menu-width: min(calc(100vw - 30px), 473px);
  --site-plaque-height: 56px;
  --site-ink: #84421c;
}
html, body {
  height:auto !important;
  min-height:100% !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  margin:0;
  -webkit-text-size-adjust:100%;
  scrollbar-gutter:auto;
}
body {
  overscroll-behavior-y:auto !important;
  background:
    radial-gradient(ellipse 83% 46% at 52% 26%,rgba(255,247,228,.78),transparent 90%),
    linear-gradient(180deg,#ffd2b5 0%,#ffe2cd 24%,#ffe8d9 50%,#fff0e7 75%,#fff6ef 100%) !important;
}
.mobile-wrap {
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  align-items:center !important;
  box-sizing:border-box;
  height:auto !important;
  min-height:100vh !important;
  min-height:100svh !important;
  max-height:none !important;
  overflow:visible !important;
  width:100%;
  padding:calc(clamp(10px,1.65svh,18px) + var(--site-flex-top-extra,0px)) 0 calc(12px + env(safe-area-inset-bottom));
  isolation:isolate;
}
/* The hero has a measured content area, not the full 16:9+ blank canvas height. */
.bg {
  position:relative !important;
  inset:auto !important;
  width:100% !important;
  height:var(--site-art-height) !important;
  flex:0 0 auto !important;
  display:flex !important;
  align-items:flex-start !important;
  justify-content:center !important;
  overflow:visible !important;
  background:transparent !important;
  z-index:0 !important;
  pointer-events:none;
}
.bg::after {display:none !important;}
.bg > .hero-frame {
  position:relative !important;
  flex:0 0 auto !important;
  width:var(--site-art-width) !important;
  aspect-ratio:941/1672 !important;
  margin:0 auto !important;
  transform:none !important;
  top:auto !important;
  left:auto !important;
  overflow:visible;
}
.bg .hero-frame > img.hero-main-image {
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  display:block !important;
  object-fit:fill !important;
  transform:none !important;
  filter:none !important;
}
/* The separate HTML KY official logo retains its calibrated position on the artwork. */
.bg .ky-official-card {z-index:2;}
/* Everything interactive follows the art in document flow rather than bottom:fixed. */
.content {
  position:relative !important;
  z-index:5 !important;
  flex:0 0 auto !important;
  display:block !important;
  min-height:0 !important;
  height:auto !important;
  box-sizing:border-box !important;
  width:100% !important;
  max-width:520px !important;
  padding:calc(var(--site-plaque-height) + 11px) 0 0 !important;
  margin:0 auto !important;
}
#main.menu {
  position:relative !important;
  top:auto !important;
  bottom:auto !important;
  left:auto !important;
  margin:0 auto !important;
  width:var(--site-menu-width) !important;
  max-width:473px !important;
  height:auto !important;
  aspect-ratio:2.40/1 !important;
  transform:none !important;
  z-index:999 !important;
}
#main.menu .center-logo-float {
  top:-7px !important;
  height:var(--site-plaque-height) !important;
  width:min(82vw,340px) !important;
}
/* Footer is a normal-flow sibling of the menu, preserving its spacing on ALL devices. */
.footer {
  position:relative !important;
  inset:auto !important;
  bottom:auto !important;
  left:auto !important;
  transform:none !important;
  flex:0 0 auto !important;
  width:min(100%,520px) !important;
  margin:12px auto 0 !important;
  padding:0 4px !important;
  text-align:center !important;
  box-sizing:border-box !important;
  font:800 clamp(12px,3.6vw,17px)/1.24 -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',Arial,sans-serif !important;
  letter-spacing:0 !important;
  white-space:nowrap !important;
  color:#b94b20 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.85) !important;
  pointer-events:none;
  z-index:6 !important;
}
/* Expanded panels remain attached to their original menu trigger. */
#main .jsBox {
  width:calc(100% - 6px);
  max-height:min(480px,calc(100svh - 120px)) !important;
  overflow-y:auto;
  overscroll-behavior:contain;
}
#main .browserBox {max-height:min(410px,calc(100svh - 140px)) !important;overflow-y:auto;}
/* On very short landscape-like mobile viewports, panels become centered overlays. */
@media (max-height:640px) and (max-width:767px) {
  :root {--site-plaque-height:46px;}
  .mobile-wrap {justify-content:flex-start !important;}
  .content {padding-top:calc(var(--site-plaque-height) + 9px) !important;}
  #main.menu {aspect-ratio:2.55/1 !important;}
  #main.menu .center-logo-float .logo-domain {font-size:clamp(13px,4vw,18px) !important;}
  #main .jsBox, #main .browserBox {
    position:fixed !important;
    top:50svh !important;
    left:50vw !important;
    bottom:auto !important;
    width:min(calc(100vw - 22px),430px) !important;
    max-height:80svh !important;
    transform:translate(-50%,-50%) !important;
    z-index:1005 !important;
  }
  #main .jsBox.show, #main .browserBox.show {transform:translate(-50%,-50%) !important;}
}
@media (max-width:350px) {
  :root {--site-plaque-height:48px;--site-menu-width:calc(100vw - 20px);}
  #main.menu {aspect-ratio:2.52/1 !important;}
  .footer {font-size:12px !important;}
  #main.menu .center-logo-float {width:84vw !important;}
  #main.menu .center-logo-float .logo-domain {font-size:clamp(13px,4.3vw,16px) !important;}
}
@media (min-width:768px) {
  :root {--site-menu-width:min(calc(100vw - 50px),473px);}
  #main.menu {aspect-ratio:2.50/1 !important;}
  .content {padding-top:calc(var(--site-plaque-height) + 15px) !important;}
  .footer {margin-top:15px !important;}
}
@media (prefers-reduced-motion:reduce) {
  #main .jsBox, #main .browserBox {transition:none !important;}
}

/* Optional, capped distribution of excess height on extra-tall viewports.
   No shrinking, cropping or fixed coordinates; it only increases tap targets slightly. */
@media (max-width:767px) {
 html.seamless-tuned #main.menu {
   height:var(--site-menu-tuned-height) !important;
   aspect-ratio:auto !important;
 }
}

/* ---- official-bright.css ---- */
/* 7709 V6.4.6 — Official Bright refinement, CSS-only presentation changes.
   KY overlay removed from HTML: the ORIGINAL artwork already contains the
   user's blue K / red Y logo and correctly aligned 开元棋牌 tile.
   Routing, line probing, stored destinations and mobile flow are untouched. */

:root {
  --official-orange: #ed6a1c;
  --official-orange-deep: #cf5018;
  --official-blue: #1c64ba;
  --official-warm-ink: #65371f;
  --official-stroke: #e8ab71;
}

html, body {
  background-color:#fff7f0 !important;
  background-image:
    radial-gradient(ellipse 90% 48% at 48% 5%,rgba(255,220,184,.6),transparent 78%),
    linear-gradient(180deg,#fff2e4 0%,#fff8f1 57%,#fff8f2 100%) !important;
}
.mobile-wrap {
  background:linear-gradient(180deg,rgba(255,250,244,.04),rgba(255,252,249,.18) 80%,rgba(255,247,238,.28)) !important;
}
/* Retain the seamless/flow layout. Brighten the four existing cells without
   turning any of them into a solid-color rectangle. */
#main.menu {
  background:rgba(255,250,245,.99) !important;
  border:1.8px solid var(--official-stroke) !important;
  border-radius:18px !important;
  box-shadow:0 7px 22px rgba(138,66,20,.13),0 1px 3px rgba(135,67,27,.06) !important;
}
#main.menu > a.btn-img-text {
  background:linear-gradient(152deg,#fffefe 0%,#fff7ed 72%,#fff0e4 100%) !important;
  transition:background .16s ease,box-shadow .16s ease !important;
}
#main.menu > a.btn-img-text:hover,
#main.menu > a.btn-img-text:focus-visible {
  background:linear-gradient(152deg,#fffaf0 0%,#ffecd5 100%) !important;
}
#main > a:nth-of-type(odd) {border-right:1px solid rgba(220,148,87,.43) !important;}
#main > a:nth-of-type(-n+2) {border-bottom:1px solid rgba(220,148,87,.43) !important;}
/* High-contrast text and icons, preserving the requested primary-vs-secondary difference. */
#main.menu > a#webToggle.btn-img-text span {color:#df591c !important;}
#main.menu > a#appLink.btn-img-text span,
#main.menu > a#browserToggle.btn-img-text span,
#main.menu > a#customerLink.btn-img-text span {color:#1e5fa9 !important;}
#main.menu > a.btn-img-text span {
  font-weight:850 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.92) !important;
}
/* Crisp, clean official-entry plaque, restrained rather than neon. */
#main.menu .center-logo-float a {
  background:linear-gradient(125deg,#fffdfa 0%,#fff4e6 63%,#ffeacf 100%) !important;
  border:1.6px solid #ecac6a !important;
  box-shadow:0 4px 12px rgba(164,84,29,.12),inset 0 1px 0 #fff !important;
}
#main.menu .center-logo-float .logo-num {
  background:linear-gradient(145deg,#ff9a34 0%,#e96819 100%) !important;
  color:#fff !important;
}
#main.menu .center-logo-float .logo-domain {
  color:var(--official-warm-ink) !important;
  text-shadow:none !important;
}
/* Same functionality, a cleaner, brighter panel behind real network results. */
#main .jsBox {
  background:linear-gradient(155deg,rgba(255,254,251,.985),rgba(255,240,225,.975)) !important;
  border:1px solid #efc59d !important;
  box-shadow:0 14px 34px rgba(115,58,24,.16) !important;
}
#main .browserBox {
  background:linear-gradient(160deg,#fffdfb,#fff0e4) !important;
  border-color:#efc49d !important;
  box-shadow:0 12px 26px rgba(115,58,24,.15) !important;
}
/* Footer is text, not baked into hero — improved legibility on peach. */
.footer {
  color:#b64b21 !important;
  text-shadow:0 1px 0 rgba(255,255,255,.93) !important;
}
/* At very small widths, keep the existing no-overlap behavior from V6.4.5. */
@media (max-width:350px) {
  #main.menu {border-radius:14px !important;}
}

/* ---- v647-finish.css ---- */
/* 7709 V6.4.7: seam-to-edge background + complete KY gold rim.
   Rendering-only: does not change route checks or destinations. */
html, body {
  background-color:#ffecdF !important;
  background-image:linear-gradient(180deg,#ffcdaf 0%,#ffddc8 32%,#ffe9db 62%,#fff4ec 100%) !important;
}
.mobile-wrap {
  /* The artwork fades through transparent edge pixels. Match those pixels
     to one continuous orange-peach field rather than a separate white sheet. */
  background:linear-gradient(180deg,
    #fdc9a9 0%,#fed2b1 9%,#ffdac0 20%,
    #ffe2cf 39%,#ffe9d9 59%,#ffecdf 76%,#fff5ee 100%) !important;
}
.bg > .hero-frame {isolation:isolate;}
.bg .hero-frame > img.ky-rim-fix {
  position:absolute !important;
  display:block !important;
  width:100% !important;
  height:100% !important;
  max-width:none !important;
  max-height:none !important;
  inset:0 !important;
  object-fit:fill !important;
  transform:none !important;
  pointer-events:none !important;
  z-index:2;
}
/* The content panel and copyright continue on the same soft backdrop. */
.content, .footer {background:transparent !important;}

/* ---- desktop-scroll-fix.css ---- */
/* V6.4.9 — desktop Chrome single-page scrollbar.
   html owns page scrolling; body and the site container may not create a second page scrollbar.
   This intentionally does not disable real scrolling or the separate scrollable line/browser popup. */
html {
  height:auto !important;
  min-height:100% !important;
  overflow-x:clip !important;
  overflow-y:auto !important;
  scrollbar-gutter:auto !important;
}
body {
  height:auto !important;
  min-height:100vh !important;
  overflow:visible !important;
  scrollbar-gutter:auto !important;
}
.mobile-wrap {
  overflow:visible !important;
  max-height:none !important;
}
/* The line-selection and browser-choice panels still scroll independently when needed. */
#main .jsBox.show, #main .browserBox.show {
  overscroll-behavior:contain;
}

/* ---- desktop-compact.css ---- */
/* V6.5.0 FINAL - compact desktop layout only.
   Keeps the V6.4.9 single-scrollbar fix and ALL mobile sizing intact.
   Adjust the size of hero artwork and menu as one responsive group.
*/
@media (min-width: 768px) {
  :root {
    /* At shorter desktop viewport heights, artwork and menu shrink together. */
    --site-art-width: clamp(320px, calc((100svh - 260px) * 0.80), 448px);
    --site-art-height: calc(var(--site-art-width) * 1.08);
    --site-menu-width: calc(var(--site-art-width) * 0.915);
    --site-plaque-height: clamp(39px, 5.6svh, 48px);
  }
  .mobile-wrap {
    padding-top:clamp(10px, 1.5svh, 16px) !important;
    padding-bottom:10px !important;
  }
  .content {
    padding-top:calc(var(--site-plaque-height) + 8px) !important;
    max-width:460px !important;
  }
  #main.menu {
    max-width:410px !important;
    aspect-ratio:2.50 / 1 !important;
  }
  #main.menu .center-logo-float {
    top:-6px !important;
    width:min(84%, 325px) !important;
    height:var(--site-plaque-height) !important;
  }
  .footer {
    margin-top:11px !important;
    font-size:clamp(13px, 1.4vw, 16px) !important;
  }
}

/* ---- desktop-balanced.css ---- */
/* 7709 V6.5.1 | Desktop scale refinement ONLY.
   The V6.5.0 mobile breakpoint, browser line engine, and navigation are unchanged.
   Increase hero / four-tile menu together while keeping common PC screens compact.
*/
@media (min-width: 768px) {
  :root {
    --site-art-width: clamp(370px, calc((100svh - 230px) * 0.88), 560px);
    --site-art-height: calc(var(--site-art-width) * 1.08);
    --site-menu-width: min(calc(var(--site-art-width) * 0.915), 473px);
    --site-plaque-height: clamp(42px, 5.6svh, 50px);
  }
  .mobile-wrap {
    padding-top: clamp(9px, 1.2svh, 14px) !important;
    padding-bottom: 2px !important;
  }
  /* The artwork file includes a long decorative blank tail.
     Crop that desktop-only tail so it never creates a second page-length scroll. */
  .bg > .hero-frame {
    height: calc(var(--site-art-width) * 1.20) !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 93%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 93%, transparent 100%);
  }
  .bg .hero-frame > img.hero-main-image {
    height: auto !important;
    aspect-ratio: 941 / 1672 !important;
  }
  .content {
    max-width: 560px !important;
    padding-top: calc(var(--site-plaque-height) + 2px) !important;
  }
  #main.menu {
    max-width: 473px !important;
    aspect-ratio: 2.72 / 1 !important;
  }
  #main.menu .center-logo-float {
    top: -6px !important;
    width: min(85%, 350px) !important;
    height: var(--site-plaque-height) !important;
  }
  .footer {
    margin-top: 8px !important;
  }
}


/* V6.5.3 — Route label left + randomized display domain right.
   Presentation only; does not alter measured endpoints or destination URLs. */
#main .jsBox li.line-slot .url.site.line-name-group {
  display:flex;
  flex:1 1 0;
  min-width:0;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  overflow:visible;
  white-space:nowrap;
  text-align:initial;
}
#main .jsBox li.line-slot .line-route-name {
  display:inline-flex;
  flex:0 0 auto;
  min-width:0;
  align-items:center;
  gap:3px;
  font-size:12px;
  font-weight:700;
  white-space:nowrap;
  color:#704529;
}
#main .jsBox li.line-slot .line-brand-domain {
  display:block;
  flex:1 1 auto;
  min-width:0;
  max-width:100%;
  overflow:hidden;
  text-overflow:ellipsis;
  text-align:right;
  font-size:10.5px;
  font-weight:600;
  letter-spacing:-.15px;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
  color:#ae744a;
}
#main .jsBox li.line-slot .line-route-name .recommend-badge {
  font-size:8px;
  padding:2px 3px;
  line-height:1;
  flex:none;
}
@media(max-width:374px) {
  #main .jsBox li.line-slot .url.site.line-name-group {gap:3px;}
  #main .jsBox li.line-slot .line-route-name {font-size:10.5px;gap:2px;}
  #main .jsBox li.line-slot .line-brand-domain {font-size:9px;letter-spacing:-.3px;}
  #main .jsBox li.line-slot .line-route-name .recommend-badge {font-size:7px;padding:2px;}
}


/* V6.5.4 — Precise native-text correction for the KY artwork label.
   The official K/Y card is embedded in the approved hero art, but the
   rasterized Chinese glyphs were distorted. This small, scale-locked
   live-text overlay covers ONLY that lettering, not the logo or gold rim. */
.bg > .hero-frame {container-type:inline-size;}
.bg > .hero-frame > .ky-wordmark-fix {
  position:absolute;
  left:4.8%;
  top:54.05%;
  width:18.0%;
  height:2.95%;
  box-sizing:border-box;
  z-index:4;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  white-space:nowrap;
  color:#fffefa;
  background:linear-gradient(180deg,#0b4da9 0%,#073f94 68%,#0a317b 100%);
  border-radius:5% / 18%;
  font:900 3.35cqw/1.05 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;
  letter-spacing:0;
  text-shadow:0 1px 2px #082b71, 0 0 1px #fff;
}
/* Desktop hero frames crop the original blank tail. Its rendered image retains
   the full intrinsic aspect-ratio: the exact same label y-coordinate is 80%
   of the deliberately cropped frame, rather than 54% of a full mobile frame. */
@media (min-width:768px) {
  .bg > .hero-frame > .ky-wordmark-fix {
    top:80.05%;
    height:4.37%;
  }
}
