/* Shared Numberland destination buttons. */
.numberland-destinations { display:flex; flex-direction:column; gap:.5rem; margin:1.2rem 0; }
.numberland-destinations a { display:block; padding:.5rem .8rem; border:1px solid #b4a084; border-radius:7px; background:#fffdf1; color:#24594d; text-decoration:none; font:600 .95rem/1.4 system-ui,sans-serif; }
.numberland-destinations a[aria-current="page"] { background:#285c4f; color:#fff; border-color:#285c4f; }
.numberland-destinations a:hover { background:#e8eddc; color:#24594d; }
.numberland-destinations a[aria-current="page"]:hover { background:#174336; color:#fff; }
.numberland-destinations a:focus-visible { outline:3px solid #b34c2e; outline-offset:3px; }

/* Give Binary Boulevard's regional-map label room on one line. */
@media(min-width:1101px){body[data-place=binary-boulevard] main.scene{grid-template-columns:290px minmax(0,1fr) 340px}}
@media(min-width:721px) and (max-width:1100px){body[data-place=binary-boulevard] main.scene{grid-template-columns:290px minmax(0,1fr)}}

/* Binary result sits beneath the indicators inside the painted scene. */
body[data-place=binary-boulevard] .boulevard-stage{aspect-ratio:auto;background:url('binary-boulevard-painted.png') center bottom/100% auto no-repeat;padding-bottom:4rem}body[data-place=binary-boulevard] .boulevard-stage>img{height:auto;aspect-ratio:3/2}body[data-place=binary-boulevard] .binary-columns{bottom:calc(5% + 4rem)}body[data-place=binary-boulevard] #binary-readout{position:absolute;left:1%;right:1%;bottom:.7rem;grid-column:auto;grid-row:auto;width:auto;margin:0;padding:.45rem .65rem;background:#fff8e9cc;border:0;border-radius:4px;color:#302b25;font-size:clamp(.75rem,1.2vw,1rem);line-height:1.35}body[data-place=binary-boulevard] .binary-house .bit,body[data-place=binary-boulevard] .binary-house .state{background:#fff8e9cc}@media(max-width:720px){body[data-place=binary-boulevard] .boulevard-stage{padding-bottom:4.5rem}body[data-place=binary-boulevard] .binary-columns{bottom:calc(5% + 4.5rem)}}

body[data-place=binary-boulevard] .binary-columns{top:calc(25% - 1rem);bottom:calc(5% + 3.8rem)}@media(max-width:720px){body[data-place=binary-boulevard] .binary-columns{top:calc(25% - 1.125rem);bottom:calc(5% + 4.275rem)}}

/* Binary challenge actions have equal columns and equal height. */
body[data-place=binary-boulevard] .boulevard-controls .controls:has(#binary-new){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:.7rem}body[data-place=binary-boulevard] .boulevard-controls .controls:has(#binary-new) button{width:100%;height:100%;min-height:74px;margin:0;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1.35}

/* Keep the original scene size, with the result on its lower paving. */
body[data-place=binary-boulevard] .boulevard-stage{aspect-ratio:3/2;padding-bottom:0;background:none}body[data-place=binary-boulevard] .boulevard-stage>img{height:100%;aspect-ratio:auto}body[data-place=binary-boulevard] .binary-columns{top:25%;bottom:5%}body[data-place=binary-boulevard] #binary-readout{bottom:1.4%;padding:.35rem .55rem;white-space:nowrap;font-size:clamp(.65rem,2.4cqw,1.4rem);line-height:1.2}body[data-place=binary-boulevard] .binary-house .state{top:87%}

@media(max-width:720px){body[data-place=binary-boulevard] .binary-house .state{top:83%}}

/* Numberland: green for current location, pale for navigation, amber for actions. */
body[data-place] :is(.numberland-destinations a,.route a,.route-links a,.exit-links a,a.journey-link,.mode-buttons button,.zero-screen-buttons button){background:#fffdf1!important;color:#24594d!important;border:1px solid #b4a084!important;border-radius:7px;box-shadow:none!important;text-decoration:none}
body[data-place] :is(.numberland-destinations a,.route a,.route-links a,.exit-links a,a.journey-link){display:inline-block;padding:.5rem .8rem;min-height:44px}
body[data-place] .numberland-destinations a{display:block}
body[data-place] :is(a[aria-current="page"],.mode-buttons button[aria-pressed="true"],.zero-screen-buttons button[aria-pressed="true"]){background:#285c4f!important;color:#fff!important;border-color:#285c4f!important}
body[data-place] :is(.numberland-destinations a,.route a,.route-links a,.exit-links a,a.journey-link,.mode-buttons button,.zero-screen-buttons button):hover{box-shadow:inset 0 0 0 2px #8d9f88!important}
body[data-place] button:not(.binary-house):not(.nav-hamburger):not([data-zero-screen]):not([data-mode]){background:#efc477!important;color:#3e2b13!important;border:2px solid #94672d!important;box-shadow:0 3px 0 #94672d}
body[data-place] button:not(.binary-house):not(.nav-hamburger):not([data-zero-screen]):not([data-mode]):hover{background:#f8d596!important}
body[data-place] button:not(.binary-house):not(.nav-hamburger):not([data-zero-screen]):not([data-mode]):active{background:#d99e45!important;box-shadow:inset 0 2px 4px #70471f55;translate:0 2px}
body[data-place] button:not(.binary-house):not(.nav-hamburger):not([data-zero-screen]):not([data-mode])[aria-pressed="true"]{background:#d99e45!important;box-shadow:inset 0 0 0 2px #70471f}
body[data-place] button:disabled{opacity:.5;box-shadow:none}

/* Override older location-specific white text on pale navigation buttons. */
body[data-place] .scene-title .journey-next a.journey-link,body[data-place] .scene-title .journey-next a.journey-link:hover{color:#24594d!important;background:#fffdf1!important}
