/* characters screens */
.chars-head { display: flex; justify-content: space-between; align-items: center; margin: 0 2px 8px; font-weight: 800; font-size: 14px; }
.ccard { padding: 6px 4px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 150px; transition: transform .1s; }
.ccard:active { transform: scale(.96); }
.ccard .cimg { width: 84px; height: 84px; object-fit: contain; }
.ccard .cname { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ccard .bar { width: 80%; height: 6px; }
.ccard.adopt { border-color: var(--gold); background: linear-gradient(180deg, #fffdf2, #fff0c8); box-shadow: 0 3px 0 #d9a441; }
.ccard.lock .cimg { filter: brightness(0) opacity(.35); }
.ccard.lock { background: #f1e5e5; border-color: #dccaca; box-shadow: 0 3px 0 #cdb8b8; }
.ccard .small { font-size: 12px; font-weight: 800; color: #8a5a6c; }
.ccard .face { position: absolute; left: 4px; top: 4px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; background-size: cover; background-position: top; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.sparkle-badge { position: absolute; right: 2px; top: 0; font-size: 20px; animation: pulse 1s ease-in-out infinite; }
.cat-adopt .big { display: block; margin: 0 auto; width: 160px; height: 160px; object-fit: contain; }
.cat-adopt { text-align: center; }
.cat-detail .modal-inner { max-height: 560px; }
.cd-top { position: relative; height: 150px; border-radius: 18px; background: radial-gradient(circle at 50% 60%, #fff 0%, #ffe3ec 55%, #e6dcf6 100%); overflow: hidden; margin-bottom: 8px; }
.cd-top img.still { position: absolute; left: 50%; bottom: 6px; height: 130px; transform: translateX(-50%); }
.cd-top img.still.breathe, .girl-ov .gport.breathe:not(.bounce) { transform-origin: 50% 100%; animation: cdBreathe 3.2s ease-in-out infinite; }
@keyframes cdBreathe { 0%, 100% { transform: translateX(-50%) scale(1, 1) rotate(0deg); } 35% { transform: translateX(-50%) scale(1.008, 1.018) rotate(.6deg); } 70% { transform: translateX(-50%) scale(.998, .994) rotate(-.6deg); } }
.girl-ov .gport-spr { position: absolute; left: 50%; top: 516px; width: 0; height: 0; cursor: pointer; }
.girl-ov .gport-spr.bounce { animation: bounceP .4s; }
.cd-name { font-size: 22px; text-align: center; }
.cd-purpose { margin-top: 6px; padding: 6px 8px; border-radius: 12px; background: #fff6df; color: #7a5a2a; font-size: 12px; font-weight: 700; line-height: 1.35; }
.cd-area .btn { min-height: 46px; padding: 4px 10px; font-size: 13px; }
.cd-lvnote { text-align: center; font-size: 12px; font-weight: 800; color: #8a5a6c; margin: -2px 0 6px; }
.cd-lvnote.no { color: #c0506e; }
.cd-crystal { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; padding: 6px 8px; border-radius: 12px; background: #f1e9ff; color: #7a4fa8; font-size: 13px; font-weight: 800; }
.cd-crystal.ok { background: #e9fbef; color: #3f8f64; }
.cd-crystal img { width: 26px; height: 26px; object-fit: contain; }
.staff-pick .sp-row { width: 100%; min-height: 52px; margin: 4px 0; display: flex; justify-content: space-between; align-items: center; padding: 6px 14px; }
.staff-pick .sp-s { font-size: 12px; opacity: .85; }
.cd-line { display: flex; justify-content: center; gap: 6px; align-items: center; flex-wrap: wrap; margin: 3px 0; font-size: 13px; }
.cd-sec { margin: 8px 0; font-size: 14px; }
.cd-bondnum { font-size: 12px; font-weight: 800; text-align: right; }
.cd-acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; }
.cd-acts .btn { padding: 4px 2px; flex-direction: column; gap: 0; font-size: 13px; min-height: 48px; border-radius: 16px; line-height: 1.15; }
.cd-acts .btn .btn-gold { font-size: 12px; }
.cd-items { display: flex; gap: 8px; margin: 6px 0; }
.cd-items .btn { flex: 1; font-size: 13px; padding: 4px 8px; }
.cd-items .btn-ic { width: 30px; height: 30px; }
.cd-box { margin-top: 8px; padding: 10px; border-radius: 16px; background: linear-gradient(180deg, #f3ecff, #fde8f0); border: 2px dashed var(--lav); }
.cd-title { text-align: center; font-size: 17px; margin-bottom: 6px; }
.cond { display: flex; gap: 6px; font-size: 13px; padding: 2px 0; font-weight: 700; }
.cond.met { color: #2f8a62; }
.seg { display: flex; border-radius: 22px; overflow: hidden; border: 2px solid var(--rose); margin-bottom: 8px; }
.seg button { flex: 1; min-height: 44px; border: 0; background: #fff; font: 800 14px var(--font); color: var(--rose-d); cursor: pointer; }
.seg button.on { background: var(--rose); color: #fff; }
.feed-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 4px 8px; margin-bottom: 6px; justify-content: flex-start; text-align: left; }
.feed-row img { width: 40px; height: 40px; object-fit: contain; }
.feed-row .fn { flex: 1; font-size: 14px; }
.tag-fav { background: #ff7fa8; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 8px; margin-left: 4px; }
.hint { font-size: 13px; color: #b4567a; background: #fff0f4; border-radius: 10px; padding: 6px 8px; margin-bottom: 6px; }
/* girls */
.gcard { padding: 0 0 6px; overflow: hidden; text-align: center; }
.gcard .gp { width: 100%; height: 150px; object-fit: cover; object-position: top; display: block; border-radius: 14px 14px 0 0; }
.gcard .gn { font-size: 15px; font-weight: 900; margin-top: 4px; }
.gcard .gt { font-size: 12px; color: #9a7484; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gcard .tags { display: flex; gap: 4px; justify-content: center; align-items: center; margin: 3px 0; font-size: 12px; font-weight: 800; }
.gcard .btn { margin-top: 2px; font-size: 13px; padding: 4px 10px; }
.gcard .rar { position: absolute; left: 6px; top: 6px; }
.gcard .formb { position: absolute; right: 6px; top: 6px; background: rgba(255,255,255,.85); border-radius: 10px; font-size: 11px; font-weight: 800; padding: 1px 6px; }
.gcard .story-badge { position: absolute; right: 6px; top: 130px; background: #ff5f8a; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 900; padding: 2px 7px; border: 2px solid #fff; animation: pulse 1s ease-in-out infinite; }
.empty { text-align: center; padding: 60px 20px; font-size: 15px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* girl detail */
.girl-ov { background: radial-gradient(circle at 50% 30%, #fff 0%, #ffe3ef 40%, #d9cdf5 100%); overflow: hidden; }
.girl-ov .gport { position: absolute; left: 50%; top: 36px; height: 480px; transform: translateX(-50%); transform-origin: 50% 100%; cursor: pointer; filter: drop-shadow(0 6px 12px rgba(120,60,110,.35)); animation: rise .5s cubic-bezier(.2,1.5,.4,1); }
.girl-ov .gport.bounce { animation: bounceP .4s; }
@keyframes bounceP { 30% { transform: translateX(-50%) scale(1.04, .97); } 60% { transform: translateX(-50%) scale(.98, 1.03); } }
@keyframes rise { from { transform: translateX(-50%) translateY(60px); opacity: 0; } }
.girl-ov .gpanel { position: absolute; left: 8px; right: 8px; bottom: 8px; max-height: 340px; overflow-y: auto; scrollbar-width: none; padding: 12px; border-radius: 22px;
  background: rgba(255,248,244,.94); border: 3px solid var(--gold-l); box-shadow: 0 4px 16px rgba(80,30,60,.3); animation: sheetIn .3s cubic-bezier(.2,1.3,.4,1); }
.girl-ov .gpanel::-webkit-scrollbar { display: none; }
.gp-name { font-size: 22px; }
.gp-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gp-btns .btn { flex: 1 1 28%; font-size: 13px; padding: 4px 6px; }
.sp { position: absolute; font-size: 16px; color: #fff; text-shadow: 0 0 6px #ff9fc0; animation: twinkle 2s ease-in-out infinite; pointer-events: none; }
@keyframes twinkle { 0%,100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1.2); } }
/* transform */
.transform-ov { background: radial-gradient(circle at 50% 45%, #5a3d86 0%, #2b1a47 70%, #150a28 100%); overflow: hidden; }
.transform-ov .rays { position: absolute; left: 50%; top: 45%; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: repeating-conic-gradient(from 0deg, rgba(255,230,250,.22) 0 8deg, rgba(255,255,255,0) 8deg 24deg); border-radius: 50%; animation: spin 14s linear infinite;
  -webkit-mask-image: radial-gradient(circle, #000 10%, transparent 65%); mask-image: radial-gradient(circle, #000 10%, transparent 65%); }
@keyframes spin { to { transform: rotate(360deg); } }
.transform-ov .tcat { position: absolute; left: 50%; top: 270px; width: 200px; height: 200px; margin-left: -100px; object-fit: contain; filter: drop-shadow(0 0 20px #fff) brightness(1.2); animation: floatCat 3s ease-in forwards; }
@keyframes floatCat { from { transform: translateY(60px) scale(.8); } to { transform: translateY(-50px) scale(1.15); filter: drop-shadow(0 0 40px #fff) brightness(2); } }
.transform-ov .tcat.gone { animation: none; opacity: 0; transition: opacity .3s; }
.transform-ov .tgirl { position: absolute; left: 50%; bottom: 150px; height: 520px; transform: translateX(-50%) scale(0); opacity: 0; filter: drop-shadow(0 0 18px #ffd6f0); }
.transform-ov .tgirl.show { animation: girlPop .7s cubic-bezier(.2,1.7,.4,1) forwards; }
@keyframes girlPop { 0% { transform: translateX(-50%) translateY(80px) scale(.3); opacity: 0; } 100% { transform: translateX(-50%) scale(1); opacity: 1; } }
.transform-ov .ttext { position: absolute; left: 0; right: 0; bottom: 50px; text-align: center; opacity: 0; }
.transform-ov .ttext.show { animation: slam .45s cubic-bezier(.2,1.8,.4,1) forwards; }
@keyframes slam { 0% { transform: scale(2.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.transform-ov .ttitle { font-size: 14px; color: #ffe9f5; text-shadow: 0 1px 3px #000; font-weight: 800; }
.transform-ov .tname { font-size: 32px; }
.transform-ov .tprompt { position: absolute; left: 0; right: 0; bottom: 14px; text-align: center; color: #fff; font-weight: 800; font-size: 15px; opacity: 0; text-shadow: 0 1px 4px #000; }
.transform-ov .tprompt.show { opacity: 1; animation: pulse 1.4s infinite; }
.ov-tap { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; cursor: pointer; padding: 0; }
.ov-skip { position: absolute; right: 12px; bottom: 12px; z-index: 5; }
.transform-ov .ov-skip { bottom: 40px; }
/* story */
.story-ov { background: #1b0f1c; overflow: hidden; }
.story-ov .cg-stage { position: absolute; inset: 0; }
.story-ov .cg.late { opacity: 0; transition: opacity .9s ease; animation: none; }
.story-ov .cg.late.in { opacity: 1; animation: kb 22s ease-out forwards; }
.story-ov .cg.dim { filter: brightness(.82) saturate(1.05); }
.story-ov .sgirl { position: absolute; left: 50%; bottom: 150px; height: 74%; max-width: 100%; object-fit: contain; transform: translateX(-50%); filter: drop-shadow(0 6px 12px rgba(60,20,50,.35)); animation: sgIn .7s cubic-bezier(.2,1.3,.4,1) both; }
@keyframes sgIn { from { opacity: 0; transform: translate(-50%, 30px) scale(.94); } to { opacity: 1; transform: translateX(-50%); } }
.fav-off { filter: grayscale(.8) opacity(.6); }
.fav-lock { margin-left: 6px; padding: 1px 8px; border-radius: 10px; background: #f3e3ec; color: var(--rose-d); font-size: 12px; font-weight: 800; }
.fav-hint { font-size: 12px; margin-top: 2px; }
.story-ov .cg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 22s ease-out forwards; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.12) translate(-6px, -8px); } }
.story-ov .chap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 30px; font-size: 26px; background: rgba(30,10,30,.55); animation: fadeIn .5s; transition: opacity .5s; }
.story-ov .chap.out { opacity: 0; }
.story-ov .dbox { position: absolute; left: 12px; right: 12px; bottom: 14px; height: 150px; padding: 22px 16px 12px; border-radius: 20px; pointer-events: none;
  background: rgba(255,248,240,.95); border: 3px solid var(--rose); box-shadow: 0 4px 14px rgba(60,20,50,.4); font-size: 16px; line-height: 1.5; color: var(--ink); overflow: hidden; transition: opacity .2s; }
.story-ov .dbox.hide { opacity: 0; }
.story-ov .dbox.narr { font-style: italic; padding-top: 14px; }
.story-ov .plate { position: absolute; left: 14px; top: -14px; padding: 2px 14px; border-radius: 14px; background: var(--rose); color: #fff; font-weight: 900; font-size: 14px; border: 2px solid #fff; }
.story-ov .plate.p { background: var(--teal); }
.story-ov .nextmark { position: absolute; right: 12px; bottom: 6px; color: var(--rose); animation: pulse 1s infinite; font-size: 14px; }
.story-ov .ov-skip { left: 12px; right: auto; bottom: 172px; background: rgba(255,248,240,.9); }
