.ffib-wrapper,
.ffib-wrapper * {
box-sizing: border-box;
}
.ffib-wrapper {
--ffib-text-scale: 1;
border: 1px solid #e2e8f0;
border-radius: 14px;
background: #ffffff;
box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
overflow: hidden;
margin: 24px auto;
max-width: 1060px;
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
color: #000000;
}
.ffib-wrapper.is-fullscreen {
position: fixed;
inset: 0;
z-index: 999990;
max-width: none;
margin: 0;
border-radius: 0;
display: flex;
flex-direction: column;
}
.ffib-wrapper.is-fullscreen .ffib-reader-view {
flex: 1;
display: flex;
flex-direction: column;
overflow: auto;
}
.ffib-wrapper.is-fullscreen .ffib-body,
.ffib-wrapper.is-fullscreen .ffib-cover-screen {
flex: 1;
overflow: auto;
}
.ffib-topbar {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 10px;
padding: 12px 18px;
background: #ffffff;
border-bottom: 1px solid #e2e8f0;
}
.ffib-toc-toggle,
.ffib-btn-prev,
.ffib-btn-next,
.ffib-btn-fullscreen {
border: 1px solid #cbd5e1;
background: #f8fafc;
color: #000000;
border-radius: 8px;
width: 34px;
height: 34px;
font-size: 16px;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
transition: background 0.15s, border-color 0.15s;
}
.ffib-toc-toggle:hover:not(:disabled),
.ffib-btn-prev:hover:not(:disabled),
.ffib-btn-next:hover:not(:disabled),
.ffib-btn-fullscreen:hover:not(:disabled) {
background: #eef2ff;
border-color: #818cf8;
}
.ffib-btn-prev:disabled,
.ffib-btn-next:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.ffib-book-title {
font-size: 17px;
font-weight: 700;
color: #000000;
flex: 1;
min-width: 140px;
text-align: center;
}
.ffib-nav-controls {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
} .ffib-font-controls {
display: inline-flex;
align-items: center;
gap: 4px;
background: #f8fafc;
border: 1px solid #cbd5e1;
border-radius: 8px;
padding: 2px 6px;
height: 34px;
}
.ffib-font-btn {
border: 0;
background: transparent;
color: #000000;
font-size: 12px;
font-weight: 700;
padding: 2px 6px;
border-radius: 5px;
cursor: pointer;
line-height: 1.2;
}
.ffib-font-btn:hover {
background: #eef2ff;
}
.ffib-font-label {
font-size: 12px;
font-weight: 700;
color: #000000;
min-width: 36px;
text-align: center;
}
.ffib-page-indicator {
font-size: 13px;
font-weight: 600;
color: #000000;
margin-right: 2px;
} .ffib-cover-screen {
position: relative;
display: flex;
align-items: center;
min-height: 490px;
background: #ffffff;
overflow: hidden;
color: #000000;
}
.ffib-cover-pattern {
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: 34px;
background-color: #f1f5f9;
background-image: repeating-linear-gradient(
-45deg,
#e2e8f0,
#e2e8f0 4px,
#f8fafc 4px,
#f8fafc 10px
);
border-right: 1px solid #e2e8f0;
}
.ffib-cover-inner {
position: relative;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
gap: 54px;
width: 100%;
max-width: 880px;
margin: 0 auto;
padding: 44px 48px 44px 68px;
}
.ffib-cover-art-col {
flex-shrink: 0;
}
.ffib-cover-image {
display: block;
width: 310px;
max-width: 100%;
height: auto;
border-radius: 10px;
box-shadow: 0 16px 38px rgba(15, 23, 42, 0.22);
object-fit: cover;
}
.ffib-cover-placeholder {
width: 280px;
height: 360px;
border-radius: 10px;
background: linear-gradient(145deg, #f3e8d2 0%, #e5d4b3 100%);
box-shadow: 0 16px 38px rgba(15, 23, 42, 0.18);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 24px;
text-align: center;
color: #000000;
}
.ffib-cover-placeholder-icon {
font-size: 46px;
margin-bottom: 14px;
}
.ffib-cover-placeholder-title {
font-size: 20px;
font-weight: 700;
line-height: 1.3;
color: #000000;
}
.ffib-cover-info-col {
flex: 1;
max-width: 380px;
text-align: left;
}
.ffib-cover-book-icon {
color: #000000;
margin-bottom: 12px;
display: inline-flex;
}
.ffib-cover-heading {
margin: 0 0 10px;
font-size: 28px;
font-weight: 800;
line-height: 1.22;
color: #000000;
}
.ffib-cover-subtitle {
font-size: 16px;
font-weight: 500;
color: #000000;
margin-bottom: 10px;
}
.ffib-cover-narrator {
display: inline-flex;
align-items: center;
gap: 7px;
font-size: 14px;
color: #000000;
margin-bottom: 16px;
}
.ffib-cover-narrator svg {
color: #000000;
flex-shrink: 0;
}
.ffib-cover-desc {
font-size: 14px;
line-height: 1.6;
color: #000000;
margin: 0 0 20px;
}
.ffib-cover-cta-wrap {
margin-top: 8px;
}
.ffib-cover-read-btn {
background: #0072ce;
color: #ffffff;
border: 0;
border-radius: 8px;
padding: 13px 44px;
font-size: 16px;
font-weight: 700;
cursor: pointer;
box-shadow: 0 4px 14px rgba(0, 114, 206, 0.28);
transition: background 0.15s, transform 0.1s;
}
.ffib-cover-read-btn:hover {
background: #005ba6;
}
.ffib-cover-read-btn:active {
transform: translateY(1px);
} .ffib-tip-bar {
background: #eef2ff;
color: #000000;
font-size: 13px;
padding: 8px 18px;
border-bottom: 1px solid #e0e7ff;
}
.ffib-body {
display: flex;
min-height: 460px;
}
.ffib-sidebar {
width: 260px;
flex-shrink: 0;
background: #ffffff;
border-right: 1px solid #e2e8f0;
padding: 16px;
display: flex;
flex-direction: column;
justify-content: space-between;
color: #000000;
}
.ffib-wrapper.toc-collapsed .ffib-sidebar {
display: none;
}
.ffib-sidebar-heading {
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.06em;
font-weight: 700;
color: #000000;
margin-bottom: 10px;
}
.ffib-toc-list {
list-style: none;
margin: 0;
padding: 0;
}
.ffib-toc-list li {
margin-bottom: 6px;
}
.ffib-toc-item,
.ffib-toc-cover-btn {
width: 100%;
text-align: left;
background: transparent;
border: 1px solid transparent;
border-radius: 8px;
padding: 8px 10px;
font-size: calc(14px * var(--ffib-text-scale, 1));
color: #000000;
cursor: pointer;
display: flex;
align-items: center;
gap: 6px;
}
.ffib-toc-cover-btn {
color: #000000;
border-bottom: 1px solid #f1f5f9;
margin-bottom: 4px;
}
.ffib-toc-item:hover,
.ffib-toc-cover-btn:hover {
background: #f1f5f9;
}
.ffib-toc-item.is-active {
background: #eef2ff;
color: #000000;
font-weight: 600;
border-color: #c7d2fe;
}
.ffib-toc-label {
flex: 1;
}
.ffib-toc-check {
color: #16a34a;
font-weight: 700;
opacity: 0;
}
.ffib-toc-item.is-visited .ffib-toc-check {
opacity: 1;
}
.ffib-progress-box {
margin-top: 16px;
padding-top: 12px;
border-top: 1px solid #e2e8f0;
}
.ffib-progress-text {
font-size: 12px;
color: #000000;
margin-bottom: 6px;
}
.ffib-progress-bar {
height: 6px;
background: #e2e8f0;
border-radius: 999px;
overflow: hidden;
}
.ffib-progress-fill {
height: 100%;
background: #4f46e5;
transition: width 0.25s ease;
}
.ffib-stage {
flex: 1;
padding: 28px 34px;
background: #f8fafc;
}
.ffib-chapter {
display: none;
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 28px 32px;
box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
color: #000000;
}
.ffib-chapter.is-active {
display: block;
}
.ffib-chapter-title {
margin: 0 0 18px;
font-size: calc(24px * var(--ffib-text-scale, 1));
font-weight: 750;
color: #000000;
border-bottom: 2px solid #f1f5f9;
padding-bottom: 12px;
line-height: 1.3;
} .ffib-wrapper .ffib-audio-box {
display: block !important;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 10px;
padding: 12px 14px;
margin-bottom: 20px;
color: #000000;
position: relative;
z-index: 2;
width: 100%;
}
.ffib-wrapper .ffib-audio-header {
display: flex;
align-items: center;
width: 100%;
margin-bottom: 8px;
}
.ffib-wrapper .ffib-audio-label {
font-size: 13px;
font-weight: 700;
color: #000000;
white-space: nowrap;
}
.ffib-wrapper .ffib-audio-player-wrap {
display: block !important;
width: 100% !important;
min-width: 100% !important;
min-height: 44px;
}
.ffib-wrapper .ffib-audio-box audio.ffib-chapter-audio {
display: block !important;
visibility: visible !important;
opacity: 1 !important;
position: static !important;
width: 100% !important;
min-width: 100% !important;
max-width: 100% !important;
height: 44px !important;
min-height: 44px !important;
max-height: none !important;
margin: 0 !important;
padding: 0 !important;
border: 0 !important;
background: transparent !important;
pointer-events: auto !important;
clip: auto !important;
clip-path: none !important;
overflow: visible !important;
appearance: auto !important;
-webkit-appearance: auto !important;
} .ffib-chapter-figure {
margin: 18px 0 22px;
text-align: center;
}
.ffib-chapter-img,
.ffib-reading-area img {
display: block;
max-width: 100%;
height: auto;
margin: 14px auto;
border-radius: 10px;
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
}
.ffib-chapter-caption {
margin-top: 8px;
font-size: calc(13px * var(--ffib-text-scale, 1));
color: #000000;
}
.ffib-wrapper .ffib-reading-area {
font-size: calc(17px * var(--ffib-text-scale, 1));
line-height: 1.75;
color: #000000;
}
.ffib-wrapper .ffib-reading-area p,
.ffib-wrapper .ffib-reading-area li,
.ffib-wrapper .ffib-reading-area blockquote,
.ffib-wrapper .ffib-reading-area div {
font-size: calc(17px * var(--ffib-text-scale, 1));
line-height: 1.75;
}
.ffib-reading-area {
cursor: text;
user-select: text;
}
.ffib-reading-area p {
margin: 0 0 16px;
color: #000000;
}
.ffib-reading-area p:first-of-type::first-letter {
font-size: 2.6em;
font-weight: 700;
float: left;
line-height: 0.9;
margin-right: 8px;
color: #000000;
} .ffib-quiz-card {
margin-top: 26px;
padding: 20px;
border-radius: 10px;
background: #f8fafc;
border: 1px solid #cbd5e1;
color: #000000;
}
.ffib-quiz-badge {
display: inline-block;
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
background: #e0e7ff;
color: #000000;
padding: 3px 8px;
border-radius: 6px;
margin-bottom: 8px;
}
.ffib-quiz-question {
font-size: calc(16px * var(--ffib-text-scale, 1));
font-weight: 650;
margin-bottom: 12px;
color: #000000;
}
.ffib-quiz-option {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
margin-bottom: 8px;
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 8px;
cursor: pointer;
color: #000000;
font-size: calc(15px * var(--ffib-text-scale, 1));
}
.ffib-quiz-option:hover {
border-color: #818cf8;
}
.ffib-quiz-actions {
margin-top: 12px;
display: flex;
align-items: center;
gap: 12px;
}
.ffib-quiz-check {
background: #4f46e5;
color: #ffffff;
border: 0;
border-radius: 8px;
padding: 8px 16px;
font-weight: 600;
cursor: pointer;
}
.ffib-quiz-check:hover {
background: #4338ca;
}
.ffib-quiz-feedback {
font-size: 14px;
font-weight: 600;
color: #000000;
}
.ffib-chapter-footer {
margin-top: 28px;
padding-top: 16px;
border-top: 1px solid #e2e8f0;
display: flex;
justify-content: space-between;
}
.ffib-footer-prev,
.ffib-footer-next {
background: #ffffff;
border: 1px solid #cbd5e1;
color: #000000;
border-radius: 8px;
padding: 8px 16px;
font-weight: 600;
cursor: pointer;
}
.ffib-footer-prev:hover:not(:disabled),
.ffib-footer-next:hover:not(:disabled) {
background: #eef2ff;
border-color: #818cf8;
}
.ffib-footer-prev:disabled,
.ffib-footer-next:disabled {
opacity: 0.4;
cursor: not-allowed;
}
@media (max-width: 768px) {
.ffib-cover-inner {
flex-direction: column;
text-align: center;
padding: 32px 24px 32px 48px;
gap: 24px;
}
.ffib-cover-info-col {
text-align: center;
}
.ffib-cover-image {
width: 220px;
}
.ffib-body {
flex-direction: column;
}
.ffib-sidebar {
width: 100%;
border-right: 0;
border-bottom: 1px solid #e2e8f0;
}
.ffib-stage {
padding: 16px;
}
.ffib-chapter {
padding: 18px;
}
.ffib-wrapper .ffib-audio-box {
padding: 12px;
}
.ffib-wrapper .ffib-audio-box audio.ffib-chapter-audio {
height: 46px !important;
min-height: 46px !important;
}
}.ff-pendu {
--bg-gradient: linear-gradient(135deg, #f0f9ff 0%, #fdf2f8 50%, #fefce8 100%);
--card-bg: #ffffff;
--text-main: #1e293b;
--text-muted: #64748b;
--rainbow-bar: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6, #ec4899);
--radius-lg: 24px;
--radius-md: 16px;
--shadow-card: 0 16px 40px rgba(15, 23, 42, 0.09);
}
.ff-pendu * {
box-sizing: border-box;
margin: 0;
padding: 0;
-webkit-tap-highlight-color: transparent;
} .ff-pendu .game-wrapper {
width: 100%;
max-width: 780px;
background: var(--card-bg);
border-radius: var(--radius-lg);
box-shadow: var(--shadow-card);
padding: 24px 20px 20px;
position: relative;
overflow: hidden;
border: 2px solid rgba(255, 255, 255, 0.9);
}
.ff-pendu .game-wrapper::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 7px;
background: var(--rainbow-bar);
} .ff-pendu .game-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 14px;
gap: 10px;
flex-wrap: wrap;
}
.ff-pendu .game-title {
font-size: 1.3rem;
font-weight: 900;
color: var(--text-main);
display: flex;
align-items: center;
gap: 9px;
}
.ff-pendu .icon-badge {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: 12px;
background: linear-gradient(135deg, #fde047, #f472b6);
font-size: 1.2rem;
box-shadow: 0 4px 10px rgba(244, 114, 182, 0.25);
}
.ff-pendu .header-actions {
display: flex;
align-items: center;
gap: 7px;
flex-wrap: wrap;
}
.ff-pendu .pill-btn {
background: #f1f5f9;
border: 1.5px solid #e2e8f0;
border-radius: 999px;
padding: 6px 12px;
font-family: inherit;
font-size: 0.78rem;
font-weight: 800;
color: var(--text-main);
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 5px;
transition: all 0.15s ease;
}
.ff-pendu .pill-btn:hover {
background: #e2e8f0;
transform: translateY(-1px);
}
.ff-pendu .pill-btn.active-mode {
background: linear-gradient(135deg, #ec4899, #8b5cf6);
color: #ffffff;
border-color: transparent;
box-shadow: 0 3px 10px rgba(139, 92, 246, 0.25);
}
.ff-pendu .pill-btn.off-mode {
opacity: 0.65;
}
.ff-pendu .icon-btn {
background: #f1f5f9;
border: 1.5px solid #e2e8f0;
border-radius: 50%;
width: 36px;
height: 36px;
font-size: 1.05rem;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: transform 0.15s ease, background 0.15s ease;
}
.ff-pendu .icon-btn:hover {
transform: scale(1.08);
background: #e2e8f0;
} .ff-pendu .modal-overlay {
position: fixed;
inset: 0;
background: rgba(15, 23, 42, 0.55);
backdrop-filter: blur(5px);
display: none;
align-items: center;
justify-content: center;
padding: 16px;
z-index: 50;
}
.ff-pendu .modal-overlay.visible {
display: flex;
animation: fadeIn 0.2s ease;
}
.ff-pendu .modal-card {
background: #ffffff;
border-radius: var(--radius-lg);
max-width: 460px;
width: 100%;
padding: 24px 22px;
box-shadow: 0 22px 50px rgba(15, 23, 42, 0.22);
position: relative;
overflow: hidden;
border: 2px solid #e2e8f0;
}
.ff-pendu .modal-card::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 6px;
background: var(--rainbow-bar);
}
.ff-pendu .modal-title {
font-size: 1.35rem;
font-weight: 900;
text-align: center;
margin-bottom: 6px;
color: var(--text-main);
}
.ff-pendu .modal-subtitle {
font-size: 0.88rem;
font-weight: 700;
color: var(--text-muted);
text-align: center;
margin-bottom: 18px;
}
.ff-pendu .setup-group {
margin-bottom: 16px;
}
.ff-pendu .setup-label {
display: block;
font-size: 0.82rem;
font-weight: 900;
color: var(--text-main);
margin-bottom: 6px;
}
.ff-pendu .mode-switch-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
}
.ff-pendu .mode-choice-btn {
padding: 10px;
border-radius: 12px;
border: 2px solid #e2e8f0;
background: #f8fafc;
font-family: inherit;
font-size: 0.9rem;
font-weight: 800;
color: var(--text-muted);
cursor: pointer;
transition: all 0.15s ease;
}
.ff-pendu .mode-choice-btn.selected {
background: linear-gradient(135deg, #eff6ff, #f5f3ff);
border-color: #8b5cf6;
color: #4338ca;
box-shadow: 0 3px 10px rgba(139, 92, 246, 0.15);
}
.ff-pendu .name-inputs-grid {
display: grid;
grid-template-columns: 1fr;
gap: 10px;
}
.ff-pendu .name-inputs-grid.two-cols {
grid-template-columns: 1fr 1fr;
}
@media  (max-width: 440px)  {
.ff-pendu .name-inputs-grid.two-cols {
grid-template-columns: 1fr;
}
}
.ff-pendu .setup-input {
width: 100%;
padding: 10px 12px;
border-radius: 12px;
border: 2px solid #cbd5e1;
font-family: inherit;
font-size: 0.95rem;
font-weight: 800;
color: var(--text-main);
outline: none;
transition: border-color 0.15s ease;
}
.ff-pendu .setup-input:focus {
border-color: #8b5cf6;
}
.ff-pendu .goal-presets {
display: flex;
gap: 6px;
flex-wrap: wrap;
margin-bottom: 8px;
}
.ff-pendu .goal-preset-btn {
flex: 1;
min-width: 64px;
padding: 7px 8px;
border-radius: 10px;
border: 1.5px solid #cbd5e1;
background: #f8fafc;
font-family: inherit;
font-size: 0.82rem;
font-weight: 800;
color: var(--text-main);
cursor: pointer;
transition: all 0.15s ease;
}
.ff-pendu .goal-preset-btn.selected {
background: linear-gradient(135deg, #3b82f6, #8b5cf6);
border-color: transparent;
color: #ffffff;
}
.ff-pendu .primary-cta-btn {
width: 100%;
border: none;
border-radius: 14px;
padding: 13px 18px;
font-family: inherit;
font-size: 1.02rem;
font-weight: 900;
color: #ffffff;
background: linear-gradient(135deg, #2563eb, #8b5cf6, #ec4899);
cursor: pointer;
box-shadow: 0 6px 18px rgba(139, 92, 246, 0.3);
transition: transform 0.15s ease, filter 0.15s ease;
}
.ff-pendu .primary-cta-btn:hover {
transform: translateY(-1px);
filter: brightness(1.05);
} .ff-pendu .trophy-icon {
font-size: 3.6rem;
text-align: center;
display: block;
margin-bottom: 6px;
}
.ff-pendu .podium-list {
display: flex;
flex-direction: column;
gap: 8px;
margin-bottom: 18px;
}
.ff-pendu .podium-row {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 14px;
border-radius: 12px;
background: #f8fafc;
border: 2px solid #e2e8f0;
font-weight: 900;
}
.ff-pendu .podium-row.winner {
background: linear-gradient(135deg, #fef9c3, #fef3c7);
border-color: #f59e0b;
color: #92400e;
} .ff-pendu .goal-progress-card {
background: #f8fafc;
border: 1.5px solid #e2e8f0;
border-radius: var(--radius-md);
padding: 9px 12px;
margin-bottom: 14px;
}
.ff-pendu .goal-progress-header {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.78rem;
font-weight: 900;
color: var(--text-main);
margin-bottom: 6px;
}
.ff-pendu .goal-bars-stack {
display: flex;
flex-direction: column;
gap: 5px;
}
.ff-pendu .goal-bar-row {
display: flex;
align-items: center;
gap: 8px;
}
.ff-pendu .goal-bar-name {
font-size: 0.75rem;
font-weight: 800;
min-width: 72px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ff-pendu .goal-bar-track {
flex: 1;
height: 8px;
background: #e2e8f0;
border-radius: 999px;
overflow: hidden;
}
.ff-pendu .goal-bar-fill {
height: 100%;
width: 0%;
border-radius: 999px;
background: linear-gradient(90deg, #3b82f6, #8b5cf6);
transition: width 0.35s ease;
}
.ff-pendu .goal-bar-fill.p2 {
background: linear-gradient(90deg, #ec4899, #f97316);
}
.ff-pendu .goal-bar-pts {
font-size: 0.75rem;
font-weight: 900;
color: var(--text-muted);
min-width: 54px;
text-align: right;
} .ff-pendu .multiplayer-bar {
display: none;
grid-template-columns: 1fr 1fr;
gap: 10px;
margin-bottom: 14px;
}
.ff-pendu .multiplayer-bar.visible {
display: grid;
}
.ff-pendu .player-card {
background: #f8fafc;
border: 2.5px solid #e2e8f0;
border-radius: var(--radius-md);
padding: 8px 12px;
display: flex;
justify-content: space-between;
align-items: center;
transition: all 0.2s ease;
}
.ff-pendu .player-card.active-turn {
background: linear-gradient(135deg, #eef2ff, #fdf2f8);
border-color: #8b5cf6;
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.18);
transform: translateY(-1px);
}
.ff-pendu .player-name {
font-size: 0.88rem;
font-weight: 900;
color: var(--text-main);
display: flex;
align-items: center;
gap: 6px;
}
.ff-pendu .player-turn-badge {
font-size: 0.68rem;
background: #8b5cf6;
color: #fff;
padding: 2px 7px;
border-radius: 999px;
font-weight: 800;
display: none;
}
.ff-pendu .player-card.active-turn .player-turn-badge {
display: inline-block;
}
.ff-pendu .player-score {
font-size: 1.05rem;
font-weight: 900;
color: #4338ca;
} .ff-pendu .tabs-bar {
display: flex;
gap: 8px;
overflow-x: auto;
padding-bottom: 8px;
margin-bottom: 12px;
scrollbar-width: thin;
-webkit-overflow-scrolling: touch;
}
.ff-pendu .tabs-bar::-webkit-scrollbar {
height: 5px;
}
.ff-pendu .tabs-bar::-webkit-scrollbar-thumb {
background: #cbd5e1;
border-radius: 999px;
}
.ff-pendu .tab-btn {
flex: 0 0 auto;
background: #f8fafc;
border: 1.5px solid #e2e8f0;
border-radius: 999px;
padding: 7px 13px;
font-family: inherit;
font-size: 0.8rem;
font-weight: 800;
color: var(--text-muted);
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
transition: all 0.15s ease;
white-space: nowrap;
}
.ff-pendu .tab-btn:hover {
border-color: #94a3b8;
color: var(--text-main);
}
.ff-pendu .tab-btn.active {
background: linear-gradient(135deg, #3b82f6, #8b5cf6, #ec4899);
border-color: transparent;
color: #ffffff;
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.28);
}
.ff-pendu .tab-count {
background: rgba(15, 23, 42, 0.08);
padding: 1px 7px;
border-radius: 999px;
font-size: 0.72rem;
font-weight: 900;
}
.ff-pendu .tab-btn.active .tab-count {
background: rgba(255, 255, 255, 0.25);
color: #ffffff;
} .ff-pendu .timer-wrapper {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 12px;
}
.ff-pendu .timer-wrapper.hidden {
display: none;
}
.ff-pendu .timer-track {
flex: 1;
height: 10px;
background: #e2e8f0;
border-radius: 999px;
overflow: hidden;
}
.ff-pendu .timer-fill {
height: 100%;
width: 100%;
background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
border-radius: 999px;
transition: width 0.1s linear;
}
.ff-pendu .timer-fill.warning {
background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.ff-pendu .timer-text {
font-size: 0.85rem;
font-weight: 900;
color: var(--text-main);
min-width: 34px;
text-align: right;
} .ff-pendu .hud-bar {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 8px;
margin-bottom: 16px;
}
@media  (max-width: 520px)  {
.ff-pendu .hud-bar {
grid-template-columns: repeat(2, 1fr);
}
}
.ff-pendu .hud-item {
border-radius: var(--radius-md);
padding: 8px 10px;
text-align: center;
border: 1.5px solid transparent;
}
.ff-pendu .hud-score {
background: #eff6ff;
border-color: #bfdbfe;
color: #1d4ed8;
}
.ff-pendu .hud-streak {
background: #fffbeb;
border-color: #fde68a;
color: #b45309;
}
.ff-pendu .hud-lives {
background: #fff1f2;
border-color: #fecdd3;
color: #be123c;
}
.ff-pendu .hud-solved {
background: #f0fdf4;
border-color: #bbf7d0;
color: #15803d;
}
.ff-pendu .hud-label {
font-size: 0.68rem;
text-transform: uppercase;
letter-spacing: 0.05em;
font-weight: 800;
display: block;
opacity: 0.85;
}
.ff-pendu .hud-value {
font-size: 1.05rem;
font-weight: 900;
} .ff-pendu .stage-grid {
display: grid;
grid-template-columns: 210px 1fr;
gap: 16px;
align-items: center;
margin-bottom: 16px;
}
@media  (max-width: 620px)  {
.ff-pendu .stage-grid {
grid-template-columns: 1fr;
}
}
.ff-pendu .hangman-box {
background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
border: 2px solid #e0e7ff;
border-radius: var(--radius-lg);
padding: 12px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.ff-pendu .hangman-svg {
width: 170px;
height: 175px;
overflow: visible;
}
.ff-pendu .attempts-badge {
margin-top: 6px;
font-size: 0.78rem;
font-weight: 800;
color: #4f46e5;
background: #e0e7ff;
padding: 3px 10px;
border-radius: 999px;
}
.ff-pendu .word-panel {
background: #f8fafc;
border: 2px solid #e2e8f0;
border-radius: var(--radius-lg);
padding: 18px 14px;
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 12px;
}
.ff-pendu .clue-header {
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
flex-wrap: wrap;
}
.ff-pendu .clue-emoji {
font-size: 2.3rem;
line-height: 1;
}
.ff-pendu .clue-meta {
display: flex;
flex-direction: column;
align-items: flex-start;
text-align: left;
}
.ff-pendu .clue-article {
font-size: 0.75rem;
font-weight: 900;
text-transform: uppercase;
letter-spacing: 0.04em;
padding: 2px 9px;
border-radius: 999px;
background: #dbeafe;
color: #1d4ed8;
margin-bottom: 3px;
}
.ff-pendu .clue-article.fem {
background: #ffe4e6;
color: #be123c;
}
.ff-pendu .clue-hint {
font-size: 0.95rem;
font-weight: 800;
color: var(--text-main);
} .ff-pendu .word-slots {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 7px;
margin: 4px 0;
}
.ff-pendu .letter-slot {
width: 36px;
height: 44px;
border-radius: 11px;
background: #ffffff;
border: 2.5px solid #cbd5e1;
border-bottom-width: 4px;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.3rem;
font-weight: 900;
color: var(--text-main);
transition: all 0.18s ease;
}
.ff-pendu .letter-slot.revealed {
background: linear-gradient(135deg, #eff6ff, #f5f3ff);
border-color: #6366f1;
color: #312e81;
transform: translateY(-2px);
}
.ff-pendu .letter-slot.missed {
background: #fee2e2;
border-color: #ef4444;
color: #b91c1c;
}
.ff-pendu .letter-slot.spacer {
width: 18px;
border: none;
background: transparent;
} .ff-pendu .stage-tools {
display: flex;
gap: 8px;
flex-wrap: wrap;
justify-content: center;
}
.ff-pendu .tool-btn {
border: none;
border-radius: 999px;
padding: 8px 14px;
font-family: inherit;
font-size: 0.82rem;
font-weight: 800;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 6px;
transition: transform 0.12s ease, filter 0.12s ease, opacity 0.15s ease;
}
.ff-pendu .btn-hint {
background: linear-gradient(135deg, #fde68a, #fcd34d);
color: #78350f;
box-shadow: 0 3px 10px rgba(245, 158, 11, 0.28);
}
.ff-pendu .btn-hint:hover:not(:disabled) {
transform: translateY(-2px);
filter: brightness(0.97);
}
.ff-pendu .btn-hint:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.ff-pendu .btn-image-hint {
background: linear-gradient(135deg, #fbcfe8, #f9a8d4);
color: #831843;
box-shadow: 0 3px 10px rgba(236, 72, 153, 0.25);
}
.ff-pendu .btn-image-hint:hover:not(:disabled) {
transform: translateY(-2px);
filter: brightness(0.97);
}
.ff-pendu .btn-image-hint:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.ff-pendu .btn-speak {
background: linear-gradient(135deg, #bae6fd, #7dd3fc);
color: #0c4a6e;
box-shadow: 0 3px 10px rgba(56, 189, 248, 0.3);
}
.ff-pendu .btn-speak:hover:not(:disabled) {
transform: translateY(-2px);
filter: brightness(0.97);
}
.ff-pendu .btn-speak:disabled {
opacity: 0.55;
cursor: not-allowed;
}
.ff-pendu .btn-speak.used-hint {
background: linear-gradient(135deg, #e0f2fe, #bae6fd);
border: 1.5px solid #38bdf8;
} .ff-pendu .feedback-banner {
display: none;
border-radius: var(--radius-md);
padding: 14px 16px;
margin-bottom: 16px;
text-align: center;
animation: fadeIn 0.25s ease;
}
.ff-pendu .feedback-banner.visible {
display: block;
}
.ff-pendu .feedback-banner.win {
background: linear-gradient(135deg, #dcfce7, #d1fae5);
border: 2px solid #4ade80;
color: #14532d;
}
.ff-pendu .feedback-banner.lose {
background: linear-gradient(135deg, #fee2e2, #ffe4e6);
border: 2px solid #f87171;
color: #7f1d1d;
}
.ff-pendu .feedback-title {
font-size: 1.05rem;
font-weight: 900;
margin-bottom: 4px;
}
.ff-pendu .feedback-tip {
font-size: 0.86rem;
font-weight: 700;
opacity: 0.92;
margin-bottom: 10px;
}
.ff-pendu .next-word-btn {
border: none;
border-radius: 999px;
padding: 9px 22px;
font-family: inherit;
font-size: 0.92rem;
font-weight: 900;
color: #ffffff;
background: linear-gradient(135deg, #2563eb, #9333ea);
cursor: pointer;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
transition: transform 0.15s ease, filter 0.15s ease;
}
.ff-pendu .next-word-btn:hover {
transform: translateY(-1px);
filter: brightness(1.06);
} .ff-pendu .keyboard-container {
display: flex;
flex-direction: column;
gap: 7px;
background: #f8fafc;
border: 2px solid #e2e8f0;
border-radius: var(--radius-lg);
padding: 12px 10px;
}
.ff-pendu .kb-row {
display: flex;
justify-content: center;
flex-wrap: wrap;
gap: 5px;
}
.ff-pendu .kb-key {
min-width: 34px;
height: 40px;
padding: 0 7px;
border-radius: 10px;
border: 1.5px solid transparent;
border-bottom-width: 3px;
font-family: inherit;
font-size: 0.95rem;
font-weight: 900;
cursor: pointer;
transition: transform 0.1s ease, filter 0.12s ease, opacity 0.15s ease;
} .ff-pendu .kb-row-0 .kb-key {
background: #eff6ff;
border-color: #93c5fd;
color: #1e40af;
}
.ff-pendu .kb-row-1 .kb-key {
background: #fdf2f8;
border-color: #f9a8d4;
color: #9d174d;
}
.ff-pendu .kb-row-2 .kb-key {
background: #f0fdf4;
border-color: #86efac;
color: #166534;
}
.ff-pendu .kb-row-3 .kb-key {
background: #fefce8;
border-color: #fde047;
color: #854d0e;
}
.ff-pendu .kb-key:hover:not(:disabled) {
transform: translateY(-2px);
filter: brightness(0.95);
}
.ff-pendu .kb-key:active:not(:disabled) {
transform: translateY(1px);
}
.ff-pendu .kb-key.correct {
background: #22c55e !important;
border-color: #15803d !important;
color: #ffffff !important;
cursor: default;
}
.ff-pendu .kb-key.wrong {
background: #e2e8f0 !important;
border-color: #cbd5e1 !important;
color: #94a3b8 !important;
opacity: 0.55;
cursor: default;
}
.ff-pendu .kb-key:disabled {
cursor: default;
}
.ff-pendu .footer-hint {
text-align: center;
font-size: 0.76rem;
color: var(--text-muted);
font-weight: 700;
margin-top: 12px;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(6px); }
to { opacity: 1; transform: translateY(0); }
}