:root {
    --gmbj-navy: #07182f;
    --gmbj-navy-2: #0d2948;
    --gmbj-green: #0d5c52;
    --gmbj-green-bright: #1a8b76;
    --gmbj-gold: #d6ad45;
    --gmbj-gold-light: #f0d985;
    --gmbj-cream: #fff9e9;
    --gmbj-text: #eef5f2;
    --gmbj-muted: rgba(238, 245, 242, 0.75);
    --gmbj-danger: #e87066;
    --gmbj-shadow: 0 28px 80px rgba(2, 10, 22, 0.42);
}

body.gmbh-every-dollar-game-page {
    background: #061427;
    color: var(--gmbj-text);
}

body.gmbh-every-dollar-game-page .gmb-site-header {
    background: rgba(250, 246, 238, 0.98);
}

.gmbj-main {
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 0%, rgba(39, 123, 101, 0.2), transparent 30%),
        radial-gradient(circle at 90% 15%, rgba(214, 173, 69, 0.13), transparent 24%),
        linear-gradient(180deg, #061427 0%, #071a30 56%, #040d19 100%);
}

.gmbj-page-shell {
    padding: 30px 0 84px;
}

.gmbj-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
    color: rgba(238, 245, 242, 0.62);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gmbj-topbar a {
    color: var(--gmbj-gold-light) !important;
}

.gmbj-game {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    border: 1px solid rgba(214, 173, 69, 0.44);
    border-radius: 28px;
    background: #07182f;
    box-shadow: var(--gmbj-shadow);
    isolation: isolate;
}

.gmbj-screen {
    display: none;
    min-height: 720px;
}

.gmbj-screen.is-active {
    display: block;
    animation: gmbjFadeIn 260ms ease both;
}

@keyframes gmbjFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.gmbj-welcome-art,
.gmbj-welcome-overlay {
    position: absolute;
    inset: 0;
}

.gmbj-welcome-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gmbj-welcome-overlay {
    background:
        linear-gradient(90deg, rgba(3, 14, 29, 0.98) 0%, rgba(3, 14, 29, 0.88) 36%, rgba(3, 14, 29, 0.25) 72%, rgba(3, 14, 29, 0.05) 100%),
        linear-gradient(0deg, rgba(3, 14, 29, 0.72), transparent 50%);
}

.gmbj-welcome-copy {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 720px;
    max-width: 720px;
    flex-direction: column;
    justify-content: center;
    padding: 68px clamp(30px, 6vw, 78px);
}

.gmbj-welcome-copy h1,
.gmbj-screen h2,
.gmbj-game h3 {
    color: #fff;
}

.gmbj-welcome-copy h1 {
    max-width: 650px;
    margin-bottom: 22px;
    font-size: clamp(3rem, 7vw, 6.4rem);
    line-height: 0.98;
}

.gmbj-welcome-copy > p:not(.gmbj-kicker):not(.gmbj-privacy-note) {
    max-width: 630px;
    color: var(--gmbj-muted);
    font-size: clamp(1.08rem, 1.8vw, 1.34rem);
}

.gmbj-kicker,
.gmbj-panel-label {
    margin-bottom: 10px;
    color: var(--gmbj-gold-light);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.17em;
    text-transform: uppercase;
}

.gmbj-welcome-actions,
.gmbj-result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.gmbj-gold-button {
    border-color: var(--gmbj-gold) !important;
    background: var(--gmbj-gold) !important;
    color: #07182f !important;
}

.gmbj-gold-button:hover,
.gmbj-gold-button:focus-visible {
    border-color: var(--gmbj-gold-light) !important;
    background: var(--gmbj-gold-light) !important;
}

.gmbj-privacy-note {
    margin-top: 18px;
    color: rgba(238, 245, 242, 0.62);
    font-size: 0.88rem;
}

