#table{background:#1e2220}.game-head{background:linear-gradient(180deg,#193235,#122729);border-bottom:1px solid #97826477;box-shadow:0 3px 12px #120e0838;z-index:1}.tools{background:#12292b;border-top-color:#ba975d5c}.whole{border-radius:20px;padding:8px 15px}.whole svg{color:var(--gold)}#zoomRead{width:56px;text-align:center;font-size:13px;color:#eadbbf;font-variant-numeric:tabular-nums}#ambience[aria-pressed=true]{color:#eed2a7;background:#bcb59a20}#ambience[aria-pressed=false]{opacity:.65}#canvas:focus{outline:none}#canvas:focus-visible{outline:1px solid #e8c5896e;outline-offset:-2px}
.stage{overflow:hidden}#hint{top:auto;bottom:12px;border-color:#e3c38a58}
#manual{width:min(475px,92vw)}#manual h2{font-size:31px}#inputGuide{margin:0;display:grid;grid-template-columns:7.2em 1fr;gap:12px;font-size:14px;line-height:1.45}#inputGuide dt{font-weight:650;color:#e6c899}#inputGuide dd{margin:0;color:#e0e6de}
@media(max-width:700px){.tools .whole span{display:none}.tools .whole{border-radius:12px;padding:8px 10px}#zoomRead{font-size:11px;width:37px}.tools{grid-template-columns:1fr auto auto;gap:8px}.game-title h2{font-size:18px}.game-progress{font-size:12px;min-width:42px}.game-head .utility{gap:0}#hint{white-space:normal;width:max-content;max-width:95%}.tools .ico,.tools .tool{min-width:36px;width:36px}.tools .zoom{gap:1px}}
@media(max-width:380px){#zoomRead{display:none}.game-title h2{font-size:16px}.tools{gap:4px}}



.rotation-choice{display:flex;align-items:center;gap:9px;width:max-content;max-width:100%;margin-top:13px;padding:5px 9px 5px 4px;border-radius:5px;background:#0e252882;font-size:14px;color:#f4f0e6;cursor:pointer}
.rotation-choice input{width:17px;height:17px;accent-color:#ecc78a;cursor:pointer}
.rotation-choice:focus-within{outline:2px solid var(--gold);outline-offset:2px}
@media(max-width:700px){.rotation-choice{margin-top:6px}.tools :is(#guide,#outlines,#edges){display:flex;flex-direction:column;justify-content:center;gap:2px;width:auto;min-width:48px;padding:4px 6px}.tools :is(#guide,#outlines,#edges) span{display:block;font-size:10px;line-height:1.15}.tools{gap:3px}}
@media(max-width:425px){#zoomRead{display:none}}
@media(max-width:350px){.tools :is(#guide,#outlines,#edges){min-width:40px;padding-inline:3px}.tools #rotate{min-width:30px;width:30px}}
.start-options{display:flex;align-items:flex-end;flex-wrap:wrap;gap:14px;margin-top:24px}
.hero .start-options .primary{margin:0;min-height:46px}
.puzzle-size{display:flex;flex-direction:column;align-items:flex-start;gap:4px;font-size:12px;letter-spacing:.045em;color:#eedec8}
.puzzle-size select{min-height:46px;max-width:100%;font:600 15px/1.25 "Segoe UI",sans-serif;background:#163034ed;color:var(--ink);border:1px solid #dfc7a481;border-radius:8px;padding:8px 12px;cursor:pointer}
.puzzle-size select:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
#album .hero{min-height:540px}
@media(max-width:700px){.start-options{gap:8px;margin-top:14px}.puzzle-size select{font-size:14px;min-height:43px;padding:8px}.hero .start-options .primary{min-height:43px;padding:10px 15px}#album .hero{min-height:485px}}

@media(max-width:375px){
  .tools:has(#edges:not([hidden])):has(#rotate:not([hidden])){grid-template-columns:1fr auto;row-gap:4px}
  .tools:has(#edges:not([hidden])):has(#rotate:not([hidden]))>.toolgroup:first-child{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,1fr)}
  .tools:has(#edges:not([hidden])):has(#rotate:not([hidden])) #rotate{width:auto;flex-direction:column;gap:2px}
  .tools:has(#edges:not([hidden])):has(#rotate:not([hidden])) #rotate span{display:block;font-size:10px}
  .tools:has(#edges:not([hidden])):has(#rotate:not([hidden])) #fit{justify-self:start;width:auto}
  .tools:has(#edges:not([hidden])):has(#rotate:not([hidden])) #fit span{display:inline}
}

@media(min-width:701px) and (max-width:780px){
  .tools:has(#edges:not([hidden])){column-gap:4px;padding-inline:8px}
  .tools:has(#edges:not([hidden])) #zoomRead{display:none}
  .tools:has(#edges:not([hidden])) .toolgroup{gap:4px}
}

