/* 그리드벳 해시게임(/main/hash.php) — 원본 CSS 의 .pageTitle · .tabTitle · .cart-input · .cart-button · .cart-rate · .thead · ul.freeboard · .faq-list 를 그대로 쓰고,
   모자라는 칸만 원본 색 변수(--surface-* · --3838 · --4246 · --a3a3 · --theme-color · --126e51 · --module-*)로 채운다. 밝은 테마는 [data-theme-mode=light] 변수가 따라온다. */
.hs{--hs-card:var(--surface-1);--hs-in:var(--3838);--hs-well:var(--body-bg);--hs-line:var(--4246);--hs-mute:var(--a3a3);--hs-acc:var(--theme-color);--hs-pick:var(--126e51);--hs-win:var(--theme-color);--hs-lose:#ff6b6b;--hs-hot:#f5c41a;position:relative;color:var(--font-color)}
[data-theme-mode=light] .hs{--hs-lose:#dc2626;--hs-hot:#d97706}
.hs [hidden]{display:none!important}
.hs-loading,.hs-closed{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:240px;border-radius:10px;background:var(--hs-card);font-size:13px;color:var(--hs-mute)}
.hs-closed b{font-family:'p6';font-weight:normal;font-size:15px;color:var(--font-color)}
.hs-gtabs{margin-bottom:14px}
.hs code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px;word-break:break-all}
.hs button{font-family:inherit;cursor:pointer}
.hs button:disabled{cursor:not-allowed}

/* ── 틀: 게임 판 + 베팅 칸 · 기록 + 공정성 · 게임 방법 ── */
.hs-play{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:12px;align-items:start}
.hs-stage,.hs-panel,.hs-card{border-radius:10px;background:var(--hs-card);box-shadow:inset 0 0 0 1px var(--module-panel-border)}
.hs-stage{position:relative;min-height:440px;padding:14px;overflow:hidden}
.hs-panel{display:flex;flex-direction:column;gap:10px;padding:14px}
.hs-lower{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px;margin-top:12px;align-items:start}
.hs-lower.one{grid-template-columns:1fr}
.hs-card{padding:14px 16px}
.hs-rules{margin-top:12px}
.hs-card h3,.hs-fair-hd h3{font-family:'p6';font-weight:normal;font-size:15px;color:var(--font-color)}

/* ── 베팅 칸 ── */
.hs-avail{display:flex!important;align-items:center;justify-content:space-between;height:auto!important;padding:0 2px;font-size:12px!important;color:var(--hs-mute)}
.hs-avail b{font-family:'p7';font-weight:normal;font-size:14px;color:var(--hs-acc)}
.hs-amt .cart-input input{font-size:14px}
[data-theme-mode=light] .hs .cart-input span{color:#475569}
.hs-amt .cart-button{margin-top:4px}
.hs-amt .cart-button button:disabled,.hs-amt .cart-input input:disabled{opacity:.5}
.hs-opt{display:flex;flex-direction:column;gap:6px}
.hs-opt>label,.hs-opt>.lab{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--hs-mute)}
.hs-opt>.lab b{font-family:'p6';font-weight:normal;color:var(--font-color)}
.hs-seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px}
.hs-seg.wrap{grid-auto-flow:row;grid-template-columns:repeat(4,1fr)}
.hs-seg button{height:34px;padding:0 6px;border:1px solid var(--hs-line);border-radius:8px;background:var(--hs-in);font-size:12px;color:var(--font-color);transition:background .2s,border-color .2s}
.hs-seg button[aria-pressed=true]{border-color:var(--hs-pick);background:var(--hs-pick);color:#fff}
.hs-seg button:not([aria-pressed=true]):not(:disabled):hover{border-color:var(--hs-pick)}
.hs-seg button:disabled{opacity:.45}
.hs-field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;height:35px;border:1px solid var(--hs-line);border-radius:8px;background:var(--hs-in)}
.hs-field input{width:100%;height:33px;padding:0 10px;border:0;outline:0;background:transparent;font-family:'p7';font-size:13px;color:var(--font-color)}
.hs-field input:disabled{opacity:.5}
.hs-field span{padding:0 10px;font-size:12px;color:var(--hs-mute)}
.hs-check{display:flex!important;align-items:center;justify-content:flex-start!important;gap:6px;cursor:pointer}
.hs-check input{width:15px;height:15px;accent-color:var(--hs-pick)}
.hs-sum{display:grid;grid-template-columns:auto 1fr;gap:4px 10px;padding:8px 2px;border-top:1px solid var(--hs-line);border-bottom:1px solid var(--hs-line);font-size:12px;color:var(--hs-mute)}
.hs-sum dd{text-align:right;color:var(--font-color);font-family:'p6'}
.hs-sum dd.acc{color:var(--hs-acc)}
.hs-go{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;width:100%;min-height:46px;padding:5px 10px;border:0;border-radius:8px;background:linear-gradient(180deg,#efefef 8.5%,#919191 27.577%,#f3f3f3 63.825%,#a2a2a2 84.506%,#dedede 108.5%);box-shadow:inset 0 1px 0 rgba(255,255,255,.72),0 8px 18px rgba(0,0,0,.22);color:#0f121b;transition:filter .2s,transform .2s,box-shadow .2s}
.hs-go .hs-go-t{font-family:'p7';font-weight:normal;font-size:17px;line-height:1.2}
.hs-go .hs-go-s{font-family:'p5';font-size:11.5px;line-height:1.3;opacity:.8}
.hs-go:not(:disabled):hover{filter:brightness(1.03);transform:translateY(-1px)}
.hs-go:disabled{filter:grayscale(.2);opacity:.6;transform:none}
.hs-go.is-cash{background:var(--module-cyan-gradient);box-shadow:0 10px 24px rgba(13,192,212,.28);color:#fff}
.hs-go.is-stop{background:linear-gradient(180deg,#ff8a7a 0%,#e5484d 100%);box-shadow:0 10px 22px rgba(229,72,77,.25);color:#fff}
.hs-go.is-wait{background:var(--hs-in);box-shadow:inset 0 0 0 1px var(--hs-line);color:var(--font-color);opacity:1}
[data-theme-mode=light] .hs-go{background:linear-gradient(180deg,#3b82f6 0%,#2563eb 100%);box-shadow:0 10px 22px rgba(37,99,235,.22);color:#fff}
[data-theme-mode=light] .hs-go.is-cash{background:var(--module-cyan-gradient)}
[data-theme-mode=light] .hs-go.is-stop{background:linear-gradient(180deg,#f87171 0%,#dc2626 100%)}
[data-theme-mode=light] .hs-go.is-wait{background:var(--hs-in);color:var(--font-color);box-shadow:inset 0 0 0 1px var(--hs-line)}
.hs-note{padding:8px 10px;border-radius:8px;background:var(--hs-in);font-size:12px;line-height:1.5;color:var(--font-color);word-break:keep-all}
.hs-note.warn{border-left:3px solid #f5a623}
.hs-note.ok{border-left:3px solid var(--hs-acc)}
.hs-limit{font-size:11px;line-height:1.5;color:var(--hs-mute);word-break:keep-all}
.hs-btn{height:32px;padding:0 12px;border:1px solid var(--hs-line);border-radius:8px;background:var(--module-dark-button);font-size:12px;color:var(--font-color)}
.hs-btn:not(:disabled):hover{background:var(--module-dark-button-hover)}
.hs-btn:disabled{opacity:.5}
.hs-btn-pri{border:0;background:var(--module-primary-gradient);color:#fff}
.hs-btn-pri:not(:disabled):hover{filter:brightness(1.06);background:var(--module-primary-gradient)}

/* 가입머니(미션 머니) 고르기 */
.hs-fund{display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:8px;background:var(--hs-in);font-size:12px}
.hs-ft{color:var(--hs-mute)}
.hs-fch{display:grid;grid-template-columns:1fr 1fr;gap:4px}
.hs-fc{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px;border:1px solid var(--hs-line);border-radius:8px;background:var(--hs-card);text-align:left;color:var(--font-color)}
.hs-fc span{font-family:'p6';font-size:12px}
.hs-fc small{margin-left:4px;font-size:11px;color:var(--hs-mute)}
.hs-fc b{font-family:'p7';font-weight:normal;font-size:13px}
.hs-fc[aria-pressed=true]{border-color:var(--hs-pick);box-shadow:inset 0 0 0 1px var(--hs-pick)}
.hs-fc:disabled{opacity:.45}
.hs-fst{color:var(--hs-mute)}
.hs-fst b{color:var(--font-color)}
.hs-fst button{margin-left:4px;padding:2px 8px;border:1px solid var(--hs-line);border-radius:6px;background:none;color:var(--font-color)}
.hs-fwhy{padding:8px;border-radius:6px;background:var(--hs-card);line-height:1.5;color:var(--font-color);word-break:keep-all}
.hs-fwhy b{display:block;margin-bottom:2px;color:#f5a623}
.hs-fmore summary{cursor:pointer;color:var(--hs-mute)}
.hs-fmore p{margin-top:4px;line-height:1.5;color:var(--hs-mute);word-break:keep-all}

/* ── 판 공통 ── */
.hs-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;min-height:28px}
.hs-pills{display:flex;flex-wrap:nowrap;gap:4px;overflow:hidden;min-width:0;mask-image:linear-gradient(90deg,#000 85%,transparent)}
.hs-pill{flex:0 0 auto;display:inline-flex;align-items:center;height:24px;padding:0 9px;border-radius:12px;background:var(--hs-in);font-family:'p6';font-size:11.5px;color:var(--hs-mute);white-space:nowrap}
.hs-pill.win{color:var(--hs-win)}
.hs-pill.hot{background:rgba(245,196,26,.14);color:var(--hs-hot)}
.hs-pill.lose,.hs-pill.cold{color:var(--hs-lose)}
a.hs-pill:hover,button.hs-pill:hover{box-shadow:inset 0 0 0 1px var(--hs-pick)}
button.hs-pill{border:0}
.hs-well{position:relative;border-radius:8px;background:var(--hs-well);box-shadow:inset 0 0 0 1px var(--hs-line)}
.hs-foot{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-top:10px}
.hs-foot>div{padding:8px 10px;border-radius:8px;background:var(--hs-in)}
.hs-foot dt{font-size:11px;color:var(--hs-mute)}
.hs-foot dd{margin-top:2px;font-family:'p6';font-size:13px;color:var(--font-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hs-pop{position:absolute;left:50%;top:24%;z-index:5;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:2px;padding:12px 22px;border-radius:12px;background:rgba(15,18,27,.86);box-shadow:0 12px 30px rgba(0,0,0,.35),inset 0 0 0 1px rgba(13,192,212,.4);font-family:'p7';font-size:24px;color:#2ee6f5;pointer-events:none;animation:hsPop 2.2s ease forwards;white-space:nowrap}
.hs-pop small{font-family:'p5';font-size:12px;color:#d7dde6}
.hs-pop.lose{color:#ff8a7a;box-shadow:0 12px 30px rgba(0,0,0,.35),inset 0 0 0 1px rgba(255,107,107,.45)}
.hs-pop.push{color:#fff}
[data-theme-mode=light] .hs-pop{background:rgba(255,255,255,.95);color:#2563eb;box-shadow:0 12px 30px rgba(37,99,235,.18),inset 0 0 0 1px rgba(37,99,235,.3)}
[data-theme-mode=light] .hs-pop small{color:#475569}
[data-theme-mode=light] .hs-pop.lose{color:#dc2626}
[data-theme-mode=light] .hs-pop.push{color:#1e293b}
@keyframes hsPop{0%{opacity:0;transform:translate(-50%,-40%) scale(.9)}12%{opacity:1;transform:translate(-50%,-50%) scale(1)}80%{opacity:1}100%{opacity:0;transform:translate(-50%,-62%)}}

/* ── 기록 표(원본 .thead · ul.freeboard) ── */
.hs-tabs{display:flex;gap:22px;margin:-2px 0 10px;border-bottom:1px solid var(--hs-line)}
.hs-tabs button{position:relative;height:38px;padding:0;border:0;background:none;font-family:'p6';font-size:13px;color:var(--hs-mute)}
.hs-tabs button em{margin-left:3px;font-style:normal;font-size:11px;color:var(--hs-mute)}
.hs-tabs button[aria-selected=true]{color:var(--font-color)}
.hs-tabs button[aria-selected=true]::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--theme-color)}
.hs-thead.hs-cols-mine,ul.freeboard.hs-rows.hs-cols-mine li{grid-template-columns:62px minmax(0,1fr) 84px 66px 84px 50px}
.hs-thead.hs-cols-live,ul.freeboard.hs-rows.hs-cols-live li{grid-template-columns:62px minmax(0,1fr) 84px 66px 84px}
.hs-thead{gap:0!important}
.hs-thead span{height:30px!important;color:var(--hs-mute)}
ul.freeboard.hs-rows{max-height:420px;overflow-y:auto;scrollbar-width:thin}
ul.freeboard.hs-rows li{gap:0;height:auto;min-height:36px}
ul.freeboard.hs-rows li>div{height:auto;min-height:36px;padding:4px 2px;font-size:12px}
ul.freeboard.hs-rows li>div.left{padding-left:6px;line-height:1.35;word-break:keep-all}
ul.freeboard.hs-rows li>div.t{color:var(--hs-mute)}
ul.freeboard.hs-rows li.me{box-shadow:inset 2px 0 0 var(--hs-acc)}
.hs-me{display:inline-block;margin-left:4px;padding:0 5px;border-radius:4px;background:var(--hs-pick);font-style:normal;font-size:10px;line-height:16px;color:#fff}
.hs-st{color:var(--hs-mute)}
.hs-st.win{font-family:'p7';font-weight:normal;color:var(--hs-win)}
.hs-st.lose{color:var(--hs-lose)}
.hs-st.wait{color:var(--hs-acc)}
.hs-dim{color:var(--hs-mute)}
.hs-vf{height:24px;padding:0 8px;border:1px solid var(--hs-line);border-radius:6px;background:none;font-size:11px;color:var(--hs-acc)}
.hs-vf:hover{border-color:var(--hs-acc)}
.hs-empty{display:flex;align-items:center;justify-content:center;height:64px;font-size:12px;color:var(--hs-mute)}
.hs-logs-d{margin-top:8px;font-size:11px;color:var(--hs-mute)}

/* ── 공정성 ── */
.hs-fair-hd{display:flex;flex-direction:column;gap:3px;margin-bottom:10px}
.hs-fair-hd span,.hs-fair p.hs-fp{font-size:12px;line-height:1.55;color:var(--hs-mute);word-break:keep-all}
.hs-fair p.hs-fp b{color:var(--font-color);font-weight:normal;font-family:'p6'}
.hs-kv{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.hs-kv>div{min-width:0;padding:8px 10px;border-radius:8px;background:var(--hs-in)}
.hs-kv>div.wide{grid-column:1 / -1}
.hs-kv dt{margin-bottom:3px;font-size:11px;color:var(--hs-mute)}
.hs-kv dd{font-size:12.5px;color:var(--font-color);word-break:break-all}
.hs-seedin{display:flex;gap:4px}
.hs-seedin input{flex:1;min-width:0;height:26px;padding:0 6px;border:1px solid var(--hs-line);border-radius:6px;background:var(--hs-card);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;color:var(--font-color);outline:0}
.hs-seedin input:focus{border-color:var(--hs-pick)}
.hs-seedin button{height:26px;padding:0 8px;border:1px solid var(--hs-line);border-radius:6px;background:var(--module-dark-button);font-size:11px;color:var(--font-color)}
.hs-seedin button:disabled{opacity:.4}
.hs-fair-act{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.hs-prev{margin-top:8px;font-size:12px;color:var(--hs-mute)}
.hs-prev summary{cursor:pointer}
.hs-prev summary b{font-weight:normal;color:var(--font-color)}
.hs-prev ul{display:flex;flex-direction:column;gap:4px;margin-top:6px;max-height:180px;overflow:auto}
.hs-prev li{padding:6px 8px;border-radius:6px;background:var(--hs-in)}
.hs-prev li code{display:block;color:var(--font-color)}
.hs-prev li small{display:block;margin-top:2px;font-size:11px}
.hs-vform{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px;margin-top:12px;padding-top:12px;border-top:1px solid var(--hs-line)}
.hs-vform label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:11px;color:var(--hs-mute)}
.hs-vform input{width:100%;min-width:0;height:32px;padding:0 10px;border:1px solid var(--hs-line);border-radius:8px;background:var(--hs-in);font-family:'p6';font-size:13px;color:var(--font-color);outline:0}
.hs-vform input:focus{border-color:var(--hs-pick)}
.hs-vform.cols3{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) 130px auto}
.hs-vout{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.hs-verdict{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:8px;background:var(--hs-in);box-shadow:inset 3px 0 0 var(--hs-mute)}
.hs-verdict[data-ok="1"]{box-shadow:inset 3px 0 0 var(--hs-win)}
.hs-verdict[data-ok="0"]{box-shadow:inset 3px 0 0 var(--hs-lose)}
.hs-verdict b{font-family:'p6';font-weight:normal;font-size:13px}
.hs-verdict[data-ok="1"] b{color:var(--hs-win)}
.hs-verdict[data-ok="0"] b{color:var(--hs-lose)}
.hs-verdict span{font-size:12px;color:var(--hs-mute)}
.hs-v-note,.hs-v-wait,.hs-v-err{font-size:12px;line-height:1.5;color:var(--hs-mute);word-break:keep-all}
.hs-v-err{color:var(--hs-lose)}

/* ── 게임 방법(원본 .faq-list) ── */
.hs-rules h3{margin-bottom:10px}
.hs-rules .faq-list{gap:6px}
.hs-rules .faq-list li{padding:14px 16px;border-radius:8px;background:var(--hs-in)}
.hs-rules .faq-list li.active{background:var(--hs-well);box-shadow:inset 0 0 0 1px var(--hs-line)}
.hs-rules .faq-list li a{font-family:'p6';font-size:14px}
.hs-rules .faq-list li.active a strong{color:var(--hs-acc);text-decoration:none}
.hs-rules .faq-list li a .iconfont{background:var(--hs-line);color:var(--font-color)}
.hs-rules .faq-list li.active a .iconfont{background:var(--hs-acc);color:#fff}
.hs-acc{display:none;margin-top:12px;padding-top:12px;border-top:1px solid var(--hs-line);font-size:13px;line-height:1.7;color:var(--hs-mute);word-break:keep-all}
.hs-acc b{font-weight:normal;font-family:'p6';color:var(--font-color)}
.hs-acc p+p{margin-top:6px}
.hs-rules .faq-list li.active .hs-acc{display:block}

/* ── 휴대폰 ── */
html[device-mode=mobile] .hs-play,html[device-mode=mobile] .hs-lower{grid-template-columns:minmax(0,1fr);gap:10px}
html[device-mode=mobile] .hs-lower,html[device-mode=mobile] .hs-rules{margin-top:10px}
html[device-mode=mobile] .hs-stage{min-height:0;padding:10px}
html[device-mode=mobile] .hs-panel{padding:12px}
html[device-mode=mobile] .hs-card{padding:12px}
html[device-mode=mobile] .hs-foot{grid-template-columns:repeat(2,minmax(0,1fr))}
html[device-mode=mobile] .hs-gtabs a{margin-left:18px}
html[device-mode=mobile] .hs-gtabs a:first-child{margin-left:0}
html[device-mode=mobile] .hs-thead{display:none!important}
html[device-mode=mobile] ul.freeboard.hs-rows li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"r r v" "t a p";gap:2px 10px;padding:8px 10px;border-radius:8px;background:var(--3838)}
html[device-mode=mobile] ul.freeboard.hs-rows.hs-cols-live li{grid-template-areas:"u a p" "t m p"}
html[device-mode=mobile] ul.freeboard.hs-rows li>div{min-height:0;padding:0;justify-content:flex-start;font-size:12px}
html[device-mode=mobile] ul.freeboard.hs-rows li>div.r{grid-area:r;padding:0}
html[device-mode=mobile] ul.freeboard.hs-rows li>div.u{grid-area:u;padding:0}
html[device-mode=mobile] ul.freeboard.hs-rows li>div.t{grid-area:t;font-size:11px}
html[device-mode=mobile] ul.freeboard.hs-rows li>div.a{grid-area:a;justify-content:flex-end}
html[device-mode=mobile] ul.freeboard.hs-rows li>div.a::after{content:"원";margin-left:1px;color:var(--hs-mute)}
html[device-mode=mobile] ul.freeboard.hs-rows.hs-cols-mine li>div.m{display:none}
html[device-mode=mobile] ul.freeboard.hs-rows.hs-cols-live li>div.m{grid-area:m;justify-content:flex-end;font-size:11px}
html[device-mode=mobile] ul.freeboard.hs-rows li>div.p{grid-area:p;justify-content:flex-end}
html[device-mode=mobile] ul.freeboard.hs-rows li>div.v{grid-area:v;justify-content:flex-end}
html[device-mode=mobile] .hs-kv{grid-template-columns:1fr}
html[device-mode=mobile] .hs-vform.cols3{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
html[device-mode=mobile] .hs-vform.cols3 label:first-child{grid-column:1 / -1}
html[device-mode=mobile] .hs-pop{font-size:20px;padding:10px 16px}
html[device-mode=mobile] .hs-rules .faq-list li{padding:12px}
html[device-mode=mobile] .hs-rules .faq-list li a{font-size:13px}
html[device-mode=mobile] .hs-acc{font-size:12px}

/* ── 목록(허브) ── */
.hs-hub-d{margin:0 0 12px;font-size:13px;line-height:1.6;color:var(--hs-mute);word-break:keep-all}
.hs-hub-d b{font-weight:normal;font-family:'p6';color:var(--font-color)}
.hs-gcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.hs-gc{position:relative;display:grid;grid-template-columns:76px minmax(0,1fr);gap:14px;align-items:center;height:100%;padding:16px;border-radius:12px;background:var(--hs-card);box-shadow:inset 0 0 0 1px var(--module-panel-border);transition:box-shadow .25s,transform .25s}
.hs-gc:hover{box-shadow:inset 0 0 0 1px var(--hs-pick),0 10px 24px rgba(0,0,0,.18);transform:translateY(-2px)}
.hs-gc-art{display:flex;align-items:center;justify-content:center;width:76px;height:76px;border-radius:14px;background:radial-gradient(120% 120% at 30% 20%,rgba(45,187,255,.28) 0%,rgba(0,123,254,.10) 45%,transparent 75%),var(--hs-well);box-shadow:inset 0 0 0 1px var(--hs-line)}
.hs-gc-art svg{width:48px;height:48px;fill:none;stroke:var(--theme-color);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 6px rgba(13,192,212,.35))}
.hs-gc-art svg .f{fill:var(--theme-color);stroke:none}
.hs-gc-art svg .ax{stroke:var(--hs-mute);stroke-width:2;opacity:.6}
[data-theme-mode=light] .hs-gc-art{background:radial-gradient(120% 120% at 30% 20%,rgba(96,165,250,.28) 0%,rgba(37,99,235,.08) 50%,transparent 80%),#f8fbff}
[data-theme-mode=light] .hs-gc-art svg{filter:none}
.hs-gc-b{display:flex;flex-direction:column;gap:5px;min-width:0}
.hs-gc-h{display:flex;align-items:center;gap:6px}
.hs-gc-h b{font-family:'p7';font-weight:normal;font-size:16px;color:var(--font-color)}
.hs-gc-h em{padding:1px 7px;border-radius:9px;background:var(--hs-in);font-style:normal;font-size:10.5px;color:var(--hs-acc)}
.hs-gc-b small{font-size:12px;line-height:1.5;color:var(--hs-mute);word-break:keep-all}
.hs-gc-m{font-size:11px;color:var(--hs-mute)}
.hs-gc-st{position:absolute;right:12px;top:12px;padding:2px 8px;border-radius:9px;background:rgba(245,166,35,.16);font-size:11px;color:#f5a623}
.hs-gc.off .hs-gc-art{filter:grayscale(.8);opacity:.7}
.hs-hub-fair{margin-top:12px}
.hs-hub-fair ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.hs-hub-fair li{padding:12px;border-radius:8px;background:var(--hs-in);font-size:12px;line-height:1.6;color:var(--hs-mute);word-break:keep-all}
.hs-hub-fair li b{display:block;margin-bottom:4px;font-family:'p6';font-weight:normal;font-size:13px;color:var(--hs-acc)}
.hs-hub-fair>p{font-size:12px;line-height:1.6;color:var(--hs-mute);word-break:keep-all}
html[device-mode=mobile] .hs-gcards{grid-template-columns:1fr;gap:8px}
html[device-mode=mobile] .hs-gc{grid-template-columns:60px minmax(0,1fr);gap:12px;padding:12px}
html[device-mode=mobile] .hs-gc-art{width:60px;height:60px}
html[device-mode=mobile] .hs-gc-art svg{width:38px;height:38px}
html[device-mode=mobile] .hs-hub-fair ol{grid-template-columns:1fr}

/* ── 크래시 ── */
.hs-chip{flex:0 0 auto;font-size:12px;color:var(--hs-mute)}
.hs-chip b{margin-left:3px;font-family:'p6';font-weight:normal;color:var(--font-color)}
.cr-well{height:380px;overflow:hidden}
.cr-well canvas{position:absolute;inset:0;width:100%;height:100%}
.cr-mid{position:absolute;left:50%;top:44%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;gap:4px;pointer-events:none;text-align:center}
.cr-mid b{font-family:'p8','p7';font-weight:normal;font-size:56px;line-height:1;color:var(--font-color);letter-spacing:-.5px;text-shadow:0 4px 24px rgba(0,0,0,.35)}
.is-fly .cr-mid b{color:var(--hs-acc)}
.is-bust .cr-mid b{color:var(--hs-lose)}
.cr-mid span{font-size:13px;color:var(--hs-mute)}
.cr-bar{width:200px;height:4px;margin-top:6px;border-radius:2px;background:var(--hs-line);overflow:hidden}
.cr-bar i{display:block;width:var(--p,0%);height:100%;background:var(--module-cyan-gradient);transition:width .1s linear}
.cr-outs{position:absolute;right:12px;top:12px;display:flex;flex-direction:column;gap:4px;max-width:46%}
.cr-outs li{display:flex;align-items:center;gap:8px;padding:3px 9px;border-radius:12px;background:rgba(13,192,212,.14);font-size:11.5px;color:var(--font-color);animation:hsIn .3s ease}
.cr-outs li b{font-family:'p6';font-weight:normal;color:var(--hs-acc)}
.cr-outs li.me{background:var(--hs-pick);color:#fff}
.cr-outs li.me b{color:#fff}
@keyframes hsIn{from{opacity:0;transform:translateX(8px)}to{opacity:1;transform:none}}
html[device-mode=mobile] .cr-well{height:260px}
html[device-mode=mobile] .cr-mid b{font-size:40px}

/* ── 입력 칸 묶음(다이스 · 림보 · 자동 설정) ── */
.dc-in3,.dc-in2{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.dc-in2{grid-template-columns:1fr 1fr}
.dc-in3 label,.dc-in2 label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:11px;color:var(--hs-mute)}
.dc-in3 input,.dc-in2 input{width:100%;height:35px;padding:0 8px;border:1px solid var(--hs-line);border-radius:8px;background:var(--hs-in);font-family:'p7';font-size:13px;color:var(--font-color);outline:0}
.dc-in3 input:focus,.dc-in2 input:focus,.hs-field:focus-within{border-color:var(--hs-pick)}
.dc-in3 input:disabled,.dc-in2 input:disabled{opacity:.5}
.dc-auto{display:flex;flex-direction:column;gap:8px;padding:10px;border-radius:8px;background:var(--hs-in)}
.dc-auto .hs-field{background:var(--hs-card)}
.dc-auto .dc-in2 input{background:var(--hs-card)}
.dc-rule{display:grid;grid-template-columns:minmax(0,1fr) 92px;gap:6px}
.dc-adv{font-size:12px;color:var(--hs-acc)}
.hs-opt>.hs-field{width:100%}

/* ── 다이스 ── */
.dc-well{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:350px;padding:30px 40px 34px}
.dc-num{font-family:'p8','p7';font-size:76px;line-height:1;color:var(--font-color);letter-spacing:-1px;font-variant-numeric:tabular-nums}
.is-roll .dc-num{color:var(--hs-mute)}
.win .dc-num{color:var(--hs-win)}
.lose .dc-num{color:var(--hs-lose)}
.dc-msg{min-height:20px;font-size:14px;color:var(--hs-mute)}
.dc-rail{position:relative;width:100%;max-width:760px;margin-top:46px;--t:50%}
.dc-track{display:flex;height:12px;border-radius:6px;overflow:hidden;box-shadow:inset 0 0 0 1px var(--hs-line)}
.dc-track i{display:block;height:100%}
.dc-track .lo{width:var(--t);background:var(--hs-lose);opacity:.75}
.dc-track .hi{flex:1;background:var(--hs-win);opacity:.85}
.dc-rail[data-dir=under] .dc-track .lo{background:var(--hs-win);opacity:.85}
.dc-rail[data-dir=under] .dc-track .hi{background:var(--hs-lose);opacity:.75}
.dc-rail input[type=range]{position:absolute;left:-6px;right:-6px;top:-8px;width:calc(100% + 12px);height:28px;margin:0;background:transparent;-webkit-appearance:none;appearance:none;cursor:pointer}
.dc-rail input[type=range]::-webkit-slider-runnable-track{height:28px;background:transparent}
.dc-rail input[type=range]::-moz-range-track{height:28px;background:transparent}
.dc-rail input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:26px;height:26px;margin-top:1px;border-radius:7px;background:linear-gradient(180deg,#f3f3f3,#a2a2a2);box-shadow:0 2px 8px rgba(0,0,0,.4),inset 0 0 0 2px #fff}
.dc-rail input[type=range]::-moz-range-thumb{width:26px;height:26px;border:0;border-radius:7px;background:linear-gradient(180deg,#f3f3f3,#a2a2a2);box-shadow:0 2px 8px rgba(0,0,0,.4),inset 0 0 0 2px #fff}
.dc-rail input[type=range]:disabled{cursor:not-allowed;opacity:.6}
.dc-pin{position:absolute;left:var(--r,50%);top:-44px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;pointer-events:none;animation:hsDrop .35s ease}
.dc-pin b{padding:4px 10px;border-radius:8px;background:var(--hs-win);font-family:'p7';font-weight:normal;font-size:14px;color:#fff;box-shadow:0 6px 16px rgba(0,0,0,.3)}
.dc-pin.lose b{background:var(--hs-lose)}
.dc-pin::after{content:"";width:0;height:0;border:6px solid transparent;border-top-color:var(--hs-win)}
.dc-pin.lose::after{border-top-color:var(--hs-lose)}
@keyframes hsDrop{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translateX(-50%)}}
.dc-scale{display:flex;justify-content:space-between;margin-top:10px;font-size:11px;color:var(--hs-mute)}
html[device-mode=mobile] .dc-well{min-height:250px;padding:20px 18px 24px}
html[device-mode=mobile] .dc-num{font-size:54px}
html[device-mode=mobile] .dc-rail{margin-top:40px}

/* ── 림보 ── */
.lb-well{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:350px;padding:30px;background:radial-gradient(60% 70% at 50% 45%,rgba(0,123,254,.16),transparent 70%),var(--hs-well)}
.lb-k{font-size:12px;color:var(--hs-mute)}
.lb-mult{font-family:'p8','p7';font-size:84px;line-height:1;color:var(--font-color);letter-spacing:-1px;font-variant-numeric:tabular-nums}
.is-roll .lb-mult{color:var(--hs-acc)}
.win .lb-mult{color:var(--hs-win)}
.lose .lb-mult{color:var(--hs-lose)}
.lb-msg{min-height:20px;font-size:14px;color:var(--hs-mute)}
.lb-target{display:flex;align-items:center;gap:8px;margin-top:10px;padding:6px 14px;border-radius:16px;background:var(--hs-in);font-size:12px;color:var(--hs-mute)}
.lb-target b{font-family:'p7';font-weight:normal;font-size:15px;color:var(--font-color)}
html[device-mode=mobile] .lb-well{min-height:240px}
html[device-mode=mobile] .lb-mult{font-size:58px}

/* ── 지뢰찾기 ── */
.mn-well{display:flex;flex-direction:column;align-items:center;gap:12px;padding:22px}
.mn-grid{display:grid;grid-template-columns:repeat(var(--n,5),1fr);gap:9px;width:100%;max-width:440px}
.mn-cell{position:relative;aspect-ratio:1;padding:0;border:1px solid var(--hs-line);border-radius:10px;background:linear-gradient(180deg,var(--surface-4),var(--surface-2));box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 3px 0 rgba(0,0,0,.25);transition:transform .15s,box-shadow .2s,border-color .2s}
.mn-cell:not(:disabled):hover{border-color:var(--hs-acc);transform:translateY(-2px);box-shadow:0 6px 16px rgba(13,192,212,.18)}
.mn-cell:disabled{cursor:default}
.mn-cell.wait{animation:mnWait .6s ease-in-out infinite alternate}
@keyframes mnWait{to{border-color:var(--hs-acc);opacity:.7}}
.mn-cell.open{background:var(--hs-in);box-shadow:inset 0 0 0 1px var(--hs-line);transform:none}
.mn-cell svg{position:absolute;inset:16%;width:68%;height:68%;animation:mnFlip .3s ease}
.mn-cell .g1{fill:var(--hs-acc);stroke:#fff;stroke-width:1.4;stroke-linejoin:round;opacity:.95}
.mn-cell .g2{fill:none;stroke:rgba(0,0,0,.28);stroke-width:1.3;stroke-linejoin:round}
.mn-cell .m1{fill:var(--hs-lose)}
.mn-cell .m2{stroke:var(--hs-lose);stroke-width:3.2;stroke-linecap:round}
.mn-cell.gem{border-color:rgba(13,192,212,.5)}
.mn-cell.mine{border-color:var(--hs-lose)}
.mn-cell.boom{background:rgba(255,107,107,.18);animation:mnBoom .5s ease}
.mn-cell.dim{opacity:.4}
.mn-cell.dim.mine{opacity:.7}
@keyframes mnFlip{from{transform:scale(.4) rotateY(90deg);opacity:0}to{transform:none;opacity:1}}
@keyframes mnBoom{0%,100%{transform:none}25%{transform:translateX(-4px)}75%{transform:translateX(4px)}}
.is-lost .mn-grid{filter:saturate(.8)}
.mn-hint{font-size:13px;color:var(--hs-mute);text-align:center;word-break:keep-all}
.mn-sel{width:100%;height:35px;padding:0 10px;border:1px solid var(--hs-line);border-radius:8px;background:var(--hs-in) var(--select-arrow);background-size:12px;background-position:right 10px center;background-repeat:no-repeat;font-family:'p6';font-size:13px;color:var(--font-color);-webkit-appearance:none;appearance:none}
.mn-sel:disabled{opacity:.5}
.mn-pick{width:100%}
[data-theme-mode=light] .mn-cell{background:linear-gradient(180deg,#fff,#e8eff8)}
[data-theme-mode=light] .mn-cell.open{background:#f1f5fb}
html[device-mode=mobile] .mn-well{padding:14px}
html[device-mode=mobile] .mn-grid{gap:6px}

/* ── 플린코 ── */
.pk-well{display:flex;flex-direction:column;align-items:center;padding:10px 10px 14px}
.pk-well canvas{display:block;width:100%;height:400px}
.pk-slots{display:grid;grid-template-columns:repeat(var(--n,17),1fr);gap:3px;width:var(--sw,100%);max-width:100%;margin-top:2px}
.pk-slot{display:flex;align-items:center;justify-content:center;height:30px;border-radius:6px;background:var(--c);font-family:'p7';font-size:11px;color:#0f121b;box-shadow:inset 0 -3px 0 rgba(0,0,0,.18);white-space:nowrap;overflow:hidden}
.pk-slots.narrow .pk-slot{height:42px;font-size:10.5px;writing-mode:vertical-rl;letter-spacing:-.3px}
.pk-slot.hit{animation:pkHit .5s ease}
@keyframes pkHit{40%{transform:translateY(5px);filter:brightness(1.35)}}
html[device-mode=mobile] .pk-well canvas{height:300px}

/* ── 하이로우 ── */
.hl-bar{position:relative;display:flex;align-items:center;justify-content:space-between;height:34px;padding:0 14px;border-radius:8px;background:var(--hs-in);overflow:hidden;font-size:12px;color:var(--hs-mute)}
.hl-bar i{position:absolute;inset:0;transform-origin:left;background:linear-gradient(90deg,rgba(0,123,254,.32),rgba(13,192,212,.32));transition:transform .1s linear}
.hl-bar[data-phase=result] i{background:linear-gradient(90deg,rgba(245,196,26,.18),rgba(245,196,26,.28))}
.hl-bar span{position:relative;z-index:1}
.hl-bar #hlBarK{font-family:'p6';color:var(--font-color)}
.hl-bar #hlBarV{font-family:'p6';color:var(--font-color);font-variant-numeric:tabular-nums}
.hl-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0;font-size:11.5px;color:var(--hs-mute)}
.hl-meta b{font-family:'p6';font-weight:normal;color:var(--font-color)}
.hl-hash{display:flex;align-items:center;gap:6px;min-width:0}
.hl-hash code{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:420px;color:var(--font-color)}
.hl-well{padding:18px}
.hl-main{display:grid;grid-template-columns:minmax(0,1fr) 190px minmax(0,1fr);gap:16px;align-items:stretch}
.hl-sides{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-top:14px}
.hl-opt{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:64px;padding:10px 6px;border:1px solid var(--hs-line);border-radius:10px;background:var(--hs-in);color:var(--font-color);transition:border-color .2s,background .2s,transform .15s}
.hl-main .hl-opt{min-height:180px}
.hl-main .hl-opt b{font-size:20px}
.hl-main .hl-opt em{font-size:22px}
.hl-opt b{font-family:'p7';font-weight:normal;font-size:14px}
.hl-opt small{font-size:11px;color:var(--hs-mute)}
.hl-opt em{font-family:'p7';font-style:normal;font-size:15px;color:var(--hs-acc)}
.hl-opt.red b{color:#ff5a5f}
.hl-opt.joker b{color:#f5a623}
.hl-opt:hover{border-color:var(--hs-pick)}
.hl-opt[aria-pressed=true]{border-color:var(--hs-pick);background:var(--hs-pick);color:#fff}
.hl-opt[aria-pressed=true] small,.hl-opt[aria-pressed=true] em,.hl-opt[aria-pressed=true] b{color:#fff}
.hl-opt[aria-disabled=true]{opacity:.55}
.hl-opt[aria-disabled=true]:hover{border-color:var(--hs-line)}
.hl-opt[aria-pressed=true][aria-disabled=true]{opacity:.8}
.hl-opt[data-win]{border-color:var(--hs-hot);box-shadow:0 0 0 2px rgba(245,196,26,.35);opacity:1}
.hl-opt .st{position:absolute;top:6px;right:6px;padding:1px 6px;border-radius:8px;background:var(--hs-card);font-style:normal;font-size:10.5px;color:var(--font-color)}
.hl-opt .wn{position:absolute;top:6px;left:6px;padding:1px 6px;border-radius:8px;background:var(--hs-hot);font-style:normal;font-size:10.5px;color:#1b1503}
.hl-cardbox{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}
.hl-card{position:relative;width:132px;height:184px;perspective:800px}
.hl-face{position:absolute;inset:0;border-radius:12px;backface-visibility:hidden;transition:transform .33s ease}
.hl-back{background:repeating-linear-gradient(45deg,rgba(255,255,255,.07) 0 6px,transparent 6px 12px),linear-gradient(160deg,#1b3a7a,#0b1d44);border:3px solid #d7dde6;box-shadow:0 10px 24px rgba(0,0,0,.4)}
.hl-front{display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #d7dde6;color:#111827;box-shadow:0 10px 24px rgba(0,0,0,.4);transform:rotateY(180deg)}
.hl-front.red{color:#e11d48}
.hl-front .big{font-size:64px;line-height:1}
.hl-front .c1,.hl-front .c2{position:absolute;display:flex;flex-direction:column;align-items:center;font-family:'p8','p7';font-size:24px;line-height:1}
.hl-front .c1{left:10px;top:9px}
.hl-front .c2{right:10px;bottom:9px;transform:rotate(180deg)}
.hl-front small{font-size:16px}
.hl-front.joker{background:linear-gradient(160deg,#fff7e0,#ffe39a);color:#b45309}
.hl-front.joker .big{font-family:'p8','p7';font-size:28px;letter-spacing:1px}
.hl-card.show .hl-back{transform:rotateY(180deg)}
.hl-card.show .hl-front{transform:rotateY(0)}
.hl-card.pulse .hl-back{animation:hlPulse 1.4s ease-in-out infinite}
@keyframes hlPulse{50%{box-shadow:0 10px 30px rgba(13,192,212,.45)}}
.hl-cap{min-height:36px;font-size:12.5px;line-height:1.45;color:var(--hs-mute);text-align:center;word-break:keep-all}
.win .hl-cap{color:var(--hs-win)}
.hl-trail-w{display:flex;align-items:center;gap:10px;margin-top:12px}
.hl-trail-k{flex:0 0 auto;font-size:12px;color:var(--hs-mute)}
.hl-trail-k small{font-size:10.5px}
.hl-trail{display:flex;flex:1;gap:6px;overflow:hidden;min-width:0}
.hl-trail li{display:flex;flex-direction:column;align-items:center;gap:3px}
.hl-trail li.none{font-size:12px;color:var(--hs-mute)}
.hl-trail button{padding:0;border:0;background:none}
.hl-trail .tag{font-size:10px;color:var(--hs-mute);white-space:nowrap}
.hl-trail .tag.ok{color:var(--hs-acc)}
.hl-mini{display:inline-flex;flex-direction:column;align-items:center;justify-content:center;width:30px;height:40px;border-radius:5px;background:#fff;border:1px solid #d7dde6;font-family:'p7';font-size:13px;line-height:1;color:#111827}
.hl-mini small{font-size:11px}
.hl-mini.red{color:#e11d48}
.hl-mini.joker{background:#ffe39a;color:#b45309;font-size:9.5px}
.hl-trail button:hover .hl-mini{box-shadow:0 0 0 2px var(--hs-pick)}
.hl-road{margin-top:12px}
.hl-road-hd{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.hl-road-hd p{margin-top:3px;font-size:12px;color:var(--hs-mute)}
.hl-road-sum{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:8px}
.hl-road-sum>div{padding:6px 10px;border-radius:8px;background:var(--hs-in);font-size:11px;color:var(--hs-mute)}
.hl-road-sum dd{margin-top:2px;color:var(--hs-mute)}
.hl-road-sum dd b{font-family:'p6';font-weight:normal;font-size:14px;color:var(--font-color)}
.hl-road-sum [data-side=a] dt{color:var(--hs-lose)}
.hl-road-sum [data-side=b] dt{color:var(--hs-acc)}
.hl-road-scroll{overflow-x:auto;display:flex;flex-direction:row-reverse;padding:8px;border-radius:8px;background:var(--hs-well);box-shadow:inset 0 0 0 1px var(--hs-line);scrollbar-width:thin;cursor:grab}
.hl-road-scroll.is-drag{cursor:grabbing;user-select:none}
.hl-road-cols{display:flex;gap:4px;min-height:120px;align-items:flex-start}
.hl-rc{display:flex;flex-direction:column;align-items:center;gap:3px}
.hl-rh{margin-bottom:2px;font-size:9.5px;color:var(--hs-mute);white-space:nowrap}
.hl-rh[data-side=a]{color:var(--hs-lose)}
.hl-rh[data-side=b]{color:var(--hs-acc)}
.hl-rcell .hl-mini{width:24px;height:32px;font-size:11px}
.hl-rcell[data-o=tie] .hl-mini{opacity:.55}
.hl-rcell[data-o=a] .hl-mini{box-shadow:inset 0 -3px 0 #ff5a5f}
.hl-rcell[data-o=b] .hl-mini{box-shadow:inset 0 -3px 0 #0dc0d4}
html[device-mode=mobile] .hl-main{grid-template-columns:minmax(0,1fr) 112px minmax(0,1fr);gap:8px}
html[device-mode=mobile] .hl-main .hl-opt{min-height:140px;padding:8px 4px}
html[device-mode=mobile] .hl-main .hl-opt b{font-size:15px}
html[device-mode=mobile] .hl-main .hl-opt em{font-size:17px}
html[device-mode=mobile] .hl-card{width:100px;height:140px}
html[device-mode=mobile] .hl-front .big{font-size:46px}
html[device-mode=mobile] .hl-front .c1,html[device-mode=mobile] .hl-front .c2{font-size:18px}
html[device-mode=mobile] .hl-sides{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
html[device-mode=mobile] .hl-well{padding:10px}
html[device-mode=mobile] .hl-hash code{max-width:150px}
html[device-mode=mobile] .hl-road-sum{grid-template-columns:repeat(2,minmax(0,1fr))}

/* ── 1분 홀짝 · 30초 업다운 ── */
.oe-syms{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-bottom:10px}
.oe-syms button{display:flex;align-items:center;justify-content:space-between;gap:8px;height:40px;padding:0 14px;border:1px solid var(--hs-line);border-radius:8px;background:var(--hs-in);color:var(--font-color)}
.oe-syms button b{font-family:'p6';font-weight:normal;font-size:13px}
.oe-syms button span{font-family:'p6';font-size:13px;color:var(--hs-mute);font-variant-numeric:tabular-nums}
.oe-syms button[aria-pressed=true]{border-color:var(--hs-pick);box-shadow:inset 0 0 0 1px var(--hs-pick)}
.oe-syms button[aria-pressed=true] span{color:var(--hs-acc)}
.oe-top{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px;margin-bottom:10px}
.oe-clock{display:flex;align-items:center;gap:10px}
.oe-clock svg{width:44px;height:44px;transform:rotate(-90deg)}
.oe-clock circle{fill:none;stroke-width:4}
.oe-clock .bg{stroke:var(--hs-line)}
.oe-clock .fg{stroke:var(--hs-acc);stroke-dasharray:106.8;stroke-linecap:round;transition:stroke-dashoffset .2s linear}
.oe-clock.hurry .fg{stroke:var(--hs-lose)}
.oe-clock div{display:flex;flex-direction:column}
.oe-clock b{font-family:'p7';font-weight:normal;font-size:22px;line-height:1.1;color:var(--font-color);font-variant-numeric:tabular-nums}
.oe-clock span{font-size:11px;color:var(--hs-mute)}
.oe-round{display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.oe-round>span:first-child{font-size:12px;color:var(--hs-mute)}
.oe-px{font-family:'p7';font-weight:normal;font-size:28px;line-height:1.1;color:var(--font-color);font-variant-numeric:tabular-nums}
.oe-px i{font-style:normal;color:var(--hs-acc);text-decoration:underline;text-underline-offset:4px}
.oe-last{font-size:11px;color:var(--hs-mute)}
.oe-last b{font-family:'p6';font-weight:normal;color:var(--hs-acc)}
.oe-judge{display:flex;align-items:center;gap:10px;padding:6px 12px;border-radius:10px;background:var(--hs-in);font-size:11.5px;color:var(--hs-mute)}
.oe-judge b{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:var(--hs-pick);font-family:'p7';font-weight:normal;font-size:20px;color:#fff}
.oe-judge b.odd{background:#e5484d}
.oe-judge b.even{background:var(--hs-pick)}
.oe-chart{height:250px}
.oe-chart canvas{position:absolute;inset:0;width:100%;height:100%}
.oe-beads-w{display:flex;align-items:center;gap:10px;margin:10px 0}
.oe-beads-w>span{flex:0 0 auto;font-size:12px;color:var(--hs-mute)}
.oe-beads{display:flex;gap:4px;overflow:hidden;min-width:0}
.oe-beads li{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:26px;height:26px;border-radius:50%;background:var(--hs-pick);font-family:'p6';font-size:12px;color:#fff}
.oe-beads li.odd{background:#e5484d}
.oe-beads li.none{width:auto;background:none;color:var(--hs-mute)}
.oe-beads li.up{background:#e5484d}
.oe-beads li.down{background:var(--hs-pick)}
.oe-beads li.tie{background:var(--hs-line);color:var(--font-color)}
.oe-beads li svg{width:15px;height:15px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.oe-pick.minigameArea{margin:0}
.oe-pick .section{margin-bottom:6px}
.oe-pick .section .sTitle{height:34px}
.oe-pick .section ul li{height:38px}
.oe-pick .section ul li .name{font-family:'p6';font-size:13px}
.oe-pick .oe-digits{grid-template-columns:repeat(10,1fr)}
.oe-pick .oe-digits li{justify-content:center}
.oe-pick .oe-digits li .name{flex:0 0 auto;text-align:center}
.oe-pend ul{display:flex;flex-direction:column;gap:3px}
.oe-pend li{font-size:12px}
.oe-pend li b{font-weight:normal;font-family:'p6'}
.ud-pick{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.ud-pick button{display:flex;align-items:center;justify-content:center;gap:10px;height:64px;border:1px solid var(--hs-line);border-radius:10px;background:var(--hs-in);font-family:'p7';font-size:18px;color:var(--font-color)}
.ud-pick button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.ud-pick button small{font-family:'p6';font-size:13px;color:var(--hs-mute)}
.ud-pick button.up{color:#e5484d}
.ud-pick button.down{color:var(--accent-blue)}
.ud-pick button[aria-pressed=true].up{border-color:#e5484d;background:rgba(229,72,77,.14)}
.ud-pick button[aria-pressed=true].down{border-color:var(--accent-blue);background:rgba(0,123,254,.14)}
.ud-diff{font-size:11.5px;color:var(--hs-mute)}
.oe-px.up{color:#e5484d}
.oe-px.down{color:var(--accent-blue)}
html[device-mode=mobile] .oe-top{grid-template-columns:auto minmax(0,1fr);gap:8px}
html[device-mode=mobile] .oe-judge{grid-column:1 / -1}
html[device-mode=mobile] .oe-px{font-size:22px}
html[device-mode=mobile] .oe-chart{height:190px}
html[device-mode=mobile] .oe-pick .oe-digits{grid-template-columns:repeat(5,1fr)}

/* ── 레드 스트라이크 ── */
.rs-hud{display:flex;gap:8px;margin-bottom:10px}
.rs-hud>div{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px;border-radius:8px;background:var(--hs-in)}
.rs-hud span{font-size:11px;color:var(--hs-mute)}
.rs-hud b{font-family:'p7';font-weight:normal;font-size:20px;color:var(--font-color);font-variant-numeric:tabular-nums}
.rs-hud #rsMult{color:var(--hs-acc)}
.rs-hud #rsMult.bump{animation:rsBump .35s ease}
@keyframes rsBump{50%{transform:scale(1.3)}}
.rs-hud .rs-fs b{color:var(--hs-hot)}
.rs-board{position:relative;padding:12px;border-radius:14px;background:linear-gradient(180deg,#1c3f86,#0b1d44);box-shadow:inset 0 0 0 2px rgba(203,213,225,.5),0 12px 28px rgba(0,0,0,.35)}
.rs-grid{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(3,1fr);grid-auto-flow:column;gap:6px;aspect-ratio:5 / 3}
.rs-cell{position:relative;display:flex;align-items:center;justify-content:center;border-radius:10px;background:radial-gradient(80% 80% at 50% 35%,#203763,#0d1a36);box-shadow:inset 0 0 0 1px rgba(148,163,184,.25)}
.rs-cell svg{width:78%;height:78%;filter:drop-shadow(0 3px 4px rgba(0,0,0,.45))}
.rs-cell.drop svg{animation:rsDrop .42s cubic-bezier(.2,.9,.3,1.15) both;animation-delay:var(--d,0s)}
.turbo .rs-cell.drop svg{animation-duration:.18s}
@keyframes rsDrop{from{opacity:0;transform:translateY(-70%)}to{opacity:1;transform:none}}
.rs-cell.spin svg{animation:rsSpin .3s linear infinite;opacity:.55}
@keyframes rsSpin{from{transform:translateY(-30%)}to{transform:translateY(30%)}}
.rs-cell.win{box-shadow:inset 0 0 0 2px #2ee6f5,0 0 14px rgba(46,230,245,.55)}
.rs-cell.win svg{animation:rsWin .5s ease infinite alternate}
@keyframes rsWin{to{transform:scale(1.12)}}
.rs-cell.gone svg{transition:transform .3s,opacity .3s;transform:scale(.2);opacity:0}
.rs-cell.wildin{box-shadow:inset 0 0 0 2px #cbd5e1,0 0 16px rgba(203,213,225,.6)}
.rs-cell.sc{box-shadow:inset 0 0 0 2px #f5c41a,0 0 16px rgba(245,196,26,.6)}
.rs-lines{position:absolute;inset:12px;width:calc(100% - 24px);height:calc(100% - 24px);pointer-events:none}
.rs-lines polyline{fill:none;stroke:#2ee6f5;stroke-width:4;stroke-linejoin:round;stroke-linecap:round;opacity:.85;filter:drop-shadow(0 0 4px rgba(46,230,245,.8))}
.rs-banner{position:absolute;inset:12px;z-index:3;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border-radius:10px;background:rgba(5,12,30,.78);text-align:center;animation:hsIn .3s ease}
.rs-banner small{font-family:'p7';font-size:13px;letter-spacing:2px;color:#2ee6f5}
.rs-banner b{font-family:'p8','p7';font-weight:normal;font-size:38px;color:#fff;text-shadow:0 4px 18px rgba(46,230,245,.5)}
.rs-banner span{font-size:13px;color:#cbd5e1}
.rs-skip{position:absolute;right:20px;bottom:20px;z-index:4;height:30px;padding:0 12px;border:0;border-radius:15px;background:rgba(255,255,255,.9);font-size:12px;color:#0f172a}
.rs-histw{margin:10px 0 0}
.rs-tog{display:flex;flex-direction:column;gap:6px;font-size:12.5px;color:var(--font-color)}
.rs-tog small{margin-left:4px;font-size:11px;color:var(--hs-mute)}
.rs-buys{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.rs-bc{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 10px;border:1px solid var(--hs-line);border-radius:8px;background:var(--hs-in);text-align:left;color:var(--font-color)}
.rs-bc b{font-family:'p6';font-weight:normal;font-size:12.5px}
.rs-bc small{font-size:10.5px;line-height:1.35;color:var(--hs-mute)}
.rs-bc em{font-style:normal;font-family:'p6';font-size:11.5px;color:var(--hs-acc)}
.rs-bc:not(:disabled):hover{border-color:var(--hs-pick)}
.rs-bc:disabled{opacity:.45}
.rs-auto{display:flex;flex-direction:column;gap:6px;padding:10px;border-radius:8px;background:var(--hs-in);font-size:12px}
.rs-auto .lab{color:var(--hs-mute)}
.rs-auto .hs-seg button{background:var(--hs-card)}
.rs-auto .hs-seg button[aria-pressed=true]{background:var(--hs-pick)}
.rs-auto .hs-btn{width:100%;height:36px}
html[device-mode=mobile] .rs-board{padding:8px}
html[device-mode=mobile] .rs-grid{gap:4px}
html[device-mode=mobile] .rs-lines,html[device-mode=mobile] .rs-banner{inset:8px;width:calc(100% - 16px);height:calc(100% - 16px)}
html[device-mode=mobile] .rs-banner b{font-size:26px}
html[device-mode=mobile] .rs-hud b{font-size:16px}
html[device-mode=mobile] .hl-meta{flex-direction:column;align-items:flex-start;gap:3px}
html[device-mode=mobile] .hl-hash{max-width:100%}
html[device-mode=mobile] .hl-hash code{max-width:220px}
html[device-mode=mobile] .hl-sides .hl-opt{padding-top:20px}
html[device-mode=mobile] .hl-opt .wn,html[device-mode=mobile] .hl-opt .st{top:3px;font-size:9.5px}
.hs-top:has(> .hs-pills:empty:only-child){display:none}
.hs-krw{margin-top:-4px;padding:0 2px;font-size:11px;line-height:1.45;color:#f5a623;word-break:keep-all}
.hs-logs-d a{margin-left:4px;color:var(--hs-acc);text-decoration:underline;text-underline-offset:2px}
