@charset "utf-8";

.ff-filter { padding: 8px 18px; border-radius: 50px; border: 1.5px solid rgb(224, 219, 212); background: rgb(255, 255, 255); font-size: 0.78rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: 0.18s; }

.ff-filter.active, .ff-filter-all.active { background: var(--navy-primary); color: rgb(255, 255, 255); border-color: var(--navy-primary); }

.ff-filter:hover { transform: translateY(-1px); }

.ff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 36px; }

@media (max-width: 900px) {
  .ff-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .ff-grid { grid-template-columns: repeat(2, 1fr); }
}

.ff-card-wrap { perspective: 900px; cursor: pointer; }

.ff-card-wrap.hidden { display: none; }

.ff-card { position: relative; width: 100%; padding-bottom: 130%; transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); }

.ff-card-wrap:hover .ff-card, .ff-card-wrap.flipped .ff-card { transform: rotateY(180deg); }

.ff-front, .ff-back { position: absolute; inset: 0px; border-radius: 20px; backface-visibility: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 14px; box-shadow: rgba(0, 0, 0, 0.08) 0px 4px 18px; }

.ff-front { background: rgb(255, 255, 255); border: 2px solid rgb(240, 236, 230); }

.ff-back { transform: rotateY(180deg); }

.ff-emoji { font-size: 3.2rem; margin-bottom: 10px; transition: transform 0.3s; }

.ff-card-wrap:hover .ff-emoji { transform: scale(1.15); }

.ff-name { font-weight: 800; font-size: 0.88rem; color: var(--char); line-height: 1.3; margin-bottom: 6px; }

.ff-power-badge { padding: 4px 12px; border-radius: 50px; font-size: 0.68rem; font-weight: 700; margin-top: 6px; }

.ff-tap-hint { font-size: 0.62rem; color: rgb(204, 204, 204); margin-top: 8px; }

.ff-back-emoji { font-size: 2rem; margin-bottom: 8px; }

.ff-back-name { font-weight: 800; font-size: 0.82rem; color: rgb(255, 255, 255); margin-bottom: 6px; }

.ff-back-desc { font-size: 0.72rem; color: rgba(255, 255, 255, 0.88); line-height: 1.55; margin-bottom: 10px; text-align: center; }

.ff-back-nutrients { font-size: 0.65rem; font-weight: 700; color: rgba(255, 255, 255, 0.7); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }

.ff-back-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }

.ff-back-btn { padding: 5px 12px; border-radius: 50px; font-size: 0.65rem; font-weight: 700; border: 1.5px solid rgba(255, 255, 255, 0.35); background: rgba(255, 255, 255, 0.12); color: rgb(255, 255, 255); cursor: pointer; font-family: inherit; transition: background 0.15s; }

.ff-back-btn:hover { background: rgba(255, 255, 255, 0.25); }

.ff-back-btn.primary { background: rgba(255, 255, 255, 0.9); color: var(--char); }

.ff-quiz { background: rgb(255, 255, 255); border-radius: 24px; padding: 32px; margin-bottom: 36px; text-align: center; position: relative; overflow: hidden; }

.ff-quiz::before { content: ""; position: absolute; inset: 0px; background: radial-gradient(at 80% 20%, rgba(144, 224, 168, 0.1) 0%, transparent 55%); pointer-events: none; }

.ff-quiz-q { font-family: Georgia, serif; font-size: 1.1rem; font-weight: 700; color: rgb(255, 255, 255); margin-bottom: 20px; }

.ff-quiz-opts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 16px; }

.ff-quiz-opt { padding: 9px 20px; border-radius: 50px; border: 1.5px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.07); color: rgba(255, 255, 255, 0.8); font-size: 0.82rem; font-weight: 700; cursor: pointer; font-family: inherit; transition: 0.18s; }

.ff-quiz-opt:hover { background: rgba(255, 255, 255, 0.14); color: rgb(255, 255, 255); transform: translateY(-2px); }

.ff-quiz-result { display: none; padding: 20px; background: rgba(255, 255, 255, 0.08); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.12); }

.ff-quiz-result.open { display: block; }

.ff-quiz-result-emoji { font-size: 3rem; margin-bottom: 10px; }

.ff-quiz-result-title { font-weight: 800; font-size: 1rem; color: rgb(255, 255, 255); margin-bottom: 6px; }

.ff-quiz-result-text { font-size: 0.82rem; color: rgba(255, 255, 255, 0.75); line-height: 1.65; margin-bottom: 14px; }

.ff-progress-dots { display: flex; gap: 6px; justify-content: center; margin-bottom: 16px; }

.ff-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); }

.ff-dot.done { background: var(--navy-primary); }

.ff-dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

@media (max-width: 640px) {
  .ff-dl-grid { grid-template-columns: 1fr 1fr; }
}

.ff-dl-card { background: var(--hu-white-mist); border-radius: 18px; padding: 18px 14px; text-align: center; border: 2px solid transparent; transition: 0.2s; cursor: pointer; }

.ff-dl-card:hover { border-color: var(--navy-primary); transform: translateY(-2px); }

.ff-dl-icon { font-size: 2.4rem; margin-bottom: 10px; }

.ff-dl-title { font-weight: 800; font-size: 0.85rem; color: var(--char); margin-bottom: 4px; }

.ff-dl-sub { font-size: 0.72rem; color: var(--brown); margin-bottom: 12px; line-height: 1.5; }