
.flagbattle-root {
    --fb-bg: #f4f7fb;
    --fb-card: #ffffff;
    --fb-text: #172033;
    --fb-muted: #687087;
    --fb-border: #dce2ec;
    --fb-primary: #2357d8;
    --fb-primary-dark: #1743ad;
    --fb-success: #16824b;
    --fb-danger: #c73535;
    --fb-warning: #d58b12;
    width: 100%;
    max-width: 820px;
    margin: 24px auto;
    color: var(--fb-text);
    font-family: inherit;
}

.flagbattle-root * {
    box-sizing: border-box;
}

.fb-app {
    background: var(--fb-bg);
    border: 1px solid var(--fb-border);
    border-radius: 24px;
    overflow: hidden;
}

.fb-header {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--fb-card);
    border-bottom: 1px solid var(--fb-border);
}

.fb-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fb-brand-logo {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.fb-header-logo {
    display: block;
    width: min(110px, 22vw);
    height: auto;
    max-height: 78px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 7px 14px rgba(16, 53, 112, .13));
}

.fb-header-center {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    width: min(46%, 420px);
    min-width: 0;
    text-align: center;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.fb-header-title {
    font-size: clamp(18px, 3vw, 28px);
    font-weight: 900;
    line-height: 1.15;
}

.fb-header-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.fb-header-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.fb-header-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
    padding: 7px 10px;
    border: 1px solid var(--fb-border);
    border-radius: 12px;
    background: #f8fbff;
    line-height: 1.1;
}

.fb-header-chip span {
    color: var(--fb-muted);
    font-size: 11px;
    font-weight: 800;
}

.fb-header-chip strong {
    margin-top: 3px;
    font-size: 14px;
    font-weight: 900;
}

.fb-header-btn,
.fb-exit-btn {
    white-space: nowrap;
}

.fb-brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--fb-primary);
    color: #fff;
    font-size: 24px;
}

.fb-brand-title {
    margin: 0;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
}

.fb-brand-subtitle {
    margin: 4px 0 0;
    color: var(--fb-muted);
    font-size: 13px;
}

.fb-content {
    padding: 24px;
}

.fb-hero {
    text-align: center;
    padding: 18px 8px 8px;
}

.fb-hero h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 5vw, 38px);
}

.fb-hero p {
    margin: 0;
    color: var(--fb-muted);
    font-size: 17px;
}

.fb-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.fb-action-card {
    appearance: none;
    border: 1px solid var(--fb-border);
    background: var(--fb-card);
    color: var(--fb-text);
    border-radius: 18px;
    padding: 20px 14px;
    min-height: 140px;
    text-align: center;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease;
}

.fb-action-card:hover {
    transform: translateY(-2px);
    border-color: var(--fb-primary);
}

.fb-action-icon {
    display: block;
    font-size: 32px;
    margin-bottom: 10px;
}

.fb-action-title {
    display: block;
    font-weight: 800;
    font-size: 17px;
}

.fb-action-desc {
    display: block;
    margin-top: 6px;
    color: var(--fb-muted);
    font-size: 13px;
    line-height: 1.4;
}

.fb-panel {
    width: 100%;
    max-width: 570px;
    margin: 0 auto;
    padding: 22px;
    border-radius: 20px;
    background: var(--fb-card);
    border: 1px solid var(--fb-border);
}

.fb-panel h2,
.fb-panel h3 {
    margin-top: 0;
}

.fb-field {
    margin-bottom: 16px;
}

.fb-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.fb-input,
.fb-select {
    width: 100%;
    border: 1px solid var(--fb-border);
    border-radius: 12px;
    padding: 12px 14px;
    background: #fff;
    color: var(--fb-text);
    font: inherit;
}

.fb-input:focus,
.fb-select:focus {
    outline: 3px solid rgba(35, 87, 216, .16);
    border-color: var(--fb-primary);
}

.fb-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.fb-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.fb-btn {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 12px 17px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    background: var(--fb-primary);
    color: #fff;
}

.fb-btn:hover {
    background: var(--fb-primary-dark);
}

.fb-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.fb-btn-secondary {
    background: #e9edf5;
    color: var(--fb-text);
}

.fb-btn-secondary:hover {
    background: #dde3ed;
}

.fb-btn-danger {
    background: var(--fb-danger);
}

.fb-error {
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fdeaea;
    color: #8b1e1e;
    font-weight: 700;
}

.fb-room-code {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 20px;
    padding: 12px 18px;
    border-radius: 14px;
    background: #edf2ff;
    color: var(--fb-primary-dark);
    font-size: clamp(26px, 8vw, 42px);
    font-weight: 900;
    letter-spacing: .12em;
}

.fb-player-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.fb-player {
    padding: 14px;
    border: 1px solid var(--fb-border);
    border-radius: 14px;
    background: #fafbfe;
}

.fb-player-name {
    font-weight: 800;
}

.fb-player-meta {
    margin-top: 4px;
    color: var(--fb-muted);
    font-size: 13px;
}

.fb-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 5px;
    border-radius: 50%;
    background: #abb3c2;
}

.fb-dot.is-online {
    background: var(--fb-success);
}

.fb-game-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.fb-score {
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--fb-card);
    border: 1px solid var(--fb-border);
}

.fb-score:last-child {
    text-align: right;
}

.fb-score strong {
    display: block;
    font-size: 22px;
}

.fb-round {
    text-align: center;
    color: var(--fb-muted);
    font-weight: 800;
}

.fb-timer-wrap {
    margin-bottom: 18px;
}

.fb-timer-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 800;
}

.fb-timer-track {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe5ef;
}

.fb-timer-bar {
    height: 100%;
    width: 100%;
    background: var(--fb-primary);
    transition: width .3s linear;
}

.fb-flag-stage {
    display: grid;
    place-items: center;
    min-height: 230px;
    padding: 20px;
    border-radius: 22px;
    background: var(--fb-card);
    border: 1px solid var(--fb-border);
}

.fb-flag {
    line-height: 1;
    font-size: clamp(92px, 24vw, 176px);
    filter: drop-shadow(0 8px 12px rgba(0,0,0,.12));
}