.gmbj-screen-header,
.gmbj-game-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 26px;
    padding: 34px 38px;
    border-bottom: 1px solid rgba(214, 173, 69, 0.22);
    background: linear-gradient(90deg, rgba(9, 31, 54, 0.98), rgba(7, 24, 47, 0.98));
}

.gmbj-screen-header > div,
.gmbj-game-header > div:first-child {
    max-width: 820px;
}

.gmbj-screen-header h2,
.gmbj-game-header h2 {
    margin-bottom: 8px;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.gmbj-screen-header p:last-child,
.gmbj-game-header p:last-child {
    color: var(--gmbj-muted);
}

.gmbj-small-button,
.gmbj-reset-plan {
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid rgba(214, 173, 69, 0.5);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gmbj-cream);
    cursor: pointer;
    font-weight: 700;
}

.gmbj-small-button:hover,
.gmbj-small-button:focus-visible,
.gmbj-reset-plan:hover,
.gmbj-reset-plan:focus-visible {
    border-color: var(--gmbj-gold-light);
    background: rgba(214, 173, 69, 0.12);
}

.gmbj-mission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding: 34px;
    background:
        radial-gradient(circle at 50% 0%, rgba(21, 95, 79, 0.15), transparent 38%),
        #061427;
}

.gmbj-mission-card {
    position: relative;
    min-height: 630px;
    overflow: hidden;
    border-radius: 22px;
    background: #0b2039;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.gmbj-mission-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gmbj-mission-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(5, 19, 35, 0.04), rgba(5, 19, 35, 0.94) 49%, rgba(5, 19, 35, 0.99));
}

.gmbj-mission-card-content {
    position: relative;
    z-index: 2;
    display: flex;
    height: 100%;
    flex-direction: column;
    align-items: center;
    padding: 26px 26px 32px;
    text-align: center;
}

.gmbj-mission-number {
    align-self: flex-start;
    padding: 6px 10px;
    border: 1px solid rgba(214, 173, 69, 0.48);
    border-radius: 999px;
    color: var(--gmbj-gold-light);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gmbj-mission-goal {
    width: min(100%, 225px);
    max-height: 265px;
    margin: 16px auto 4px;
    object-fit: contain;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.35));
}

.gmbj-mission-difficulty {
    margin-bottom: 5px;
    color: var(--gmbj-gold-light);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gmbj-mission-card h3 {
    margin-bottom: 8px;
    font-size: 1.55rem;
}

.gmbj-mission-card p:not(.gmbj-mission-difficulty) {
    color: var(--gmbj-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.gmbj-mission-card dl {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: auto 0 20px;
}

.gmbj-mission-card dl div {
    padding: 10px 5px;
    border: 1px solid rgba(214, 173, 69, 0.18);
    border-radius: 12px;
    background: rgba(4, 16, 30, 0.58);
}

.gmbj-mission-card dt {
    color: rgba(238, 245, 242, 0.54);
    font-size: 0.67rem;
    text-transform: uppercase;
}

.gmbj-mission-card dd {
    margin: 4px 0 0;
    color: #fff;
    font-weight: 800;
}

.gmbj-how-panel {
    position: relative;
    display: grid;
    min-height: 720px;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 20px;
    padding: 50px;
    background: linear-gradient(135deg, #07182f, #0b2c43);
}

.gmbj-how-copy {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.gmbj-how-list {
    display: grid;
    gap: 13px;
    padding-left: 24px;
    color: var(--gmbj-muted);
}

.gmbj-how-list strong {
    color: #fff;
}

.gmbj-how-art img {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.35));
}

.gmbj-game-chrome {
    min-height: 720px;
    background: linear-gradient(180deg, #07182f, #071426);
}

.gmbj-mission-heading {
    display: flex;
    align-items: center;
    gap: 18px;
}

.gmbj-mission-heading > img {
    width: 86px;
    height: 106px;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35));
}

.gmbj-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 9px;
}

.gmbj-plan-summary,
.gmbj-live-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid rgba(214, 173, 69, 0.22);
    background: rgba(4, 16, 30, 0.86);
}

