.gtb-app {
    --gtb-navy: #073b74;
    --gtb-blue: #0b5fa5;
    --gtb-teal: #12aeb5;
    --gtb-teal-dark: #087d83;
    --gtb-ink: #16283d;
    --gtb-muted: #52677f;
    --gtb-line: #cbd9e6;
    --gtb-soft: #f3f7fa;
    --gtb-pale: #e8f7f8;
    --gtb-white: #ffffff;
    --gtb-good: #18794e;
    --gtb-good-bg: #edf8f2;
    --gtb-warn: #9a5c00;
    --gtb-warn-bg: #fff7e8;
    color: var(--gtb-ink);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    margin: 24px auto;
    max-width: 1120px;
}

.gtb-app *,
.gtb-app *::before,
.gtb-app *::after {
    box-sizing: border-box;
}

.gtb-app button,
.gtb-app input,
.gtb-app select {
    font: inherit;
}

.gtb-loading {
    background: var(--gtb-soft);
    border: 1px solid var(--gtb-line);
    border-radius: 16px;
    padding: 24px;
}

.gtb-shell {
    background: var(--gtb-white);
    border: 1px solid var(--gtb-line);
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(7, 59, 116, 0.09);
    overflow: hidden;
}

.gtb-hero {
    background: linear-gradient(125deg, #062e62 0%, #0b5f91 56%, #12aeb5 100%);
    color: #fff;
    padding: clamp(28px, 5vw, 54px);
}

.gtb-hero h2,
.gtb-hero h3,
.gtb-hero p {
    color: inherit;
    margin-top: 0;
}

.gtb-hero h2 {
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    margin-bottom: 18px;
}

.gtb-intro {
    font-size: clamp(17px, 2.2vw, 22px);
    margin-bottom: 0;
    max-width: 880px;
}

.gtb-eyebrow {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.09em;
    margin: 0 0 7px;
    text-transform: uppercase;
}

.gtb-start-meta {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    background: var(--gtb-line);
    border-bottom: 1px solid var(--gtb-line);
}

.gtb-start-meta div {
    background: var(--gtb-white);
    min-width: 0;
    padding: 20px 14px;
    text-align: center;
}

.gtb-start-meta strong,
.gtb-start-meta span {
    display: block;
}

.gtb-start-meta strong {
    color: var(--gtb-navy);
    font-size: 20px;
}

.gtb-start-meta span {
    color: var(--gtb-muted);
    font-size: 13px;
}

.gtb-callout {
    align-items: flex-start;
    background: var(--gtb-pale);
    border-left: 5px solid var(--gtb-teal);
    display: flex;
    gap: 14px;
    margin: 30px clamp(22px, 5vw, 54px) 24px;
    padding: 18px 20px;
}

.gtb-callout strong {
    color: var(--gtb-navy);
    flex: 0 0 auto;
}

.gtb-start > .gtb-btn {
    margin: 0 clamp(22px, 5vw, 54px) 18px;
}

.gtb-privacy,
.gtb-best {
    color: var(--gtb-muted);
    font-size: 13px;
    margin: 0 clamp(22px, 5vw, 54px) 28px;
}

.gtb-topbar {
    align-items: center;
    background: var(--gtb-soft);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 18px clamp(22px, 4vw, 42px);
}

.gtb-topbar .gtb-eyebrow {
    color: var(--gtb-navy);
}

.gtb-step {
    color: var(--gtb-muted);
    font-size: 14px;
    font-weight: 700;
    margin: 0;
}

.gtb-category {
    background: var(--gtb-pale);
    border: 1px solid #aadfe2;
    border-radius: 999px;
    color: var(--gtb-teal-dark);
    font-size: 13px;
    font-weight: 800;
    padding: 6px 12px;
    white-space: nowrap;
}

.gtb-progress {
    background: #e4ebf1;
    height: 7px;
    overflow: hidden;
}

.gtb-progress span {
    background: linear-gradient(90deg, var(--gtb-blue), var(--gtb-teal));
    display: block;
    height: 100%;
    transition: width 300ms ease;
}

.gtb-question {
    padding: clamp(24px, 5vw, 48px);
}

.gtb-question h3 {
    color: var(--gtb-navy);
    font-size: clamp(25px, 3.3vw, 36px);
    line-height: 1.2;
    margin: 0 0 14px;
}

.gtb-prompt {
    color: #294660;
    font-size: 18px;
    margin: 0 0 24px;
}

.gtb-options {
    border: 0;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.gtb-option {
    align-items: flex-start;
    background: #fff;
    border: 2px solid var(--gtb-line);
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    gap: 13px;
    padding: 15px 16px;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.gtb-option:hover {
    border-color: var(--gtb-teal);
    transform: translateY(-1px);
}

.gtb-option:focus-within {
    box-shadow: 0 0 0 4px rgba(18, 174, 181, 0.18);
    outline: none;
}

.gtb-option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.gtb-option-marker {
    border: 2px solid #7890a8;
    border-radius: 50%;
    flex: 0 0 22px;
    height: 22px;
    margin-top: 2px;
    position: relative;
    width: 22px;
}

.gtb-option input[type="checkbox"] + .gtb-option-marker {
    border-radius: 5px;
}

.gtb-option input:checked + .gtb-option-marker {
    background: var(--gtb-teal);
    border-color: var(--gtb-teal-dark);
}

.gtb-option input:checked + .gtb-option-marker::after {
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: "";
    height: 10px;
    left: 7px;
    position: absolute;
    top: 3px;
    transform: rotate(45deg);
    width: 5px;
}

.gtb-option.is-expected {
    background: var(--gtb-good-bg);
    border-color: #69ad8b;
}

.gtb-option.is-wrong {
    background: #fff0ef;
    border-color: #d88b84;
}

.gtb-match {
    display: grid;
    gap: 12px;
}

.gtb-match-row {
    align-items: center;
    background: var(--gtb-soft);
    border: 2px solid transparent;
    border-radius: 14px;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(200px, 1.1fr) minmax(220px, 1fr);
    padding: 14px 16px;
}

.gtb-match-row > span {
    color: var(--gtb-navy);
    font-weight: 750;
}

.gtb-match-row select,
.gtb-number input {
    background: #fff;
    border: 1px solid #8ca1b5;
    border-radius: 9px;
    color: var(--gtb-ink);
    min-height: 46px;
    padding: 8px 12px;
    width: 100%;
}

.gtb-match-row.is-correct {
    background: var(--gtb-good-bg);
    border-color: #69ad8b;
}

.gtb-match-row.is-wrong {
    background: #fff0ef;
    border-color: #d88b84;
}

.gtb-order {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gtb-order li {
    align-items: center;
    background: var(--gtb-soft);
    border: 2px solid transparent;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: 38px 1fr auto;
    padding: 12px 14px;
}

.gtb-order-number {
    align-items: center;
    background: var(--gtb-navy);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-weight: 800;
    height: 32px;
    justify-content: center;
    width: 32px;
}

.gtb-order-text {
    font-weight: 650;
}

.gtb-order-controls {
    display: flex;
    gap: 6px;
}

.gtb-order-controls button {
    align-items: center;
    background: #fff;
    border: 1px solid #90a5b8;
    border-radius: 8px;
    color: var(--gtb-navy);
    cursor: pointer;
    display: inline-flex;
    font-size: 20px;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.gtb-order li.is-correct {
    background: var(--gtb-good-bg);
    border-color: #69ad8b;
}

.gtb-order li.is-wrong {
    background: #fff0ef;
    border-color: #d88b84;
}

.gtb-number {
    background: var(--gtb-soft);
    border-radius: 14px;
    display: block;
    max-width: 420px;
    padding: 18px;
}

.gtb-number > span:first-child {
    color: var(--gtb-navy);
    display: block;
    font-weight: 750;
    margin-bottom: 8px;
}

.gtb-number-field {
    align-items: center;
    display: flex;
    gap: 12px;
}

.gtb-number-field strong {
    color: var(--gtb-navy);
    font-size: 19px;
}

.gtb-source-card {
    background: #fbfcfe;
    border: 1px solid var(--gtb-line);
    border-left: 5px solid var(--gtb-teal);
    border-radius: 0 14px 14px 0;
    margin: 20px 0 24px;
    padding: 18px 20px;
}

.gtb-source-card h4 {
    color: var(--gtb-navy);
    font-size: 22px;
    margin: 3px 0 8px;
}

.gtb-source-card p,
.gtb-source-card footer {
    margin: 0;
}

.gtb-source-kicker {
    color: var(--gtb-teal-dark);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.09em;
}

.gtb-source-card footer,
.gtb-source-meta {
    color: var(--gtb-muted);
    font-size: 14px;
    margin-top: 12px !important;
}

.gtb-scale {
    background: linear-gradient(135deg, #f0f6fb, #e8f7f8);
    border: 1px solid #b8d7df;
    border-radius: 16px;
    margin: 20px 0 24px;
    max-width: 620px;
    padding: 20px;
}

.gtb-scale > span {
    color: var(--gtb-navy);
    display: block;
    font-weight: 850;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.gtb-scale > div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    height: 22px;
    margin-bottom: 8px;
    max-width: 360px;
}

.gtb-scale i {
    background: var(--gtb-navy);
    border: 1px solid var(--gtb-navy);
}

.gtb-scale i:nth-child(even) {
    background: #fff;
}

.gtb-scale small {
    color: var(--gtb-muted);
}

.gtb-map-help {
    background: var(--gtb-pale);
    border-left: 4px solid var(--gtb-teal);
    color: var(--gtb-teal-dark);
    font-weight: 700;
    margin-bottom: 12px;
    padding: 10px 14px;
}

.gtb-map-scroll {
    border: 1px solid var(--gtb-line);
    border-radius: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
}

.gtb-map-stage {
    aspect-ratio: 1000 / 650;
    min-width: 760px;
    position: relative;
    width: 100%;
}

.gtb-map-stage > img {
    display: block;
    height: 100%;
    inset: 0;
    object-fit: contain;
    position: absolute;
    width: 100%;
}

.gtb-map-target,
.gtb-map-chip {
    align-items: center;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    line-height: 1.15;
    padding: 4px;
    position: absolute;
    text-align: center;
}

.gtb-map-target {
    background: rgba(255, 255, 255, 0.74);
    border: 2px dashed var(--gtb-blue);
    color: var(--gtb-navy);
    cursor: pointer;
    font-size: clamp(11px, 1.3vw, 16px);
    font-weight: 800;
}

.gtb-map-target:hover,
.gtb-map-target:focus-visible {
    background: #fff;
    border-color: var(--gtb-teal-dark);
    box-shadow: 0 0 0 4px rgba(18, 174, 181, 0.2);
}

.gtb-map-target.has-value {
    background: #fff;
    border-style: solid;
}

.gtb-map-target.is-correct {
    background: var(--gtb-good-bg);
    border-color: var(--gtb-good);
}

.gtb-map-target.is-wrong {
    background: #fff0ef;
    border-color: #bb5147;
}

.gtb-map-chip {
    background: #fff;
    border: 2px solid #7e94a8;
    color: var(--gtb-navy);
    cursor: grab;
    font-size: clamp(10px, 1.2vw, 15px);
    font-weight: 800;
}

.gtb-map-chip:hover,
.gtb-map-chip:focus-visible,
.gtb-map-chip.is-selected {
    background: var(--gtb-pale);
    border-color: var(--gtb-teal-dark);
    box-shadow: 0 0 0 4px rgba(18, 174, 181, 0.18);
}

.gtb-map-chip.is-used {
    opacity: 0.38;
}

.gtb-live {
    color: #a33931;
    font-weight: 750;
    margin-top: 14px;
}

.gtb-feedback {
    border: 1px solid;
    border-radius: 16px;
    margin-top: 26px;
    padding: 20px;
}

.gtb-feedback.is-correct {
    background: var(--gtb-good-bg);
    border-color: #69ad8b;
}

.gtb-feedback.is-review {
    background: var(--gtb-warn-bg);
    border-color: #e3b765;
}

.gtb-feedback-heading {
    align-items: center;
    color: var(--gtb-navy);
    display: flex;
    font-size: 20px;
    gap: 10px;
    margin-bottom: 8px;
}

.gtb-feedback-heading > span {
    align-items: center;
    background: var(--gtb-navy);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.gtb-feedback p:last-of-type {
    margin-bottom: 16px;
}

.gtb-correction {
    background: rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    padding: 12px 14px;
}

.gtb-correction ul {
    margin-bottom: 0;
}

.gtb-actions {
    align-items: center;
    background: var(--gtb-soft);
    border-top: 1px solid var(--gtb-line);
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 18px clamp(22px, 5vw, 48px);
}

.gtb-btn {
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.gtb-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.gtb-btn:focus-visible {
    box-shadow: 0 0 0 4px rgba(18, 174, 181, 0.25);
    outline: none;
}

.gtb-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.gtb-btn-primary {
    background: var(--gtb-navy);
    color: #fff !important;
}

.gtb-btn-primary:hover:not(:disabled) {
    background: var(--gtb-blue);
}

.gtb-btn-secondary {
    background: #fff;
    border-color: #90a5b8;
    color: var(--gtb-navy) !important;
}

.gtb-course-footer {
    color: var(--gtb-muted);
    font-size: 12px;
    margin: 0;
    padding: 10px 22px;
    text-align: center;
}

.gtb-results .gtb-hero p:last-child {
    margin-bottom: 0;
}

.gtb-score {
    align-items: center;
    display: grid;
    gap: 22px;
    grid-template-columns: 120px 1fr;
    padding: 28px clamp(22px, 5vw, 54px) 10px;
}

.gtb-score > strong {
    color: var(--gtb-navy);
    font-size: 50px;
    line-height: 1;
}

.gtb-score > strong span {
    font-size: 24px;
}

.gtb-score > div {
    background: #e4ebf1;
    border-radius: 999px;
    height: 15px;
    overflow: hidden;
}

.gtb-score > div span {
    background: linear-gradient(90deg, var(--gtb-blue), var(--gtb-teal));
    display: block;
    height: 100%;
}

.gtb-results-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 20px clamp(22px, 5vw, 54px) 30px;
}

.gtb-results-grid article {
    background: var(--gtb-soft);
    border-radius: 16px;
    padding: 20px;
}

.gtb-results-grid h3 {
    color: var(--gtb-navy);
    font-size: 20px;
    margin: 0 0 10px;
}

.gtb-results-grid p {
    margin: 0;
}

.gtb-results-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gtb-results-grid li {
    align-items: center;
    border-bottom: 1px solid var(--gtb-line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 7px 0;
}

.gtb-results-grid li span {
    color: var(--gtb-teal-dark);
    font-weight: 800;
}

.gtb-actions-final {
    justify-content: center;
}

.gtb-best {
    margin-bottom: 16px;
    margin-top: 16px;
    text-align: center;
}

.gtb-sr-only {
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

@media (max-width: 760px) {
    .gtb-app {
        font-size: 16px;
        margin: 16px 0;
    }

    .gtb-shell {
        border-radius: 18px;
    }

    .gtb-start-meta {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gtb-callout {
        display: block;
    }

    .gtb-callout strong {
        display: block;
        margin-bottom: 5px;
    }

    .gtb-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .gtb-category {
        white-space: normal;
    }

    .gtb-match-row {
        gap: 8px;
        grid-template-columns: 1fr;
    }

    .gtb-results-grid {
        grid-template-columns: 1fr;
    }

    .gtb-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .gtb-score {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gtb-app *,
    .gtb-app *::before,
    .gtb-app *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

