.ht355-page{max-width:1160px}.ht355-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:18px 0 12px}.ht355-head h1{margin:.15rem 0 .25rem;font-size:clamp(2rem,5vw,3.25rem);line-height:1}.ht355-head h1 small{display:block;margin-top:.45rem;font-size:.34em;font-weight:700;color:var(--muted)}.ht355-head p{max-width:760px;margin:0;color:var(--muted)}.ht355-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.ht355-save,.ht355-iconbtn{border:1px solid var(--border);border-radius:999px;background:var(--panel);color:var(--text);padding:8px 11px;font-size:.78rem;font-weight:800}.ht355-iconbtn{cursor:pointer}.ht355-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.ht355-tabs button{border:1px solid var(--border);background:var(--panel);color:var(--text);padding:9px 15px;border-radius:999px;font-weight:850;cursor:pointer}.ht355-tabs button.active{background:var(--text);color:var(--bg)}.ht355-shell{padding:14px}.ht355-quick{display:flex;align-items:end;gap:8px;flex-wrap:wrap;margin-bottom:10px;padding:9px;border:1px solid var(--border);border-radius:14px;background:var(--panel-2,#f5f5f5)}.ht355-quick label{display:grid;gap:3px;font-size:.75rem;color:var(--muted)}.ht355-quick select{min-width:112px;padding:8px;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--text)}.ht355-hud{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:12px}.ht355-hud>div{background:var(--panel-2,#f5f5f5);border:1px solid var(--border);border-radius:14px;padding:9px 11px}.ht355-hud small{display:block;color:var(--muted);font-size:.7rem}.ht355-hud strong{font-size:1.04rem}.ht355-game{display:grid;grid-template-columns:minmax(0,1fr) 188px;gap:18px;align-items:start}.ht355-boardwrap{min-width:0}.ht355-topline{display:flex;justify-content:space-between;gap:12px;align-items:flex-end;margin-bottom:9px}.ht355-topline strong{font-size:1.05rem}.ht355-topline small{color:var(--muted)}.ht355-mini{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.ht355-mini span{border:1px solid var(--border);border-radius:999px;padding:4px 8px;background:var(--panel);font-size:.72rem;font-weight:800;color:var(--muted)}.ht355-tools{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 9px}.ht355-tools button{border:1px solid var(--border);background:var(--panel);color:var(--text);padding:8px 11px;border-radius:10px;font-weight:800;cursor:pointer}.ht355-tools button.active{outline:2px solid currentColor;background:var(--text);color:var(--bg)}.ht355-tools button:disabled{opacity:.42;cursor:not-allowed}.ht355-boardstage{position:relative;width:min(100%,590px);margin:0 auto}.ht355-board{--n:7;display:grid;grid-template-columns:repeat(var(--n),1fr);width:100%;aspect-ratio:1;border:2px solid var(--text);background:var(--text);gap:1px;touch-action:manipulation;user-select:none;-webkit-user-select:none}.ht355-cell{position:relative;border:0;background:var(--bg);color:var(--text);font-weight:850;font-size:clamp(1rem,4.2vw,1.75rem);cursor:pointer;min-width:0;padding:0;touch-action:manipulation}.ht355-cell:hover,.ht355-cell:focus-visible{z-index:1;outline:3px solid #7c8cff;outline-offset:-3px}.ht355-cell.black{background:#202124;color:#fff}.ht355-cell.kept::after{content:"";position:absolute;inset:16%;border:3px solid currentColor;border-radius:50%;opacity:.62}.ht355-cell.conflict{box-shadow:inset 0 0 0 4px #d54b4b}.ht355-cell.hint-target{box-shadow:inset 0 0 0 4px #6d7cff}.ht355-cell[aria-disabled="true"]{cursor:default}.ht355-pause-overlay{position:absolute;inset:0;display:grid;place-content:center;text-align:center;gap:8px;background:color-mix(in srgb,var(--bg) 88%,transparent);backdrop-filter:blur(5px);z-index:5;border:2px solid var(--text)}.ht355-pause-overlay strong{font-size:1.55rem}.ht355-pause-overlay span{color:var(--muted)}.ht355-rules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;width:min(100%,590px);margin:9px auto 0}.ht355-rules>div{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:7px;align-items:center;border:1px solid var(--border);border-radius:11px;padding:7px 9px;background:var(--panel)}.ht355-rules span{grid-row:1/3;font-weight:900}.ht355-rules small{color:var(--muted);font-size:.68rem}.ht355-rules strong{font-size:.83rem}.ht355-rules .ok strong{color:#22864f}.ht355-rules .bad strong{color:#c23a3a}.ht355-rules .open strong{color:var(--muted)}.ht355-status{margin:9px auto 0;min-height:1.45em;width:min(100%,590px);color:var(--muted)}.ht355-hint{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid var(--border);border-radius:14px;padding:11px 12px;margin:10px auto 0;background:var(--panel);width:min(100%,590px)}.ht355-hint p{margin:.2rem 0 0;color:var(--muted)}.ht355-side{display:grid;gap:8px}.ht355-side .btn{width:100%;justify-content:center}.ht355-side-note{display:grid;gap:4px;border:1px solid var(--border);border-radius:12px;padding:10px;background:var(--panel-2,#f6f6f6);font-size:.77rem;color:var(--muted)}.ht355-side-note strong{color:var(--text)}.ht355-result{display:grid;grid-template-columns:minmax(180px,1fr) minmax(320px,1.4fr);gap:14px;align-items:center;margin-top:13px;border:1px solid var(--border);border-radius:16px;padding:14px;background:var(--panel)}.ht355-result h2{margin:.2rem 0;font-size:1.45rem}.ht355-result p{margin:0;color:var(--muted)}.ht355-resultgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.ht355-resultgrid div{border:1px solid var(--border);border-radius:12px;padding:8px}.ht355-resultgrid small{display:block;color:var(--muted);font-size:.7rem}.ht355-resultgrid strong{font-size:1.05rem}.ht355-result-actions{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap}.ht355-more{margin-top:14px;border:1px solid var(--border);border-radius:16px;background:var(--panel)}.ht355-more>summary,.ht355-advanced>summary{cursor:pointer;padding:13px 15px;font-weight:850}.ht355-moregrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0 14px 14px}.ht355-panel{border:1px solid var(--border);border-radius:14px;padding:12px}.ht355-panel h3{margin:.1rem 0 .7rem}.ht355-panel>label:not(.ht355-check){display:grid;gap:4px;font-size:.82rem;color:var(--muted)}.ht355-panel input,.ht355-panel select{width:100%;padding:8px;border:1px solid var(--border);border-radius:9px;background:var(--bg);color:var(--text)}.ht355-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:9px}.ht355-settings label{display:grid;gap:4px;font-size:.82rem;color:var(--muted)}.ht355-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}.ht355-check{display:flex;align-items:flex-start;gap:8px;margin:8px 0;font-size:.87rem}.ht355-check input{width:auto;margin-top:2px}.ht355-record-panel{grid-column:1/-1}.ht355-recent{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.ht355-recent>div{border:1px solid var(--border);border-radius:10px;padding:8px}.ht355-recent small{display:block;color:var(--muted);font-size:.7rem}.ht355-recent strong{font-size:.95rem}.ht355-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}.ht355-guide>div{border:1px solid var(--border);border-radius:16px;padding:14px;background:var(--panel)}.ht355-guide h2{font-size:1.05rem;margin:.15rem 0 .45rem}.ht355-guide p{margin:0;color:var(--muted)}.ht355-advanced{margin:18px 0;border:1px solid var(--border);border-radius:16px;background:var(--panel)}.ht355-advanced #ht225Lab{margin:0;border:0;border-top:1px solid var(--border);border-radius:0}.ht355-focus .topbar,.ht355-focus .preview-note,.ht355-focus .footer,.ht355-focus .ht355-guide,.ht355-focus .ht355-more,.ht355-focus .ht355-advanced{display:none!important}.ht355-focus .ht355-page{max-width:920px}.ht355-body .mobile-dock{display:none!important}
@media(max-width:840px){.ht355-head{margin-top:10px}.ht355-head h1{font-size:2rem}.ht355-head h1 small{font-size:.42em}.ht355-head p{font-size:.9rem}.ht355-head-actions{display:none}.ht355-tabs{margin:8px 0}.ht355-tabs button{padding:8px 12px}.ht355-shell{padding:10px}.ht355-hud{grid-template-columns:repeat(5,1fr);gap:5px}.ht355-hud>div{padding:7px 5px;text-align:center}.ht355-hud small{font-size:.6rem}.ht355-hud strong{font-size:.86rem}.ht355-game{display:block}.ht355-side{grid-template-columns:repeat(4,1fr);margin-top:9px}.ht355-side .btn{padding:9px 5px}.ht355-side-note{grid-column:1/-1;grid-template-columns:auto 1fr 1fr;align-items:center}.ht355-result{grid-template-columns:1fr}.ht355-resultgrid{grid-template-columns:repeat(4,1fr)}.ht355-moregrid{grid-template-columns:1fr}.ht355-record-panel{grid-column:auto}.ht355-recent{grid-template-columns:repeat(2,1fr)}.ht355-guide{grid-template-columns:1fr 1fr}.ht355-topline small{font-size:.74rem}.ht355-status{font-size:.88rem}}
@media(max-width:520px){.ht355-head h1{font-size:1.72rem}.ht355-head p{display:none}.ht355-tabs{gap:6px}.ht355-tabs button{padding:7px 10px;font-size:.85rem}.ht355-quick{padding:7px;gap:6px}.ht355-quick label{flex:1}.ht355-quick select{min-width:0;width:100%;padding:7px}.ht355-quick .btn{width:100%}.ht355-hud{grid-template-columns:repeat(5,1fr);margin-bottom:8px}.ht355-hud>div{padding:6px 3px;border-radius:10px}.ht355-hud small{font-size:.55rem}.ht355-hud strong{font-size:.76rem}.ht355-topline{margin-bottom:6px}.ht355-mini{gap:4px}.ht355-mini span{font-size:.64rem;padding:3px 6px}.ht355-tools{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin-bottom:6px}.ht355-tools button{padding:7px 3px;font-size:.72rem;border-radius:8px}.ht355-tools button small{display:none}.ht355-cell{font-size:clamp(.82rem,6vw,1.25rem)}.ht355-rules{gap:4px;margin-top:6px}.ht355-rules>div{padding:5px 6px;column-gap:4px}.ht355-rules span{font-size:.78rem}.ht355-rules small{font-size:.55rem}.ht355-rules strong{font-size:.68rem}.ht355-status{margin-top:6px;font-size:.8rem}.ht355-side{grid-template-columns:repeat(4,1fr);gap:5px}.ht355-side .btn{font-size:.76rem}.ht355-side-note{display:none}.ht355-resultgrid{grid-template-columns:repeat(2,1fr)}.ht355-result-actions .btn{flex:1 1 130px}.ht355-guide{grid-template-columns:1fr}.ht355-hint{align-items:flex-start;flex-direction:column}.ht355-more>summary,.ht355-advanced>summary{padding:11px 12px}}
