:root {
    --gmbc-navy: #071426;
    --gmbc-navy-2: #0d2741;
    --gmbc-teal: #0f766e;
    --gmbc-teal-bright: #36d6c2;
    --gmbc-gold: #d3aa35;
    --gmbc-cream: #faf6ee;
    --gmbc-parchment: #e9d7ad;
    --gmbc-coral: #e56b5d;
    --gmbc-green: #69c785;
    --gmbc-line: rgba(211, 170, 53, 0.42);
}

.gmbh-money-control-page {
    background: #071426;
}

.gmbc-main {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 5%, rgba(36, 142, 132, 0.28), transparent 30%),
        linear-gradient(180deg, #071426, #0b1f35 45%, #071426);
    color: #fff;
}

.gmbc-page-shell {
    padding: clamp(24px, 4vw, 56px) 0 72px;
}

.gmbc-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.gmbc-topbar a {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.gmbc-topbar a:hover,
.gmbc-topbar a:focus-visible {
    color: #f1cb62;
}

.gmbc-game {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    border: 1px solid var(--gmbc-line);
    border-radius: 28px;
    background: #071426;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42), inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

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

.gmbc-screen.is-active {
    display: block;
}

.gmbc-kicker,
.gmbc-panel-label {
    margin: 0 0 8px;
    color: #f1cb62;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.gmbc-gold-button {
    border-color: var(--gmbc-gold) !important;
    background: var(--gmbc-gold) !important;
    color: #10203a !important;
}

.gmbc-gold-button:hover,
.gmbc-gold-button:focus-visible {
    background: #ebc85d !important;
}

.gmbc-action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Welcome */
.gmbc-screen[data-screen="welcome"] {
    position: relative;
    min-height: clamp(720px, 74vw, 900px);
    isolation: isolate;
}

.gmbc-welcome-bg,
.gmbc-welcome-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gmbc-welcome-bg {
    z-index: -3;
    object-fit: cover;
    object-position: center;
}

.gmbc-welcome-shade {
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(3, 13, 26, 0.95) 0%, rgba(5, 20, 36, 0.82) 42%, rgba(5, 20, 36, 0.25) 72%, rgba(5, 20, 36, 0.55) 100%),
        linear-gradient(0deg, rgba(3, 13, 26, 0.65), transparent 45%);
}

.gmbc-welcome-copy {
    display: flex;
    min-height: clamp(720px, 74vw, 900px);
    width: min(640px, 72%);
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 7vw, 100px);
}

.gmbc-welcome-copy h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(3rem, 7.6vw, 6.4rem);
    line-height: 0.98;
    text-shadow: 0 8px 26px rgba(0, 0, 0, 0.5);
}

.gmbc-welcome-copy > p:not(.gmbc-kicker):not(.gmbc-privacy-note) {
    max-width: 620px;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    line-height: 1.65;
}

.gmbc-privacy-note {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.9rem;
}

/* Shared secondary screens */
.gmbc-screen[data-screen="missions"],
.gmbc-screen[data-screen="how"] {
    padding: clamp(28px, 5vw, 66px);
    background:
        radial-gradient(circle at 85% 10%, rgba(44, 176, 160, 0.16), transparent 26%),
        #071426;
}

.gmbc-screen-header,
.gmbc-play-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.gmbc-screen-header h2,
.gmbc-play-header h2,
.gmbc-how-copy h2,
.gmbc-result-copy h2,
.gmbc-event-card h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(2rem, 4.8vw, 4rem);
}

.gmbc-screen-header p:last-child,
.gmbc-play-header p:last-child {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
}

.gmbc-small-button,
.gmbc-mode-choice button {
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.gmbc-small-button:hover,
.gmbc-small-button:focus-visible,
.gmbc-mode-choice button:hover,
.gmbc-mode-choice button:focus-visible,
.gmbc-mode-choice button.is-selected {
    border-color: var(--gmbc-gold);
    background: var(--gmbc-gold);
    color: #0a1b31;
}

.gmbc-mode-choice {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 28px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.gmbc-mode-choice span {
    font-weight: 800;
}

.gmbc-mode-choice small {
    flex: 1 1 260px;
    color: rgba(255, 255, 255, 0.64);
}

.gmbc-mission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gmbc-mission-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 390px;
    flex-direction: column;
    overflow: hidden;
    padding: 24px;
    border: 1px solid rgba(211, 170, 53, 0.28);
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(19, 55, 85, 0.96), rgba(7, 20, 38, 0.98));
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.gmbc-mission-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0, rgba(54, 214, 194, 0.18), transparent 34%);
    pointer-events: none;
}

