/* 웹툰 화면 스타일 */
.area-switch { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.area-switch button { min-width: 96px; padding: 8px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--dim); font-weight: 850; }
.area-switch button.on { background: var(--acSoft); color: var(--ac); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ac) 34%, transparent); }
.wt-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.wt-filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wt-filters select { min-height: 40px; width: auto; min-width: 120px; }
.wt-seg { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface2); }
.wt-seg button { padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; color: var(--dim); font-weight: 800; font-size: 13px; }
.wt-seg button.on { background: var(--acSoft); color: var(--ac); }
.wt-tier-row { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; align-items: stretch; margin-bottom: 10px; }
.wt-tier-label { display: grid; place-content: center; border-radius: 14px; font-size: 20px; font-weight: 900; background: var(--surface3); color: var(--tx); }
.wt-tier-label small { display: block; font-size: 11px; font-weight: 700; color: var(--dim); text-align: center; }
.wt-tier-label.tSS { background: color-mix(in srgb, #a855f7 22%, transparent); color: #c084fc; }
.wt-tier-label.tS { background: color-mix(in srgb, var(--ac) 22%, transparent); color: var(--ac); }
.wt-tier-label.tA { background: color-mix(in srgb, var(--lime) 20%, transparent); color: var(--lime); }
.wt-tier-label.tB { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.wt-tier-label.tC, .wt-tier-label.tD { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.wt-tier-label.none { font-size: 14px; color: var(--dim); }
.wt-tier-items { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface2); }
.wt-card { display: grid; gap: 4px; min-width: 150px; max-width: 220px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; color: var(--tx); }
.wt-card:hover { border-color: var(--ac); }
.wt-card-title { font-weight: 800; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-card-meta { display: flex; gap: 8px; align-items: center; color: var(--dim); font-size: 12px; font-weight: 700; }
.wt-status.live { color: var(--ac); } .wt-status.drop { color: var(--bad); }
.wt-card-tier { display: none; }
.wt-section { margin-top: 18px; }
.wt-section h3 { margin: 0 0 10px; font-size: 15px; }
.wt-section p { margin: 0; color: var(--soft); line-height: 1.6; white-space: pre-wrap; }
.wt-gap-list { display: grid; gap: 8px; }
.wt-gap-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface2); color: var(--tx); text-align: left; }
.wt-gap-item span { color: var(--dim); font-size: 12px; font-weight: 700; }
.wt-gap-item b { color: var(--ac); font-size: 13px; }
.wt-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.wt-bars { display: grid; gap: 7px; }
.wt-bar-row { display: grid; grid-template-columns: minmax(80px, 120px) minmax(0, 1fr) 32px; gap: 10px; align-items: center; font-size: 13px; }
.wt-bar { height: 10px; border-radius: 99px; background: var(--surface3); overflow: hidden; }
.wt-bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--ac2), var(--ac)); }
.wt-bar-row b { text-align: right; color: var(--soft); }
.wt-table-scroll { overflow-x: auto; max-width: 100%; }
.wt-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wt-table th, .wt-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.wt-table tbody tr { cursor: pointer; }
.wt-table tbody tr:hover { background: var(--surface2); }
.wt-points { max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.wt-detail-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(4, 8, 16, .55); backdrop-filter: blur(3px); }
.wt-detail { width: min(640px, 100%); max-height: 86vh; overflow: auto; padding: 22px; }
.wt-detail header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.wt-detail h2 { margin: 4px 0 0; font-size: 22px; }
.wt-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.wt-detail-grid > div { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface2); }
.wt-detail-grid span { display: block; color: var(--dim); font-size: 12px; font-weight: 800; }
.wt-detail-grid strong { font-size: 15px; }
.wt-chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.wt-detail footer { margin-top: 18px; font-size: 12px; }
@media (max-width: 680px) {
  .wt-tier-row { grid-template-columns: 58px minmax(0, 1fr); }
  .wt-card { min-width: 132px; }
  .area-switch button { min-width: 0; flex: 1; }
}
