/* ZeroFee Tools - Love & Relationship family theme */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --pink: #ec4899; --rose: #f43f5e; --purple: #a855f7; --deep: #9d174d;
  --ink: #1e293b; --muted: #64748b; --line: #f3d1de; --bg: #fff7fa; --card: #ffffff;
  --ok: #16a34a; --gold: #d97706;
}
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
#main { padding: 30px 0 10px; }
.app-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin: 22px 0; box-shadow: 0 8px 30px rgba(236,72,153,.08); }
.btn { border: none; border-radius: 12px; padding: 12px 22px; font-size: .95rem; font-weight: 700; cursor: pointer; transition: transform .08s ease, filter .15s ease; }
.btn:active { transform: scale(.97); }
.btn-primary { background: linear-gradient(135deg, var(--pink), var(--rose)); color: #fff; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { background: #fdf2f8; color: var(--deep); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fce7f3; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.mode-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.mode-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font-size: .92rem; cursor: pointer; color: var(--ink); font-weight: 600; }
.mode-tab.active { background: linear-gradient(135deg, var(--pink), var(--rose)); border-color: transparent; color: #fff; }
.deck { perspective: 800px; }
.qcard { background: linear-gradient(160deg, #fff 0%, #fdf2f8 100%); border: 2px solid var(--line); border-radius: 20px; padding: 40px 28px; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 10px 34px rgba(236,72,153,.12); animation: pop .25s ease; }
@keyframes pop { from { transform: scale(.96); opacity: .4; } to { transform: scale(1); opacity: 1; } }
.qcard .qmode { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); margin-bottom: 12px; }
.qcard .qtext { font-size: 1.35rem; font-weight: 700; line-height: 1.45; color: var(--ink); }
.qcard .qcount { margin-top: 14px; font-size: .85rem; color: var(--muted); }
.deck-controls { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }
.progress { height: 8px; background: #fce7f3; border-radius: 999px; overflow: hidden; margin-top: 16px; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--pink), var(--rose)); width: 0%; transition: width .3s ease; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.field input[type="text"], .field textarea, .field select { display: block; width: 100%; padding: 10px 12px; font-size: .95rem; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-family: inherit; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--pink); border-color: var(--pink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } .qcard .qtext { font-size: 1.15rem; } .app-card { padding: 18px; } }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #1e293b; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 999; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.scoreboard { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin: 16px 0; }
.score-pill { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .92rem; }
.score-pill b { color: var(--deep); }
.verdict { background: #fdf2f8; border: 1px dashed var(--pink); border-radius: 12px; padding: 14px 18px; margin-top: 14px; font-weight: 600; color: var(--deep); text-align: center; }
.hidden { display: none !important; }
.list-row { display: flex; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; font-size: .92rem; }
.list-row .grow { flex: 1; }
.mini-btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 12px; font-size: .82rem; cursor: pointer; font-weight: 600; color: var(--deep); }
.mini-btn:hover { background: #fdf2f8; }
