.hfms-free-game{--bg:#160f1c;--panel:#24192c;--ink:#f8efdf;--muted:#c4b4c8;--gold:#e6be71;--line:#57415c}.hfms-free-game .play{margin-top:32px;padding:28px;background:var(--panel);border:1px solid var(--line);border-radius:12px}.hfms-free-game .play-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}.hfms-free-game h2{font:32px Georgia,serif;margin:6px 0}.hfms-free-game .stats{display:flex;gap:16px;color:var(--gold);font-variant-numeric:tabular-nums}.hfms-free-game .toolbar{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.hfms-free-game .toolbar label{font-size:13px}.hfms-free-game select{background:var(--bg);color:var(--ink);padding:8px;border:1px solid var(--line);border-radius:5px}.hfms-free-game .board-area{display:flex;gap:25px;align-items:start;justify-content:center}.hfms-free-game #message{min-height:24px;color:var(--gold)}.hfms-free-game #board.sudoku{display:grid;grid-template-columns:repeat(9,1fr);width:min(100%,470px);aspect-ratio:1;border:2px solid var(--gold)}.hfms-free-game .sudoku button{border:0;border-right:1px solid #41606c;border-bottom:1px solid #41606c;border-radius:0;padding:0;position:relative;background:#302238;font-size:clamp(17px,3vw,25px)}.hfms-free-game .sudoku button.given{background:#211529;font-weight:800;color:#eee8da}.hfms-free-game .sudoku button.chosen{background:#665071}.hfms-free-game .sudoku button.conflict{color:#ff9393}.hfms-free-game .sudoku button:nth-child(3n){border-right:2px solid var(--gold)}.hfms-free-game .sudoku button:nth-child(9n){border-right:0}.hfms-free-game .sudoku button:nth-child(n+19):nth-child(-n+27),.hfms-free-game .sudoku button:nth-child(n+46):nth-child(-n+54){border-bottom:2px solid var(--gold)}.hfms-free-game .pencil{display:grid;grid-template-columns:repeat(3,1fr);font-size:10px;line-height:1.3}.hfms-free-game .keypad{display:grid;grid-template-columns:repeat(9,1fr);max-width:470px;margin-left:auto;margin-right:auto;gap:4px;margin-top:22px}.hfms-free-game .keypad button{min-width:0;padding:8px 0}.hfms-free-game .word{display:grid;grid-template-columns:repeat(12,1fr);width:min(100%,490px);aspect-ratio:1;touch-action:none;user-select:none;border:1px solid var(--line)}.hfms-free-game .word button{padding:0;border:0;border-radius:0;background:#302238;font-size:clamp(13px,2.6vw,21px);touch-action:none}.hfms-free-game .word button.found{background:#365c50;color:#fff}.hfms-free-game .word button.selected{background:var(--gold);color:#14232b}.hfms-free-game .word button.hinted{box-shadow:inset 0 0 0 2px var(--gold)}.hfms-free-game #words{min-width:140px}.hfms-free-game #words ul{padding:0;margin:0;list-style:none}.hfms-free-game #words li{padding:4px;color:var(--muted);letter-spacing:1px;font-size:13px}.hfms-free-game #words li.done{text-decoration:line-through;color:#99c9a7}.hfms-free-game .mahjong{position:relative;width:100%;max-width:660px;aspect-ratio:8/6;user-select:none}.hfms-free-game .mahjong button{position:absolute;width:10.4%;height:14%;padding:0;font-size:clamp(17px,3.2vw,29px);line-height:1;background:#f0e8d7;color:#253c39;border:2px solid #d4c8aa;box-shadow:3px 4px 0 #948c74; border-radius:5px}.hfms-free-game .mahjong button.blocked{background:#b3b4aa;color:#626d65;border-color:#aaa99c}.hfms-free-game .mahjong button.selected{border-color:#ffb337;box-shadow:0 0 0 3px #ffb337}.hfms-free-game .mahjong button.hinted{border-color:#4bb783;box-shadow:0 0 0 3px #4bb783}.hfms-free-game .save-note{text-align:center;font-size:12px}
.hfms-free-game button,.hfms-free-game select{font:inherit;cursor:pointer}.hfms-free-game .toolbar button,.hfms-free-game .keypad button{padding:9px 14px;border:1px solid #6b536e;border-radius:7px;background:#302238;color:#f8efdf}.hfms-free-game .keypad button{padding:8px 0}.hfms-free-game button:disabled{opacity:.45;cursor:default}.hfms-free-game button:focus-visible,.hfms-free-game select:focus-visible{outline:3px solid var(--gold);outline-offset:2px}.hfms-free-game select{background:#211529;color:#f8efdf;padding:8px;border:1px solid #6b536e;border-radius:5px}.hfms-free-game .play{max-width:1000px;margin:25px auto}.hfms-free-game [hidden]{display:none!important}
@media(max-width:650px){.hfms-free-game .play{padding:16px 10px}.hfms-free-game .stats{font-size:12px;flex-direction:column;gap:2px}.hfms-free-game .board-area{flex-direction:column;align-items:center}.hfms-free-game #words{width:100%}.hfms-free-game #words ul{display:grid;grid-template-columns:repeat(3,1fr)}.hfms-free-game #words li{font-size:10px}.hfms-free-game .toolbar button{padding:8px 10px;font-size:13px}.hfms-free-game .pencil{font-size:8px}}.hfms-free-game button{color:var(--ink)}