/**
 * Fiction Flock — This or That CSS
 * ff-tot.css
 */

.ff-tot-wrap { max-width: 680px; margin: 0 auto; padding: 20px; font-family: 'Lato', sans-serif; color: #1a2e2e; }
.ff-tot-loading { text-align: center; padding: 60px 20px; color: #5a6a6a; }
.ff-tot-spinner { width: 36px; height: 36px; border: 3px solid #e0ede6; border-top-color: #174B4C; border-radius: 50%; animation: ff-spin 0.8s linear infinite; margin: 0 auto 16px; }
@keyframes ff-spin { to { transform: rotate(360deg); } }
.ff-tot-error { color: #a00; text-align: center; padding: 20px; }

/* INTRO */
.ff-tot-intro-card { background: #FAF8F4; border-radius: 20px; padding: 40px 32px; text-align: center; box-shadow: 0 2px 16px rgba(23,75,76,0.08); }
.ff-tot-intro-icon { font-size: 48px; margin-bottom: 16px; }
.ff-tot-intro-card h2 { font-family: 'Playfair Display', serif; font-size: 26px; color: #174B4C; margin-bottom: 14px; }
.ff-tot-intro-card p { font-size: 15px; color: #5a6a6a; margin-bottom: 12px; line-height: 1.65; }
.ff-tot-intro-hint { font-style: italic; color: #E89528 !important; }
.ff-tot-btn-start { margin-top: 24px; background: #174B4C; color: #fff; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 15px; padding: 13px 32px; border-radius: 8px; border: none; cursor: pointer; }
.ff-tot-btn-start:hover { background: #1d6364; }

/* PROGRESS */
.ff-tot-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.ff-tot-progress-bar { flex: 1; height: 6px; background: #e0ede6; border-radius: 10px; overflow: hidden; }
.ff-tot-progress-fill { height: 6px; background: #174B4C; border-radius: 10px; transition: width 0.3s ease; width: 0%; }
.ff-tot-counter { font-size: 12px; color: #5a6a6a; font-weight: 700; white-space: nowrap; }

/* QUESTION */
.ff-tot-question-card { background: #fff; border-radius: 20px; padding: 28px 24px; box-shadow: 0 4px 20px rgba(23,75,76,0.1); }
.ff-tot-q-label { font-family: 'Playfair Display', serif; font-size: 20px; color: #174B4C; text-align: center; margin-bottom: 24px; }
.ff-tot-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ff-tot-choice { border-radius: 14px; overflow: hidden; cursor: pointer; border: 3px solid transparent; transition: all 0.2s; background: #FAF8F4; }
.ff-tot-choice:hover { border-color: #E89528; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(23,75,76,0.12); }
.ff-tot-choice.selected { border-color: #174B4C; box-shadow: 0 6px 20px rgba(23,75,76,0.2); }
.ff-tot-choice img { width: 100%; height: 200px; object-fit: cover; display: block; }
.ff-tot-choice-label { display: block; text-align: center; padding: 10px; font-size: 14px; font-weight: 700; color: #174B4C; }

/* RESULT */
.ff-tot-result { text-align: center; }
.ff-tot-result-title { font-family: 'Playfair Display', serif; font-size: 28px; color: #174B4C; margin-bottom: 8px; }
.ff-tot-result-identity { font-size: 16px; color: #E89528; font-weight: 700; margin-bottom: 24px; font-style: italic; }

.ff-tot-board-wrap { position: relative; display: inline-block; max-width: 100%; margin-bottom: 20px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.15); }
.ff-tot-board { position: relative; }
.ff-tot-board-bg { width: 100%; display: block; }
.ff-tot-board-slot { position: absolute; overflow: hidden; border-radius: 4px; }
.ff-tot-board-slot img { width: 100%; height: 100%; object-fit: cover; }

.ff-tot-result-choices { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 20px; }
.ff-tot-result-choice-tag { background: #FAF8F4; border: 1px solid #e0ddd8; border-radius: 20px; padding: 4px 12px; font-size: 13px; color: #5a6a6a; }

.ff-tot-result-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }
.ff-tot-btn-save { background: #174B4C; color: #fff; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14px; padding: 12px 24px; border-radius: 8px; border: none; cursor: pointer; }
.ff-tot-btn-save:hover { background: #1d6364; }
.ff-tot-btn-download { background: transparent; color: #174B4C; font-family: 'Lato', sans-serif; font-weight: 700; font-size: 14px; padding: 11px 24px; border-radius: 8px; border: 2px solid #174B4C; cursor: pointer; }
.ff-tot-btn-download:hover { background: #174B4C; color: #fff; }
.ff-tot-btn-login { display: inline-block; background: #174B4C; color: #fff; font-weight: 700; font-size: 14px; padding: 10px 20px; border-radius: 8px; text-decoration: none; }

.ff-tot-badge-earned, .ff-tot-feathers-earned { font-size: 16px; font-weight: 700; color: #174B4C; margin: 8px 0; }
.ff-tot-feathers-earned { color: #E89528; }
.ff-tot-login-prompt { margin-top: 20px; padding: 20px; background: #FAF8F4; border-radius: 12px; }
.ff-tot-login-prompt p { font-size: 14px; color: #5a6a6a; margin-bottom: 10px; }

@media (max-width: 480px) {
    .ff-tot-choice img { height: 140px; }
    .ff-tot-q-label { font-size: 17px; }
}
