/* 토너 트래커 — 메인과 같은 밝은 카툰 톤 (body.toon 위에 얹는다) */

body.tt { --up: #1fae7a; --down: #ff5c8a; --up-bg: #4fd8a6; --down-bg: #ff8fb1; }
.tt .mono { font-family: var(--font-mono, ui-monospace, Menlo, monospace); }

.tt-wrap { max-width: 980px; margin: 0 auto; padding: 28px 18px 72px; }

/* ---------- Hero / 입력 ---------- */
.tt-hero {
  position: relative;
  background: #fff;
  border: var(--bw) solid var(--ink);
  border-radius: 26px;
  box-shadow: var(--pop-lg);
  padding: 30px 28px 26px;
  margin: 0 0 30px;
  overflow: hidden;
  isolation: isolate;
}
.tt-hero::before {
  content: '';
  position: absolute; top: -48px; right: -40px; width: 150px; height: 150px;
  background: var(--yellow); border: var(--bw) solid var(--ink); border-radius: 50%;
  z-index: -1; animation: toon-float 6s ease-in-out infinite;
}
.tt-hero::after {
  content: ''; position: absolute; right: 52px; top: 18px; width: 26px; height: 26px; background: #fff;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  filter: drop-shadow(2px 2px 0 var(--ink)); animation: toon-twinkle 2.4s ease-in-out infinite;
}
.tt-eyebrow {
  display: inline-block; font-family: var(--font-display); font-size: 0.95rem; color: var(--ink);
  background: var(--mint); border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink);
  padding: 2px 14px; transform: rotate(-2deg);
}
.tt-hero__title {
  font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 7vw, 3.3rem); line-height: 1.15;
  margin: 14px 0 8px; color: var(--ink); text-shadow: 3px 3px 0 #fff4c2;
}
.tt-hero__lead { color: var(--text-2); font-weight: 500; max-width: 38rem; margin: 0 0 22px; }
.tt-hero__lead strong { background: #fff4c2; padding: 0 4px; border-radius: 6px; }

.tt-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.tt-field > span { font-family: var(--font-display); font-size: 0.92rem; }
.tt-field > span small { font-family: inherit; font-size: 0.74rem; color: var(--muted); }
.tt-input {
  width: 100%; font: inherit; font-weight: 600; color: var(--ink); background: #fffdf5;
  border: var(--bw) solid var(--ink); border-radius: 14px; padding: 10px 12px; min-width: 0;
  box-shadow: 0 3px 0 var(--ink); transition: transform 0.15s var(--bounce), background 0.15s;
}
.tt-input:focus { outline: none; background: #fff; transform: translateY(-2px); box-shadow: 0 5px 0 var(--ink); border-color: var(--ink); }
.tt-input--mono { font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 0.86rem; }
.tt-input--sm { padding: 6px 10px; font-size: 0.9rem; width: auto; }

.tt-btn {
  font-family: var(--font-display); font-size: 1.08rem; color: #fff; text-shadow: 0 2px 0 rgba(42, 33, 80, 0.35);
  background: var(--orange); border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 0 5px 0 var(--ink);
  padding: 10px 22px; cursor: pointer; white-space: nowrap; transition: transform 0.15s var(--bounce), box-shadow 0.15s, background 0.15s;
}
.tt-btn:hover:not(:disabled) { background: #ffa965; transform: translateY(-3px); box-shadow: 0 8px 0 var(--ink); }
.tt-btn:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.tt-btn:disabled { opacity: 0.6; cursor: wait; }
.tt-btn--sub { color: var(--ink); text-shadow: none; background: var(--sky); font-size: 0.98rem; padding: 7px 18px; margin-top: 10px; }
.tt-btn--sub:hover:not(:disabled) { background: #8cd9ff; }

.tt-hint { margin: 12px 2px 0; font-size: 0.86rem; color: var(--muted); font-weight: 500; }
.tt-status {
  margin-top: 14px; padding: 10px 14px; font-weight: 600; border: 2.5px solid var(--ink); border-radius: 14px;
  background: #fff4c2; box-shadow: 0 3px 0 var(--ink);
}
.tt-status--err { background: #ffe0eb; }
.tt-status--load { background: #d6f0ff; }


/* 북마크릿 안내 */
.tt-bm { margin: 0 0 18px; padding: 14px 16px 16px; background: #fff4c2; border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); }
.tt-bm__head { font-family: var(--font-display); font-size: 1.1rem; }
.tt-bm__head small { font-family: inherit; color: var(--muted); }
.tt-bm .tt-steps { margin: 8px 0 12px; }
.tt-bm code { font-size: 0.82rem; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; padding: 0 5px; }
.tt-bm__link { display: inline-block; text-decoration: none; background: var(--yellow); color: var(--ink); text-shadow: none; cursor: grab; font-size: 1rem; padding: 8px 20px; }
.tt-bm__link:hover { background: #ffe066; }

/* ---------- 결과 상단 ---------- */
.tt-result { display: block; }
.tt-banner {
  display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; justify-content: space-between;
  border: var(--bw) solid var(--ink); border-radius: 26px; box-shadow: var(--pop-lg); padding: 24px 26px; margin-bottom: 20px;
  background: var(--up-bg);
}
.tt-banner--down { background: var(--down-bg); }
.tt-banner--flat { background: var(--yellow); }
.tt-badge {
  display: inline-block; font-family: var(--font-display); background: #fff; border: 2.5px solid var(--ink); border-radius: 999px;
  box-shadow: 0 3px 0 var(--ink); padding: 3px 14px; transform: rotate(-1.5deg);
}
.tt-banner__name { font-family: var(--font-display); font-size: clamp(1.6rem, 5vw, 2.3rem); margin-top: 10px; word-break: break-all; }
.tt-banner__period { font-size: 0.85rem; font-weight: 700; opacity: 0.8; }
.tt-banner__money { text-align: right; }
.tt-banner__label { font-family: var(--font-display); font-size: 1rem; }
.tt-banner__num { font-family: var(--font-display); font-size: clamp(2.4rem, 9vw, 4rem); line-height: 1.05; color: #fff; text-shadow: 3px 3px 0 var(--ink), -1px -1px 0 var(--ink), 1px -1px 0 var(--ink), -1px 1px 0 var(--ink); }
.tt-banner__full { font-size: 0.82rem; font-weight: 700; }

.tt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 34px; }
.tt-tile {
  border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); padding: 12px 14px 12px;
  transition: transform 0.25s var(--bounce);
}
.tt-tile:nth-child(odd) { transform: rotate(-0.6deg); }
.tt-tile:nth-child(even) { transform: rotate(0.6deg); }
.tt-tile:hover { transform: translateY(-4px) rotate(0); }
.tt-tile--yellow { background: #fff0b3; } .tt-tile--mint { background: #d3f6e8; } .tt-tile--sky { background: #d6f0ff; }
.tt-tile--pink { background: #ffe0eb; } .tt-tile--lilac { background: #e9e0ff; } .tt-tile--orange { background: #ffe3cc; }
.tt-tile__label { font-family: var(--font-display); font-size: 0.92rem; }
.tt-tile__value { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.2; }
.tt-tile__note { font-size: 0.78rem; font-weight: 600; color: var(--text-2); }

/* ---------- 카드 ---------- */
.tt-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.tt-card {
  background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--pop); padding: 20px 20px 22px; min-width: 0;
}
.tt-card--wide { grid-column: 1 / -1; }
.tt-h2 {
  display: inline-block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; margin: 0 0 6px;
  background: #fff4c2; border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); padding: 2px 16px 3px;
  transform: rotate(-1deg);
}
.tt-grid > .tt-card:nth-child(4n+2) .tt-h2 { background: #ffe0eb; transform: rotate(1deg); }
.tt-grid > .tt-card:nth-child(4n+3) .tt-h2 { background: #d3f6e8; }
.tt-grid > .tt-card:nth-child(4n) .tt-h2 { background: #d6f0ff; transform: rotate(1deg); }
.tt-sub { margin: 8px 2px 12px; font-size: 0.84rem; font-weight: 500; color: var(--muted); }
.tt-card > .tt-h2 + :not(.tt-sub) { margin-top: 14px; }
.tt-empty { color: var(--muted); font-weight: 600; }

.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
.tt-banner .up, .tt-banner .down { color: #fff; }

/* ---------- SVG 차트 ---------- */
.tt-chart { position: relative; margin-top: 6px; }
.tt-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.tt-axis { font-family: var(--font-mono, ui-monospace, Menlo, monospace); font-size: 11px; font-weight: 700; fill: #6a6392; }
.tt-chart .tt-gl { stroke: #d9d3ee; stroke-width: 1.2; stroke-dasharray: 4 5; }
.tt-zero { stroke: var(--ink); stroke-width: 2; }
.tt-line { fill: none; stroke: var(--ink); stroke-width: 3.4; stroke-linejoin: round; stroke-linecap: round; }
.tt-area.up { fill: rgba(79, 216, 166, 0.35); } .tt-area.down { fill: rgba(255, 143, 177, 0.4); }
.tt-bar { stroke: var(--ink); stroke-width: 1.6; }
.tt-bar.is-hover { stroke-width: 3.2; filter: brightness(1.08); }
.tt-bar.up { fill: var(--up-bg); } .tt-bar.down { fill: var(--down-bg); } .tt-bar.flat { fill: #c9c4e0; }
.tt-dot { fill: var(--yellow); stroke: var(--ink); stroke-width: 3; pointer-events: none; }
.tt-peak { fill: var(--mint); stroke: var(--ink); stroke-width: 2.5; }
.tt-star { font-size: 16px; fill: var(--orange); stroke: var(--ink); stroke-width: 1; paint-order: stroke; }
.tt-tip {
  position: absolute; transform: translate(-50%, -125%); pointer-events: none; z-index: 5; max-width: 260px;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; box-shadow: 0 3px 0 var(--ink); padding: 6px 10px; font-size: 0.8rem; font-weight: 600;
  display: flex; flex-direction: column; gap: 1px;
}
.tt-tip[hidden] { display: none; }
.tt-tip b { font-family: var(--font-display); font-weight: 400; font-size: 0.92rem; }

.tt-minis { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tt-mini { font-size: 0.8rem; font-weight: 600; background: #fffdf5; border: 2px solid var(--ink); border-radius: 999px; padding: 2px 11px; }
.tt-mini b { font-family: var(--font-display); font-weight: 400; margin-left: 3px; }

/* ---------- 양방향 막대 행 ---------- */
.tt-rows { display: flex; flex-direction: column; gap: 10px; }
.tt-row { display: grid; grid-template-columns: minmax(96px, 1.1fr) 1.6fr auto; gap: 10px; align-items: center; }
.tt-row.is-empty { opacity: 0.45; }
.tt-row__label { font-family: var(--font-display); font-size: 0.98rem; line-height: 1.2; min-width: 0; overflow-wrap: anywhere; }
.tt-row__label small { display: block; font-family: inherit; font-size: 0.72rem; font-weight: 600; color: var(--muted); }
.tt-row__val { font-family: var(--font-display); font-size: 1rem; min-width: 64px; text-align: right; }
.tt-track { position: relative; height: 18px; background: #f3effb; border: 2.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.tt-track::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--ink); }
.tt-fill { position: absolute; top: 0; bottom: 0; border-right: 2px solid var(--ink); }
.tt-fill.up { background: var(--up-bg); } .tt-fill.down { background: var(--down-bg); border-right: 0; border-left: 2px solid var(--ink); } .tt-fill.flat { background: #c9c4e0; }
.tt-more { margin-top: 12px; }
.tt-more summary { cursor: pointer; font-family: var(--font-display); margin-bottom: 10px; }

/* ---------- 순위 분포 ---------- */
.tt-cols { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; align-items: end; height: 190px; padding-top: 6px; }
.tt-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.tt-col__n { font-family: var(--font-display); font-size: 1rem; }
.tt-col__bar { width: 100%; max-width: 54px; border: 2.5px solid var(--ink); border-radius: 12px 12px 4px 4px; box-shadow: 0 3px 0 var(--ink); }
.tt-col__bar--0 { background: var(--yellow); } .tt-col__bar--1 { background: var(--orange); } .tt-col__bar--2 { background: var(--pink); }
.tt-col__bar--3 { background: var(--lilac); } .tt-col__bar--4 { background: var(--sky); } .tt-col__bar--5 { background: var(--mint); }
.tt-col__label { font-size: 0.68rem; font-weight: 700; margin-top: 8px; text-align: center; line-height: 1.2; }

/* ---------- 숫자 팩트 ---------- */
.tt-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tt-fact { display: flex; flex-direction: column; background: #fffdf5; border: 2.5px solid var(--ink); border-radius: 14px; padding: 8px 12px; box-shadow: 0 3px 0 var(--ink); }
.tt-fact span { font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.tt-fact b { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; }

/* ---------- TOP 리스트 ---------- */
.tt-top { list-style: none; margin: 0; padding: 0; counter-reset: rk; display: flex; flex-direction: column; gap: 9px; }
.tt-top li { counter-increment: rk; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; background: #fffdf5; border: 2.5px solid var(--ink); border-radius: 14px; padding: 7px 12px; }
.tt-top li::before { content: counter(rk); display: grid; place-items: center; width: 26px; height: 26px; font-family: var(--font-display); background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 50%; }
.tt-top li:nth-child(2)::before { background: var(--sky); } .tt-top li:nth-child(3)::before { background: var(--pink); }
.tt-top__main { min-width: 0; display: flex; flex-direction: column; }
.tt-top__main b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-top__main small { font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.tt-top__val { font-family: var(--font-display); text-align: right; white-space: nowrap; }
.tt-top__val small { font-family: inherit; font-size: 0.7rem; color: var(--muted); }

/* ---------- 전체 기록 ---------- */
.tt-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 14px 0; }
.tt-check { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; font-size: 0.9rem; }
.tt-check input { width: 18px; height: 18px; accent-color: var(--mint); }
.tt-recs { display: flex; flex-direction: column; gap: 8px; }
.tt-rec { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; border: 2.5px solid var(--ink); border-radius: 14px; padding: 7px 12px; background: #fffdf5; }
.tt-rec__date { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.tt-rec__main { min-width: 0; display: flex; flex-direction: column; }
.tt-rec__main b { font-weight: 700; overflow-wrap: anywhere; }
.tt-rec__main em { font-style: normal; font-size: 0.68rem; background: var(--lilac); border: 2px solid var(--ink); border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.tt-rec__main small { font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.tt-rec__val { font-family: var(--font-display); white-space: nowrap; }

.tt-foot { text-align: center; padding: 10px 16px 40px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }
#tt-top {
  position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); background: var(--yellow); border: var(--bw) solid var(--ink);
  box-shadow: 0 4px 0 var(--ink); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s var(--bounce); z-index: 40;
}
#tt-top.is-on { opacity: 1; pointer-events: auto; transform: none; }
#tt-top:hover { background: var(--pink); }

/* ---------- 반응형 ---------- */
@media (max-width: 820px) {
  .tt-grid { grid-template-columns: 1fr; }
  .tt-banner__money { text-align: left; }
}
@media (max-width: 520px) {
  .tt-wrap { padding: 20px 14px 60px; }
  .tt-hero { padding: 24px 18px 20px; }
  .tt-row { grid-template-columns: 1fr auto; }
  .tt-row .tt-track { grid-column: 1 / -1; order: 3; }
  .tt-rec { grid-template-columns: 1fr auto; }
  .tt-rec__date { grid-column: 1 / -1; }
  .tt-cols { height: 170px; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .tt-hero::before, .tt-hero::after { animation: none; }
  .tt-tile, .tt-tile:hover { transform: none; }
}

/* ---------- 쉬운 요약 ---------- */
.tt-plain { margin: -14px 2px 30px; padding: 12px 16px; font-size: 1rem; font-weight: 500; line-height: 1.7; color: var(--text-2); background: #fff; border: var(--bw) dashed var(--ink); border-radius: 16px; }
.tt-plain b { color: var(--ink); font-family: var(--font-display); font-weight: 400; font-size: 1.08em; background: #fff4c2; padding: 0 5px; border-radius: 6px; }
.tt-plain b.up { background: #d3f6e8; } .tt-plain b.down { background: #ffe0eb; }
.tt-plain small { font-size: 0.8rem; color: var(--muted); }

/* ---------- 대회 종류별 (바이인 표시) ---------- */
.tt-cats { display: flex; flex-direction: column; gap: 10px; }
.tt-cat { border: var(--bw) solid var(--ink); border-radius: 16px; background: #fffdf5; box-shadow: 0 3px 0 var(--ink); border-left-width: 12px; }
.tt-cat--up { border-left-color: var(--up-bg); } .tt-cat--down { border-left-color: var(--down-bg); } .tt-cat--flat { border-left-color: #c9c4e0; }
.tt-cat summary { list-style: none; cursor: pointer; padding: 10px 14px 8px; position: relative; }
.tt-cat summary::-webkit-details-marker { display: none; }
.tt-cat[open] { background: #fff; }
.tt-cat__row { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.tt-cat__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 200px; }
.tt-cat__name strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; line-height: 1.2; overflow-wrap: anywhere; }
.tt-chip { align-self: flex-start; font-size: 0.82rem; font-weight: 700; background: #ffe3cc; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 11px; }
.tt-chip em { font-style: normal; font-weight: 600; color: var(--text-2); }
.tt-chip--cost { align-self: auto; background: #fff4c2; }
.tt-cat__stats { display: grid; grid-template-columns: repeat(5, minmax(64px, auto)); gap: 6px 16px; text-align: right; }
.tt-st { display: flex; flex-direction: column; }
.tt-st small { font-size: 0.7rem; font-weight: 700; color: var(--muted); }
.tt-st b { font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.tt-cat__hint { display: block; margin-top: 4px; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.tt-cat[open] .tt-cat__hint { display: none; }
.tt-sub { padding: 2px 14px 12px; display: flex; flex-direction: column; gap: 7px; }
.tt-sub__row { display: grid; grid-template-columns: minmax(120px, 1.3fr) 0.6fr 0.9fr 1fr minmax(60px, 1fr) auto 18px; cursor: pointer; list-style: none; gap: 8px; align-items: center; font-size: 0.88rem; font-weight: 600; background: #f7f3ff; border: 2px solid var(--ink); border-radius: 12px; padding: 5px 10px; }
.tt-sub__row b { font-family: var(--font-display); font-weight: 400; min-width: 70px; text-align: right; }
.tt-sub__one { margin: 0; font-size: 0.84rem; color: var(--muted); font-weight: 600; }

/* ---------- 레이아웃 보정 ---------- */
.tt-card--wide .tt-facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tt-trio { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tt-card--c1 .tt-h2 { background: #d3f6e8; } .tt-card--c2 .tt-h2 { background: #d6f0ff; transform: rotate(1deg); } .tt-card--c3 .tt-h2 { background: #ffe0eb; }
.tt-row__label small { font-size: 0.78rem; }

@media (max-width: 900px) { .tt-trio { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .tt-cat__stats { grid-template-columns: repeat(2, 1fr); width: 100%; text-align: left; }
  .tt-sub__row { grid-template-columns: 1fr 1fr; }
  .tt-sub__row b { text-align: left; }
}

/* ---------- 이전 기록과 비교 ---------- */
.tt-cmp { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.tt-cmp__row { display: grid; grid-template-columns: minmax(96px, 1.1fr) 1fr 1fr 1.2fr; gap: 10px; align-items: center; padding: 6px 12px; background: #fffdf5; border: 2.5px solid var(--ink); border-radius: 12px; font-weight: 600; }
.tt-cmp__row--head { background: transparent; border-color: transparent; font-family: var(--font-display); font-size: 0.85rem; color: var(--muted); padding-bottom: 0; }
.tt-cmp__k { font-family: var(--font-display); }
.tt-cmp__row b { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; }
.tt-cmp__d { font-family: var(--font-display); text-align: right; }
.tt-cmp__row--head span:last-child { text-align: right; }
.tt-cmp__sum { margin: 16px 2px 10px; font-weight: 600; }
.tt-cmp__sum b { font-family: var(--font-display); font-weight: 400; background: #fff4c2; padding: 0 6px; border-radius: 6px; }
.tt-cmp__sum b.up { background: #d3f6e8; } .tt-cmp__sum b.down { background: #ffe0eb; }
@media (max-width: 560px) { .tt-cmp__row { grid-template-columns: 1fr 1fr; } .tt-cmp__row--head { display: none; } .tt-cmp__d { text-align: left; } }

.tt-track--sm { height: 12px; border-width: 2px; }
.tt-cat--flat { padding: 10px 14px; }
.tt-btn--tiny { font-size: 0.85rem; padding: 3px 14px; margin-top: 0; box-shadow: 0 3px 0 var(--ink); }
@media (max-width: 560px) { .tt-sub__row .tt-track--sm { grid-column: 1 / -1; order: 9; } }

/* ---------- 저장된 기록 ---------- */
.tt-saved { margin-top: 16px; padding: 12px 14px 12px; background: #d6f0ff; border: var(--bw) solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); }
.tt-saved__head { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
.tt-saved__head small { font-family: inherit; color: var(--muted); }
.tt-saved__list { display: flex; flex-direction: column; gap: 8px; }
.tt-saved__item { display: flex; align-items: stretch; background: #fff; border: 2.5px solid var(--ink); border-radius: 12px; overflow: hidden; }
.tt-saved__item.is-on { background: #fff4c2; box-shadow: 0 3px 0 var(--ink); }
.tt-saved__open { flex: 1; text-align: left; font: inherit; font-weight: 700; font-size: 0.9rem; color: var(--ink); background: transparent; border: 0; padding: 8px 12px; cursor: pointer; }
.tt-saved__open:hover { background: #f0f9ff; }
.tt-saved__item.is-on .tt-saved__open:hover { background: transparent; }
.tt-saved__note { margin: 10px 2px 0; font-size: 0.78rem; font-weight: 600; color: var(--text-2); }

.tt-chip--kinds { background: #e9e0ff; }

/* ---------- 내 토너먼트 / 검색 기록 선택 ---------- */
.tt-source { margin-top: 16px; padding: 12px 14px; background: #ffe0eb; border: var(--bw) solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); }
.tt-source__head { font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 8px; }
.tt-source__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tt-source__btn { font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); text-align: left; background: #fff; border: var(--bw) solid var(--ink); border-radius: 14px; box-shadow: 0 4px 0 var(--ink); padding: 8px 14px; cursor: pointer; transition: transform 0.15s var(--bounce); }
.tt-source__btn small { display: block; font-family: inherit; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.tt-source__btn:hover { transform: translateY(-3px); }
.tt-source__btn.is-on { background: var(--yellow); }
@media (max-width: 520px) { .tt-source__row { grid-template-columns: 1fr; } }

/* ---------- 전체 / 일반 / 시즌 전환 ---------- */
.tt-scope { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; }
.tt-scope__label { font-family: var(--font-display); font-size: 1.05rem; }
.tt-scope__btn { font-family: var(--font-display); font-size: 1rem; color: var(--ink); background: #fff; border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); padding: 4px 16px; cursor: pointer; transition: transform 0.15s var(--bounce), background 0.15s; }
.tt-scope__btn small { font-family: inherit; font-size: 0.74rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.tt-scope__btn:hover { transform: translateY(-2px); }
.tt-scope__btn.is-on { background: var(--yellow); }
.tt-card--season { background: #fff8ee; }

/* ---------- 정리: 요약 카드 하나 + 탭 ---------- */
.tt-setup { margin-top: 16px; border: var(--bw) solid var(--ink); border-radius: 16px; background: #fffdf5; padding: 10px 14px 14px; }
.tt-setup > summary { cursor: pointer; font-family: var(--font-display); font-size: 1.05rem; list-style: none; }
.tt-setup > summary::-webkit-details-marker { display: none; }
.tt-setup > summary::after { content: ' ▾'; color: var(--muted); }
.tt-setup[open] > summary::after { content: ' ▴'; }
.tt-setup[open] > summary { margin-bottom: 12px; }
.tt-setup .tt-bm { margin-top: 0; }
.tt-setup .tt-saved { margin-top: 14px; }

.tt-summary { background: #fff; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--pop-lg); padding: 18px 20px 16px; margin-bottom: 18px; }
.tt-summary--up { background: #eefcf6; } .tt-summary--down { background: #fff2f7; } .tt-summary--flat { background: #fff8dc; }
.tt-summary .tt-banner { background: transparent; border: 0; box-shadow: none; border-radius: 0; padding: 0 0 12px; margin: 0; }
.tt-summary .tt-banner__name { font-size: clamp(1.4rem, 4.5vw, 1.9rem); margin-top: 6px; }
.tt-summary .tt-banner__num { font-size: clamp(2rem, 7vw, 3rem); }
.tt-summary .tt-tiles { margin: 0 0 12px; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); }
.tt-summary .tt-tile { box-shadow: none; border-width: 2.5px; border-radius: 12px; padding: 6px 10px; transform: none; }
.tt-summary .tt-tile:hover { transform: none; }
.tt-summary .tt-tile__label { font-size: 0.78rem; }
.tt-summary .tt-tile__value { font-size: 1.25rem; }
.tt-summary .tt-tile__note { font-size: 0.7rem; }
.tt-summary .tt-plain { margin: 0; padding: 10px 0 0; border: 0; border-top: 2.5px dashed var(--ink); border-radius: 0; background: transparent; font-size: 0.92rem; line-height: 1.6; }

.tt-tabs { position: sticky; top: 8px; z-index: 30; display: flex; gap: 8px; overflow-x: auto; padding: 8px 2px 10px; margin: 0 0 14px; scrollbar-width: none; background: linear-gradient(var(--bg) 70%, transparent); }
.tt-tabs::-webkit-scrollbar { display: none; }
.tt-tab { flex: 0 0 auto; font-family: var(--font-display); font-size: 1rem; color: var(--ink); background: #fff; border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); padding: 5px 16px; cursor: pointer; white-space: nowrap; transition: transform 0.15s var(--bounce), background 0.15s; }
.tt-tab:hover { transform: translateY(-2px); }
.tt-tab.is-on { background: var(--yellow); transform: translateY(1px); box-shadow: 0 1px 0 var(--ink); }
.tt-panel[hidden] { display: none; }
@media (max-width: 560px) { .tt-summary { padding: 14px 14px 12px; } .tt-tab { padding: 4px 13px; font-size: 0.95rem; } }

/* ---------- 필터 바 ---------- */
.tt-filters { margin: 0 0 16px; padding: 10px 14px 12px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); display: flex; flex-direction: column; gap: 8px; }
.tt-filters .tt-scope { margin: 0; }
.tt-scope__btn--sm { font-size: 0.9rem; padding: 3px 12px; }
.tt-dates { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.tt-dates .tt-input { width: auto; padding: 3px 8px; font-size: 0.85rem; }
.tt-filters__note { margin: 0; font-size: 0.76rem; font-weight: 600; color: var(--muted); }

.tt-scope__btn.is-empty { opacity: 0.5; }
.tt-scope__btn.is-empty.is-on { opacity: 1; }

.tt-source__btn.is-missing { background: #fff0f0; border-style: dashed; }
.tt-source__btn.is-missing:hover { background: #ffe0e0; }

.tt-source__row { align-items: stretch; }

/* ---------- 삭제 버튼 (둥근 스티커 모양) ---------- */
.tt-source__item { position: relative; display: block; min-width: 0; }
.tt-source__item .tt-source__btn { width: 100%; padding-right: 26px; }
.tt-del {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0; cursor: pointer;
  color: var(--ink); background: #ffd9e4; border: 2.5px solid var(--ink); border-radius: 50%;
  box-shadow: 0 2px 0 var(--ink); transition: transform 0.18s var(--bounce), background 0.15s, box-shadow 0.15s;
}
.tt-del svg { display: block; }
.tt-del:hover { background: #ff6f9b; color: #fff; transform: rotate(-12deg) scale(1.15); box-shadow: 0 3px 0 var(--ink); }
.tt-del:active { transform: translateY(2px) scale(0.96); box-shadow: 0 0 0 var(--ink); }
.tt-del:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.tt-source__item > .tt-del { position: absolute; top: -10px; right: -8px; z-index: 2; }
.tt-saved__item .tt-del { align-self: center; margin: 0 8px 0 4px; flex: 0 0 auto; width: 26px; height: 26px; }
.tt-source__row { padding-top: 8px; }

/* ---------- 아이콘 ---------- */
.tt-ic { width: 1.2em; height: 1.2em; vertical-align: -0.24em; margin-right: 0.32em; flex: none; overflow: visible; }
.tt-del .tt-ic, .tt-source__btn small .tt-ic { margin: 0; }
.tt-scope__btn .tt-ic, .tt-tab .tt-ic { margin-right: 0.35em; }
.tt-badge .tt-ic { width: 1.25em; height: 1.25em; }
.tt-h2 .tt-ic { width: 1.1em; height: 1.1em; }
.tt-bm__link .tt-ic { color: var(--ink); }
.tt-saved__open .tt-ic { width: 1.1em; height: 1.1em; }

/* ---------- 대회 상세 목록 (눌러서 열기) ---------- */
.tt-subd { border: 0; }
.tt-subd > summary { list-style: none; }
.tt-subd > summary::-webkit-details-marker { display: none; }
.tt-caret { font-size: 0.7rem; color: var(--muted); text-align: center; transition: transform 0.2s var(--bounce); }
.tt-subd[open] > summary .tt-caret { transform: rotate(180deg); }
.tt-sub__row:hover { background: #fff4c2; }
.tt-subd[open] > .tt-sub__row { background: #fff4c2; }
.tt-subd__body { padding: 8px 4px 4px 10px; }
.tt-subd--all { margin-top: 4px; }
.tt-subd__sum { display: flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; font-family: var(--font-display); font-size: 0.95rem; background: #d6f0ff; border: 2.5px dashed var(--ink); border-radius: 12px; padding: 5px 10px; }
.tt-subd__sum:hover { background: #b9e5ff; }
.tt-subd__sum b { font-weight: 400; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0 8px; }
.tt-rl__bar { display: flex; align-items: center; gap: 6px; margin: 2px 0 8px; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.tt-rl__bar button { font: inherit; font-family: var(--font-display); font-size: 0.82rem; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 1px 10px; cursor: pointer; }
.tt-rl__bar button.is-on { background: var(--yellow); }
.tt-rl__body { display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; padding-right: 2px; }
.tt-rl__row { display: grid; grid-template-columns: 46px minmax(0, 1.6fr) minmax(110px, 1fr) minmax(120px, 1fr) auto; gap: 4px 10px; align-items: center; font-size: 0.86rem; font-weight: 600; background: #fff; border: 2px solid var(--ink); border-radius: 10px; padding: 5px 10px; }
.tt-rl__row.is-itm { background: #effcf6; border-color: var(--ink); box-shadow: inset 5px 0 0 var(--up-bg); }
.tt-rl__d { color: var(--muted); font-size: 0.78rem; }
.tt-rl__n { overflow-wrap: anywhere; }
.tt-rl__n em { font-style: normal; font-size: 0.66rem; background: var(--lilac); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 6px; margin-left: 4px; }
.tt-rl__rk b { font-family: var(--font-display); font-weight: 400; font-size: 1rem; }
.tt-rl__rk small { color: var(--muted); font-weight: 700; }
.tt-rl__m { color: var(--text-2); font-size: 0.8rem; }
.tt-rl__p { font-family: var(--font-display); font-weight: 400; text-align: right; min-width: 64px; }
@media (max-width: 640px) {
  .tt-sub__row { grid-template-columns: 1fr 1fr 18px; }
  .tt-rl__row { grid-template-columns: 44px 1fr auto; }
  .tt-rl__rk, .tt-rl__m { grid-column: 2 / -1; }
}

/* ---------- 등수 분포 막대 (눌러서 상세) ---------- */
button.tt-col { font: inherit; color: inherit; background: transparent; border: 0; padding: 4px 2px 0; cursor: pointer; border-radius: 12px; transition: transform 0.18s var(--bounce), background 0.15s; }
button.tt-col:hover { transform: translateY(-4px); background: #fff8dc; }
button.tt-col.is-on { background: #fff4c2; box-shadow: inset 0 0 0 2.5px var(--ink); }
button.tt-col.is-empty { opacity: 0.55; }
button.tt-col .tt-col__bar { display: block; }
button.tt-col .tt-col__n, button.tt-col .tt-col__label { display: block; }
.tt-rk-detail { margin: 14px 0 4px; padding: 12px 12px 10px; background: #fffdf5; border: var(--bw) dashed var(--ink); border-radius: 16px; }
.tt-rk-detail__head { margin-bottom: 8px; font-weight: 600; }
.tt-rk-detail__head b { font-family: var(--font-display); font-weight: 400; background: #fff4c2; padding: 0 6px; border-radius: 6px; }

/* ---------- 하이라이트 더 보기 ---------- */
.tt-trio { align-items: start; }
.tt-top__count { font-family: var(--font-display); font-size: 0.8rem; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 0 8px; margin-left: 6px; vertical-align: 0.1em; }
.tt-top--paged li[hidden] { display: none; }
.tt-more-row { display: flex; gap: 8px; margin-top: 12px; }
.tt-more-btn { flex: 1; font-family: var(--font-display); font-size: 0.95rem; color: var(--ink); background: #d6f0ff; border: 2.5px solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); padding: 5px 12px; cursor: pointer; transition: transform 0.15s var(--bounce), background 0.15s; }
.tt-more-btn small { font-family: inherit; font-size: 0.74rem; font-weight: 600; color: var(--text-2); margin-left: 4px; }
.tt-more-btn:hover { background: #b9e5ff; transform: translateY(-2px); }
.tt-more-btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.tt-more-btn--fold { flex: 0 0 auto; background: #fff; }
.tt-more-btn[hidden] { display: none; }

/* ---------- 기록 랭킹 (한 번에 한 목록, 넓게) ---------- */
.tt-hl-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.tt-hl-nav__btn { font-family: var(--font-display); font-size: 1rem; color: var(--ink); background: #fff; border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 0 3px 0 var(--ink); padding: 4px 16px; cursor: pointer; transition: transform 0.15s var(--bounce), background 0.15s; }
.tt-hl-nav__btn small { font-family: inherit; font-size: 0.74rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.tt-hl-nav__btn:hover { transform: translateY(-2px); }
.tt-hl-nav__btn.is-on { background: var(--yellow); }
.tt-hl-panel[hidden] { display: none; }
ol.tt-hl { counter-reset: none; gap: 9px; }
ol.tt-hl li { counter-increment: none; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; padding: 9px 12px; background: #fffdf5; border: 2.5px solid var(--ink); border-radius: 14px; }
ol.tt-hl li::before { content: none; }
ol.tt-hl li[hidden] { display: none; }
.tt-hl__no { display: grid; place-items: center; width: 32px; height: 32px; font-family: var(--font-display); background: var(--yellow); border: 2.5px solid var(--ink); border-radius: 50%; }
ol.tt-hl li:nth-child(2) .tt-hl__no { background: var(--sky); } ol.tt-hl li:nth-child(3) .tt-hl__no { background: var(--pink); }
ol.tt-hl li:nth-child(n+4) .tt-hl__no { background: #fff; }
.tt-hl__main { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.tt-hl__name { font-family: var(--font-display); font-weight: 400; font-size: 1.05rem; line-height: 1.3; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.tt-hl__name em { font-style: normal; font-size: 0.68rem; font-family: inherit; background: var(--lilac); border: 1.5px solid var(--ink); border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.tt-hl__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tt-hl__chip { font-size: 0.78rem; font-weight: 700; border: 2px solid var(--ink); border-radius: 999px; padding: 0 10px; background: #fff; }
.tt-hl__chip--cost { background: #ffe3cc; }
.tt-hl__chip--rank { background: #d6f0ff; }
.tt-hl__date { font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.tt-hl__val { text-align: right; display: flex; flex-direction: column; gap: 2px; min-width: 86px; }
.tt-hl__val b { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.tt-hl__val small { font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.tt-hl__val small.up { color: var(--up); } .tt-hl__val small.down { color: var(--down); }
@media (max-width: 560px) {
  ol.tt-hl li { grid-template-columns: 34px minmax(0, 1fr); }
  .tt-hl__val { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: baseline; text-align: left; }
}

/* ---------- 상세 팝업 ---------- */
html.tt-modal-open, html.tt-modal-open body { overflow: hidden; }
.tt-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(42, 33, 80, 0.55); backdrop-filter: blur(2px); animation: tt-fade 0.15s ease-out; }
.tt-modal[hidden] { display: none; }
@keyframes tt-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tt-pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.tt-modal__panel { width: min(760px, 100%); max-height: min(86vh, 900px); display: flex; flex-direction: column; background: #fffdf5; border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: var(--pop-lg); overflow: hidden; animation: tt-pop 0.22s var(--bounce); }
.tt-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; background: #fff4c2; border-bottom: var(--bw) solid var(--ink); }
.tt-modal__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.25; overflow-wrap: anywhere; }
.tt-modal__sub { margin-top: 3px; font-size: 0.84rem; font-weight: 700; color: var(--text-2); }
.tt-modal__close { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink); background: #fff; border: var(--bw) solid var(--ink); border-radius: 50%; box-shadow: 0 3px 0 var(--ink); cursor: pointer; transition: transform 0.18s var(--bounce), background 0.15s; }
.tt-modal__close:hover { background: var(--pink); transform: rotate(90deg) scale(1.08); }
.tt-modal__close:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.tt-modal__body { padding: 14px 16px 18px; overflow-y: auto; overscroll-behavior: contain; }
.tt-modal .tt-rl__body { max-height: none; overflow: visible; }
.tt-modal .tt-rl__bar { position: sticky; top: -14px; z-index: 2; margin: -14px -16px 10px; padding: 10px 16px; background: #fffdf5; border-bottom: 2px dashed var(--ink); }
.tt-modal ol.tt-hl { margin: 0; }
@media (max-width: 640px) {
  .tt-modal { padding: 0; place-items: end center; }
  .tt-modal__panel { width: 100%; max-height: 92vh; border-radius: 22px 22px 0 0; border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { .tt-modal, .tt-modal__panel { animation: none; } }

/* 눌러서 팝업이 열리는 줄 */
.tt-sub__row[role="button"], .tt-cat--flat[role="button"] { cursor: pointer; }
.tt-cat--flat[role="button"] { padding: 10px 14px 8px; }
.tt-cat--flat[role="button"]:hover { background: #fff8dc; }
.tt-sub__row:focus-visible, .tt-cat--flat:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
button.tt-subd__sum { width: 100%; font: inherit; font-family: var(--font-display); font-size: 0.95rem; color: var(--ink); }
.tt-more-btn { width: 100%; }

/* 눌러서 팝업이 열리는 요소 */
.tt-row.is-click { cursor: pointer; border-radius: 12px; padding: 2px 6px; margin: -2px -6px; transition: background 0.15s; }
.tt-row.is-click:hover { background: #fff4c2; }
.tt-row.is-click:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.tt-tile.is-click { cursor: pointer; }
.tt-tile.is-click:hover { transform: translateY(-3px) !important; }
.tt-tile.is-click::after { content: '↗'; position: absolute; right: 8px; top: 5px; font-size: 0.72rem; font-weight: 700; color: var(--muted); }
.tt-tile { position: relative; }
.tt-chart svg { -webkit-tap-highlight-color: transparent; }

/* ---------- 바이인별 탭: 큰 구간 / 금액별 전환 + 구간 카드 ---------- */
.tt-seg-wrap { grid-column: 1 / -1; }
.tt-seg { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.tt-seg__btn { flex: 1 1 200px; text-align: left; font-family: var(--font-display); font-size: 1.1rem; color: var(--ink); background: #fff; border: var(--bw) solid var(--ink); border-radius: 16px; box-shadow: 0 4px 0 var(--ink); padding: 8px 16px; cursor: pointer; transition: transform 0.15s var(--bounce), background 0.15s; }
.tt-seg__btn small { display: block; font-family: inherit; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.tt-seg__btn:hover { transform: translateY(-2px); }
.tt-seg__btn.is-on { background: var(--yellow); }
.tt-seg-panel[hidden] { display: none; }
.tt-seg-panel > .tt-card { margin: 0; }
.tt-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 14px; margin-top: 12px; }
.tt-tier { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px; background: #fff; border: var(--bw) solid var(--ink); border-radius: 18px; box-shadow: 0 5px 0 var(--ink); transition: transform 0.2s var(--bounce); }
.tt-tier--up { background: #eefcf6; } .tt-tier--down { background: #fff2f7; } .tt-tier--flat { background: #fff8dc; } .tt-tier--empty { background: #f4f1fa; opacity: 0.6; }
.tt-tier.is-click { cursor: pointer; }
.tt-tier.is-click:hover { transform: translateY(-4px) rotate(-0.6deg); }
.tt-tier:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.tt-tier__label { align-self: flex-start; font-family: var(--font-display); font-size: 1.05rem; background: #fff; border: 2.5px solid var(--ink); border-radius: 999px; padding: 1px 12px; }
.tt-tier__val { font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; }
.tt-tier__stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 0.8rem; font-weight: 600; color: var(--text-2); }
.tt-tier__stats b { font-family: var(--font-display); font-weight: 400; color: var(--ink); }
.tt-tier__go { margin-top: 2px; font-size: 0.74rem; font-weight: 700; color: var(--muted); }
@media (max-width: 560px) { .tt-tiers { grid-template-columns: 1fr 1fr; gap: 10px; } .tt-tier__val { font-size: 1.5rem; } }

/* 그룹 머리줄: 접히지 않고, 눌러서 그 그룹 전체 목록 팝업 */
.tt-cat__head { cursor: pointer; padding: 10px 14px 8px; border-radius: 12px; transition: background 0.15s; position: relative; }
.tt-cat__head:hover { background: #fff4c2; }
.tt-cat__head:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.tt-cat > .tt-sub { padding-top: 4px; }

@media (max-width: 760px) { .tt-cat__stats { grid-template-columns: repeat(3, minmax(64px, 1fr)); width: 100%; text-align: left; } }
