/* Original CareersForge arcade: independent games with local scoring. */
.cfbt-native { background: linear-gradient(145deg, #f8fcfa, #edf7f3); border: 1px solid #d7e9e2; border-radius: 26px; box-shadow: 0 18px 48px rgba(18, 62, 66, .08); margin: 26px 0; overflow: hidden; padding: clamp(20px, 4vw, 38px); }
.cfbt-native__heading { align-items: end; margin: 0 0 20px; }
.cfbt-native__heading h3 { color: #123c45; font-size: clamp(1.6rem, 3.1vw, 2.45rem); letter-spacing: -.035em; line-height: 1.08; margin: 8px 0 0; }
.cfbt-native__heading > p { color: #587273; font-size: .91rem; line-height: 1.65; margin: 0; max-width: 520px; }
.cfbt-native__dashboard { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 20px 0; }
.cfbt-native__dashboard article { background: rgba(255,255,255,.88); border: 1px solid #dcebe5; border-radius: 15px; display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 112px; padding: 15px; }
.cfbt-native__dashboard article > span { color: #67807e; font-size: .69rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.cfbt-native__dashboard article > strong { color: #123c45; font-size: 1.55rem; letter-spacing: -.03em; line-height: 1.1; }
.cfbt-native__dashboard article > strong small { color: #8a9d99; font-size: .82rem; font-weight: 700; }
.cfbt-native__dashboard article > small { color: #708280; font-size: .69rem; line-height: 1.4; margin-top: auto; }
.cfbt-native__controls { align-items: end; background: #e8f4ef; border: 1px solid #d1e8df; border-radius: 16px; display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 0 0 20px; padding: 15px 17px; }
.cfbt-native__setting { color: #31585a; display: grid; font-size: .72rem; font-weight: 800; gap: 5px; min-width: 185px; }
.cfbt-native__setting select { background: #fff; border: 1px solid #bfd6cd; border-radius: 9px; color: #123c45; font: inherit; min-height: 42px; padding: 8px 34px 8px 11px; width: 100%; }
.cfbt-native__controls > p { color: #5a7472; flex: 1 1 250px; font-size: .76rem; line-height: 1.5; margin: 0 0 2px; }
.cfbt-native__catalog { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cfbt-native-card { background: #fff; border: 1px solid #d9e9e2; border-radius: 17px; box-shadow: 0 8px 22px rgba(21, 65, 65, .05); display: flex; flex-direction: column; min-width: 0; padding: 15px; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
.cfbt-native-card:hover { border-color: #83c9b4; box-shadow: 0 13px 28px rgba(21, 65, 65, .1); transform: translateY(-2px); }
.cfbt-native-card__top { align-items: center; display: flex; gap: 8px; }
.cfbt-native-card__top > span { align-items: center; background: #e4f4ee; border-radius: 11px; color: #087a70; display: inline-flex; font-size: 1.28rem; height: 40px; justify-content: center; width: 40px; }
.cfbt-native-card__top small { color: #62807d; font-size: .66rem; font-weight: 800; line-height: 1.25; }
.cfbt-native-card h4 { color: #173e45; font-size: 1.03rem; letter-spacing: -.02em; margin: 12px 0 5px; }
.cfbt-native-card p { color: #637977; font-size: .77rem; line-height: 1.5; margin: 0 0 13px; min-height: 58px; }
.cfbt-native-card__score { border-top: 1px solid #edf2ef; display: flex; flex-direction: column; gap: 3px; margin-top: auto; padding: 10px 0; }
.cfbt-native-card__score span { color: #0d7168; font-size: .72rem; font-weight: 800; }
.cfbt-native-card__score small { color: #81918e; font-size: .65rem; }
.cfbt-native-card > button { background: #0b625c; border: 1px solid #0b625c; border-radius: 10px; color: #fff; cursor: pointer; font: inherit; font-size: .76rem; font-weight: 850; min-height: 42px; padding: 9px 12px; text-align: center; }
.cfbt-native-card > button:hover { background: #084a46; }
.cfbt-native__panel { background: #fff; border: 1px solid #d5e8e0; border-radius: 20px; box-shadow: 0 14px 32px rgba(21,65,65,.08); margin: 20px 0 0; padding: clamp(16px, 3vw, 26px); scroll-margin-top: 24px; }
.cfbt-native__panel[hidden], .cfbt-native__board[hidden], .cfbt-native__result[hidden] { display: none !important; }
.cfbt-native__panel-head { align-items: flex-start; border-bottom: 1px solid #edf2ef; display: flex; gap: 18px; justify-content: space-between; padding-bottom: 16px; }
.cfbt-native__panel-head h4 { color: #123c45; font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: -.03em; margin: 7px 0 5px; }
.cfbt-native__panel-head p { color: #627977; font-size: .84rem; line-height: 1.55; margin: 0; max-width: 680px; }
.cfbt-native__panel-actions { align-items: center; display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cfbt-native__level-badge { background: #e8f4ef; border-radius: 999px; color: #0b655c; font-size: .7rem; font-weight: 850; padding: 8px 11px; }
.cfbt-native__status { color: #436460; font-size: .79rem; font-weight: 750; min-height: 24px; padding: 12px 0 7px; }
.cfbt-native__status.is-error { color: #9b3441; }
.cfbt-native-round { background: linear-gradient(145deg, #fbfdfc, #f3f8f5); border: 1px solid #e4eeea; border-radius: 15px; padding: clamp(14px, 3vw, 22px); }
.cfbt-native-round__label { align-items: center; color: #375b5a; display: flex; flex-wrap: wrap; font-size: .8rem; font-weight: 750; gap: 7px; justify-content: center; margin: 0 auto 15px; text-align: center; }
.cfbt-native-round__label strong { color: #0b7167; font-size: 1.1em; }
.cfbt-native__actions { display: flex; justify-content: center; margin-top: 14px; }
.cfbt-native-hint { color: #738683; font-size: .72rem; line-height: 1.5; margin: 13px 0 0; text-align: center; }
.cfbt-pattern-grid { display: grid; gap: 8px; grid-template-columns: repeat(var(--cfbt-grid), minmax(34px, 64px)); justify-content: center; margin: 0 auto 16px; }
.cfbt-pattern-cell { aspect-ratio: 1; background: #dfece8; border: 1px solid #c8ded6; border-radius: 10px; cursor: pointer; min-width: 0; padding: 0; }
.cfbt-pattern-cell.is-target { background: #f0c46b; border-color: #d69f31; box-shadow: 0 0 18px rgba(240,196,107,.42); }
.cfbt-pattern-cell.is-selected { background: #0c8278; border-color: #0c8278; box-shadow: inset 0 0 0 4px #fff; }
.cfbt-memory-grid { display: grid; gap: 9px; grid-template-columns: repeat(4, minmax(48px, 88px)); justify-content: center; margin: 0 auto; }
.cfbt-memory-card { aspect-ratio: 1; background: linear-gradient(145deg, #125a62, #087b72); border: 1px solid #0a655e; border-radius: 12px; box-shadow: 0 4px 9px rgba(15,84,78,.14); color: #fff; cursor: pointer; font-size: clamp(1.3rem, 4vw, 2rem); font-weight: 900; }
.cfbt-memory-card.is-revealed { background: #fff; border-color: #b7d7cc; color: #154d53; }
.cfbt-memory-card.is-matched { background: #e4f4e8; border-color: #8dc9a0; color: #256944; }
.cfbt-sprint-clock { background: #fff3d9; border-radius: 7px; color: #795413; margin-left: auto; padding: 5px 8px; }
.cfbt-sprint-grid { display: grid; gap: 6px; grid-template-columns: repeat(8, minmax(34px, 58px)); justify-content: center; margin: 0 auto; }
.cfbt-sprint-cell { aspect-ratio: 1; background: #fff; border: 1px solid #d8e7e1; border-radius: 9px; color: #31585a; cursor: pointer; font-size: clamp(.95rem, 3vw, 1.35rem); font-weight: 800; padding: 0; }
.cfbt-sprint-cell:hover { background: #e9f5f0; }
.cfbt-sprint-cell.is-found { background: #e0f4e7; border-color: #a4d9b1; color: #438154; }
.cfbt-abacus { align-items: stretch; background: #dcebe5; border: 1px solid #bdd7cb; border-radius: 14px; display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(66px, 100px)); justify-content: center; margin: 0 auto; max-width: 520px; padding: 14px; }
.cfbt-abacus__rod { align-items: center; background: #f7fbf8; border: 1px solid #cadfd5; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 224px; padding: 10px 7px; }
.cfbt-abacus__rod > strong { color: #58716d; font-size: .64rem; }
.cfbt-abacus__rod > small { color: #0c665e; font-size: 1.1rem; font-weight: 900; }
.cfbt-abacus__bead { background: #b2c7bf; border: 1px solid #91afa3; border-radius: 999px; cursor: pointer; height: 21px; width: 42px; }
.cfbt-abacus__bead.is-active { background: #d5a344; border-color: #bb8321; box-shadow: 0 2px 7px rgba(106,75,19,.2); transform: translateX(4px); }
.cfbt-abacus__bead--upper { margin-bottom: 7px; }
.cfbt-abacus__bar { background: #4a7069; border-radius: 3px; height: 5px; margin: 3px -5px; width: calc(100% + 10px); }
.cfbt-abacus__lower { display: flex; flex-direction: column; gap: 6px; }
.cfbt-hanoi { align-items: end; display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 auto; max-width: 650px; }
.cfbt-hanoi__peg { align-items: center; background: #eef5f1; border: 1px solid #d1e4da; border-radius: 12px; color: #42625e; cursor: pointer; display: flex; flex-direction: column; justify-content: flex-end; min-height: 230px; padding: 12px 5px; }
.cfbt-hanoi__peg::before { background: #9bb7aa; border-radius: 5px 5px 0 0; content: ""; height: 150px; margin-bottom: -150px; width: 7px; }
.cfbt-hanoi__peg.is-selected { background: #e3f5ec; border-color: #56a88a; box-shadow: 0 0 0 3px rgba(47,145,112,.12); }
.cfbt-hanoi__stack { align-items: center; display: flex; flex: 1; flex-direction: column; justify-content: end; padding-bottom: 4px; position: relative; width: 100%; }
.cfbt-hanoi__disk { background: linear-gradient(90deg, #1c7773, #55a998); border: 1px solid #246e68; border-radius: 999px; display: block; height: 21px; margin-top: -2px; width: calc(40% + var(--cfbt-disk) * 10%); }
.cfbt-hanoi__disk:nth-child(2n) { background: linear-gradient(90deg, #d7a246, #f0ca70); border-color: #c59234; }
.cfbt-hanoi__empty { display: block; height: 19px; margin-top: -2px; }
.cfbt-hanoi__peg > b { font-size: .7rem; position: relative; }
.cfbt-route-grid { display: grid; gap: 4px; grid-template-columns: repeat(var(--cfbt-grid), minmax(32px, 56px)); justify-content: center; margin: 0 auto; }
.cfbt-route-cell { align-items: center; aspect-ratio: 1; background: #eef6f2; border: 1px solid #d6e7df; border-radius: 8px; color: #78928b; display: flex; font-size: 1.05rem; font-weight: 900; justify-content: center; }
.cfbt-route-cell.is-blocked { background: #d4e1dc; color: #97aaa3; }
.cfbt-route-cell.is-player { background: #0d756c; border-color: #0d756c; color: #fff; }
.cfbt-route-cell.is-goal { background: #fff1d3; border-color: #e5bb62; color: #9c6b16; }
.cfbt-route-controls { display: grid; gap: 7px; grid-template-columns: repeat(3, 46px); grid-template-rows: repeat(2, 43px); justify-content: center; margin: 16px auto 0; }
.cfbt-route-controls button { background: #e4f2ec; border: 1px solid #c4ded2; border-radius: 9px; color: #145d58; cursor: pointer; font-size: 1.05rem; font-weight: 900; }
.cfbt-route-controls button[data-cfbt-route-move="up"] { grid-column: 2; grid-row: 1; }
.cfbt-route-controls button[data-cfbt-route-move="left"] { grid-column: 1; grid-row: 2; }
.cfbt-route-controls button[data-cfbt-route-move="down"] { grid-column: 2; grid-row: 2; }
.cfbt-route-controls button[data-cfbt-route-move="right"] { grid-column: 3; grid-row: 2; }
.cfbt-sort-rule { color: #0b625c; font-size: .9rem; font-weight: 850; margin: 0 auto 13px; max-width: 680px; text-align: center; }
.cfbt-sort-items { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 0 auto 12px; max-width: 760px; }
.cfbt-sort-token { background: #fff; border: 1px solid #d5e6de; border-radius: 10px; color: #365c58; cursor: pointer; display: grid; gap: 3px; min-width: 100px; padding: 10px 12px; }
.cfbt-sort-token strong { color: #125e59; font-size: .8rem; }
.cfbt-sort-token small { color: #758a84; font-size: .67rem; }
.cfbt-sort-token:disabled { background: #e8f3ee; border-color: #aed6c4; opacity: .7; }
.cfbt-sort-answer { color: #496966; font-size: .78rem; font-weight: 700; margin: 13px auto; min-height: 20px; text-align: center; }
.cfbt-people-round blockquote { background: #e7f4ee; border-left: 4px solid #138177; border-radius: 0 10px 10px 0; color: #234c4e; font-size: .98rem; line-height: 1.6; margin: 0 auto 15px; max-width: 740px; padding: 15px 17px; }
.cfbt-people-options { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 auto; max-width: 800px; }
.cfbt-people-options button { background: #fff; border: 1px solid #d7e7e0; border-radius: 11px; color: #395e5a; cursor: pointer; font: inherit; font-size: .78rem; line-height: 1.45; min-height: 62px; padding: 11px; text-align: left; }
.cfbt-people-options button.is-correct { background: #e1f4e7; border-color: #83c69a; }
.cfbt-people-options button.is-wrong { background: #fff0ee; border-color: #e5aaa1; }
.cfbt-feedback { background: #edf5f1; border-radius: 10px; color: #385c55; font-size: .8rem; line-height: 1.55; margin: 13px auto; max-width: 800px; padding: 12px 14px; }
.cfbt-feedback[hidden] { display: none !important; }
.cfbt-native__result { background: #f5faf7; border: 1px solid #d8eae1; border-radius: 15px; display: grid; gap: 18px; grid-template-columns: minmax(140px, .35fr) minmax(0, .65fr); margin-top: 14px; padding: 18px; }
.cfbt-native-result__score { align-items: flex-start; background: #e7f3ed; border-radius: 13px; color: #31615a; display: flex; flex-direction: column; justify-content: center; padding: 17px; }
.cfbt-native-result__score > span { font-size: .7rem; font-weight: 800; }
.cfbt-native-result__score > strong { color: #0b665e; font-size: 3.5rem; letter-spacing: -.05em; line-height: 1; margin: 9px 0; }
.cfbt-native-result__score > strong small { font-size: .9rem; letter-spacing: 0; }
.cfbt-native-result__score > b { font-size: .72rem; }
.cfbt-native-result__copy { color: #4d6965; font-size: .8rem; line-height: 1.55; }
.cfbt-native-result__copy h5 { color: #153f45; font-size: 1.05rem; margin: 0 0 8px; }
.cfbt-native-result__copy p { margin: 7px 0; }
.cfbt-native-result__disclaimer { color: #738581; font-size: .69rem; }
.cfbt-native-result__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.cfbt-native-result__links { border-top: 1px solid #dce9e3; display: flex; flex-wrap: wrap; gap: 7px 14px; padding-top: 11px; }
.cfbt-native-result__links strong { color: #385f5a; flex-basis: 100%; }
.cfbt-native-result__links a { color: #0b6b63; font-size: .72rem; font-weight: 750; }
.cfbt-native :focus-visible { outline: 3px solid #e4ae47; outline-offset: 3px; }
@media (max-width: 900px) {
    .cfbt-native__catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cfbt-native__dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .cfbt-native { border-radius: 19px; padding: 18px 13px; }
    .cfbt-native__heading { align-items: flex-start; }
    .cfbt-native__heading > p { font-size: .8rem; }
    .cfbt-native__catalog { gap: 8px; grid-template-columns: 1fr; }
    .cfbt-native-card { padding: 13px; }
    .cfbt-native-card p { min-height: 0; }
    .cfbt-native__dashboard { gap: 7px; }
    .cfbt-native__dashboard article { min-height: 96px; padding: 11px; }
    .cfbt-native__dashboard article > strong { font-size: 1.25rem; }
    .cfbt-native__dashboard article > span { font-size: .6rem; }
    .cfbt-native__dashboard article > small { font-size: .61rem; }
    .cfbt-native__controls { align-items: stretch; flex-direction: column; gap: 9px; padding: 12px; }
    .cfbt-native__setting { min-width: 0; }
    .cfbt-native__panel { border-radius: 15px; padding: 13px; }
    .cfbt-native__panel-head { flex-direction: column; }
    .cfbt-native__panel-actions { justify-content: space-between; width: 100%; }
    .cfbt-native-round { padding: 11px; }
    .cfbt-pattern-grid { gap: 6px; grid-template-columns: repeat(var(--cfbt-grid), minmax(32px, 54px)); }
    .cfbt-memory-grid { gap: 6px; grid-template-columns: repeat(4, minmax(48px, 68px)); }
    .cfbt-sprint-grid { gap: 5px; grid-template-columns: repeat(4, minmax(44px, 58px)); }
    .cfbt-abacus { gap: 5px; grid-template-columns: repeat(auto-fit, minmax(57px, 1fr)); padding: 8px; }
    .cfbt-abacus__rod { min-height: 205px; padding: 8px 4px; }
    .cfbt-abacus__bead { width: 34px; }
    .cfbt-hanoi { gap: 6px; }
    .cfbt-hanoi__peg { min-height: 190px; padding: 8px 2px; }
    .cfbt-hanoi__peg::before { height: 125px; margin-bottom: -125px; }
    .cfbt-hanoi__disk { height: 17px; }
    .cfbt-route-grid { gap: 3px; grid-template-columns: repeat(var(--cfbt-grid), minmax(32px, 46px)); }
    .cfbt-people-options { grid-template-columns: 1fr; }
    .cfbt-native__result { grid-template-columns: 1fr; padding: 12px; }
    .cfbt-native-result__score { align-items: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .cfbt-native *, .cfbt-native *::before, .cfbt-native *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