.gmbj-plan-summary div,
.gmbj-live-summary div {
    padding: 16px 18px;
    border-right: 1px solid rgba(214, 173, 69, 0.14);
    text-align: center;
}

.gmbj-plan-summary span,
.gmbj-live-summary span {
    display: block;
    color: rgba(238, 245, 242, 0.58);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gmbj-plan-summary strong,
.gmbj-live-summary strong {
    display: block;
    margin-top: 3px;
    color: var(--gmbj-gold-light);
    font-size: 1.28rem;
}

.gmbj-live-summary small {
    display: block;
    color: rgba(238, 245, 242, 0.52);
    font-size: 0.7rem;
}

.gmbj-dashboard {
    position: relative;
    min-height: 660px;
    overflow: hidden;
}

.gmbj-dashboard-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.92;
}

.gmbj-dashboard::after {
    position: absolute;
    inset: 0;
    content: "";
    background: rgba(2, 12, 24, 0.34);
    pointer-events: none;
}

.gmbj-dashboard-content {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 660px;
    grid-template-columns: 250px minmax(0, 1fr) 245px;
    gap: 18px;
    align-items: stretch;
    padding: 34px;
}

.gmbj-wallet-panel,
.gmbj-goal-panel,
.gmbj-budget-sidebar {
    padding: 22px;
    border: 1px solid rgba(214, 173, 69, 0.38);
    border-radius: 20px;
    background: rgba(4, 17, 31, 0.9);
    backdrop-filter: blur(8px);
}

.gmbj-wallet-panel h3,
.gmbj-goal-panel h3 {
    font-size: 1.32rem;
}

.gmbj-wallet-panel > p:not(.gmbj-panel-label),
.gmbj-goal-panel > p {
    color: var(--gmbj-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.gmbj-unassigned,
.gmbj-new-money {
    margin: 15px 0;
    color: var(--gmbj-gold-light);
    font-family: var(--gmb-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.gmbj-chip-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 18px 0;
}

.gmbj-money-chip {
    min-height: 48px;
    border: 2px solid rgba(214, 173, 69, 0.44);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #f8de7b, #c48e20 70%);
    color: #10213b;
    cursor: grab;
    font-weight: 900;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.26), 0 8px 16px rgba(0, 0, 0, 0.25);
}

.gmbj-money-chip.is-selected {
    outline: 3px solid #fff;
    outline-offset: 2px;
    transform: translateY(-3px);
}

.gmbj-money-chip.is-dragging {
    opacity: 0.5;
}

.gmbj-reset-plan {
    width: 100%;
}

.gmbj-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    align-content: center;
}

.gmbj-category-card {
    position: relative;
    display: grid;
    min-height: 265px;
    grid-template-rows: 116px 1fr;
    overflow: hidden;
    border: 1px solid rgba(214, 173, 69, 0.32);
    border-radius: 18px;
    background: rgba(7, 27, 47, 0.92);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.gmbj-category-card:hover,
.gmbj-category-card:focus-within,
.gmbj-category-card.is-dragover {
    transform: translateY(-3px);
    border-color: var(--gmbj-gold-light);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.gmbj-category-card.is-primary-goal {
    border-color: var(--gmbj-gold);
    box-shadow: inset 0 0 0 1px rgba(214, 173, 69, 0.18);
}

.gmbj-category-card > img {
    width: 100%;
    height: 126px;
    object-fit: contain;
    object-position: center top;
    margin-top: 5px;
}

.gmbj-category-copy {
    position: relative;
    z-index: 2;
    margin-top: -6px;
    padding: 10px 13px 14px;
    text-align: center;
}

.gmbj-category-copy > span {
    color: rgba(238, 245, 242, 0.52);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gmbj-category-copy h3 {
    margin: 2px 0 3px;
    font-size: 1rem;
}

.gmbj-category-copy > strong {
    display: block;
    color: var(--gmbj-gold-light);
    font-size: 1.28rem;
}

.gmbj-category-copy > p {
    min-height: 35px;
    margin: 4px 0 10px;
    color: rgba(238, 245, 242, 0.6);
    font-size: 0.72rem;
    line-height: 1.28;
}

.gmbj-category-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
}

.gmbj-category-actions button,
.gmbj-allocation-card button {
    min-height: 36px;
    border: 1px solid rgba(214, 173, 69, 0.44);
    border-radius: 999px;
    background: rgba(214, 173, 69, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 800;
}

.gmbj-category-actions button:hover,
.gmbj-category-actions button:focus-visible,
.gmbj-allocation-card button:hover,
.gmbj-allocation-card button:focus-visible {
    background: var(--gmbj-gold);
    color: #07182f;
}

.gmbj-category-actions button:disabled,
.gmbj-allocation-card button:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.gmbj-goal-panel {
    text-align: center;
}

.gmbj-goal-panel > img {
    width: 100%;
    max-height: 310px;
    object-fit: contain;
    filter: drop-shadow(0 16px 20px rgba(0, 0, 0, 0.4));
}

.gmbj-goal-meter {
    height: 12px;
    overflow: hidden;
    border: 1px solid rgba(214, 173, 69, 0.36);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.gmbj-goal-meter span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--gmbj-green-bright), var(--gmbj-gold));
    transition: width 240ms ease;
}

.gmbj-plan-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 24px 34px;
    border-top: 1px solid rgba(214, 173, 69, 0.22);
    background: #061427;
}

.gmbj-plan-status {
    margin-bottom: 4px;
    color: #fff;
    font-weight: 800;
}

.gmbj-plan-tip {
    color: var(--gmbj-muted);
    font-size: 0.9rem;
}

.gmbj-plan-footer button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
}

