.ios-device[data-profile=luna][data-route=echecs]{background:#eff2e8}.ios-device[data-profile=luna][data-route=echecs] .os-status,.ios-device[data-profile=luna][data-route=echecs] .os-home-indicator{background:#eff2e8;color:#22372d}
#chess-luna{box-sizing:border-box;padding:12px clamp(9px,3vw,17px) 20px;color:#203c32;background:#eff2e8;min-height:100%;font:14px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
#chess-luna *{box-sizing:border-box}#chess-luna button{font:inherit;cursor:pointer}#chess-luna button:disabled{opacity:.45;cursor:default}#chess-luna :focus-visible{outline:3px solid #c55d00;outline-offset:-3px}
.ch-heading,.ch-opponent,.ch-tools,.ch-status,.ch-promote{display:flex;align-items:center}
.ch-heading{gap:11px;margin:1px 0 10px}.ch-heading h1,.ch-heading small{margin:0;line-height:1.05}.ch-heading h1{font-family:Georgia,serif;font-weight:700;font-size:30px}.ch-heading small{display:block;color:#596857;letter-spacing:.14em;font-weight:700;font-size:9px;margin-bottom:3px}.ch-monogram{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:#274f41;color:#f3d59a;font:32px/1 Georgia,serif}
.ch-mode{display:flex;padding:3px;border-radius:9px;background:#dce4d7;gap:3px}.ch-mode button{flex:1;min-height:33px;border:0;border-radius:7px;background:transparent;color:#34483b;font-weight:650!important}.ch-mode button[aria-pressed=true]{background:#fffdf4;color:#18392d;box-shadow:0 1px 3px #193b2929}
.ch-tools{justify-content:space-between;gap:4px;flex-wrap:wrap;margin-block:5px}.ch-tools button{padding:5px 3px;border:0;background:transparent;font-weight:600;font-size:12px!important;color:#345446;min-height:33px}.ch-opponent{gap:7px;padding:3px 1px 8px;font-size:12px}.ch-opponent i{height:10px;width:10px;border:2px solid #61735e;border-radius:50%;background:#263830}
.ch-board{width:min(100%,480px);margin:0 auto;overflow:hidden;border:2px solid #314b3c;border-radius:5px;box-shadow:0 2px 6px #1c30221f;touch-action:manipulation}
.ch-board>[role=row]{display:grid;grid-template-columns:repeat(8,minmax(0,1fr))}
.ch-square{padding:0;border:0;position:relative;aspect-ratio:1;min-width:0;min-height:0;display:grid;place-items:center;isolation:isolate}
.ch-light{background:#f2e5c5;color:#536749}.ch-dark{background:#779777;color:#152d20}.ch-light.ch-last{background:#f4dfa2}.ch-dark.ch-last{background:#b0bb79}.ch-square.ch-picked{box-shadow:inset 0 0 0 3px #156742;background:#bdcd79}
.ch-square.ch-dot::after{content:'';height:23%;width:23%;border-radius:50%;background:#30563c71}.ch-square.ch-capture::after{content:'';position:absolute;inset:1px;border:3px solid #286140a8;border-radius:20%}.ch-square.ch-check{background:#e7a392}
.ch-file,.ch-rank{position:absolute;font:700 clamp(8px,2.3vw,10px)/1 system-ui;font-style:normal;z-index:1;pointer-events:none}.ch-rank{left:2px;top:2px}.ch-file{right:2px;bottom:1px}
.ch-piece{display:block;width:81%;height:81%;pointer-events:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}.ch-piece.ch-w{fill:#fffbed;stroke:#342f25}.ch-piece.ch-b{fill:#293837;stroke:#17201e}.ch-piece.ch-b .ch-detail{stroke:#d0d8ce}.ch-square:focus-visible{z-index:2}
.ch-status{justify-content:space-between;gap:8px;padding:11px 1px 8px;min-height:37px}.ch-status span{font-size:11px;color:#5a6658}.ch-history{display:flex;gap:4px 12px;flex-wrap:wrap;max-height:96px;overflow:auto;background:#fafbf4;padding:8px 10px;border:1px solid #cbd5c6;border-radius:7px;font-family:ui-monospace,monospace}.ch-history small{color:#64705e}.ch-empty{margin:0;font-size:12px;color:#596959}.ch-info{margin-top:13px;color:#465c4e;font-size:12px}.ch-info summary{cursor:pointer}.ch-info a{color:#245143}
.ch-promote,.ch-confirm{margin-top:7px;background:#fff7df;border:1px solid #bfa66a;padding:7px;border-radius:8px;gap:5px;flex-wrap:wrap}.ch-promote b,.ch-confirm b{display:block;flex:1 0 100%}.ch-promote button,.ch-confirm button{min-height:38px;border:1px solid #b7bb9d;border-radius:5px;background:white;color:#293b2c}.ch-promote button{flex:1;display:flex;flex-direction:column;align-items:center}.ch-promote .ch-piece{height:28px;width:28px}.ch-confirm button{margin-right:5px}
@media(max-height:615px){#chess-luna{padding-top:6px}.ch-heading{margin-bottom:5px}.ch-heading h1{font-size:25px}.ch-monogram{width:33px;height:33px;font-size:26px}.ch-tools{margin:1px 0}.ch-opponent{padding-bottom:4px}}

.ch-board{touch-action:none}.ch-square.ch-first:after{position:absolute;content:'↑';right:3px;top:1px;line-height:1;color:#195c4a;font:bold 17px sans-serif;pointer-events:none;animation:ch-swipe 1.4s 3}@keyframes ch-swipe{60%{transform:translateY(-5px);opacity:.3}}@media(prefers-reduced-motion:reduce){.ch-square.ch-first:after{animation:none}}
