/* GO기릿 코인 — 국내 거래소 문법(밝은 패널 · 상승 빨강 / 하락 파랑 · 촘촘한 표). docs/07-coin-plan.md §5 */
@font-face{font-family:Pretendard;font-weight:400;font-display:swap;src:url(../assets/fonts/Pretendard-Regular.woff2) format('woff2')}
@font-face{font-family:Pretendard;font-weight:500;font-display:swap;src:url(../assets/fonts/Pretendard-Medium.woff2) format('woff2')}
@font-face{font-family:Pretendard;font-weight:600;font-display:swap;src:url(../assets/fonts/Pretendard-SemiBold.woff2) format('woff2')}
@font-face{font-family:Pretendard;font-weight:800;font-display:swap;src:url(../assets/fonts/Pretendard-ExtraBold.woff2) format('woff2')}

:root{
  --bg:#EFF0F3; --panel:#fff; --line:#E3E5E9; --line-2:#EEF0F2; --hover:#F6F7F9; --sel:#F2F4F8;
  --text:#191B1F; --sub:#666B75; --mute:#6F747D;   /* 흰 바탕 4.5:1 이상(2026-09-28 #8D929B 3.2:1 →) */
  --up:#D8313A; --up-bg:#FDEEEE; --up-flash:#FBD5D7;
  --down:#1F62D6; --down-bg:#ECF2FD; --down-flash:#CFE0FB;
  --flat:#191B1F;
  --head:#131418; --head-2:#23252B; --gold:#FFC300; --gold-ink:#131418;
  --r:4px;
  --num:'Pretendard', system-ui, sans-serif;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0; background:var(--bg); color:var(--text); font:14px/1.45 Pretendard, system-ui, -apple-system, 'Apple SD Gothic Neo', sans-serif;
  font-feature-settings:'tnum' 1; -webkit-font-smoothing:antialiased}