.gmbc-mission-card img {
    position: relative;
    width: 112px;
    height: 140px;
    object-fit: contain;
    align-self: center;
    margin-bottom: 6px;
}

.gmbc-mission-card h3 {
    position: relative;
    margin: 4px 0 8px;
    color: #fff;
    font-size: 1.45rem;
}

.gmbc-mission-card p {
    position: relative;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.72);
}

.gmbc-mission-meta {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: auto 0 18px;
}

.gmbc-mission-meta span {
    padding: 9px 7px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    text-align: center;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
}

.gmbc-mission-meta strong {
    display: block;
    margin-top: 2px;
    color: #fff;
    font-size: 0.95rem;
}

.gmbc-mission-card .gmb-button {
    position: relative;
    width: 100%;
}

/* How-to */
.gmbc-how-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: clamp(34px, 6vw, 76px);
    align-items: center;
    min-height: 600px;
}

.gmbc-how-copy ol {
    margin: 24px 0 30px;
    padding-left: 1.35rem;
    color: rgba(255, 255, 255, 0.78);
}

.gmbc-how-copy li + li {
    margin-top: 14px;
}

.gmbc-how-copy strong {
    color: #fff;
}

.gmbc-how-art {
    position: relative;
    min-height: 500px;
}

.gmbc-how-art img:first-child {
    position: absolute;
    z-index: 2;
    right: 7%;
    bottom: 0;
    width: 58%;
    filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.38));
}

.gmbc-how-art img:last-child {
    position: absolute;
    top: 9%;
    left: 0;
    width: 100%;
    opacity: 0.78;
}

/* Play screen */
.gmbc-screen[data-screen="playing"] {
    padding: 24px;
    background: #071426;
}

.gmbc-play-header {
    margin-bottom: 18px;
}

.gmbc-play-header h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.8rem);
}

.gmbc-header-actions {
    display: flex;
    gap: 8px;
}

.gmbc-hud {
    display: grid;
    grid-template-columns: 0.7fr 0.7fr 0.9fr 1.15fr 1.8fr;
    gap: 8px;
    margin-bottom: 14px;
}

.gmbc-hud > div {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(211, 170, 53, 0.25);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.055);
}

.gmbc-hud span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gmbc-hud strong {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: #fff;
    font-size: 1.02rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gmbc-hud b {
    font-weight: 800;
}

.gmbc-control-room {
    position: relative;
    min-height: 780px;
    overflow: hidden;
    border: 1px solid rgba(211, 170, 53, 0.32);
    border-radius: 22px;
    background: #06101f;
    isolation: isolate;
}

.gmbc-room-bg,
.gmbc-route-overlay,
.gmbc-room-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.gmbc-room-bg {
    z-index: -4;
    object-fit: cover;
}

.gmbc-route-overlay {
    z-index: -2;
    object-fit: contain;
    opacity: 0.72;
    filter: drop-shadow(0 0 12px rgba(54, 214, 194, 0.35));
}

.gmbc-room-shade {
    z-index: -3;
    background: rgba(1, 9, 18, 0.38);
}

.gmbc-intake-panel,
.gmbc-timeline-panel,
.gmbc-power-panel {
    position: absolute;
    z-index: 3;
    border: 1px solid rgba(211, 170, 53, 0.34);
    border-radius: 16px;
    background: rgba(5, 20, 36, 0.88);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(6px);
}

.gmbc-intake-panel {
    top: 18px;
    left: 18px;
    width: 260px;
    min-height: 310px;
    padding: 16px;
}

.gmbc-intake-panel > img {
    display: block;
    width: 132px;
    height: 150px;
    object-fit: contain;
    margin: -8px auto -4px;
}

.gmbc-intake-copy {
    text-align: center;
}

.gmbc-intake-copy h3,
.gmbc-timeline-panel h3,
.gmbc-power-panel h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.05rem;
}

.gmbc-intake-copy p:last-child {
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.8rem;
}