.gmbj-map-wrap {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border-bottom: 1px solid rgba(214, 173, 69, 0.2);
    background: #07182f;
}

.gmbj-map-wrap > img {
    width: 100%;
    min-height: 230px;
    object-fit: cover;
}

.gmbj-map-points {
    position: absolute;
    inset: 0;
}

.gmbj-map-point {
    position: absolute;
    top: 54%;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    transform: translate(-50%, -50%);
    border: 2px solid var(--gmbj-gold);
    border-radius: 50%;
    background: #09213a;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 900;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.35);
}

.gmbj-map-point.is-complete {
    background: var(--gmbj-green-bright);
}

.gmbj-map-point.is-current {
    box-shadow: 0 0 0 6px rgba(214, 173, 69, 0.22), 0 0 28px rgba(214, 173, 69, 0.5);
}

.gmbj-map-marker {
    position: absolute;
    top: 31%;
    left: 8%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    transform: translateX(-50%);
    border: 3px solid #fff3b6;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 28%, #ffe98a, #c98f21 72%);
    color: #09213a;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 0 26px rgba(214, 173, 69, 0.7);
    transition: left 550ms ease;
}

.gmbj-event-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    padding: 30px;
    background: radial-gradient(circle at 35% 0%, rgba(18, 105, 88, 0.13), transparent 32%), #061427;
}

.gmbj-event-card {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 24px;
}

.gmbj-event-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gmbj-event-content {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 620px;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
    grid-template-areas:
        "label label"
        "image title"
        "image desc"
        "image choices"
        "image feedback";
    grid-template-rows: auto auto auto 1fr auto;
    gap: 8px 28px;
    align-content: center;
    padding: clamp(42px, 7vw, 74px);
}