button{font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer}
input{font:inherit; color:inherit}
a{color:inherit; text-decoration:none}
.num{font-variant-numeric:tabular-nums}
.up{color:var(--up)} .down{color:var(--down)} .flat{color:var(--flat)}
.sr{position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0)}
:focus-visible{outline:2px solid #3B82F6; outline-offset:1px}

/* ── 헤더 ── */
.hd{background:var(--head); color:#fff; position:sticky; top:0; z-index:40}
.hd-in{max-width:1440px; margin:0 auto; height:52px; display:flex; align-items:center; gap:28px; padding:0 16px}
.logo{display:flex; align-items:baseline; gap:6px; font-weight:800; font-size:19px; letter-spacing:-.4px; white-space:nowrap}
.logo b{color:var(--gold)}
.logo small{font-size:11px; font-weight:600; color:#8B8F98; letter-spacing:0}
.gnb{display:flex; gap:4px; height:100%}
.gnb a{display:flex; align-items:center; padding:0 12px; font-weight:600; font-size:15px; color:#A6AAB2; position:relative; white-space:nowrap}
.gnb a:hover{color:#fff}
.gnb a[aria-current="page"]{color:#fff}
.gnb a[aria-current="page"]::after{content:''; position:absolute; left:12px; right:12px; bottom:0; height:3px; background:var(--gold)}
.hd-r{margin-left:auto; display:flex; align-items:center; gap:14px}
.mkt{display:flex; align-items:center; gap:7px; font-size:12.5px; color:#C4C7CE; white-space:nowrap}
.mkt i{width:7px; height:7px; border-radius:50%; background:#6B6F78}
.mkt.on i{background:#2ECC71; box-shadow:0 0 0 3px rgba(46,204,113,.18)}
.mkt b{color:#fff; font-weight:600}
.me-chip{display:flex; align-items:center; gap:10px; padding:5px 6px 5px 12px; background:var(--head-2); border-radius:var(--r); font-size:13px}
.me-chip .n{font-weight:600; white-space:nowrap; max-width:96px; overflow:hidden; text-overflow:ellipsis}
.me-chip .t{color:#C4C7CE}
.hd-out{height:32px; padding:0 11px; border:1px solid #3A3D45; border-radius:var(--r); background:transparent; color:#C4C7CE; font-size:12.5px; font-weight:600; white-space:nowrap}   /* 헤더 로그아웃(2026-09-30) */
.hd-out:hover{color:#fff; border-color:#5A5E68}
.btn-gold{background:var(--gold); color:var(--gold-ink); font-weight:800; border-radius:var(--r); padding:0 14px; height:34px; font-size:14px; white-space:nowrap}
.btn-gold:hover{background:#FFCF33}

/* ── 장 시작 띠(2026-09-28: 매일 14:00 장 시작) ── */
.daybar{display:block; background:var(--gold); color:var(--gold-ink); font-size:13px; text-decoration:none}
.daybar:hover .db-sub{text-decoration:underline} .daybar.on{background:#E0552F; color:#fff} .daybar.ice{background:var(--sel); color:var(--txt)}
.daybar-in{max-width:1440px; margin:0 auto; padding:7px 16px; display:flex; align-items:center; gap:6px 14px; flex-wrap:wrap}
.daybar b{font-weight:800}
.daybar .db-sub{opacity:.8}
.daybar .db-clock{margin-left:auto; white-space:nowrap}
@media (max-width:860px){ .daybar-in{padding:6px 12px; font-size:12px; gap:2px 10px} .daybar .db-sub{display:none} }

/* ── 공지줄 ── */
.notice{display:flex; align-items:center; gap:12px; background:var(--panel); border:1px solid var(--line); border-radius:var(--r); height:40px; padding:0 14px; overflow:hidden}
.notice b{color:#1F62D6; font-weight:700; flex:none; font-size:13px}
.notice .tk{flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13.5px}
.notice .tk em{font-style:normal; color:var(--mute); margin-left:6px; font-size:12px}
.notice .tk .nt{font-size:11.5px; font-weight:700; color:#8A6400; background:#FFF3C4; padding:1px 6px; border-radius:3px; margin-right:2px}
html[data-theme="dark"] .notice .tk .nt{background:#3A3016; color:#F2C94C}
/* 알림 줄 「자세히 보기」 · 공지 모아보기(2026-09-28) */
.notice a.more{flex:none; margin-left:auto; font-size:12.5px; font-weight:600; color:var(--sub); padding:4px 10px; border:1px solid var(--line); border-radius:var(--r); white-space:nowrap}
.notice a.more:hover{background:var(--hover); color:var(--text)}
.info-tabs .pnl-h{border-bottom:0}
.notice-page .nt-count{margin-left:auto; font-size:12.5px; color:var(--mute)}
.stats-page .nt-count{margin-left:auto; font-size:12.5px; color:var(--mute)}
.st-wrap{overflow-x:auto; -webkit-overflow-scrolling:touch}
.st-tbl{min-width:760px} .st-tbl td, .st-tbl th{white-space:nowrap}
.st-tbl .ss{font:inherit; color:inherit; background:none; border:0; padding:0; cursor:pointer} .st-tbl .ss[aria-pressed="true"]{color:var(--txt); font-weight:800}
.st-tbl td small{color:var(--mute); font-weight:500} .st-tbl .st-late{display:block; font-size:11.5px; color:var(--mute); margin-top:1px}
.st-tbl .st-idle{color:var(--up)} .st-tbl .mute{color:var(--mute)}
.st-note{margin:0; padding:12px 16px 16px 32px; font-size:12.5px; line-height:1.7; color:var(--sub); border-top:1px solid var(--line-2)}
.nt-list{list-style:none; margin:0; padding:0}
.nt-list li{display:flex; align-items:flex-start; gap:14px; padding:14px 16px; border-top:1px solid var(--line-2); font-size:14.5px; line-height:1.6}
.nt-list .nt-t{flex:1; min-width:0; word-break:break-word}
.nt-list time{flex:none; color:var(--mute); font-size:12.5px; padding-top:2px}
.nt-new{display:inline-block; font-size:10.5px; font-weight:800; color:#8A6400; background:#FFF3C4; padding:1px 6px; border-radius:3px; margin-right:6px; vertical-align:1px}
html[data-theme="dark"] .nt-new{background:#3A3016; color:#F2C94C}
@media (max-width:860px){ .notice a.more{padding:3px 8px; font-size:12px} .nt-list li{flex-direction:column; gap:4px; padding:12px 14px} .info-tabs, .notice-page{border-radius:0} }

/* 시세 지연 알림(2026-09-28) */
.stale{display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:8px 14px; border:1px solid #F3CFCF; background:#FFF6F6; color:#B3242C; border-radius:var(--r); font-size:13px; font-weight:600}
.stale .btn-line{height:28px; font-size:12px; margin-left:auto}
html[data-theme="dark"] .stale{background:#2A1719; border-color:#4A1E22; color:var(--up)}
.nojs{margin:0; padding:14px 16px; background:#FFF3C4; color:#191B1F; text-align:center}

/* ── 레이아웃 ── */
.wrap{max-width:1440px; margin:0 auto; padding:10px 16px 60px}
.ex{display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:10px; align-items:start}
.ex-main{display:grid; gap:10px; min-width:0}
.pnl{background:var(--panel); border:1px solid var(--line); border-radius:var(--r); min-width:0}
.pnl-h{display:flex; align-items:center; height:44px; border-bottom:1px solid var(--line-2); padding:0 14px; gap:10px}
.pnl-h h2{font-size:15px; margin:0; font-weight:700}
.tabs{display:flex; height:100%}
.tabs button{padding:0 12px; font-weight:600; color:var(--mute); position:relative; height:100%; font-size:14px}
.tabs button[aria-selected="true"]{color:var(--text)}
.tabs button[aria-selected="true"]::after{content:''; position:absolute; left:10px; right:10px; bottom:-1px; height:2px; background:var(--text)}

/* ── 코인 요약 ── */
.sum{padding:14px 18px 16px}
.sum-top{display:flex; align-items:center; gap:10px; margin-bottom:10px}
.av{width:28px; height:28px; border-radius:50%; object-fit:cover; background:#E6E8EC; flex:none}
.av.sm{width:22px; height:22px}
.av.ph{display:inline-flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; color:var(--sub)} .av.sm.ph{font-size:10.5px}
.sum-top .nm{font-size:19px; font-weight:800; letter-spacing:-.3px}
.sum-top .tk{font-size:12.5px; color:var(--mute); font-weight:600}
.tag{display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; height:22px; padding:0 8px; border-radius:3px; background:#F1F2F4; color:var(--sub); white-space:nowrap}
.tag.live{background:#FFF1F1; color:var(--up)}
.tag.live::before{content:''; width:6px; height:6px; border-radius:50%; background:var(--up)}
.tag.wait{background:#FFF6DB; color:#8A6400}
.tag.sleep{background:#EEF0F6; color:#4B5364}
.tag.soon{background:#E9F5EE; color:#1C7C44}
/* 고래 파도(2026-09-28) */
.tag.whale{background:var(--gold); color:var(--gold-ink); font-weight:800}
.lname small .wv{font-style:normal; font-size:10px; font-weight:800; padding:0 4px; border-radius:2px; margin-left:2px; white-space:nowrap; flex:none}
.lname small{white-space:nowrap; overflow:hidden}
.lname small .wv{background:var(--gold); color:var(--gold-ink)}   /* 방향 없이 금색(2026-09-28) */
.chg .chg-l{font-size:11.5px; font-weight:600; color:var(--mute)}
.mkt.ice i{background:#6EA8FF; box-shadow:0 0 0 3px rgba(110,168,255,.2)}
.fills table.book tr.far td{height:26px; font-size:11.5px; color:var(--mute); text-align:center; cursor:default; background:var(--panel)}
.sum-body{display:grid; grid-template-columns:minmax(260px,auto) 1fr; gap:24px; align-items:end}
.px{font-size:34px; font-weight:800; letter-spacing:-.8px; line-height:1.1}
.px small{font-size:13px; font-weight:600; margin-left:4px; letter-spacing:0}
.chg{font-size:14px; font-weight:600; margin-top:4px}
.stats{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:22px; font-size:13px}
.stats div{display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px solid var(--line-2)}
.stats dt{color:var(--sub); white-space:nowrap} .stats dd{margin:0; font-weight:600; text-align:right}
.sum-note{margin:10px 0 0; font-size:12.5px; color:var(--sub)}

/* ── 차트 ── */
.chart-box{height:420px; position:relative}
.chart-box .empty{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--mute); font-size:13px; z-index:3; background:var(--panel); text-align:center; padding:0 16px}   /* 2026-10-04: z-index 가 없어 캔버스 밑에 깔려 이전 코인 눈금이 보였다 */
.chart-legend{margin-left:auto; font-size:12px; color:var(--sub)}
.chart-legend b{font-weight:600; color:var(--text)}

/* ── 하단 두 칸 ── */
.split{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px}

/* 체결 */
.fills{max-height:380px; overflow:auto}
.fills table{width:100%; border-collapse:collapse; font-size:13px}
.fills th{position:sticky; top:0; background:#FAFAFB; color:var(--sub); font-weight:500; font-size:12px; height:30px; text-align:right; padding:0 12px; border-bottom:1px solid var(--line-2)}
.fills th:first-child, .fills td:first-child{text-align:left}
.fills td{height:32px; padding:0 12px; text-align:right; border-bottom:1px solid var(--line-2); white-space:nowrap}
.fills td .who{color:var(--sub); max-width:110px; overflow:hidden; text-overflow:ellipsis; display:inline-block; vertical-align:bottom}
.fills .none{padding:40px 12px; text-align:center; color:var(--mute)}

/* 호가창 */
.fills table.book td{height:30px; padding:0 12px; cursor:pointer}
.fills table.book td:first-child{text-align:left; width:52%}
.fills table.book td small{font-size:11px; font-weight:500; margin-left:4px; opacity:.85}
.fills table.book tr.ask td{background:#F3F7FE}
.fills table.book tr.bid td{background:#FEF4F4}
.fills table.book tr.now td{background:var(--panel); border-top:1px solid var(--text); border-bottom:1px solid var(--text); cursor:default; height:36px}
.fills table.book tr.bk:not(.now):hover td{filter:brightness(.97)}
.fills table.book .bq{position:relative}
.fills table.book .bb{position:absolute; right:0; top:5px; bottom:5px; opacity:.22; border-radius:2px}
.fills table.book tr.ask .bb{background:var(--down)} .fills table.book tr.bid .bb{background:var(--up)}
.fills table.book .bt{position:relative}
.fills table.book em{position:relative; font-style:normal; font-size:10.5px; font-weight:700; color:#8A6400; background:#FFF3C4; padding:1px 5px; border-radius:3px; margin-left:6px}
.book-note{margin:0; padding:8px 12px; font-size:11.5px; color:var(--mute)}

/* 주문 */
.ord-tabs{display:grid; grid-template-columns:1fr 1fr; height:46px; border-bottom:1px solid var(--line-2)}
.ord-tabs button{font-weight:700; font-size:15px; color:var(--mute); border-bottom:2px solid transparent}
.ord-tabs button[aria-selected="true"].b{color:var(--up); border-color:var(--up)}
.ord-tabs button[aria-selected="true"].s{color:var(--down); border-color:var(--down)}
.ord{padding:16px 18px 18px; display:grid; gap:12px}
.ord .row{display:grid; grid-template-columns:86px minmax(0,1fr); align-items:center; gap:10px; font-size:13.5px}
.ord .row > span{color:var(--sub)}
.ord .val{text-align:right; font-weight:600}
.ord .inp{display:flex; align-items:center; border:1px solid #D5D8DD; border-radius:var(--r); height:40px; padding:0 12px; background:#fff}
.ord .inp:focus-within{border-color:#4B5563}
.ord .inp input{flex:1; min-width:0; width:100%; border:0; outline:0; text-align:right; font-weight:600; font-size:15px; background:none}
.ord .inp em{font-style:normal; color:var(--mute); margin-left:8px; font-size:12.5px}
.pcts{display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; margin-left:96px}
.pcts button{height:32px; border:1px solid #D5D8DD; border-radius:var(--r); font-size:12.5px; color:var(--sub); background:#fff}
.pcts button:hover{background:var(--hover)}
.ord .calc{border-top:1px dashed var(--line); padding-top:12px; display:grid; gap:6px; font-size:13px}
.ord .calc div{display:flex; justify-content:space-between}
.ord .calc span{color:var(--sub)} .ord .calc b{font-weight:600}
.go{height:46px; border-radius:var(--r); color:#fff; font-weight:800; font-size:16px}
.go.b{background:var(--up)} .go.b:hover{background:#C2262F}
.go.s{background:var(--down)} .go.s:hover{background:#1853BA}
.go:disabled{background:#C9CCD2; cursor:not-allowed}
.ord .why{font-size:12.5px; color:var(--sub); text-align:center; min-height:18px}
/* 지정가 안내(2026-10-04) — 지정가가 현재가와 같거나 가까우면 바로 체결되지 않는다는 걸 입력 단계에서 알린다 */
.ord .lim-hint{margin:-4px 0 8px; padding:8px 10px; border-radius:var(--r); background:var(--hover); font-size:12.5px; line-height:1.5; color:var(--sub)}
.ord .lim-hint.warn{background:var(--up-bg); color:var(--text)}
.ord .lim-hint b{color:inherit}
.ord .why.err{color:var(--up)}
.ord .foot{font-size:11.5px; color:var(--mute); line-height:1.6}

.otype{display:grid; grid-template-columns:1fr 1fr; border:1px solid #D5D8DD; border-radius:var(--r); overflow:hidden; height:36px}
.otype button{font-weight:600; font-size:13px; color:var(--sub)}
.otype button[aria-checked="true"]{background:#191B1F; color:#fff}
.ord .inp.lim{padding:0}
.ord .inp.lim input{text-align:center}
.ord .inp .tk{width:40px; height:100%; font-size:18px; color:var(--sub); flex:none}
.ord .inp .tk:hover{background:var(--hover)}
.fills .cx{height:26px; padding:0 10px; border:1px solid #CDD1D7; border-radius:var(--r); font-size:12px; background:#fff}
.fills .cx:hover{background:var(--hover)}
.fills .bar{height:4px; background:#EEF0F2; border-radius:2px; margin-top:3px; overflow:hidden}
.fills .bar i{display:block; height:100%; background:#8D929B}
#openCnt{font-size:11px; color:var(--up)}

/* ── 코인 목록 ── */
.list{position:sticky; top:62px}   /* 헤더(52px) 아래 — 장 시작 띠는 헤더와 같이 스크롤된다 */
.srch{display:flex; align-items:center; gap:8px; height:44px; padding:0 14px; border-bottom:1px solid var(--line-2)}
.srch svg{flex:none; color:var(--mute)}
.srch input{flex:1; border:0; outline:0; font-size:14px; background:none}
.srch:focus-within{box-shadow:inset 0 0 0 2px #3B82F6}
.ltabs{display:grid; grid-template-columns:repeat(3,1fr); height:42px; border-bottom:1px solid var(--line)}
.ltabs button{font-weight:600; color:var(--mute); font-size:14px; border-bottom:2px solid transparent}
.ltabs button[aria-selected="true"]{color:var(--text); border-color:var(--text)}
.lhead, .lrow{display:grid; grid-template-columns:28px minmax(0,1fr) 84px 66px 62px; align-items:center; column-gap:6px; padding:0 10px 0 6px}
.lhead{height:30px; background:#FAFAFB; font-size:12px; color:var(--sub); border-bottom:1px solid var(--line-2)}
.lhead button{text-align:right; color:inherit; font-size:12px}
.lhead button:first-of-type{text-align:left}
.lhead button[data-sort]::after{content:' ↕'; color:#B3B7BE}
.lhead button[data-dir="desc"]::after{content:' ↓'; color:var(--text)}
.lhead button[data-dir="asc"]::after{content:' ↑'; color:var(--text)}
.lbody{max-height:calc(100vh - 220px); overflow:auto}
.lrow{height:52px; border-bottom:1px solid var(--line-2); cursor:pointer; font-size:13px; position:relative}
/* 줄 전체를 덮는 선택 버튼(키보드·화면낭독기용) — 별 버튼은 그 위에 */
.lrow .lsel{position:absolute; inset:0; width:100%; z-index:1}
.lrow .star{position:relative; z-index:2}
.lrow .lsel:focus-visible{outline:2px solid #3B82F6; outline-offset:-2px}
.lrow:hover{background:var(--hover)}
.lrow[aria-current="true"]{background:var(--sel)}
.star{width:28px; height:28px; display:flex; align-items:center; justify-content:center; color:#C8CBD1}
.star[aria-pressed="true"]{color:#F2B705}
.lname{display:flex; align-items:center; gap:8px; min-width:0}
.lname .t{min-width:0}
.lname b{display:block; font-weight:600; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.lname small{display:flex; align-items:center; gap:4px; color:var(--mute); font-size:11px}
.lname small i{width:5px; height:5px; border-radius:50%; background:var(--up)}
.lrow .p, .lrow .c, .lrow .v{text-align:right; font-weight:600}
.lrow .v{font-weight:400; color:var(--sub); font-size:12px}
.lrow .c small{display:block; font-weight:400; font-size:11px}
.lrow .p span{padding:1px 2px; border:1px solid transparent; transition:background-color .3s ease-out, border-color .3s ease-out}
.lrow .p span.fu{border-color:var(--up)} .lrow .p span.fd{border-color:var(--down)}
.lrow .st{font-size:11px; color:var(--mute); font-weight:500}
/* 키보드로 고를 수 있는 줄 — 스크롤 상자에 잘리지 않게 안쪽 테두리 */
.tbl tr.click:focus-visible, .fills tr.bk:focus-visible{outline:2px solid #3B82F6; outline-offset:-2px}
.tbl td.nick span{display:inline-block; max-width:160px; overflow:hidden; text-overflow:ellipsis; vertical-align:bottom}
.whale li span{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-right:8px}
.lempty{padding:40px 16px; text-align:center; color:var(--mute); font-size:13px}

/* ── 페이지(내 자산·랭킹) ── */
.page{display:grid; gap:10px; max-width:1160px; margin:0 auto}
.kpi{display:grid; grid-template-columns:1.3fr repeat(4,1fr); gap:0}
.kpi > div{padding:18px 20px; border-right:1px solid var(--line-2)}
.kpi > div:last-child{border-right:0}
.kpi dt{font-size:12.5px; color:var(--sub); margin-bottom:6px}
.kpi dd{margin:0; font-size:18px; font-weight:700}
.kpi .big dd{font-size:26px; font-weight:800; letter-spacing:-.5px}
.tbl{width:100%; border-collapse:collapse; font-size:13.5px}
.tbl th{height:36px; background:#FAFAFB; color:var(--sub); font-weight:500; font-size:12.5px; text-align:right; padding:0 14px; border-bottom:1px solid var(--line)}
.tbl td{height:48px; padding:0 14px; text-align:right; border-bottom:1px solid var(--line-2); white-space:nowrap}
.tbl th.l, .tbl td.l{text-align:left}
.tbl tr.me td{background:#FFFBEA}
.tbl .cn{display:flex; align-items:center; gap:8px; font-weight:600}
.tbl .rk{font-weight:800; width:56px}
.tbl .rk.r1{color:#B8860B} .tbl .rk.r2{color:#7A8290} .tbl .rk.r3{color:#9A5B2E}
.tbl tbody tr.click{cursor:pointer} .tbl tbody tr.click:hover td{background:var(--hover)}
.tbl .none td{height:120px; text-align:center; color:var(--mute)}
.pnl-f{padding:12px 14px; font-size:12.5px; color:var(--sub); border-top:1px solid var(--line-2)}
.mybar{display:flex; align-items:center; gap:14px; padding:12px 16px; background:#FFFBEA; border:1px solid #F3E3A6; border-radius:var(--r); font-size:13.5px}
.mybar b{font-size:17px}
.rescue{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border:1px solid #F3CFCF; background:#FFF6F6; border-radius:var(--r); font-size:13.5px}
.btn-line{height:34px; padding:0 14px; border:1px solid #CDD1D7; border-radius:var(--r); background:#fff; font-weight:600; font-size:13px}
.btn-line:hover{background:var(--hover)}
.btn-wd{color:var(--up); border-color:var(--up); background:transparent}
.btn-wd:hover{background:var(--up-bg)}
.whales{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:10px; padding:12px}
.whale{border:1px solid var(--line); border-radius:var(--r)}
.whale h3{display:flex; align-items:center; gap:8px; margin:0; font-size:14px; height:44px; padding:0 12px; border-bottom:1px solid var(--line-2)}
.whale ol{margin:0; padding:6px 12px 10px; list-style:none; counter-reset:w}
.whale li{display:flex; justify-content:space-between; font-size:13px; padding:5px 0; counter-increment:w}
.whale li::before{content:counter(w); width:18px; color:var(--mute); font-weight:600}
.whale li span{flex:1}

/* ── 이용가이드 ── */
.guide{padding:28px 32px 36px; max-width:860px; width:100%; margin:0 auto}
.guide h1{font-size:24px; font-weight:800; letter-spacing:-.5px; margin:0 0 8px}
.guide .lead{color:var(--sub); margin:0 0 8px; font-size:15px}
.guide h2{font-size:17px; margin:28px 0 8px; padding-top:18px; border-top:1px solid var(--line-2)}
.guide h3{font-size:14.5px; margin:16px 0 6px}
.guide p, .guide li{font-size:14.5px; line-height:1.75; color:#30343B}
.guide ul{padding-left:20px; margin:0}
.fills .bot{font-size:11.5px; font-weight:600; color:#6B7280; background:#F1F2F4; padding:2px 6px; border-radius:3px}

/* 자산 추이·양도·카드 */
.eq-box{height:240px; position:relative}
.eq-box .empty{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; color:var(--mute); font-size:13px; z-index:2; pointer-events:none}
.xfer{display:grid; grid-template-columns:1fr 1fr auto; gap:8px; padding:14px}
.xfer input{height:40px; border:1px solid var(--line); border-radius:var(--r); padding:0 12px; background:var(--panel); color:var(--text); font-size:15px}
.card-modal{max-width:460px}
.card-modal img{width:100%; height:auto; border-radius:8px; display:block; margin:10px 0 14px}
.card-act{display:flex; gap:8px} .card-act .btn-gold{display:flex; align-items:center; justify-content:center; flex:1; height:44px}
.card-act .btn-line{height:44px}

/* ── 모달 ── */
.dim{position:fixed; inset:0; background:rgba(15,17,21,.55); z-index:80; display:flex; align-items:center; justify-content:center; padding:16px}
.modal{background:#fff; border-radius:8px; width:100%; max-width:400px; padding:26px 24px 22px; position:relative}
.modal h2{margin:0 0 4px; font-size:20px; font-weight:800; letter-spacing:-.4px}
.modal p.lead{margin:0 0 18px; color:var(--sub); font-size:13.5px}
.modal .x{position:absolute; right:10px; top:10px; width:36px; height:36px; display:flex; align-items:center; justify-content:center; color:var(--mute)}
.seg{display:grid; grid-template-columns:1fr 1fr; background:#F1F2F4; border-radius:6px; padding:3px; margin-bottom:16px}
.seg button{height:34px; border-radius:4px; font-weight:600; color:var(--sub); font-size:13.5px}
.seg button[aria-selected="true"]{background:#fff; color:var(--text); box-shadow:0 1px 2px rgba(0,0,0,.08)}
.fld{display:grid; gap:6px; margin-bottom:14px}
.fld label{font-size:13px; font-weight:600}
.fld input{height:46px; border:1px solid #D5D8DD; border-radius:6px; padding:0 14px; font-size:16px; outline:0}
.fld input:focus{border-color:#4B5563; box-shadow:0 0 0 3px rgba(59,130,246,.25)}
.fld small{font-size:12px; color:var(--mute)}
.modal .err{color:var(--up); font-size:13px; min-height:20px; margin:-4px 0 8px}
.modal .btn-gold{width:100%; height:48px; font-size:16px}
.modal .fine{margin:14px 0 0; font-size:12px; color:var(--mute); line-height:1.6}

.toast{position:fixed; left:50%; bottom:28px; transform:translateX(-50%); background:#1B1D22; color:#fff; padding:12px 18px; border-radius:6px; font-size:14px; z-index:90; max-width:calc(100% - 32px)}
.ft{max-width:1440px; margin:0 auto; padding:0 16px 30px; font-size:12px; color:var(--mute); line-height:1.7}
.ft a{text-decoration:underline}

/* 모바일 전용 요소 */
.mtab, .m-back, .m-cta, .mkt .short{display:none}
.tabs button{white-space:nowrap}
.sheet-h{display:none}

@media (hover:none){ .lrow:hover{background:none} }
@media (prefers-reduced-motion:reduce){ .lrow .p span{transition:none} }

/* ── 태블릿 ── */
@media (max-width:1180px){
  .ex{grid-template-columns:minmax(0,1fr) 340px}
  .lhead, .lrow{grid-template-columns:26px minmax(0,1fr) 78px 60px}
  .lhead .hv, .lrow .v{display:none}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ── 모바일 ── */
@media (max-width:860px){
  body{padding-bottom:calc(58px + env(safe-area-inset-bottom))}
  .hd-in{height:50px; gap:8px}
  .gnb, .mkt span.full{display:none}
  .logo{font-size:17px}
  .wrap{padding:8px 0 20px}
  .notice{border-radius:0; border-left:0; border-right:0}
  .pnl{border-radius:0; border-left:0; border-right:0}
  .ex{grid-template-columns:1fr; gap:8px}
  .ex-main{gap:8px}
  body[data-m="list"] .ex-main{display:none}
  body[data-m="detail"] .list{display:none}
  .list{position:static}
  .lbody{max-height:none}
  /* 모바일 목록: 크루명 · 현재가 · 전일대비 · 거래대금 (업비트 앱과 같은 4열) */
  .lhead, .lrow{grid-template-columns:22px minmax(0,1fr) 78px 62px 50px; padding:0 10px 0 4px; column-gap:4px}
  .lhead .hv, .lrow .v{display:block}
  .lhead button{white-space:nowrap; font-size:11.5px}
  .lhead button[data-dir=""]::after{content:''}
  .lrow .v{font-size:11.5px}
  .lname .av.sm{width:20px; height:20px}
  .lname b{font-size:13px}
  .mkt .short{display:inline; color:#C4C7CE; font-size:12px}
  .mkt b{font-size:12.5px}
  /* 차트 머리: 탭은 한 줄, 범례는 아랫줄 */
  .pnl-h{flex-wrap:wrap; height:auto; min-height:44px; padding:0 12px}
  .pnl-h .tabs{height:44px}
  .chart-legend{flex-basis:100%; margin:0 0 8px; font-size:11.5px}
  /* iOS 는 16px 미만 입력칸에 초점이 가면 화면을 확대한다 */
  .ord .inp input, .srch input, #oLimit{font-size:16px}
  .sheet-h{display:flex; align-items:center; gap:8px; padding:6px 12px 8px; position:relative; border-bottom:1px solid var(--line-2)}
  .sheet-h .grab{position:absolute; top:-2px; left:50%; width:36px; height:4px; margin-left:-18px; border-radius:2px; background:#D5D8DD}
  .sheet-h b{font-size:16px; padding-top:8px} .sheet-h small{color:var(--mute); font-weight:600; font-size:12px}
  .sheet-h .x{position:static; margin-left:auto; width:40px; height:40px}
  .dim.sheet .modal{max-height:88vh; overflow-y:auto; -webkit-overflow-scrolling:touch}
  .m-back{display:flex; align-items:center; gap:6px; height:44px; padding:0 12px; font-weight:600; background:var(--panel); border-bottom:1px solid var(--line)}
  .sum{padding:12px 16px 14px}
  .sum-body{grid-template-columns:1fr; gap:12px}
  .px{font-size:30px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:16px}
  .chart-box{height:300px}
  .split{grid-template-columns:1fr}
  .split .ordp{display:none}
  .m-cta{display:grid; grid-template-columns:1fr 1fr; gap:8px; position:fixed; left:0; right:0; bottom:calc(58px + env(safe-area-inset-bottom)); padding:8px 12px; background:#fff; border-top:1px solid var(--line); z-index:30}
  body[data-m="list"] .m-cta, body:not([data-v="ex"]) .m-cta{display:none}
  body[data-m="detail"][data-v="ex"]{padding-bottom:calc(122px + env(safe-area-inset-bottom))}
  .m-cta button{height:46px; border-radius:var(--r); color:#fff; font-weight:800; font-size:16px}
  .m-cta .b{background:var(--up)} .m-cta .s{background:var(--down)}
  .sheet .ordp{display:block!important; border:0}
  .pcts{margin-left:0}
  .ord{padding:14px 16px 16px}
  .dim.sheet{align-items:flex-end; padding:0}
  .dim.sheet .modal{max-width:none; border-radius:12px 12px 0 0; padding:8px 0 calc(8px + env(safe-area-inset-bottom))}
  .mtab{display:grid; grid-template-columns:repeat(6,1fr); position:fixed; left:0; right:0; bottom:0; height:calc(58px + env(safe-area-inset-bottom)); padding-bottom:env(safe-area-inset-bottom); background:#fff; border-top:1px solid var(--line); z-index:35}
  .mtab a{display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; font-weight:600; color:var(--mute)}
  .mtab a[aria-current="page"]{color:var(--text)}
  .kpi{grid-template-columns:1fr 1fr}
  .mtab a{font-size:10.5px}
  .xfer{grid-template-columns:1fr; padding:12px}
  .xfer input{font-size:16px}
  .eq-box{height:200px}
  .kpi > div{border-bottom:1px solid var(--line-2)}
  .kpi .big{grid-column:1 / -1}
  .tbl th, .tbl td{padding:0 10px}
  .tbl .hide-m{display:none}
  .mybar, .rescue{margin:0 12px}
  .me-chip .t{display:none}
  .me-chip{padding:5px 10px}
  .logo small{display:none}
  .hd-r{gap:6px; min-width:0}
  /* 표가 넓으면 패널 안에서만 가로 스크롤 — 페이지 전체가 옆으로 밀리지 않게(목록·호가 스크롤 상자는 건드리지 않음) */
  .page .pnl{overflow-x:auto}
  .tbl td.nick span{max-width:120px}
  body{overflow-x:clip}
  .toast{bottom:calc(72px + env(safe-area-inset-bottom))}
  body[data-m="detail"][data-v="ex"] .toast{bottom:calc(136px + env(safe-area-inset-bottom))}
}
@media (max-width:400px){
  .me-chip{min-width:0}
  .me-chip .n{max-width:72px}
}
@media (max-width:380px){
  .hd-r{gap:4px} .me-chip{min-width:0; padding:5px 8px} .btn-gold{padding:0 10px} .theme-btn{width:30px} .hd-out{padding:0 7px; font-size:11.5px; height:30px}
  /* 360px 폰(갤럭시 다수)에서도 장 상태는 보여야 한다 — 글자만 줄인다 */
  .mkt{gap:4px} .mkt .short{font-size:11.5px} .mkt b{font-size:11.5px}
}
.sum-top{flex-wrap:wrap; row-gap:6px} .sum-top .nm, .sum-top .tk{white-space:nowrap}

@media (max-width:860px){ .guide{padding:20px 16px 28px} .guide h1{font-size:20px} }

/* ═══ 다크 모드 (2026-09-26) — html[data-theme="dark"]. 기본은 다크, 헤더 버튼으로 바꾸면 기억한다(coin-theme.js 가 첫 칠 전에 적용) ═══ */
html[data-theme="dark"]{
  --bg:#0E1014; --panel:#171A20; --line:#262A33; --line-2:#20242C; --hover:#1E222A; --sel:#222733;
  --text:#E7E9EE; --sub:#9AA0AC; --mute:#868C98;   /* mute 는 패널 대비 4.5:1 이상(2026-09-26 #737986→) */
  --up:#FF5A62; --up-bg:#2A1719; --up-flash:#4A1E22; --down:#4C8DFF; --down-bg:#152035; --down-flash:#1D3358; --flat:#E7E9EE;
  color-scheme:dark;
}
html[data-theme="dark"] .ord .inp, html[data-theme="dark"] .pcts button, html[data-theme="dark"] .btn-line,
html[data-theme="dark"] .modal, html[data-theme="dark"] .fld input, html[data-theme="dark"] .xfer input,
html[data-theme="dark"] .fills .cx, html[data-theme="dark"] .m-cta, html[data-theme="dark"] .mtab, html[data-theme="dark"] .m-back{
  background:var(--panel); border-color:var(--line); color:var(--text)}
html[data-theme="dark"] .fills th, html[data-theme="dark"] .lhead, html[data-theme="dark"] .tbl th{background:#1B1E25}
html[data-theme="dark"] .tag, html[data-theme="dark"] .fills .bot{background:#252933; color:var(--sub)}
html[data-theme="dark"] .tag.live{background:#3A1A1D; color:var(--up)}
html[data-theme="dark"] .tag.whale{background:var(--gold); color:var(--gold-ink)}
html[data-theme="dark"] .tag.wait{background:#3A3016; color:#F2C94C} html[data-theme="dark"] .tag.soon{background:#15301F; color:#5FD38D}
html[data-theme="dark"] .tag.sleep{background:#252A36; color:#A9B1C3}
html[data-theme="dark"] .seg{background:#11141A} html[data-theme="dark"] .seg button[aria-selected="true"]{background:var(--panel); color:var(--text)}
html[data-theme="dark"] .otype{border-color:var(--line)} html[data-theme="dark"] .otype button[aria-checked="true"]{background:#E7E9EE; color:#111}
html[data-theme="dark"] .fills table.book tr.ask td{background:#141C2B} html[data-theme="dark"] .fills table.book tr.bid td{background:#24161A}
html[data-theme="dark"] .fills table.book tr.now td{background:var(--panel)}
html[data-theme="dark"] .fills table.book em{background:#3A3016; color:#F2C94C}
html[data-theme="dark"] .tbl tr.me td, html[data-theme="dark"] .mybar{background:#2B2614; border-color:#4A4020}
html[data-theme="dark"] .rescue{background:#2A1719; border-color:#4A1E22}
html[data-theme="dark"] .av{background:#2A2E37}
html[data-theme="dark"] .go:disabled{background:#3A3F4A; color:#8B919C}
html[data-theme="dark"] .lrow .p span.fu{border-color:var(--up)} html[data-theme="dark"] .lrow .p span.fd{border-color:var(--down)}
html[data-theme="dark"] .guide p, html[data-theme="dark"] .guide li{color:#C9CDD6}
html[data-theme="dark"] .dim{background:rgba(0,0,0,.65)}
html[data-theme="dark"] .fills .bar{background:#262A33}
html[data-theme="dark"] .notice b{color:#6EA8FF}
.theme-btn{width:34px; height:34px; display:flex; align-items:center; justify-content:center; color:#C4C7CE; border-radius:var(--r)}
.theme-btn:hover{background:var(--head-2); color:#fff}
.theme-btn .sun{display:none} html[data-theme="dark"] .theme-btn .sun{display:block} html[data-theme="dark"] .theme-btn .moon{display:none}

/* 운영자 메시지 팝업(2026-09-27) */
.msg-modal{max-width:420px; display:grid; gap:12px}
.msg-h{display:flex; align-items:center; gap:8px}
.msg-h h2{margin:0; font-size:18px}
.msg-badge{font-size:11.5px; font-weight:800; padding:2px 8px; border-radius:3px; background:var(--gold); color:var(--gold-ink)}
.msg-body{margin:0; font-size:15.5px; line-height:1.65; white-space:pre-wrap; word-break:break-word; max-height:50vh; overflow:auto}
.msg-at{margin:0; font-size:12.5px; color:var(--mute)}
.msg-ok{height:46px; font-size:15px}
/* 입장 공지 팝업·공지 상단 고정 카드(2026-09-30 정기점검) — popup.json */
.maint-modal{max-width:460px; display:grid; gap:14px; max-height:calc(100vh - 32px); max-height:calc(100dvh - 32px); overflow-y:auto; -webkit-overflow-scrolling:touch; overscroll-behavior:contain}
.maint-modal .msg-h{padding-right:34px}
.maint-modal .msg-badge{white-space:nowrap; flex:none}
.maint-modal .msg-ok{position:sticky; bottom:0; box-shadow:0 -10px 14px var(--panel)}   /* 길어도 확인 버튼은 항상 보인다 */
.maint-card{display:grid; gap:12px}
.maint-card .mt-lead{margin:0; font-size:15.5px; line-height:1.6; font-weight:700; word-break:keep-all}
.maint-card dl{margin:0; display:grid; grid-template-columns:auto 1fr; border:1px solid var(--line); border-radius:6px; overflow:hidden}
.maint-card dt, .maint-card dd{margin:0; padding:10px 12px; font-size:14px; line-height:1.5; border-top:1px solid var(--line); word-break:keep-all}
.maint-card dt:first-of-type, .maint-card dd:first-of-type{border-top:0}
.maint-card dt{font-weight:800; color:var(--sub); white-space:nowrap; background:var(--line-2)}
.maint-card dd.mt-time{font-weight:800; font-size:15.5px; color:var(--up)}
.maint-card .mt-foot{margin:0; font-size:12.5px; line-height:1.6; color:var(--mute); word-break:keep-all}
.nt-pin{margin:0 0 14px; padding:16px; border:2px solid var(--gold); border-radius:8px}
.nt-pin .msg-h{margin-bottom:12px}

/* ── 자산벌기(2026-09-27) ── */
.earn{display:grid; grid-template-columns:1fr 1fr; gap:10px; align-items:start}
.earn-card{display:grid}
.earn-sub{margin-left:auto; font-size:12.5px; color:var(--sub)}
.att{list-style:none; margin:0; padding:16px; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px}
.att li{border:1px solid var(--line); border-radius:var(--r); padding:10px 4px; text-align:center; display:grid; gap:4px}
.att li span{font-size:11.5px; color:var(--sub)} .att li b{font-size:13px}
.att li.got{background:rgba(255,195,0,.12); border-color:var(--gold)} .att li.got span::after{content:' ✓'; color:var(--gold)}
.att li.today{border:2px solid var(--gold)}
.earn-act{padding:0 16px} .earn-act button{width:100%; height:48px; font-size:15px}
.earn-note{margin:10px 16px 16px; font-size:12.5px; color:var(--mute); line-height:1.6}
.earn-foot{margin:4px 2px 0; font-size:12.5px; color:var(--sub)}
.wheel-box{position:relative; width:min(280px, 80%); margin:16px auto 12px}
.wheel{display:block; width:100%; height:auto; border-radius:50%; box-shadow:0 0 0 4px var(--line)}
.wheel text{font-size:13px; font-weight:800; fill:#fff; paint-order:stroke; stroke:rgba(0,0,0,.35); stroke-width:2px}
.wheel .hub{fill:var(--panel); stroke:var(--gold); stroke-width:4}
.pin{position:absolute; left:50%; top:-6px; transform:translateX(-50%); width:0; height:0; border-left:12px solid transparent; border-right:12px solid transparent; border-top:22px solid var(--gold); z-index:2; filter:drop-shadow(0 2px 2px rgba(0,0,0,.35))}
@media (max-width:860px){ .earn{grid-template-columns:1fr} .att{gap:4px; padding:12px; grid-template-columns:repeat(5,minmax(0,1fr))} .att li{padding:7px 2px} .att li b{font-size:11.5px} }

.att li.bonus b{color:var(--gold)}
.odds{list-style:none; margin:12px 16px 0; padding:0; display:flex; flex-wrap:wrap; gap:6px 12px; font-size:12.5px}
.odds li{display:flex; align-items:center; gap:5px; font-weight:700} .odds li span{color:var(--mute); font-weight:500}
.odds i{width:10px; height:10px; border-radius:2px; display:inline-block}

.att li.big{background:linear-gradient(160deg, rgba(255,90,98,.18), rgba(255,195,0,.18)); border-color:#FF8A3D} .att li.big b{color:#FF8A3D}
.att li.big.got, .att li.bonus.got{border-color:var(--gold)}

.volnote{display:block;font-size:10px;font-weight:600;color:var(--mute);letter-spacing:0;line-height:1.1;margin-top:1px}

/* 양도 제한 안내·경고창(2026-09-28) */
.xf-box{margin:0 14px 10px; padding:10px 12px; border:1px solid var(--line); border-radius:var(--r); font-size:13px; background:var(--sel)}
.xf-box p{margin:0 0 6px} .xf-box ul{margin:0; padding-left:18px; color:var(--sub); font-size:12.5px; line-height:1.7} .xf-box .mute{color:var(--mute)}
.xfer-modal{max-width:440px}
.xfer-modal h2{display:flex; align-items:center; gap:8px}
.xf-warn{display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:50%; background:var(--up); color:#fff; font-size:15px; font-weight:800; flex:none}
.xf-sum{margin:6px 0 12px; font-size:15px}
.xf-rules{margin:0 0 14px; padding:12px 14px 12px 30px; border:1px solid #F3CFCF; background:#FFF6F6; border-radius:6px; font-size:13.5px; line-height:1.75}
html[data-theme="dark"] .xf-rules{background:#2A1719; border-color:#4A1E22}
.xf-ok{display:flex; align-items:flex-start; gap:8px; font-size:13.5px; font-weight:600; margin-bottom:14px; cursor:pointer}
.xf-ok input{width:18px; height:18px; margin-top:1px; flex:none}
.xf-act{display:grid; grid-template-columns:1fr 1.6fr; gap:8px} .xf-act button{height:46px; width:100%}
.xf-act .btn-gold:disabled{opacity:.45; cursor:not-allowed}

/* 체결 재생 반짝임(2026-09-28) — 가격이 바뀔 때 테두리 + 배경이 잠깐 번쩍이고 사라진다 */
@keyframes flUp{0%{background:var(--up-flash)}100%{background:transparent}}
@keyframes flDn{0%{background:var(--down-flash)}100%{background:transparent}}
.lrow .p span.fu{animation:flUp .7s ease-out} .lrow .p span.fd{animation:flDn .7s ease-out}
.px.fu > span{animation:flUp .7s ease-out; border-radius:4px} .px.fd > span{animation:flDn .7s ease-out; border-radius:4px}
@keyframes rowIn{0%{background:var(--sel); opacity:.2}100%{background:transparent; opacity:1}}
.fills tr.nt td{animation:rowIn .6s ease-out}
@media (prefers-reduced-motion:reduce){ .lrow .p span.fu, .lrow .p span.fd, .px.fu > span, .px.fd > span, .fills tr.nt td{animation:none} }

/* 체결 팝업(2026-09-28) — 헤더 아래 오른쪽, 모바일은 가로 가득. 0.5초 간격으로 쌓였다가 2초 뒤 사라진다 */
.fillpop{position:fixed; top:96px; right:16px; z-index:85; display:flex; flex-direction:column; gap:6px; width:min(380px, calc(100% - 32px)); pointer-events:none}
.fillpop .fp{pointer-events:auto; cursor:pointer; display:flex; align-items:center; gap:8px; flex-wrap:wrap; padding:10px 14px; border-radius:6px; color:#fff; font-size:13.5px; box-shadow:0 6px 18px rgba(0,0,0,.25); animation:fpIn .25s ease-out; transition:opacity .3s, transform .3s}
.fillpop .fp.buy{background:var(--up)} .fillpop .fp.sell{background:var(--down)}
.fillpop .fp b{font-weight:800} .fillpop .fp em{font-style:normal; margin-left:auto; font-weight:700; opacity:.9}
.fillpop .fp.out{opacity:0; transform:translateY(-6px)}
@keyframes fpIn{from{opacity:0; transform:translateY(-10px)} to{opacity:1; transform:none}}
@media (max-width:860px){ .fillpop{top:88px; left:8px; right:8px; width:auto} .fillpop .fp{font-size:13px; padding:9px 12px} }
@media (prefers-reduced-motion:reduce){ .fillpop .fp{animation:none; transition:none} }

/* 호가 금액(2026-09-28 사용자 요청) — 그 호가에 쌓인 금액(가격 × 수량)을 수량 옆에 작게 */
.fills table.book .ba{position:relative; margin-left:6px; font-size:11.5px; color:var(--sub); font-weight:500}
.fills table.book .ba::before{content:'· '; color:var(--mute)}
@media (max-width:860px){ .fills table.book .ba{font-size:11px; margin-left:4px} }

/* 보유 코인 — 매도 지정가에 묶인 수량 표시(2026-09-28) */
.tbl .lockq{color:#8A6400; font-weight:600; font-size:11.5px} html[data-theme="dark"] .tbl .lockq{color:#F2C94C}

/* ── 캐시 사용 · 홍보 띠 예약(2026-09-29) ── */
.gnb a.gnb-cash{color:#F5B8E8}
.gnb a.gnb-cash::before{content:''; width:6px; height:6px; border-radius:50%; background:#F472B6; margin-right:6px; box-shadow:0 0 0 3px rgba(244,114,182,.25)}
.gnb a.gnb-cash[aria-current="page"]::after{background:#F472B6}
.cash-sub{display:none}
.promo{display:grid; gap:10px}
.pr-hero{display:flex; align-items:center; gap:20px; padding:18px 20px; background:linear-gradient(100deg,#2A1244,#4A1650 55%,#5E1433); color:#fff; border:0}
.pr-hero-tx{flex:1; min-width:0}
.pr-hero h2{margin:0 0 6px; font-size:21px; font-weight:800} .pr-hero h2 small{font-size:14px; color:#F9A8D4; font-weight:700; margin-left:6px}
.pr-hero p{margin:0; font-size:14px; line-height:1.6; color:#EBDDF7} .pr-hero p b{color:#FDE047}
.pr-hero .pr-rule{margin-top:6px; font-size:12.5px; color:#CDB8E3}
.pr-price{list-style:none; margin:0; padding:0; display:flex; gap:8px; flex:none}
.pr-price li{display:grid; gap:2px; text-align:center; padding:10px 14px; border-radius:6px; background:rgba(255,255,255,.08); min-width:92px}
.pr-price span{font-size:12px; color:#DCC9F0} .pr-price b{font-size:19px; font-weight:800}
.pr-price .b-peak{background:linear-gradient(135deg,#BE185D,#E11D48)} .pr-price .b-peak b{color:#FDE047}
.pr-warn{padding:12px 16px; border-radius:var(--r); background:#FFF4D6; color:#6B4E00; font-weight:600; border:1px solid #F2D27A}
.pr-cols{display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:10px; align-items:start}
.pr-hint{margin-left:auto; font-size:12.5px; color:var(--sub)} .pr-hint.over{color:var(--up); font-weight:700}
.pr-days{display:flex; gap:6px; padding:12px 14px 4px; overflow-x:auto; scrollbar-width:none}
.pr-days button{flex:none; position:relative; display:grid; justify-items:center; gap:1px; min-width:58px; padding:7px 8px; border:1px solid var(--line); border-radius:6px; background:var(--panel)}
.pr-days button b{font-size:13.5px} .pr-days button span{font-size:11.5px; color:var(--sub)}
.pr-days button[aria-selected="true"]{border-color:#DB2777; box-shadow:inset 0 0 0 1px #DB2777; background:rgba(219,39,119,.07)}
.pr-days button i{position:absolute; top:-7px; right:-5px; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:#DB2777; color:#fff; font:700 11px/18px Pretendard, sans-serif; font-style:normal}
.pr-grid{display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:6px; padding:12px 14px}
.pr-grid button{display:grid; gap:2px; justify-items:center; padding:8px 2px; min-height:54px; border:1px solid var(--line); border-radius:6px; background:var(--panel); min-width:0}
.pr-grid button b{font-size:13.5px} .pr-grid button span{font-size:12px; color:var(--sub); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:0 3px}
.pr-grid .b-peak:not(:disabled){border-color:rgba(219,39,119,.45)} .pr-grid .b-peak:not(:disabled) span{color:#DB2777; font-weight:700}
.pr-grid button:not(:disabled):hover{background:var(--hover); border-color:#DB2777}
.pr-grid button.sel{background:#DB2777; border-color:#DB2777; color:#fff} .pr-grid button.sel span{color:#fff!important}
.pr-grid button.mine{background:rgba(253,224,71,.18); border-color:#E5B800; cursor:default} .pr-grid button.mine span{color:#9A7B00; font-weight:700}
.pr-grid button.taken{background:var(--sel); cursor:not-allowed; opacity:.8} .pr-grid button.taken b{text-decoration:line-through; color:var(--mute)}
.pr-grid button.past{opacity:.4; cursor:not-allowed}
.pr-grid button.steal{background:repeating-linear-gradient(135deg,var(--sel) 0 6px,transparent 6px 12px); border-style:dashed; border-color:#E0552F}
.pr-grid button.steal span{color:var(--sub)} .pr-grid button em{font-style:normal; font-size:11px; font-weight:800; color:#E0552F; white-space:nowrap}
.pr-grid button.steal.sel{background:#E0552F; border-color:#E0552F; border-style:solid; color:#fff} .pr-grid button.steal.sel span, .pr-grid button.steal.sel em{color:#fff!important}
.pr-grid button.now{box-shadow:inset 0 0 0 2px #DB2777} .pr-grid button.now b{color:#DB2777} .pr-grid button.now.sel b{color:#fff}
.pr-legend{display:flex; flex-wrap:wrap; gap:6px 14px; padding:0 14px 14px; font-size:12px; color:var(--sub)}
.pr-legend i{display:inline-block; width:12px; height:12px; border-radius:3px; vertical-align:-2px; margin-right:5px; border:1px solid var(--line)}
.pr-legend .lg-sel{background:#DB2777; border-color:#DB2777} .pr-legend .lg-mine{background:rgba(253,224,71,.4); border-color:#E5B800} .pr-legend .lg-steal{background:repeating-linear-gradient(135deg,var(--sel) 0 3px,transparent 3px 6px); border:1px dashed #E0552F}
.pr-body{padding:14px; display:grid; gap:8px}
.pr-body textarea{width:100%; min-height:88px; resize:vertical; padding:10px 12px; border:1px solid var(--line); border-radius:var(--r); background:var(--panel); color:var(--text); font:15px/1.5 Pretendard, system-ui, sans-serif}
.pr-body textarea:focus, .pr-body select:focus{outline:2px solid #DB2777; outline-offset:0; border-color:transparent}
.pr-body select{height:40px; padding:0 10px; border:1px solid var(--line); border-radius:var(--r); background:var(--panel); color:var(--text); font:inherit}
.pr-lb{font-size:13px; font-weight:700; margin-top:4px} .pr-lb small{font-weight:500; color:var(--sub)}
.pr-prev{border-radius:6px; overflow:hidden}
.pr-prev .gps{padding:6px 12px}
.pr-sum{display:grid; grid-template-columns:repeat(3,auto); justify-content:start; gap:4px 20px; padding:10px 12px; border-radius:var(--r); background:var(--sel)}
.pr-sum div{display:grid; gap:1px} .pr-sum span{font-size:12px; color:var(--sub)} .pr-sum b{font-size:16px}
.pr-sum .pr-list{grid-column:1/-1; margin:0; font-size:12.5px; color:var(--sub)}
.pr-clear{color:#DB2777; font-weight:700; margin-left:6px; text-decoration:underline}
.pr-ok{display:flex; gap:8px; align-items:flex-start; font-size:12.5px; color:var(--sub); line-height:1.5}
.pr-ok input{margin-top:3px; accent-color:#DB2777; width:16px; height:16px; flex:none}
.pr-book{height:50px; font-size:16px; background:linear-gradient(90deg,#A21CAF,#E11D48); color:#fff}
.pr-book:hover{background:linear-gradient(90deg,#B91FC4,#F0254F)} .pr-book:disabled{opacity:.5; cursor:not-allowed}
.pr-why{margin:0; font-size:13px; min-height:18px; color:#0E8A4A} .pr-why.err{color:var(--up)}
.pr-tbl{overflow-x:auto}
.pr-mine .tbl{width:100%; border-collapse:collapse; font-size:13px}
.pr-mine .tbl th, .pr-mine .tbl td{padding:9px 12px; border-bottom:1px solid var(--line-2); text-align:left; white-space:nowrap}
.pr-mine .tbl th{font-size:12px; color:var(--sub); font-weight:600; background:#F7F8FA}
.pr-mine .tbl{table-layout:auto}
.pr-mine .tbl td.pr-m{white-space:normal; min-width:180px; max-width:460px; word-break:break-all; color:var(--sub)}
.pr-mine tr.on td{background:rgba(219,39,119,.07)} .pr-mine tr.x td{color:var(--mute)} .pr-on{color:#DB2777}
.pr-mine .lempty .btn-gold{margin-left:8px}
html[data-theme="dark"] .pr-mine .tbl th{background:#1B1E25}
html[data-theme="dark"] .pr-warn{background:#3A2F10; color:#F6D77A; border-color:#5C4A12}
html[data-theme="dark"] .pr-grid button.mine span{color:#FDE047}
html[data-theme="dark"] .pr-why{color:#3DDC84} html[data-theme="dark"] .pr-why.err{color:var(--up)}
@media (max-width:1180px){ .pr-cols{grid-template-columns:1fr} }
@media (max-width:860px){
  body[data-v="earn"] .cash-sub, body[data-v="promo"] .cash-sub{display:flex}
  .cash-sub{gap:6px; padding:0 0 10px}
  .cash-sub a{flex:1; display:flex; align-items:center; justify-content:center; gap:5px; height:42px; border-radius:999px; font-weight:800; font-size:14.5px; background:var(--panel); border:1px solid var(--line); color:var(--sub)}
  .cash-sub a small{font-size:11px; font-weight:700; color:#DB2777}
  .cash-sub a[aria-current="page"]{background:var(--text); color:var(--panel); border-color:var(--text)}
  .cash-sub a[data-v="promo"][aria-current="page"]{background:linear-gradient(90deg,#A21CAF,#E11D48); color:#fff; border-color:transparent} .cash-sub a[aria-current="page"] small{color:#FDE047}
  .pr-hero{flex-direction:column; align-items:stretch; gap:12px; padding:16px; border-radius:0}
  .pr-hero h2{font-size:19px}
  .pr-price li{flex:1; min-width:0; padding:8px 4px} .pr-price b{font-size:17px}
  .pr-grid{grid-template-columns:repeat(4,minmax(0,1fr)); gap:5px; padding:10px 12px}
  .pr-sum{grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px 10px}
  .pr-pick, .pr-form, .pr-mine{border-radius:0}
  .pr-sum{grid-template-columns:auto auto} .pr-sum b{font-size:15px}
  .pr-mine thead{display:none}
  .pr-mine .tbl, .pr-mine tbody{display:block}
  .pr-mine tr{display:grid; grid-template-columns:1fr auto; gap:3px 10px; padding:10px 12px; border-bottom:1px solid var(--line-2)}
  .pr-mine .tbl td{display:block; border:0; padding:0; white-space:normal; height:auto; text-align:left}
  .pr-mine .tbl td.pr-m{grid-column:1/-1; order:3; max-width:none; min-width:0}
  .pr-mine .tbl td:nth-child(3){justify-self:end; font-weight:700}
  .pr-mine .tbl td:nth-child(4){order:4} .pr-mine .tbl td:nth-child(5){order:5; justify-self:end}
  .pr-mine .tbl td:empty{display:none}
}

/* ── 내 정보(2026-09-30, 옛 내 자산) — 프로필 · 요약 카드 · 탭 · 계정·보안 ── */
.btn-adm{height:34px; padding:0 12px; border-radius:var(--r); background:#7C3AED; color:#fff; font-weight:800; font-size:13px; white-space:nowrap}
.btn-adm:hover{background:#6D28D9}
.mi-hero{display:flex; align-items:center; gap:16px; padding:18px 20px}
.mi-av{flex:none; width:52px; height:52px; border-radius:50%; background:var(--gold); color:var(--gold-ink); display:grid; place-items:center; font-size:22px; font-weight:900}
.mi-id{min-width:0; flex:1}
.mi-id h2{margin:0; font-size:21px; font-weight:800; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mi-id p{margin:4px 0 0; font-size:13px; color:var(--sub)}
.mi-tag{display:inline-block; vertical-align:3px; margin-left:4px; padding:2px 7px; border-radius:4px; background:#EDE9FE; color:#6D28D9; font-size:11.5px; font-weight:800}
.mi-act{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.mi-kpi{display:grid; grid-template-columns:1.35fr 1fr 1fr 1fr; gap:10px}
.mk{background:var(--panel); border:1px solid var(--line); border-radius:var(--r); padding:16px 18px; display:grid; gap:6px; align-content:start; min-width:0}
.mk-l{font-size:12.5px; color:var(--sub); font-weight:600}
.mk-v{font-size:21px; font-weight:800; letter-spacing:-.3px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.mk.big{border-color:var(--gold); box-shadow:inset 0 3px 0 var(--gold)}
.mk.big .mk-v{font-size:27px}
.mk-s{font-size:12.5px; color:var(--mute)} .mk-s.up b, .mk-s.up{color:var(--up)} .mk-s.down, .mk-s.down b{color:var(--down)}
.mi-tabs .tabs{height:46px; overflow-x:auto; scrollbar-width:none} .mi-tabs .tabs::-webkit-scrollbar{display:none}
.mi-tabs .tabs button{white-space:nowrap; padding:0 14px; font-size:14.5px}
.mi-tabs .tabs small{font-size:11.5px; color:var(--mute); font-weight:700; margin-left:2px}
.mi-p{overflow-x:auto}
.mi-sec{padding:18px 20px; border-bottom:1px solid var(--line-2)} .mi-sec:last-child{border-bottom:0}
.mi-sec h3{margin:0 0 4px; font-size:15px; font-weight:800}
.mi-sec p{margin:0 0 12px; font-size:13px; color:var(--sub); line-height:1.6}
.mi-pin{display:grid; grid-template-columns:repeat(3, minmax(0, 150px)) auto; gap:10px; align-items:end}
.mi-pin .fld{margin:0}
.mi-pin .fld label{display:block; font-size:12.5px; color:var(--sub); font-weight:600; margin-bottom:5px}
.mi-pin input{width:100%; height:42px; border:1px solid var(--line); border-radius:var(--r); padding:0 12px; background:var(--panel); color:var(--text); font-size:18px; letter-spacing:6px}
.mi-pin .btn-gold{height:42px; justify-self:start; padding:0 22px}
.mi-pin .btn-wd{height:42px; justify-self:start; padding:0 22px}
html[data-theme="dark"] .btn-wd{color:var(--up); border-color:var(--up); background:transparent}
html[data-theme="dark"] .btn-wd:hover{background:var(--up-bg)}
.mi-msg{margin:10px 0 0; font-size:13px; min-height:1em} .mi-msg.err{color:var(--up)} .mi-msg.ok{color:#15803D; font-weight:700}
.linkbtn{background:none; border:0; padding:0; color:var(--sub); text-decoration:underline; font-size:13px; cursor:pointer}
@media (max-width:860px){
  .mi-hero{padding:16px; gap:12px; flex-wrap:wrap} .mi-av{width:44px; height:44px; font-size:19px} .mi-id h2{font-size:18px}
  .mi-act{width:100%; justify-content:flex-start}
  .mi-kpi{grid-template-columns:1fr 1fr; gap:8px; padding:0 12px} .mk.big, .mi-kpi .mk:last-child{grid-column:1 / -1} .mk{padding:13px 14px} .mk-v{font-size:16px; white-space:normal; overflow:visible; word-break:break-all} .mk.big .mk-v{font-size:24px}
  .mi-pin{grid-template-columns:1fr 1fr} .mi-pin .btn-gold{grid-column:1 / -1; justify-self:stretch} .mi-pin input{font-size:18px}
  .mi-pin .btn-wd{grid-column:1 / -1; justify-self:stretch}
  .mi-sec{padding:16px}
  .hd-r .btn-adm{display:none}
}
html[data-theme="dark"] .mi-tag{background:#2E1F52; color:#C4B5FD}
html[data-theme="dark"] .mi-pin input{background:var(--panel); border-color:var(--line)}
html[data-theme="dark"] .mi-msg.ok{color:#4ADE80}

/* 엑셀 예측 결과 탭(2026-10-03) — #/result, 방송 집계 표 스타일 재사용 */
.res-sum{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line-2); border-bottom:1px solid var(--line-2)}
.res-sum div{background:var(--panel); padding:14px 16px; display:grid; gap:2px}
.res-sum small{font-size:12px; color:var(--mute)} .res-sum b{font-size:18px; font-weight:800}
.res-g{border-bottom:1px solid var(--line-2); padding-bottom:4px}
.res-h{display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:16px 16px 4px}
.res-h h3{margin:0; font-size:16px; font-weight:800}
.res-ans{display:flex; align-items:center; gap:10px; flex-wrap:wrap; font-size:14px} .res-ans .cn{display:inline-flex; align-items:center; gap:6px; font-weight:700}
.res-meta{margin:0; padding:0 16px 8px; font-size:12.5px; color:var(--sub)}
.res-win{margin:0 16px 8px; padding:10px 12px; border-radius:6px; background:var(--line-2); font-size:14px; line-height:1.6; word-break:keep-all}
.res-tbl{min-width:420px} .res-tbl td, .res-tbl th{white-space:nowrap} .res-tbl td{height:40px}
.res-page .lempty{padding:16px}
@media (max-width:860px){ .res-sum{grid-template-columns:repeat(2,1fr)} .res-sum b{font-size:16px} .res-tbl{min-width:0; font-size:12.5px} .res-tbl td, .res-tbl th{padding:0 6px} .res-tbl .rk{width:34px; padding-left:12px} .res-tbl td.nick span{max-width:92px} .res-tbl .res-x{display:none} }
/* 입장 팝업 버튼 줄 — 링크(결과 보기)가 있으면 두 개, 없으면 확인 하나. 길어도 항상 보인다 */
.maint-modal .mt-act{position:sticky; bottom:0; display:flex; gap:8px; background:var(--panel); box-shadow:0 -10px 14px var(--panel)}
.maint-modal .mt-act .msg-ok{position:static; box-shadow:none; flex:1; width:auto; display:flex; align-items:center; justify-content:center; height:46px}
.maint-modal .mt-act .btn-line{flex:0 0 96px}
.maint-modal .mt-act [hidden]{display:none}
/* 당첨 취소 표시(2026-10-03) — 명단에 그대로 두고 줄을 긋는다 */
.res-void{margin:0 0 10px; padding:12px 14px; border-radius:var(--r); border:1px solid var(--up); background:var(--panel); font-size:14px; line-height:1.6; word-break:keep-all}
.res-void b:first-child{display:inline-block; margin-right:6px; padding:1px 8px; border-radius:999px; background:var(--up); color:#fff; font-size:12px}
.res-void time{margin-left:6px; font-size:12px; color:var(--mute)}
.res-tbl tr.res-cut td{color:var(--mute)} .res-tbl tr.res-cut s{text-decoration-thickness:2px; text-decoration-color:var(--up)}
.res-tbl .res-tag{display:block; margin-top:1px; font-size:11.5px; font-weight:700; color:var(--up); white-space:normal}
.res-tbl tr.res-cut td.nick{white-space:normal}

/* ── 플단(팬클럽 알트 코인) 탭 · 표시 등급(2026-10-04) ── */
/* 하드포크 포크 코인 거래예정(2026-10-06) */
.fork-box{display:flex; gap:10px; flex-wrap:wrap; margin-top:10px}
.fork-box > div{flex:1 1 140px; border:1px solid var(--line); border-radius:var(--r); padding:10px 12px; display:flex; flex-direction:column; gap:2px}
.fork-box span{font-size:12px; color:var(--mute)}
.fork-box b{font-size:18px; font-variant-numeric:tabular-nums; color:var(--text)}
.fan-head{display:flex; flex-direction:column; gap:3px; margin:0 12px 8px; padding:10px 12px; border-radius:var(--r); background:linear-gradient(90deg, #FFF4E5, #FFE9EC); font-size:12.5px; line-height:1.5; color:var(--sub)}
.fan-head > b{font-size:14px; color:var(--text)}
.fan-head em{font-style:normal; font-weight:700; color:var(--up)}
.gr{display:inline-block; margin-left:5px; padding:0 5px; border-radius:4px; font-size:10.5px; font-weight:700; line-height:16px; vertical-align:1px; letter-spacing:0}
.gr-king{background:#FFF1C2; color:#8A5A00}
.gr-major{background:#E8EEF9; color:#33507F}
.gr-alt{background:#FDE7EA; color:#B0263A}
.tag.fire{background:var(--up-bg); color:var(--up); font-weight:700}
.gnb a.gnb-fan::before{content:''; width:6px; height:6px; margin-right:6px; border-radius:50%; background:var(--up)}
html[data-theme="dark"] .fan-head{background:linear-gradient(90deg, #2A2116, #2A1719)}
html[data-theme="dark"] .gr-king{background:#3A2F12; color:#F2C94C}
html[data-theme="dark"] .gr-major{background:#1C2840; color:#9DB8E8}
html[data-theme="dark"] .gr-alt{background:#3A1A20; color:#FF8A94}
.lname small .gr{margin:0 4px 0 0; font-size:10px; line-height:14px; padding:0 4px}
/* 상단 메뉴 7개(플단 추가, 2026-10-04) — 861~1320px 에서 글자가 세로로 쪼개지던 것. 간격·글자를 줄이고 시장 상태는 짧은 문구로 */
@media (min-width:861px) and (max-width:1280px){ .gnb a{padding:0 9px; font-size:14px} .gnb a[aria-current="page"]::after{left:9px; right:9px} .mkt span.full{display:none} .mkt .short{display:inline; color:#C4C7CE; font-size:12px} .hd-r{gap:10px} }
@media (min-width:861px) and (max-width:960px){ .gnb a{padding:0 6px; font-size:13px} .gnb a[aria-current="page"]::after{left:6px; right:6px} .gnb a.gnb-fan::before{display:none} .me-chip .t{display:none} }
@media (min-width:861px) and (max-width:980px){ .mkt{display:none} .logo small{display:none} }

/* ── 즉석복권 슬롯(2026-10-04 · 슬롯 2026-10-05) ── */
.lotto-card{grid-column:1 / -1}
.lot-wrap{display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, 1fr); gap:16px; padding:4px 16px 0}
.slot{position:relative; display:grid; grid-template-columns:repeat(3, 1fr); gap:8px; padding:14px; border-radius:12px; background:linear-gradient(180deg, #2B2F36, #16181C); box-shadow:inset 0 2px 10px rgba(0,0,0,.45)}
.slot .reel{height:72px; overflow:hidden; border-radius:8px; background:linear-gradient(180deg, #E9EBEE 0%, #fff 30%, #fff 70%, #E9EBEE 100%); box-shadow:inset 0 3px 6px rgba(0,0,0,.18)}
.slot .strip{will-change:transform}
.slot .si{height:72px; display:flex; align-items:center; justify-content:center}
.slot .si b{font-size:19px; font-weight:800; color:#1B1D21; letter-spacing:-.3px}
.slot .payline{position:absolute; left:8px; right:8px; top:50%; height:2px; margin-top:-1px; background:rgba(216,49,58,.35); pointer-events:none}
.slot.won{box-shadow:0 0 0 3px var(--gold), inset 0 2px 10px rgba(0,0,0,.45)}
.slot .si.win{background:var(--up)} .slot .si.win b{color:#fff}
.lot-res{margin:10px 0 0; text-align:center; font-size:15px; font-weight:700} .lot-res.win{color:var(--up)} .lot-res.lose{color:var(--mute)}
.lot-main .earn-act{padding:12px 0 0}
.lot-tbl{list-style:none; margin:0; padding:0; border:1px solid var(--line); border-radius:var(--r)}
.lot-tbl li{display:grid; grid-template-columns:44px 1fr auto; gap:8px; padding:8px 12px; border-top:1px solid var(--line); font-size:13.5px} .lot-tbl li:first-child{border-top:0}
.lot-tbl li b{color:var(--sub)} .lot-tbl li span{font-weight:700} .lot-tbl li em{font-style:normal; color:var(--mute)}
.lot-tbl li:first-child span{color:var(--up)}
.lot-big{margin-top:12px} .lot-big h3{margin:0 0 6px; font-size:13px; color:var(--sub)}
.lot-big ul{list-style:none; margin:0; padding:0; font-size:12.5px} .lot-big li{display:flex; gap:6px; align-items:baseline; padding:3px 0}
.lot-big li .nick{font-weight:600; max-width:120px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap} .lot-big li b{color:var(--up)} .lot-big li em{margin-left:auto; font-style:normal; color:var(--mute)}
@media (max-width:860px){ .lot-wrap{grid-template-columns:1fr} .slot .reel, .slot .si{height:64px} .slot .si b{font-size:17px} }
@media (prefers-reduced-motion:reduce){ .slot .strip{transition:none !important} }
/* 즉석복권 슬롯 눈에 띄게(2026-10-05) — 출첵 화면 맨 위 · 금색 테두리 · NEW · 버튼 반짝 · 메뉴 배지 */
.lotto-card{border:2px solid var(--gold); box-shadow:0 6px 24px rgba(255,193,7,.18)}
.lot-h{background:linear-gradient(90deg, #FFC107, #FF8A00); border-bottom:0}
.lot-h h2{color:#1B1D21; display:flex; align-items:center; gap:8px; font-size:18px} .lot-h h2 small{font-size:13px; font-weight:700; color:#7A1E00}
.lot-h .earn-sub{color:#3A2A00; font-weight:600}
.lot-new{display:inline-block; padding:1px 7px; border-radius:4px; background:#D8313A; color:#fff; font-size:11px; font-weight:800; letter-spacing:.5px}
.slot .reel, .slot .si{height:86px} .slot .si b{font-size:23px}
#btnLotBuy{animation:lotPulse 1.8s ease-in-out infinite}
@keyframes lotPulse{0%,100%{box-shadow:0 0 0 0 rgba(255,193,7,.55)} 50%{box-shadow:0 0 0 8px rgba(255,193,7,0)}}
.gnb a .nb{margin-left:4px; padding:0 5px; border-radius:4px; background:#D8313A; color:#fff; font-size:10.5px; font-weight:800; line-height:16px}
.mtab a.mt-hot{position:relative} .mtab a.mt-hot::after{content:''; position:absolute; top:7px; left:calc(50% + 8px); width:7px; height:7px; border-radius:50%; background:#D8313A}
html[data-theme="dark"] .lotto-card{box-shadow:0 6px 24px rgba(255,193,7,.12)}
@media (max-width:860px){ .slot .reel, .slot .si{height:72px} .slot .si b{font-size:19px} .lot-h h2{font-size:16px} }
@media (prefers-reduced-motion:reduce){ #btnLotBuy{animation:none} }
/* 예측 결과 회차 버튼(2026-10-08) */
.res-pick{display:flex; gap:6px; flex-wrap:wrap; padding:12px 14px 4px}
.res-pick button{height:34px; padding:0 12px; border:1px solid var(--line-2); border-radius:999px; background:transparent; color:var(--sub); font:inherit; font-size:13px; font-weight:700; cursor:pointer}
.res-pick button[aria-selected="true"]{background:var(--gold, #ffc21a); border-color:var(--gold, #ffc21a); color:#1a1204}

/* 미니홈(/guild/) 연동 2026-10-09 — 랭킹 닉네임 색(nickcolor 아이템)·길드 태그 */
.nc-n01{color:#e5484d} .nc-n02{color:#2f6fed} .nc-n03{color:#2f9e6a} .nc-n04{color:#8a4dff} .nc-n05{color:#d4a017} .nc-n06{background:linear-gradient(90deg,#e5484d,#f5a524,#2f9e6a,#2f6fed,#8a4dff);-webkit-background-clip:text;background-clip:text;color:transparent}
.gtag{font-size:10px;font-weight:800;color:#3f6fd1;background:rgba(91,141,239,.14);border-radius:4px;padding:1px 4px;vertical-align:middle}
.gnb .gnb-home{color:#5b8def;font-weight:800}
/* GO기릿 월드 링크(2026-10-10) — PC 메뉴 끝 · 모바일은 머리 오른쪽 작은 칩 */
.gnb a.gnb-world{color:#FFD56A}
.gnb a.gnb-world::before{content:'🏰';margin-right:5px;font-size:14px}
.hd-world{display:none;align-items:center;gap:4px;height:32px;padding:0 10px;border-radius:999px;background:linear-gradient(135deg,#5a3fd1,#9b7bff);color:#fff;font-size:12.5px;font-weight:800;white-space:nowrap;box-shadow:0 2px 8px rgba(90,63,209,.4)}
@media (max-width:860px){.hd-world{display:inline-flex}}

/* GO기릿 WORLD 안내 띠(2026-10-10) — 머리 메뉴 대신. 한 줄, 넘치면 부제부터 줄임 */
.world-band{display:block;background:linear-gradient(90deg,#3b2a8f,#6b4fe0 55%,#9b7bff);color:#fff;text-decoration:none}
.world-band .wb-in{display:flex;align-items:center;gap:10px;max-width:1400px;margin:0 auto;height:36px;padding:0 16px;font-size:13px;white-space:nowrap;min-width:0}
.world-band .wb-tag{flex:none;font-size:10.5px;font-weight:800;background:#FFD56A;color:#3b2a00;border-radius:4px;padding:1px 6px}
.world-band b{flex:none;font-weight:800}
.world-band .wb-sub{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;opacity:.9}
.world-band .wb-go{flex:none;margin-left:auto;font-weight:800;background:rgba(255,255,255,.18);border-radius:999px;padding:3px 12px}
.world-band:hover .wb-go{background:rgba(255,255,255,.3)}
@media (max-width:520px){.world-band .wb-in{gap:8px;padding:0 12px;font-size:12.5px}.world-band .wb-sub{display:none}}
/* 2026-10-10 320px 폰 넘침 — 팝업이 화면보다 넓던 것, 로그인 상태 머리줄이 꽉 차던 것 */
.maint-modal{max-width:min(460px, calc(100vw - 24px)); box-sizing:border-box}
.maint-modal table, .maint-modal td, .maint-modal th{word-break:keep-all; overflow-wrap:anywhere}
@media (max-width:340px){ .mkt .short{display:none} .me-chip{padding:5px 6px} .hd-out{padding:0 6px; font-size:11px} }
/* 2026-10-10 320px: 아래 탭바 6칸이 글자 최소 폭 때문에 349px 로 늘어 「공지」가 잘리던 것, 검색칸 최소 폭 */
@media (max-width:860px){ .mtab{grid-template-columns:repeat(6,minmax(0,1fr))} .mtab a{min-width:0; overflow:hidden; white-space:nowrap} }
@media (max-width:340px){ .mtab a{font-size:9.5px; letter-spacing:-.3px} }
.srch input{min-width:0}
.maint-modal{grid-template-columns:minmax(0,1fr)} .maint-modal .msg-h{flex-wrap:wrap; min-width:0} .maint-modal .msg-h h2{min-width:0}
.maint-modal .mt-act{flex-wrap:wrap; min-width:0} .maint-modal .mt-act > *{flex:1 1 auto; min-width:0}
.maint-modal .mt-act > *{white-space:normal; word-break:keep-all; height:auto; min-height:44px; line-height:1.25; padding-top:8px; padding-bottom:8px}

/* 운영자 메시지 답장(2026-10-11) */
.msg-re{margin:4px 0 12px}
.msg-re summary{cursor:pointer;font-size:14px;color:var(--muted,#888);padding:6px 0}
.msg-re textarea{width:100%;box-sizing:border-box;font-size:16px;line-height:1.5;padding:10px;border-radius:10px;border:1px solid rgba(127,127,127,.35);background:transparent;color:inherit;resize:vertical;margin:6px 0}
.msg-re-send{min-height:44px;padding:0 16px;border-radius:10px;border:1px solid rgba(127,127,127,.35);background:transparent;color:inherit;font-weight:700;cursor:pointer}
.msg-re-err{color:#e5484d;font-size:13px;margin:6px 0 0}
