#chess-layout{font-family:et-book,Palatino,Palatino Linotype,Palatino LT STD,Book Antiqua,Georgia,serif;position:fixed;top:0;left:0;right:0;height:100dvh;z-index:1;display:flex;flex-direction:column;background-color:#e6a666}#chess-title{position:relative;flex:none;margin:0;padding:1rem 0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;font-size:2rem;font-weight:400;line-height:1;color:#222;-webkit-user-select:none;user-select:none}#chess-title-text{grid-column:2}#chess-exit{grid-column:1;justify-self:start;display:flex;align-items:center;margin-left:1rem;padding:.25rem;color:#222;opacity:.75;-webkit-tap-highlight-color:transparent}#chess-exit:hover,#chess-exit:focus-visible{opacity:1}#chess-exit svg{display:block;width:1.75rem;height:1.75rem}#chess-layout.chess-modal-open #chess-title{pointer-events:none}#chess-layout.chess-modal-open #chess-title:after{content:"";position:absolute;inset:0;background-color:#0000008c;pointer-events:none}#app{flex:1 1 auto;min-height:0;position:relative}#app canvas{-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;touch-action:none}#chess-boot{position:absolute;inset:0;z-index:2;display:flex;align-items:center;justify-content:center;background-color:#e6a666;transition:opacity .3s ease;container-type:size}#chess-boot.chess-boot-done{opacity:0;pointer-events:none}#chess-boot-board{width:min(83.6cqw,83.6cqh);aspect-ratio:1;display:flex;align-items:center;justify-content:center;background-image:conic-gradient(#d89550 0 25%,#f0b881 0 50%,#d89550 0 75%,#f0b881 0);background-size:25% 25%;animation:chess-boot-pulse 1.8s ease-in-out infinite}@keyframes chess-boot-pulse{0%,to{opacity:.55}50%{opacity:.8}}#chess-boot-track{width:240px;max-width:60cqw;height:3px;border-radius:2px;background-color:#22222226;overflow:hidden}#chess-boot-bar{width:0;height:100%;border-radius:2px;background-color:#222}@media(prefers-reduced-motion:reduce){#chess-boot-board{animation:none;opacity:.7}}#chess-remote{position:fixed;top:56px;left:50%;transform:translate(-50%);z-index:50;box-sizing:border-box;width:min(420px,calc(100vw - 32px));padding:16px;border-radius:10px;background:#fbf7ef;color:#1d1b18;box-shadow:0 6px 24px #00000047;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.4}#chess-remote[hidden]{display:none}#chess-remote .chess-remote-text{margin:0 28px 12px 0}#chess-remote .chess-remote-row{display:flex;gap:8px;flex-wrap:wrap}#chess-remote input{flex:1 1 200px;min-width:0;padding:8px 10px;border:1px solid #b9b0a2;border-radius:6px;background:#fff;color:inherit;font:inherit}#chess-remote button,#chess-remote a.chess-remote-button{padding:8px 14px;border:0;border-radius:6px;background:#2f6b3a;color:#fff;font:inherit;text-decoration:none;cursor:pointer}#chess-remote button.chess-remote-close{position:absolute;top:8px;right:8px;width:28px;height:28px;padding:0;background:transparent;color:#6b6358;font-size:20px;line-height:28px}
