/* Boundless Pop: shared visual system */
:root{--pop-green:#a5e66d;--pop-blue:#85b9ff;--pop-violet:#c4a5ff;--pop-gold:#ffd27a}
body{background:#edf1f8} .topbar{background:#151c2b;box-shadow:0 5px 20px #101b2b22}.nav{height:auto;min-height:76px;flex-wrap:wrap;padding-block:12px}.navlinks{flex-wrap:wrap;gap:12px 18px}.mark{background:linear-gradient(145deg,#ffdf8c,#e8ae4d);box-shadow:0 4px 14px #e5b85c44}.hero{background:radial-gradient(ellipse at 90% 10%,#3d7964 0,transparent 55%),linear-gradient(125deg,#142a30,#203c35 65%,#21354b);color:#fff}.hero h1{color:#fff;letter-spacing:-.045em}.hero p{color:#d5e9e3}.hero .eyebrow{color:#a5e66d}.hero .btn:not(.secondary){background:#a5e66d;color:#182812;box-shadow:0 5px 0 #5b9c39}.hero .btn.secondary{color:#fff;background:#ffffff15;border:1px solid #ffffff55}.sectionhead h2{letter-spacing:-.035em}.card,.panel,.course{border-radius:18px;box-shadow:0 8px 24px #101b2b12}.card:not(.darkcard),.panel{border-top:3px solid #85b9ff}.grid>.card:nth-child(3n+1){border-top-color:#65b98a}.grid>.card:nth-child(3n+2){border-top-color:#a88ae8}.grid>.card:nth-child(3n){border-top-color:#e5b85c}.symbol{background:#e4f5e7;color:#276e4d}.grid>.card:nth-child(2) .symbol{background:#eee5ff;color:#6b43a7}.darkcard .symbol{background:#e5b85c;color:#182333}.btn,.navbtn,.buy,.purchase-now{border-radius:12px;transition:filter .16s,transform .16s}.btn:hover,.navbtn:hover,.buy:hover,.purchase-now:hover{filter:brightness(1.06);transform:translateY(-2px)}.btn:focus-visible,a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #6d9ff2;outline-offset:3px}.pop-links{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center}.pop-links a{color:#e0e9f7;text-decoration:none;font-weight:650;font-size:14px}.pop-links a:hover{color:#a5e66d}.pop-launch{background:#151c2b;padding:28px 0;color:#fff}.pop-launch h2{margin:0 0 16px;color:#fff}.pop-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.pop-tile{display:flex;flex-direction:column;gap:8px;padding:20px;border-radius:16px;text-decoration:none;color:#fff;background:var(--tile);border:1px solid #ffffff20;transition:transform .2s,filter .2s}.pop-tile:hover{transform:translateY(-4px);filter:brightness(1.12)}.pop-tile b{font-size:19px}.pop-tile span{color:var(--accent);font-size:14px}.pop-tile .pop-icon{font-size:36px;line-height:1.2}.pop-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(160px,28%);align-items:center;gap:24px}.pop-knight{font-size:clamp(100px,19vw,240px);line-height:1;text-align:center;color:#f4ce76;text-shadow:0 8px 0 #956923,0 18px 35px #0007;filter:drop-shadow(0 0 25px #a5e66d33);background:radial-gradient(circle,#ffffff12 0 45%,transparent 46%);border-radius:50%}.pop-hero-grid h1{max-width:850px}.paid-grid>.course:nth-child(1){border-top:5px solid #66bd8a}.paid-grid>.course:nth-child(2){border-top:5px solid #85b9ff}.paid-grid>.course:nth-child(3){border-top:5px solid #b49aef}.paid-grid>.course:nth-child(4){border-top:5px solid #e5b85c}.premium-dashboard>.card:nth-child(1){border-top-color:#66bd8a}.premium-dashboard>.card:nth-child(3){border-top-color:#b49aef}.arena-player{border-left:4px solid #85b9ff}.arena-player:nth-of-type(2){border-left-color:#a5e66d}.arena-controls{border-top:4px solid #b49aef!important}#botReset{background:#a5e66d;color:#182812}#gameReview{border-top:4px solid #a5e66d}body.pop-community{background:radial-gradient(ellipse at 10% 0,#283a57,transparent 45%),radial-gradient(ellipse at 90% 20%,#254a3e,transparent 40%),#151c2b}body.pop-community main>nav{background:#202b3c}body.pop-community #dashboard>section.card{border-top:3px solid #85b9ff}body.pop-community .community-grid>section:first-child{border-top:3px solid #a5e66d}body.pop-community .community-grid>section:last-child{border-top:3px solid #c4a5ff}body.pop-community .time-modes section:nth-child(1){border-left:4px solid #ffd27a}body.pop-community .time-modes section:nth-child(2){border-left:4px solid #f1a56c}body.pop-community .time-modes section:nth-child(3){border-left:4px solid #a5e66d}body.pop-community .time-modes section:nth-child(4){border-left:4px solid #85b9ff}body.pop-community #join{background:#a5e66d!important}body.pop-community #profileHeader:not(.founder):not(.has-banner){background-image:linear-gradient(120deg,#17624c,#315a8c 60%,#674c92)}@media(max-width:800px){.pop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pop-hero-grid{grid-template-columns:1fr}.pop-knight{display:none}.navlinks{gap:8px 12px}}@media(max-width:420px){.pop-tile{padding:14px}.pop-tile b{font-size:16px}}@media(prefers-reduced-motion:reduce){.pop-tile,.btn,.navbtn,.buy,.purchase-now{transition:none}.pop-tile:hover,.btn:hover,.navbtn:hover{transform:none}}
/* Refine the approved homepage concept without changing lesson board colors. */
body:not(.pop-community):has(#popLaunch){background:#141821}
body:has(#popLaunch) .hero:not(.learning-hero){padding:32px 0;background:#141821}
body:has(#popLaunch) .pop-hero-grid{background:radial-gradient(circle at 85% 40%,#417b59 0,transparent 42%),linear-gradient(120deg,#203d35,#23483d);border:1px solid #527a60;border-radius:24px;padding:clamp(24px,5vw,60px);max-width:1112px;width:calc(100% - 40px);box-shadow:0 18px 45px #0004}
.pop-hero-grid h1{font-size:clamp(38px,5.8vw,72px);line-height:1.04;margin:12px 0 20px}
.pop-hero-grid .heroactions .btn:first-child{font-size:18px;padding:15px 24px}
.pop-launch{background:#141821;padding:12px 0 40px}
.pop-launch .pop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.pop-tile{min-height:148px;padding:24px;border-radius:18px}
.pop-tile .pop-icon{font-size:42px}
.pop-tile b{font-size:22px}
.pop-tile span{font-size:15px}
body:has(#popLaunch) .topbar{background:#141821}
body:has(#popLaunch) .topbar .navbtn{background:#a5e66d;color:#172510}
body:has(#popLaunch) #learn{background:#edf1f8}
@media(max-width:600px){.pop-launch .pop-grid{gap:10px}.pop-tile{min-height:132px;padding:14px}.pop-tile b{font-size:17px}.pop-tile span{font-size:13px}.pop-hero-grid .heroactions{flex-wrap:wrap}.pop-hero-grid .heroactions .btn{max-width:100%}}

.bca-nav{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;background:#171c26;color:#f3f6fb;padding:10px 16px;position:relative;z-index:20;border-bottom:1px solid #3a4557}.bca-nav>a,.bca-nav summary{display:flex;align-items:center;gap:8px;padding:10px 14px;border-radius:10px;font-weight:700;text-decoration:none;color:#f3f6fb;cursor:pointer;font-size:14px;list-style:none}.bca-nav summary::-webkit-details-marker{display:none}.bca-nav summary:after{content:"▾";font-size:10px}.bca-nav span{color:#a5e66d;font-size:20px;line-height:1}.bca-nav details{position:relative}.bca-nav details>div{position:absolute;top:100%;left:0;min-width:190px;background:#253044;border:1px solid #526175;border-radius:12px;padding:8px;box-shadow:0 12px 25px #0005}.bca-nav details a{display:block;padding:12px;color:#f3f6fb;text-decoration:none;border-radius:8px;font-size:14px}.bca-nav a:hover,.bca-nav summary:hover,.bca-nav details[open]>summary{background:#35465b}.bca-nav a:focus-visible,.bca-nav summary:focus-visible{outline:3px solid #a5e66d}.bca-nav [aria-current=page]{background:#34543c;color:#c7f6a9}#playOnline,#myProfile,#course-path,#openings,#player-center,#live,#paid-courses{scroll-margin-top:110px}.bca-nav+main{padding-top:12px}@media(max-width:700px){body{padding-bottom:calc(76px + env(safe-area-inset-bottom))}.bca-nav{position:fixed;bottom:0;left:0;right:0;top:auto;flex-wrap:nowrap;justify-content:space-around;gap:0;padding:6px 2px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #526175;z-index:100}.bca-nav>a,.bca-nav summary{flex-direction:column;gap:4px;font-size:11px;padding:8px 5px;white-space:nowrap}.bca-nav summary:after{display:none}.bca-nav details>div{top:auto;bottom:100%;left:50%;transform:translateX(-50%);min-width:160px}.bca-nav span{font-size:23px}.bca-nav details:nth-of-type(3)>div{left:auto;right:-35px;transform:none}}

#player-center{background:radial-gradient(ellipse at 90% 0,#263e55,transparent 55%),#141821;color:#f2f5fa}
#player-center .sectionhead h2,#player-center h3{color:#f2f5fa}
#player-center .sectionhead p,#player-center .status,#player-center .source,#player-center .disclaimer,#player-center .pending p{color:#c2cedd}
#player-center .eyebrow{color:#a5e66d}
#player-center .playergrid{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
#player-center .panel,#player-center .pending{background:#202a38;color:#f2f5fa;border:1px solid #43546a;border-radius:18px;padding:clamp(16px,3vw,28px)}
#player-center .panel{border-top:4px solid #a5e66d;min-width:0}
#player-center .lookup{display:flex;flex-wrap:wrap;gap:10px;margin:20px 0 12px}
#player-center .lookup input{flex:1;min-width:0;background:#151c27;color:#fff;border:1px solid #60718a;border-radius:12px;padding:14px}
#player-center .lookup input::placeholder{color:#aebaca}
#player-center #usChessButton{background:#a5e66d;color:#182812;border-radius:12px}
#player-center .result{background:#171f2c;border:1px solid #43546a;border-radius:16px;padding:18px;margin-top:18px}
#player-center .profiletop{background:linear-gradient(120deg,#244c42,#304b70);padding:20px;border-radius:12px;margin-bottom:18px}
#player-center .profiletop .avatar{background:#182a32;color:#ffd27a;border:2px solid #ffd27a}
#player-center .profiletop p{color:#d9e4f1}
#player-center .ratinggrid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#player-center .rating{background:#232f40;border:1px solid #45566c;border-top:4px solid var(--rating-accent);border-radius:12px;padding:16px;min-width:0}
#player-center .rating:nth-child(3n+1){--rating-accent:#a5e66d}
#player-center .rating:nth-child(3n+2){--rating-accent:#85b9ff}
#player-center .rating:nth-child(3n){--rating-accent:#ffd27a}
#player-center .rating small{color:#c2cedd;display:block}
#player-center .rating strong{color:var(--rating-accent);font-size:clamp(20px,3vw,32px);font-variant-numeric:tabular-nums}
#player-center .cardlink,#player-center .source a,#player-center .pending a{color:#a9d1ff}
#player-center .rating-board{background:#171f2c;border:1px solid #43546a;border-radius:16px;padding:16px;margin-top:24px}
#player-center .rating-board-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
#player-center .rating-board-head strong{font-size:20px;color:#ffd27a}
#player-center .rating-board-head button{background:#35465b;color:#fff;border:1px solid #60718a}
#player-center .uschess-table-wrap{overflow:auto;max-width:100%;border:1px solid #43546a;border-radius:10px}
#player-center .uschess-table{width:100%;border-collapse:collapse;min-width:680px;color:#e7eef8;background:#202a38}
#player-center .uschess-table th,#player-center .uschess-table td{padding:12px 10px;border-bottom:1px solid #43546a;font-variant-numeric:tabular-nums}
#player-center .uschess-table thead th{background:#30435b;color:#e7eef8}
#player-center .uschess-table tbody tr:nth-child(even){background:#263347}
#player-center .uschess-table tbody tr:hover{background:#35465b}
#player-center .uschess-table tbody td:nth-child(2){color:#a5e66d;font-weight:800}
#player-center .pending{border-left:4px solid #c4a5ff}
#player-center .disclaimer{background:#283344;border:1px solid #53627a;border-radius:10px;padding:12px}
@media(max-width:600px){#player-center .ratinggrid{grid-template-columns:repeat(2,minmax(0,1fr))}#player-center .rating{padding:12px}#player-center .lookup input{flex-basis:100%}#player-center #usChessButton{width:100%}}

/* Boundless game rooms */
body:has(.arena-grid){background:radial-gradient(ellipse at 15% 0,#29483d,transparent 45%),#141821;color:#edf3fa}
body:has(.arena-grid) #practice{background:transparent}
body:has(.arena-grid) #practice h2,body:has(.arena-grid) #practice h3{color:#edf3fa}
body:has(.arena-grid) #practice .eyebrow{color:#a5e66d}
body:has(.arena-grid) .arena-controls,body:has(.arena-grid) #gameReview{background:#202a38;color:#edf3fa;border:1px solid #43546a}
body:has(.arena-grid) .arena-controls select,body:has(.arena-grid) .arena-toolbar select{background:#151c27;color:#edf3fa;border:1px solid #60718a;border-radius:8px;padding:8px}
body:has(.arena-grid) .btn.secondary{background:#35465b;color:#edf3fa;border:1px solid #60718a}
.arena-board,#game{background:linear-gradient(145deg,#26394a,#1b2634);border:1px solid #43546a;border-radius:18px;padding:clamp(8px,2vw,18px);box-shadow:0 12px 30px #0003}
#botBoard,#reviewBoard,.community-board,.lesson-board{outline:3px solid #394e50;border-radius:5px;overflow:hidden;box-shadow:0 8px 20px #0004}
#botBoard button,#reviewBoard button,.community-board button{border-radius:0}
#botBoard button:focus-visible,#reviewBoard button:focus-visible,.community-board button:focus-visible{outline:3px solid #ffd27a;outline-offset:-3px;z-index:1}
.arena-player,#game #opponent,#game #player{background:#172230;border:1px solid #43546a;border-left:4px solid #85b9ff;border-radius:10px;padding:12px;color:#edf3fa;font-variant-numeric:tabular-nums}
#game[data-turn=player] #player,#game[data-turn=opponent] #opponent{border-left-color:#a5e66d;background:#294638}
#game[data-mode=bullet]{border-color:#ffd27a}#game[data-mode=blitz]{border-color:#f1a56c}#game[data-mode=rapid]{border-color:#a5e66d}#game[data-mode=classical]{border-color:#85b9ff}
#game #turn,#botStatus{color:#c7f6a9;font-weight:700}
.community-board button[data-piece-color=white]{text-shadow:0 1px 2px #172230,0 0 1px #172230!important}
.community-board button[data-piece-color=black]{text-shadow:0 1px 1px #fff6!important}
.time-modes section:nth-child(1){background:linear-gradient(125deg,#493923,#242c38)}
.time-modes section:nth-child(2){background:linear-gradient(125deg,#48312b,#242c38)}
.time-modes section:nth-child(3){background:linear-gradient(125deg,#25473b,#242c38)}
.time-modes section:nth-child(4){background:linear-gradient(125deg,#293954,#242c38)}
.chart-panel{background:#172230;border:1px solid #43546a;border-radius:16px;padding:16px;margin:16px 0;min-width:0}
.chart-panel svg{display:block;width:100%;height:auto}.chart-tabs{display:flex;flex-wrap:wrap;gap:6px}.chart-tabs button{flex:1;min-width:65px;text-transform:capitalize}
#live{background:radial-gradient(ellipse at 80% 0,#3b3053,transparent 65%),#141821;color:#edf3fa}
#live h2,#live h3,#live .sectionhead p{color:#edf3fa}#live .eyebrow{color:#c4a5ff}
#live .livewrap{background:#202a38;border:1px solid #43546a;border-radius:18px;padding:16px}
#live .liveframe{border-radius:12px;overflow:hidden}

.tv-side{position:fixed;right:12px;top:45%;z-index:25;display:flex;align-items:center;gap:8px;padding:12px 15px;background:linear-gradient(125deg,#654b9b,#354d80);border:1px solid #b69ce8;border-radius:12px;color:#fff;text-decoration:none;font:700 14px system-ui;box-shadow:0 6px 20px #0005}.tv-side:hover{filter:brightness(1.15)}.tv-side span:first-child{font-size:22px;color:#e4d2ff}.tv-side:focus-visible{outline:3px solid #ffd27a}
body:has(#popLaunch) .section.white:not(#player-center),body:has(#popLaunch) #learn,body:has(#popLaunch) .section:not(#player-center){background:#1b2432;color:#e9eff8}
body:has(#popLaunch) .section .sectionhead h2,body:has(#popLaunch) .section h3,body:has(#popLaunch) .section h2{color:#edf3fa}
body:has(#popLaunch) .section .sectionhead p{color:#c2cedd}
body:has(#popLaunch) .section .card:not(.darkcard),body:has(#popLaunch) .section .panel:not(#player-center .panel),body:has(#popLaunch) .section .step{background:#263344;color:#edf3fa;border-color:#46566b}
body:has(#popLaunch) .section .status,body:has(#popLaunch) .section .source{color:#c2cedd}
body:has(#popLaunch) .section .btn.secondary{color:#edf3fa;border-color:#71829b;background:#35465b}
body:has(#popLaunch) .section .cardlink{color:#a9d1ff}
@media(max-width:900px){.tv-side{top:auto;bottom:90px;right:10px;padding:9px 12px;font-size:12px}}

.account-top{display:flex;gap:8px;align-items:center;justify-content:flex-end;margin-left:auto;flex-wrap:wrap}.account-top a{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:10px;text-decoration:none;font:700 14px system-ui;color:#edf3fa;border:1px solid #60718a;background:#263344}.account-top .account-create{background:#a5e66d;color:#182812;border-color:#a5e66d}.account-top a:hover{filter:brightness(1.12)}.account-strip{display:flex;align-items:center;justify-content:space-between;background:#171c26;padding:12px 24px;color:#ffd27a}.account-strip>a{color:#ffd27a;text-decoration:none;font-weight:800}#studentAccount.account-panel{max-width:520px!important;margin:16px 24px 16px auto!important;padding:20px!important;background:#202a38;color:#edf3fa;border:1px solid #526175!important;border-radius:16px;scroll-margin-top:120px}#studentAccount.account-panel:not(:target):not(.account-open){display:none}#studentAccount.account-panel .card{background:transparent;color:inherit;border:0;padding:0;box-shadow:none}#studentAccount.account-panel h2{margin-top:0;color:#edf3fa}#studentAccount.account-panel label{display:block;margin:12px 0}#studentAccount.account-panel input{display:block;width:100%;background:#151c27;color:#fff;border:1px solid #60718a;border-radius:10px;padding:12px;margin-top:5px}#studentAccount.account-panel button{background:#a5e66d;color:#182812;border:0;border-radius:10px;padding:10px 16px;font-weight:700;margin:5px 4px 5px 0;cursor:pointer}#studentAccount.account-panel button[value=login]{background:#35465b;color:#fff}#studentAccount.account-panel [hidden]{display:none!important}.account-close{float:right;background:#35465b!important;color:#fff!important}@media(max-width:600px){.account-top a{font-size:12px;padding:9px 10px}.account-strip{padding:10px 12px}.account-strip>a{font-size:13px}#studentAccount.account-panel{margin:12px!important;max-width:none!important}}

/* Prominent homepage TV shortcut, without covering the game board. */
body:has(#popLaunch) .tv-side{left:14px;right:auto;top:45%;padding:16px 20px;font-size:17px;gap:12px;border-radius:15px;box-shadow:0 8px 24px #0006}
body:has(#popLaunch) .tv-side span:first-child{font-size:28px}
@media(max-width:1450px){body:has(#popLaunch) .tv-side{position:relative;top:auto;left:auto;right:auto;bottom:auto;margin:14px auto 14px 24px;width:max-content;max-width:calc(100% - 48px)}}
@media(max-width:600px){body:has(#popLaunch) .tv-side{margin:12px auto 12px 12px;padding:12px 16px;font-size:15px}}

body:has(#popLaunch) .tv-side{flex-direction:column;justify-content:center;text-align:center;gap:8px;min-width:148px;padding:20px 16px;background:linear-gradient(145deg,#7655b1,#533d83);border-radius:16px}
body:has(#popLaunch) .tv-side span:first-child{font-size:36px;line-height:1.1}
@media(min-width:1451px){body:has(#popLaunch) .tv-side{top:200px;left:14px}}
@media(max-width:1450px){body:has(#popLaunch) .tv-side{flex-direction:row;min-width:0;padding:14px 20px}}

.account-top .signed-indicator{background:#294638;color:#c7f6a9;border:1px solid #70b887}.account-top button{background:#263344;color:#edf3fa;border:1px solid #60718a;border-radius:10px;padding:10px 14px;font:700 14px system-ui;cursor:pointer}.account-top>span{color:#c2cedd;font-size:12px}

body:has(#popLaunch) .tv-combined{max-width:170px;flex-direction:column;white-space:normal} .tv-combined .tv-rating-label{display:flex;flex-direction:column;align-items:center;gap:5px;border-top:1px solid #b69ce8;padding-top:10px;font-size:13px;line-height:1.35;color:#fff}.tv-combined .tv-rating-label span:first-child{font-size:25px;color:#ffd27a}@media(max-width:1450px){body:has(#popLaunch) .tv-combined{max-width:calc(100% - 48px);flex-direction:row;flex-wrap:wrap}.tv-combined .tv-rating-label{border-top:0;border-left:1px solid #b69ce8;padding:0 0 0 12px}}

.tv-side .tv-subtitle{display:block;font-size:11px;line-height:1.4;color:#e4d2ff;font-weight:600;margin-top:5px;max-width:150px}.tv-side span:last-child{line-height:1.3}#player-center .lookup input{min-height:48px;font-size:16px}#player-center .lookup button{min-height:48px}#player-center .lookup input:focus{outline:2px solid #a5e66d;outline-offset:2px}
