*{box-sizing:border-box}body{margin:0;background:#fff;color:#333;font-family:Arial,'Noto Sans',sans-serif;text-shadow:0 1px 0 #fff}header,footer{background:#e9e9e9;border:1px solid #ddd;z-index:10}header{position:fixed;top:0;left:0;right:0;min-height:45px;padding:5px 82px 5px 8px;text-align:center}header input,header select{font:700 15px Arial,sans-serif;color:#333;background:transparent;border:0;max-width:48%;min-height:32px}header input{width:145px}header select{width:200px}a.home{position:absolute;right:6px;top:5px;text-decoration:none}button,.home{font-size:14px;font-weight:bold;border:1px solid #ddd;border-radius:5px;background:#f6f6f6;color:#333;padding:9px 12px;box-shadow:0 1px 3px #0002;cursor:pointer;text-shadow:0 1px 0 #fff}button:hover,.home:hover{background:#ededed}button:disabled{opacity:.45;cursor:default}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible{outline:2px solid #38c}footer{position:fixed;bottom:0;left:0;right:0;padding:5px;display:flex;gap:5px;flex-wrap:wrap}main{padding-top:48px;padding-bottom:110px;text-align:center}#touchBox{min-height:65vh;touch-action:auto}#image-slot img{display:block;max-width:100%;height:auto;margin:auto}#message{padding:30vh 10px 10px;margin:0}#notice{margin:0;padding:3px 8px;font-size:13px}#notice:empty{display:none}[hidden]{display:none!important}@media(max-width:480px){header{padding-right:72px}header input,header select{font-size:12px}button,.home{font-size:12px;padding:9px 8px}}

/* Compact home button with the jQuery Mobile-style house icon. */
header a.home{top:5px;right:6px;height:34px;padding:0 10px 0 32px;font-size:12.5px;line-height:32px;white-space:nowrap}
header a.home::before{content:"";position:absolute;left:5px;top:50%;transform:translateY(-50%);width:22px;height:22px;border-radius:50%;background-color:rgba(0,0,0,.3);background-position:center;background-repeat:no-repeat;background-size:14px 14px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpolygon fill='white' points='7,0 0,7 2,7 2,14 5,14 5,9 9,9 9,14 12,14 12,7 14,7'/%3E%3C/svg%3E")}
header{padding-right:90px}
#touchBox{position:relative;min-height:65svh;overflow-anchor:none}
#image-slot{position:relative;min-height:65svh}
#image-slot img{position:absolute;top:0;left:50%;transform:translateX(-50%);max-width:100%;max-height:100%;width:auto;height:auto;margin:0;object-fit:contain}
#message{position:absolute;z-index:2;top:40%;left:50%;transform:translate(-50%,-50%);width:max-content;max-width:95%;padding:6px 10px;margin:0;background:rgba(255,255,255,.9);font-size:13px;pointer-events:none}
#notice{position:absolute;top:0;left:0;right:0;z-index:2;background:rgba(255,255,255,.9);pointer-events:none}

/* Keep Safari image long-press actions available. */
#image-slot img{-webkit-touch-callout:default}
