@charset "utf-8";
/* 더포커 계산 도구 추가 화면 (BB·ROI·ICM·블라인드 타이머) — 2026-11-03
   테마 CSS(thepoker.css)의 색 변수만 쓰고, 테마 파일은 건드리지 않습니다. */

.tx-page [hidden] { display: none !important; }
.tx-full { grid-column: 1 / -1; position: static !important; }
.tx-page .tp-tabs a { flex: 1 0 auto; }

/* 입력 칸 */
.tx-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tx-field { display: block; min-width: 0; }
.tx-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tx-field small { font-weight: 400; color: var(--dim); }
.tx-field input { font-size: 18px; font-weight: 600; }
.tx-field select.tp-input { font-size: 14px; padding-right: 8px; }
.tx-field--wide { grid-column: span 2; }
.tx-field--inline { margin-bottom: 10px; }
.tx-hint { margin: 10px 0 0; font-size: 12px; color: var(--dim); line-height: 1.6; }
.tx-hint--inline { display: inline-block; margin: 0 0 0 8px; }
.tx-quick-top { margin: 0 0 16px; }
.po__quick button.is-on { border-color: var(--felt2); background: var(--felt-bg); color: var(--felt-ink); }
.tx-sub { margin: 0 0 10px; font-size: 14px; font-weight: 700; color: var(--text); }

