/* management screens */
.mg-tabs { display: flex; gap: 6px; margin: 0 0 8px; }
.mg-tab { flex: 1; min-height: 44px; border-radius: 22px; border: 2px solid #f0c9b8; background: #fff; color: #9a7484; font: 800 14px var(--font); cursor: pointer; padding: 4px 6px; transition: transform .1s; }
.mg-tab:active { transform: scale(.95); }
.mg-tab.on { background: linear-gradient(180deg, #ffb3c7, #e88aa5); color: #fff; border-color: #f6d88a; text-shadow: 0 1px 0 #a04468; box-shadow: 0 3px 0 #a94d6f; }
.mg-head { display: flex; align-items: center; gap: 8px; margin: 0 2px 8px; font-weight: 800; font-size: 14px; }
.mg-head .bar { flex: 1; }
.mg-row { display: flex; align-items: center; gap: 8px; padding: 8px; margin-bottom: 8px; cursor: default; animation: pop .25s both; }
.mg-row.lock { opacity: .85; background: linear-gradient(180deg, #f6f0ee, #ece2e0); }
.mg-ic { width: 56px; height: 56px; flex: none; object-fit: contain; border-radius: 12px; background: #fff7ef; }
.mg-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mg-name { font-weight: 900; font-size: 15px; line-height: 1.2; }
.mg-new { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 7px; background: #e8504a; color: #fff; font-size: 11px; line-height: 16px; vertical-align: 2px; }
.mg-desc { font-size: 12px; line-height: 1.3; color: #8a6a78; margin: 1px 0 2px; }
.mg-tag.mg-sig { background: #fff0c2; color: #a8741a; }
.mg-sub { font-size: 13px; color: #8a6272; line-height: 1.3; }
.mg-act { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; max-width: 104px; text-align: center; }
.mg-act .btn { padding: 4px 8px; font-size: 14px; flex-wrap: wrap; line-height: 1.1; }
.mg-ok { font-size: 24px; color: #4aa36a; font-weight: 900; }
.mg-tag { display: inline-block; padding: 0 6px; border-radius: 8px; background: #ffd3e0; color: #b4567a; font-size: 12px; font-weight: 900; }
.mg-faces { display: flex; gap: 2px; flex-wrap: wrap; }
.mg-faces img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; object-position: top; border: 1.5px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); background: #fde; }
.mg-sec { font-size: 17px; margin: 12px 2px 6px; color: var(--rose-d); font-weight: 900; }
.mg-big { padding: 12px; margin-bottom: 8px; cursor: default; text-align: center; }
.mg-big .big { font-size: 26px; }
.mg-eff { display: grid; grid-template-columns: 1fr auto auto auto; gap: 4px 6px; margin: 8px 0; font-size: 13px; text-align: left; align-items: center; }
.mg-eff b { color: var(--rose-d); }
.mg-pips { display: flex; gap: 3px; }
.mg-pips i { width: 12px; height: 12px; border-radius: 50%; background: #e9d6d6; display: block; }
.mg-pips i.on { background: radial-gradient(circle at 35% 30%, #ffe9a0, #e0a73c); }
.mg-thumb { width: 96px; height: 64px; flex: none; border-radius: 12px; background-size: cover; background-position: center; border: 2px solid #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); }
.mg-banner { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-size: 40px; z-index: 99; white-space: nowrap; pointer-events: none; animation: slam 1.3s both; }
@keyframes slam { 0% { transform: translate(-50%, -50%) scale(3); opacity: 0; } 20% { transform: translate(-50%, -50%) scale(1); opacity: 1; } 80% { opacity: 1; } 100% { transform: translate(-50%, -90%) scale(1); opacity: 0; } }
.mg-cell { position: relative; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 44px; font-family: var(--font); color: var(--ink); }
.mg-cell img.pic { width: 100%; aspect-ratio: 1; object-fit: contain; }
.mg-cell img.girlpic { width: 100%; aspect-ratio: 3/4; object-fit: cover; object-position: top; border-radius: 10px; }
.mg-cell .nm { font-size: 13px; font-weight: 800; text-align: center; line-height: 1.2; }
.mg-cell .src { font-size: 11px; font-weight: 800; color: #8a5a6c; text-align: center; line-height: 1.2; }
.sil { filter: brightness(0) opacity(.35); }
.mg-cg { position: relative; aspect-ratio: 2/3; border-radius: 12px; overflow: hidden; border: 2px solid #fff; padding: 0; background: #d9c8d0; cursor: pointer; box-shadow: 0 3px 0 #e6b8a5; }
.mg-cg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mg-cg.lock { background: linear-gradient(160deg, #6b5a72, #3d2f48); color: #e8d8f0; font: 900 28px var(--font); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mg-cg.lock small { font-size: 12px; font-weight: 700; padding: 0 4px; text-align: center; }
.mg-chk { display: flex; gap: 6px; font-size: 14px; align-items: center; }
.mg-chk b { width: 20px; color: #4aa36a; }
.mg-chk.no b { color: #c8a8b4; }
.mg-entry { text-align: center; }
.mg-entry .pic { width: 150px; height: 150px; object-fit: contain; }
.mg-entry .tall { height: 230px; width: auto; max-width: 100%; object-fit: contain; }
.mg-entry .kv { text-align: left; margin: 4px 0; font-size: 14px; }
.mg-entry .kv b { color: var(--rose-d); }
.mg-cgv { background: rgba(10, 4, 16, .96); display: flex; flex-direction: column; align-items: center; }
.mg-cgv .view { flex: 1; width: 100%; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px 4px 0; }
.mg-cgv img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.mg-cgv .ttl { color: #fff; font-size: 16px; font-weight: 800; padding: 8px 12px 4px; text-align: center; text-shadow: 0 2px 4px #000; }
.mg-cgv .bar2 { display: flex; gap: 10px; align-items: center; justify-content: center; padding: 6px 0 14px; }
.mg-q { padding: 10px; margin-bottom: 8px; cursor: default; }
.mg-q .top { display: flex; align-items: center; gap: 8px; }
.mg-q .tx { flex: 1; font-weight: 800; font-size: 14px; line-height: 1.3; }
.mg-q .bar { margin: 6px 0 2px; }
.mg-dq { border-color: #b99be0; background: linear-gradient(180deg, #fbf7ff, #f1e9ff); }
.mg-dqrow { display: flex; align-items: center; gap: 6px; margin: 4px 0; }
.mg-dqrow .tx { font-size: 13px; }
.mg-gem { display: inline-flex; align-items: center; gap: 2px; font-weight: 800; }
.mg-gem img, .mg-q .gold-ic { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }
.mg-dishes { display: flex; gap: 4px; margin: 4px 0; flex-wrap: wrap; }
.mg-dishes div { position: relative; width: 44px; height: 44px; }
.mg-dishes img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff7ef; }
.mg-dishes .lk img { filter: grayscale(1) opacity(.5); }
.mg-dishes .lk::after { content: "🔒"; position: absolute; right: 0; bottom: 0; font-size: 14px; }
.mg-off { padding: 10px; text-align: center; font-size: 14px; color: #8a6272; }
.mg-grey { opacity: .55; }
.mg-pick { max-height: 380px; }
.mg-off-box { text-align: center; }
.mg-off-box .zz { font-size: 44px; animation: logoFloat2 2.5s ease-in-out infinite; }
@keyframes logoFloat2 { 50% { transform: translateY(-6px) rotate(-6deg); } }
.mg-off-box .gold-big { font-size: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; margin: 6px 0; }
.mg-off-box .gold-big img { width: 34px; height: 34px; }
.mg-help { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.mg-help .em { font-size: 34px; width: 44px; text-align: center; flex: none; }
.mg-help b { display: block; color: var(--rose-d); font-size: 15px; }
.mg-help span { font-size: 14px; line-height: 1.35; }

/* ===== album additions (cats / detail / rules / reward) ===== */
.card.ssr { border-color: #f0b44a; box-shadow: 0 3px 0 #c8902c; }
.card.ur { border-color: #e8504a; box-shadow: 0 0 0 2px #f6c24a, 0 3px 0 #b8322e, 0 0 10px rgba(232,80,74,.55); }
.ccard .cimg.sil { filter: brightness(0) opacity(.35); }
.ccard.silcard { background: linear-gradient(180deg, #f3eef8, #e6def0); border-color: #cfc3dc; }
.ccard .max-badge { position: absolute; right: 3px; top: 1px; font-size: 16px; }
.cd-namerow { display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.bestie { display: inline-block; padding: 2px 10px; border-radius: 12px; font: 900 13px var(--font); color: #fff; background: linear-gradient(90deg, #ff7fa8, #f6a0c8); border: 2px solid #fff; box-shadow: 0 0 8px rgba(255,127,168,.7); text-shadow: 0 1px 0 #a04468; }
.cd-help { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid #f6d88a; background: radial-gradient(circle at 40% 35%, #d9ccf2, #a58bd0); color: #fff; font: 900 20px var(--font); cursor: pointer; box-shadow: 0 2px 0 #7a62a8; padding: 0; }
.cd-help:active { transform: scale(.93); }
.cd-bondrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cd-bondrow .cd-bondnum { text-align: left; flex: 1; font-size: 13px; }
.cd-line .cd-help { width: 46px; height: 46px; }
.cd-info { margin: 8px 0; padding: 8px 10px; border-radius: 14px; background: #f8f1fb; border: 2px solid #e1d3ee; }
.cd-ih { font-weight: 900; font-size: 13px; color: var(--rose-d); margin: 4px 0 2px; }
.cd-stage { display: flex; gap: 6px; font-size: 13px; line-height: 1.3; padding: 3px 4px; border-radius: 8px; color: #8a6272; }
.cd-stage .ck { flex: none; width: 18px; text-align: center; font-weight: 900; }
.cd-stage .tx { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cd-stage.done { color: #2f8a62; font-weight: 700; }
.cd-stage.next { background: #fff3cf; color: var(--ink); font-weight: 800; box-shadow: inset 0 0 0 2px #f0c860; }
.cd-stage.note { color: #b4567a; font-weight: 700; }
.cd-use { width: 100%; min-height: 48px; margin: 4px 0 6px; font-size: 16px; }
.hint.nogirl { margin: 0; }
.modal.item-picker, .modal.rules-modal, .modal.max-reward { width: 376px; }
.ip-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 8px; align-items: center; padding: 8px; margin-bottom: 8px; border-radius: 14px; background: #fff7ef; border: 2px solid #f0c9b8; }
.ip-ic { width: 44px; height: 44px; object-fit: contain; }
.ip-name { font-weight: 900; font-size: 15px; line-height: 1.2; min-width: 0; }
.ip-name b { color: var(--rose-d); }
.ip-btn { min-width: 64px; }
.ip-desc { grid-column: 1 / -1; font-size: 13px; line-height: 1.35; color: #6a4858; overflow-wrap: anywhere; }
.ip-note { color: #b4567a; font-size: 12px; }
.rules-modal .modal-inner { max-height: 470px; padding-right: 2px; }
.rl-sec { margin-bottom: 10px; }
.rl-h { font-weight: 900; font-size: 15px; color: var(--rose-d); margin-bottom: 2px; }
.rl-tx { font-size: 14px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.max-reward { text-align: center; }
.max-reward .mx-art { display: block; margin: 0 auto 6px; height: 200px; max-width: 100%; object-fit: contain; filter: drop-shadow(0 0 14px #ffd0e4); animation: rise2 .6s cubic-bezier(.2,1.5,.4,1); }
.max-reward .mx-art.girl { height: 260px; }
.max-reward .mx-name { font-size: 22px; margin: 4px 0; }
.max-reward .mx-tx { font-size: 15px; font-weight: 700; line-height: 1.4; }
@keyframes rise2 { from { transform: translateY(40px) scale(.5); opacity: 0; } }
