@layer halo-board {
#halo-board-arena{--hb-bg:#14282e;--hb-card:#203a40;--hb-text:#ebf3ef;--hb-muted:#9bb4b2;--hb-accent:#b3d7c8;position:fixed!important;inset:0!important;z-index:1200!important;display:block!important;overflow:auto!important;background:radial-gradient(ellipse at 20% 10%,#38564c88,transparent 65%),var(--hb-bg)!important;color:var(--hb-text)!important;padding:max(10px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;box-sizing:border-box!important;font:14px/1.4 system-ui,sans-serif!important}
#halo-board-arena[hidden],#halo-board-arena [hidden],.hb-config [hidden]{display:none!important}:root[data-theme=light] #halo-board-arena{--hb-bg:#e5efeb;--hb-card:#f7fbf9;--hb-text:#24453f;--hb-muted:#5c7971;--hb-accent:#537f6e}
#halo-board-arena *{box-sizing:border-box!important}#halo-board-arena button,.hb-config button{min-height:44px!important;border-radius:14px!important;border:1px solid #88aca54d!important;background:#8cbcaf18!important;color:inherit!important;padding:8px 14px!important;cursor:pointer!important;font:600 13px/1.3 system-ui,sans-serif!important;box-shadow:none!important;touch-action:manipulation!important}#halo-board-arena button:disabled,.hb-config button:disabled{opacity:.5!important;cursor:not-allowed!important}#halo-board-arena button:focus-visible,.hb-config :focus-visible{outline:3px solid #d9bd7c!important;outline-offset:3px!important}
#halo-board-arena .hb-top{display:flex!important;align-items:center!important;gap:12px!important;max-width:1200px!important;margin:0 auto 16px!important;padding:10px 12px!important;border-radius:22px!important;border:1px solid #7daca63b!important;background:var(--hb-card)!important}#halo-board-arena .hb-top>div{flex:1!important;min-width:0!important}#halo-board-arena .hb-top h2{font-size:20px!important;line-height:1.2!important;margin:1px 0!important;color:var(--hb-text)!important}#halo-board-arena .hb-top small{font-size:9px!important;letter-spacing:2px!important;color:var(--hb-muted)!important}#halo-board-arena .hb-balance{font-variant-numeric:tabular-nums!important;white-space:nowrap!important;color:var(--hb-accent)!important}
#halo-board-arena .hb-shell{display:grid!important;grid-template-columns:minmax(0,780px) 260px!important;gap:24px!important;max-width:1100px!important;margin:auto!important}#halo-board-arena .hb-shell>main{min-width:0!important}#halo-board-arena .hb-side{border-radius:22px!important;background:var(--hb-card)!important;padding:20px!important;align-self:start!important;border:1px solid #7daca63b!important}.hb-mode{font-size:11px!important;letter-spacing:1px!important;text-transform:uppercase!important;color:var(--hb-accent)!important;margin-bottom:14px!important}.hb-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important}.hb-rules{font-size:12px!important;line-height:1.7!important;color:var(--hb-muted)!important;margin:20px 0!important}.hb-history{max-height:240px!important;overflow:auto!important;padding-left:0!important;list-style:none!important;font-variant-numeric:tabular-nums!important;font-size:13px!important}.hb-history li{padding:5px 0!important;border-bottom:1px solid #7ba79a25!important}.hb-network{font-size:12px!important;color:var(--hb-accent)!important;overflow-wrap:anywhere!important}.hb-status{min-height:36px!important;margin-top:12px!important;padding:8px!important;text-align:center!important;font-size:15px!important;font-weight:650!important}
#halo-board-arena .hb-clocks{display:flex!important;gap:8px!important;margin-bottom:10px!important}#halo-board-arena .hb-clocks>div{flex:1!important;text-align:center!important;background:var(--hb-card)!important;padding:10px 6px!important;border-radius:14px!important;border:1px solid transparent!important;font-size:16px!important;font-weight:650!important;font-variant-numeric:tabular-nums!important;min-width:0!important}#halo-board-arena .hb-clocks .active{border-color:#9fcab3!important;background:#74a78d28!important}#halo-board-arena .hb-clocks>div:last-child{font-size:13px!important;flex:.8!important}
#halo-board-arena .hb-chess-stage{width:100%!important;position:relative!important;border-radius:26px!important;overflow:hidden!important;background:radial-gradient(ellipse,#355952,#18353b)!important;border:1px solid #8caaa83d!important;box-shadow:0 20px 45px #0a202455!important}#halo-board-arena .hb-three{height:min(70vh,640px)!important;min-height:280px!important;width:100%!important}#halo-board-arena .hb-three canvas{display:block!important;width:100%!important;height:100%!important}#halo-board-arena .hb-chess-grid{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;aspect-ratio:1!important;width:100%!important;padding:12px!important;border-radius:18px!important;background:#203c3e!important}#halo-board-arena .hb-chess-grid button{position:relative!important;width:100%!important;min-height:0!important;height:100%!important;border-radius:0!important;padding:0!important;border:0!important;aspect-ratio:1!important;font:clamp(26px,5vw,64px)/1 Georgia,serif!important;overflow:visible!important}#halo-board-arena .hb-chess-grid .light{background:#e7e1cb!important}#halo-board-arena .hb-chess-grid .dark{background:#477469!important}#halo-board-arena .hb-chess-grid .piece-w{color:#fff8dd!important;text-shadow:1px 2px #705f37,0 0 2px #705f37!important}#halo-board-arena .hb-chess-grid .piece-b{color:#223b40!important;text-shadow:1px 2px #6c9e94!important}#halo-board-arena .hb-chess-grid .selected{outline:3px solid #eed091!important;outline-offset:-3px!important}#halo-board-arena .hb-chess-grid .legal:after{content:''!important;position:absolute!important;width:17%!important;height:17%!important;border-radius:50%!important;background:#174b45aa!important;left:42%!important;top:42%!important}#halo-board-arena .hb-chess-grid[data-board=marble] .light{background:#f4eee3!important}#halo-board-arena .hb-chess-grid[data-board=marble] .dark{background:#929c9f!important}#halo-board-arena .hb-chess-grid[data-board=walnut] .light{background:#dcbc91!important}#halo-board-arena .hb-chess-grid[data-board=walnut] .dark{background:#7b5748!important}#halo-board-arena .hb-chess-grid[data-board=obsidian] .light{background:#9da8be!important}#halo-board-arena .hb-chess-grid[data-board=obsidian] .dark{background:#333a52!important}#halo-board-arena .hb-chess-grid[data-pieces=gold] .piece-b{color:#82632d!important}#halo-board-arena .hb-chess-grid[data-pieces=rose] .piece-b{color:#99596f!important}#halo-board-arena .hb-chess-grid[data-pieces=cobalt] .piece-b{color:#47659a!important}
#halo-board-arena .hb-solitaire{--card-h:clamp(64px,10vw,130px);padding:18px!important;border-radius:24px!important;background:radial-gradient(ellipse at center,#2f6960,#17473e)!important;border:1px solid #82bbaa4d!important;min-height:550px!important;color:#eaf1e6!important;overflow:hidden!important;box-shadow:0 18px 45px #0a232633!important}#halo-board-arena .hb-solitaire[data-table=royal]{background:radial-gradient(ellipse,#58547b,#35334d)!important}#halo-board-arena .hb-solitaire[data-table=midnight]{background:radial-gradient(ellipse,#354858,#182936)!important}#halo-board-arena .hb-solitaire[data-table=jade]{background:radial-gradient(ellipse,#518774,#245347)!important}.hb-card-score{font-size:12px!important;margin-bottom:20px!important;min-height:18px!important}.hb-card-top,.hb-card-columns{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:8px!important}.hb-card-top{margin-bottom:24px!important}.hb-card-column{position:relative!important;min-height:var(--card-h)!important;margin-bottom:var(--card-h)!important}.hb-card-column .hb-card{position:absolute!important;left:0!important;right:0!important}
#halo-board-arena .hb-card{height:var(--card-h)!important;min-height:0!important;width:100%!important;border-radius:8px!important;padding:6px!important;background:#f6f2e7!important;border:1px solid #ebdfc0!important;box-shadow:1px 3px 5px #051b2855!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;align-items:flex-start!important;font:600 14px/1 Georgia,serif!important;color:#244038!important;overflow:hidden!important}#halo-board-arena .hb-card small{font-size:clamp(9px,1.5vw,16px)!important;font-weight:700!important;line-height:1!important}#halo-board-arena .hb-card small:last-child{align-self:flex-end!important;transform:rotate(180deg)!important}#halo-board-arena .hb-card strong{align-self:center!important;font-size:clamp(15px,3vw,33px)!important}#halo-board-arena .hb-card.red{color:#b95362!important}#halo-board-arena .hb-card.hb-card-back{background:repeating-linear-gradient(45deg,#548b91 0 3px,#376874 4px 8px)!important;color:#d8e7dd!important;align-items:center!important;justify-content:center!important;border:3px solid #dfe7d6!important;font-size:24px!important}#halo-board-arena .hb-card.hb-card-empty{background:#0f343644!important;border:1px dashed #acd2b466!important;box-shadow:none!important;color:#aed2bb88!important;align-items:center!important;justify-content:center!important;font-size:22px!important}#halo-board-arena .hb-card.selected{outline:3px solid #f1cf86!important;outline-offset:1px!important;transform:translateY(-5px)!important}#halo-board-arena .hb-card:disabled{opacity:1!important}#halo-board-arena .hb-solitaire[data-back=solar] .hb-card-back{background:repeating-linear-gradient(45deg,#c29b54 0 4px,#927346 5px 9px)!important}#halo-board-arena .hb-solitaire[data-back=rose] .hb-card-back{background:repeating-linear-gradient(45deg,#b98091 0 4px,#835c79 5px 9px)!important}#halo-board-arena .hb-solitaire[data-back=aurora] .hb-card-back{background:repeating-linear-gradient(45deg,#69999a 0 4px,#7387a5 5px 9px)!important}#halo-board-arena .hb-solitaire[data-face=clean] .hb-card:not(.hb-card-back){font-family:system-ui,sans-serif!important;border-radius:12px!important}#halo-board-arena .hb-solitaire[data-face=serif] .hb-card:not(.hb-card-back){font-family:Georgia,serif!important;background:#f3ead1!important}
.hb-config{width:min(540px,calc(100vw - 24px))!important;box-sizing:border-box!important;padding:26px!important;border:1px solid #8aada747!important;border-radius:26px!important;background:#20393f!important;color:#e6f1eb!important;box-shadow:0 24px 80px #071f36aa!important;font:14px/1.5 system-ui,sans-serif!important}.hb-config::backdrop{background:#081b2b99!important;backdrop-filter:blur(5px)!important}.hb-config h2{font-size:26px!important;line-height:1.2!important;margin:8px 0 14px!important}.hb-config p{color:#aec7bd!important}.hb-config label{display:grid!important;gap:7px!important;margin:18px 0!important;font-weight:600!important}.hb-config select{width:100%!important;min-height:46px!important;font-size:16px!important;padding:8px 12px!important;border-radius:12px!important;background:#142c34!important;color:#edf4ee!important;border:1px solid #72978b66!important}.hb-config form>div{display:flex!important;gap:10px!important;flex-wrap:wrap!important}.hb-config .hb-start,.hb-config button[value=accepted]{background:#b6d9c9!important;color:#25483d!important}:root[data-theme=light] .hb-config{background:#f4f9f5!important;color:#25453b!important}:root[data-theme=light] .hb-config select{background:white!important;color:#25453b!important}:root[data-theme=light] .hb-config p{color:#57756b!important}
@media(max-width:850px){#halo-board-arena .hb-shell{grid-template-columns:minmax(0,1fr)!important;max-width:700px!important;gap:14px!important}#halo-board-arena .hb-side{padding:16px!important}.hb-history{max-height:120px!important}#halo-board-arena .hb-three{height:clamp(280px,70vw,550px)!important}.hb-rules{margin:10px 0!important}}
@media(max-width:440px){#halo-board-arena{padding-inline:8px!important}#halo-board-arena .hb-top{gap:6px!important;padding:8px!important;margin-bottom:10px!important}#halo-board-arena .hb-top h2{font-size:16px!important}#halo-board-arena .hb-top button{padding:8px!important;font-size:12px!important}#halo-board-arena .hb-top small{letter-spacing:1px!important;font-size:8px!important}#halo-board-arena .hb-balance{font-size:12px!important}#halo-board-arena .hb-clocks>div{font-size:13px!important;padding:9px 3px!important}#halo-board-arena .hb-solitaire{padding:10px!important;--card-h:66px;min-height:430px!important}.hb-card-top,.hb-card-columns{gap:4px!important}#halo-board-arena .hb-card{padding:3px!important;border-radius:5px!important}.hb-card-score{font-size:10px!important}#halo-board-arena .hb-chess-grid{padding:6px!important}#halo-board-arena .hb-chess-grid button{font-size:32px!important}.hb-config{padding:20px!important}}
@media(prefers-reduced-motion:reduce){#halo-board-arena *{animation:none!important;transition:none!important}}
#halo-board-arena [hidden]{display:none!important}
}
