
.game-dashboard{padding:28px 0 54px;background:linear-gradient(180deg,#fbf8f2 0%,#f3eee6 100%)}
.dashboard-shell{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(340px,.9fr);gap:24px;align-items:start}
.dashboard-main{display:grid;gap:22px}
.dashboard-card{background:rgba(255,255,255,.94);border:1px solid #e8d9c4;border-radius:28px;box-shadow:0 14px 36px rgba(74,53,30,.08)}
.dashboard-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}
.dashboard-section-head h1,.dashboard-section-head h2{margin:0 0 8px;color:#19295f;letter-spacing:-.04em}
.dashboard-section-head h1{font-size:clamp(34px,4vw,52px)}
.dashboard-section-head h2{font-size:clamp(28px,3vw,40px)}
.dashboard-section-head p{margin:0;color:#5f769d;font-size:15px;line-height:1.6;max-width:760px}
.side-head{margin-bottom:20px}.side-head h2{font-size:clamp(30px,3vw,48px)}
.opponent-hub{padding:26px}
.bot-selector-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.bot-selector-card{appearance:none;border:1px solid #dbe5f3;background:linear-gradient(180deg,#fefefe 0%,#f4f7fb 100%);border-radius:20px;padding:12px 10px 14px;display:grid;justify-items:center;gap:8px;transition:border-color .2s, box-shadow .2s, transform .2s;color:#182657}
.bot-selector-card:hover{border-color:#8aaef6;box-shadow:0 8px 18px rgba(77,115,182,.15);transform:translateY(-2px)}
.bot-selector-card.is-active{border:3px solid #2d72ea;padding:10px 8px 12px;box-shadow:0 12px 24px rgba(45,114,234,.18)}
.bot-selector-card img{width:min(100%,92px);aspect-ratio:1;object-fit:cover;border-radius:18px;background:#edf3fb}
.bot-selector-card strong{font-size:17px;line-height:1.1;color:#172858}
.bot-selector-badge,.bot-card-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:7px 13px;font-size:12px;font-weight:800;line-height:1}
.tier-beginner{background:#dff3e2;color:#24703a}.tier-easy{background:#ffd7df;color:#c13e58}.tier-intermediate{background:#d8e8ff;color:#2f68d2}.tier-advanced{background:#ffe3ca;color:#db5c16}.tier-expert{background:#fae7b7;color:#9d6a08}.tier-master{background:#ebd5ff;color:#8b42da}
.board-arena{display:grid;grid-template-columns:minmax(0,1.65fr) 260px;gap:18px;padding:24px}
.board-stage{background:linear-gradient(180deg,#f7fafc 0%,#f2f5f8 100%);border:1px solid #e0e7ef;border-radius:24px;padding:16px}
.top-strip,.bottom-strip{margin:0 0 14px}.bottom-strip{margin:14px 0 0}
.board-stage .board-frame{max-width:none}
.arena-sidebar{display:grid;gap:14px;align-content:start}
.sidebar-card{background:linear-gradient(180deg,#fefefe 0%,#f7f8fb 100%);border:1px solid #dfe7f1;border-radius:20px;padding:16px;box-shadow:0 10px 22px rgba(75,101,140,.08)}
.active-bot-card{display:grid;grid-template-columns:84px minmax(0,1fr);gap:14px;align-items:center}.active-bot-card img{width:84px;height:84px;object-fit:cover;border-radius:18px;background:#edf2fa}.active-bot-card h2{font-size:22px;margin:0 0 8px;color:#17295b}.active-bot-card p{font-size:13px;color:#5f7598;margin:10px 0 0;line-height:1.45}
.turn-pill{display:inline-flex;align-items:center;gap:10px;font-weight:800;color:#15214d;background:#fff;border:1px solid #e2e8f2;border-radius:999px;padding:8px 12px;margin-top:12px}.turn-dot{width:14px;height:14px;border-radius:50%;background:#de2424;box-shadow:0 0 0 3px #f8dddd inset}
.compact-field-row{display:grid;grid-template-columns:1fr;gap:12px}.compact-field label{display:block;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#7a8baa;margin-bottom:6px;font-weight:800}.compact-field select{width:100%;min-height:46px;border-radius:12px;border:1px solid #d6e0ec;background:#0e1220;color:#fff;padding:.8rem .9rem;font-weight:700}.hidden-opponent-field{display:none}
.game-actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:0}.game-actions-grid .button{width:100%;min-height:54px;border-radius:16px}.game-actions-grid .button.secondary{background:linear-gradient(180deg,#fffefb 0%,#f3f5f8 100%)}
.info-card h2{font-size:17px;margin:0 0 14px;color:#19295f}.info-list{display:grid;gap:10px;margin-bottom:14px}.info-list div{display:flex;justify-content:space-between;gap:10px;padding-bottom:10px;border-bottom:1px solid #e8edf4}.info-list div:last-child{padding-bottom:0}.info-list span{font-size:14px;color:#61789b}.info-list strong{font-size:15px;color:#1a2a5d;text-align:right}
.metrics-vertical{display:grid;grid-template-columns:1fr;gap:10px}.metrics-vertical .stat{background:#fff;border:1px solid #e3e9f1;border-radius:16px;padding:14px}.metrics-vertical .stat span{font-size:11px;color:#8292ae;letter-spacing:.08em}.metrics-vertical .stat strong{font-size:28px;color:#1d2d63}
.dashboard-bots{padding:22px;position:sticky;top:20px}
.bot-panel-footer{margin:18px 0 4px}
.bot-panel-footer .text-link{font-size:13px;font-weight:800;color:#1f58cb}
.game-status{margin-top:14px;border-radius:16px;padding:13px 16px;background:linear-gradient(180deg,#fffaf1 0%,#fff1dd 100%);border:1px solid #edd8b7;color:#66461d;text-align:center}
.tracking-status{margin:10px 0 0;padding:10px 12px;border-radius:12px;background:#eef6ff;color:#184d8a;font-size:13px;border:1px solid #d4e8ff}.tracking-status.tracking-error{background:#fff0ed;border-color:#efc4ba;color:#993d2c}
@media(max-width:1320px){.dashboard-shell{grid-template-columns:1fr}.dashboard-bots{position:static}.bot-selector-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:980px){.board-arena{grid-template-columns:1fr}.arena-sidebar{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.active-bot-card,.control-card,.info-card{height:100%}}
@media(max-width:820px){.dashboard-section-head{flex-direction:column}.bot-selector-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.arena-sidebar{grid-template-columns:1fr}.active-bot-card{grid-template-columns:72px minmax(0,1fr)}.metrics-vertical .stat strong{font-size:22px}}
@media(max-width:560px){.game-dashboard{padding-top:18px}.opponent-hub,.board-arena,.dashboard-bots{padding:16px}.board-stage{padding:10px}.bot-selector-card strong{font-size:15px}.game-actions-grid{grid-template-columns:1fr}.dashboard-card{border-radius:22px}}

/* Match controls */
.game-actions-grid{grid-template-columns:repeat(3,minmax(0,1fr)); padding-top: 10px;}
.game-actions-grid .button{min-width:0;padding:10px 8px}
.game-actions-grid .surrender-button{background:#fff4f2;border:1px solid #f0c7c1;color:#a52f2a;box-shadow:none}
.game-actions-grid .surrender-button:hover:not(:disabled){background:#ffe4df;color:#83231f}
.game-actions-grid .surrender-button:disabled{opacity:.48;cursor:not-allowed}
@media(max-width:560px){.game-actions-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Player hub replaces the duplicate opponent roster on the homepage. */
.dashboard-sidebar{display:grid;gap:18px;align-content:start;position:sticky;top:22px;min-width:0}
.player-hub,.hub-links,.hub-tip{padding:24px}
.player-hub{position:relative;overflow:hidden;background:linear-gradient(145deg,#14295c 0%,#2657a8 100%);border-color:#3866b0;color:#fff}
.player-hub h2{max-width:260px;color:#fff;margin:9px 0;font-size:clamp(27px,2.5vw,38px);letter-spacing:-.035em;line-height:1.14}
.player-hub>p:not(.hub-eyebrow){max-width:280px;color:#d9e8ff;line-height:1.6;font-size:14px;position:relative;z-index:1}
.hub-eyebrow{font-size:11px;letter-spacing:.13em;font-weight:850;color:#a9c9ff;margin:0}
.hub-hero-mark{position:absolute;right:-25px;top:34px;color:rgba(255,255,255,.10);transform:rotate(20deg);pointer-events:none}
.hub-hero-mark svg{width:175px;height:175px}
.hub-primary-link{display:flex;position:relative;z-index:1;align-items:center;justify-content:space-between;gap:12px;background:#fff;color:#154389;font-weight:850;padding:15px 17px;border-radius:14px;margin-top:24px;transition:transform .2s,box-shadow .2s}
.hub-primary-link:hover{transform:translateY(-2px);box-shadow:0 8px 16px #051e4c66;color:#154389}
.player-hub .hub-small{font-size:12px!important;color:#c9ddff!important;margin-bottom:0}
.hub-heading h2,.hub-tip h2{font-size:23px;color:#182b5b;margin:0 0 6px}
.hub-heading p{font-size:13px;color:#65799c;margin:0 0 14px}
.hub-resource{display:grid;grid-template-columns:46px minmax(0,1fr) 16px;align-items:center;gap:12px;padding:13px 0;border-top:1px solid #e7edf6;color:#182b5b;transition:background .2s,padding .2s}
.hub-resource:hover{background:#f5f9ff;padding-left:7px;border-radius:10px;color:#1b59c2}
.hub-resource-icon{display:grid;place-items:center;width:46px;height:46px;background:#eef4ff;color:#3472cf;border-radius:13px}
.hub-resource-icon svg{width:22px;height:22px}
.hub-resource strong,.hub-resource small{display:block;line-height:1.4}.hub-resource strong{font-size:14px}.hub-resource small{font-size:12px;color:#70829c}.hub-resource-arrow{color:#7094ce}
.hub-tip{background:linear-gradient(135deg,#fff9eb,#fff);border-color:#efdfba}
.hub-tip .hub-eyebrow{color:#ad7820}.hub-tip h2{margin-top:10px}.hub-tip p{font-size:14px;color:#6c614d;line-height:1.65;margin:0}
/* Floating, self-contained opponent descriptions. No extra JS and no changes to game state. */
.bot-selector-card{position:relative;isolation:auto}
.bot-selector-card:hover,.bot-selector-card:focus-visible{z-index:30}
.bot-hover-card{position:absolute;bottom:calc(100% + 14px);left:50%;width:min(290px,90vw);transform:translate(-50%,8px);display:grid;gap:8px;padding:19px 20px;background:#152654;border:1px solid #6584c1;border-radius:18px;color:#fff;text-align:left;box-shadow:0 18px 40px #0f285a52;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .17s,transform .17s,visibility .17s;z-index:50}
.bot-hover-card::after{content:"";position:absolute;top:100%;left:calc(50% - 8px);border:8px solid transparent;border-top-color:#152654}
.bot-selector-card:hover .bot-hover-card,.bot-selector-card:focus-visible .bot-hover-card{opacity:1;visibility:visible;transform:translate(-50%,0)}
.bot-hover-eyebrow{font-size:10px;letter-spacing:.13em;color:#abc9ff;font-weight:900}
.bot-hover-name{font-size:23px;font-weight:900;line-height:1.2;white-space:normal;color:white}
.bot-hover-level{display:inline-block;font-size:11px;vertical-align:middle;font-weight:800;color:#d0e0ff;background:#37568f;border-radius:20px;padding:5px 8px}
.bot-hover-description{font-size:13px;color:#e0e9ff;line-height:1.6;white-space:normal}
.bot-hover-cta{border-top:1px solid #486293;padding-top:11px;color:#a6daff;font-size:12px;font-weight:800}
@media(min-width:1321px){.bot-selector-card:nth-child(-n+2) .bot-hover-card{left:0;transform:translate(0,8px)}.bot-selector-card:nth-child(-n+2):hover .bot-hover-card,.bot-selector-card:nth-child(-n+2):focus-visible .bot-hover-card{transform:translate(0,0)}.bot-selector-card:nth-child(-n+2) .bot-hover-card::after{left:40px}.bot-selector-card:nth-last-child(-n+2) .bot-hover-card{left:auto;right:0;transform:translate(0,8px)}.bot-selector-card:nth-last-child(-n+2):hover .bot-hover-card,.bot-selector-card:nth-last-child(-n+2):focus-visible .bot-hover-card{transform:translate(0,0)}.bot-selector-card:nth-last-child(-n+2) .bot-hover-card::after{left:auto;right:40px}}
@media(max-width:1320px){.dashboard-sidebar{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.hub-tip{grid-column:1/-1}}
@media(max-width:760px){.dashboard-sidebar{grid-template-columns:1fr}.hub-tip{grid-column:auto}.bot-hover-card{width:min(250px,80vw)}.bot-selector-card:nth-child(odd) .bot-hover-card{left:0;transform:translate(0,8px)}.bot-selector-card:nth-child(odd):hover .bot-hover-card,.bot-selector-card:nth-child(odd):focus-visible .bot-hover-card{transform:translate(0,0)}.bot-selector-card:nth-child(odd) .bot-hover-card::after{left:38px}.bot-selector-card:nth-child(even) .bot-hover-card{left:auto;right:0;transform:translate(0,8px)}.bot-selector-card:nth-child(even):hover .bot-hover-card,.bot-selector-card:nth-child(even):focus-visible .bot-hover-card{transform:translate(0,0)}.bot-selector-card:nth-child(even) .bot-hover-card::after{left:auto;right:38px}}
@media(hover:none){.bot-hover-card{display:none!important}}
@media(prefers-reduced-motion:reduce){.bot-hover-card,.hub-primary-link,.hub-resource{transition:none}}

/* Reliable floating tooltips attached to the viewport rather than a bot button. */
.bot-selector-card .bot-hover-card{display:none!important}
.bot-floating-tooltip{position:fixed;left:0;top:0;z-index:2147483000;width:min(304px,calc(100vw - 24px));box-sizing:border-box;display:grid;gap:9px;padding:18px 20px;background:#152654;border:1px solid #6689cc;border-radius:18px;color:#fff;text-align:left;box-shadow:0 20px 54px rgba(12,29,70,.35);pointer-events:none;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .16s,transform .16s,visibility .16s}
.bot-floating-tooltip.is-visible{opacity:1;visibility:visible;transform:translateY(0)}
.bot-floating-tooltip .bot-hover-name{color:#fff}
@media(prefers-reduced-motion:reduce){.bot-floating-tooltip{transition:none}}