.fb-flag-code {
    margin-top: 8px;
    color: var(--fb-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
}

.fb-question-title {
    margin: 18px 0 12px;
    text-align: center;
    font-size: 20px;
}

.fb-answers {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.fb-answer {
    min-height: 58px;
    border: 2px solid var(--fb-border);
    border-radius: 14px;
    padding: 12px 14px;
    background: var(--fb-card);
    color: var(--fb-text);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.fb-answer:hover:not(:disabled) {
    border-color: var(--fb-primary);
}

.fb-answer.is-correct {
    border-color: var(--fb-success);
    background: #e9f8f0;
    color: #0f6038;
}

.fb-answer.is-wrong {
    border-color: var(--fb-danger);
    background: #fcecec;
    color: #8f2020;
}

.fb-answer:disabled {
    cursor: default;
}

.fb-status {
    margin-top: 16px;
    min-height: 28px;
    text-align: center;
    font-weight: 800;
}

.fb-result {
    text-align: center;
}

.fb-result-icon {
    font-size: 64px;
}

.fb-result h2 {
    margin: 8px 0 4px;
    font-size: 32px;
}

.fb-final-scores {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin: 22px 0;
}

.fb-final-score {
    padding: 18px;
    border-radius: 16px;
    background: #f7f9fd;
    border: 1px solid var(--fb-border);
}

.fb-final-score strong {
    display: block;
    margin-top: 6px;
    font-size: 32px;
}

.fb-small {
    color: var(--fb-muted);
    font-size: 13px;
}

.fb-loading {
    display: grid;
    place-items: center;
    min-height: 260px;
    color: var(--fb-muted);
    font-weight: 700;
}

@media (max-width: 680px) {
    .flagbattle-root {
        margin: 12px auto;
    }

    .fb-app {
        border-radius: 18px;
    }

   .fb-header {
        padding: 14px 16px;
    }

    .fb-brand-title {
        font-size: 20px;
    }

    .fb-content {
        padding: 16px;
    }

    .fb-actions {
        grid-template-columns: 1fr;
    }

    .fb-action-card {
        min-height: 0;
        text-align: left;
        display: grid;
        grid-template-columns: 48px 1fr;
        column-gap: 12px;
        align-items: center;
    }

    .fb-action-icon {
        grid-row: 1 / span 2;
        margin: 0;
    }

    .fb-action-desc {
        margin-top: 3px;
    }

    .fb-grid-2,
    .fb-player-list,
    .fb-final-scores {
        grid-template-columns: 1fr;
    }

    .fb-game-top {
        grid-template-columns: 1fr 1fr;
    }

    .fb-round {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .fb-score {
        grid-row: 2;
    }

    .fb-answers {
        grid-template-columns: 1fr;
    }

    .fb-flag-stage {
        min-height: 190px;
    }

    .fb-panel {
        padding: 17px;
    }
}

/* Αυτόνομη σελίδα /flagbattle/ */
body.flagbattle-standalone-page {
    margin: 0;
    min-height: 100vh;
    background: #eef3fb;
}

.flagbattle-standalone-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.flagbattle-standalone-page .flagbattle-root {
    max-width: 980px;
    margin: 0 auto;
}

.flagbattle-standalone-page .fb-app {
    width: 100%;
}

@media (max-width: 680px) {
    .flagbattle-standalone-main {
        align-items: flex-start;
        padding: 0;
    }

    .flagbattle-standalone-page .flagbattle-root {
        margin: 0;
    }

    .flagbattle-standalone-page .fb-app {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
    }
}

.fb-exit-btn {
    flex: 0 0 auto;
}

@media (max-width: 520px) {
   .fb-header {
        align-items: flex-start;
    }

    .fb-exit-btn {
        padding: 10px 13px;
    }
}

/* Κεντρική επιλογή παιχνιδιού και παιχνίδι προπαίδειας */
.fb-hero-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #e8efff;
    color: var(--fb-primary-dark);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .02em;
}

.fb-main-hero {
    padding-top: 10px;
}

.fb-game-selector {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
    margin-right: auto;
    margin-left: auto;
}

.fb-game-card {
    min-height: 220px;
    padding: 30px 22px;
    border-width: 2px;
    box-shadow: 0 12px 30px rgba(23, 32, 51, .06);
}

.fb-game-card .fb-action-icon {
    font-size: 54px;
}

.fb-game-card .fb-action-title {
    font-size: 22px;
}

.fb-game-card .fb-action-desc {
    margin-top: 10px;
    font-size: 14px;
}

.fb-home-back {
    display: flex;
    justify-content: center;
    margin-top: 22px;
}

.fb-level-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    max-width: 760px;
    margin: 24px auto 0;
}

.fb-level-card {
    appearance: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 190px;
    padding: 20px;
    overflow: hidden;
    border: 2px solid var(--fb-border);
    border-radius: 18px;
    background: var(--fb-card);
    color: var(--fb-text);
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.fb-level-card:hover {
    transform: translateY(-2px);
    border-color: var(--fb-primary);
    box-shadow: 0 12px 28px rgba(35, 87, 216, .10);
}

.fb-level-number {
    display: inline-flex;
    margin-bottom: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #edf2ff;
    color: var(--fb-primary-dark);
    font-size: 12px;
    font-weight: 900;
}

.fb-level-icon {
    position: absolute;
    top: 16px;
    right: 18px;
    font-size: 34px;
}

.fb-level-title {
    display: block;
    padding-right: 42px;
    font-size: 19px;
    font-weight: 900;
}

.fb-level-desc {
    display: block;
    margin-top: 8px;
    color: var(--fb-muted);
    font-size: 14px;
    line-height: 1.45;
}

.fb-level-meta,
.fb-level-best {
    display: block;
    margin-top: auto;
    padding-top: 14px;
    color: var(--fb-muted);
    font-size: 12px;
    font-weight: 800;
}

.fb-level-best {
    margin-top: 5px;
    padding-top: 0;
    color: var(--fb-success);
}

.fb-math-stage {
    display: grid;
    place-items: center;
    min-height: 245px;
    padding: 24px;
    border: 1px solid var(--fb-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(35, 87, 216, .12), transparent 38%),
        var(--fb-card);
    text-align: center;
}

.fb-math-level-label {
    color: var(--fb-muted);
    font-size: 14px;
    font-weight: 900;
}

.fb-math-expression {
    margin-top: 12px;
    font-size: clamp(58px, 14vw, 96px);
    line-height: 1;
    font-weight: 950;
    letter-spacing: -.04em;
}

.fb-math-equals {
    margin-top: 8px;
    color: var(--fb-primary);
    font-size: 28px;
    font-weight: 950;
}

.fb-math-answer {
    font-size: 24px;
}

.fb-capital-stage {
    display: grid;
    place-items: center;
    min-height: 245px;
    padding: 24px;
    border: 1px solid var(--fb-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(18, 130, 75, .11), transparent 40%),
        radial-gradient(circle at bottom left, rgba(35, 87, 216, .10), transparent 35%),
        var(--fb-card);
    text-align: center;
}

.fb-capital-region-label {
    color: var(--fb-muted);
    font-size: 14px;
    font-weight: 900;
}

.fb-capital-country {
    margin-top: 12px;
    font-size: clamp(36px, 8vw, 54px);
    line-height: 1.06;
    font-weight: 950;
    letter-spacing: -.03em;
}

.fb-capital-prompt {
    margin-top: 10px;
    color: var(--fb-primary);
    font-size: 22px;
    font-weight: 900;
}

.fb-capital-answer {
    font-size: 20px;
}

.fb-language-stage {
    display: grid;
    place-items: center;
    min-height: 245px;
    padding: 28px;
    border: 1px solid var(--fb-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 216, 46, .18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(35, 87, 216, .12), transparent 38%),
        var(--fb-card);
    text-align: center;
}

.fb-language-skill {
    display: inline-flex;
    padding: 6px 11px;
    border-radius: 999px;
    background: #fff4c8;
    color: #755600;
    font-size: 13px;
    font-weight: 900;
}

.fb-language-prompt {
    max-width: 680px;
    margin-top: 18px;
    font-size: clamp(25px, 5vw, 39px);
    line-height: 1.25;
    font-weight: 900;
}

.fb-language-answer {
    min-height: 72px;
    font-size: 18px;
    line-height: 1.35;
}

.fb-language-status {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.fb-language-status strong {
    font-size: 17px;
}

.fb-language-status span {
    color: var(--fb-muted);
    font-size: 14px;
    line-height: 1.45;
}

.fb-language-grade-card .fb-level-number {
    background: #fff4c8;
    color: #755600;
}

.fb-result-stars {
    margin: 8px 0 10px;
    color: #e8a817;
    font-size: 32px;
    letter-spacing: .08em;
}

.fb-btn-success {
    background: var(--fb-success);
}

.fb-btn-success:hover {
    background: #0f693c;
}

.fb-result-actions {
    gap: 8px;
}

@media (max-width: 680px) {
    .fb-game-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .fb-game-selector .fb-game-card {
        display: block;
        min-height: 190px;
        padding: 20px 10px;
        text-align: center;
    }

    .fb-game-selector .fb-action-icon {
        display: block;
        margin: 0 0 10px;
        font-size: 42px;
    }

    .fb-game-selector .fb-action-title {
        font-size: 16px;
    }

    .fb-game-selector .fb-action-desc {
        margin-top: 7px;
        font-size: 12px;
    }

    .fb-level-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .fb-level-card {
        min-height: 205px;
        padding: 15px;
    }

    .fb-level-icon {
        top: 13px;
        right: 13px;
        font-size: 28px;
    }

    .fb-level-title {
        padding-right: 30px;
        font-size: 16px;
    }

    .fb-level-desc {
        font-size: 12px;
    }

    .fb-math-stage {
        min-height: 205px;
    }

    .fb-math-answer {
        font-size: 22px;
    }
}

@media (max-width: 380px) {
    .fb-level-grid {
        grid-template-columns: 1fr;
    }
}


/* Kyriakoulakis Games branding */
.flagbattle-root.fb-root-splash {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    margin: 0;
}

.flagbattle-root.fb-root-splash .fb-app {
    border-radius: 0;
}

.fb-splash-screen {
    min-height: 100vh;
    border: 0;
    background:
        radial-gradient(circle at 50% 22%, rgba(255, 216, 46, .24), transparent 31%),
        radial-gradient(circle at 18% 82%, rgba(51, 125, 255, .25), transparent 36%),
        linear-gradient(145deg, #061d46 0%, #0c3d87 52%, #0875a8 100%) !important;
}

.fb-splash-inner {
    display: flex;
    min-height: inherit;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 22px;
    text-align: center;
}

.fb-splash-logo {
    display: block;
    width: min(500px, 88vw);
    height: auto;
    filter: drop-shadow(0 20px 34px rgba(0, 0, 0, .30));
    animation: fb-logo-arrive .65s cubic-bezier(.2, .8, .2, 1) both;
}

.fb-splash-tagline {
    margin: 8px 0 0;
    color: #ffffff;
    font-size: clamp(17px, 3vw, 22px);
    font-weight: 800;
    letter-spacing: .01em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .24);
    animation: fb-splash-fade .5s .28s ease both;
}

.fb-splash-loader {
    display: flex;
    gap: 8px;
    margin-top: 24px;
}

.fb-splash-loader span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffd82e;
    animation: fb-loader-bounce .85s infinite ease-in-out;
}

.fb-splash-loader span:nth-child(2) {
    animation-delay: .12s;
}

.fb-splash-loader span:nth-child(3) {
    animation-delay: .24s;
}

.fb-home-brand {
    display: flex;
    justify-content: center;
    margin: -8px auto 6px;
}

.fb-home-logo {
    display: block;
    width: min(340px, 80vw);
    height: auto;
    filter: drop-shadow(0 12px 24px rgba(16, 53, 112, .16));
}

@keyframes fb-logo-arrive {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.92);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fb-splash-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fb-loader-bounce {
    0%, 70%, 100% { transform: translateY(0); opacity: .55; }
    35% { transform: translateY(-8px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .fb-splash-logo,
    .fb-splash-tagline,
    .fb-splash-loader span {
        animation: none;
    }
}

@media (max-width: 680px) {
    .fb-splash-screen {
        min-height: calc(100vh - 24px);
        border-radius: 20px;
    }

    .fb-splash-logo {
        width: min(430px, 92vw);
    }

    .fb-home-logo {
        width: min(300px, 82vw);
    }
}


@media (max-width: 760px) {
   .fb-header {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .fb-brand-logo,
    .fb-header-center,
    .fb-header-right {
        width: 100%;
        justify-content: center;
    }

    .fb-header-center {
        position: static;
        transform: none;
        pointer-events: auto;
    }

    .fb-header-right,
    .fb-header-chips {
        justify-content: center;
    }

    .fb-header-logo {
        width: min(96px, 28vw);
        max-height: 68px;
    }
}

@media (max-width: 560px) {
   .fb-header {
        padding: 10px 12px;
        gap: 10px;
    }

    .fb-header-title {
        font-size: 20px;
    }

    .fb-header-chip {
        min-width: 62px;
        padding: 6px 8px;
    }

    .fb-header-chip strong {
        font-size: 13px;
    }
}

/* PWA installation */
.fb-install-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    margin: 22px auto 0;
    padding: 16px 18px;
    max-width: 760px;
    border: 1px solid rgba(35, 87, 216, .16);
    border-radius: 18px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 12px 30px rgba(20, 57, 112, .10);
}

.fb-install-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, #eaf2ff, #f5f9ff);
    font-size: 26px;
}

.fb-install-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
    color: #17325f;
}

.fb-install-copy strong {
    font-size: 15px;
}

.fb-install-copy span {
    color: #5c6f8f;
    font-size: 13px;
    line-height: 1.45;
}

.fb-install-button {
    white-space: nowrap;
}

@media (max-width: 680px) {
    .fb-install-card {
        grid-template-columns: auto minmax(0, 1fr);
        padding: 14px;
    }

    .fb-install-button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.fb-home-brand { display:none; }

@media (max-width: 680px) {
    .fb-language-stage {
        min-height: 215px;
        padding: 20px 15px;
    }

    .fb-language-prompt {
        font-size: clamp(22px, 7vw, 31px);
    }

    .fb-language-answer {
        min-height: 64px;
        font-size: 15px;
    }
}


/* English primary school game */
.fb-game-card-wide {
    grid-column: 1 / -1;
    width: min(100%, 400px);
    justify-self: center;
}

.fb-english-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.fb-english-category-card {
    min-height: 190px;
}

.fb-english-best {
    display: block;
    margin-top: 12px;
    color: var(--fb-success);
    font-size: 12px;
    font-weight: 900;
}

.fb-english-stage {
    background:
        radial-gradient(circle at top right, rgba(205, 35, 47, .10), transparent 38%),
        radial-gradient(circle at bottom left, rgba(35, 87, 216, .12), transparent 38%),
        var(--fb-card);
}

@media (max-width: 680px) {
    .fb-game-card-wide {
        width: 100%;
    }

    .fb-english-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .fb-english-category-card {
        min-height: 175px;
        padding: 18px 10px;
    }
}

@media (max-width: 380px) {
    .fb-english-category-grid {
        grid-template-columns: 1fr;
    }
}


/* Little Builders game */
.fb-builder-level-card .fb-level-number {
    background: #fff1d4;
    color: #8a4d00;
}

.fb-builder-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding: 15px 17px;
    border: 1px solid var(--fb-border);
    border-radius: 16px;
    background: var(--fb-card);
}

.fb-builder-toolbar > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.fb-builder-toolbar strong {
    font-size: 20px;
}

.fb-builder-toolbar span {
    color: var(--fb-muted);
    font-size: 13px;
}

.fb-builder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(230px, .65fr);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.fb-builder-board-wrap,
.fb-builder-tray-wrap {
    padding: 16px;
    border: 1px solid var(--fb-border);
    border-radius: 20px;
    background: var(--fb-card);
}

.fb-builder-board {
    position: relative;
    width: min(100%, 520px);
    margin: 0 auto;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 2px solid #bfc9d9;
    border-radius: 18px;
    background-color: #eef3fa;
    background-image:
        linear-gradient(rgba(69, 91, 128, .11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(69, 91, 128, .11) 1px, transparent 1px);
    background-size: calc(100% / var(--fb-grid)) calc(100% / var(--fb-grid));
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .68);
}

.fb-build-slot {
    --brick-color: #3283e8;
    appearance: none;
    position: absolute;
    left: calc(var(--fb-x) * 100% / var(--fb-grid));
    top: calc(var(--fb-y) * 100% / var(--fb-grid));
    width: calc(var(--fb-w) * 100% / var(--fb-grid));
    height: calc(var(--fb-h) * 100% / var(--fb-grid));
    padding: 0;
    overflow: hidden;
    border: 2px dashed rgba(27, 48, 82, .42);
    border-radius: 7px;
    background: rgba(255,255,255,.14);
    cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.fb-build-slot::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--brick-color);
    opacity: 0;
    transition: opacity .2s ease;
}

.fb-build-slot::after,
.fb-builder-piece::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 5px;
    background-image: radial-gradient(circle, rgba(255,255,255,.52) 0 24%, rgba(0,0,0,.10) 26% 35%, transparent 37%);
    background-size: 22px 22px;
    opacity: 0;
    pointer-events: none;
}

.fb-builder-board.is-preview .fb-build-slot:not(.is-placed)::before {
    opacity: .32;
}

.fb-builder-board.is-preview .fb-build-slot:not(.is-placed)::after {
    opacity: .32;
}

.fb-build-slot.is-placed {
    border-style: solid;
    border-color: rgba(15, 34, 64, .46);
    background: var(--brick-color);
    box-shadow: inset 0 -5px 0 rgba(0,0,0,.12), inset 0 4px 0 rgba(255,255,255,.28);
}

.fb-build-slot.is-placed::after {
    opacity: 1;
}

.fb-build-slot.is-drag-over {
    border-color: var(--fb-primary);
    box-shadow: 0 0 0 4px rgba(35, 87, 216, .18);
    transform: scale(.98);
}

.fb-build-slot.is-wrong-place {
    animation: fb-builder-wrong .36s ease;
    border-color: var(--fb-danger);
}

.fb-builder-board.is-complete {
    animation: fb-builder-complete .65s ease;
    box-shadow: 0 0 0 5px rgba(22,130,75,.15), inset 0 0 0 7px rgba(255,255,255,.68);
}

.fb-builder-board.is-time-up {
    box-shadow: 0 0 0 5px rgba(199,53,53,.12), inset 0 0 0 7px rgba(255,255,255,.68);
}

.fb-builder-tray-wrap h3 {
    margin: 0 0 12px;
    text-align: center;
}

.fb-builder-tray {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    min-height: 190px;
    align-content: flex-start;
}

.fb-builder-piece {
    --brick-color: #3283e8;
    appearance: none;
    position: relative;
    width: max(54px, calc(var(--fb-w) * 31px));
    height: max(42px, calc(var(--fb-h) * 27px));
    max-width: 100%;
    padding: 5px;
    overflow: hidden;
    border: 2px solid rgba(15,34,64,.38);
    border-radius: 8px;
    background: var(--brick-color);
    color: rgba(0,0,0,.72);
    cursor: grab;
    box-shadow: inset 0 -5px 0 rgba(0,0,0,.14), inset 0 4px 0 rgba(255,255,255,.32), 0 5px 10px rgba(23,32,51,.12);
    transition: transform .14s ease, box-shadow .14s ease, opacity .18s ease;
}

.fb-builder-piece::after {
    opacity: .84;
}

.fb-builder-piece span {
    position: relative;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    min-width: 31px;
    min-height: 24px;
    padding: 3px 5px;
    border-radius: 999px;
    background: rgba(255,255,255,.76);
    font-size: 11px;
    font-weight: 900;
}

.fb-builder-piece:hover,
.fb-builder-piece.is-selected {
    transform: translateY(-3px) scale(1.04);
    box-shadow: inset 0 -5px 0 rgba(0,0,0,.14), inset 0 4px 0 rgba(255,255,255,.32), 0 0 0 4px rgba(35,87,216,.22), 0 8px 16px rgba(23,32,51,.16);
}

.fb-builder-piece.is-used {
    opacity: .14;
    transform: scale(.85);
    pointer-events: none;
}

.fb-builder-instruction {
    margin: 14px 0 0;
    color: var(--fb-muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

.fb-builder-status {
    min-height: 48px;
    margin-top: 16px;
    font-weight: 800;
}

.fb-brick-red { --brick-color: #ed3b43; }
.fb-brick-blue { --brick-color: #2979d8; }
.fb-brick-yellow { --brick-color: #ffd332; }
.fb-brick-green { --brick-color: #43aa4b; }
.fb-brick-orange { --brick-color: #f28a2a; }
.fb-brick-purple { --brick-color: #8f5bd7; }
.fb-brick-teal { --brick-color: #16aa9a; }
.fb-brick-cyan { --brick-color: #55c8ee; }
.fb-brick-brown { --brick-color: #9a6339; }
.fb-brick-gray { --brick-color: #8c99aa; }
.fb-brick-white { --brick-color: #f5f7fa; }
.fb-brick-black { --brick-color: #29313e; }
.fb-brick-pink { --brick-color: #f28bb2; }

@keyframes fb-builder-wrong {
    0%,100% { transform: translateX(0); }
    25% { transform: translateX(-7px); }
    75% { transform: translateX(7px); }
}

@keyframes fb-builder-complete {
    0% { transform: scale(.98); }
    45% { transform: scale(1.025); }
    100% { transform: scale(1); }
}

@media (max-width: 760px) {
    .fb-builder-layout {
        grid-template-columns: 1fr;
    }

    .fb-builder-tray {
        min-height: 120px;
    }

    .fb-builder-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .fb-builder-toolbar .fb-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .fb-builder-board-wrap,
    .fb-builder-tray-wrap {
        padding: 10px;
    }

    .fb-builder-piece {
        width: max(48px, calc(var(--fb-w) * 27px));
        height: max(38px, calc(var(--fb-h) * 23px));
    }
}


/* Φυσική & Μελέτη Περιβάλλοντος */
.fb-science-stage {
    background:
        radial-gradient(circle at 90% 10%, rgba(22, 130, 75, .14), transparent 35%),
        radial-gradient(circle at 10% 90%, rgba(35, 87, 216, .12), transparent 38%),
        var(--fb-card);
}

.fb-science-category-card {
    border-color: rgba(22, 130, 75, .24);
}

.fb-science-category-card:hover {
    border-color: var(--fb-success);
}

/* =========================================================
   Kyriakoulakis Games — SaaS UI v0.8.0
   ========================================================= */
.flagbattle-root {
    --fb-bg: #f3f6fb;
    --fb-card: #ffffff;
    --fb-text: #152033;
    --fb-muted: #667085;
    --fb-border: #e4e9f2;
    --fb-primary: #2563eb;
    --fb-primary-dark: #1d4ed8;
    --fb-success: #079455;
    --fb-danger: #d92d20;
    --fb-warning: #dc8a04;
    --fb-soft-blue: #eef4ff;
    --fb-shadow-sm: 0 4px 14px rgba(16, 24, 40, .06);
    --fb-shadow-md: 0 14px 38px rgba(16, 24, 40, .10);
    --fb-shadow-lg: 0 28px 70px rgba(16, 24, 40, .14);
    max-width: 1180px;
    margin: 24px auto;
    padding: 0 12px;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.fb-app {
    min-height: 640px;
    overflow: hidden;
    border: 1px solid rgba(208, 215, 226, .85);
    border-radius: 28px;
    background: #f7f9fc;
    box-shadow: var(--fb-shadow-lg);
}

.fb-header {
    min-height: 86px;
    padding: 14px 24px;
    border-bottom: 1px solid #e7ecf3;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 1px 0 rgba(16, 24, 40, .02);
    backdrop-filter: blur(12px);
}

.fb-header-logo {
    width: min(104px, 19vw);
    max-height: 66px;
    filter: none;
}

.fb-header-title {
    color: #172033;
    font-size: clamp(18px, 2.4vw, 25px);
    font-weight: 800;
    letter-spacing: -.025em;
}

.fb-header-chip {
    min-width: 72px;
    padding: 8px 11px;
    border: 1px solid #dfe6f0;
    border-radius: 12px;
    background: #f8fafc;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

.fb-header-chip span {
    color: #667085;
    font-size: 10px;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.fb-header-chip strong {
    color: #1d2939;
    font-size: 15px;
}

.fb-content {
    padding: 34px;
}

.fb-dashboard-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(210px, .5fr);
    align-items: center;
    gap: 32px;
    overflow: hidden;
    padding: 38px 42px;
    border: 1px solid rgba(93, 135, 255, .18);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 216, 46, .25), transparent 28%),
        radial-gradient(circle at 18% 120%, rgba(62, 125, 255, .28), transparent 42%),
        linear-gradient(135deg, #102a56 0%, #164596 55%, #1f62c8 100%);
    color: #fff;
    box-shadow: 0 20px 45px rgba(26, 73, 156, .22);
}

.fb-dashboard-hero::after {
    content: "";
    position: absolute;
    right: -65px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border: 46px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
}

.fb-dashboard-copy,
.fb-dashboard-visual {
    position: relative;
    z-index: 1;
}

.fb-dashboard-eyebrow,
.fb-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #bed4ff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.fb-dashboard-copy h2 {
    max-width: 700px;
    margin: 10px 0 12px;
    color: #fff;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.02;
    letter-spacing: -.045em;
}

.fb-dashboard-copy p {
    max-width: 660px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
    line-height: 1.6;
}

.fb-dashboard-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 22px;
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    font-weight: 700;
}

.fb-dashboard-visual {
    display: grid;
    place-items: center;
    min-height: 190px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    background: rgba(255, 255, 255, .10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
    text-align: center;
    backdrop-filter: blur(8px);
}

.fb-dashboard-visual-icon {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .16);
    font-size: 34px;
}

.fb-dashboard-visual strong {
    margin-top: 8px;
    color: #fff;
    font-size: 46px;
    line-height: 1;
}

.fb-dashboard-visual span {
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
    font-weight: 700;
}

.fb-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.fb-dashboard-stat {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 18px;
    border: 1px solid var(--fb-border);
    border-radius: 17px;
    background: #fff;
    box-shadow: var(--fb-shadow-sm);
}

.fb-dashboard-stat-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--fb-soft-blue);
    font-size: 22px;
}

.fb-dashboard-stat div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.fb-dashboard-stat strong {
    color: #1d2939;
    font-size: 14px;
    line-height: 1.3;
}

.fb-dashboard-stat small {
    margin-top: 3px;
    color: #667085;
    font-size: 11px;
}

.fb-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin: 36px 2px 16px;
}

.fb-section-heading h3 {
    margin: 5px 0 0;
    color: #101828;
    font-size: 26px;
    letter-spacing: -.035em;
}

.fb-section-kicker {
    color: #2563eb;
}

.fb-section-count {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid #dbe4f0;
    border-radius: 999px;
    background: #fff;
    color: #475467;
    font-size: 12px;
    font-weight: 800;
}

.fb-game-selector {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: none;
    margin-top: 0;
}

.fb-action-card,
.fb-level-card,
.fb-language-grade-card,
.fb-english-category-card,
.fb-builder-level-card {
    border: 1px solid #e1e7f0;
    background: #fff;
    box-shadow: 0 5px 18px rgba(16, 24, 40, .055);
}

.fb-game-card {
    position: relative;
    display: flex;
    min-height: 240px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 22px;
    overflow: hidden;
    border-radius: 20px;
    text-align: center;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.fb-game-card::after {
    content: "";
    position: absolute;
    right: -55px;
    bottom: -55px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .04);
}

.fb-game-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, .36);
    box-shadow: 0 18px 38px rgba(16, 24, 40, .11);
}

.fb-game-card-wide {
    grid-column: span 3;
    min-height: 190px;
}

.fb-game-card-badge {
    display: inline-flex;
    align-self: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f0f5ff;
    color: #2559bd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.fb-game-card .fb-action-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    margin: 18px auto 18px;
    border: 1px solid #e4eaf3;
    border-radius: 24px;
    background: linear-gradient(145deg, #f8fbff, #eef4ff);
    font-size: 42px;
    line-height: 1;
    box-shadow: 0 10px 22px rgba(37, 99, 235, .10), inset 0 1px 0 rgba(255, 255, 255, .95);
}

.fb-game-card .fb-action-title {
    color: #101828;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -.02em;
}

.fb-game-card .fb-action-desc {
    max-width: 240px;
    margin-top: 8px;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}

.fb-game-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 18px;
    color: #2563eb;
    font-size: 14px;
    font-weight: 900;
}

.fb-game-card-link b {
    transition: transform .2s ease;
}

.fb-game-card:hover .fb-game-card-link b {
    transform: translateX(4px);
}

.fb-game-card[data-action="choose-flags"] .fb-action-icon {
    background: linear-gradient(145deg, #eef6ff, #dbeafe);
}

.fb-game-card[data-action="choose-capitals"] .fb-action-icon {
    background: linear-gradient(145deg, #eff6ff, #e0e7ff);
}

.fb-game-card[data-action="choose-math"] .fb-action-icon {
    background: linear-gradient(145deg, #ecfeff, #cffafe);
}

.fb-game-card[data-action="choose-language"] .fb-action-icon {
    background: linear-gradient(145deg, #f5f3ff, #ede9fe);
}

.fb-game-card[data-action="choose-english"] .fb-action-icon {
    background: linear-gradient(145deg, #eff6ff, #dbeafe);
}

.fb-game-card[data-action="choose-science"] .fb-action-icon {
    background: linear-gradient(145deg, #ecfdf5, #d1fae5);
}

.fb-game-card[data-action="choose-world-map"] .fb-action-icon {
    background: linear-gradient(145deg, #ecfeff, #ccfbf1);
}

.fb-game-card[data-action="choose-builder"] .fb-action-icon {
    background: linear-gradient(145deg, #fff7ed, #ffedd5);
}

.fb-game-card[data-action="choose-time-money"] .fb-action-icon {
    background: linear-gradient(145deg, #fffbeb, #fef3c7);
}

.fb-panel {
    max-width: 680px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--fb-shadow-md);
}

.fb-panel h2,
.fb-panel h3 {
    color: #101828;
    letter-spacing: -.025em;
}

.fb-field label {
    margin-bottom: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.fb-input,
.fb-select {
    min-height: 48px;
    border: 1px solid #d8e0ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .03);
}

.fb-input:hover,
.fb-select:hover {
    border-color: #b8c7dd;
}

.fb-input:focus,
.fb-select:focus {
    border-color: #3b82f6;
    outline: 4px solid rgba(59, 130, 246, .12);
}

.fb-btn {
    min-height: 44px;
    padding: 11px 17px;
    border-radius: 11px;
    background: #2563eb;
    box-shadow: 0 2px 5px rgba(37, 99, 235, .22);
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.fb-btn:hover {
    transform: translateY(-1px);
    background: #1d4ed8;
    box-shadow: 0 7px 16px rgba(37, 99, 235, .24);
}

.fb-btn-secondary {
    border: 1px solid #d9e1ec;
    background: #fff;
    color: #344054;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.fb-btn-secondary:hover {
    border-color: #c2ccda;
    background: #f8fafc;
    color: #101828;
    box-shadow: 0 4px 10px rgba(16, 24, 40, .06);
}

.fb-btn-danger {
    background: #fff;
    color: #c4322a;
    border: 1px solid #f3c7c4;
    box-shadow: none;
}

.fb-btn-danger:hover {
    background: #fff5f4;
    color: #b42318;
}

.fb-hero {
    padding: 12px 8px 18px;
}

.fb-hero h2 {
    color: #101828;
    letter-spacing: -.04em;
}

.fb-hero p {
    color: #667085;
    line-height: 1.55;
}

.fb-level-grid,
.fb-english-category-grid {
    gap: 16px;
    max-width: 980px;
}

.fb-level-card,
.fb-language-grade-card,
.fb-english-category-card,
.fb-builder-level-card {
    border-radius: 18px;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fb-level-card:hover,
.fb-language-grade-card:hover,
.fb-english-category-card:hover,
.fb-builder-level-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, .35);
    box-shadow: 0 16px 30px rgba(16, 24, 40, .10);
}

.fb-level-number {
    background: #eef4ff;
    color: #1d4ed8;
}

.fb-game-top {
    gap: 12px;
    margin-bottom: 14px;
}

.fb-score,
.fb-round {
    border: 1px solid #e0e7f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--fb-shadow-sm);
}

.fb-timer-wrap {
    margin-bottom: 18px;
    padding: 13px 15px;
    border: 1px solid #e1e8f1;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--fb-shadow-sm);
}

.fb-timer-track {
    height: 8px;
    background: #e9eef5;
}

.fb-timer-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #53a3ff);
}

.fb-flag-stage,
.fb-capital-stage,
.fb-math-stage,
.fb-language-stage,
.fb-english-stage,
.fb-science-stage {
    border: 1px solid #dfe7f0;
    border-radius: 22px;
    background-color: #fff;
    box-shadow: var(--fb-shadow-md);
}

.fb-question-title {
    color: #101828;
    letter-spacing: -.025em;
}

.fb-answers {
    gap: 12px;
}

.fb-answer {
    min-height: 58px;
    padding: 14px 17px;
    border: 1px solid #dce4ee;
    border-radius: 14px;
    background: #fff;
    color: #1d2939;
    box-shadow: 0 3px 10px rgba(16, 24, 40, .045);
    transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.fb-answer:hover:not(:disabled) {
    transform: translateY(-2px);
    border-color: #80aaff;
    background: #f5f8ff;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .09);
}

.fb-answer.is-correct {
    border-color: #6ce9a6;
    background: #ecfdf3;
    color: #027a48;
}

.fb-answer.is-wrong {
    border-color: #fda29b;
    background: #fef3f2;
    color: #b42318;
}

.fb-status,
.fb-language-status,
.fb-builder-status {
    border-radius: 14px;
}

.fb-result {
    padding-top: 34px;
    padding-bottom: 34px;
}

.fb-result-icon {
    display: grid;
    place-items: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 14px;
    border-radius: 24px;
    background: #eef4ff;
    box-shadow: inset 0 0 0 1px #dbe7ff;
}

.fb-final-score {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
}

.fb-install-card {
    margin-top: 24px;
    border: 1px solid #d9e4f3;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--fb-shadow-sm);
}

.fb-install-icon {
    background: #eef4ff;
}

.fb-error {
    border: 1px solid #fecdca;
    border-radius: 14px;
    background: #fef3f2;
    color: #b42318;
}

.fb-loading {
    padding: 52px 24px;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--fb-shadow-md);
}

@media (max-width: 900px) {
    .fb-content {
        padding: 24px;
    }

    .fb-dashboard-hero {
        grid-template-columns: 1fr;
        padding: 32px;
    }

    .fb-dashboard-visual {
        min-height: 130px;
        grid-template-columns: auto auto;
        justify-content: center;
        gap: 15px;
    }

    .fb-dashboard-visual strong {
        font-size: 38px;
    }

    .fb-dashboard-visual span {
        grid-column: 1 / -1;
    }

    .fb-game-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fb-game-card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 680px) {
    .flagbattle-root {
        margin: 8px auto;
        padding: 0 6px;
    }

    .fb-app {
        border-radius: 20px;
    }

    .fb-header {
        min-height: auto;
        padding: 11px 12px;
    }

    .fb-content {
        padding: 16px;
    }

    .fb-dashboard-hero {
        gap: 22px;
        padding: 26px 22px;
        border-radius: 20px;
    }

    .fb-dashboard-copy h2 {
        font-size: 34px;
    }

    .fb-dashboard-copy p {
        font-size: 15px;
    }

    .fb-dashboard-points {
        display: grid;
        gap: 7px;
    }

    .fb-dashboard-stats {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .fb-dashboard-stat {
        padding: 13px 14px;
    }

    .fb-section-heading {
        margin-top: 28px;
    }

    .fb-section-heading h3 {
        font-size: 22px;
    }

    .fb-game-selector {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .fb-game-card {
        min-height: 222px;
        padding: 16px;
    }

    .fb-game-card-wide {
        grid-column: span 2;
    }

    .fb-game-card .fb-action-icon {
        width: 72px;
        height: 72px;
        margin: 16px auto 14px;
        font-size: 34px;
    }

    .fb-game-card .fb-action-title {
        font-size: 19px;
    }

    .fb-game-card .fb-action-desc {
        font-size: 12px;
    }

    .fb-panel {
        padding: 20px;
        border-radius: 18px;
    }

    .fb-answer {
        min-height: 54px;
        padding: 12px 13px;
    }
}

@media (max-width: 430px) {
    .fb-game-selector {
        grid-template-columns: 1fr;
    }

    .fb-game-card,
    .fb-game-card-wide {
        grid-column: span 1;
        min-height: 205px;
    }

    .fb-section-count {
        display: none;
    }

    .fb-dashboard-visual {
        grid-template-columns: 1fr;
    }

    .fb-dashboard-visual span {
        grid-column: auto;
    }
}


/* World Map game */
.fb-world-map-level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
}

.fb-world-map-level-card {
    min-height: 210px;
}

.fb-map-question-card {
    margin-bottom: 18px;
    padding: 22px 24px;
    border: 1px solid #dfe7f2;
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 10%, rgba(37, 99, 235, .12), transparent 28%),
        linear-gradient(135deg, #ffffff, #f7faff);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .06);
    text-align: center;
}

.fb-map-question-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef4ff;
    color: #2457bd;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fb-map-question-card h2 {
    margin: 12px 0 7px;
    color: #101828;
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.15;
    letter-spacing: -.035em;
}

.fb-map-question-card p {
    margin: 0;
    color: #667085;
    font-size: 15px;
    font-weight: 700;
}

.fb-world-map-wrap {
    position: relative;
    margin-top: 18px;
    padding: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #d7e2ef;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(27, 68, 132, .12);
}

.fb-world-map {
    display: block;
    width: 100%;
    min-width: 720px;
    height: auto;
    min-height: 320px;
    border-radius: 18px;
    touch-action: manipulation;
}

.fb-map-grid path {
    fill: none;
    stroke: rgba(63, 108, 165, .10);
    stroke-width: 1;
    stroke-dasharray: 7 8;
}

.fb-map-land,
.fb-map-island {
    fill: #9fc6a5;
    stroke: #6a9a74;
    stroke-width: 3;
    stroke-linejoin: round;
    filter: drop-shadow(0 3px 3px rgba(47, 88, 66, .12));
}

.fb-map-island {
    fill: #acd0b1;
}

.fb-map-country-target,
.fb-map-continent-target {
    cursor: pointer;
    outline: none;
}

.fb-map-pin-pulse {
    fill: rgba(37, 99, 235, .18);
    transform-box: fill-box;
    transform-origin: center;
    animation: fb-map-pin-pulse 1.8s infinite ease-out;
}

.fb-map-pin {
    fill: #2563eb;
    stroke: #fff;
    stroke-width: 4;
    filter: drop-shadow(0 4px 5px rgba(29, 78, 216, .35));
    transition: fill .18s ease, transform .18s ease;
}

.fb-map-country-target text {
    fill: #fff;
    font-size: 15px;
    font-weight: 950;
    pointer-events: none;
}

.fb-map-country-target:hover .fb-map-pin,
.fb-map-country-target:focus .fb-map-pin {
    fill: #1748b5;
    transform: scale(1.18);
    transform-box: fill-box;
    transform-origin: center;
}

.fb-map-continent-target rect {
    fill: rgba(16, 42, 86, .88);
    stroke: rgba(255, 255, 255, .8);
    stroke-width: 2;
    filter: drop-shadow(0 4px 5px rgba(16, 42, 86, .22));
    transition: fill .18s ease, transform .18s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.fb-map-continent-target text {
    fill: #fff;
    font-size: 15px;
    font-weight: 900;
    pointer-events: none;
}

.fb-map-continent-target:hover rect,
.fb-map-continent-target:focus rect {
    fill: #2563eb;
    transform: scale(1.06);
}

.fb-map-country-target.is-correct .fb-map-pin,
.fb-map-continent-target.is-correct rect {
    fill: #16a05d;
    stroke: #fff;
}

.fb-map-country-target.is-wrong .fb-map-pin,
.fb-map-continent-target.is-wrong rect {
    fill: #d92d20;
    stroke: #fff;
}

.fb-map-country-target.is-correct .fb-map-pin-pulse {
    fill: rgba(22, 160, 93, .25);
    animation: fb-map-correct-pulse .65s ease-out 2;
}

.fb-map-country-target.is-disabled,
.fb-map-continent-target.is-disabled {
    cursor: default;
}

.fb-map-legend {
    margin: 12px auto 0;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.fb-world-map-status {
    min-height: 42px;
    margin-top: 8px;
    font-size: 17px;
    font-weight: 900;
}

@keyframes fb-map-pin-pulse {
    0% { opacity: .8; transform: scale(.72); }
    70%, 100% { opacity: 0; transform: scale(1.35); }
}

@keyframes fb-map-correct-pulse {
    0% { opacity: .8; transform: scale(.8); }
    100% { opacity: 0; transform: scale(1.6); }
}

@media (max-width: 680px) {
    .fb-world-map-level-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .fb-world-map-level-card {
        min-height: 200px;
        padding: 16px;
    }

    .fb-map-question-card {
        padding: 18px 16px;
    }

    .fb-world-map-wrap {
        margin-right: -6px;
        margin-left: -6px;
        padding: 5px;
        border-radius: 18px;
    }

    .fb-world-map {
        min-height: 280px;
    }

    .fb-map-continent-target text {
        font-size: 14px;
    }
}

@media (max-width: 430px) {
    .fb-world-map-level-grid {
        grid-template-columns: 1fr;
    }

    .fb-world-map-level-card {
        min-height: 178px;
    }

    .fb-world-map {
        min-height: 240px;
    }
}

.fb-world-map-wrap::-webkit-scrollbar { height: 8px; }
.fb-world-map-wrap::-webkit-scrollbar-thumb { background: #b9c8dc; border-radius: 999px; }
.fb-world-map-wrap::-webkit-scrollbar-track { background: #edf3fa; border-radius: 999px; }


/* Ώρα & Χρήματα */
.fb-time-money-category-grid {
    max-width: 780px;
    margin-right: auto;
    margin-left: auto;
}

.fb-time-money-category-card {
    align-items: center;
    text-align: center;
}

.fb-time-money-stage {
    gap: 16px;
    min-height: 320px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, .13), transparent 38%),
        radial-gradient(circle at bottom left, rgba(37, 99, 235, .09), transparent 34%),
        #fff;
}

.fb-learning-clock {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 6px auto 2px;
    border: 10px solid #1d4ed8;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 16px 35px rgba(29, 78, 216, .18), inset 0 0 0 4px #dbeafe;
}

.fb-clock-number {
    position: absolute;
    color: #172033;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
}

.fb-clock-12 { top: 10px; left: 50%; transform: translateX(-50%); }
.fb-clock-3 { top: 50%; right: 12px; transform: translateY(-50%); }
.fb-clock-6 { bottom: 10px; left: 50%; transform: translateX(-50%); }
.fb-clock-9 { top: 50%; left: 12px; transform: translateY(-50%); }

.fb-clock-hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: 6px;
    border-radius: 999px;
    background: #172033;
    transform-origin: 50% 100%;
}

.fb-clock-hour {
    height: 48px;
}

.fb-clock-minute {
    width: 4px;
    height: 66px;
    background: #2563eb;
}

.fb-clock-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 15px;
    height: 15px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: #f59e0b;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 7px rgba(0, 0, 0, .18);
}

.fb-time-money-symbol {
    display: grid;
    place-items: center;
    width: 112px;
    height: 112px;
    margin: 8px auto 0;
    border: 1px solid #fde68a;
    border-radius: 30px;
    background: linear-gradient(145deg, #fffbeb, #fef3c7);
    font-size: 58px;
    box-shadow: 0 15px 30px rgba(245, 158, 11, .12);
}

.fb-time-money-answer {
    min-height: 66px;
    font-size: 18px;
}

@media (max-width: 560px) {
    .fb-learning-clock {
        width: 156px;
        height: 156px;
        border-width: 8px;
    }

    .fb-clock-hour { height: 41px; }
    .fb-clock-minute { height: 57px; }

    .fb-time-money-symbol {
        width: 92px;
        height: 92px;
        border-radius: 24px;
        font-size: 48px;
    }
}

/* Προφίλ παικτών */
.fb-active-profile {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    max-width: 230px;
    padding: 7px 10px;
    border: 1px solid #dfe6f0;
    border-radius: 14px;
    background: #f8fafc;
    color: #172033;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.fb-active-profile:hover:not(:disabled) {
    border-color: #9db8ef;
    background: #f0f5ff;
    box-shadow: 0 7px 18px rgba(37, 99, 235, .09);
}

.fb-active-profile:disabled,
.fb-active-profile.is-locked {
    cursor: default;
    opacity: .94;
}

.fb-active-profile-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border: 1px solid #dbe5f2;
    border-radius: 12px;
    background: linear-gradient(145deg, #eef5ff, #fff);
    font-size: 22px;
}

.fb-active-profile-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    line-height: 1.15;
}

.fb-active-profile-copy strong,
.fb-active-profile-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fb-active-profile-copy strong {
    font-size: 13px;
    font-weight: 900;
}

.fb-active-profile-copy small {
    margin-top: 3px;
    color: #667085;
    font-size: 10px;
    font-weight: 700;
}

.fb-active-profile-change {
    margin-left: 2px;
    color: #2563eb;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.fb-profile-hero {
    max-width: 760px;
    margin: 0 auto 26px;
    text-align: center;
}

.fb-profile-hero .fb-section-kicker {
    color: #2563eb;
}

.fb-profile-hero h2 {
    margin: 8px 0 8px;
    color: #101828;
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.fb-profile-hero p {
    margin: 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.6;
}

.fb-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}

.fb-profile-card,
.fb-profile-add {
    min-height: 245px;
    overflow: hidden;
    border: 1px solid #dfe6f0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 25px rgba(16, 24, 40, .065);
}

.fb-profile-card {
    display: flex;
    flex-direction: column;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.fb-profile-card:hover,
.fb-profile-card.is-active {
    transform: translateY(-3px);
    border-color: rgba(37, 99, 235, .42);
    box-shadow: 0 17px 36px rgba(37, 99, 235, .12);
}

.fb-profile-card.is-active {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .09), 0 17px 36px rgba(37, 99, 235, .11);
}

.fb-profile-select {
    appearance: none;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 24px 18px 18px;
    border: 0;
    background: transparent;
    color: #172033;
    font: inherit;
    text-align: center;
    cursor: pointer;
}

.fb-profile-avatar {
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    border: 1px solid #dbe6f4;
    border-radius: 28px;
    background: linear-gradient(145deg, #eef5ff, #fff7e8);
    font-size: 48px;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .12);
}

.fb-profile-select strong {
    margin-top: 15px;
    font-size: 21px;
    font-weight: 950;
}

.fb-profile-select small {
    margin-top: 5px;
    color: #667085;
    font-size: 13px;
    font-weight: 700;
}

.fb-profile-current,
.fb-profile-enter {
    margin-top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
}

.fb-profile-current {
    background: #ecfdf3;
    color: #067647;
}

.fb-profile-enter {
    background: #eff4ff;
    color: #2563eb;
}

.fb-profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #edf0f5;
}

.fb-profile-mini {
    appearance: none;
    min-height: 40px;
    border: 0;
    background: #fbfcfe;
    color: #475467;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    cursor: pointer;
}

.fb-profile-mini + .fb-profile-mini {
    border-left: 1px solid #edf0f5;
}

.fb-profile-mini:hover {
    background: #f0f5ff;
    color: #1d4ed8;
}

.fb-profile-mini.is-danger:hover {
    background: #fff1f1;
    color: #b42318;
}

.fb-profile-add {
    appearance: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-style: dashed;
    color: #475467;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.fb-profile-add:hover {
    transform: translateY(-3px);
    border-color: #7da2ed;
    background: #f8fbff;
}

.fb-profile-add > span {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    border-radius: 24px;
    background: #eff4ff;
    color: #2563eb;
    font-size: 40px;
    font-weight: 400;
}

.fb-profile-add strong {
    margin-top: 15px;
    color: #172033;
    font-size: 18px;
}

.fb-profile-add small {
    margin-top: 6px;
    color: #667085;
    font-size: 12px;
}

.fb-profile-footer {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.fb-profile-form-panel {
    max-width: 660px;
}

.fb-profile-form-panel .fb-section-kicker {
    color: #2563eb;
}

.fb-profile-form-panel h2 {
    margin: 8px 0 8px;
    font-size: 30px;
}

.fb-profile-form-intro {
    margin: 0 0 24px;
    color: #667085;
    line-height: 1.55;
}

.fb-avatar-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.fb-avatar-option {
    appearance: none;
    display: grid;
    place-items: center;
    aspect-ratio: 1;
    min-width: 0;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    font-size: 30px;
    cursor: pointer;
    transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.fb-avatar-option:hover {
    transform: translateY(-2px);
    border-color: #a9c0ec;
}

.fb-avatar-option.is-selected {
    border-color: #2563eb;
    background: #eff4ff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}

@media (max-width: 900px) {
    .fb-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fb-active-profile {
        max-width: 195px;
    }
}

@media (max-width: 760px) {
    .fb-active-profile {
        max-width: 100%;
    }

    .fb-header-right .fb-active-profile {
        width: auto;
    }
}

@media (max-width: 560px) {
    .fb-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .fb-profile-card,
    .fb-profile-add {
        min-height: 225px;
        border-radius: 18px;
    }

    .fb-profile-select {
        padding: 18px 10px 14px;
    }

    .fb-profile-avatar {
        width: 70px;
        height: 70px;
        border-radius: 22px;
        font-size: 38px;
    }

    .fb-profile-select strong {
        font-size: 17px;
    }

    .fb-profile-select small {
        min-height: 30px;
        font-size: 11px;
    }

    .fb-profile-actions {
        grid-template-columns: 1fr;
    }

    .fb-profile-mini + .fb-profile-mini {
        border-top: 1px solid #edf0f5;
        border-left: 0;
    }

    .fb-profile-add > span {
        width: 62px;
        height: 62px;
        border-radius: 20px;
        font-size: 34px;
    }

    .fb-avatar-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .fb-avatar-option {
        font-size: 27px;
    }

    .fb-active-profile-change {
        display: none;
    }
}

.fb-level-card.is-recommended {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .10), 0 15px 32px rgba(37, 99, 235, .10);
}

.fb-recommended-grade {
    position: absolute;
    top: 14px;
    left: 50%;
    padding: 5px 10px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    transform: translateX(-50%);
    white-space: nowrap;
}