/* 결과 칸 */
.tx-out { margin-top: 20px; padding: 18px 20px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 18px; }
.tx-stat { min-width: 0; }
.tx-stat span { display: block; font-size: 12px; color: var(--muted); }
.tx-stat strong { display: block; font-size: 24px; font-weight: 700; line-height: 1.3; color: var(--text); overflow-wrap: anywhere; }
.tx-stat--main strong { font-size: 34px; color: var(--felt-ink); }
.tx-stat strong.is-up { color: var(--felt-ink); }
.tx-stat strong.is-down { color: #f0a0a3; }
.tx-out__line { grid-column: 1 / -1; margin: 4px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; color: #d6d9d6; }
.tx-out__line--solo { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); }
#roi-sample { margin-top: 12px; }

/* BB 계산기: 구간 */
.tx-zone { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgba(201, 165, 93, .4); background: var(--gold-bg); }
.tx-zone__hd { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.tx-zone__hd b { font-size: 16px; color: var(--gold-ink); }
.tx-zone__hd span { font-size: 12px; color: #d9cfb8; }
.tx-zone__txt { margin: 6px 0 0; font-size: 14px; line-height: 1.7; color: #e3dccb; }
.tx-zones { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.tx-zones li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; line-height: 1.6; color: var(--muted); }
.tx-zones li b { color: var(--text); font-weight: 700; }
.tx-zones li.is-on { border-color: var(--felt2); background: var(--felt-bg); color: #cfe9dc; }
.tx-zones li.is-on b { color: var(--felt-ink); }

/* ICM */
.icm-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.icm-col { min-width: 0; }
.icm-rows { display: grid; gap: 6px; margin-bottom: 10px; }
.icm-row { display: flex; align-items: center; gap: 6px; }
.icm-row__lab { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; }
.icm-row__name { flex: 0 0 66px; font-size: 13px; font-weight: 600; color: var(--muted); }
.icm-row .tp-input { min-width: 0; min-height: 40px; padding: 8px 10px; font-size: 16px; font-weight: 600; }
.icm-row__suf { flex: 0 0 auto; font-size: 12px; color: var(--dim); }
.icm-row .eq-player__rm { flex: 0 0 auto; }
.icm-row .eq-player__rm:disabled { opacity: .35; cursor: default; }
#icm-pool-wrap { margin-top: 12px; }
.icm-result { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; }
.icm-table th small.icm-chips { display: block; font-size: 12px; font-weight: 400; color: var(--dim); }
.icm-table td span:first-child { display: block; }
.icm-table td.is-up { color: var(--felt-ink); }
.icm-table td.is-down { color: #f0a0a3; }
.icm-prize > span:first-child { color: var(--felt-ink); font-weight: 700; }
.icm-bar { display: block; height: 4px; margin-top: 5px; border-radius: 4px; background: var(--surface2); overflow: hidden; }
.icm-bar i { display: block; height: 100%; background: var(--line2); }
.icm-bar--prize i { background: var(--felt2); }

/* 관련 도구·자주 묻는 질문 */
.tx-rel { margin-top: 14px; }
.tx-rel .tp-tool { padding: 14px 16px; }
.tx-rel .tp-tool strong { font-size: 15px; }
.tx-faq { margin-top: 14px; }
.tx-faq .tp-faq__a p { margin: 0; }

/* 도구 첫 화면 */
.tx-group-hd { margin: 26px 0 12px; font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: -0.01em; }
.tp-page__hd + .tx-group-hd { margin-top: 4px; }
.tx-tools4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* 블라인드 타이머 */
.tm { text-align: center; padding: 26px 22px; }
.tm__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tm__level { font-size: 18px; font-weight: 700; color: var(--gold-ink); }
.tm__status { padding: 3px 10px; border: 1px solid var(--line2); border-radius: 999px; font-size: 12px; color: var(--muted); }
.tm.is-run .tm__status { border-color: var(--felt2); color: var(--felt-ink); }
.tm__clock { margin: 10px 0 8px; font-size: clamp(64px, 14vw, 150px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.tm.is-low .tm__clock { color: #f0a0a3; }
.tm.is-break .tm__clock { color: var(--gold-ink); }
.tm__bar { height: 6px; border-radius: 6px; background: var(--surface2); overflow: hidden; max-width: 720px; margin: 0 auto; }
.tm__bar i { display: block; height: 100%; width: 0; background: var(--felt2); transition: width .25s linear; }
.tm.is-break .tm__bar i { background: var(--gold); }
.tm__blinds { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tm__blinds strong { font-size: clamp(32px, 6vw, 56px); font-weight: 700; line-height: 1.15; color: var(--felt-ink); }
.tm.is-break .tm__blinds strong { color: var(--gold-ink); }
.tm__blinds span { font-size: 16px; color: var(--muted); }
.tm__next { margin: 14px auto 0; max-width: 720px; padding: 10px 14px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); font-size: 14px; color: #d6d9d6; overflow-wrap: anywhere; }
.tm__ctrl { margin-top: 18px; display: flex; justify-content: center; gap: 8px; }
.tm__ctrl .tm__go { min-width: 150px; }
.tm__opts { margin-top: 14px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; }
.tm__check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); cursor: pointer; }
.tm__check input { width: 18px; height: 18px; accent-color: var(--felt2); }
.tm:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; border: 0; background: var(--bg); padding: 4vh 4vw; }
.tm:fullscreen .tm__clock { font-size: min(26vw, 38vh); }
.tm:fullscreen .tm__blinds strong { font-size: min(9vw, 12vh); }
.tm:fullscreen .tm__blinds span { font-size: min(3vw, 4vh); }
.tm:fullscreen .tm__level { font-size: min(3vw, 4vh); }
.tm:fullscreen .tm__next { font-size: min(2.2vw, 3vh); max-width: 80vw; }
.tm:fullscreen .tm__bar { max-width: 80vw; height: 10px; }
.tm:-webkit-full-screen { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; background: var(--bg); }

.tm-table th, .tm-table td { padding: 6px 4px; }
.tm-table tbody tr.is-on { background: var(--felt-bg); }
.tm-table tbody tr.is-brk td.tm-brk { color: var(--gold-ink); font-size: 13px; }
.tm-inp { min-height: 36px; padding: 6px 8px; font-size: 14px; text-align: right; min-width: 64px; }
.tm-inp--min { min-width: 52px; }
.tm-go { min-width: 40px; padding: 6px 8px; border: 1px solid var(--line2); border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.tm-go:hover { border-color: var(--felt2); color: var(--felt-ink); }
tr.is-on .tm-go { border-color: var(--felt2); background: var(--felt); color: #fff; }
tr.is-brk .tm-go { color: var(--gold-ink); }
.tm-edit .tp-table-wrap { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; max-height: 560px; overflow-y: auto; }
.tm-edit .tm-table thead th { position: sticky; top: 0; z-index: 1; }
.tm-edit__add { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }

@media (min-width: 1281px) {
    .tx-tools4 .tp-tool { padding: 22px; }
}
@media (max-width: 1100px) {
    .tx-tools4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .tx-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tx-out { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
    .tx-stat--main { grid-column: 1 / -1; }
    .icm-cols { grid-template-columns: minmax(0, 1fr); }
    .tx-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .tx-tools4 { grid-template-columns: minmax(0, 1fr); }
    .tx-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tx-zones li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
    .tm { padding: 20px 14px; }
    .tm__ctrl .tp-btn--lg { padding: 0 14px; }
    .tm__ctrl .tm__go { min-width: 0; flex: 1 1 auto; }
    .tm-table th, .tm-table td { padding: 6px 3px; }
    .tm-inp { min-width: 58px; padding: 6px 6px; font-size: 13px; }
    .tm-inp--min { min-width: 44px; }
    .icm-table th, .icm-table td { padding: 8px 5px; font-size: 12px; }
}
@media (max-width: 420px) {
    .tx-fields { grid-template-columns: minmax(0, 1fr); }
    .tx-field--wide { grid-column: auto; }
    .tx-stat strong { font-size: 20px; }
    .tx-stat--main strong { font-size: 30px; }
}

/* 표 안 버튼 글자가 세로로 꺾이지 않게 */
.tm-go, .tm-table .eq-player__rm, .icm-row .eq-player__rm { white-space: nowrap; }
.tm-table .eq-player__rm { padding-left: 8px; padding-right: 8px; }
.tm-inp { -moz-appearance: textfield; appearance: textfield; }
.tm-inp::-webkit-inner-spin-button, .tm-inp::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tm-table .tm-rm { min-width: 30px; padding: 4px 8px; font-size: 15px; line-height: 1; }
@media (max-width: 640px) {
    .tm-edit { padding: 18px 12px; }
    .tm-inp { min-width: 54px; padding: 6px 5px; }
    .tm-inp--min { min-width: 40px; }
    .tm-go { min-width: 34px; padding: 6px 4px; }
}
