/* collection screens: summon / team / fusion */
.co-head { position: absolute; top: 10px; left: 10px; right: 74px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; z-index: 3; pointer-events: none; }
.co-head > button { pointer-events: auto; }
.co-head .title-text { margin-right: 4px; }
.co-back { flex: 0 0 auto; }
.co-wrap { position: absolute; left: 0; right: 0; bottom: 0; top: 60px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 0 8px 8px; pointer-events: none; }
.co-wrap > * { pointer-events: auto; }
.co-panel { max-height: 62vh; display: flex; flex-direction: column; gap: 8px; padding: 2px 4px; animation: coSlide .26s cubic-bezier(.3, 1.4, .5, 1); }
.co-panel.co-scrollp { overflow-y: auto; }
.co-hide { transform: translateY(40px); opacity: 0; pointer-events: none !important; transition: all .25s; }
@keyframes coSlide { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
.co-tabs { display: flex; gap: 6px; }
.co-mini {
  min-width: 44px; min-height: 44px; padding: 2px 8px; font-family: var(--font); font-weight: 900; font-size: 14px; color: var(--ink);
  background: linear-gradient(#fff6df, #e8d3a4); border: 3px solid var(--brass); border-radius: 12px; box-shadow: 0 3px 0 var(--brass-d); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 4px; transition: transform .12s;
}
.co-mini:active { transform: scale(.93); }
.co-mini.on { background: linear-gradient(#e9ffd9, #b4d98a); border-color: var(--moss); box-shadow: 0 3px 0 var(--moss-d); }
.co-mini.focused { outline: 3px solid var(--cyan); }
.co-mini img { width: 26px; height: 26px; object-fit: contain; }
.co-tab { flex: 1; font-size: 15px; }
.co-area { display: flex; align-items: flex-start; justify-content: center; gap: 8px; min-height: 100px; }
.co-text {
  width: 100%; height: 110px; resize: none; border: 0; outline: 0; border-radius: 10px; padding: 10px 12px; font-family: var(--font); font-size: 16px; font-weight: 700; line-height: 1.4;
  color: var(--ink); background: linear-gradient(#fbefcf, #ecd9aa); box-shadow: inset 0 2px 6px rgba(90, 60, 20, .35); user-select: text; -webkit-user-select: text; touch-action: auto;
}
.co-text::placeholder { color: rgba(90, 60, 30, .5); }
.co-cv { display: block; border-radius: 10px; background: #fff6dc; box-shadow: inset 0 0 0 3px var(--brass), 0 2px 6px rgba(0, 0, 0, .3); touch-action: none; cursor: crosshair; }
.co-panel { border-width: 14px; border-image-width: 14px; }
.co-panel.co-drawp { max-height: none; }
.co-ink { flex: 0 0 auto; }
.co-side .co-dot { flex-direction: row; gap: 4px; }
.co-szl { font-size: 11px; line-height: 1; white-space: nowrap; }
.co-matrow { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.co-matbtn { flex: 0 0 auto; font-size: 14px; padding: 0 12px; }
.co-matsel { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; pointer-events: none; }
.co-matsel small { font-size: 12px; font-weight: 800; line-height: 1.2; color: var(--brass-d); }
.co-matsel span { display: inline-flex; align-items: center; gap: 1px; font-weight: 900; font-size: 14px; }
.co-matsel img { width: 24px; height: 24px; object-fit: contain; }
.co-steps.co-steps-wrap { flex-wrap: wrap; justify-content: center; overflow: visible; touch-action: auto; }
.co-area-mats { min-height: 0; }
.co-matmodal { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.co-mtitle { font-size: 20px; text-align: center; }
.co-area-draw { flex-direction: column; align-items: stretch; gap: 6px; min-height: 0; }
.co-drawrow { display: flex; gap: 6px; justify-content: center; align-items: flex-start; }
.co-side { flex: 0 0 64px; width: 64px; display: flex; flex-direction: column; gap: 4px; }
.co-side .co-mini { width: 64px; min-width: 0; height: 44px; padding: 0 4px; }
.co-tool { font-size: 12px; line-height: 1.05; text-align: center; white-space: normal; overflow-wrap: anywhere; }
.co-swatches { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.co-sw { flex: 0 0 44px; width: 44px; min-width: 44px; height: 44px; padding: 0; border-radius: 10px; border: 3px solid var(--cream); box-shadow: 0 0 0 2px var(--ink); }
.co-sw.on { border-color: var(--cyan); box-shadow: 0 0 0 3px var(--ink), 0 0 8px var(--cyan); }
.co-dot { width: 44px; }
.co-dot i { display: block; background: var(--ink); border-radius: 50%; }
.co-matsbig { font-weight: 800; font-size: 14px; text-align: center; padding: 18px 6px; }
.co-steps { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 4px; touch-action: pan-x; }
.co-steps::-webkit-scrollbar { height: 0; }
.co-step { flex: 0 0 auto; width: 54px; display: flex; flex-direction: column; gap: 3px; }
.co-step .co-mini { width: 54px; flex-direction: column; gap: 0; min-height: 50px; font-size: 13px; }
.co-step .co-mini.minus { min-height: 44px; height: 44px; font-size: 20px; }
.co-hint { font-size: 12px; font-weight: 800; text-align: center; color: var(--brass-d); }
.co-pv {
  align-self: flex-start; display: flex; gap: 8px; align-items: center; padding: 6px 10px 6px 6px; max-width: 78%; min-height: 76px;
  background: rgba(42, 26, 18, .78); border: 3px solid var(--brass); border-radius: 14px; color: var(--cream); animation: pop .22s;
}
.co-pv.dim { opacity: .65; }
.co-pv-tags { pointer-events: none; row-gap: 2px; }
.co-tag { font-size: 12px; font-weight: 900; padding: 1px 7px; border-radius: 999px; background: rgba(255, 246, 223, .16); border: 1.5px solid var(--brass); white-space: nowrap; }
.co-pv-art { width: 64px; height: 64px; border-radius: 10px; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--el, #888) 45%, #fff), #d9c79c); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.co-pv-art img { width: 100%; height: 100%; object-fit: contain; }
.co-pv-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.co-pv-name { font-size: 16px; font-weight: 900; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.co-pv-row { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.co-pv small { font-size: 12px; font-weight: 700; opacity: .85; }
.co-trait { min-height: 30px; padding: 0 8px; font-size: 13px; border-radius: 999px; }
.co-trait.on { background: linear-gradient(#e9ffd9, #b4d98a); border-color: var(--moss); }
.co-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.co-trait-big { min-height: 44px; font-size: 14px; border-radius: 999px; padding: 0 12px; }
.co-go { align-self: stretch; }
.co-result { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 2px 6px; text-align: center; }
.co-result .co-big { width: 150px; height: 150px; border-radius: 16px; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--el) 45%, #fff), #d9c79c); display: flex; align-items: center; justify-content: center; animation: pop .4s cubic-bezier(.3, 1.8, .5, 1); }
.co-result .co-big img { width: 100%; height: 100%; object-fit: contain; }
.co-result .co-name { font-size: 24px; }
.co-tr { font-size: 14px; font-weight: 700; line-height: 1.35; text-align: left; width: 100%; }
.co-tr b { color: var(--moss-d); }
.co-line { font-size: 16px; font-weight: 900; color: var(--moss-d); }
.co-slots { display: flex; gap: 4px; }
.co-slot { flex: 1 1 0; min-width: 0; position: relative; }
.co-slot .mcard { padding: 3px; flex-direction: column; gap: 2px; text-align: center; }
.co-slot .mcard-info { width: 100%; }
.co-slot .mcard-name { font-size: 12px; -webkit-text-stroke: 2.5px var(--ink); min-height: 2.3em; }
.co-slot .mcard-row { justify-content: center; }
.co-slot .mcard .stars { font-size: 10px; }
.co-slot .mcard-lv { font-size: 12px; }
.co-slot .mcard-art { width: 44px; height: 44px; }
.co-slot-empty { min-height: 96px; width: 100%; border: 3px dashed var(--brass-d); border-radius: 14px; background: rgba(255, 255, 255, .25); color: var(--brass-d); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: default; font-family: var(--font); }
.co-grid .mcard { gap: 6px; padding: 5px; }
.co-grid .mcard-art { width: 46px; height: 46px; }
.co-grid .mcard-name { font-size: 14px; }
.co-grid .stars { font-size: 11px; letter-spacing: 0; white-space: nowrap; }
.co-grid .mcard-row { flex-wrap: wrap; row-gap: 0; }
.co-grid .hearts { font-size: 11px; letter-spacing: 0; }
.co-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow-y: auto; padding: 6px 4px; touch-action: pan-y; flex: 1 1 auto; min-height: 120px; }
.co-grid::-webkit-scrollbar { width: 0; }
.co-detail { display: flex; flex-direction: column; gap: 8px; padding: 2px 4px; font-weight: 700; font-size: 14px; }
.co-detail .co-top { display: flex; gap: 10px; align-items: center; }
.co-detail .co-big { width: 92px; height: 92px; flex: 0 0 auto; border-radius: 14px; background: radial-gradient(circle at 50% 70%, color-mix(in srgb, var(--el) 45%, #fff), #d9c79c); display: flex; align-items: center; justify-content: center; }
.co-detail .co-big img { width: 100%; height: 100%; object-fit: contain; }
.co-input { width: 100%; min-height: 44px; border: 0; outline: 0; border-radius: 10px; padding: 6px 10px; font-family: var(--font); font-size: 16px; font-weight: 800; color: var(--ink); background: linear-gradient(#fbefcf, #ecd9aa); box-shadow: inset 0 2px 5px rgba(90, 60, 20, .35); user-select: text; -webkit-user-select: text; touch-action: auto; }
.co-bar { height: 14px; border-radius: 8px; background: rgba(58, 36, 20, .3); overflow: hidden; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .4); }
.co-bar i { display: block; height: 100%; background: linear-gradient(#9be86a, #4f9a2c); border-radius: 8px; }
.co-lvrow { display: flex; justify-content: space-between; font-weight: 900; }
.co-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.co-stats span b { float: right; }
.co-pair { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.co-sec { font-size: 13px; font-weight: 900; color: var(--brass-d); }
.co-choice { display: flex; gap: 8px; justify-content: center; align-items: center; }
.co-choice .co-mini { min-height: 52px; }
.co-choice .co-mini img.pa { width: 44px; height: 44px; }
.co-warn { text-align: center; font-size: 13px; font-weight: 800; color: var(--red); }
.co-needtwo { text-align: center; font-weight: 800; padding: 20px 8px; font-size: 15px; }
.co-hintbar { position: absolute; left: 10px; right: 10px; top: 62px; text-align: center; font-size: 14px; z-index: 2; pointer-events: none; }
.co-hintbar span { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(42, 26, 18, .75); color: var(--cream); font-weight: 800; border: 2px solid var(--brass); }
.co-fhint { position: absolute; left: 10px; right: 74px; top: 58px; font-size: 13px; font-weight: 800; color: var(--cream); text-shadow: 0 1px 3px var(--ink), 0 0 6px var(--ink); z-index: 2; pointer-events: none; }
