:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,sans-serif;background:#1d1d21;color:#e8e8e8}*{box-sizing:border-box}body{margin:0;padding:1rem}h1{margin:.2rem 0 .4rem}.layout{display:grid;gap:.9rem;grid-template-columns:1fr}.card{background:linear-gradient(180deg,#2d2d33,#252529);border:1px solid #3D3D44;border-radius:12px;padding:.8rem 1rem}details>summary{cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:700;color:#b0b0b0;margin-bottom:.7rem}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:.6rem}label{display:flex;flex-direction:column;gap:.3rem;font-size:.88rem;color:silver}.checkbox-row{flex-direction:row;align-items:center;gap:.5rem}.checkbox-row input{width:1rem;height:1rem;padding:0}input,select{background:#1d1d21;color:#e8e8e8;border:1px solid #3D3D44;border-radius:8px;padding:.5rem}canvas{width:100%;border:1px solid #3D3D44;border-radius:8px}.table-wrap,.bitmask-wrap{overflow:auto;max-height:55vh}.table-wrap table{table-layout:auto;width:max-content;min-width:100%}table{width:100%;border-collapse:collapse;font-size:.84rem}#bitmaskTable{width:100%;table-layout:fixed}th,td{border-bottom:1px solid #3D3D44;border-right:1px solid #3D3D44;padding:.33rem .44rem;text-align:right}th:first-child,td:first-child{text-align:left;position:sticky;left:0;background:#2d2d33;width:4rem;min-width:4rem}#bitmaskTable thead th{position:sticky;top:0;z-index:2;background:#2d2d33}#bitmaskTable td:first-child,#bitmaskTable th:first-child{position:sticky;left:0;z-index:1;background:#2d2d33}#bitmaskTable thead th:first-child{z-index:3}.row-even{background:#ffffff05}.row-odd{background:transparent}.mono{font-family:Courier New,Consolas,Monaco,monospace;color:#86efac;letter-spacing:.05em}.bit{min-width:1.2rem;height:1.8rem;text-align:center;font-weight:700;font-size:.7rem}.crosshair-row td{outline:2px solid #AA0000;outline-offset:-2px}.crosshair-col{outline:2px solid rgba(170,0,0,.5);outline-offset:-2px}.bit-one{background:#0a2a8a;color:#fff}.bit-zero{background:#fff;color:#0a2a8a}.bit-one-redstone{background:#a00;color:#fff}.bit-zero-redstone{background:#7f7f7f;color:#fff}.preset-bar{display:flex;flex-wrap:wrap;gap:.5rem}.export-bar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:.6rem}.preset-btn{background:#2d2d33;color:#e8e8e8;border:1px solid #3D3D44;border-radius:8px;padding:.45rem .9rem;font-size:.84rem;cursor:pointer;transition:background .15s,border-color .15s}.preset-btn:hover{background:#a00;border-color:#c22;color:#fff}.preset-btn:active{background:#800}.copy-success{outline:2px solid #4ade80;outline-offset:-2px;transition:outline .15s}.copy-error{outline:2px solid #f43f5e;outline-offset:-2px;transition:outline .15s}.torch-tower-wrap{display:flex;gap:2px;overflow-x:auto;padding:.5rem 0}.torch-tower{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:1.6rem}.torch-label{font-size:.65rem;color:#b0b0b0;white-space:nowrap;margin-bottom:2px}.torch-lit{width:1.4rem;height:1.4rem;background:#fa0;border:1px solid #cc8800;border-radius:2px}.torch-unlit{width:1.4rem;height:1.4rem;background:#2a2a2e;border:1px solid #3a3a40;border-radius:2px}.layer-view{display:flex;flex-wrap:wrap;gap:2px;padding:.5rem 0}.layer-cell{width:2.4rem;height:2.4rem;display:flex;align-items:center;justify-content:center;font-size:.6rem;border-radius:2px;font-weight:600}.layer-cell-on{background:#0a2a8a;color:#fff}.layer-cell-off{background:#fff;color:#0a2a8a}.row-highlight td{outline:2px solid #AA0000;outline-offset:-2px}.tooltip{display:none;position:absolute;background:#2d2d33;color:#e8e8e8;border:1px solid #3D3D44;border-radius:6px;padding:.4rem .7rem;font-size:.78rem;font-family:Courier New,Consolas,Monaco,monospace;pointer-events:none;z-index:100;white-space:nowrap}@media(max-width:768px){body{padding:.5rem}.grid{grid-template-columns:1fr}.preset-bar{flex-direction:column}.preset-btn{width:100%;text-align:center}.export-bar{flex-direction:column}.export-bar .preset-btn{width:100%;text-align:center}.bitmask-wrap,.torch-tower-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}.layer-view{overflow-x:auto}}
