.maia-mode #review-main { display: none; }
.maia-mode .side-nav > button:first-child { background: transparent; color: var(--muted); }
.maia-entry { width: 100%; margin-top: 16px; }
#maiaPlay { margin-left: 176px; min-height: 100dvh; padding: 42px clamp(24px,5vw,80px); }
#maiaPlay [hidden], .maia-download[hidden] { display: none !important; }
.maia-heading { display: flex; align-items: center; justify-content: space-between; color: #b9b7ad; font-size: 13px; letter-spacing: .22em; }
.maia-heading b { color: #b5cd89; margin-left: 5px; }
.maia-link { border: 0; background: none; color: #a6a59c; font: inherit; cursor: pointer; padding: 8px 0; letter-spacing: 0; }
.maia-link:hover { color: #fff; }
.maia-setup { display: grid; place-items: center; min-height: calc(100dvh - 155px); padding: 30px 0; }
.maia-elo-step, .maia-options { width: min(100%, 440px); animation: maia-in .4s ease-out; }
.maia-setup h1 { font-size: clamp(38px,4.6vw,66px); line-height: 1.08; font-weight: 550; letter-spacing: -.045em; margin: 20px 0 32px; }
.maia-setup .eyebrow { color: #b5cd89; letter-spacing: .22em; }
.maia-elo-field { display: flex; align-items: baseline; border-bottom: 1px solid #686b58; gap: 16px; }
.maia-elo-field input { min-width: 0; width: 100%; background: none; border: 0; color: #c6daa3; font: inherit; font-size: clamp(76px,9vw,116px); font-weight: 450; letter-spacing: -.06em; appearance: textfield; padding: 0; }
.maia-elo-field input::-webkit-inner-spin-button { appearance: none; }
.maia-elo-field span, .maia-range { color: #aaa89d; font-size: 12px; letter-spacing: .13em; }
.maia-range { margin: 14px 0 34px; }
.maia-setup .primary-button { width: 100%; justify-content: space-between; min-height: 52px; background: #b5cd89; color: #24281d; border: 0; border-radius: 8px; }
.maia-options h1 { font-size: 48px; margin: 22px 0 28px; }
.maia-options > label { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; border-bottom: 1px solid #ffffff12; }
.maia-options select, .maia-custom input { color: #e6e5dd; background: #32332e; border: 1px solid #ffffff18; padding: 10px 12px; border-radius: 6px; font: inherit; max-width: 190px; }
.maia-options small { margin-left: 6px; color: #95968a; font-size: 12px; }
.maia-options input[type=checkbox] { accent-color: #b5cd89; width: 21px; height: 21px; }
.maia-options > .primary-button { margin-top: 28px; }
.maia-custom { display: flex; gap: 20px; padding: 15px 0; }
.maia-custom label { display: grid; gap: 8px; font-size: 12px; width: 50%; }
.maia-custom input { width: 100%; }
#maiaSetupStatus { font-size: 13px; color: #dab795; }
.maia-download { position: fixed; z-index: 1500; top: 24px; right: 24px; width: min(310px,calc(100vw - 48px)); padding: 18px 20px; background: #35382e; border: 1px solid #b5cd8938; box-shadow: 0 12px 48px #0004; border-radius: 12px; color: #e7ebdf; font-size: 13px; }
.maia-download progress { display: block; width: 100%; height: 4px; margin-top: 13px; accent-color: #b5cd89; }
.maia-arena { display: grid; grid-template-columns: minmax(280px, min(65vh,650px)) minmax(180px,300px); gap: clamp(24px,4vw,64px); justify-content: center; align-items: center; padding-top: 34px; animation: maia-in .4s ease-out; }
.maia-board { position: relative; width: 100%; aspect-ratio: 1; border-radius: 4px; overflow: visible; box-shadow: 0 20px 60px #0003; }
.maia-board > svg, .maia-board > img, .maia-board > .cm-chessboard { position: relative; z-index: 1; }
.maia-board-classification { position: absolute; z-index: 5; display: grid; place-items: center; width: clamp(20px, 7.1%, 56px); height: clamp(20px, 7.1%, 56px); transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,.92); border-radius: 50%; box-shadow: 0 3px 11px rgba(0,0,0,.55); pointer-events: none; animation: maia-classification-pop .24s ease-out both; }
.maia-board-classification.has-asset { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.maia-board-classification .classification-icon { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; }
.maia-board-classification .classification-icon--pending { visibility: hidden; }
.maia-best-move { min-height: 22px; margin: -2px 0 4px; color: #c6daa3; font-size: 14px; font-weight: 650; }
.maia-player { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
.maia-player strong { font-size: 16px; font-weight: 550; }
.maia-player span { margin-left: 12px; color: #a9ad9b; font-size: 13px; }
.maia-player time { font-variant-numeric: tabular-nums; font-size: 23px; padding: 6px 12px; background: #ffffff08; border-radius: 6px; }
.maia-game-panel h2 { font-size: 30px; font-weight: 500; letter-spacing: -.03em; margin: 16px 0; }
#maiaFeedback { color: #c6daa3; min-height: 24px; }
.maia-moves { max-height: 200px; overflow: auto; line-height: 2.3; font-size: 14px; color: #aaa99f; white-space: pre-wrap; margin: 25px 0; }
.maia-tutor-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.maia-tutor-actions button { font-size: 13px; }
.maia-finish { display: block; margin-top: 32px; font-size: 13px; }
#maiaContinue { margin-top: 12px; }
.maia-to-review { animation: maia-out .55s ease-in both; pointer-events: none; }
#maiaPlay button:focus-visible, #maiaPlay input:focus-visible, #maiaPlay select:focus-visible { outline: 2px solid #b5cd89; outline-offset: 5px; }
#maiaPlay .maia-elo-field input:focus-visible { outline: none; }
.maia-elo-field:focus-within { border-bottom: 2px solid #b5cd89; }
@keyframes maia-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes maia-out { to { opacity: 0; transform: translateY(-12px) scale(.98); filter: blur(4px); } }
@keyframes maia-classification-pop { from { opacity: 0; transform: translate(-50%, -50%) scale(.65); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@media(max-width:1150px) { #maiaPlay { margin-left: 74px; } }
@media(max-width:760px) { #maiaPlay { margin-left: 0; padding: 24px 20px; } .maia-arena { grid-template-columns: minmax(0,520px); padding-top: 20px; gap: 15px; } .maia-game-panel h2 { font-size: 24px; } .maia-moves { max-height: 90px; margin: 12px 0; } .maia-finish { margin-top: 16px; } }
@media(prefers-reduced-motion:reduce) { .maia-to-review, .maia-elo-step, .maia-options, .maia-arena { animation: none; } }