.gmbc-token-queue {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.gmbc-token {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 3px solid #f7d66d;
    border-radius: 50%;
    background: radial-gradient(circle at 36% 28%, #fff0a6, #d5a62a 52%, #7e5510 100%);
    box-shadow: 0 0 0 2px #7a5614, 0 5px 12px rgba(0, 0, 0, 0.38);
    color: #17304b;
    font-size: 0.95rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gmbc-token:hover,
.gmbc-token:focus-visible,
.gmbc-token.is-selected {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 0 0 3px #fff, 0 0 24px rgba(54, 214, 194, 0.9);
}

.gmbc-token.is-new {
    animation: gmbcTokenIn 0.45s ease both;
}

@keyframes gmbcTokenIn {
    from { opacity: 0; transform: translateY(-26px) scale(0.65); }
}

.gmbc-stations {
    position: absolute;
    z-index: 2;
    right: 292px;
    bottom: 34px;
    left: 292px;
    display: grid;
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    gap: 12px;
}

.gmbc-station {
    position: relative;
    display: grid;
    min-height: 176px;
    grid-template-columns: 86px 1fr;
    align-items: center;
    overflow: hidden;
    padding: 15px;
    border: 1px solid rgba(211, 170, 53, 0.36);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(15, 44, 67, 0.94), rgba(4, 18, 33, 0.96));
    color: #fff;
    text-align: left;
    cursor: pointer;
}

.gmbc-station:hover,
.gmbc-station:focus-visible,
.gmbc-station.is-priority {
    border-color: #50e3cf;
    box-shadow: 0 0 22px rgba(54, 214, 194, 0.32), inset 0 0 24px rgba(54, 214, 194, 0.08);
}

.gmbc-station-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.17;
    pointer-events: none;
}

.gmbc-station-icon {
    position: relative;
    z-index: 1;
    width: 78px;
    height: 78px;
    object-fit: contain;
}

.gmbc-station-copy {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.gmbc-station-copy small {
    color: #f1cb62;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gmbc-station-copy strong {
    display: block;
    margin: 2px 0 5px;
    font-size: 1.05rem;
}

.gmbc-station-balance {
    display: block;
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
}

.gmbc-station-hotkey {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 7px;
    background: rgba(0, 0, 0, 0.26);
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
}

.gmbc-timeline-panel {
    top: 18px;
    right: 18px;
    width: 255px;
    min-height: 310px;
    padding: 17px;
}

.gmbc-timeline-list {
    display: grid;
    gap: 8px;
}

.gmbc-timeline-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.055);
}

.gmbc-timeline-item img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.gmbc-timeline-item span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.7rem;
}

.gmbc-timeline-item strong {
    display: block;
    color: #fff;
    font-size: 0.82rem;
}

.gmbc-timeline-item b {
    color: #f1cb62;
    font-size: 0.78rem;
}

.gmbc-timeline-item.is-paid {
    opacity: 0.45;
}

.gmbc-timeline-item.is-next {
    outline: 1px solid #50e3cf;
}

.gmbc-power-panel {
    right: 18px;
    bottom: 34px;
    width: 255px;
    padding: 16px;
}

.gmbc-power-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.gmbc-power {
    position: relative;
    min-height: 91px;
    padding: 7px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
    color: #fff;
    font: inherit;
    cursor: pointer;
}

.gmbc-power img {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    margin: 0 auto;
}

.gmbc-power span {
    display: block;
    overflow: hidden;
    font-size: 0.68rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gmbc-power:hover,
.gmbc-power:focus-visible {
    border-color: #f1cb62;
    background: rgba(211, 170, 53, 0.12);
}

.gmbc-power:disabled,
.gmbc-power.is-used {
    opacity: 0.34;
    cursor: not-allowed;
    filter: grayscale(0.8);
}

.gmbc-status-feed {
    position: absolute;
    z-index: 4;
    right: 292px;
    bottom: 8px;
    left: 292px;
    min-height: 24px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
    text-align: center;
}

.gmbc-combo {
    position: absolute;
    z-index: 7;
    top: 44%;
    left: 50%;
    color: #f8d96f;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-shadow: 0 0 20px rgba(211, 170, 53, 0.8);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.gmbc-combo.is-showing {
    animation: gmbcCombo 0.8s ease both;
}

@keyframes gmbcCombo {
    0% { opacity: 0; transform: translate(-50%, -30%) scale(0.7); }
    35% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    100% { opacity: 0; transform: translate(-50%, -70%) scale(1); }
}

.gmbc-flying-token {
    position: fixed;
    z-index: 99999;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 3px solid #f7d66d;
    border-radius: 50%;
    background: #d5a62a;
    color: #17304b;
    font-weight: 900;
    pointer-events: none;
    transition: transform 0.52s cubic-bezier(.2,.8,.2,1), opacity 0.52s ease;
}

/* Event modal */
.gmbc-event-modal,
.gmbc-pause-overlay {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
}

.gmbc-event-modal[hidden],
.gmbc-pause-overlay[hidden] {
    display: none;
}

.gmbc-event-backdrop,
.gmbc-pause-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 16, 0.84);
    backdrop-filter: blur(6px);
}

