/* Assassin Chess follows Beyond Grid Live's black/green design system. */
.bgl-route-assassin-chess .site-header{
  width:min(1280px,calc(100% - 28px));margin:14px auto 0;padding:8px 2px 6px;
  display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:18px;
}
.bgl-route-assassin-chess .brand{flex-direction:row;align-items:center;gap:10px;text-align:left}
.bgl-route-assassin-chess .brand-mark{width:38px;height:38px;font-size:16px;box-shadow:none}
.bgl-route-assassin-chess .brand b{font-size:18px;letter-spacing:.06em;text-shadow:none}
.bgl-route-assassin-chess .site-header nav{min-height:0}
.bgl-route-assassin-chess .site-header nav>a,
.bgl-route-assassin-chess .site-header nav>.inline-form{min-height:36px;padding:0 12px;border-left:0}
.bgl-route-assassin-chess .background::before{
  background:linear-gradient(180deg,rgba(3,8,6,.62),rgba(3,8,6,.55) 40%,rgba(2,6,4,.82));
}
.bgl-route-assassin-chess main{margin-top:14px}
.ac-page{--ac-green:#7fd12f;--ac-mint:#b7ee83;--ac-line:rgba(183,238,131,.17);--ac-quiet:#aab7ab;
  width:min(1200px,calc(100% - 28px));margin:18px auto 64px;color:#f5f7f3;font-size:16px;
}
.ac-page *{box-sizing:border-box}
.ac-page button,.ac-page input{font:inherit}
.ac-page button{cursor:pointer}
.ac-page button:disabled{opacity:.48;cursor:not-allowed}
.ac-page button:focus-visible,.ac-page a:focus-visible,.ac-page input:focus-visible{
  outline:3px solid #b7ee83;outline-offset:3px;
}
.ac-page-head{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:20px;margin:18px 0 23px}
.ac-page-head h1{font-size:clamp(35px,5vw,55px);line-height:1.05;margin:8px 0 10px;letter-spacing:-.035em}
.ac-page-head p{margin:0;color:#c1cfc0;line-height:1.55;max-width:700px}
.ac-outline{display:inline-flex;align-items:center;justify-content:center;border:1px solid #7fd12f;
  color:#b7ee83;border-radius:9px;padding:12px 16px;font-size:14px;font-weight:800;
  background:rgba(7,18,8,.8);white-space:nowrap}
.ac-outline:hover{background:rgba(127,209,47,.14);color:#fff}
.ac-mode{display:flex;gap:7px;margin-bottom:16px;padding:5px;width:max-content;max-width:100%;
  border:1px solid var(--ac-line);border-radius:12px;background:rgba(3,9,5,.9)}
.ac-mode button,.ac-demo-modes button{border:0;background:transparent;color:#b6c7b4;border-radius:8px;
  padding:11px 17px;font-size:14px;font-weight:800;white-space:nowrap}
.ac-mode .ac-active,.ac-demo-modes .ac-active{background:#7fd12f;color:#071407}
.ac-panel{background:linear-gradient(170deg,rgba(7,16,10,.97),rgba(4,10,7,.96));
  border:1px solid var(--ac-line);border-radius:14px;box-shadow:0 20px 50px #0005}
.ac-columns{display:grid;grid-template-columns:minmax(0,670px) minmax(300px,1fr);gap:19px;align-items:start}
.ac-board-panel{padding:16px}
.ac-board{width:100%;aspect-ratio:1;display:grid;grid-template-columns:repeat(10,minmax(0,1fr));
  grid-template-rows:repeat(10,minmax(0,1fr));border:2px solid #48674c;border-radius:6px;overflow:hidden;
  touch-action:manipulation;background:#52715a}
.ac-square{position:relative;display:flex;align-items:center;justify-content:center;min-height:0;min-width:0;
  padding:0;border:0;border-radius:0;line-height:1;isolation:isolate}
.ac-square.light{background:#d9e2c8}.ac-square.dark{background:#64806a}
.ac-square.last.light{background:#cedc92}.ac-square.last.dark{background:#8eab56}
.ac-square.selected{box-shadow:inset 0 0 0 3px #f6cf5b;background:#a2a74c!important}
.ac-square.possible::after{content:"";position:absolute;width:27%;height:27%;border-radius:50%;
  background:rgba(15,69,22,.55);pointer-events:none}
.ac-square.possible.capture::after{width:84%;height:84%;border:3px solid #ba4631;background:transparent}
.ac-square:hover{filter:brightness(1.07)}
.ac-piece{position:relative;z-index:2;display:block;line-height:1;font-size:clamp(23px,3.8vw,47px);
  user-select:none;-webkit-user-select:none;pointer-events:none}
.ac-piece.w{color:#fffdf1;text-shadow:-1px -1px #314737,1px -1px #314737,-1px 1px #314737,
  1px 1px #314737,0 3px 3px #101d10}
.ac-piece.b{color:#17291c;text-shadow:0 1px #ecffe8,0 2px 2px #10241566}
.ac-piece.assassin{font-size:clamp(19px,3vw,39px);font-family:system-ui;font-weight:900}
.ac-piece.assassin.w{color:#fff2bb;text-shadow:0 2px #554718,0 0 5px #fff7d8}
.ac-piece.assassin.b{color:#17371e;text-shadow:0 1px #d9ffbb,0 0 5px #263d21}
.ac-coordinate{position:absolute;z-index:3;font-size:10px;font-weight:900;line-height:1;
  pointer-events:none;opacity:.8}
.ac-coordinate.rank{top:3px;left:3px}.ac-coordinate.file{right:3px;bottom:2px}
.ac-square.light .ac-coordinate{color:#3d5945}.ac-square.dark .ac-coordinate{color:#f0f9dd}
.ac-player{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:10px;min-width:0}
.ac-player:first-child{margin-bottom:8px}.ac-player:nth-child(3){margin-top:8px}
.ac-player.on-turn{background:rgba(127,209,47,.1);box-shadow:inset 3px 0 #7fd12f}
.ac-player>div:nth-child(2){min-width:0;flex:1}
.ac-player strong{font-size:16px;color:#fff;display:block;overflow-wrap:anywhere}
.ac-player small{font-size:12px;color:#aab7ab;display:block;margin-top:3px}
.ac-player-icon{font-size:31px;line-height:1}.ac-player-badge{border:1px solid #344a37;border-radius:30px;
  padding:5px 9px;font-size:12px;font-weight:700;color:#bbdf9e;white-space:nowrap}
.ac-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:16px}
.ac-button{display:inline-flex;align-items:center;justify-content:center;padding:11px 14px;min-height:43px;
  border:1px solid #4b664d;border-radius:9px;background:#1c3022;color:#f4f9f1;
  font-size:14px;font-weight:800;text-decoration:none;transition:background .16s}
.ac-button:hover:not(:disabled){background:#29472e}
.ac-button.ac-green{background:#7fd12f;border-color:#7fd12f;color:#0a1809}
.ac-button.ac-green:hover:not(:disabled){background:#a1e754}
.ac-button.ac-small{font-size:13px;min-height:37px;padding:8px 11px}
.ac-autoflip{display:inline-flex;align-items:center;gap:7px;padding:8px 0;margin-left:auto;
  font-size:13px;color:#c4d1c3;white-space:nowrap}
.ac-autoflip input{accent-color:#7fd12f;width:18px;height:18px}
.ac-hint{font-size:13px;line-height:1.55;color:#acbcae;margin:11px 3px 0}
.ac-side{display:grid;gap:16px;min-width:0}
.ac-status{border:1px solid #538d42;background:linear-gradient(115deg,#15391f,#0b2114);
  border-radius:13px;padding:19px 20px;box-shadow:0 15px 30px #0004}
.ac-status strong{display:block;font-size:20px;line-height:1.3;color:#e9ffd7}
.ac-status span{display:block;color:#b4d5ae;font-size:14px;line-height:1.5;margin-top:6px}
.ac-info{padding:18px 20px}.ac-section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 16px}
.ac-section-title h2{margin:0;font-size:19px;color:#f5f7f3}
.ac-section-title a{color:#9de762;text-decoration:underline;text-underline-offset:3px;font-size:13px;font-weight:700}
.ac-quiet{font-size:12px;color:#aab7ab;white-space:nowrap}
.ac-callout{display:flex;gap:13px;border:1px solid rgba(127,209,47,.25);border-radius:11px;
  padding:16px;background:rgba(127,209,47,.07);line-height:1.45}
.ac-callout-icon{font-size:35px;line-height:1}.ac-callout strong{color:#d9ffc0;font-size:16px}
.ac-callout p{margin:7px 0 0;color:#c0d5bd;font-size:14px}
.ac-mini-rule{display:flex;align-items:flex-start;gap:12px;border-bottom:1px solid #ffffff12;
  padding:12px 2px;font-size:14px;color:#b9cbbb;line-height:1.4}
.ac-mini-rule:last-child{border:0}.ac-mini-rule>span{font-size:21px;color:#adee78}
.ac-history{max-height:255px;overflow:auto;color:#c7d7c7;font-size:14px}
.ac-history-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:9px 2px;
  border-bottom:1px solid rgba(255,255,255,.1)}
.ac-history-row:last-child{border:0}.ac-history-row strong{color:#fff}
.ac-lobby{padding:17px 19px;margin:0 0 16px}
.ac-lobby-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ac-lobby-heading h2{font-size:19px;margin:0 0 5px}.ac-lobby-heading p{font-size:14px;color:#bccdbd;margin:0}
.ac-pill{display:inline-flex;padding:6px 10px;border-radius:20px;color:#a9e88b;
  background:rgba(127,209,47,.13);font-size:12px;font-weight:800}
.ac-lobby-controls{display:flex;align-items:end;flex-wrap:wrap;gap:10px;margin:16px 0 11px}
.ac-code-label{display:grid;gap:5px;font-size:12px;color:#b3c8b3;font-weight:700}
.ac-code-label input{width:180px;max-width:100%;min-height:44px;border:1px solid #435d48;
  border-radius:9px;background:#0b190f;color:#f5f7f3;padding:10px 12px;
  font-size:16px;font-weight:850;letter-spacing:1.5px;text-transform:uppercase}
.ac-message{margin:6px 0 0;font-size:14px;color:#b6dba7;line-height:1.55;overflow-wrap:anywhere}
.ac-message.ac-error{color:#ffb8a7}
.ac-room-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:13px;
  padding-top:12px;border-top:1px solid #ffffff20;font-size:14px}
.ac-room-tools>span{margin-right:auto;color:#f4ffdf;font-weight:800}
.ac-restart-panel{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;
  gap:12px;padding:15px;margin-top:14px;border:1px solid #42663e;border-radius:12px;
  background:linear-gradient(115deg,rgba(24,52,27,.9),rgba(8,23,12,.96))}
.ac-restart-panel[hidden]{display:none}
.ac-restart-heading{flex:1 1 240px}
.ac-restart-heading strong{display:block;color:#ecffd4;font-size:16px}
.ac-restart-heading p{margin:6px 0 0;color:#c6d7c3;line-height:1.55;font-size:14px}
.ac-restart-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.ac-restart-actions button[hidden]{display:none}
.ac-guide-lead{display:flex;justify-content:space-between;align-items:center;gap:30px;padding:25px 30px;margin-bottom:18px;
  background:radial-gradient(circle at 80% 40%,rgba(127,209,47,.16),transparent 45%),rgba(6,17,9,.96)}
.ac-guide-lead h2{margin:9px 0;font-size:clamp(27px,3.3vw,40px)}
.ac-guide-lead p{color:#c4d5c0;line-height:1.65;max-width:730px;margin:0}
.ac-kicker,.ac-step{font-size:12px;font-weight:900;letter-spacing:1px;color:#90e657}
.ac-giant{font-size:clamp(65px,9vw,126px);line-height:1;color:#e8fcb5}
.ac-guide-layout{display:grid;grid-template-columns:minmax(300px,525px) minmax(300px,1fr);gap:18px;align-items:start}
.ac-demo-panel{padding:17px}.ac-demo-modes{display:flex;gap:4px;flex-wrap:wrap;margin-bottom:12px}
.ac-demo-modes button{padding:9px 11px;font-size:13px;background:#18301d}
.ac-demo-board{max-width:485px;margin:auto}
.ac-demo-board .ac-square{cursor:default}.ac-demo-board .ac-square:hover{filter:none}
.ac-demo-board .ac-square.demo-on{box-shadow:inset 0 0 0 2px #86bd65}
.ac-demo-board .ac-square.knight-on{box-shadow:inset 0 0 0 3px #e9ba54}
.ac-demo-dot{width:31%;height:31%;border-radius:50%;background:rgba(12,58,25,.55)}
.ac-guide-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.ac-guide-card{padding:20px;min-height:190px}.ac-guide-card h3{font-size:20px;margin:10px 0 8px}
.ac-guide-card p{margin:0;font-size:14px;line-height:1.65;color:#becfba}
.ac-guide-bottom{margin-top:18px;padding:24px}.ac-guide-bottom h2{margin:0 0 15px;font-size:25px}
.ac-guide-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 22px;margin-bottom:16px}
.ac-guide-facts p{margin:0;padding:12px 0;border-top:1px solid #ffffff20}
.ac-guide-facts strong{display:block;color:#def5c8;margin-bottom:4px}
.ac-guide-facts span{font-size:14px;line-height:1.5;color:#c2d0c1}
.ac-page [hidden]{display:none!important}
@media(max-width:1100px){
  .bgl-route-assassin-chess .site-header{flex-direction:column;align-items:stretch}
  .ac-columns{grid-template-columns:minmax(0,1fr) minmax(260px,.7fr)}
  .ac-guide-layout{grid-template-columns:1fr}.ac-demo-board{max-width:520px}
}
@media(max-width:820px){
  .ac-columns{grid-template-columns:1fr}.ac-side{grid-template-columns:1fr 1fr}
  .ac-status{grid-column:1 / -1}
  .ac-player{padding:9px}.ac-board-panel{padding:10px}
  .ac-piece{font-size:clamp(21px,6.6vw,43px)}
  .ac-piece.assassin{font-size:clamp(19px,5.5vw,37px)}
}
@media(max-width:600px){
  .ac-page{width:calc(100% - 18px);margin-top:8px}
  .ac-page-head{margin-top:8px;gap:14px}.ac-page-head h1{font-size:35px}
  .ac-outline{width:100%}.ac-side{grid-template-columns:1fr}
  .ac-controls{gap:6px}.ac-controls .ac-button{flex:1;padding:10px 8px;font-size:13px}
  .ac-autoflip{margin:0;width:100%}.ac-lobby{padding:13px}
  .ac-code-label{flex:1}.ac-code-label input{width:100%}
  .ac-board{border-width:1px}.ac-coordinate{font-size:8px}
  .ac-player strong{font-size:14px}.ac-player small{font-size:11px}
  .ac-player-badge{font-size:11px;padding:4px 7px}
  .ac-guide-lead{padding:18px;gap:12px}.ac-giant{font-size:55px}
  .ac-guide-steps,.ac-guide-facts{grid-template-columns:1fr}
  .ac-guide-card{min-height:0}.ac-guide-bottom{padding:17px}
}
