:root{--paper:#fff;--ink:#000;--line:#bfbfbf;--red:#e60012;--blue:#001bd9;--green:#008000}
body{margin:0 auto;max-width:720px;background:#eee;color:var(--ink);font-family:Arial,"Microsoft YaHei",sans-serif}
.reference-header{position:relative;width:100%;line-height:0;isolation:isolate}
.reference-header img{display:block;width:100%;height:auto}
.brand-domain{position:absolute;left:16.4%;top:61%;width:35.5%;height:37%;display:flex;align-items:center;justify-content:flex-start;background:#e51500;color:#fff;font:900 clamp(14px,4.5vw,36px)/1 Arial,sans-serif;letter-spacing:-1px;white-space:nowrap}
.draw-wrap{padding:8px;border-top:1px solid #df1848;background:#efefef}
.draw-panel{padding:10px;background:#f3f3f3;border:1px solid #d8d8d8;border-radius:12px}
.draw-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;flex-wrap:wrap}
.draw-head h1{font-size:20px;margin:0;font-weight:700}.draw-head time{font-size:13px;color:#555}#draw-issue{color:#e11}
.balls{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(4px,1.2vw,8px);margin-bottom:8px}
.ball-card{border:1px solid #d3d3d3;border-radius:10px;padding:8px 2px;text-align:center;background:#f2f2f2;box-shadow:0 1px 4px #00000014}
.ball{width:clamp(28px,8vw,62px);height:clamp(28px,8vw,62px);border:5px solid #ccc;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff;margin:auto;color:#111;font-size:clamp(14px,4vw,34px);font-weight:bold;box-sizing:border-box}
.ball.red{border-color:#ea2215}.ball.blue{border-color:#2f89de}.ball.green{border-color:#2cbf2d}
.draw-foot{display:flex;gap:8px;align-items:center;justify-content:space-between;font-weight:700;font-size:16px}#next-draw{overflow-wrap:anywhere}
button{border-radius:999px;background:#d50000;color:#fff;border:0;padding:8px 14px;min-height:36px;cursor:pointer;white-space:nowrap;font-size:14px}button:focus-visible{outline:3px solid #001bd9;outline-offset:2px}button:disabled{opacity:.45;cursor:default}
#gjpManualRoot{padding:0 4px 8px}#gjpManualRoot .gjp-card h2{font-size:clamp(20px,5.2vw,34px)}
#gjpManualRoot .gjp-card > div,#gjpManualRoot .gjp-card td{white-space:normal!important;overflow-wrap:anywhere!important;word-break:normal!important}
#gjpManualRoot .gjp-card table{table-layout:fixed;max-width:100%}#gjpManualRoot .gjp-card td{overflow:hidden!important}
#gjpManualRoot .gjp-matrix td{font-size:clamp(13px,3.8vw,26px)}
#gjpManualRoot .gjp-period-two td,#gjpManualRoot .gjp-period-three td,#gjpManualRoot .gjp-kill-three td{font-size:clamp(12px,3.3vw,25px);white-space:normal!important}
#gjpManualRoot .gjp-card img{display:block;max-width:100%;height:auto;margin:auto}.material-date{text-align:center;font-size:12px;color:#555;padding:5px}
.page-state{padding:24px;text-align:center;color:#666;font-size:14px}.pagination{display:flex;justify-content:center;align-items:center;gap:12px;padding:12px}.pagination[hidden]{display:none}
@media(max-width:375px){.draw-wrap{padding:5px}.draw-panel{padding:7px}.ball{border-width:4px}.ball-card{padding:6px 1px}.draw-head h1{font-size:16px}.draw-foot{font-size:14px}.brand-domain{letter-spacing:-.5px}}

.draw-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}#draw-history{display:inline-flex;align-items:center;min-height:36px;color:#e11;font-size:14px;font-weight:700;white-space:nowrap;text-decoration:none}#draw-history:hover{text-decoration:underline}#draw-history:focus-visible{outline:3px solid #001bd9;outline-offset:2px}

.calendar-bar{background:#fff;text-align:center;color:#008000;font-size:14px;line-height:1.8;padding:2px 4px}
#source-attributes{background:#fff;font:14px/1.5 "Microsoft YaHei",Arial,sans-serif;margin:0 4px 8px;word-break:break-all}
#source-attributes .list-title{margin:0;text-align:center;font-size:22px}
#source-attributes table{width:100%;border-collapse:collapse;border-spacing:0;table-layout:fixed}
#source-attributes ul,#source-attributes li,#source-attributes dl,#source-attributes dt,#source-attributes dd{margin:0;padding:0;list-style:none}
#source-attributes .sx{background:#F75D59}#source-attributes .sx th{height:30px;background:#f1f1f1}
#source-attributes .sx td{padding:5px 0;text-align:center;border:1px solid #d8ccb4;overflow-wrap:anywhere;background:#fff}
#source-attributes .sx td.a-left{text-align:left;padding-left:5px;padding-right:5px}
#source-attributes .sx span{height:18px;line-height:18px;margin:0 2px;padding:0 2px;font-size:12px;color:#fff;display:inline-block;background:#f00}
#source-attributes .sx span.green{background:#009933}#source-attributes .sx span.blue{background:#3366ff}
#source-attributes ul.sx1{display:flex;flex-wrap:wrap}#source-attributes ul.sx1 li{width:33.333%;padding:5px 0}
#source-attributes ul.sx1 dt img{width:40px;height:40px;vertical-align:middle;border:0}
#source-attributes .sx1 dd{min-height:36px}
