/* flex.css — the FLEX section in LIFE → Status and the flex card (flexui.js). */

/* ---------- the section ---------- */
.flex-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13px; color: var(--ink-2); margin: 4px 0 8px; }
.flex-sum b { color: var(--ink); }
.flex-heat { display: inline-flex; align-items: center; gap: 6px; }
.flex-heat i { display: inline-block; width: 70px; height: 7px; background: rgba(255, 255, 255, .08); border: 1px solid var(--stroke); }
.flex-heat i b { display: block; height: 100%; background: linear-gradient(90deg, #ffc94d, #ff4d6d); }
.flex-list { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.flex-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 8px; border: 1px solid var(--stroke); background: rgba(0, 0, 0, .2); }
.flex-row b { display: block; font-weight: 600; } .flex-row small { color: var(--ink-3); font-size: 12px; }
.flex-row.t-absurd { border-color: #ffc94d; box-shadow: inset 3px 0 0 #ffc94d; }
.flex-row.t-big { box-shadow: inset 3px 0 0 #b07cff; }

/* ---------- the card ---------- */
.flex-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(4, 3, 10, .72); backdrop-filter: blur(3px); animation: flexFade .25s ease-out; }
.flex-card { position: relative; width: min(380px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 12px; background: #0e0c18; border: 2px solid #b07cff; box-shadow: 0 0 0 2px #000, 0 30px 80px -20px #000, 0 0 60px -10px #9945ff; animation: flexPop .5s cubic-bezier(.2, 1.5, .4, 1); }
.flex-modal.t-absurd .flex-card { border-color: #ffc94d; box-shadow: 0 0 0 2px #000, 0 30px 80px -20px #000, 0 0 90px -6px #ffc94d; }
.flex-modal.t-humble .flex-card { border-color: #14f195; box-shadow: 0 0 0 2px #000, 0 30px 80px -20px #000, 0 0 50px -12px #14f195; }
.flex-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: var(--ink-2); font: 700 20px/1 var(--mono, monospace); cursor: pointer; }
.flex-x:hover { color: #fff; }
.flex-head { display: flex; align-items: center; gap: 8px; margin: 0 24px 8px 0; }
.flex-head img { width: 34px; height: 34px; border: 2px solid #9945ff; }
.flex-head b { display: block; font-weight: 700; } .flex-head small { color: var(--ink-3); font-size: 11px; }
.flex-live { margin-left: auto; font: 700 10px var(--mono, monospace); letter-spacing: .14em; color: #00170c; background: #14f195; padding: 3px 7px; animation: flexLive 1.2s ease-in-out infinite; }
.flex-photo { position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); }
.flex-photo canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; animation: flexDevelop 1.1s ease-out; }
.flex-photo .glint { position: absolute; width: 14px; height: 14px; pointer-events: none; animation: glint 2.4s ease-in-out infinite; }
.flex-photo .glint::before, .flex-photo .glint::after { content: ''; position: absolute; left: 50%; top: 50%; background: #fff; box-shadow: 0 0 8px 2px rgba(255, 255, 255, .8); translate: -50% -50%; }
.flex-photo .glint::before { width: 14px; height: 2px; } .flex-photo .glint::after { width: 2px; height: 14px; }
.flex-cap { margin: 8px 0 6px; font-size: 13.5px; color: var(--ink-2); }
.flex-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink-3); margin-bottom: 8px; }
.flex-stats b { color: #14f195; font-size: 16px; }
.flex-replies { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.flex-replies li { padding: 6px 8px; background: rgba(255, 255, 255, .04); border-left: 2px solid #b07cff; font-size: 13px; opacity: 0; animation: replyIn .35s ease-out forwards; }
.flex-replies li b { color: #7fe3ff; margin-right: 4px; } .flex-replies li small { display: block; color: var(--ink-3); font-size: 11px; margin-top: 2px; }
.flex-risk { margin: 10px 0 0; padding: 6px 8px; font-size: 12.5px; color: #ffb3c4; border: 1px dashed #ff4d6d; background: rgba(255, 59, 107, .07); }
html.pc98 .flex-card { border-radius: 0; box-shadow: 6px 6px 0 #000; }
html.pc98 .flex-row { border-width: 2px; }
@keyframes flexFade { from { opacity: 0; } }
@keyframes flexPop { 0% { opacity: 0; transform: translateY(30px) scale(.9) rotate(-2deg); } 100% { transform: none; } }
@keyframes flexDevelop { 0% { filter: brightness(3) saturate(0) blur(3px); } 100% { filter: none; } }
@keyframes flexLive { 50% { box-shadow: 0 0 12px #14f195; } }
@keyframes glint { 0%, 70%, 100% { opacity: 0; transform: scale(.2) rotate(0deg); } 80% { opacity: 1; transform: scale(1.1) rotate(45deg); } 90% { opacity: .3; transform: scale(.6) rotate(90deg); } }
@keyframes replyIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .flex-modal, .flex-card, .flex-photo canvas, .flex-live, .flex-photo .glint { animation: none; } .flex-replies li { animation: none; opacity: 1; } }
