.s0,
.s1 {
    cursor: default;
}
#game {
    width: 100vw;
    padding: 20px;
    box-sizing: border-box;
}
table.sudoku {
    border-collapse: collapse;
    position: relative;
    width: 100%;
}
.m-num,
td.sudoku {
    width: 7vw;
    height: 7vw;
    font-weight: 700;
    text-align: center;
}
td.sudoku {
    border: 1px solid #000;
    font-size: 7vw;
    background-color: #fff;
}
td.numbers {
    cursor: pointer;
}
td.numbers:hover {
    background-color: #ffed70;
}
.bbl {
    border-left-width: 3px !important;
}
.bbr {
    border-right-width: 3px !important;
}
.bbt {
    border-top-width: 3px !important;
}
.bbb {
    border-bottom-width: 3px !important;
}
.m {
    margin: 0 auto;
}
.w {
    background: #fff;
}
.b {
    background: #000;
}
.s1 {
    color: #000;
}
.s0 {
    color: #00f;
}
td.sudoku.active {
    background-color: #ffed70 !important;
}
.hl_err {
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: red;
}
.hl_err .cell-drafts div {
    text-decoration: none;
}
td.sudoku.hl_num {
    background-color: #ffba70;
}
.m-numtab {
    display: flex;
    flex-direction: column;
}
.i-num,
.m-num {
    display: block;
}
.m-num {
    border-style: solid;
    border-width: 3px 3px 0;
    border-color: #000;
    font-size: 26px;
    cursor: pointer;
}
.m-numtab span:last-child {
    border-bottom-width: 3px;
}
  .cell-drafts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 2px;
  }
  .cell-drafts div { text-align:center; line-height:1; color: #666; font-size: 11px;}

  .m-numtab { display:flex; flex-wrap:wrap; align-items:center; }
  .m-num.draft-toggle { font-weight:600; }
  .m-num.draft-toggle.active { background:#ffed70; }

  .hl_num { background:#e6f7ff !important; }
.i-num {
    position: absolute;
    z-index: -1000;
    width: 1px;
    height: 1px;
    font-size: 1px;
    overflow: hidden;
    background: 0 0;
    border: none;
    box-shadow: none;
    color: transparent;
    opacity: 0;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
}
.s-buttons {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    float: left;
}
button.sudoku {
    margin: 0 20px 20px 0;
    padding: 10px;
    width: 110px;
    max-height: 44px;
}
.s-buttons > .div_toggle {
    width: 130px;
    margin-bottom: 20px;
}
@media screen and (max-width: 300px) {
    .m-numtab {
        flex-direction: row;
        margin-top: 20px;
    }
    .m-num {
        width: 6vw;
        height: 6vw;
        font-size: 4vw;
        border-width: 2px 0 2px 2px;
    }
    .m-numtab span:last-child {
        border-right-width: 2px;
        border-bottom-width: 2px;
    }
  .cell-drafts {
    padding: 0;
  }
    .cell-drafts div {
    font-size: 2.5vw;
    line-height: 0.9
    }
    button.sudoku {
        margin: 12px 12px 0 0;
    }
    .s-buttons {
        flex-direction: row;
    }
    .s-buttons > .div_toggle {
        padding-top: 12px;
    }
}
@media screen and (min-width: 300px) and (max-width: 575px) {
    .m-numtab {
        flex-direction: row;
        margin-top: 20px;
    }
    .m-num {
        font-size: 5vw;
        border-width: 3px 0 3px 3px;
    }
    .m-numtab span:last-child {
        border-right-width: 3px;
    }
  .cell-drafts {
    padding: 0;
  }
    .cell-drafts div {
    font-size: 2.5vw;
    line-height: 1
    }
    button.sudoku {
        margin: 20px 20px 0 0;
    }
    .s-buttons {
        flex-direction: row;
    }
    .s-buttons > .div_toggle {
        padding-top: 20px;
    }
}
@media screen and (min-width: 575px) {
    #game {
        max-width: 800px;
    }
    table.sudoku {
        float: left;
        width: 450px;
    }
    td.sudoku {
        width: 45px;
        height: 45px;
        font-size: 36px;
    }
    div.m-numtab {
        float: left;
        padding: 0 40px;
    }
    .m-num {
        width: 36px;
        height: 36px;
    }
}
@media screen and (min-width: 575px) and (max-width: 750px) {
    div.m-numtab {
        padding: 0 0 0 30px;
    }
    .s-buttons {
        flex-direction: row;
        max-width: 550px;
    }
    button.sudoku {
        margin-top: 20px;
    }
}
@media screen and (min-width: 992px) and (min-height: 900px) {
    #game {
        max-width: 865px;
    }
    table.sudoku {
        float: left;
        width: 515px;
    }
    td.sudoku {
        width: 55px;
        height: 55px;
        font-size: 42px;
    }
    .m-num {
        width: 40px;
        height: 40px;
        font-size: 36px;
    }
    .s-buttons {
        flex-direction: row;
        max-width: 550px;
    }
    button.sudoku {
        margin-top: 20px;
    }
}
@media screen and (min-width: 992px) and (min-height: 1024px) {
    #game {
        max-width: 800px;
    }
    table.sudoku {
        float: left;
        width: 594px;
    }
    td.sudoku {
        width: 66px;
        height: 66px;
        font-size: 50px;
    }
    .m-num {
        width: 48px;
        height: 48px;
        font-size: 40px;
    }
    .s-buttons {
        flex-direction: row;
        max-width: 550px;
    }
    button.sudoku {
        margin-top: 20px;
    }
}
