.binary-game [hidden] { display: none !important; }
.binary-game .game-hero { background: linear-gradient(135deg, #12124a, #2b2d8f 55%, #0f7a8a); }
.bin-howto { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; font-size: .95rem; }
.bin-mini { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #dfe3ea; font-weight: 800; font-family: ui-monospace, monospace; }
.bin-mini.on { background: #ffd23f; box-shadow: 0 0 10px #ffd23f; }
.bin-vault { text-align: center; background: radial-gradient(circle at top, #1f2370, #0d0f33); color: #fff; }
.bin-vault .buddy p { color: #12124a; }
.bin-lock { position: relative; display: inline-block; font-size: 4.5rem; line-height: 1; transition: transform .3s; }
.bin-lock.open { transform: translateY(-6px) rotate(-8deg); filter: drop-shadow(0 0 16px #3bceac); }
.bin-target { margin-top: 10px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.08); border: 2px dashed rgba(255,255,255,.35); }
.bin-target small { display: block; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.bin-target strong { font-size: 2.6rem; font-weight: 900; color: #ffd23f; font-family: ui-monospace, monospace; }
.bin-track { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 14px; }
.bin-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.12); font-size: .95rem; }
.bin-dot.current { background: #ffd23f; box-shadow: 0 0 10px #ffd23f; }
.bin-switches { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 16px; border-radius: 18px; background: #12124a; }
.bin-switch { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 62px; padding: 8px 4px; border: 0; border-radius: 14px; background: #262a6e; color: #cfd3ff; cursor: pointer; transition: background .2s, transform .1s; }
.bin-switch:hover { transform: translateY(-2px); }
.bin-switch:focus-visible { outline: 3px solid #ffd23f; outline-offset: 2px; }
.bin-switch .place { font-size: .8rem; font-weight: 700; }
.bin-switch .lever { position: relative; width: 26px; height: 46px; border-radius: 14px; background: #0b0d2c; }
.bin-switch .lever::after { content: ''; position: absolute; left: 3px; bottom: 3px; width: 20px; height: 20px; border-radius: 50%; background: #8a8fbf; transition: bottom .2s, background .2s; }
.bin-switch .digit { font-family: ui-monospace, monospace; font-size: 1.4rem; font-weight: 900; }
.bin-switch.on { background: #3a3fa0; color: #ffd23f; }
.bin-switch.on .lever::after { bottom: 23px; background: #ffd23f; box-shadow: 0 0 12px #ffd23f; }
.bin-readout { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #eef0ff; font-family: ui-monospace, monospace; font-weight: 700; color: #2b2d8f; min-height: 1.5em; }
.bin-picture { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: center; }
.bin-rows { margin: 0; padding-left: 1.6em; font-family: ui-monospace, monospace; font-size: 1.3rem; font-weight: 800; letter-spacing: .2em; }
.bin-grid { display: grid; gap: 4px; width: min(280px, 80vw); padding: 8px; border-radius: 14px; background: #12124a; }
.bin-pixel { aspect-ratio: 1; border: 0; border-radius: 6px; background: #262a6e; cursor: pointer; transition: background .15s, transform .1s; }
.bin-pixel:hover { transform: scale(1.06); }
.bin-pixel:focus-visible { outline: 3px solid #ffd23f; }
.bin-pixel.on { background: #ee4266; box-shadow: 0 0 8px #ee4266; }
.confetti i { font-style: normal; font-size: 12px; color: #12124a; font-weight: 900; text-align: center; }
@media (max-width: 575px) { .bin-switch { width: 40px; } .bin-switch .digit { font-size: 1.1rem; } }
