/* romance + gallery */
.rm-dark, .gl-dark { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,6,22,.7), rgba(14,6,22,.82)); pointer-events: none; }
.rm-tip { position: absolute; left: 12px; right: 76px; top: 46px; min-height: 36px; font-size: 13px; line-height: 1.3; color: var(--gold); text-shadow: var(--outline); display: flex; align-items: center; }
.rm-list { position: absolute; left: 10px; right: 10px; top: 86px; bottom: 70px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 2px 2px 8px; scrollbar-width: none; }
.rm-list::-webkit-scrollbar { display: none; }
.rm-card { position: relative; flex: 0 0 auto; display: flex; gap: 10px; align-items: center; width: 100%; height: 100px; padding: 6px; text-align: left; font-family: var(--font); color: var(--text);
  background: linear-gradient(135deg, rgba(60,24,62,.88), rgba(24,10,32,.92)); border: 1.5px solid rgba(243,210,122,.55); border-radius: 14px; cursor: pointer; animation: rmIn .35s cubic-bezier(.3,1.5,.5,1) both; transition: transform .1s; }
.rm-card:active { transform: scale(.97); }
.rm-card.focus { border-color: var(--gold); box-shadow: 0 0 12px rgba(243,210,122,.6); }
.rm-card.locked { opacity: .8; }
.rm-thumb { flex: 0 0 76px; width: 76px; height: 86px; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--lc, var(--gold2)); background: #241530; display: flex; align-items: center; justify-content: center; }
.rm-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.rm-card.locked .rm-thumb img { filter: brightness(0); opacity: .45; }
.rm-ph { font-size: 34px; font-weight: 900; color: var(--gold); text-shadow: var(--outline); }
.rm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.rm-top { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.rm-name { font-size: 17px; font-weight: 900; color: var(--gold); text-shadow: var(--outline); }
.rm-role { font-size: 12px; opacity: .9; text-shadow: var(--outline); }
.rm-hint { font-size: 13px; opacity: .85; text-shadow: var(--outline); }
.rm-arow { display: flex; flex-direction: column; gap: 2px; }
.rm-hearts { display: flex; gap: 2px; font-size: 14px; line-height: 1; }
.rm-h { color: #4a3150; } .rm-h.on { color: #ff6f9a; text-shadow: 0 0 6px rgba(255,111,154,.8); }
.rm-bar { position: relative; height: 14px; border-radius: 7px; background: rgba(0,0,0,.5); border: 1px solid rgba(243,210,122,.5); overflow: hidden; }
.rm-fill { height: 100%; background: linear-gradient(90deg, #b3243a, #ff7fa8); transition: width .5s; }
.rm-barnum { position: absolute; right: 6px; top: -1px; font-size: 12px; font-weight: 800; text-shadow: var(--outline); }
.rm-bot { display: flex; align-items: center; justify-content: space-between; }
.rm-petals { display: flex; gap: 5px; }
.rm-pt { width: 12px; height: 9px; border-radius: 70% 0 70% 0; background: #3b2a44; border: 1px solid rgba(255,255,255,.2); }
.rm-pt.on { background: linear-gradient(135deg, #ffd6e4, #ff8fb8); box-shadow: 0 0 5px #ff8fb8; }
.rm-favor { display: flex; gap: 4px; }
.rm-seal { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; color: #fff; text-shadow: 0 1px 2px #000; border: 1px solid rgba(255,255,255,.5); }
.rm-badge { position: absolute; right: -4px; top: -6px; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1b8, #c9973a); color: #b3243a; font-size: 16px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 8px rgba(243,210,122,.9); animation: pulse 1.8s infinite; }
.rm-detail { width: 348px; max-height: 660px; overflow-y: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; scrollbar-width: none; }
.rm-bigbtn { background: none; border: 0; padding: 0; cursor: pointer; }
.rm-big { width: 150px; height: 190px; border-radius: 12px; overflow: hidden; border: 2px solid var(--gold); box-shadow: 0 0 14px rgba(243,210,122,.5); animation: pop .4s cubic-bezier(.3,1.6,.5,1); }
.rm-big img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.rm-sub { font-size: 13px; min-height: 34px; text-align: center; opacity: .75; text-shadow: var(--outline); display: flex; align-items: center; line-height: 1.3; }
.rm-sub.on { opacity: 1; color: var(--gold); }
.rm-dname { font-size: 20px; font-weight: 900; color: var(--gold); text-shadow: var(--outline); }
.rm-detail .rm-arow { width: 100%; }
.rm-next { font-size: 13px; text-align: center; line-height: 1.4; text-shadow: var(--outline); }
.rm-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
@keyframes rmIn { 0% { opacity: 0; transform: translateX(-30px); } 100% { opacity: 1; transform: none; } }

/* gallery */
.gl-chips { position: absolute; left: 10px; right: 10px; top: 46px; display: flex; flex-wrap: nowrap; gap: 4px; overflow: hidden; }
.gl-chips > * { flex: 0 1 auto; min-width: 0; white-space: nowrap; font-size: 13px; padding-left: 6px; padding-right: 6px; }
.gl-chip { display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 13px; background: rgba(20,8,26,.75); border: 1px solid rgba(243,210,122,.55); font-size: 13px; font-weight: 800; text-shadow: var(--outline); white-space: nowrap; }
.gl-chip img { width: 18px; height: 18px; object-fit: contain; }
.gl-tabs { position: absolute; left: 10px; right: 10px; top: 82px; display: flex; gap: 8px; }
.gl-tab { flex: 1; min-height: 44px; border-radius: 12px; font-family: var(--font); font-weight: 800; font-size: 15px; color: var(--text); text-shadow: var(--outline); background: rgba(40,16,44,.85); border: 1.5px solid rgba(243,210,122,.4); cursor: pointer; transition: transform .1s; padding: 0 2px; }
.gl-tab:active { transform: scale(.93); }
.gl-tab.on { background: linear-gradient(180deg, #b3243a, #6e1426); border-color: var(--gold); color: var(--gold); }
.gl-body { position: absolute; left: 10px; right: 10px; top: 134px; bottom: 70px; overflow-y: auto; scrollbar-width: none; padding: 2px; animation: rmIn .25s ease-out; }
.gl-body::-webkit-scrollbar { display: none; }
.gl-grid { display: grid; gap: 8px; }
.gl-grid.c3 { grid-template-columns: repeat(3, 1fr); } .gl-grid.c2 { grid-template-columns: repeat(2, 1fr); }
.gl-head { font-size: 15px; font-weight: 900; color: var(--gold); text-shadow: var(--outline); margin: 10px 2px 6px; border-bottom: 1px solid rgba(243,210,122,.4); }
.gl-head:first-child { margin-top: 0; }
.gl-cell { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px; border-radius: 10px; background: rgba(36,14,40,.85); border: 1.5px solid rgba(243,210,122,.4); font-family: var(--font); color: var(--text); text-shadow: var(--outline); font-size: 12px; text-align: center; line-height: 1.2; min-width: 0; }
button.gl-cell { cursor: pointer; transition: transform .1s; } button.gl-cell:active { transform: scale(.95); }
.gl-img { width: 100%; border-radius: 6px; overflow: hidden; background: #150b1c; position: relative; display: flex; align-items: center; justify-content: center; }
.gl-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gl-img.o { aspect-ratio: 2/3; } .gl-img.o img { object-fit: contain; }
.gl-img.cg { aspect-ratio: 2/3; } .gl-img.e { aspect-ratio: 16/10; }
.gl-cell.locked .gl-img img { filter: brightness(0); opacity: .5; }
.gl-lock { position: absolute; width: 32px; height: 32px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d8405a, #7a1428); border: 1.5px solid var(--gold2); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 900; color: #ffe9e9; }
.gl-cell .nm { font-size: 12px; font-weight: 700; word-break: break-word; }
.gl-cell .hn { font-size: 12px; opacity: .8; }
.gl-cell.true { grid-column: 1 / -1; border-color: var(--gold); }
.gl-cell.title { flex-direction: row; justify-content: space-between; padding: 8px 12px; min-height: 48px; font-size: 16px; font-weight: 800; }
.gl-cell.title.on { border-color: var(--gold); box-shadow: 0 0 10px rgba(243,210,122,.6); }
.gl-list { display: flex; flex-direction: column; gap: 8px; }
.gl-check { color: var(--gold); font-size: 20px; }
.gl-viewer { position: relative; width: 396px; height: 704px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.gl-viewer img { max-width: 392px; max-height: 590px; object-fit: contain; border-radius: 8px; box-shadow: 0 0 24px rgba(243,210,122,.4); animation: pop .35s cubic-bezier(.3,1.5,.5,1); }
.gl-vname { font-size: 20px; font-weight: 900; color: var(--gold); text-shadow: var(--outline); }
.gl-vclose { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; }
