:root {
  --bg-color:    #fff5f7;
  --block-bg:    #ffffff;
  --main:        #ff8fa3;
  --main-light:  #fff0f3;
  --main-border: #ffd0df;
  --main-strong: #c0404e;
  --text-color:  #37352f;
  --shadow:      rgba(255,112,150,0.18);
}
*{ box-sizing:border-box; }
body{ background:var(--bg-color); color:var(--text-color); font-family:'Pretendard','Apple SD Gothic Neo',sans-serif; margin:0; padding:0; }
.page-wrap{ max-width:880px; margin:0 auto; padding:24px 16px 120px; }
.back{ display:inline-block; margin-bottom:20px; font-size:13px; font-weight:700; color:#aaa; cursor:pointer; transition:color .2s; }
.back:hover{ color:var(--main); }
h1{ font-size:26px; font-weight:900; margin:0 0 6px; }
.page-sub{ font-size:12px; color:#aaa; font-weight:600; margin-bottom:24px; }

.cp-card{ background:var(--block-bg); border:1.5px solid var(--main-border); border-radius:16px; padding:20px; margin-bottom:18px; box-shadow:0 2px 12px var(--shadow); }
.cp-card h2{ margin:0 0 14px; font-size:16px; font-weight:900; color:var(--main-strong); }

.cp-grid-3{ display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; }
.cp-field{ display:flex; flex-direction:column; gap:4px; }
.cp-field label{ font-size:10.5px; color:#888; font-weight:700; }
.cp-field input, .cp-field select{ padding:8px 10px; border:1.5px solid var(--main-border); border-radius:8px; background:white; font-size:13px; font-weight:600; color:var(--text-color); font-family:inherit; outline:none; transition:border-color .15s; }
.cp-field input:focus, .cp-field select:focus{ border-color:var(--main); }

.cp-profile-row{ display:flex; gap:10px; align-items:flex-end; margin-top:14px; flex-wrap:wrap; }
.cp-profile-row .cp-field{ flex:1; min-width:180px; }
.cp-btn{ padding:9px 16px; background:var(--main); color:white; border:none; border-radius:8px; font-weight:900; cursor:pointer; font-size:13px; transition:filter .15s; }
.cp-btn:hover{ filter:brightness(1.05); }

.cp-table{ width:100%; border-collapse:collapse; font-size:12.5px; }
.cp-table thead th{ background:var(--main-light); color:var(--main-strong); padding:9px 8px; font-weight:900; text-align:left; border-bottom:2px solid var(--main-border); white-space:nowrap; }
.cp-table tbody td{ padding:9px 8px; border-bottom:1px solid #f5f5f5; }
.cp-table tbody tr:hover{ background:var(--main-light); }
.cp-row-bad{ opacity:0.55; }
.cp-bad{ color:#c0404e; font-weight:700; font-size:11px; background:#ffeef0; padding:2px 7px; border-radius:6px; }

.cp-gun-badge{ display:inline-block; color:white; font-weight:900; font-size:11px; padding:3px 9px; border-radius:6px; min-width:24px; text-align:center; }

.cp-empty{ text-align:center; color:#bbb; font-size:13px; font-weight:600; padding:30px 0; }

.cp-gun-row{ display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; }
.cp-gun-card{ background:var(--main-light); border-radius:12px; overflow:hidden; }
.cp-gun-h{ color:white; font-weight:900; font-size:14px; padding:10px 14px; }
.cp-gun-top{ display:flex; justify-content:space-between; align-items:center; padding:14px 14px 8px; font-size:14px; }
.cp-gun-top b{ font-weight:900; color:var(--text-color); }
.cp-gun-top span{ color:var(--main); font-weight:900; font-size:13px; }
.cp-gun-sub{ font-size:11px; color:#888; padding:0 14px 14px; font-weight:600; }

.cp-note{ margin-top:12px; font-size:12px; color:#888; font-weight:600; background:var(--main-light); padding:10px 14px; border-radius:8px; }

.cp-blocker-list{ margin:0; padding-left:20px; font-size:13px; line-height:1.7; }
.cp-blocker-list li b{ color:var(--main-strong); }

@media (max-width:680px){
  .cp-grid-3{ grid-template-columns:repeat(2, 1fr); }
  .cp-gun-row{ grid-template-columns:1fr; }
  .cp-table{ font-size:11.5px; }
  .cp-table thead th, .cp-table tbody td{ padding:7px 5px; }
}

.cp-row{ cursor:pointer; }
.cp-row:hover{ background:var(--main-light); }
.cp-toggle{ font-size:11px; color:var(--main); font-weight:900; }
.cp-proof-row td{ padding:0 !important; border:none !important; }
.cp-proof-box{ background:var(--main-light); border-left:3px solid var(--main); padding:14px 18px; font-size:12px; line-height:1.8; color:var(--text-color); font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.cp-proof-line{ margin-bottom:3px; }
.cp-proof-line b{ color:var(--main-strong); font-weight:900; }

.cp-sub-note{ font-size:11.5px; color:#888; font-weight:600; margin-top:-8px; margin-bottom:12px; }
.cp-pf-tag{ background:#eaeaea; color:#666; font-size:10px; font-weight:900; padding:2px 7px; border-radius:5px; }
.cp-delta-big{ color:#c0404e; font-weight:900; background:#ffeef0; padding:2px 7px; border-radius:5px; }
.cp-delta-mid{ color:#a06000; font-weight:900; background:#fff4e0; padding:2px 7px; border-radius:5px; }
.cp-delta-zero{ color:#999; font-weight:700; }

.cp-h1-row{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:6px; }
.cp-h1-row h1{ margin:0; }
.cp-info-wrap{ position:relative; display:inline-block; }
.cp-info-btn{ background:var(--main-light); color:var(--main-strong); border:1.5px solid var(--main-border); border-radius:20px; padding:6px 12px; font-size:11.5px; font-weight:800; cursor:pointer; transition:all .15s; font-family:inherit; }
.cp-info-btn:hover{ background:var(--main); color:white; border-color:var(--main); }
.cp-info-tip{ position:absolute; top:calc(100% + 8px); left:0; width:340px; max-width:88vw; background:white; border:1.5px solid var(--main-border); border-radius:14px; padding:16px 18px; box-shadow:0 12px 30px var(--shadow); z-index:100; opacity:0; visibility:hidden; transform:translateY(-6px); transition:all .18s ease; pointer-events:none; }
.cp-info-wrap:hover .cp-info-tip, .cp-info-tip.cp-info-tip-active{ opacity:1; visibility:visible; transform:translateY(0); pointer-events:auto; }
.cp-info-tip-title{ font-size:14px; font-weight:900; color:var(--main-strong); margin-bottom:8px; }
.cp-info-tip p{ font-size:12.5px; line-height:1.65; color:var(--text-color); margin:0 0 8px; font-weight:500; }
.cp-info-tip p:last-child{ margin-bottom:0; }
.cp-info-tip b{ color:var(--main-strong); font-weight:900; }

.cp-bonus-cell{ font-size:10.5px; color:var(--main-strong); background:var(--main-light); padding:3px 7px; border-radius:5px; font-weight:700; white-space:nowrap; display:inline-block; }

/* ───────────── 슬라이더 (좌우 카드 스와이프) ───────────── */
.cp-slider-nav{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
.cp-slider-btn{ width:36px; height:36px; border-radius:10px; border:1.5px solid var(--main-border); background:var(--block-bg); color:var(--main-strong); font-size:20px; font-weight:900; cursor:pointer; display:flex; align-items:center; justify-content:center; line-height:1; transition:all .15s; flex-shrink:0; }
.cp-slider-btn:hover:not(:disabled){ background:var(--main); color:white; border-color:var(--main); }
.cp-slider-btn:disabled{ opacity:.35; cursor:not-allowed; }
.cp-slider-title{ flex:1; text-align:center; font-size:13px; font-weight:900; color:var(--main-strong); padding:0 6px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.cp-slider-dots{ display:flex; justify-content:center; gap:7px; margin-bottom:14px; }
.cp-slider-dot{ width:9px; height:9px; border-radius:50%; background:var(--main-light); border:1.5px solid var(--main-border); padding:0; cursor:pointer; transition:all .18s; }
.cp-slider-dot-active{ background:var(--main); border-color:var(--main); width:24px; border-radius:5px; }
.cp-slider{ display:flex; overflow-x:auto; scroll-snap-type:x mandatory; scroll-behavior:smooth; gap:14px; padding-bottom:6px; margin-bottom:18px; scrollbar-width:none; -ms-overflow-style:none; }
.cp-slider::-webkit-scrollbar{ display:none; }
.cp-slider > .cp-card{ flex:0 0 100%; width:100%; scroll-snap-align:start; margin-bottom:0; }