.gmbj-event-content .gmbj-panel-label { grid-area: label; }
.gmbj-event-image { grid-area: image; width: 100%; max-height: 360px; object-fit: contain; align-self: center; filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.35)); }
.gmbj-event-content h3 { grid-area: title; margin-bottom: 4px; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.gmbj-event-content > p:not(.gmbj-panel-label):not(.gmbj-event-feedback) { grid-area: desc; color: var(--gmbj-muted); }
.gmbj-choice-list { grid-area: choices; display: grid; gap: 10px; align-content: start; margin-top: 8px; }
.gmbj-event-feedback { grid-area: feedback; min-height: 30px; margin-top: 8px; color: var(--gmbj-gold-light); font-weight: 800; }
.gmbj-event-feedback.is-error { color: #ff9a91; }

.gmbj-choice-button {
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 13px 15px;
    border: 1px solid rgba(214, 173, 69, 0.4);
    border-radius: 13px;
    background: rgba(4, 18, 32, 0.82);
    color: #fff;
    cursor: pointer;
    text-align: left;
}

.gmbj-choice-button:hover,
.gmbj-choice-button:focus-visible {
    border-color: var(--gmbj-gold-light);
    background: rgba(214, 173, 69, 0.13);
    transform: translateX(3px);
}

.gmbj-choice-button strong {
    color: #fff;
    font-size: 1rem;
}

.gmbj-choice-button span {
    color: var(--gmbj-muted);
    font-size: 0.86rem;
}

.gmbj-choice-button small {
    color: #ffb0a8;
    font-size: 0.76rem;
}

.gmbj-choice-button:disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.gmbj-budget-sidebar {
    align-self: stretch;
}

.gmbj-budget-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(214, 173, 69, 0.2);
}

.gmbj-budget-title span {
    color: #fff;
    font-weight: 800;
}

.gmbj-budget-title strong {
    color: var(--gmbj-gold-light);
}

.gmbj-budget-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.gmbj-budget-row {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 9px;
    align-items: center;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.gmbj-budget-row img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.gmbj-budget-row span {
    color: rgba(238, 245, 242, 0.78);
    font-size: 0.83rem;
}

.gmbj-budget-row strong {
    color: #fff;
}

.gmbj-journey-note {
    display: grid;
    gap: 4px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(26, 139, 118, 0.35);
    border-radius: 13px;
    background: rgba(26, 139, 118, 0.1);
}

.gmbj-journey-note strong { color: var(--gmbj-gold-light); }
.gmbj-journey-note span { color: var(--gmbj-muted); font-size: 0.82rem; }

.gmbj-overlay-panel {
    display: flex;
    min-height: 720px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background:
        radial-gradient(circle at 50% 35%, rgba(26, 139, 118, 0.22), transparent 28%),
        linear-gradient(135deg, #07182f, #0a2b43);
    text-align: center;
}

.gmbj-overlay-panel > p:not(.gmbj-kicker):not(.gmbj-event-feedback) {
    max-width: 700px;
    color: var(--gmbj-muted);
}

.gmbj-allocation-categories {
    display: grid;
    width: min(100%, 940px);
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
    margin: 20px 0;
}

.gmbj-allocation-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 8px 12px;
    align-items: center;
    padding: 13px;
    border: 1px solid rgba(214, 173, 69, 0.3);
    border-radius: 16px;
    background: rgba(4, 18, 32, 0.78);
    text-align: left;
}

.gmbj-allocation-card img {
    grid-row: 1 / 3;
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.gmbj-allocation-card strong { color: #fff; }
.gmbj-allocation-card > span { color: var(--gmbj-gold-light); font-weight: 900; }
.gmbj-allocation-card > div { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }

.gmbj-transfer-panel {
    align-items: stretch;
    text-align: left;
}

.gmbj-transfer-panel > h2,
.gmbj-transfer-panel > p,
.gmbj-transfer-panel > .gmbj-kicker,
.gmbj-transfer-panel > .gmbj-welcome-actions,
.gmbj-transfer-panel > .gmbj-event-feedback {
    width: min(100%, 880px);
    margin-right: auto;
    margin-left: auto;
}

.gmbj-transfer-controls {
    display: grid;
    width: min(100%, 880px);
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 24px auto 8px;
}

.gmbj-transfer-controls label {
    display: grid;
    gap: 6px;
    color: var(--gmbj-gold-light);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gmbj-transfer-controls select {
    min-height: 48px;
    padding: 9px 12px;
    border: 1px solid rgba(214, 173, 69, 0.42);
    border-radius: 10px;
    background: #07182f;
    color: #fff;
}

.gmbj-transfer-budget {
    display: grid;
    width: min(100%, 880px);
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 18px auto;
}

.gmbj-transfer-budget span {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gmbj-gold-light);
}

.gmbj-transfer-budget b {
    color: #fff;
}

.gmbj-result-panel {
    position: relative;
    min-height: 720px;
    overflow: hidden;
}

.gmbj-result-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gmbj-result-panel::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, rgba(3, 15, 29, 0.96), rgba(3, 15, 29, 0.72) 68%, rgba(3, 15, 29, 0.25));
}

.gmbj-result-copy {
    position: relative;
    z-index: 2;
    width: min(100%, 980px);
    padding: 58px;
}

.gmbj-result-summary {
    max-width: 760px;
    color: var(--gmbj-muted);
    font-size: 1.08rem;
}

.gmbj-score-ring {
    display: inline-grid;
    width: 118px;
    height: 118px;
    place-content: center;
    margin: 18px 0;
    border: 6px double var(--gmbj-gold);
    border-radius: 50%;
    background: rgba(4, 18, 32, 0.72);
    text-align: center;
    box-shadow: 0 0 36px rgba(214, 173, 69, 0.2);
}

.gmbj-score-ring strong {
    display: block;
    color: var(--gmbj-gold-light);
    font-size: 2.35rem;
    line-height: 1;
}

.gmbj-score-ring span {
    color: var(--gmbj-muted);
    font-size: 0.75rem;
}

.gmbj-result-stats {
    display: grid;
    max-width: 820px;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.gmbj-result-stats div {
    padding: 12px;
    border: 1px solid rgba(214, 173, 69, 0.26);
    border-radius: 12px;
    background: rgba(4, 18, 32, 0.72);
}

.gmbj-result-stats span {
    display: block;
    color: rgba(238, 245, 242, 0.56);
    font-size: 0.68rem;
    text-transform: uppercase;
}

.gmbj-result-stats strong {
    color: #fff;
}

.gmbj-badge-strip {
    display: flex;
    max-width: 900px;
    flex-wrap: wrap;
    gap: 14px;
    margin: 22px 0;
}

.gmbj-badge-strip figure {
    width: 118px;
    margin: 0;
    text-align: center;
}

.gmbj-badge-strip img {
    width: 104px;
    height: 104px;
    margin: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35));
}

.gmbj-badge-strip figcaption {
    margin-top: 5px;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
}

.gmbj-dialog-backdrop {
    position: fixed;
    z-index: 99999;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(2, 10, 20, 0.78);
}

.gmbj-dialog-backdrop[hidden] {
    display: none;
}

.gmbj-help-dialog {
    position: relative;
    width: min(100%, 580px);
    padding: 36px;
    border: 1px solid rgba(214, 173, 69, 0.5);
    border-radius: 20px;
    background: #081b31;
    box-shadow: var(--gmbj-shadow);
}

.gmbj-help-dialog p:last-child { color: var(--gmbj-muted); }
.gmbj-dialog-close { position: absolute; top: 10px; right: 12px; width: 42px; height: 42px; border: 0; background: transparent; color: #fff; cursor: pointer; font-size: 2rem; }

.gmbj-noscript {
    padding: 50px;
    text-align: center;
}

.gmbj-noscript p { color: var(--gmbj-muted); }
.gmbj-noscript a { color: var(--gmbj-gold-light) !important; text-decoration: underline !important; }

.gmbj-game button:focus-visible,
.gmbj-game select:focus-visible {
    outline: 3px solid var(--gmbj-gold-light);
    outline-offset: 3px;
}

@media (max-width: 1080px) {
    .gmbj-mission-grid { grid-template-columns: repeat(2, 1fr); }
    .gmbj-dashboard-content { grid-template-columns: 220px 1fr; }
    .gmbj-goal-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; text-align: left; }
    .gmbj-goal-panel > img { max-height: 200px; grid-row: 1 / 5; }
    .gmbj-event-layout { grid-template-columns: 1fr; }
    .gmbj-budget-sidebar { display: grid; grid-template-columns: 220px 1fr 240px; gap: 16px; align-items: start; }
    .gmbj-budget-list { grid-template-columns: repeat(3, 1fr); margin-top: 0; }
    .gmbj-journey-note { margin-top: 0; }
}

@media (max-width: 820px) {
    .gmbj-page-shell { padding-top: 14px; }
    .gmbj-topbar { flex-wrap: wrap; align-items: flex-start; }
    .gmbj-topbar span { order: -1; width: 100%; }
    .gmbj-game { min-height: 680px; border-radius: 20px; }
    .gmbj-screen, .gmbj-welcome-copy, .gmbj-how-panel, .gmbj-game-chrome, .gmbj-overlay-panel, .gmbj-result-panel { min-height: 680px; }
    .gmbj-welcome-overlay { background: linear-gradient(180deg, rgba(3, 14, 29, 0.4), rgba(3, 14, 29, 0.97) 50%); }
    .gmbj-welcome-copy { justify-content: flex-end; max-width: none; padding: 46px 28px; }
    .gmbj-screen-header, .gmbj-game-header { display: block; padding: 28px 24px; }
    .gmbj-screen-header > button, .gmbj-header-actions { margin-top: 16px; }
    .gmbj-mission-grid { padding: 24px; }
    .gmbj-how-panel { grid-template-columns: 1fr; padding: 34px 26px; }
    .gmbj-how-art { order: -1; }
    .gmbj-how-art img { max-height: 280px; }
    .gmbj-plan-summary, .gmbj-live-summary { grid-template-columns: repeat(2, 1fr); }
    .gmbj-dashboard-content { grid-template-columns: 1fr; padding: 22px; }
    .gmbj-wallet-panel { display: grid; grid-template-columns: 1fr auto; gap: 8px 18px; align-items: center; }
    .gmbj-wallet-panel .gmbj-panel-label, .gmbj-wallet-panel h3, .gmbj-wallet-panel p, .gmbj-wallet-panel .gmbj-chip-row, .gmbj-wallet-panel .gmbj-reset-plan { grid-column: 1 / -1; }
    .gmbj-wallet-panel .gmbj-unassigned { grid-column: 2; grid-row: 1 / 3; }
    .gmbj-category-grid { grid-template-columns: repeat(2, 1fr); }
    .gmbj-plan-footer { display: block; padding: 22px; }
    .gmbj-plan-footer button { width: 100%; margin-top: 16px; }
    .gmbj-map-wrap { min-height: 190px; }
    .gmbj-map-wrap > img { min-height: 190px; }
    .gmbj-event-content { grid-template-columns: 1fr; grid-template-areas: "label" "image" "title" "desc" "choices" "feedback"; padding: 44px 38px; }
    .gmbj-event-image { max-height: 230px; }
    .gmbj-budget-sidebar { display: block; }
    .gmbj-budget-list { grid-template-columns: repeat(2, 1fr); }
    .gmbj-allocation-categories { grid-template-columns: repeat(2, 1fr); }
    .gmbj-transfer-controls, .gmbj-transfer-budget { grid-template-columns: 1fr; }
    .gmbj-result-copy { padding: 38px 28px; }
    .gmbj-result-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .gmbj-topbar { font-size: 0.66rem; }
    .gmbj-welcome-copy h1 { font-size: 3.35rem; }
    .gmbj-welcome-actions .gmb-button, .gmbj-result-actions .gmb-button { width: 100%; }
    .gmbj-mission-grid { grid-template-columns: 1fr; padding: 16px; }
    .gmbj-mission-card { min-height: 610px; }
    .gmbj-mission-card dl { grid-template-columns: 1fr; }
    .gmbj-mission-card dl div { display: flex; justify-content: space-between; align-items: center; }
    .gmbj-plan-summary div, .gmbj-live-summary div { padding: 12px 8px; }
    .gmbj-mission-heading { align-items: flex-start; }
    .gmbj-mission-heading > img { width: 64px; height: 82px; }
    .gmbj-category-grid { grid-template-columns: 1fr; }
    .gmbj-category-card { grid-template-columns: 120px 1fr; grid-template-rows: 1fr; min-height: 180px; }
    .gmbj-category-card > img { width: 125px; height: 145px; align-self: center; }
    .gmbj-category-copy { margin-top: 0; padding: 18px 12px 14px 0; text-align: left; }
    .gmbj-category-copy > p { min-height: 0; }
    .gmbj-goal-panel { grid-template-columns: 120px 1fr; }
    .gmbj-map-point { width: 26px; height: 26px; font-size: 0.54rem; }
    .gmbj-map-marker { width: 40px; height: 40px; }
    .gmbj-event-layout { padding: 16px; }
    .gmbj-event-card, .gmbj-event-content { min-height: 650px; }
    .gmbj-event-content { padding: 40px 28px; }
    .gmbj-budget-list { grid-template-columns: 1fr; }
    .gmbj-allocation-categories { grid-template-columns: 1fr; }
    .gmbj-overlay-panel { padding: 34px 20px; }
    .gmbj-result-stats { grid-template-columns: 1fr; }
    .gmbj-badge-strip figure { width: 94px; }
    .gmbj-badge-strip img { width: 84px; height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
    .gmbj-screen.is-active,
    .gmbj-map-marker,
    .gmbj-category-card,
    .gmbj-choice-button,
    .gmbj-goal-meter span {
        animation: none !important;
        transition: none !important;
    }
}

/* Keep all game headings readable over the dark game interface. */
body.gmbh-every-dollar-game-page .gmbj-game h1,
body.gmbh-every-dollar-game-page .gmbj-game h2,
body.gmbh-every-dollar-game-page .gmbj-game h3 {
    color: #fff;
}

/* v3.4.0 mobile event-card refinement: keep the illustrated card compact so the
   event title and choices always begin below it rather than over the artwork. */
@media (max-width: 560px) {
    body.gmbh-every-dollar-game-page .gmbj-event-card,
    body.gmbh-every-dollar-game-page .gmbj-event-content {
        min-height: 0;
    }

    body.gmbh-every-dollar-game-page .gmbj-event-content {
        grid-template-rows: auto 230px auto auto auto auto;
        row-gap: 14px;
        align-content: start;
        padding: 38px 24px 44px;
    }

    body.gmbh-every-dollar-game-page .gmbj-event-image {
        display: block;
        width: auto !important;
        max-width: 100%;
        height: 230px !important;
        max-height: 230px !important;
        margin: 0 auto;
        object-fit: contain;
        align-self: center;
        justify-self: center;
    }

    body.gmbh-every-dollar-game-page .gmbj-event-content h3 {
        position: relative;
        z-index: 3;
        margin: 4px 0 0;
        padding-top: 2px;
    }

    body.gmbh-every-dollar-game-page .gmbj-event-content > p:not(.gmbj-panel-label):not(.gmbj-event-feedback) {
        margin-top: 0;
    }
}

/* Headings receive programmatic focus when screens change for accessibility;
   suppress the browser's default rectangular outline on non-interactive headings. */
body.gmbh-every-dollar-game-page .gmbj-screen h1[tabindex="-1"]:focus,
body.gmbh-every-dollar-game-page .gmbj-screen h2[tabindex="-1"]:focus,
body.gmbh-every-dollar-game-page .gmbj-screen h3[tabindex="-1"]:focus {
    outline: none;
}
