/* ANGELBET(엔젤벳) 화면 하위 화면 - 2026-11-19 형님 "그거(frontend-design) 써서 나머지 페이지들 디자인해".
   틀: 화면마다 "하늘 창"(머리 띠) 하나 - 왼쪽에 제목, 오른쪽에 그 화면 캐릭터가 창틀 위로 올라와 선다. 화면에서 힘을 주는 곳은 여기 하나다.
   그 아래는 조용한 흰 작업대: 자료(경기 · 배당 · 표 · 입력)는 그림 없이 작고 또렷하게, 겹겹의 상자 대신 큰 면 하나에 줄과 옅은 띠로 나눈다.
   색은 angel.css 의 값 그대로(흰색 · 하늘색 · 엔젤 블루 · 남색 · 헤일로 금). 골드는 "내 돈이 움직이는 곳"(당첨 · 보너스 · 입금)에만 쓴다. */

/* ── 화면 머리: 하늘 창 ── */
.phead { padding-top: 46px; }
.phead-band { position: relative; display: flex; align-items: center; height: 136px; padding: 0 36px; border-radius: var(--r-xl); border: 4px solid #fff; background: #bcdcff url("art/bg-sky.webp") center 63% / 150% auto no-repeat; box-shadow: var(--shadow-2); }
.phead-text { position: relative; z-index: 1; display: grid; gap: 12px; justify-items: start; }
.phead h1 { font-family: var(--display); font-size: 38px; font-weight: 700; line-height: 1.1; letter-spacing: -0.01em; }
/* 배너 제목과 같은 글자: 흰 글자 + 남색 테두리(뒤에 같은 글자를 굵은 선으로 한 겹 더 깐다) */
.outlined { position: relative; z-index: 0; display: inline-block; color: #fff; white-space: nowrap; }
.outlined::before { content: attr(data-t); position: absolute; left: 0; top: 0; z-index: -1; color: var(--navy); -webkit-text-stroke: 5px var(--navy); text-shadow: 0 3px 0 rgba(8, 29, 77, 0.3); }
/* 제목 아래 사실 한 줄: 알약 없이 굵은 글자로만(줄 사이는 가는 세로줄) */
.phead-facts { display: flex; flex-wrap: wrap; gap: 4px 0; }
.phead-facts li { display: inline-flex; align-items: center; height: 18px; font-size: 15px; font-weight: 800; line-height: 1; color: var(--navy); white-space: nowrap; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75), 0 0 10px rgba(255, 255, 255, 0.9); }
.phead-facts li + li { margin-left: 12px; padding-left: 12px; border-left: 2px solid rgba(11, 42, 111, 0.3); }
.phead-char { position: absolute; right: 60px; bottom: 0; height: 180px; width: auto; max-width: none; filter: drop-shadow(0 8px 12px rgba(11, 42, 111, 0.22)); pointer-events: none; }
.phead-char.float { bottom: 10px; height: 164px; right: 76px; }

/* ── 머리 아래 묶음 탭 ── */
.ptabs { margin-top: 16px; }
.ptabs-row { display: flex; gap: 4px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1); overflow-x: auto; scrollbar-width: none; }
.ptabs-row::-webkit-scrollbar { display: none; }
.ptabs a { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 11px; font-size: 15px; font-weight: 800; color: var(--ink-2); white-space: nowrap; transition: background 0.2s, color 0.2s; }
.ptabs a:hover { color: var(--blue); background: var(--sky-0); }
.ptabs a[aria-current="page"] { background: var(--blue); color: #fff; box-shadow: 0 4px 10px rgba(30, 107, 255, 0.28); }

/* ── 본문 틀 ── */
.pmain { margin-top: 16px; }
.cols-book { display: grid; grid-template-columns: 224px minmax(0, 1fr) 348px; gap: 16px; align-items: start; }
.cols-side { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 16px; align-items: start; }
.cols-half { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.sticky { position: sticky; top: 172px; }

/* 면: 흰 작업대. 안쪽은 상자를 더 만들지 않고 줄과 옅은 띠로 나눈다 */
.panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-1); }
.panel-pad { padding: 20px 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 8px 14px 8px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.panel-head .cnt { margin-left: 6px; font-family: var(--body); font-size: 14px; font-weight: 800; color: var(--blue); }
.panel-tools { display: flex; align-items: center; gap: 8px; }
.link { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 8px; font-size: 14px; font-weight: 700; color: var(--blue-600); border-radius: 10px; }
.link:hover { background: var(--sky-0); }
.link .ico { width: 16px; height: 16px; }
.empty { padding: 36px 20px; text-align: center; font-size: 14.5px; color: var(--ink-3); }
.hint { font-size: 13.5px; color: var(--ink-3); }

/* 고르기 단추 줄(종목 · 분류 · 상태) */
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.picks button, .picks a { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.picks button:hover, .picks a:hover { border-color: var(--blue); color: var(--blue); }
.picks [aria-pressed="true"], .picks [aria-current="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.picks .n { font-size: 12.5px; font-weight: 800; color: var(--blue); }
.picks [aria-pressed="true"] .n, .picks [aria-current="true"] .n { color: var(--gold); }
.picks img { width: 22px; height: 22px; }
.search { position: relative; display: flex; align-items: center; min-width: 0; }
.search .ico { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 44px; padding: 0 14px 0 40px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sky-0); font: inherit; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: #8894b5; }
.search input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(30, 107, 255, 0.14); }
.sel { height: 44px; padding: 0 34px 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f4d76' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 18px no-repeat; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--ink-2); appearance: none; -webkit-appearance: none; }

/* 상태 표시: 색과 글자를 같이 */
.st { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 7px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.st-win { background: #e3eeff; color: var(--blue-700); }
.st-lose { background: #eef1f6; color: var(--ink-3); }
.st-wait { background: var(--gold-100); color: #8a5a00; }
.st-no { background: #ffe9ec; color: #c21d38; }
.st-live { background: #d81e3a; color: #fff; }

/* 글자만으로 보이는 상태(표 · 목록 줄): 줄마다 알약을 달지 않고 굵은 글자와 색으로만 */
.s-win { font-weight: 800; color: var(--blue-600); }
.s-lose { font-weight: 700; color: var(--ink-3); }
.s-wait { font-weight: 800; color: #9a6400; }
.s-no { font-weight: 700; color: #c21d38; }

/* 표 */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { height: 42px; padding: 0 14px; text-align: left; font-size: 13px; font-weight: 700; color: var(--ink-3); background: var(--sky-0); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { height: 54px; padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafcff; }
.tbl .r { text-align: right; }
.tbl .c { text-align: center; }
.tbl .strong { font-weight: 800; }
.tbl .up { color: var(--blue-600); font-weight: 800; }
.tbl .down { color: #c21d38; font-weight: 800; }
.tbl small { display: block; font-size: 12.5px; color: var(--ink-3); }
.pager { display: flex; justify-content: center; gap: 4px; padding: 14px; border-top: 1px solid var(--line); }
.pager a { min-width: 40px; height: 40px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.pager a:hover { background: var(--sky-0); color: var(--blue); }
.pager a[aria-current="page"] { background: var(--navy); color: #fff; }

/* 값 목록(이름 · 값) */
.kv { display: grid; }
.kv > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 46px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { flex: none; font-size: 14px; color: var(--ink-3); }
.kv dd { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); text-align: right; }
.panel-pad > .kv:first-child { margin-top: -10px; }
.panel-pad > .kv:last-child { margin-bottom: -10px; }
.notes { display: grid; gap: 8px; margin: 0; padding: 0; }
.notes li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
.notes li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 5px; height: 5px; border-radius: 50%; background: var(--sky-3); }

/* ── 스포츠북: 종목 · 리그 기둥 / 경기판 / 배팅 슬립 ── */
.rail-list a { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px 0 14px; border-radius: 12px; font-size: 15px; font-weight: 700; color: var(--ink); transition: background 0.2s, color 0.2s; }
.rail-list a:hover { background: var(--sky-0); color: var(--blue); }
.rail-list a[aria-current="true"] { background: var(--sky-1); color: var(--blue-700); }
.rail-list img { width: 26px; height: 26px; flex: none; }
.rail-list span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.rail-list b { flex: none; font-size: 13px; font-weight: 800; color: var(--ink-3); }
.rail-list a[aria-current="true"] b { color: var(--blue-700); }
.rail h2 { padding: 16px 16px 6px; font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--navy); }
.rail .rail-list { padding: 0 8px 10px; }
.rail .rail-list + h2 { border-top: 1px solid var(--line); }
.rail-leagues a { font-size: 14px; font-weight: 600; min-height: 42px; }

.book-tools { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.days { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--sky-1); }
.days button { height: 36px; padding: 0 14px; border-radius: 9px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.days button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: 0 2px 6px rgba(15, 60, 140, 0.12); }
.lg-head { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 16px; background: var(--sky-0); border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 800; color: var(--navy); }
.lg-head img { width: 22px; height: 22px; }
.lg-head span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lg-head small { font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.lg-head .cols { display: grid; grid-template-columns: repeat(3, 84px); gap: 6px; margin-right: 54px; text-align: center; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.fx { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 48px; gap: 10px; align-items: center; min-height: 72px; padding: 8px 14px 8px 16px; border-bottom: 1px solid var(--line); }
.fx:last-child { border-bottom: 0; }
.fx-time { display: grid; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
.fx-time b { font-size: 15px; font-weight: 800; color: var(--ink); }
.fx-teams { display: grid; gap: 6px; min-width: 0; }
.fx-teams span { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 15px; font-weight: 700; }
.fx-teams img { width: 24px; height: 24px; flex: none; }
.fx-teams i { font-style: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fx-teams .sc { margin-left: auto; padding-left: 8px; font-family: var(--display); font-size: 17px; color: var(--navy); }
.fx-odds { display: grid; grid-template-columns: repeat(3, 84px); gap: 6px; }
.pick { display: grid; justify-items: center; align-content: center; gap: 1px; height: 52px; border-radius: 12px; background: var(--sky-0); border: 1.5px solid var(--line); color: var(--navy); transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s; }
.pick span { font-size: 12px; font-weight: 700; color: var(--ink-3); line-height: 1.2; }
.pick b { font-size: 16px; font-weight: 800; line-height: 1.2; }
.pick:hover { border-color: var(--blue); background: #fff; }
.pick:active { transform: scale(0.97); }
.pick[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold); }
.pick[aria-pressed="true"] span::before { content: "✓ "; font-weight: 800; }
.fx.picked, .lv.picked, .dm.picked { background: #f3f8ff; }
.pick[aria-pressed="true"] span { color: #fff; }
.pick.none { visibility: hidden; }
.pick:disabled { opacity: 0.45; cursor: default; }
.fx-more { display: inline-flex; align-items: center; justify-content: center; height: 40px; border-radius: 10px; font-size: 13.5px; font-weight: 800; color: var(--blue-600); }
.fx-more:hover { background: var(--sky-0); }
.book-more { display: flex; justify-content: center; padding: 14px; border-top: 1px solid var(--line); }

/* 국내형: 경기마다 승무패 · 핸디캡 · 언더오버 세 줄 */
.dm { border-bottom: 1px solid var(--line); padding: 10px 14px 12px 16px; }
.dm:last-child { border-bottom: 0; }
.dm-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--ink-3); }
.dm-top b { font-size: 14px; font-weight: 800; color: var(--ink); }
.dm-top a { margin-left: auto; }
.dm-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) 96px minmax(0, 1fr); gap: 6px; align-items: stretch; }
.dm-row + .dm-row { margin-top: 6px; }
.dm-kind { display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--sky-1); font-size: 12.5px; font-weight: 800; color: var(--navy); }
.dm-cell { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 46px; padding: 0 12px; border-radius: 10px; background: var(--sky-0); border: 1.5px solid var(--line); color: var(--navy); min-width: 0; transition: background 0.15s, color 0.15s, border-color 0.15s; }
.dm-cell.away { flex-direction: row-reverse; }
.dm-cell .nm { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14.5px; font-weight: 700; }
.dm-cell.away .nm { flex-direction: row-reverse; }
.dm-cell .nm img { width: 22px; height: 22px; flex: none; }
.dm-cell .nm i { font-style: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dm-cell .nm em { flex: none; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--blue-600); }
.dm-cell b { flex: none; font-size: 16px; font-weight: 800; }
.dm-cell:hover { border-color: var(--blue); background: #fff; }
.dm-cell[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold); }
.dm-cell[aria-pressed="true"] .nm em { color: #fff; }
.dm-mid { display: flex; align-items: center; justify-content: center; gap: 6px; height: 46px; border-radius: 10px; background: var(--sky-0); border: 1.5px solid var(--line); font-size: 16px; font-weight: 800; color: var(--navy); }
.dm-mid span { font-size: 12px; font-weight: 700; color: var(--ink-3); }
button.dm-mid:hover { border-color: var(--blue); background: #fff; }
button.dm-mid[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold); }
button.dm-mid[aria-pressed="true"] span { color: #fff; }
div.dm-mid { background: none; border-color: transparent; color: var(--ink-3); font-size: 14px; }

.stake { display: flex; align-items: center; height: 50px; padding: 0 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--sky-0); }
.stake:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(30, 107, 255, 0.14); }
.stake span { font-size: 13px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.stake input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 18px; font-weight: 800; color: var(--navy); text-align: right; outline: none; }
.stake em { margin-left: 4px; font-style: normal; font-size: 15px; font-weight: 800; color: var(--navy); }

/* 인플레이: 진행 중 목록 + 경기 화면 */
.lv { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto 48px; gap: 10px; align-items: center; min-height: 72px; padding: 8px 14px 8px 16px; border-bottom: 1px solid var(--line); }
.lv:last-child { border-bottom: 0; }
.lv[aria-current="true"] { background: var(--sky-1); }
.lv-clock { font-size: 14px; font-weight: 800; color: #c21d38; white-space: nowrap; }
.center { display: grid; grid-template-columns: minmax(0, 1fr) 318px; align-items: center; overflow: hidden; }
/* 경기 화면 머리: 밝은 화면에 짙은 점수판을 두지 않는다(첫 화면 인플레이 카드에서 "너무 안어울려"). 옅은 하늘색 면에 남색 글자 */
.center-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px 6px 16px 20px; color: var(--navy); }
.center-lg { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.center-lg b { font-weight: 800; color: #c21d38; white-space: nowrap; }
.center-score { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; text-align: center; }
.center-score b { font-size: 16px; font-weight: 800; line-height: 1.3; }
.center-score strong { font-family: var(--display); font-size: 38px; line-height: 1; white-space: nowrap; }
.center-score strong i { font-style: normal; color: var(--blue); margin: 0 6px; }
.pitch { position: relative; margin: 14px; aspect-ratio: 7 / 4; border-radius: 14px; background: repeating-linear-gradient(90deg, #cfe4ff 0 12.5%, #c3dcff 12.5% 25%); border: 2px solid #fff; box-shadow: inset 0 0 0 2px #9fc5f5; overflow: hidden; }
.pitch::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; }
.pitch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; }
.pitch .box { position: absolute; top: 24%; bottom: 24%; width: 15%; border: 2px solid #fff; }
.pitch .box.l { left: -2px; }
.pitch .box.r { right: -2px; }
.pitch .ball { position: absolute; left: 66%; top: 42%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.55), 0 3px 6px rgba(11, 42, 111, 0.4); animation: ballpulse 1.6s ease-in-out infinite; }
@keyframes ballpulse { 50% { box-shadow: 0 0 0 9px rgba(255, 180, 0, 0.18), 0 3px 6px rgba(11, 42, 111, 0.4); } }
.pitch .press { position: absolute; left: 50%; right: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(30, 107, 255, 0), rgba(30, 107, 255, 0.26)); }
.pitch .tag { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 4px 10px; border-radius: 999px; background: rgba(11, 42, 111, 0.82); color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.center-tabs { justify-self: center; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: min(100%, 260px); padding: 4px; border-radius: 12px; background: var(--sky-1); }
.center-tabs button { height: 38px; border-radius: 9px; font-size: 14px; font-weight: 800; color: var(--ink-2); }
.center-tabs button[aria-pressed="true"] { background: #fff; color: var(--blue); box-shadow: 0 2px 6px rgba(15, 60, 140, 0.12); }

/* ── 폭에 따라 ── */
@media (max-width: 1180px) {
  .cols-book { grid-template-columns: minmax(0, 1fr) 340px; }
  .cols-book > .rail { grid-column: 1 / -1; }
  .rail h2 { display: none; }
  .rail .rail-list { display: flex; gap: 4px; padding: 8px; overflow-x: auto; scrollbar-width: none; }
  .rail .rail-list::-webkit-scrollbar { display: none; }
  .rail .rail-list + h2 { display: none; }
  .rail .rail-leagues { display: none; }
  .rail-list a { flex: none; }
  .rail-list span { overflow: visible; }
  .phead-char { right: 40px; }
}
@media (max-width: 1023px) {
  .cols-book, .cols-side, .cols-half { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
}
@media (max-width: 767px) {
  .phead { padding-top: 38px; }
  .phead-band { height: 96px; padding: 0 18px; border-radius: 20px; border-width: 3px; }
  .phead h1 { font-size: 26px; }
  .outlined::before { -webkit-text-stroke-width: 4px; text-shadow: 0 2px 0 rgba(8, 29, 77, 0.3); }
  .phead-text { gap: 8px; }
  .phead-facts li { height: 16px; font-size: 13.5px; }
  .phead-facts li:nth-child(n + 2) { display: none; }
  .phead-char { right: 10px; height: 128px; }
  .phead-char.float { right: 16px; bottom: 6px; height: 112px; }
  .ptabs { margin-top: 12px; padding-inline: 16px; }
  .ptabs a { height: 44px; padding: 0 14px; font-size: 14.5px; }
  .pmain { margin-top: 12px; }
  .cols-book, .cols-side, .cols-half, .stack { gap: 12px; }
  .panel { border-radius: 18px; }
  .panel-pad { padding: 16px; }
  .panel-head { padding: 6px 8px 6px 16px; min-height: 54px; }
  .panel-head h2 { font-size: 17.5px; }
  .book-tools { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .book-tools .sel { width: 100%; }
  .lg-head .cols { display: none; }
  .fx { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px 6px; padding: 10px 10px 12px 12px; }
  .fx-time { grid-column: 1 / -1; display: flex; gap: 6px; align-items: baseline; }
  .fx-time b { font-size: 13.5px; }
  .fx-odds { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); order: 3; }
  .fx-more { grid-row: 2; grid-column: 2; }
  .pick { height: 48px; }
  .dm { padding: 10px; }
  .dm-row { grid-template-columns: 46px minmax(0, 1fr) 64px minmax(0, 1fr); gap: 4px; }
  .dm-kind { font-size: 12px; }
  .dm-cell { padding: 0 8px; gap: 4px; }
  .dm-cell .nm { font-size: 13px; gap: 5px; }
  .dm-cell .nm img { display: none; }
  .dm-cell b { font-size: 15px; }
  .dm-mid { font-size: 15px; gap: 3px; }
  .lv { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px 6px; padding: 10px 10px 12px 12px; }
  .lv-clock { grid-column: 1 / -1; }
  .tbl { font-size: 13.5px; }
  .tbl th, .tbl td { padding-inline: 10px; }
}

/* ══ UI/UX 규칙 보정(2026-11-19, ui-ux-pro-max 점검): 입력 오류는 칸 바로 아래 글로, 휴대폰은 누르는 곳 44px · 입력칸 16px ══ */
.field-err { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.45; color: #c21d38; }
@media (max-width: 767px) {
  .link { min-width: 44px; min-height: 44px; justify-content: center; }
  .fx-more { flex: none; width: 44px; height: 44px; }
  .days button, .picks button, .picks a, .center-tabs button { height: 44px; }
  .search input { font-size: 16px; }
}
/* 칸에 잘리는 초점 테두리는 안쪽으로: 고르기 칸(.days) */
.days button:focus-visible { outline-offset: -3px; }

/* ══ 배팅 슬립 - 2026-11-19 형님 "스포츠 배팅도 뭐 배팅했는지 잘 보이게 다시 만들어" ══
   담은 선택은 줄 글이 아니라 티켓 한 장씩: 위에 리그와 시작 시각, 가운데 두 팀(고른 쪽 팀은 파란 굵은 글씨), 아래 하늘색 띠에 마켓 · 고른 것 · 배당.
   배팅하면 "내 배팅" 탭에 폴더별 선택 · 금액 · 예상 당첨금이 그대로 남는다. 휴대폰은 아래에서 올라오는 판. */
.slip { overflow: hidden; }
.slip-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.slip-tabs button { position: relative; height: 52px; font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--ink-3); white-space: nowrap; transition: color 0.2s; }
.slip-tabs button span { margin-left: 6px; font-family: var(--body); font-size: 14.5px; font-weight: 800; color: var(--blue); }
.slip-tabs button[aria-pressed="true"] { color: var(--navy); }
.slip-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.slip-tabs .slip-x { display: none; }
.slip-pane[hidden], .slip-mode[hidden], .slip-foot[hidden], .slip-empty[hidden] { display: none; }
.slip-mode { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 6px 0 16px; background: var(--sky-0); border-bottom: 1px solid var(--line); }
.slip-mode b { font-size: 14.5px; font-weight: 800; color: var(--navy); }
.slip-list { display: grid; max-height: max(236px, calc(100vh - 572px)); overflow-y: auto; overscroll-behavior: contain; }

/* 담은 선택 티켓 */
.tk { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 14px 12px; border-bottom: 1px solid var(--line); }
.tk-top { display: flex; align-items: center; gap: 6px; min-height: 18px; padding-right: 34px; font-size: 12.5px; color: var(--ink-3); }
.tk-top img { flex: none; width: 18px; height: 18px; }
.tk-top span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tk-top time { order: -1; flex: none; margin-right: 2px; font-weight: 800; color: var(--ink-2); white-space: nowrap; }      /* 시각 먼저, 그다음 리그: "내 배팅"의 폴더 줄(.fd-info)과 같은 순서 */
.tk-x { position: absolute; right: 2px; top: 1px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink-3); }
.tk-x:hover { background: var(--sky-0); color: #c21d38; }
.tk-x .ico { width: 16px; height: 16px; }
:is(.tk-teams, .fd-vs) { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; }
:is(.tk-teams, .fd-vs) span { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
:is(.tk-teams, .fd-vs) span:last-child { flex-direction: row-reverse; text-align: right; }
:is(.tk-teams, .fd-vs) img { flex: none; width: 20px; height: 20px; }
:is(.tk-teams, .fd-vs) i { font-style: normal; line-height: 1.3; }      /* 팀 이름은 자르지 않는다(무엇을 골랐는지 끝까지 보여야 한다). 길면 두 줄로 */
:is(.tk-teams, .fd-vs) .on { font-weight: 800; color: var(--blue-700); }
:is(.tk-teams, .fd-vs) em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--ink-3); }
:is(.tk-teams, .fd-vs) > b { padding: 2px 8px; border-radius: 8px; background: var(--navy); font-size: 13px; font-weight: 800; color: #fff; white-space: nowrap; }
.tk-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 8px; min-height: 40px; padding: 6px 12px; border-radius: 12px; background: var(--sky-1); }
.tk-pick small { font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.tk-pick b { font-size: 15px; font-weight: 800; line-height: 1.3; color: var(--navy); }
.tk-pick strong { font-size: 19px; font-weight: 800; line-height: 1.2; color: var(--blue-600); }

.slip-empty { display: grid; justify-items: center; gap: 4px; padding: 36px 20px 40px; text-align: center; }
.slip-empty .ico { width: 34px; height: 34px; margin-bottom: 6px; color: var(--sky-3); }
.slip-empty b { font-size: 15px; font-weight: 800; color: var(--ink); }
.slip-empty span { font-size: 13.5px; color: var(--ink-3); }
.slip-foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 16px 16px; }
.chips-add { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.chips-add button { height: 36px; border-radius: 9px; background: #fff; border: 1.5px solid var(--line); font-size: 12.5px; font-weight: 800; color: var(--ink-2); white-space: nowrap; transition: border-color 0.15s, color 0.15s; }
.chips-add button:hover { border-color: var(--blue); color: var(--blue); }
.slip-sum, .mb-sum { display: grid; gap: 5px; margin: 0; }
.slip-sum div, .mb-sum div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 14px; }
.slip-sum dt, .mb-sum dt { color: var(--ink-3); }
.slip-sum dd, .mb-sum dd { margin: 0; font-size: 16px; font-weight: 800; color: var(--ink); }
.slip-sum .payout dd { font-family: var(--display); font-size: 22px; font-weight: 700; color: #b77600; }      /* 큰 글자 3:1 이상(금빛을 조금 진하게) */
.slip-help { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-3); }
.slip-help b { font-weight: 800; color: var(--ink-2); }

/* 내 배팅 */
.slip-bets { display: grid; max-height: max(320px, calc(100vh - 300px)); overflow-y: auto; overscroll-behavior: contain; }
.slip-none { padding: 40px 20px; text-align: center; font-size: 14px; color: var(--ink-3); }
.mb { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
.mb.new { animation: betnew 1.6s ease-out; }
@keyframes betnew { 0%, 30% { background: var(--gold-100); } 100% { background: none; } }
.mb-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mb-top b { font-family: var(--display); font-size: 16.5px; font-weight: 700; color: var(--navy); }
.mb-top span { font-size: 14px; }
.mb .fds { gap: 6px; }
.mb-sum .payout dd { color: #9a6400; }
.mb-foot { display: flex; align-items: center; justify-content: space-between; min-height: 28px; font-size: 12.5px; color: var(--ink-3); }
.mb-foot .link { min-height: 32px; font-size: 13px; }
.slip-all { display: flex; align-items: center; justify-content: center; gap: 2px; height: 46px; font-size: 14px; font-weight: 700; color: var(--blue); }
.slip-all:hover { background: var(--sky-0); }
.slip-all .ico { width: 16px; height: 16px; }
.slip-fab, .slip-dim { display: none; }

/* ══ 배팅한 폴더 한 줄(.fd) - 2026-11-19 형님(배팅내역의 폴더별 글 줄을 보고) "이게 아니라. 배팅페이지에서처럼 직관적으로 나오게 하라고" ══
   배팅내역과 "내 배팅"의 폴더는 글로 풀어 쓰지 않고 경기판 줄과 같은 모양으로 보인다: 두 팀과 로고, 마켓, 배당 칸 셋. 고른 칸만 경기판에서 고를 때와 같은 파란 바탕 + 금빛 고리.
   기본(좁은 칸: 슬립 · 휴대폰 · 태블릿)은 두 팀을 위에 적고 칸에는 짧은 이름(승 · 무 · 패 / 홈 -1 · 원정 +1 / 오버 · 언더),
   넓은 표(PC 배팅내역, .fds.wide)는 국내형 경기판처럼 칸 안에 로고와 팀 이름이 들어간 한 줄이다. 줄을 만드는 곳: pg_sports.folder_html(배팅내역) · pages.js folder(내 배팅). */
.fds { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.fd { --pick-sub: #fff; --pick-mark: #fff; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "info st" "vs vs" "row row"; align-items: center; gap: 7px 8px; padding: 10px 12px 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.fd-info { grid-area: info; display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); }
.fd-info > b { flex: none; font-weight: 800; color: var(--ink-2); white-space: nowrap; }
.fd-lg { display: flex; align-items: center; gap: 5px; min-width: 0; }
.fd-lg img { flex: none; width: 16px; height: 16px; }
.fd-lg i { font-style: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fd-st { grid-area: st; font-size: 12.5px; white-space: nowrap; }
.fd-vs { grid-area: vs; }
.fd-row { grid-area: row; display: grid; grid-template-columns: 50px repeat(3, minmax(0, 1fr)); gap: 4px; }
.fd-row.two { grid-template-columns: 50px minmax(0, 1fr) 42px minmax(0, 1fr); }
.fd-kind { display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--sky-1); font-size: 12px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.fd-cell, .fd-mid { display: grid; justify-items: center; align-content: center; gap: 1px; min-width: 0; height: 46px; padding: 0 4px; border-radius: 10px; background: var(--sky-0); border: 1.5px solid var(--line); color: var(--navy); }
.fd-cell.none { visibility: hidden; }
.fd-cell .nm { display: none; }
.fd .sh, .fd-mid.txt span { font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--ink-3); white-space: nowrap; }
.fd-cell b, .fd-mid b { font-size: 15.5px; font-weight: 800; line-height: 1.2; }
.fd-mid.txt { padding: 0; background: none; border-color: transparent; }
.fd-mid.txt b { font-size: 14px; color: var(--ink-2); }
.fd-cell.on, .fd-mid.on { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold); }
.fd-cell.on .sh, .fd-mid.on .sh { color: var(--pick-sub); }
.fd-cell.on .sh::before, .fd-mid.on .sh::before { content: "✓ "; font-weight: 800; color: var(--pick-mark); }
/* 결과가 난 폴더: 취소는 점선 빈 칸에 배당 줄 긋기, 미적중은 회색 칸(금빛 고리는 진행 중 · 적중에만) */
.fd.is-no { --pick-sub: var(--ink-3); --pick-mark: var(--ink-3); }
.fd.is-no .fd-cell.on, .fd.is-no .fd-mid.on { background: #fff; border: 1.5px dashed #9fb0c9; color: var(--ink-3); box-shadow: none; }
.fd.is-no .on b { text-decoration: line-through; }
.fd.is-lose { --pick-sub: var(--ink-2); --pick-mark: var(--ink-2); }
.fd.is-lose .fd-cell.on, .fd.is-lose .fd-mid.on { background: #e6ebf3; border-color: #b9c6da; color: var(--ink-2); box-shadow: none; }
@media (min-width: 768px) and (max-width: 1099px) {
  .fds.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}
@media (min-width: 1100px) {
  /* PC 배팅내역: 국내형 경기판과 같은 한 줄 - [시작 시각 · 리그] [마켓] [홈 팀 칸] [무 · VS · 기준점] [원정 팀 칸] [폴더 결과] */
  .fds.wide { gap: 0; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
  .fds.wide .fd { grid-template-columns: 204px minmax(0, 1fr) 76px; grid-template-areas: "info row st"; gap: 0 14px; padding: 10px 14px; border: 0; border-radius: 0; background: none; }
  .fds.wide .fd + .fd { border-top: 1px solid var(--line); }
  .fds.wide .fd-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .fds.wide .fd-info > b { font-size: 14px; color: var(--ink); }
  .fds.wide .fd-vs { display: none; }
  .fds.wide .fd-st { text-align: right; font-size: 13.5px; }
  .fds.wide .fd-row, .fds.wide .fd-row.two { grid-template-columns: 64px minmax(0, 1fr) 96px minmax(0, 1fr); gap: 6px; }
  .fds.wide .fd-kind { border-radius: 10px; font-size: 12.5px; }
  .fds.wide .fd-cell { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; }
  .fds.wide .fd-cell.away { flex-direction: row-reverse; }
  .fds.wide .fd-cell .sh { display: none; }
  .fds.wide .fd-cell .nm { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 14.5px; font-weight: 700; }
  .fds.wide .fd-cell.away .nm { flex-direction: row-reverse; }
  .fds.wide .nm img { flex: none; width: 22px; height: 22px; }
  .fds.wide .nm i { font-style: normal; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .fds.wide .nm em { flex: none; font-style: normal; font-size: 12.5px; font-weight: 800; color: var(--blue-600); }
  .fds.wide .fd-cell b { flex: none; font-size: 16px; }
  .fds.wide .fd-cell.on .nm em { color: var(--pick-mark); }
  .fds.wide .fd-cell.on b::before { content: "✓"; margin-right: 6px; font-size: 13px; color: var(--pick-mark); }
  .fds.wide .fd-mid { display: flex; align-items: center; justify-content: center; gap: 6px; }
  .fds.wide .fd-mid b { font-size: 16px; }
  .fds.wide .fd-mid.txt b { font-size: 14.5px; }
}
/* 배팅내역 "상세 보기"(폴더가 있는 배팅 줄만): 누르면 폴더 줄이 그 줄 바로 아래에 열리고 "접기"로 바뀐다(화살표가 뒤집힘) */
.tbl .t-more-h, .tbl td.t-more { width: 1%; white-space: nowrap; }
.h-more { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 100px; height: 36px; padding: 0 10px 0 12px; border-radius: 10px; background: #fff; border: 1.5px solid var(--sky-3); font-size: 13.5px; font-weight: 800; color: var(--navy); white-space: nowrap; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; }
.h-more:hover { border-color: var(--blue); color: var(--blue); }
.h-more .ico { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.h-more[aria-expanded="true"] { background: var(--sky-1); border-color: var(--sky-1); color: var(--blue-700); }
.h-more[aria-expanded="true"] .ico { transform: rotate(180deg); }
/* 열린 배팅 줄은 아래 폴더 칸과 한 덩어리로 보이게 사이 줄을 없앤다 */
.tbl tr.is-open td { border-bottom: 0; }
@media (min-width: 768px) {
  .tbl .t-st { white-space: nowrap; }
  .tbl tr.h-sub td { height: auto; padding: 0 14px 14px; }
  .tbl tbody tr.h-sub:hover td { background: none; }
}
/* 이미 배팅한 선택: 경기판에서도 금빛 테두리와 꼬리표로 보인다 */
[data-pick].mine { position: relative; overflow: visible; border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
[data-pick].mine::after { content: "배팅함"; position: absolute; top: -9px; right: 6px; padding: 1px 6px 2px; border-radius: 6px; background: var(--gold); color: #5a3a00; font-size: 12px; font-weight: 800; line-height: 1.3; pointer-events: none; }
[data-pick].mine[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--gold); }

@media (max-width: 767px) {
  .center { grid-template-columns: minmax(0, 1fr); }
  .center-top { padding: 14px 14px 4px; gap: 10px; }
  .center-score strong { font-size: 32px; }
  .center .pitch { aspect-ratio: 5 / 2; margin: 10px 14px 14px; }
  .center .pitch::after { width: 18%; }
  .center .pitch .tag { left: 10px; transform: none; }      /* 휴대폰에서는 트래커를 낮게: 첫 화면에 경기 목록이 걸리게 */
  /* 배팅내역: "상세 보기"는 배팅금 줄 오른쪽(누르기 쉬운 높이 44px), 열린 폴더 줄은 그 배팅 줄 바로 아래에 줄 폭을 다 쓰는 칸으로 붙는다 */
  .tbl.rows tbody tr.has-picks { grid-template-areas: "main main amt" "kind at st" "stake stake more"; align-items: center; }
  .tbl.rows td.t-more { grid-area: more; justify-self: end; width: auto; }
  .h-more { height: 44px; padding: 0 12px 0 14px; font-size: 14px; }
  .tbl.rows tbody tr.is-open { border-bottom: 0; padding-bottom: 8px; }
  .tbl.rows tbody tr.h-sub:not([hidden]) { display: block; padding: 0 14px 14px; }
}
@media (max-width: 1023px) {
  /* 좁은 화면: 슬립은 아래에서 올라오는 판, 열기 단추는 아래 메뉴 위에 떠 있다 */
  .slip { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: 88vh; max-height: 88dvh; border-radius: 22px 22px 0 0; border-bottom: 0; box-shadow: 0 -18px 50px rgba(8, 29, 77, 0.3); transform: translateY(110%); transition: transform 0.3s var(--ease); }
  .slip.open { transform: none; }
  .slip-tabs { grid-template-columns: 1fr 1fr 52px; }
  .slip-tabs .slip-x { display: grid; place-items: center; color: var(--ink-3); }
  .slip-pane { overflow-y: auto; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .slip-list, .slip-bets { max-height: none; overflow: visible; }
  .slip-dim { position: fixed; inset: 0; z-index: 69; display: block; background: rgba(8, 29, 77, 0.45); }
  .slip-dim[hidden] { display: none; }
  .slip-fab { position: fixed; right: 14px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 45; display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 14.5px; font-weight: 800; box-shadow: 0 10px 24px rgba(11, 42, 111, 0.4); }
  .slip-fab b { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--navy-900); font-size: 13px; }
  .slip-fab span { font-size: 15px; color: var(--gold); }
  .slip-fab span:empty { display: none; }
}

/* ══ UI/UX 규칙 보정(2026-11-19, ui-ux-pro-max 점검) ══ */
/* 배팅 취소는 한 번 더 묻는다: 돌아올 금액을 보여 주고 "그대로 두기" / "배팅 취소" */
.mb-ask { display: grid; gap: 10px; padding: 12px; border-radius: 12px; background: #fff4f4; border: 1px solid #f5c9cf; }
.mb-ask[hidden] { display: none; }
.mb-ask p { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--ink); }
.mb-ask div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mb-ask .btn { height: 44px; font-size: 14px; border-radius: 12px; }
.btn-danger { background: #c21d38; color: #fff; }
.btn-danger:hover { background: #a9182f; }
.slip-foot .field-err { margin-top: -4px; }
@media (max-width: 1023px) {
  /* 판(휴대폰 · 태블릿)에서는 누르는 곳 44px, 금액 단추 사이 8px */
  .chips-add { gap: 8px 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chips-add button { height: 44px; font-size: 14px; }
  .tk-x { width: 44px; height: 44px; top: -1px; right: 0; }
  .mb-foot .link { min-height: 44px; }
}
/* 칸에 잘리는 초점 테두리는 안쪽으로: 슬립 탭(둥근 판 가장자리) */
.slip-tabs button:focus-visible { outline-offset: -3px; }

/* ══ 게임 로비 화면: 카지노 · 슬롯 · 미니게임 · 해시게임 · 가상게임 · 홀덤 · 카드게임 ══ */

/* 작은 제목(면 안쪽) */
.sub-h { display: flex; align-items: baseline; gap: 8px; padding: 18px 20px 12px; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--navy); }
.sub-h small { font-family: var(--body); font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* 카지노 · 슬롯: 종류 고르기 + 게임사 + 게임 */
.lobby-tools { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--line); }
.lobby-body { padding: 0 20px 22px; }
.lobby .vendors { gap: 10px; }
.lobby .vendor { height: 92px; border-radius: 16px; gap: 6px; }
/* 로고는 같은 높이의 칸에 맞춰 넣는다(로고마다 세로 길이가 달라 이름 줄이 칸마다 들쭉날쭉했다) */
.lobby .vendor img { flex: none; height: 38px; max-height: none; object-fit: contain; }
.lobby .vendor small { color: #c9dcff; text-align: center; line-height: 1.3; }
/* 슬롯 게임사 칸: 이름 아래 게임 수 한 줄 더(칸 높이는 줄에서 가장 긴 이름에 맞춘다) */
.lobby .vendors.with-n .vendor { height: 100%; min-height: 106px; }
.lobby .vendor .vendor-n { margin-top: -3px; font-weight: 500; color: #a9c3f5; }
.lobby .games > li:nth-child(n + 7) { display: block; }

/* 미니게임: 종류 고르기 + 게임 카드(회차 길이 · 남은 시간) */
.mg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px; }
.mg { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 72px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.mg[hidden] { display: none; }
.mg:hover { border-color: var(--blue); box-shadow: var(--shadow-1); }
.mg img { width: 44px; height: 44px; }
.mg-name { display: grid; min-width: 0; }
.mg-name b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.mg-name small { font-size: 12.5px; color: var(--ink-3); }
.mg-time { display: grid; justify-items: end; font-size: 12px; color: var(--ink-3); }
.mg-time b { font-family: var(--display); font-size: 16px; font-weight: 700; color: var(--blue-600); }

/* 종류 그림 타일(미니게임 종류 · 홀덤 분류): 그림 위에 이름표만 얹는다. 미니게임은 누르면 아래 목록이 그 종류만 남는다 */
.ctiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ctile { position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 18px; border: 3px solid #fff; background: var(--sky-2); box-shadow: var(--shadow-1); transition: transform 0.25s var(--ease), box-shadow 0.25s, border-color 0.2s; }
.ctile.wide { grid-column: span 2; aspect-ratio: auto; }
.ctile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; transition: transform 0.6s var(--ease); }
.ctile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.ctile:hover img { transform: scale(1.06); }
.ctile span { position: absolute; left: 8px; bottom: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); box-shadow: 0 4px 12px rgba(11, 42, 111, 0.22); transition: background 0.2s; }
.ctile b { padding-top: 2px; font-family: var(--display); font-size: 15px; font-weight: 700; line-height: 1; color: var(--navy); white-space: nowrap; }
.ctile small { font-size: 12.5px; font-weight: 800; line-height: 1; color: var(--blue); white-space: nowrap; }
.ctile[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), var(--shadow-2); }
.ctile[aria-pressed="true"] span { background: var(--navy); }
.ctile[aria-pressed="true"] b { color: #fff; }
.ctile[aria-pressed="true"] small { color: var(--gold); }
.mg-group[hidden] { display: none; }
.mg-group + .mg-group { border-top: 1px solid var(--line); }
.mg-group .lg-head { height: 46px; font-size: 15px; }
.mg-group .lg-head img { width: 26px; height: 26px; }
.panel-head .search { width: 280px; }

/* 그림 타일(해시게임 · 카드게임): 위 그림, 아래 이름과 입장 */
.atiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.atile { display: block; overflow: hidden; border-radius: 22px; background: #fff; border: 3px solid #fff; box-shadow: var(--shadow-1); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.atile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.atile-art { display: block; overflow: hidden; border-radius: 18px 18px 0 0; }
.atile-art img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.6s var(--ease); }
.atile:hover .atile-art img { transform: scale(1.05); }
.atile-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 16px; }
.atile-body b { display: block; font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.atile-body small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink-3); }
.atile-go { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 800; white-space: nowrap; transition: background 0.2s; }
.atile:hover .atile-go { background: var(--blue-600); }
.atile-n { color: var(--blue-600); font-weight: 800; }

/* 차례가 있는 안내(실제 순서일 때만 번호를 붙인다) */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: step; margin: 0; padding: 0; }
.steps li { position: relative; min-height: 66px; padding: 14px 16px 14px 62px; border-radius: 16px; background: var(--sky-0); border: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--display); font-size: 17px; font-weight: 700; }
.steps b { display: block; font-size: 15px; font-weight: 800; color: var(--navy); }
.steps span { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }

/* 가상게임: 중계 화면 + 리그 + 경기 */
.vplayer { position: relative; aspect-ratio: 21 / 8; margin: 14px; border-radius: 16px; overflow: hidden; display: grid; place-items: center; background: var(--sky-2); color: #fff; }
.vplayer > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vplayer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48%; background: linear-gradient(180deg, rgba(8, 29, 77, 0), rgba(8, 29, 77, 0.55) 45%, rgba(8, 29, 77, 0.8)); }      /* 흰 글이 밝은 그림 위에서도 읽히게 */
.vplayer-play { position: relative; z-index: 1; width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: rgba(11, 42, 111, 0.55); border: 3px solid #fff; box-shadow: 0 8px 20px rgba(8, 29, 77, 0.35); }
.vplayer-play .ico { width: 28px; height: 28px; margin-left: 3px; fill: #fff; stroke: none; }
.vplayer .st { position: absolute; left: 14px; top: 14px; z-index: 1; }
.vplayer p { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; font-size: 13.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(8, 29, 77, 0.7); }
.vleagues { padding: 0 14px 12px; border-bottom: 1px solid var(--line); }
.vres { margin: 0; padding: 0; }
.vres li { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 6px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.vres li:last-child { border-bottom: 0; }
.vres time { flex: none; font-weight: 800; color: var(--ink-3); }
.fx-v { grid-template-columns: 116px minmax(0, 1fr) auto 48px; }
.fx-time .left { font-size: 12px; font-weight: 800; color: var(--blue-600); white-space: nowrap; }
.fx-time .left.closed { color: var(--ink-3); }

/* 홀덤 · 카드게임: 테이블 표, 자리 표시, 오늘 기록 */
.seats { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: middle; }
.seats i { width: 9px; height: 9px; border-radius: 50%; background: var(--sky-2); }
.seats i.on { background: var(--blue); }
.record { display: grid; gap: 2px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.record:last-child { border-bottom: 0; }
.record small { font-size: 13px; color: var(--ink-3); }
.record b { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.2; color: #b77600; }
.record span { font-size: 14px; font-weight: 700; color: var(--ink); }
.guide a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line); }
.guide a:last-child { border-bottom: 0; }
.guide a:hover { background: var(--sky-0); }
.guide b { display: block; font-size: 15px; font-weight: 800; color: var(--ink); }
.guide small { font-size: 13px; color: var(--ink-3); }
.guide .ico { width: 18px; height: 18px; color: var(--blue); }

@media (max-width: 1180px) {
  .mg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lobby .games { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .mg-grid, .atiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ctiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .sub-h { padding: 16px 14px 10px; font-size: 16.5px; }
  .lobby-tools { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .lobby-tools .picks { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .lobby-tools .picks::-webkit-scrollbar { display: none; }
  .lobby-body { padding: 0 12px 16px; }
  .lobby .vendors { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .lobby .vendor { height: 78px; }
  .lobby .vendor img { height: 32px; }
  .lobby .vendors.with-n .vendor { height: 100%; min-height: 92px; }
  .lobby .games { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; overflow: visible; }
  .lobby .games > li, .lobby .games > li:nth-child(n + 7) { display: block; flex: initial; }
  .mg-grid { grid-template-columns: minmax(0, 1fr); padding: 10px; gap: 8px; }
  .ctiles { display: flex; gap: 8px; margin-inline: -16px; padding: 4px 16px 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
  .ctiles::-webkit-scrollbar { display: none; }
  .ctile, .ctile.wide { flex: none; width: 150px; aspect-ratio: 3 / 2; border-radius: 15px; scroll-snap-align: start; }
  .panel-head .search { width: 150px; }
  /* 휴대폰: 그림 타일은 두 칸씩(한 칸씩 세우면 타일만으로 화면 다섯 장이 넘는다) */
  .atiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .atile { border-radius: 18px; }
  .atile-art { border-radius: 15px 15px 0 0; }
  .atile-body { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px 12px; }
  .atile-body b { font-size: 16px; }
  .atile-body small { min-height: 2.9em; font-size: 12.5px; line-height: 1.45; }
  .atile-go { justify-content: center; height: 38px; }
  .vplayer { margin: 10px; aspect-ratio: 16 / 9; }
  .record b { font-size: 21px; }
}

/* 본문 첫 문단 */
.lede { margin: 0 0 14px; max-width: 72ch; font-size: 15px; line-height: 1.65; color: var(--ink-2); }

/* ══ UI/UX 규칙 보정(2026-11-19, ui-ux-pro-max 점검): 휴대폰 작은 단추(입장 · 링크 복사 등)도 44px ══ */
@media (max-width: 767px) {
  .btn-sm { height: 44px; }
  .atile-go { height: 44px; }
}

/* ══ 거래 공통 색 + 폴리마켓 ══
   오른 값 · 롱 = 초록, 내린 값 · 숏 = 빨강(운영 선물 화면과 같은 약속). 파랑은 사이트 단추 색이라 방향 색으로 쓰지 않는다.
   --up/--dn 은 글자용(흰 바탕 대비 4.5:1 안팎), -fill 은 막대 · 봉 · 단추, -soft 는 옅은 바탕. 거래 화면 모양은 35-terminal.css. */
:root { --up: #087c4e; --up-fill: #109e6c; --up-soft: #e3f6ee; --dn: #cc2340; --dn-fill: #f04a63; --dn-soft: #fde9ed; }      /* 2026-11-19 대비 보정: 글자 4.5:1, 막대 3:1 */
.c-up { color: var(--up); }
.c-dn { color: var(--dn); }

/* 밑줄 탭(지인추천 실적 표) */
.ttabs { display: flex; gap: 2px; padding: 6px 8px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ttabs::-webkit-scrollbar { display: none; }
.ttabs button { flex: none; position: relative; height: 44px; padding: 0 14px; font-size: 14.5px; font-weight: 800; color: var(--ink-3); white-space: nowrap; }
.ttabs button[aria-pressed="true"] { color: var(--navy); }
.ttabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }

/* 폴리마켓: 5분 라이브 마켓 + 예측 카드 */
.pm-rounds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 18px 18px; }
.pm-round { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--sky-0); }
.pm-round-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pm-round-top b { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--navy); }
.pm-round-top span { font-size: 13px; font-weight: 800; color: var(--ink-3); }
.pm-round-top span b { font-family: var(--body); font-size: 14px; color: var(--blue-600); }
.pm-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.pm-prices div { display: grid; }
.pm-prices dt { font-size: 12px; color: var(--ink-3); }
.pm-prices dd { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); }
.pm-split { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--dn-fill); }
.pm-split i { background: var(--up-fill); }
.pm-side { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pm-side button { display: grid; justify-items: center; gap: 1px; height: 54px; align-content: center; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); transition: border-color 0.15s, background 0.15s; }
.pm-side button span { font-size: 12.5px; font-weight: 800; }
.pm-side button b { font-size: 16px; font-weight: 800; color: var(--ink); }
.pm-side .up span { color: var(--up); }
.pm-side .dn span { color: var(--dn); }
.pm-side .up:hover { border-color: var(--up); }
.pm-side .dn:hover { border-color: var(--dn); }
.pm-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 14px 18px 18px; }
.pm { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; transition: border-color 0.2s, box-shadow 0.2s; }
.pm[hidden] { display: none; }
.pm:hover { border-color: var(--sky-3); box-shadow: var(--shadow-1); }
.pm h3 { font-size: 15.5px; font-weight: 800; line-height: 1.45; color: var(--ink); min-height: 2.9em; }
.pm-foot b { margin-right: 8px; font-weight: 800; color: var(--blue-600); }
.pm-out { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 42px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); overflow: hidden; background: #fff; font-size: 14px; font-weight: 800; color: var(--ink); transition: border-color 0.15s; }
.pm-out:hover { border-color: var(--blue); }
.pm-out i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sky-1); }
.pm-out span, .pm-out b { position: relative; z-index: 1; }
.pm-out b { font-weight: 800; color: var(--blue-700); }
.pm-out b small { margin-left: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.pm-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-3); }

@media (max-width: 1180px) {
  .pm-rounds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .pm-rounds, .pm-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .pm h3 { min-height: 0; }
}

/* ══ 거래 화면(선물거래 · 해외주식 · 국내주식) - 2026-11-19 형님 "선물거래쪽 고퀄리티로 다시만들어" · "레이아웃 ui ux 신경써서" ══
   틀: 이 화면은 도구라 화면 머리 띠(하늘 창) 없이 첫 화면에 거래 판을 통째로 올린다. 시세 줄 → 종목 띠 → [차트 | 호가 | 주문] → [내 거래 | 최근 체결 | 자산].
   힘주는 곳은 차트 하나(실제 시세가 움직이고 내 포지션 · 주문 선이 그 위에 그려진다). 나머지 칸은 숫자를 줄 맞춰 조용하게.
   오른 값 · 롱은 초록, 내린 값 · 숏은 빨강(운영 선물 화면과 같은 약속). 파랑은 사이트 단추 색이라 방향 색으로 쓰지 않는다. */
.tt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
.tt .up { color: var(--up); }
.tt .dn { color: var(--dn); }
.tt-panel { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-1); }
.tt-ini { display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -0.02em; }

/* ── 시세 줄: 이 시장에서 바로 갈 수 있는 종목 ── */
.tt-strip { display: flex; align-items: center; gap: 2px; padding: 5px; overflow-x: auto; scrollbar-width: none; }
.tt-strip::-webkit-scrollbar { display: none; }
.tt-chip { flex: 1 0 auto; max-width: 264px; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 10px; border-radius: 11px; font-size: 13.5px; color: var(--ink); white-space: nowrap; transition: background 0.2s; }
.tt-chip:hover { background: var(--sky-0); }
.tt-chip[aria-current="page"] { background: var(--sky-1); }
.tt-chip img, .tt-chip .tt-ini { flex: none; width: 22px; height: 22px; border-radius: 50%; }
.tt-chip b { font-weight: 800; }
.tt-chip span { margin-left: auto; padding-left: 6px; font-weight: 700; }
.tt-chip em { font-style: normal; font-size: 12.5px; font-weight: 800; }
.tt-all { position: sticky; right: 0; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; margin-left: auto; padding: 0 14px; box-shadow: -10px 0 12px 4px #fff, 6px 0 0 0 #fff; border-radius: 11px; border: 1.5px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 800; color: var(--navy); white-space: nowrap; transition: border-color 0.2s, color 0.2s; }
.tt-all:hover { border-color: var(--blue); color: var(--blue); }
.tt-all b { color: var(--blue); }

/* ── 종목 띠: 종목 · 현재가 · 하루 변동 ── */
.tt-bar { position: relative; z-index: 6; display: flex; align-items: center; gap: 22px; min-height: 66px; padding: 8px 18px 8px 8px; }
.tt-sym { flex: none; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 8px; border-radius: 12px; text-align: left; transition: background 0.2s; }
.tt-sym:hover, .tt-sym[aria-expanded="true"] { background: var(--sky-0); }
.tt-sym img, .tt-sym .tt-ini { flex: none; width: 36px; height: 36px; border-radius: 50%; font-size: 13px; }
.tt-sym-name { display: grid; }
.tt-sym-name b { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--navy); white-space: nowrap; }
.tt-sym-name small { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.tt-sym .ico { width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.2s var(--ease); }
.tt-sym[aria-expanded="true"] .ico { transform: rotate(180deg); }
.tt-last { flex: none; display: grid; min-width: 132px; }
.tt-last b { font-size: 26px; font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
.tt-last small { font-size: 12.5px; color: var(--ink-3); }
.tt-stats { flex: 1; min-width: 0; display: flex; gap: 24px; margin: 0; overflow-x: auto; scrollbar-width: none; }
.tt-stats::-webkit-scrollbar { display: none; }
.tt-stats div { flex: none; display: grid; gap: 1px; white-space: nowrap; }
.tt-stats dt { font-size: 12px; color: var(--ink-3); }
.tt-stats dd { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); }

/* 종목 고르기 판 */
.tt-pick { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; width: 460px; max-height: min(560px, calc(100vh - 300px)); display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-2); overflow: hidden; }
.tt-pick[hidden] { display: none; }
.tt-pick-search { padding: 12px 12px 8px; }
.tt-pick-tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.tt-pick-tabs button { position: relative; height: 40px; padding: 0 12px; font-size: 14px; font-weight: 800; color: var(--ink-3); white-space: nowrap; }
.tt-pick-tabs button span { margin-left: 5px; font-size: 12.5px; font-weight: 700; }
.tt-pick-tabs button[aria-pressed="true"] { color: var(--navy); }
.tt-pick-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.tt-pick-head, .tt-prow { display: grid; grid-template-columns: minmax(0, 1fr) 96px 72px 76px; gap: 8px; align-items: center; padding: 0 14px; }
.tt-pick-head { height: 32px; background: var(--sky-0); border-bottom: 1px solid var(--line); }
.tt-pick-head button { display: inline-flex; align-items: center; gap: 3px; justify-self: end; font-size: 12px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.tt-pick-head button:first-child { justify-self: start; }
.tt-pick-head button[aria-sort]:not([aria-sort="none"]) { color: var(--blue-700); }
.tt-pick-head button[aria-sort="descending"]::after { content: "▼"; font-size: 8px; }
.tt-pick-head button[aria-sort="ascending"]::after { content: "▲"; font-size: 8px; }
.tt-pick-list { overflow-y: auto; overscroll-behavior: contain; }
.tt-prow { width: 100%; height: 46px; border-bottom: 1px solid #edf3fc; font-size: 13.5px; text-align: left; transition: background 0.15s; }
.tt-prow:hover { background: var(--sky-0); }
.tt-prow[aria-current="page"] { background: var(--sky-1); }
.tt-prow > span:first-child { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tt-prow img, .tt-prow .tt-ini { flex: none; width: 24px; height: 24px; border-radius: 50%; }
.tt-prow b { font-weight: 800; color: var(--ink); white-space: nowrap; }
.tt-prow small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; color: var(--ink-3); }
.tt-prow > span:nth-child(n + 2) { justify-self: end; font-weight: 700; white-space: nowrap; }
.tt-prow > span:last-child { font-weight: 600; color: var(--ink-3); }
.tt-pick-none { padding: 36px 16px; text-align: center; font-size: 14px; color: var(--ink-3); }

/* ── 거래 판 ── */
.tt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 272px 312px; grid-template-rows: minmax(540px, auto) auto; grid-template-areas: "chart book order" "pos tape acct"; gap: 8px; }
.tt-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.tt-head h2 { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.tt-head small { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* 차트 */
.tt-chart { grid-area: chart; display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.tt-tools { display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 0 0 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tt-tools::-webkit-scrollbar { display: none; }
.tt-tools button { flex: none; height: 30px; padding: 0 10px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; transition: background 0.15s, color 0.15s; }
.tt-tools button:hover { color: var(--blue); background: var(--sky-0); }
.tt-tools button[aria-pressed="true"] { background: var(--sky-1); color: var(--blue-700); }
.tt-tools .sep { flex: none; width: 1px; height: 18px; margin: 0 6px; background: var(--line); }
/* 새로 맞춤 · 크게 보기 단추는 도구 줄을 옆으로 넘겨도 오른쪽 끝에 붙어 있다(휴대폰에서 크게 본 뒤 닫는 단추를 못 찾던 문제). 왼쪽 흰 번짐이 "옆에 더 있음" 표시도 겸한다 */
.tt-tools-r { position: sticky; right: 0; z-index: 1; display: flex; align-items: center; gap: 2px; height: 100%; margin-left: auto; padding: 0 8px; background: #fff; box-shadow: -14px 0 12px -4px #fff; }
.tt-tools .tt-ic { display: grid; place-items: center; width: 32px; padding: 0; }
.tt-tools .tt-ic .ico { width: 17px; height: 17px; }
.tt-stage { position: relative; min-height: 0; }
.tt-stage::before { content: ""; position: absolute; left: 0; right: 64px; top: 0; bottom: 30px; background: url("art/emblem.webp") center 40% / 190px auto no-repeat; opacity: 0.07; pointer-events: none; }
.tt-canvas { position: absolute; inset: 0; }
.tt-legend { position: absolute; left: 12px; top: 8px; right: 76px; z-index: 3; display: grid; gap: 3px; font-size: 12.5px; line-height: 1.3; color: var(--ink-3); pointer-events: none; }
.tt-legend div { display: flex; flex-wrap: wrap; gap: 2px 10px; }
.tt-legend b { font-weight: 700; }
.tt-legend .t { font-weight: 800; color: var(--navy); }
.tt-legend .ma5 { color: #9a6400; }
.tt-legend .ma20 { color: var(--blue); }
.tt-legend .ma60 { color: #7a5cc4; }
.tt-chart.is-full { position: fixed; inset: 0; z-index: 90; border-radius: 0; border: 0; }

/* 호가 */
.tt-book { grid-area: book; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto minmax(0, 1fr) auto; overflow: hidden; }
.tt-cols, .tt-row { display: grid; grid-template-columns: 1.05fr 1fr 1fr; align-items: center; padding: 0 14px; }
.tt-cols { height: 26px; font-size: 12px; color: var(--ink-3); }
.tt-cols small { font-size: inherit; }
.tt-cols span:nth-child(n + 2), .tt-row span:nth-child(n + 3) { text-align: right; }
.tt-rows { display: grid; grid-auto-rows: 20px; overflow: hidden; }
.tt-row { width: 100%; text-align: left; }
.tt-dlg-sub { font-size: 14px; color: var(--ink-3); }
.tt-dlg-sub b { margin-right: 6px; color: var(--ink); }
.tt-rows.asks { align-content: end; }
.tt-rows.bids { align-content: start; }
.tt-row { position: relative; height: 20px; font-size: 12.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.tt-row i { position: absolute; right: 0; top: 1px; bottom: 1px; width: var(--w, 0%); transition: width 0.25s linear; }
.tt-row.ask i { background: var(--dn-soft); }
.tt-row.bid i { background: var(--up-soft); }
.tt-row span { position: relative; z-index: 1; }
.tt-row.ask span:nth-child(2) { color: var(--dn); font-weight: 700; }
.tt-row.bid span:nth-child(2) { color: var(--up); font-weight: 700; }
.tt-row:hover { box-shadow: inset 0 0 0 1px var(--sky-3); }
.tt-row.mine::before { content: ""; position: absolute; left: 5px; top: 7px; z-index: 2; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.tt-mid { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-block: 1px solid var(--line); }
.tt-mid b { font-size: 19px; font-weight: 800; line-height: 1; }
.tt-mid .arw { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; }
.tt-mid .arw.up { border-bottom: 7px solid var(--up-fill); }
.tt-mid .arw.dn { border-top: 7px solid var(--dn-fill); }
.tt-mid small { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.tt-ratio { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; height: 32px; padding: 0 14px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 800; white-space: nowrap; }
.tt-ratio i { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--up-fill) 0 var(--b, 50%), var(--dn-fill) var(--b, 50%) 100%); transition: background 0.3s; }

/* 주문 */
.tt-order { grid-area: order; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 11px; padding: 14px; }
.tt-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tt-sel, .tt-lev { height: 38px; padding: 0 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: 14px; font-weight: 800; color: var(--navy); transition: border-color 0.2s; }
.tt-sel { padding-right: 30px; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f4d76' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 9px center / 16px no-repeat; }
.tt-lev { display: flex; align-items: center; justify-content: space-between; }
.tt-lev .ico { width: 16px; height: 16px; color: var(--ink-3); }
.tt-sel:hover, .tt-lev:hover { border-color: var(--blue); }
.tt-types { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tt-types::-webkit-scrollbar { display: none; }
.tt-types button { flex: none; position: relative; height: 36px; padding: 0 10px; font-size: 14px; font-weight: 800; color: var(--ink-3); white-space: nowrap; }
.tt-types button:first-child { padding-left: 2px; }
.tt-types button[aria-pressed="true"] { color: var(--navy); }
.tt-types button[aria-pressed="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.tt-types button:first-child[aria-pressed="true"]::after { left: 0; }
.tt-field { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 8px 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--sky-0); transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.tt-field[hidden] { display: none; }
.tt-field:focus-within { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(30, 107, 255, 0.14); }
.tt-field > span { flex: none; font-size: 13px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.tt-field input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; outline: none; font: inherit; font-size: 16px; font-weight: 800; color: var(--navy); text-align: right; }
.tt-field input::placeholder { color: #9aa5c3; font-weight: 700; }
.tt-field input:disabled { color: var(--ink-3); -webkit-text-fill-color: var(--ink-3); opacity: 1; }
.tt-field em { flex: none; margin-right: 4px; font-style: normal; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.tt-field button { flex: none; height: 28px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 800; color: var(--blue-700); white-space: nowrap; }
.tt-field button:hover { border-color: var(--blue); }
.tt-field.flash { animation: ttflash 0.6s ease-out; }
@keyframes ttflash { 0% { background: var(--gold-100); border-color: var(--gold); } 100% { background: var(--sky-0); } }
/* 수량 막대 */
.tt-slide { display: grid; gap: 2px; padding: 2px 2px 0; }
.tt-slide input { width: 100%; height: 20px; margin: 0; background: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
.tt-slide input::-webkit-slider-runnable-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--blue) 0 var(--p, 0%), var(--sky-2) var(--p, 0%) 100%); }
.tt-slide input::-moz-range-track { height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--blue) 0 var(--p, 0%), var(--sky-2) var(--p, 0%) 100%); }
.tt-slide input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%; border: 3px solid var(--blue); background: #fff; box-shadow: 0 2px 5px rgba(15, 60, 140, 0.25); }
.tt-slide input::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; border: 3px solid var(--blue); background: #fff; box-shadow: 0 2px 5px rgba(15, 60, 140, 0.25); }
.tt-marks { display: flex; justify-content: space-between; }
.tt-marks button { min-width: 34px; height: 22px; font-size: 12px; font-weight: 700; color: var(--ink-3); }
.tt-marks button:first-child { text-align: left; }
.tt-marks button:last-child { text-align: right; }
.tt-marks button:hover { color: var(--blue); }
.tt-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.tt-checks label { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.tt-checks input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.tt-tpsl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tt-tpsl[hidden] { display: none; }
.tt-tpsl .tt-field { height: 40px; padding-right: 10px; }
.tt-tpsl .tt-field input { font-size: 14.5px; }
.tt-kv { display: grid; gap: 7px; margin: 0; }
.tt-kv div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; font-size: 13px; line-height: 1.35; }      /* 값이 길면(청산가 두 개 등) 값만 아랫줄 오른쪽으로 내린다 - 좁은 주문 칸을 밀어내지 않게 */
.tt-kv dt { color: var(--ink-3); white-space: nowrap; }
.tt-kv dd { margin: 0 0 0 auto; font-weight: 700; color: var(--ink); text-align: right; white-space: nowrap; }
.tt-go { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tt-go button { display: grid; align-content: center; justify-items: center; gap: 1px; height: 54px; border-radius: 13px; color: #fff; font-size: 16.5px; font-weight: 800; line-height: 1.15; transition: transform 0.15s var(--ease), filter 0.2s; }
.tt-go button small { font-size: 12px; font-weight: 700; }
.tt-go button:hover { filter: brightness(1.05); transform: translateY(-1px); }
.tt-go button:active { transform: scale(0.98); }
.tt-long { background: linear-gradient(180deg, #0c8a5c 0%, #077048 100%); box-shadow: 0 6px 14px rgba(7, 112, 72, 0.28); }      /* 흰 글자 대비 4.4~6.1 */
.tt-short { background: linear-gradient(180deg, #d42640 0%, #b81c34 100%); box-shadow: 0 6px 14px rgba(184, 28, 52, 0.26); }      /* 흰 글자 대비 5.1~6.5 */
.tt-fee { font-size: 12px; color: var(--ink-3); text-align: center; }

/* 내 거래(포지션 · 주문 · 내역) */
.tt-pos { grid-area: pos; display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 292px; overflow: hidden; }
.tt-tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tt-tabs::-webkit-scrollbar { display: none; }
.tt-tabs button { flex: none; position: relative; height: 44px; padding: 0 12px; font-size: 14px; font-weight: 800; color: var(--ink-3); white-space: nowrap; }
.tt-tabs button span { margin-left: 4px; color: var(--blue); }
.tt-tabs button[aria-pressed="true"] { color: var(--navy); }
.tt-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--blue); }
.tt-pane { overflow: auto; }
.tt-pane[hidden] { display: none; }
.tt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tt-table th { height: 34px; padding: 0 12px; background: var(--sky-0); border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--ink-3); text-align: left; white-space: nowrap; }
.tt-table td { height: 56px; padding: 6px 12px; border-bottom: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.tt-table .tt-main td { border-bottom: 0; }
.tt-table .tt-sub td { height: auto; padding: 0 12px 10px; }
.tt-subrow { display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--sky-0); font-size: 13px; color: var(--ink-3); }
.tt-subrow b { margin-left: 4px; color: var(--ink); }
.tt-subrow .tt-act { margin-left: auto; }
.tt-act a { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.tt-act a:hover { border-color: var(--blue); color: var(--blue); }
.tt-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; padding: 8px 18px 14px; }
.tt-info div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 40px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.tt-info dt { color: var(--ink-3); }
.tt-info dd { margin: 0; font-weight: 700; color: var(--ink); }
.tt-table .r { text-align: right; }
.tt-table b { font-weight: 800; }
.tt-table small { display: block; font-size: 12px; color: var(--ink-3); }
.tt-psym { display: flex; align-items: center; gap: 9px; }
.tt-psym img, .tt-psym .tt-ini { flex: none; width: 26px; height: 26px; border-radius: 50%; }
.tt-act { display: flex; justify-content: flex-end; gap: 6px; }
.tt-act button { height: 30px; padding: 0 10px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font-size: 12.5px; font-weight: 800; color: var(--navy); white-space: nowrap; transition: border-color 0.15s, color 0.15s; }
.tt-act button:hover { border-color: var(--blue); color: var(--blue); }
.tt-none { padding: 44px 16px; text-align: center; font-size: 14px; color: var(--ink-3); }
.tt-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.tt-sum div { display: grid; gap: 2px; padding: 12px 16px; border-right: 1px solid var(--line); }
.tt-sum div:last-child { border-right: 0; }
.tt-sum dt { font-size: 12.5px; color: var(--ink-3); }
.tt-sum dd { margin: 0; font-size: 17px; font-weight: 800; }

/* 최근 체결 */
.tt-tape { grid-area: tape; display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; }
.tt-tape .tt-cols { grid-template-columns: 1.05fr 1fr 1fr; }
.tt-tape-body { position: relative; min-height: 220px; }
.tt-trades { position: absolute; inset: 0; display: grid; grid-auto-rows: 22px; align-content: start; overflow: hidden; }
.tt-trow { display: grid; grid-template-columns: 1.05fr 1fr 1fr; align-items: center; height: 22px; padding: 0 14px; font-size: 12.5px; font-weight: 600; color: var(--ink); }
.tt-trow span:nth-child(2), .tt-trow time { text-align: right; }
.tt-trow time { color: var(--ink-3); }
.tt-trow.buy span:first-child { color: var(--up); font-weight: 700; }
.tt-trow.sell span:first-child { color: var(--dn); font-weight: 700; }
.tt-trow.new { animation: ttnew 0.5s ease-out; }
@keyframes ttnew { 0% { background: var(--sky-1); } 100% { background: none; } }

/* 자산 · 계약 정보 */
.tt-acct { grid-area: acct; display: grid; align-content: start; }
.tt-acct .tt-kv { padding: 12px 14px; }
.tt-acct .tt-head ~ .tt-head { border-top: 1px solid var(--line); }
.tt-acct-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px 14px; }
.tt-acct-btns .btn { height: 38px; font-size: 14px; border-radius: 10px; }
.tt-equity { display: grid; gap: 1px; padding: 12px 14px 0; }
.tt-equity small { font-size: 12.5px; color: var(--ink-3); }
.tt-equity b { font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--navy); }

/* 창(레버리지 · 익절/손절) */
.tt-dlg { width: min(380px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 24px 60px rgba(8, 29, 77, 0.35); }
.tt-dlg::backdrop { background: rgba(8, 29, 77, 0.45); }
.tt-dlg-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 4px 20px; }
.tt-dlg-top h2 { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--navy); }
.tt-dlg-top button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--ink-3); }
.tt-dlg-top button:hover { background: var(--sky-0); }
.tt-dlg-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 8px 20px 20px; }
.tt-levnum { display: flex; align-items: baseline; justify-content: center; gap: 2px; font-size: 40px; font-weight: 800; line-height: 1.1; color: var(--navy); }
.tt-levnum small { font-size: 22px; }
.tt-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-presets button { flex: 1 1 0; min-width: 44px; height: 36px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--sky-0); font-size: 13px; font-weight: 800; color: var(--ink-2); }
.tt-presets button:hover { border-color: var(--blue); color: var(--blue); }
.tt-presets button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tt-dlg-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── 폭에 따라 ── */
@media (max-width: 1320px) {
  /* 시세 줄의 값 일곱 개가 한 줄에 안 들어가는 폭: 숨기지 않고 두 줄로 접는다 */
  .tt-stats { flex-wrap: wrap; gap: 6px 22px; overflow: visible; }
}
@media (max-width: 1180px) {
  .tt-grid { grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: 440px auto auto auto; grid-template-areas: "chart chart" "book order" "pos pos" "tape acct"; }
  .tt-chip { flex: none; }
}
@media (max-width: 767px) {
  .tt { margin-top: 10px; padding-inline: 12px; gap: 6px; }
  .tt-panel { border-radius: 14px; }
  .tt-chip { height: 44px; padding: 0 10px; gap: 6px; }
  .tt-chip span { margin-left: 4px; }
  .tt-all { padding: 0 10px; }
  .tt-bar { flex-wrap: wrap; gap: 4px 10px; padding: 8px 12px 10px 6px; }
  .tt-sym { padding: 4px 6px; gap: 8px; }
  .tt-sym img, .tt-sym .tt-ini { width: 30px; height: 30px; }
  .tt-sym-name b { font-size: 17px; }
  .tt-last { margin-left: auto; min-width: 0; text-align: right; }
  .tt-last b { font-size: 22px; }
  /* 휴대폰: 값 줄과 차트 도구 줄은 옆으로 넘겨 본다. 오른쪽 끝을 흐리게 해 더 있다는 것을 알린다 */
  .tt-stats { flex: 1 0 100%; flex-wrap: nowrap; gap: 18px; padding: 0 26px 0 6px; overflow-x: auto; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent); }
  .tt-pick { position: fixed; left: 8px; right: 8px; top: 72px; bottom: 96px; width: auto; max-height: none; }
  .tt-pick-head, .tt-prow { grid-template-columns: minmax(0, 1fr) 84px 64px; }
  .tt-pick-head button:last-child, .tt-prow > span:last-child { display: none; }
  .tt-grid { grid-template-columns: 138px minmax(0, 1fr); grid-template-rows: 340px auto auto auto auto; grid-template-areas: "chart chart" "book order" "pos pos" "acct acct" "tape tape"; gap: 6px; }
  .tt-book { height: auto; grid-template-rows: auto auto auto auto auto auto; }
  .tt-book .tt-head small, .tt-cols span:nth-child(3), .tt-row span:nth-child(4), .tt-book .tt-cols small, .tt-lev .wd, .tt-order .tt-field em, .tt-legend .x { display: none; }
  .tt-legend { right: 70px; font-size: 12px; }
  .tt-cols, .tt-row { grid-template-columns: 1fr auto; padding: 0 10px; }
  .tt-rows { grid-auto-rows: 22px; }
  .tt-row { height: 22px; }
  .tt-mid { height: 44px; padding: 0 10px; flex-wrap: wrap; align-content: center; gap: 0 6px; }
  .tt-mid b { font-size: 16px; }
  .tt-mid small { flex: 1 0 100%; margin: 0; font-size: 12px; }
  .tt-ratio { padding: 0 10px; font-size: 12px; gap: 5px; }
  .tt-order { align-self: start; padding: 10px; gap: 8px; }      /* 주문 칸은 제 높이로, 호가 칸이 그 높이에 맞춰 줄 수를 늘린다(trade.js fitDepth) */
  .tt-modes { gap: 6px; }
  .tt-sel, .tt-lev { padding: 0 8px 0 10px; font-size: 13px; }
  .tt-sel { padding-right: 26px; background-position: right 6px center; }
  /* 주문 종류 네 개가 좁은 주문 칸에 다 보이게 고르게 편다("추적 손절"이 잘려 보였다) */
  .tt-types { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 0; }
  .tt-types button, .tt-types button:first-child { min-width: 44px; height: 44px; padding: 0 2px; font-size: 13px; }
  .tt-types button[aria-pressed="true"]::after { left: 0; right: 0; }
  .tt-field { padding: 0 6px 0 10px; gap: 6px; }
  .tt-field button { padding: 0 7px; }
  .tt-field > span { font-size: 12.5px; }
  .tt-field input, .tt-tpsl .tt-field input { font-size: 16px; }      /* 16px 밑이면 아이폰이 누르는 순간 화면을 확대한다 */
  .tt-tpsl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tt-kv div { font-size: 12.5px; }
  .tt-go { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tt-go button { height: 46px; font-size: 16px; }
  .tt-pos { min-height: 0; }
  /* 내 거래 탭 다섯 개가 한 줄에 다 보이게("계약 정보"가 잘려 보였다) */
  .tt-tabs { padding: 0 6px; gap: 0; justify-content: space-between; }
  .tt-tabs button { min-width: 44px; padding: 0 6px; font-size: 13.5px; }
  .tt-tabs button span { margin-left: 3px; }
  .tt-tabs button[aria-pressed="true"]::after { left: 6px; right: 6px; }
  .tt-tape .tt-cols, .tt-trow { grid-template-columns: 1.05fr 1fr 1fr; padding: 0 14px; }
  .tt-tape .tt-cols span:nth-child(3) { display: block; }
  .tt-tape-body { min-height: 198px; }
  /* 포지션 · 주문 표: 줄 묶음으로 */
  .tt-table thead { display: none; }
  .tt-table, .tt-table tbody { display: block; }
  .tt-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tt-table td { display: grid; gap: 1px; height: auto; padding: 0; border: 0; white-space: normal; text-align: left; }
  .tt-table td.r { text-align: left; }
  .tt-table td[data-l]::before { content: attr(data-l); font-size: 12px; font-weight: 600; color: var(--ink-3); }
  .tt-table td.wide { grid-column: 1 / -1; }
  .tt-table .tt-main { border-bottom: 0; padding-bottom: 6px; }
  .tt-table .tt-sub { display: block; padding: 0 14px 12px; }
  .tt-table .tt-sub td { display: block; padding: 0; }
  .tt-subrow { flex-wrap: wrap; gap: 6px 14px; padding: 10px 12px; }
  .tt-subrow .tt-act { flex: 1 0 100%; margin: 2px 0 0; }
  .tt-info { grid-template-columns: minmax(0, 1fr); padding: 4px 14px 10px; }
  .tt-act { justify-content: flex-start; flex-wrap: wrap; }
  .tt-act button, .tt-act a { height: 44px; }
  .tt-sum dd { font-size: 15px; }
  .tt-sum div { padding: 10px 12px; }
}

/* ══ UI/UX 규칙 보정(2026-11-19, ui-ux-pro-max 점검) ══ */
.tt-order .field-err { margin: -2px 0 0; }
.tt-dlg-top button { width: 44px; height: 44px; }
/* 칸 안의 작은 단추(현재가 · 단위)는 보이는 크기는 그대로, 누르는 곳만 위아래로 넓힌다(칸 높이 48px 안) */
.tt-field button { position: relative; min-width: 44px; }
.tt-field button::after { content: ""; position: absolute; inset: -9px -2px; }
@media (max-width: 767px) {
  .tt-all { height: 44px; }
  .tt-sel, .tt-lev { height: 44px; }
  .tt-tpsl .tt-field { height: 48px; }
  .tt-acct-btns .btn { height: 44px; }
  /* 차트 도구 줄: 단추 폭 44px, 누르는 곳은 줄 높이(44px) 전체 */
  .tt-tools button { position: relative; min-width: 44px; }
  .tt-tools button::after { content: ""; position: absolute; inset: -7px 0; }
  .tt-tools .tt-ic { width: 44px; }
  /* 비율 단추(25 · 50 · 75 · 100%)는 44px 높이로, 0% 는 막대를 끌면 되므로 뺀다 */
  .tt-marks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 6px; }
  .tt-marks button, .tt-marks button:first-child, .tt-marks button:last-child { display: flex; align-items: flex-start; justify-content: center; min-width: 0; height: 44px; padding-top: 4px; text-align: center; }      /* 글자는 막대 바로 아래, 누르는 곳은 44px */
  .tt-marks button:first-child { display: none; }
  /* 체크 칸은 두 칸씩, 줄 높이 44px */
  .tt-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; }
  .tt-checks label { min-height: 44px; }
}
/* 칸에 잘리는 초점 테두리는 안쪽으로: 호가 줄 · 주문 종류 탭 */
.tt-row:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; border-radius: 4px; }
.tt-types button:focus-visible { outline-offset: -3px; }

/* ══ 이용 화면(이벤트 · 공지 · 고객센터 · 토너먼트 · 룰렛 · 출석 · 지인추천 · 쿠폰)과 회원 화면(자산 · 입금 · 출금 · 내역 · 알림 · 내 정보) ══
   그림은 이벤트 카드와 화면 머리에만 쓰고, 표 · 입력 · 금액은 흰 면 위에 글자와 숫자로만 보인다. 상태는 알약 없이 굵은 글자와 색으로. */

.hint.top, .notes.top, .kv.tight { margin-top: 12px; }
.hint.pad { padding: 0 20px 16px; }
.kv.tight > div { min-height: 40px; }
.kv dt span { margin-left: 4px; font-weight: 800; color: var(--blue-600); }

/* ── 이벤트 목록 ── */
.ev-tools { padding: 12px 14px; }
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ev { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; overflow: hidden; background: #fff; border: 3px solid #fff; border-radius: 22px; box-shadow: var(--shadow-1); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.ev[hidden] { display: none; }
.ev:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.ev > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px 18px 0 0; }
.ev-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 16px 16px; }
.ev-body b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 16.5px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.ev-body strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.9em; font-size: 14.5px; font-weight: 700; line-height: 1.45; color: var(--blue-700); }
.ev-meta { display: grid; gap: 3px; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.ev-meta div { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; font-size: 13px; line-height: 1.5; }
.ev-meta dt { color: var(--ink-3); }
.ev-meta dd { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); }

/* ── 이벤트 · 공지 본문 ── */
.doc { overflow: hidden; }
.doc-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.doc-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.doc-head h2 { font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.doc-head p { max-width: 74ch; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.doc-body { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 12px; padding: 22px 26px 28px; }
.doc-body > * { max-width: 100%; }
.doc-body p { max-width: 74ch; font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.doc-body h3 { margin-top: 12px; font-family: var(--display); font-size: 17.5px; font-weight: 700; line-height: 1.4; color: var(--navy); }
.doc-body h3:first-child { margin-top: 0; }
.doc-body .notes { max-width: 80ch; }
.doc-body .notes li { font-size: 15px; line-height: 1.7; }
.doc-body .tbl-wrap { justify-self: stretch; border: 1px solid var(--line); border-radius: 14px; }
.tbl.grid th, .tbl.grid td { white-space: nowrap; }
.tbl.grid td { height: 46px; }
.doc-foot { display: flex; justify-content: center; gap: 8px; padding: 16px; border-top: 1px solid var(--line); }
.doc-foot .ico { width: 16px; height: 16px; }
/* 비율 · 금액 표(짧은 이름과 값) */
.rates { justify-self: stretch; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.rates li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 14px; background: var(--sky-0); border: 1px solid var(--line); }
.rates span { font-size: 13px; color: var(--ink-3); }
.rates b { font-family: var(--display); font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--blue-600); }
/* 이름 : 값 표 */
.pairs { border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 15px; }
.pairs th, .pairs td { padding: 10px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.6; }
.pairs tr:last-child th, .pairs tr:last-child td { border-bottom: 0; }
.pairs th { white-space: nowrap; font-weight: 700; color: var(--ink-2); background: var(--sky-0); }
.pairs td { font-weight: 700; color: var(--navy); }
/* 차례 목록: 번호는 실제 순서일 때만 */
.olist { display: grid; gap: 8px; max-width: 80ch; margin: 0; padding: 0; list-style: none; }
.olist li { position: relative; padding-left: 36px; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.olist li::before { content: counter(list-item); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-1); font-size: 13px; font-weight: 800; color: var(--navy); }
/* 짧은 이름 목록(은행 · 게임사) */
.cols-list { justify-self: stretch; columns: 3; column-gap: 28px; max-width: 720px; margin: 0; padding: 0; list-style: none; }
.cols-list li { position: relative; break-inside: avoid; padding: 4px 0 4px 14px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.cols-list li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 5px; height: 5px; border-radius: 50%; background: var(--sky-3); }
/* 본문 옆: 요약 + 다른 글 */
.side-cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 18px 18px; }
.side-cta .kv > div { align-items: flex-start; }
.mini-list a { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); transition: background 0.2s; }
.mini-list a:last-child { border-bottom: 0; }
.mini-list a:hover { background: var(--sky-0); }
.mini-list img { width: 104px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.mini-list b { font-size: 14.5px; font-weight: 800; line-height: 1.4; color: var(--ink); }

/* ── 공지 목록 ── */
.nt-tools { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.nt { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 58px; padding: 8px 20px 8px 18px; border-bottom: 1px solid var(--line); transition: background 0.2s; }
.nt:last-child { border-bottom: 0; }
.nt:hover { background: var(--sky-0); }
.nt i { justify-self: center; width: 6px; height: 6px; border-radius: 50%; background: var(--sky-3); }
.nt span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.nt.pin span { font-weight: 800; }
.nt:hover span { color: var(--blue); }
.nt time { font-size: 13.5px; color: var(--ink-3); }

/* ── 고객센터 ── */
.chat-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; justify-items: start; gap: 8px; min-height: 196px; padding: 22px 138px 22px 22px; border-radius: 22px; color: #fff; background: linear-gradient(150deg, #2a72f5 0%, var(--blue-600) 46%, var(--blue-700) 100%); box-shadow: 0 14px 32px rgba(30, 107, 255, 0.28); }
.chat-card.plain { min-height: 0; padding-right: 22px; }
.chat-card h2 { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.3; }
.chat-card p { font-size: 14.5px; line-height: 1.6; color: #fff; }
.chat-card .btn { margin-top: 6px; }
.chat-card img { position: absolute; right: -4px; bottom: 0; width: auto; height: 172px; max-width: none; pointer-events: none; }
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.form > .btn:not(.btn-block) { justify-self: start; min-width: 168px; }
.field .sel { width: 100%; height: 48px; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; }
.field-top em { font-style: normal; font-weight: 600; color: var(--ink-3); }
.area { width: 100%; min-height: 168px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--sky-0); font: inherit; font-size: 15.5px; line-height: 1.6; color: var(--ink); resize: vertical; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.area::placeholder { color: #8894b5; }
.area:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(30, 107, 255, 0.14); }
.faq button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 56px; padding: 10px 14px 10px 20px; text-align: left; font-size: 15px; font-weight: 800; line-height: 1.45; color: var(--ink); }
.faq button .ico { width: 18px; height: 18px; color: var(--ink-3); transition: transform 0.25s var(--ease); }
.faq button[aria-expanded="true"] .ico { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.faq-a[hidden] { display: none; }

/* ── 토너먼트 ── */
.race-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 22px; }
.race-bar > div:first-child { display: grid; gap: 2px; }
.race-bar b { font-family: var(--display); font-size: 20px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.race-bar span { font-size: 14px; color: var(--ink-3); }
.race-left { display: flex; align-items: baseline; gap: 10px; }
.race-left b { font-size: 26px; color: var(--blue-600); white-space: nowrap; }
.races { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.race { overflow: hidden; }
.race-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 14px; }
.race-top h2 { font-family: var(--display); font-size: 18.5px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.race-top small { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-3); }
.race-prize { flex: none; text-align: right; }
.race-prize span { display: block; font-size: 12.5px; color: var(--ink-3); }
.race-prize b { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1.15; color: #b77600; white-space: nowrap; }
.race-dist { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-block: 1px solid var(--line); background: var(--sky-0); }
.race-dist li { display: grid; justify-items: center; gap: 1px; padding: 9px 4px; border-right: 1px solid var(--line); }
.race-dist li:last-child { border-right: 0; }
.race-dist span { font-size: 12.5px; color: var(--ink-3); }
.race-dist b { font-size: 14.5px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.rank { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; height: 46px; padding: 0 20px 0 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.rank i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sky-1); font-style: normal; font-size: 13px; font-weight: 800; color: var(--navy); }
.rank.top i { background: var(--gold); color: var(--navy-900); }
.rank span { font-weight: 700; color: var(--ink); }
.rank b { font-weight: 800; color: var(--ink); }
.race-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 16px 16px; }

/* ── 포인트 룰렛 ── */
.wheel-wrap { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; padding: 38px 20px 28px; overflow: hidden; border-radius: inherit; }   /* 판이 돌 때 네모 상자 모서리가 화면 밖으로 나가 가로 넘침이 생기지 않게 */
.wheel { position: relative; width: min(380px, 78vw); aspect-ratio: 1; }
.wheel-disc { position: absolute; inset: 0; border-radius: 50%; border: 12px solid var(--navy); box-shadow: 0 0 0 4px var(--gold), 0 18px 40px rgba(15, 60, 140, 0.25); transition: transform 4s cubic-bezier(0.12, 0.72, 0.1, 1); }
.wheel-disc span { position: absolute; left: 50%; top: 50%; width: 50%; height: 24px; margin-top: -12px; padding-right: 16px; transform-origin: 0 50%; text-align: right; font-size: 15px; font-weight: 800; line-height: 24px; white-space: nowrap; }
.wheel-pegs { position: absolute; inset: 0; }
.wheel-pegs i { position: absolute; left: 50%; top: 0; width: 10px; height: 50%; margin-left: -5px; transform-origin: 50% 100%; }
.wheel-pegs i::before { content: ""; position: absolute; left: 0; top: -11px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px #fff; }
.wheel-pin { position: absolute; left: 50%; top: -18px; z-index: 3; width: 32px; height: 38px; margin-left: -16px; background: var(--gold); clip-path: polygon(50% 100%, 0 0, 100% 0); filter: drop-shadow(0 4px 4px rgba(11, 42, 111, 0.3)); }
.wheel-hub { position: absolute; left: 50%; top: 50%; z-index: 2; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; border: 6px solid #fff; background: linear-gradient(180deg, #3a82ff 0%, var(--blue) 100%); color: #fff; font-family: var(--display); font-size: 19px; font-weight: 700; box-shadow: 0 8px 18px rgba(11, 42, 111, 0.35); transition: transform 0.15s var(--ease); }
.wheel-hub:hover { transform: scale(1.05); }
.wheel-hub:active { transform: scale(0.97); }
.wheel-result { min-height: 1.5em; font-size: 15px; font-weight: 700; color: var(--ink-2); text-align: center; }
.wheel-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.prizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.prizes li { padding: 9px 12px; border-radius: 10px; background: var(--sky-0); border: 1px solid var(--line); font-size: 14.5px; font-weight: 800; color: var(--navy); text-align: center; }
.prizes li:first-child { grid-column: 1 / -1; padding: 12px; background: var(--gold-100); border-color: rgba(255, 180, 0, 0.7); font-family: var(--display); font-size: 20px; font-weight: 700; color: #8a5a00; }

/* ── 출석 체크: 출석한 날에는 천사 고리가 뜬다 ── */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 16px 18px 12px; }
.cal .wd { height: 26px; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.d { position: relative; display: grid; place-items: center; height: 58px; border-radius: 14px; background: var(--sky-0); font-size: 15px; font-weight: 700; color: var(--ink-2); }
.d.on { background: var(--blue); color: #fff; padding-top: 8px; }
.d.on::after { content: ""; position: absolute; top: 7px; left: 50%; width: 20px; height: 7px; margin-left: -10px; border: 2px solid var(--gold); border-radius: 50%; }
.d.today { background: #fff; box-shadow: inset 0 0 0 2px var(--gold); font-weight: 800; color: var(--navy); }
.d.next { background: none; color: #647096; }      /* 아직 안 온 날도 읽히게(흰 바탕 4.5:1) */
.cal-legend { display: flex; gap: 16px; padding: 0 20px 14px; font-size: 13px; color: var(--ink-3); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .d { width: 22px; height: 18px; border-radius: 6px; padding: 0; }
.cal-legend .d.on::after { top: 3px; width: 10px; height: 4px; margin-left: -5px; border-width: 1.5px; }
.streak { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 16px 18px 12px; list-style: none; }
.streak li { display: grid; justify-items: center; gap: 1px; padding: 8px 2px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); }
.streak span { font-size: 12.5px; color: var(--ink-3); }
.streak b { font-size: 13px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.streak li.done { background: var(--sky-1); border-color: var(--sky-2); }
.streak li.done b { color: var(--ink-3); }
.streak li.next { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.14); }
.streak li.big { background: var(--gold-100); border-color: rgba(255, 180, 0, 0.7); }
.streak li.big b { color: #8a5a00; }
.need { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 20px 20px; }
.need-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; color: var(--ink-3); }
.need-row b { font-size: 15px; font-weight: 800; color: var(--ink); }
.need-bar { height: 10px; margin-bottom: 6px; border-radius: 999px; background: var(--sky-1); overflow: hidden; }
.need-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #5c9bff, var(--blue)); }
.need .btn { margin-top: 6px; }

/* ── 지인추천 ── */
.perks4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.perks4 > div { display: grid; align-content: start; gap: 3px; padding: 18px 22px 20px; border-right: 1px solid var(--line); }
.perks4 > div:last-child { border-right: 0; }
.perks4 small { font-size: 13.5px; font-weight: 700; color: var(--ink-3); }
.perks4 b { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.3; color: var(--blue-600); }
.perks4 span { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.code-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--ink-3); }
.code-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--sky-0); border: 1.5px dashed var(--sky-3); font-size: 14.5px; font-weight: 800; letter-spacing: 0.04em; color: var(--navy); }
.code-btn:hover { border-color: var(--blue); color: var(--blue); }
.code-btn .ico { width: 16px; height: 16px; }
.panel-head .days button { height: 32px; padding: 0 10px; font-size: 13.5px; }

/* ── 쿠폰 ── */
.code-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.search.plain input { height: 52px; padding-left: 16px; font-weight: 700; letter-spacing: 0.02em; }

/* ── 자산 센터 ── */
.asset-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-right: 24px; }
.asset-total { display: grid; gap: 3px; padding: 22px 24px; }
.asset-total small { font-size: 13.5px; color: var(--ink-3); }
.asset-total b { font-family: var(--display); font-size: 36px; font-weight: 700; line-height: 1.15; color: var(--navy); }
.asset-total span { font-size: 13.5px; color: var(--ink-3); }
.asset-acts { display: flex; gap: 8px; flex: none; }
.purse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.purse > div { display: grid; align-content: start; gap: 2px; padding: 18px 20px 12px; border-right: 1px solid var(--line); }
.purse > div:last-child { border-right: 0; }
.purse img { width: 40px; height: 40px; margin-bottom: 6px; }
.purse small { font-size: 13.5px; color: var(--ink-3); }
.purse b { font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--ink); }
.purse span { font-size: 13px; color: var(--ink-3); }
.purse-acts { display: flex; flex-wrap: wrap; gap: 0 2px; margin: 8px 0 0 -8px; }

/* ── 입금 · 출금 신청 ── */
.step { padding: 20px 22px; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step[hidden] { display: none; }
.step-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--display); font-size: 17.5px; font-weight: 700; color: var(--navy); }
.step-h i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); font-family: var(--body); font-style: normal; font-size: 14px; font-weight: 800; color: #fff; }
.opts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opt { display: grid; align-content: center; gap: 2px; min-height: 66px; padding: 11px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-align: left; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s; }
.opt b { font-size: 15px; font-weight: 800; color: var(--ink); }
.opt small { font-size: 12.5px; line-height: 1.45; color: var(--ink-3); }
.opt .plus { margin-top: 2px; font-size: 13px; font-weight: 800; color: #9a6400; }
.opt:hover { border-color: var(--blue); }
.opt[aria-pressed="true"] { border-color: var(--blue); background: #f3f8ff; box-shadow: inset 0 0 0 1px var(--blue); }
.opt[aria-pressed="true"] b { color: var(--blue-700); }
.amount { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.amount .stake { height: 58px; background: #fff; }
.amount .stake input { font-size: 22px; }
.quick-amt { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.quick-amt.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quick-amt button { height: 42px; border-radius: 10px; background: var(--sky-0); border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 800; color: var(--ink-2); }
.quick-amt button:hover { border-color: var(--blue); color: var(--blue); }
.addr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--sky-0); border: 1.5px solid var(--line); }
.addr code { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-family: var(--body); font-size: 15px; font-weight: 800; color: var(--navy); }
.acct-box { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--sky-0); border: 1.5px solid var(--line); }
.acct-box b { font-size: 16px; font-weight: 800; color: var(--navy); }
.acct-box span { font-size: 13.5px; color: var(--ink-3); }
.sum-total { display: grid; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.sum-total b { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.25; color: #b77600; }

/* ── 내역 ── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats > div { display: grid; gap: 2px; padding: 14px 20px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats dt { font-size: 13px; color: var(--ink-3); }
.stats dd { margin: 0; font-size: 19px; font-weight: 800; color: var(--ink); }
.cal-legend + .stats { border-top: 1px solid var(--line); border-bottom: 0; }
.filters { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.filters > * { max-width: 100%; }
.days.wide { display: flex; overflow-x: auto; scrollbar-width: none; }
.days.wide::-webkit-scrollbar { display: none; }
.days.wide button { flex: none; white-space: nowrap; }
.tbl tbody tr[hidden] { display: none; }

/* ── 알림 ── */
.note-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.note-item[hidden] { display: none; }
.note-item:last-child { border-bottom: 0; }
.note-item img { width: 40px; height: 40px; }
.note-item b { display: block; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.note-item p { font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.note-item time { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.note-item.new { background: #f6faff; }
.note-item.new b { font-weight: 800; color: var(--ink); }
.note-item.new b::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--live); vertical-align: 2px; }
.note-item.new p { color: var(--ink-2); }

/* ── 내 정보 ── */
.who { display: flex; align-items: center; gap: 18px; padding: 22px 26px; }
.who-ava { flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--sky-1) url("art/emblem.webp") center / 74% no-repeat; box-shadow: inset 0 0 0 3px #fff, 0 0 0 2px var(--gold); }
.who-name { display: grid; gap: 4px; flex: 1; min-width: 0; }
.who-name b { font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.25; color: var(--navy); }
.who-name span { font-size: 14px; color: var(--ink-3); }
.who-stats { display: flex; gap: 32px; margin: 0; }
.who-stats div { display: grid; gap: 1px; text-align: right; }
.who-stats dt { font-size: 13px; color: var(--ink-3); }
.who-stats dd { margin: 0; font-size: 18px; font-weight: 800; color: var(--ink); }
.field input[readonly] { background: var(--sky-1); color: var(--ink-3); }
.acct-links a { display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 14px 10px 18px; border-bottom: 1px solid var(--line); transition: background 0.2s; }
.acct-links a:last-child { border-bottom: 0; }
.acct-links a:hover { background: var(--sky-0); }
.acct-links img { width: 40px; height: 40px; }
.acct-links span { flex: 1; min-width: 0; }
.acct-links b { display: block; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.acct-links small { font-size: 13px; color: var(--ink-3); }
.acct-links .ico { width: 18px; height: 18px; color: var(--blue); }

@media (max-width: 1180px) {
  .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .streak { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .perks4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks4 > div:nth-child(2n) { border-right: 0; }
  .perks4 > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .purse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purse > div:nth-child(2n) { border-right: 0; }
  .purse > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 1023px) {
  /* 한 줄로 내려오면 칸 순서를 다시 잡는다: 본문 첫 칸 → 지금 필요한 옆 칸(m-2) → 긴 목록(m-3) → 안내(m-4) */
  .reflow > .stack:first-child, .reflow > aside { display: contents; }
  .reflow .m-2 { order: 2; }
  .reflow .m-3 { order: 3; }
  .reflow .m-4 { order: 4; }
  .races { grid-template-columns: minmax(0, 1fr); }
  .opts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opts.three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .hint.pad { padding: 0 16px 14px; }
  .ev-tools { padding: 10px; }
  .ev-tools .picks, .filters .picks { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .ev-tools .picks::-webkit-scrollbar, .filters .picks::-webkit-scrollbar { display: none; }
  .ev-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .ev { border-radius: 18px; }
  .ev > img { border-radius: 15px 15px 0 0; }
  .doc-head { padding: 18px 16px 14px; }
  .doc-head h2 { font-size: 21px; }
  .doc-body { padding: 16px 16px 22px; }
  .doc-body p { font-size: 15px; }
  .pairs { font-size: 14px; }
  .pairs th, .pairs td { padding: 9px 12px; }
  .pairs th { white-space: normal; min-width: 96px; }
  .cols-list { columns: 2; column-gap: 18px; }
  .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-foot .btn { padding: 0 14px; }
  .nt { min-height: 56px; padding: 8px 14px 8px 12px; gap: 10px; }
  .nt span { font-size: 15px; }
  .nt time { font-size: 12.5px; }
  .chat-card { min-height: 176px; }
  .race-bar { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
  .race-left b { font-size: 22px; }
  .race-top { padding: 14px 14px 12px; }
  .race-top h2 { font-size: 16.5px; }
  .race-prize b { font-size: 21px; }
  .race-dist b { font-size: 13px; }
  .rank { padding: 0 14px 0 12px; }
  .wheel-wrap { padding: 32px 12px 22px; }
  .wheel-disc span { font-size: 13.5px; padding-right: 12px; }
  .wheel-hub { width: 88px; height: 88px; margin: -44px 0 0 -44px; font-size: 17px; }
  .cal { gap: 4px; padding: 12px 12px 10px; }
  .d { height: 46px; border-radius: 10px; font-size: 14px; }
  .d.on { padding-top: 7px; }
  .d.on::after { top: 4px; width: 16px; height: 6px; margin-left: -8px; }
  .cal-legend { padding: 0 14px 12px; }
  .streak { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; padding: 12px 12px 10px; }
  .need { padding: 14px 16px 18px; }
  .perks4 > div { padding: 14px 16px 16px; }
  .perks4 b { font-size: 18.5px; }
  .asset-top { flex-direction: column; align-items: stretch; gap: 0; padding: 0 16px 16px; }
  .asset-total { padding: 18px 16px 14px; }
  .asset-top .asset-total { padding: 18px 0 14px; }
  .asset-total b { font-size: 30px; }
  .asset-acts .btn { flex: 1; }
  .purse > div { padding: 14px 14px 8px; }
  .purse b { font-size: 17.5px; }
  .step { padding: 16px; }
  .opts { gap: 6px; }
  .opts.two { grid-template-columns: minmax(0, 1fr); }
  .quick-amt { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .quick-amt.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stats, .stats.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .stats > div:nth-child(2n) { border-right: 0; }
  .stats.three > div:nth-child(3) { grid-column: 1 / -1; border-right: 0; border-bottom: 0; }
  .stats dd { font-size: 17px; }
  .filters { padding: 10px; }
  .note-item { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; }
  .note-item img { width: 36px; height: 36px; grid-row: span 2; }
  .note-item time { grid-column: 2; }
  .who { flex-wrap: wrap; gap: 14px; padding: 18px 16px; }
  .who-ava { width: 64px; height: 64px; }
  .who-name b { font-size: 21px; }
  .who-stats { width: 100%; justify-content: space-between; gap: 12px; }
  .who-stats div { text-align: left; }
  .tbl .hide-m { display: none; }
  /* 자금 내역 · 배팅내역 표: 좁은 화면에서는 줄마다 두세 줄짜리 묶음으로 */
  .tbl.rows thead { display: none; }
  .tbl.rows, .tbl.rows tbody { display: block; }
  .tbl.rows tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "main main amt" "kind at st" "stake stake stake"; gap: 3px 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .tbl.rows tbody tr[hidden] { display: none; }
  .tbl.rows tbody tr:last-child { border-bottom: 0; }
  .tbl.rows td { display: block; height: auto; padding: 0; border: 0; }
  .tbl.rows td.hide-m, .tbl.rows td.none { display: none; }
  .tbl.rows tbody tr:hover td { background: none; }
  .tbl.rows .t-main { grid-area: main; font-size: 14.5px; }
  .tbl.rows .t-amt { grid-area: amt; font-size: 15px; white-space: nowrap; }
  .tbl.rows .t-kind { grid-area: kind; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
  .tbl.rows .t-at { grid-area: at; font-size: 12.5px; color: var(--ink-3); }
  .tbl.rows .t-st { grid-area: st; font-size: 13px; color: var(--ink-3); }
  .tbl.rows .t-stake { grid-area: stake; text-align: left; font-size: 12.5px; color: var(--ink-3); }
  .tbl.rows td[data-l]::before { content: attr(data-l) " "; font-weight: 600; color: var(--ink-3); }
  /* 셋째 줄에 자리 수 · 평균 팟처럼 값이 둘 오는 표 */
  .tbl.rows.r3 tbody tr { grid-template-areas: "main main amt" "kind at at" "st stake stake"; align-items: center; }
  .tbl.rows.r3 .t-kind, .tbl.rows.r3 .t-at { font-weight: 600; color: var(--ink-2); text-align: left; }
  .tbl.rows.r3 .t-kind { margin-right: 6px; white-space: nowrap; }
  .tbl.rows.r3 .t-st { text-align: left; color: var(--ink-2); white-space: nowrap; }
  .tbl.rows.r3 .t-stake { text-align: right; }
}

/* ══ UI/UX 규칙 보정(2026-11-19, ui-ux-pro-max 점검): 휴대폰 누르는 곳 44px · 입력칸 16px ══ */
@media (max-width: 767px) {
  .quick-amt button, .code-btn, .panel-head .days button, .pm-out { height: 44px; }
  .panel-head .days button { min-width: 44px; }
  .area { font-size: 16px; }
}
