/* The playfield adapts to its iframe as well as a standalone browser viewport. */
body:is([data-game="chess"],[data-game="checkers"],[data-game="backgammon"]){--classic-header:64px}
body:has(.tabletop-header[hidden]){--classic-header:0px}
.gy-game:is([data-game="chess"],[data-game="checkers"],[data-game="backgammon"]) #playfield{padding:8px;max-width:1280px;min-width:0}
.classic-game{display:grid;grid-template-areas:'info' 'board' 'controls';gap:12px;max-width:1100px;margin:auto;text-align:center;min-width:0;padding-bottom:8px}
.classic-info{grid-area:info;min-width:0}.classic-surface{grid-area:board;min-width:0;display:grid;place-items:center}.classic-controls{grid-area:controls;min-width:0;align-self:start}
.classic-status{font-size:clamp(18px,3vw,28px);line-height:1.2;margin:6px 0}.classic-info>.table-caption{font-size:10px;letter-spacing:.12em;margin:0}.classic-hint{font-size:13px;line-height:1.5;margin:8px auto;max-width:480px}.classic-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center;margin:8px 0}.classic-actions p{margin:0}.classic-actions button{flex:0 1 auto}.classic-controls>button{margin:4px}
.classic-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));width:min(100%,560px);aspect-ratio:1;border:4px solid #574332;border-radius:8px;overflow:hidden;container-type:inline-size;box-shadow:0 8px 24px #0003}
.gy-game .classic-square{position:relative;border:0;border-radius:0;min-width:0;min-height:0;padding:0;display:grid;place-items:center;cursor:pointer}.classic-square.light{background:#eadbc0}.classic-square.dark{background:#947552}.classic-square.selected,.bg-point.selected{box-shadow:inset 0 0 0 3px #f7cc48!important}.classic-square.legal:after{content:'';position:absolute;inset:12%;border:3px solid #287a65;border-radius:50%;pointer-events:none}.classic-piece{line-height:1;z-index:1;pointer-events:none}.chess-piece{font-family:Georgia,'Times New Roman',serif;font-size:9cqw}.classic-piece.white{color:#fff9e7;text-shadow:1px 1px 1px #241c18,-1px -1px 1px #241c18}.classic-piece.black{color:#202532;text-shadow:0 1px 1px #fff}.checker-piece{width:70%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;font-size:6cqw;box-shadow:0 2px 0 #171d28,inset 0 0 0 3px #ffffff30}.checker-piece.white,.bg-checker.white{background:#fff4d6;color:#4b3927}.checker-piece.black,.bg-checker.black{background:#273346;color:white}.coordinate{position:absolute;bottom:1px;left:2px;font-size:clamp(7px,1.6cqw,10px);color:#332b21;line-height:1}
.backgammon-board{width:100%;max-width:820px;height:clamp(280px,48dvh,460px);display:grid;grid-template-rows:1fr 1fr;gap:16px;background:#5c3a2c;border:6px solid #8b6246;border-radius:12px;padding:6px;container-type:inline-size;box-shadow:0 8px 24px #0003}.backgammon-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:1px;min-height:0}.gy-game .bg-point{position:relative;min-height:0;min-width:0;border:0;border-radius:0;padding:4px 0;display:flex;flex-direction:column;align-items:center;background:#e2c99c;color:#32231b;overflow:hidden}.bg-point>small{font-size:clamp(10px,2cqw,14px);line-height:1.2;position:relative;z-index:1}.bg-point:before{content:'';position:absolute;inset:20px 1px 0;clip-path:polygon(0 0,100% 0,50% 100%);background:#9c4834}.bg-point.ochre:before{background:#a78144}.backgammon-row+ .backgammon-row .bg-point:before{transform:rotate(180deg)}.bg-point.legal{outline:3px solid #25856b;outline-offset:-3px}.bg-stack{display:flex;flex-direction:column;position:relative;align-items:center;width:100%;padding-top:2px}.bg-checker{width:clamp(16px,6cqw,32px);aspect-ratio:1;border-radius:50%;box-shadow:0 2px 2px #0008,inset 0 0 0 2px #ffffff30;display:grid;place-items:center;font-size:clamp(10px,2cqw,14px);font-weight:bold;flex-shrink:0}.bg-checker+.bg-checker{margin-top:-5px}.bg-score{font-size:12px}.classic-game button:focus-visible{outline:3px solid #56bfff!important;outline-offset:-3px}.classic-square:disabled,.bg-point:disabled{opacity:1!important}
@media(min-width:900px){
 .classic-game{grid-template-columns:minmax(0,1fr) 220px;grid-template-rows:auto 1fr;grid-template-areas:'board info' 'board controls';gap:16px;padding:8px 0;align-items:start}
 .classic-board{width:min(100%,560px,calc(100dvh - var(--classic-header) - 40px))}
 .backgammon-board{height:min(460px,calc(100dvh - var(--classic-header) - 40px))}
 .classic-info{padding-top:12px}.classic-controls .classic-actions{flex-direction:column}.classic-controls .classic-actions button{width:100%}
}
@media(max-width:899px){
 .gy-game:is([data-game="chess"],[data-game="checkers"],[data-game="backgammon"]) .tabletop-header{padding:6px 8px;gap:6px;flex-wrap:nowrap}
 .gy-game:is([data-game="chess"],[data-game="checkers"],[data-game="backgammon"]) .tabletop-header h1{font-size:14px}
 .gy-game:is([data-game="chess"],[data-game="checkers"],[data-game="backgammon"]) .tabletop-header nav{gap:8px;font-size:12px}
 .gy-game:is([data-game="chess"],[data-game="checkers"],[data-game="backgammon"]) .tabletop-header button{font-size:12px;padding:6px 8px}
 .classic-board{border-width:2px}.backgammon-board{border-width:4px;padding:3px;gap:12px}.classic-game{gap:8px}
}
@media(max-height:500px) and (min-width:540px){
 .classic-game{grid-template-columns:minmax(0,1fr) 200px;grid-template-rows:auto 1fr;grid-template-areas:'board info' 'board controls';gap:8px;padding:0 0 8px}
 .classic-board{width:min(100%,calc(100dvh - var(--classic-header) - 20px))}.backgammon-board{height:calc(100dvh - var(--classic-header) - 20px);gap:10px;border-width:4px;padding:3px}
 .classic-info{padding:0}.classic-info>.table-caption{display:none}.classic-status{font-size:18px}.classic-hint{font-size:11px;line-height:1.3;margin:6px 0}.classic-actions{gap:4px;margin:4px 0}.classic-actions p{font-size:13px}.classic-game .classic-actions button{font-size:12px;padding:4px 6px}.classic-controls .classic-actions{flex-direction:row}.classic-controls .classic-actions button{width:auto}.classic-controls>button{font-size:13px;padding:4px 8px}.bg-checker+.bg-checker{margin-top:-10px}
}

.gy-game:is([data-game="chess"],[data-game="checkers"],[data-game="backgammon"]) .tabletop-header{padding:8px;gap:8px}
@media(max-height:500px) and (min-width:540px){
 .gy-game:is([data-game="chess"],[data-game="checkers"],[data-game="backgammon"]) .gy-score-button{top:8px;bottom:auto;right:280px;font-size:12px;padding:6px 10px;min-width:0}
 .classic-controls .classic-actions button{font-size:11px;padding:4px 5px}.classic-controls .classic-hint{font-size:10px}
}
@media(max-width:539px) and (max-height:700px){.backgammon-board{height:240px}.classic-info .classic-actions{margin:4px 0}.classic-game{gap:6px}}
/* Leave the shared scorecard launcher its own space on small screens. */
@media(max-width:539px){.classic-controls>button{display:block;margin:4px auto 4px 0}}
/* Second pass: carved silhouettes, inset checker rings and readable move history. */
.classic-board{border-color:#876947;background:#876947;box-shadow:0 3px 0 #38291e,0 12px 28px #0004}
.classic-square.light{background:linear-gradient(125deg,#f0e1c5,#dbc8a5)}.classic-square.dark{background:linear-gradient(125deg,#9a7957,#7a5c40)}
.chess-piece{width:92%;height:92%;display:grid;place-items:center;filter:drop-shadow(0 1px 1px #0004)}.chess-piece svg{width:100%;height:100%;overflow:visible}.chess-piece.white{--piece-edge:#796346;color:#fff4d7}.chess-piece.black{--piece-edge:#aab4bf;color:#223043}
.checker-piece{background-image:radial-gradient(circle at 35% 25%,#ffffff44,transparent 65%);border:2px solid #ffffff55;box-shadow:0 3px 0 #1b202a,inset 0 0 0 3px #ffffff30,inset 0 0 0 5px #0002}
.classic-square.last-move{box-shadow:inset 0 0 0 3px #e4b54b99}.classic-square.in-check{background:#af4e42!important;box-shadow:inset 0 0 0 3px #ffb7a3}.classic-square.legal:after{inset:32%;border:0;background:#196f5c99}.classic-square.legal:has(.classic-piece):after{inset:7%;background:transparent;border:3px solid #196f5c}
.classic-controls .flip-board{font-size:12px;min-height:36px;padding:4px 10px}
.backgammon-board{position:relative}.classic-dice-stage{position:absolute;width:min(260px,75%);height:110px;left:50%;top:50%;transform:translate(-50%,-50%);z-index:3;pointer-events:none}.classic-dice-stage canvas{width:100%;height:100%;display:block}.classic-dice-fallback{height:100%;display:flex;align-items:center;justify-content:center;gap:10px;filter:drop-shadow(0 4px 3px #0006)}.pip-die{font-size:58px;line-height:1;color:#fff4d6;text-shadow:0 0 2px #172b3c}.has-dice-3d .classic-dice-fallback{display:none}.rolling .classic-dice-fallback{animation:classic-dice-tumble .3s ease-in-out 5 alternate}@keyframes classic-dice-tumble{from{transform:translate(-35px,-15px) rotate(-25deg)}to{transform:translate(30px,12px) rotate(35deg)}}
@media(prefers-reduced-motion:reduce){.rolling .classic-dice-fallback{animation:none}}
@media(max-height:500px) and (min-width:540px){.classic-dice-stage{height:90px}.classic-controls .flip-board{min-height:32px;margin:0}}
/* Sources, selection and destinations remain distinct on touch and desktop. */
.classic-square.selectable:before{content:'';position:absolute;right:4px;top:4px;width:6px;height:6px;border-radius:50%;background:#f7d16a;box-shadow:0 0 0 1px #594521;z-index:2;pointer-events:none}
.classic-square.selected{background:#d0b867!important;box-shadow:inset 0 0 0 4px #ffe28b!important}.classic-square.selected .classic-piece{filter:drop-shadow(0 3px 2px #0007);transform:translateY(-2px)}
.classic-square.legal:after{inset:27%;box-shadow:0 0 0 2px #e6ffeac0}.classic-square.legal:has(.classic-piece):after{inset:5%;box-shadow:none;border-width:4px}
.bg-point.selectable>small{background:#ffe28b;color:#33220c;border-radius:3px;padding:0 3px}.bg-point.selected{background:#f5d987!important;box-shadow:inset 0 0 0 3px #ffe28b!important}.bg-point.selected .bg-stack{filter:drop-shadow(0 0 2px #ffdb6a)}.bg-point.legal{background:#c3dfbd!important;outline:3px solid #22684c}.destination-die{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);z-index:2;min-width:18px;padding:2px;border-radius:4px;background:#174d3a;color:#fff;font-size:12px;font-weight:bold;pointer-events:none}.classic-actions .legal{border-color:#79dba7;background:#174d3a}.classic-actions .selectable{border-color:#f1d177}.selection-feedback{min-height:2.8em}.classic-square,.bg-point{-webkit-tap-highlight-color:transparent}.bg-stack,.bg-point>small,.classic-piece,.coordinate{pointer-events:none}
@media(hover:hover){.classic-square.selectable:hover{outline:2px solid #ffe28b;outline-offset:-3px}.bg-point.selectable:hover{filter:brightness(1.12)}}
@media(prefers-reduced-motion:reduce){.classic-square.selected .classic-piece{transform:none}}
/* Only movable sources claim touch drags; the surrounding page still scrolls. */
.selectable[data-cell]{touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.piece-dragging [data-cell]{cursor:grabbing}.drag-source .classic-piece{opacity:.22}.drag-source .bg-checker:last-child{opacity:.22}.snap-target{outline:4px solid #ffdf70!important;outline-offset:-4px;box-shadow:inset 0 0 18px #ffe49488!important}.classic-drag-ghost{position:fixed;z-index:10000;transform:translate(-50%,-50%);pointer-events:none;display:grid;place-items:center;filter:drop-shadow(0 7px 4px #0007);will-change:left,top}.classic-drag-ghost>.classic-piece,.classic-drag-ghost>.bg-checker{width:100%;height:100%;margin:0;font-size:24px;transform:none}.classic-drag-ghost .chess-piece svg{width:100%;height:100%}
/* Opening lessons use the live board, with the player's game kept for return. */
.opening-coach{margin-top:12px;padding:14px;border:1px solid #638b7d;border-radius:14px;background:#122c29;color:#f2f6eb;text-align:left;font-size:13px;line-height:1.5;max-width:100%;box-sizing:border-box}.opening-coach h3{margin:0;font-size:18px}.opening-coach h4{margin:12px 0 6px}.opening-coach p{margin:8px 0}.opening-note{color:#c1d5c9;font-size:12px}.opening-options,.opening-moves,.opening-navigation{display:flex;flex-wrap:wrap;gap:5px}.opening-options h4{flex-basis:100%;font-size:12px;color:#cae1cf}.opening-coach button{min-height:36px;font-size:12px;padding:6px 9px;white-space:normal}.opening-coach button.active{background:#f1d177;color:#172d26;border-color:#ffe7a0}.opening-counter{border-left:3px solid #f1d177;padding-left:9px}.opening-explanation{padding:10px;border-radius:8px;background:#ffffff0d}.opening-coach>button{margin:8px 4px 0 0}.opening-launch{margin:4px 0}.opening-coach button:focus-visible{outline:3px solid #f1d177;outline-offset:2px}
@media(min-width:900px){.classic-game:has(.opening-coach){grid-template-columns:minmax(0,1fr) 300px}.classic-controls:has(.opening-coach){max-height:calc(100dvh - var(--classic-header) - 130px);overflow-y:auto;padding:3px 8px 12px 3px}}
@media(max-width:899px){.opening-coach{width:100%;max-width:600px}.classic-controls:has(.opening-coach){width:100%}}
.future-step{position:absolute;top:2px;left:2px;z-index:4;min-width:18px;border-radius:6px;padding:2px 4px;background:#146452;color:#fff;font-size:11px;font-weight:800;box-shadow:0 1px 4px #0005;pointer-events:none}.scenario-history{padding-left:24px;text-align:left}.opening-coach button:disabled{opacity:.45}.classic-board:has(.future-step){box-shadow:0 0 0 3px #41a68c,0 12px 28px #0004}
/* Chess Lab: tactile cards, a future timeline and on-board calculation arrows. */
.coach-hub,.opening-coach{background:radial-gradient(ellipse at top left,#24424e80,transparent 65%),#13232e;border:1px solid #46637180;border-radius:20px;padding:16px;text-align:left;box-shadow:0 12px 30px #0002}.coach-hub{margin-top:12px}.coach-hub h3{font-size:21px;line-height:1.2;margin:7px 0;color:#f4f3e9}.coach-eyebrow{font-size:9px!important;font-weight:800;letter-spacing:.18em;color:#6ee1d3;margin:0 0 8px!important}.coach-intro{font-size:12px;line-height:1.5;color:#b5c9d1;margin:8px 0 14px}.classic-game .coach-card{display:flex;align-items:center;gap:11px;width:100%;padding:13px 11px;margin:8px 0;min-height:70px;text-align:left;background:linear-gradient(120deg,#28404c,#1a303c);border:1px solid #7896a34a;border-radius:13px;transition:transform .18s,border-color .18s,background .18s}.coach-card-icon{display:grid;place-items:center;width:37px;height:40px;flex-shrink:0;border-radius:10px;background:#73d9d915;font-size:27px;color:#8ce6df}.coach-card-copy{flex:1;min-width:0;display:grid;gap:4px}.coach-card-copy strong{font-size:13px;color:#f0f6f4}.coach-card-copy small{font-size:11px;font-weight:400;line-height:1.3;color:#adc5cf}.coach-card-arrow{color:#74dcca;font-size:20px}.coach-card:hover{transform:translateY(-2px);border-color:#75d9c6!important;background:#294b56!important}.opening-coach h3{font-size:23px;line-height:1.15;margin:4px 0 12px}.opening-coach h4{font-size:14px}.coach-legend{display:flex;gap:16px;font-size:11px;margin:12px 0;color:#b8d2d7}.white-reply{color:#77e7f2}.black-reply{color:#ffca8e}.classic-game .opening-coach button{border:1px solid #819aa54a;background:#29414d;border-radius:9px;min-height:38px;transition:background .15s,transform .15s}.classic-game .opening-coach button:hover:not(:disabled){background:#3c5b67}.classic-game .opening-coach button.gy-primary{background:#81e6ce;color:#12342f;border-color:#81e6ce;font-weight:800}.classic-game .opening-coach .opening-choice{flex:1 1 45%;font-size:11px;text-align:left;padding:9px;line-height:1.35}.classic-game .opening-coach button.active{background:#93e8d3;color:#143730;border-color:#b0ffea}.opening-options{gap:6px}.opening-options h4{color:#8db3c0;text-transform:uppercase;font-size:9px;letter-spacing:.1em}.opening-moves{padding-top:12px;border-top:1px solid #66879744;margin-top:12px}.opening-counter{border-color:#edb977;background:#edb9770b;padding:9px;border-radius:0 8px 8px 0;font-size:12px}.opening-explanation{background:#101e29;border:1px solid #4c718244;line-height:1.5;font-size:12px}.future-timeline{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px;margin:12px 0}.classic-game .future-timeline button{padding:0;font-size:12px;border-radius:50%;aspect-ratio:1;min-height:32px}.classic-game .future-timeline button.complete{background:#285e63;color:#bbfff1;border-color:#65c3b7}.scenario-history{list-style:none;padding:0!important;display:grid;gap:4px;margin:12px 0;font-size:12px}.scenario-history li{padding:6px 10px;background:#ffffff06;border-radius:6px;border-left:2px solid currentColor}.classic-board{position:relative}.coach-arrows{position:absolute;inset:0;z-index:5;pointer-events:none}.coach-arrows svg{width:100%;height:100%;display:block;filter:drop-shadow(0 2px 2px #0006)}
@media(min-width:900px){.classic-game:has(.coach-hub),.classic-game:has(.opening-coach){grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:899px){.coach-hub{max-width:600px;width:100%;box-sizing:border-box}.coach-hub .coach-card{min-height:60px}.classic-controls:has(.coach-hub){width:100%}.opening-coach{padding:14px}.opening-coach h3{font-size:22px}.coach-legend{margin:8px 0}}
@media(prefers-reduced-motion:reduce){.classic-game .coach-card,.classic-game .opening-coach button{transition:none}.coach-card:hover{transform:none}}
/* Chess keeps a quiet board-first layout, with optional tools below it. */
.gy-game[data-game="chess"] .classic-game{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;grid-template-areas:'info' 'board' 'controls';max-width:680px;gap:8px;padding:0 0 12px}
.gy-game[data-game="chess"] .classic-info{padding:0}.gy-game[data-game="chess"] .classic-info>.table-caption{display:none}.gy-game[data-game="chess"] .classic-status{margin:4px 0;font-size:22px}
.gy-game[data-game="chess"] .classic-board{width:min(100%,560px,calc(100dvh - var(--classic-header) - 170px))}
.gy-game[data-game="chess"] .classic-controls{width:100%;max-height:none;overflow:visible;padding:0;max-width:600px;justify-self:center}
.chess-toolbar{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap}.gy-game .chess-toolbar button{min-height:40px;padding:7px 14px;font-size:13px;border:1px solid #71818d;border-radius:10px;background:#223345}.gy-game .chess-toolbar button[aria-expanded="true"]{background:#36574f;border-color:#88cdb8}.chess-toolbar+ .selection-feedback{font-size:12px;min-height:0;margin:8px 0;color:#b9c9d3}
.chess-tools{margin-top:14px;text-align:left}.chess-tools .coach-hub{margin:0;padding:14px;box-shadow:none}.chess-tools .coach-hub h3{font-size:18px}.chess-tools .coach-intro{margin-bottom:8px}.chess-tools .coach-card{min-height:54px;padding:9px;margin:6px 0}.chess-tools .coach-card-icon{height:30px;width:30px;font-size:22px}.chess-tools .opening-coach{max-width:none;width:100%;box-sizing:border-box}.chess-tools .opening-options{display:flex;flex-wrap:wrap}.chess-tools .opening-choice{flex:1 1 160px!important}
.position-insight{padding:12px;margin:10px 0;border-left:3px solid #dabd72;border-radius:4px 10px 10px 4px;background:#e4ca7710;color:#c9d8db;font-size:12px;line-height:1.55}.position-insight strong{color:#fff1cb;font-size:13px}.position-insight p{margin:6px 0 0}.position-watch{color:#9fd9cc}
.chess-position-preview{position:absolute;inset:0;z-index:6;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));pointer-events:none;background:#a68a65;box-shadow:inset 0 0 0 3px #e7cf82}.preview-square{position:relative;display:grid;place-items:center;min-width:0;min-height:0}.preview-square.light{background:#eadbc0}.preview-square.dark{background:#947552}
@media(max-width:539px){.gy-game[data-game="chess"] .classic-board{width:min(100%,calc(100dvh - 210px))}.chess-toolbar{gap:6px}.gy-game .chess-toolbar button{font-size:12px;padding:6px 10px;min-height:44px}.gy-game[data-game="chess"] .classic-controls{padding-bottom:52px}}
@media(max-height:500px) and (min-width:540px){.gy-game[data-game="chess"] .classic-board{width:min(100%,calc(100dvh - 170px))}.gy-game[data-game="chess"] .classic-status{font-size:17px}.gy-game[data-game="chess"] .classic-game{gap:5px}.chess-toolbar+ .selection-feedback{margin:4px 0;font-size:11px}}

.position-insight{position:sticky;top:8px;z-index:8;min-height:188px;box-sizing:border-box;display:flex;align-items:center;gap:14px;background:#203235;box-shadow:0 4px 12px #0002}.position-miniature{flex:0 0 150px;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));width:150px;height:150px;border:2px solid #b59b67;border-radius:5px;overflow:hidden;pointer-events:none}.position-miniature .coordinate{display:none}.position-miniature .classic-piece{filter:none}.position-insight-copy{flex:1;min-width:0}.position-insight-copy strong{display:block}.chess-tools .coach-hub .position-insight{position:static}
@media(max-width:539px){.position-insight{gap:10px;min-height:184px;padding:10px;font-size:11px}.position-miniature{flex-basis:104px;width:104px;height:104px}.position-insight strong{font-size:12px}}

/* Quiet, optional context alongside the selected opening. */
.opening-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.opening-heading h4{margin:0;min-width:0}.classic-game .opening-history-toggle{flex-shrink:0;min-height:44px;padding:8px 13px;color:#f5d99f;border-color:#d5b57466;background:#d5b5740c}.opening-history-toggle[aria-expanded="true"]{background:#d5b57425!important}.opening-history{margin:10px 0 14px;padding:16px;border:1px solid #d5b57444;border-radius:13px;background:linear-gradient(135deg,#d5b5740c,#101e29);overflow-wrap:anywhere}.opening-history[hidden]{display:none}.opening-history .coach-eyebrow{color:#e4c88f}.opening-history h5{margin:0 0 12px;font-size:18px;line-height:1.3;color:#fff0d2;font-family:Georgia,serif;font-weight:500}.opening-history h6{font-size:11px;letter-spacing:.04em;color:#e4c88f;margin:16px 0 4px}.opening-history p{color:#cfdbdf;line-height:1.65;font-size:12px}.opening-history p.opening-history-note{color:#92aab4;font-size:11px;margin-top:15px}.opening-history-source{display:inline-flex;align-items:center;min-height:44px;color:#f5d99f;text-underline-offset:4px;font-size:12px}.opening-history-source:focus-visible{outline:2px solid #f5d99f;outline-offset:4px;border-radius:3px}
/* Keep touch controls comfortable and let small screens scroll freely. */
@media(max-width:899px),(pointer:coarse){.classic-game .opening-coach button{min-height:44px}.opening-history p{font-size:14px}.opening-history h6{font-size:12px}}
@media(max-width:539px),(max-height:500px){.position-insight{position:static;min-height:0}}