.gmbc-event-card {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(900px, 96vw);
    grid-template-columns: minmax(220px, 0.42fr) minmax(0, 0.58fr);
    gap: 26px;
    align-items: center;
    padding: clamp(22px, 4vw, 44px);
    border: 1px solid var(--gmbc-line);
    border-radius: 24px;
    background: linear-gradient(145deg, #102f4c, #071426);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58);
}

.gmbc-event-card > img {
    width: 100%;
    max-height: 430px;
    object-fit: contain;
}

.gmbc-event-card p:not(.gmbc-kicker) {
    color: rgba(255, 255, 255, 0.78);
}

.gmbc-event-choices {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.gmbc-event-choices button {
    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    font: inherit;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
}

.gmbc-event-choices button:hover,
.gmbc-event-choices button:focus-visible {
    border-color: #f1cb62;
    background: rgba(211, 170, 53, 0.15);
}

.gmbc-event-feedback {
    min-height: 24px;
    margin: 13px 0 0;
    color: #f1cb62 !important;
    font-weight: 800;
}

.gmbc-pause-overlay > div {
    position: relative;
    z-index: 1;
    width: min(600px, 94vw);
    padding: 38px;
    border: 1px solid var(--gmbc-line);
    border-radius: 22px;
    background: #0b233a;
    text-align: center;
}

.gmbc-pause-overlay h2 {
    color: #fff;
}

/* Results */
.gmbc-screen[data-screen="result"] {
    padding: clamp(24px, 5vw, 64px);
    background: #071426;
}

.gmbc-result-card {
    position: relative;
    min-height: 650px;
    overflow: hidden;
    border: 1px solid var(--gmbc-line);
    border-radius: 24px;
    isolation: isolate;
}

.gmbc-result-art,
.gmbc-result-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gmbc-result-art {
    z-index: -3;
    object-fit: cover;
}

.gmbc-result-shade {
    z-index: -2;
    background: linear-gradient(90deg, rgba(3, 13, 26, 0.96), rgba(3, 13, 26, 0.78) 58%, rgba(3, 13, 26, 0.38));
}

.gmbc-result-copy {
    width: min(720px, 76%);
    padding: clamp(34px, 6vw, 76px);
}

.gmbc-result-copy > p:not(.gmbc-kicker) {
    color: rgba(255, 255, 255, 0.78);
    font-size: 1.08rem;
}

.gmbc-result-score {
    display: inline-flex;
    flex-direction: column;
    margin: 16px 0 22px;
    padding: 14px 22px;
    border: 1px solid rgba(211, 170, 53, 0.38);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
}

.gmbc-result-score span,
.gmbc-result-score small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gmbc-result-score strong {
    color: #f1cb62;
    font-size: 2.3rem;
}

.gmbc-result-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 22px;
}

.gmbc-result-stats div {
    padding: 11px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
}

.gmbc-result-stats span {
    display: block;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.68rem;
    text-transform: uppercase;
}

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

.gmbc-result-badges {
    display: flex;
    min-height: 90px;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.gmbc-result-badge {
    width: 84px;
    text-align: center;
}

.gmbc-result-badge img {
    display: block;
    width: 74px;
    height: 74px;
    object-fit: contain;
    margin: 0 auto 4px;
}

.gmbc-result-badge span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.7rem;
    font-weight: 700;
}

.gmbc-noscript {
    margin: 20px 0 0;
    padding: 16px;
    border: 1px solid #d3aa35;
    background: #fff8df;
    color: #17233a;
}

@media (max-width: 1180px) {
    .gmbc-mission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gmbc-control-room { min-height: 1040px; }
    .gmbc-intake-panel { width: calc(50% - 28px); }
    .gmbc-timeline-panel { width: calc(50% - 28px); }
    .gmbc-stations { top: 348px; right: 18px; bottom: auto; left: 18px; }
    .gmbc-power-panel { right: 18px; bottom: 22px; left: 18px; width: auto; }
    .gmbc-power-grid { grid-template-columns: repeat(5, 1fr); }
    .gmbc-status-feed { right: 18px; bottom: 154px; left: 18px; }
}

@media (max-width: 820px) {
    .gmbc-topbar { align-items: flex-start; flex-direction: column; }
    .gmbc-topbar span { order: -1; }
    .gmbc-game, .gmbc-screen { min-height: 620px; border-radius: 18px; }
    .gmbc-welcome-copy { width: 100%; min-height: 720px; justify-content: flex-end; padding: 44px 28px; }
    .gmbc-welcome-shade { background: linear-gradient(0deg, rgba(3, 13, 26, 0.98), rgba(3, 13, 26, 0.48) 75%, rgba(3, 13, 26, 0.28)); }
    .gmbc-screen[data-screen="missions"], .gmbc-screen[data-screen="how"] { padding: 28px 20px; }
    .gmbc-screen-header, .gmbc-play-header { flex-direction: column; }
    .gmbc-mission-grid { grid-template-columns: 1fr; }
    .gmbc-how-grid { grid-template-columns: 1fr; }
    .gmbc-how-art { min-height: 320px; }
    .gmbc-screen[data-screen="playing"] { padding: 14px; }
    .gmbc-hud { grid-template-columns: repeat(2, 1fr); }
    .gmbc-hud > div:last-child { grid-column: 1 / -1; }
    .gmbc-control-room { min-height: 1290px; }
    .gmbc-intake-panel, .gmbc-timeline-panel { position: absolute; top: 14px; width: calc(50% - 21px); min-height: 318px; }
    .gmbc-intake-panel { left: 14px; }
    .gmbc-timeline-panel { right: 14px; }
    .gmbc-stations { top: 355px; right: 14px; left: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .gmbc-station { min-height: 178px; grid-template-columns: 70px 1fr; padding: 12px; }
    .gmbc-station-icon { width: 64px; height: 64px; }
    .gmbc-power-panel { right: 14px; bottom: 28px; left: 14px; }
    .gmbc-power-grid { grid-template-columns: repeat(5, 1fr); }
    .gmbc-status-feed { right: 14px; bottom: 160px; left: 14px; }
    .gmbc-event-card { grid-template-columns: 1fr; max-height: 92vh; overflow-y: auto; }
    .gmbc-event-card > img { max-height: 220px; }
    .gmbc-result-copy { width: 100%; }
    .gmbc-result-shade { background: rgba(3, 13, 26, 0.88); }
    .gmbc-result-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .gmbc-page-shell { padding-top: 12px; }
    .gmbc-welcome-copy h1 { font-size: 3rem; }
    .gmbc-action-row { align-items: stretch; flex-direction: column; }
    .gmbc-action-row .gmb-button, .gmbc-action-row .gmb-text-link { width: 100%; text-align: center; }
    .gmbc-mode-choice small { flex-basis: 100%; }
    .gmbc-mission-meta { grid-template-columns: 1fr; }
    .gmbc-control-room { min-height: 1720px; }
    .gmbc-intake-panel, .gmbc-timeline-panel { position: absolute; right: 12px; left: 12px; width: auto; }
    .gmbc-intake-panel { top: 12px; min-height: 286px; }
    .gmbc-timeline-panel { top: 310px; min-height: 280px; }
    .gmbc-intake-panel > img { width: 105px; height: 120px; }
    .gmbc-stations { top: 606px; right: 12px; left: 12px; grid-template-columns: 1fr; }
    .gmbc-station { min-height: 132px; grid-template-columns: 82px 1fr; }
    .gmbc-power-panel { right: 12px; bottom: 46px; left: 12px; }
    .gmbc-power-grid { grid-template-columns: repeat(3, 1fr); }
    .gmbc-status-feed { right: 12px; bottom: 238px; left: 12px; }
    .gmbc-event-modal { padding: 10px; }
    .gmbc-event-card { padding: 20px; }
    .gmbc-result-copy { padding: 28px 20px; }
    .gmbc-result-badges { justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    .gmbc-token,
    .gmbc-combo,
    .gmbc-flying-token {
        animation: none !important;
        transition: none !important;
    }
}

/* Shared site heading and image rules use body-level specificity. Keep the arcade UI legible. */
body.gmbh-money-control-page .gmbc-game h1,
body.gmbh-money-control-page .gmbc-game h2,
body.gmbh-money-control-page .gmbc-game h3 {
    color: #fff;
}

body.gmbh-money-control-page .gmbc-welcome-bg,
body.gmbh-money-control-page .gmbc-room-bg,
body.gmbh-money-control-page .gmbc-route-overlay,
body.gmbh-money-control-page .gmbc-result-art {
    width: 100%;
    max-width: none;
    height: 100%;
}

@media (max-width: 560px) {
    .gmbc-control-room {
        min-height: 1980px;
    }

    .gmbc-status-feed {
        bottom: 278px;
    }
}
@media (max-width: 560px) {
    .gmbc-status-feed {
        bottom: 325px;
    }
}
