body { font-family: 'Roboto', sans-serif; background: #f6f8fc; margin:0; }
header { background: #2b4c8c; color: white; text-align: center; padding: 1.2em 0;}
section { max-width:880px; margin:20px auto; padding:18px 25px; background:white; border-radius:8px; box-shadow:0 2px 8px #ddd;}
h2 { color: #2b4c8c;}
img.board { display:block; margin:0 auto 10px; border:2px solid #ccc; border-radius:6px; max-width:95%;}
.flashcard { width:100%; height:130px; perspective:800px; margin-bottom:12px; cursor:pointer;}
.card-inner { position:relative; width:100%; height:100%; text-align:center; transition:transform 0.5s; transform-style:preserve-3d;}
.flashcard.flipped .card-inner { transform:rotateY(180deg);}
.card-front, .card-back {
  position:absolute; width:100%; height:100%; backface-visibility:hidden; display:flex; align-items:center; justify-content:center;
  font-size:1.1em; border:2px solid #2b4c8c; border-radius:8px; /*padding:10px;*/
}
.card-front {background:#e3ebff;}
.card-back {background:#ddefd7; transform:rotateY(180deg);}
.quiz-question {margin-top: 22px;}
.quiz-option {display:block; margin:9px 0; padding:10px; border:1px solid #ccc; border-radius:5px; cursor:pointer;}
.quiz-option:hover {background:#f0f4ff;}
.correct { background: #c8f7c5;}
.incorrect { background: #f9c0c0;}
#pgn-board-container {max-width: 340px; margin: 32px auto 12px auto; background: #e6f0ff; border-radius:10px; padding:20px 20px 4px;}
#pgn-holder { margin-bottom:10px; display:flex; gap:10px; }
#pgn-text {flex:1; font-size:1em; border:1px solid #bbb; border-radius:4px; padding:5px;}
#load-btn {font-size:1em; background:#2b4c8c; color:white; border:none; border-radius:5px; padding:8px 16px; cursor:pointer;}
#load-btn:hover {background:#4764bb;}
#pgn-moves {margin:10px 0 4px 0; min-height:24px;}
#pgn-controls button {margin:4px 6px 4px 0; font-size:1em; padding:8px 13px; background:#cce0fa; border:none; border-radius:4px; cursor:pointer;}
#pgn-controls button:hover {background:#e7cedb;}
#current-move {font-weight:bold; color:#2b4c8c;}
@media (max-width: 700px) {
  section { padding:10px; }
  #pgn-board-container { padding:10px; }
}
#header, .progress {
	text-align: center;
	font-size: 1.3em;
	font-weight: bold;
	margin: 15px;
}
#colle-moves {
  background: linear-gradient(to right, #f7faff, #eef5fb);
  padding: 20px 28px;
  border-radius: 10px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

.move-list {
  list-style: none;
  counter-reset: move;
  padding: 0;
  margin: 10px 0;
}

.move-list li {
  position: relative;
  font-size: 1.05em;
  color: #2b4c8c;
  background: #ffffff;
  margin-bottom: 10px;
  border-left: 5px solid #84b1f8;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.move-list li:hover {
  background: #e0f0ff;
  transform: scale(1.02);
}

.move-list li::before {
  counter-increment: move;
  content: counter(move) ". ";
  font-weight: bold;
  color: #17386e;
}

.tip-box {
  position: absolute;
  left: 0;
  top: 100%;
  /*transform: translate(15px, -50%);*/
  background: #2b4c8c;
  color: #fff;
  padding: 8px 10px;
  border-radius: 5px;
  min-width: 240px;
  font-size: 0.95em;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 10;
}
#criticized-moves {
  background: #fdfdfd;
  border-top: 4px solid #2b4c8c;
  padding: 20px 28px;
  border-radius: 10px;
  margin-top: 25px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}
#criticized-moves h3 {
  color: #2b4c8c;
  margin-top: 15px;
}
.criticism {
  background: #f8faff;
  border-left: 4px solid #84b1f8;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.game-button {
	border: 0px;
	min-height: 40px;
	line-height: 40px;
	text-transform: uppercase;
	padding: 0 10px;
	background-color: #93a4b7;
	display: inline-block;
	position: relative;
	width: 100%;
	margin: 5px 0;
	border-radius: 4px;
}

#pgn-comment {
  margin-top:10px;
  padding:10px 14px;
  background:#fffceb;
  border-left:5px solid #f1b24a;
  border-radius:6px;
  min-height:36px;
  font-size:1em;
  display:flex;
  align-items:center;
  gap:10px;
}
#pgn-comment img {
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.3));
}
#variant-menu {
	background: #e3ebff;
	border-bottom: 2px solid #cad7f7;
	text-align: center;
	padding: 10px 0;
	padding: 15px 0 15px 0;
}

#variant-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

#variant-menu li {
  margin: 0;
}

#variant-menu a {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #2b4c8c;
  background: #ffffff;
  border: 2px solid #2b4c8c;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.25s ease;
}

#variant-menu a:hover,#variant-menu a.active {
  background: #2b4c8c;
  color: white;
}
.two-col {display:flex;flex-wrap:wrap;gap:20px;}
.left-half, .right-half {flex:1;min-width:300px;}
.pgn-board {width:320px;margin:auto;}
.pgn-moves {margin:10px 0;}
.pgn-comments {margin-top:10px;padding:10px;background:#fffbea;border-left:5px solid #f1b24a;border-radius:6px;min-height:36px;display:flex;align-items:center;}
.pgn-comments[hidden] { display: none !important; }
.pgn-controls button{margin:4px 5px;padding:8px 12px;border:none;border-radius:4px;background:#cce0fa;cursor:pointer;}
.pgn-controls button:hover{background:#b3d2fc;}
.child-tips ol{padding-left:20px;}
.child-tips li{margin-bottom:10px;background:#eef4ff;padding:10px;border-radius:5px;}
h2{color:#2b4c8c;}
/*.game-button{display:block;width:100%;margin:6px 0;padding:10px;background:#93a4b7;color:white;text-transform:uppercase;border:none;border-radius:4px;cursor:pointer;}*/
.game-button:hover{background:#74859b;}
@media(max-width:700px){.two-col{flex-direction:column;}}
.highlight-slideshow {
  margin-top:24px;
  max-width:350px;
  position:relative;
  background: #e7f0fa;
  border-radius: 12px;
  box-shadow: 0 2px 8px #cce;
  padding: 22px 18px 42px 18px;
  text-align: center;
  min-height:86px;
  margin:0 auto;
}
.highlight-slideshow .slide {
  display:none; 
  font-size:1.3em;
  font-weight:600;
  color:#17386e;
  margin-bottom:10px;
}
.highlight-slideshow .active { display:block;}
.slide-prev, .slide-next {
  position: absolute;
  bottom: 12px;
  font-size: 1em;
  background: #4764bb;
  color: white;
  border: none;
  border-radius: 5px;
  padding: 8px 16px;
  cursor: pointer;
  margin: 0 12px;
}
.slide-prev {left:18px;}
.slide-next {right:18px;}

 #options { max-width:400px; margin: 15px auto; }
button.move-option { display:block; margin: 6px 0; padding: 10px; font-size: 1.1em; width: 100%; border-radius:5px; cursor:pointer; }
button.correct { background:#4CAF50; color:white; }
button.incorrect { background:#f44336; color:white; }
#navbtns, #movebtns { text-align:center; margin-top:20px;}
#navbtns button, #movebtns button { font-size:1.05em; padding:8px 18px; border-radius:4px; margin:0 8px; background:#f6a836; color:#fff; cursor:pointer;}
/*#navbtns { display:none; }*/
.container{
  max-width:1212px;
  margin:30px auto;
  overflow:hidden; /* clear floats */
  text-align:center;
}
.variant {
	float: left;
	width: 23%;
	margin: 1%;
	background: white;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
	padding: 20px 10px;
	transition: transform .25s ease,box-shadow .25s ease;
	box-sizing: border-box;
}
.variant:hover{
  transform:translateY(-8px);
  box-shadow:0 4px 10px rgba(0,0,0,0.2);
}
.variant img{
  width:60px;
  height:60px;
}
.variant h2{
  color:#2b4c8c;
  margin:10px 0 8px 0;
  font-size:1.15em;
}
.variant p{
  margin:0;
  font-size:0.95em;
  color:#333;
}
a{text-decoration:none;color:inherit;}

/* 2 per row on tablets/mobiles */
@media(max-width:900px){
  .variant{width:46%;margin:2%;}
}
/* 1 per row on small phones */
@media(max-width:550px){
  .variant{width:90%;margin:5% auto;float:none;}
}




.index-section {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 10px #d0d8ec;
  margin-bottom: 27px;
  padding: 23px 24px 18px 24px;
}
.section-title {
	color: #2b4c8c;
	margin-top: 0;
	margin-bottom: 8px;
	font-size: 2em;
	letter-spacing: .01em;
	text-align: left;
	text-transform: uppercase;
}
.block-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 10px;
}
.topic-block {
  background: linear-gradient(to right,#e3ebff,#f1f7ff);
  border-radius: 12px;
  box-shadow: 0 1px 6px rgba(44,76,140,0.08);
  padding: 0;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 180px;
  min-height: 180px;
  max-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: box-shadow 0.2s,background .2s;
  text-decoration: none !important;
  color: #183160;
  font-weight: 500;
  position: relative;
}
.topic-block:hover {
  box-shadow: 0 3px 16px #abb9de;
  background: linear-gradient(to right,#d2e4ff,#ecf3fe);
  color: #1a2e5e;
}
.topic-block .desc {
  font-size: .97em;
  margin-top: 7px;
  color: #465682;
}
.chesspiece {
  width: 46px; height: 46px;
  margin-bottom: 4px;
  margin-top: 9px;
}
@media (max-width:1000px) {
  .container {max-width:97vw;}
  .topic-block,.sub-block {min-width:130px;max-width:130px;min-height:130px;max-height:130px;}
  .block-list,.sub-blocks {gap:10px;}
}
@media (max-width:600px) {
  .block-list,.sub-blocks {flex-direction: row;flex-wrap:wrap;}
  .topic-block,.sub-block {min-width:110px;max-width:110px;min-height:110px;max-height:110px;font-size:.95em;}
  .container {padding:0 4px;}
}
.section-subtitle {
	color: #357ad8;
	margin: 18px 0 10px 0;
	font-weight: 600;
	letter-spacing: .015em;
	font-size: 1.8rem;
	text-align: left;
}
.sub-blocks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2px;
  margin-bottom: 18px;
}
.sub-block {
  flex: 1 1 180px;
  background: #f9fafc;
  border-radius: 10px;
  padding: 0;
  min-width: 180px; max-width:180px;
  min-height: 180px; max-height:180px;
  display: flex; flex-direction:column; align-items:center; justify-content:center;
  text-align: center;
  font-size: 1em;
  margin-bottom: 2px;
  color: #2b4c8c;
  border:1.3px solid #e4eafd;
  transition:background .2s, border-color .2s, color .2s;
  text-decoration:none !important;
  position:relative;
}
.sub-block:hover {
  background:#e7f0fe;
  color:#1b376b;
  border-color:#b4ccfa;
}
.chesspiece-sm {
  width: 44px; height: 44px; margin-bottom:7px; margin-top:12px;
}
@media (max-width:600px) {
  .sub-block {min-width:90px;max-width:90px;min-height:90px;max-height:90px;}
  .chesspiece-sm {width:30px;height:30px;margin-bottom:4px;margin-top:7px;}
}
a.theme-selector {
	display: block;
	width: 500px;
	height: 40px;
	font-size: 1.4rem;
	border: 1px solid #ccc;
	text-align: center;
	line-height: 40px;
	border-radius: 6px;
	color: #999;
	transition: all 1s;
}
a.theme-selector:hover{
    background-color:#DDD;
    transition: all 1s;
    cursor:pointer;
}
.theme-cloud {
	max-width: 100%;
	margin: 2% auto;
	padding: 16px;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 2px 10px #8882;
	/* display: flex; */
	/* flex-wrap: wrap; */
	/* justify-content: center; */
	/* align-items: center; */
	position: absolute;
	width: 80%;
	left: 10%;
	top: -500px;
	display: none;
	transition: all 0.5s;
	z-index:10;
}
.theme-cloud:hover,a.theme-selector:hover ~ .theme-cloud{
    transition: all 0.5s;
    display:block;
    top:85px;
}
.theme-word {
    margin: 6px 12px;
    padding: 4px 9px;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    transition: transform 0.22s, box-shadow 0.22s;
    color: #2b3a4c;
    background: #e3e9f2;
    box-shadow: 0 2px 5px #2222;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}
.theme-word:hover {
    background: #cbe1f7;
    color: #274168;
    transform: scale(1.15) rotate(-4deg);
    box-shadow: 0 6px 12px #4442;
    z-index: 2;
}
#puzzle-title {
	font-size: 1.8rem;
	text-transform: uppercase;
}
#puzzle-title em{
    color:#b03b2f;
}
.puzzle-rating {
	font-size: 2.4rem;
	color: #FFF;
	font-weight: bold;
	position: relative;
	/* top: 118px; */
	background-color: #db803e;
	padding: 20px;
	border-radius: 10px;
	/* left: 0; */
	width: 200px;
	text-align: center;
	margin: -100px 0 0 auto;
}
.solved{
    font-size: 2.4rem;
	color: #FFF;
	font-weight: bold;
	position: absolute;
	/* top: 118px; */
	background-color: #99aa84;
	padding: 20px;
	border-radius: 10px;
	/* left: 0; */
	width: 200px;
	text-align: center;
	top: 150px;
	right: -10px;
}
.unsolved {
	font-size: 2.4rem;
	color: #FFF;
	font-weight: bold;
	position: absolute;
	/* top: 118px; */
	background-color: #b7b7b7;
	padding: 20px;
	border-radius: 10px;
	/* left: 0; */
	width: 200px;
	text-align: center;
	top: 150px;
	right: -10px;
}
.puzzle-who {
	font-size: 2.4rem;
	color: #1e5a8e;
	font-weight: bold;
}
#puzzlenextMove,#puzzleResetMoves {
	position: relative;
	width: 120px;
	height: 40px;
	margin: 10px;
	display: inline-block;
	background-color: #DDD;
	border: 0;
	font-size: 1.2rem;
	color: #666;
}
/* Promotion Popup Overlay and Modal */
#promotion-overlay {
    display: none; position: fixed; top:0; left:0; width:100vw; height:100vh;
    background: rgba(50,50,50,0.6); z-index:10000;
}
#promotion-modal {
    display: flex; justify-content: center; align-items: center;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: #fff; padding: 28px 40px 30px 40px; border-radius: 12px;
    box-shadow: 0 4px 18px 2px rgba(90,90,90,0.22);
}
.promo-pick-row { display: flex; gap: 24px; }
.promo-pick-btn {
    border: none; background: none; cursor: pointer;
    transition: transform 0.1s; border-radius: 6px;
    box-shadow: 0 2px 6px #aaa3;
}
.promo-pick-btn:hover { background: #ddecff; transform: scale(1.11); }
.promo-piece-img { width: 60px; height: 60px; display: block; }
#promotion-modal p { text-align: center; font-size: 18px; margin-bottom: 18px; font-family: sans-serif; }
.concept-box {
  background: #f7f9fc;
  border-left: 4px solid #4a6fa5;
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 0.95em;
}
.concept-box h3 {
  margin-top: 0;
}
.page-subtitle {
  font-size: 1.05em;
  max-width: 760px;
  margin: 0 auto 20px;
  color: #444;
}

.highlight-box {
  padding: 18px 22px;
  border-radius: 8px;
  margin: 20px 0;
  background: #f7f9fc;
}

.highlight-box.calm {
  border-left: 4px solid #4a6fa5;
}

.highlight-box.rule {
  border-left: 4px solid #2c8a4a;
  background: #f5fbf7;
}

.quote-box {
  font-style: italic;
  font-size: 1.1em;
  padding: 16px 20px;
  margin: 20px 0;
  border-left: 4px solid #888;
  background: #fafafa;
}

.quote-box.small {
  font-size: 1em;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.choice-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fff;
}

.choice-card h3 {
  margin-top: 0;
  font-size: 1.05em;
}

.choice-card ul {
  padding-left: 18px;
}

.choice-card .feeling {
  font-style: italic;
  color: #555;
  margin-top: 10px;
}

.soft-list li {
  margin: 6px 0;
}

.final-lesson {
  font-size: 1.3em;
  font-weight: bold;
  text-align: center;
  padding: 22px;
  background: #f0f4ff;
  border-radius: 10px;
}

/* Potuchess 2026 child-friendly visual system */
:root {
  --ink: #17223b;
  --navy: #17376f;
  --blue: #3167d5;
  --sky: #dfeaff;
  --gold: #ffc857;
  --coral: #ff7657;
  --mint: #80d6b2;
  --paper: #ffffff;
  --mist: #f3f6fb;
  --muted: #65718a;
  --radius-lg: 24px;
  --shadow: 0 16px 40px rgba(23, 55, 111, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  overflow-x: hidden;
  background: var(--mist);
  color: var(--ink);
  font-family: 'Atkinson Hyperlegible', 'Segoe UI', sans-serif;
  line-height: 1.55;
}
h1, h2, h3, button, .eyebrow, .quest-card strong {
  font-family: 'Fredoka', 'Segoe UI', sans-serif;
}
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: 3px;
}

.site-footer {
  margin-top: 56px;
  padding: 28px 20px;
  text-align: center;
  color: #65718a;
  background: #e8eef8;
}

/* Home dashboard */
.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 24px max(24px, calc((100vw - 1180px) / 2));
  overflow: hidden;
  text-align: left;
  background:
    radial-gradient(circle at 85% 15%, rgba(255,200,87,.28) 0 90px, transparent 91px),
    radial-gradient(circle at 8% 105%, rgba(128,214,178,.22) 0 120px, transparent 121px),
    linear-gradient(135deg, #102b5f, #2859ae);
}
.brand-mark {
  display: flex;
  align-items: center;
  width: 116px;
  height: 116px;
  justify-content: center;
  padding: 9px;
  overflow: hidden;
  border: 3px solid rgba(255,255,255,.7);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.brand-mark img { width: 100%; max-width: 100%; height: 100%; object-fit: contain; }
.hero-copy { position: relative; z-index: 1; max-width: 680px; }
.hero-copy h1 { margin: 4px 0 6px; color: #fff; font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.03; }
.hero-copy p { margin: 0; max-width: 620px; color: #dce8ff; font-size: 1.2rem; }
.eyebrow { color: var(--gold); font-size: .84rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow.dark { color: var(--blue); }
.hero-stats { display: flex; gap: 12px; }
.hero-stats div { min-width: 118px; padding: 18px 15px; border: 1px solid rgba(255,255,255,.2); border-radius: 18px; background: rgba(255,255,255,.11); color: #fff; text-align: center; backdrop-filter: blur(8px); }
.hero-stats strong { display: block; color: var(--gold); font-family: 'Fredoka', sans-serif; font-size: 2rem; line-height: 1; }
.hero-stats span { display: block; margin-top: 7px; color: #e6eeff; font-size: .84rem; }

.home-container { width: min(1180px, calc(100% - 32px)); margin: 32px auto 70px; }
.home-container > section { max-width: none; padding: 0; background: transparent; box-shadow: none; }
.mission-panel {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: stretch;
  min-height: 270px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #fff4d5, #fff 62%);
  box-shadow: var(--shadow);
}
.mission-art { position: relative; display: grid; place-items: center; background: linear-gradient(145deg, var(--gold), #ff9f43); }
.mission-art::after { content: ''; position: absolute; inset: 18px; border: 3px dashed rgba(255,255,255,.65); border-radius: 50%; }
.mission-art img { position: relative; z-index: 1; width: 112px; filter: drop-shadow(0 12px 12px rgba(65,43,0,.22)); }
.mission-art span { position: absolute; top: 26px; right: 29px; z-index: 2; color: #fff; font-size: 2.3rem; transform: rotate(10deg); }
.mission-copy { align-self: center; padding: 35px 42px; }
.mission-kicker { color: #9a5c00; font-size: .84rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.mission-copy h2 { margin: 6px 0 7px; color: var(--navy); font-size: clamp(1.8rem, 3vw, 2.65rem); }
.mission-copy p { max-width: 660px; margin: 0 0 22px; color: #4f5d73; font-size: 1.08rem; }
.mission-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.primary-action, .quiet-action { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 20px; border-radius: 14px; font-weight: 700; }
.primary-action { gap: 12px; background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(23,55,111,.2); }
.primary-action:hover { background: #2454a9; transform: translateY(-2px); }
.quiet-action { color: var(--navy); }
.quiet-action:hover { background: #fff1c7; }

.quick-start, .skill-shelf { margin-top: 52px !important; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 0 0 18px; }
.section-heading h2 { margin: 4px 0 0; color: var(--ink); font-size: clamp(1.7rem, 3vw, 2.35rem); }
.section-heading > p { margin: 0 0 5px; color: var(--muted); }
.quest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quest-card { position: relative; display: flex; min-height: 310px; flex-direction: column; align-items: flex-start; padding: 28px; overflow: hidden; border: 2px solid transparent; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 8px 28px rgba(23,55,111,.09); transition: transform .2s ease, box-shadow .2s ease; }
.quest-card::after { content: ''; position: absolute; right: -42px; bottom: -52px; width: 150px; height: 150px; border-radius: 50%; background: currentColor; opacity: .08; }
.quest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.quest-icon { display: grid; width: 70px; height: 70px; place-items: center; margin-bottom: 18px; border-radius: 20px; background: var(--sky); }
.quest-icon img { width: 49px; height: 49px; object-fit: contain; }
.quest-level { margin-bottom: 5px; color: var(--blue); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.quest-card > strong { color: var(--navy); font-size: 1.48rem; }
.quest-card > strong + span { margin-top: 8px; color: var(--muted); }
.quest-cta { margin-top: auto; padding-top: 24px; color: var(--navy) !important; font-weight: 700; }
.quest-puzzles .quest-icon { background: #dff7ec; }
.quest-puzzles .quest-level { color: #137b58; }
.quest-predict .quest-icon { background: #ffe9e2; }
.quest-predict .quest-level { color: #bd4f35; }

.shelf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shelf-grid > a { display: flex; align-items: center; gap: 15px; min-height: 92px; padding: 16px; border: 1px solid #dde5f3; border-radius: 18px; background: #fff; transition: border-color .2s, transform .2s; }
.shelf-grid > a:hover { border-color: var(--blue); transform: translateY(-3px); }
.shelf-grid img { width: 50px; height: 50px; object-fit: contain; }
.shelf-grid strong, .shelf-grid small { display: block; }
.shelf-grid strong { color: var(--navy); font-size: 1.08rem; }
.shelf-grid small { margin-top: 2px; color: var(--muted); }

.lesson-library { margin-top: 36px; overflow: hidden; border: 1px solid #dce4f2; border-radius: 20px; background: #fff; }
.lesson-library summary { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; color: var(--navy); cursor: pointer; font-family: 'Fredoka', sans-serif; font-size: 1.18rem; font-weight: 600; list-style: none; }
.lesson-library summary::-webkit-details-marker { display: none; }
.library-groups { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; padding: 5px 24px 26px; border-top: 1px solid #e4e9f3; }
.library-groups h3 { margin-bottom: 8px; color: var(--navy); }
.library-groups a { display: block; padding: 6px 0; color: #52627d; }
.library-groups a:hover { color: var(--blue); }

/* Shared lesson and puzzle refinements */
body > header:not(.hero-shell) { padding: 10px 16px 15px; background: linear-gradient(135deg, #17376f, #315eaa); }
body > header:not(.hero-shell) > a { display: inline-flex; width: 62px; height: 62px; align-items: center; justify-content: center; margin-bottom: 3px; padding: 5px; overflow: hidden; border: 2px solid rgba(255,255,255,.75); border-radius: 17px; background: #fff; box-shadow: 0 7px 18px rgba(4,20,49,.2); }
body > header:not(.hero-shell) > a img { width: 100%; height: 100%; max-width: 100% !important; object-fit: contain; }
body > header:not(.hero-shell) h1 { margin: 3px 0 1px; font-size: clamp(1.65rem, 3.2vw, 2.25rem); line-height: 1.08; }
body > header:not(.hero-shell) p { margin: 3px auto; color: #dce7ff; font-size: 1rem; }
section { border-radius: 18px; box-shadow: 0 8px 28px rgba(23,55,111,.08); }
.flashcard { min-height: 150px; height: auto; }
.card-front, .card-back { min-height: 150px; padding: 18px; }
.quiz-option { min-height: 48px; padding: 12px 14px; border: 2px solid #dfe5ee; border-radius: 12px; }
.quiz-option:hover { border-color: #94b4f5; }

.theme-picker { position: relative; }
.theme-picker summary, a.theme-selector { width: 100%; min-height: 52px; height: auto; padding: 12px 18px; border: 2px solid #dce4f2; border-radius: 14px; color: #516079; font-size: 1.05rem; line-height: 1.35; cursor: pointer; list-style: none; }
.theme-picker summary::-webkit-details-marker { display: none; }
.theme-picker .theme-cloud { position: static; display: flex; width: 100%; max-height: 310px; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding: 15px; overflow-y: auto; }
.theme-picker .theme-word { margin: 0; font-size: .95rem !important; transform: none !important; }

.puzzle-stage { position: relative; }
.puzzle-meta { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0 18px; }
.puzzle-chip { padding: 7px 11px; border-radius: 999px; background: #edf2fb; color: #3d4e6b; font-size: .92rem; }
.puzzle-headline { margin-bottom: 5px; font-size: clamp(1.45rem, 4vw, 2rem) !important; line-height: 1.2; }
.puzzle-status-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 18px 0; }
.puzzle-who, .puzzle-rating, .solved, .unsolved { position: static; width: auto; margin: 0; padding: 10px 16px; border-radius: 999px; font-size: 1rem; line-height: 1.2; }
.puzzle-who { color: var(--navy); background: var(--sky); }
.puzzle-rating { color: #7a4500; background: #ffe3aa; }
.solved { color: #135d42; background: #d9f4e8; }
.unsolved { color: #5c6679; background: #e8edf4; }
#puzzle-board { width: min(100%, 520px) !important; margin: 18px auto; touch-action: none; }
.puzzle-actions { display: flex; justify-content: center; gap: 10px; }
#puzzlenextMove, #puzzleResetMoves { width: auto; min-width: 132px; min-height: 48px; height: auto; margin: 0; padding: 10px 16px; border-radius: 12px; background: #e7edfa; color: var(--navy); font-weight: 700; }
#puzzlenextMove:hover, #puzzleResetMoves:hover { background: #d6e2fa; }
#puzzle-feedback { max-width: 520px; min-height: 56px; margin: 16px auto 0; padding: 14px 16px; border-radius: 14px; background: #f0f4fb; color: #4f5e77; text-align: center; font-weight: 700; }
#puzzle-feedback.success { background: #d9f4e8; color: #135d42; }
#puzzle-feedback.try-again { background: #fff0d8; color: #86520d; }

/* Opening adventure maps */
.course-hub-kicker { display: block; margin-top: 2px; color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.course-hub-main { width: min(1120px, calc(100% - 28px)); margin: 26px auto 70px; }
.course-hub-main > section { width: auto; max-width: none; margin-left: 0; margin-right: 0; }
.course-hub-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 25px 30px; border: 1px solid #dfe7f4; background: linear-gradient(120deg, #fff, #eef4ff); }
.course-hub-intro h2 { margin: 4px 0 5px; color: var(--navy); font-size: clamp(1.55rem, 3vw, 2.15rem); }
.course-hub-intro p { max-width: 690px; margin: 0; color: #56647a; }
.course-hub-route { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.course-hub-route span { padding: 8px 12px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; }
.course-hub-route b { color: #8090aa; }
.course-card-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 20px !important; padding: 0 !important; border: 0; background: transparent !important; box-shadow: none !important; }
.course-map-card { position: relative; display: flex; min-height: 300px; grid-column: span 2; flex-direction: column; align-items: flex-start; padding: 24px; overflow: hidden; border: 2px solid transparent; border-radius: 24px; background: #fff; box-shadow: 0 10px 30px rgba(23,55,111,.1); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.course-map-card:nth-child(4), .course-map-card:nth-child(5) { grid-column: span 3; min-height: 270px; }
.course-map-card:hover, .course-map-card:focus-visible { transform: translateY(-5px); border-color: #8eafe8; box-shadow: 0 17px 38px rgba(23,55,111,.16); }
.course-card-number { position: absolute; top: 18px; right: 18px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: #edf2fb; color: var(--navy); font: 700 .9rem 'Fredoka', sans-serif; }
.course-card-piece { display: grid; width: 68px; height: 68px; place-items: center; margin-bottom: 14px; border-radius: 19px; background: #eaf1ff; }
.course-card-piece img { width: 48px; height: 48px; object-fit: contain; }
.course-card-tag { color: var(--blue); font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.course-map-card h2 { margin: 4px 0 7px; color: var(--navy); font-size: 1.45rem; line-height: 1.08; }
.course-map-card p { margin: 0 0 20px; color: #59677c; }
.course-map-card strong { margin-top: auto; color: var(--navy); }
.course-map-card.card-gambit .course-card-piece { background: #fff0e9; }
.course-map-card.card-gambit .course-card-tag { color: #b94a30; }
.course-map-card.card-knights .course-card-piece { background: #e7f8f0; }
.course-map-card.card-knights .course-card-tag { color: #147556; }
.course-map-card.card-defense .course-card-piece { background: #f0ebff; }
.course-map-card.card-defense .course-card-tag { color: #6948ad; }
.course-map-card.card-predict { background: linear-gradient(135deg, #17376f, #284f92); }
.course-map-card.card-predict .course-card-number { background: var(--gold); color: #4d3700; }
.course-map-card.card-predict .course-card-piece { background: #fff; }
.course-map-card.card-predict .course-card-tag { color: #ffd66b; }
.course-map-card.card-predict h2, .course-map-card.card-predict strong { color: #fff; }
.course-map-card.card-predict p { color: #dce8ff; }

@media (max-width: 900px) {
  .hero-shell { grid-template-columns: 112px 1fr; }
  .brand-mark { width: 100px; height: 100px; }
  .hero-stats { grid-column: 1 / -1; justify-content: center; }
  .quest-grid { grid-template-columns: 1fr; }
  .quest-card { min-height: 245px; }
  .shelf-grid { grid-template-columns: repeat(2,1fr); }
  .course-card-grid { grid-template-columns: repeat(2, 1fr); }
  .course-map-card, .course-map-card:nth-child(4), .course-map-card:nth-child(5) { grid-column: span 1; }
  .course-map-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .hero-shell { display: block; padding: 24px 20px 32px; }
  .brand-mark { width: 86px; height: 86px; margin-bottom: 16px; padding: 6px; border-radius: 18px; }
  .hero-copy h1 { font-size: 2.25rem; }
  .hero-copy p { font-size: 1.04rem; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 22px; }
  .hero-stats div { min-width: 0; }
  .home-container { width: min(100% - 22px, 1180px); margin-top: 18px; }
  .mission-panel { display: block; }
  .mission-art { min-height: 150px; }
  .mission-art img { width: 85px; }
  .mission-copy { padding: 25px 22px 28px; }
  .mission-actions { align-items: stretch; flex-direction: column; }
  .primary-action, .quiet-action { width: 100%; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .quick-start, .skill-shelf { margin-top: 38px !important; }
  .quest-card { min-height: 260px; padding: 24px; }
  .shelf-grid, .library-groups { grid-template-columns: 1fr; }
  .shelf-grid > a { min-height: 82px; }
  section { width: calc(100% - 16px); margin-left: auto; margin-right: auto; padding: 16px; }
  body > header:not(.hero-shell) > a { width: 54px; height: 54px; }
  #variant-menu ul { display: flex; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 2px 12px 10px; scroll-snap-type: x proximity; }
  #variant-menu a { white-space: nowrap; scroll-snap-align: start; }
  #pgn-board-container { width: 100%; max-width: 100%; }
  #pgn-holder { flex-direction: column; }
  .puzzle-actions { align-items: stretch; flex-direction: column; }
  #puzzlenextMove, #puzzleResetMoves { width: 100%; }
  .promo-pick-row { gap: 8px; }
  #promotion-modal { width: calc(100% - 24px); padding: 22px 14px; }
  .promo-piece-img { width: 48px; height: 48px; }
  .course-hub-intro { align-items: flex-start; flex-direction: column; padding: 22px; }
  .course-hub-route { width: 100%; justify-content: center; }
  .course-hub-route span { padding: 7px 9px; font-size: .88rem; }
  .course-card-grid { grid-template-columns: 1fr; }
  .course-map-card, .course-map-card:nth-child(4), .course-map-card:nth-child(5), .course-map-card:last-child { min-height: 250px; grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Whole-trainer navigation: primary destinations + a complete lesson map */
.potu-site-nav { position: relative; z-index: 50; width: min(1180px, calc(100% - 24px)); margin: 0 auto 8px; color: var(--navy); text-align: left; }
.potu-nav-bar { display: flex; justify-content: center; gap: 5px; padding: 4px; border: 1px solid rgba(255,255,255,.36); border-radius: 14px; background: rgba(8,29,67,.32); box-shadow: 0 7px 20px rgba(5,21,51,.13); backdrop-filter: blur(8px); }
.potu-nav-bar > a, .potu-nav-bar > button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 6px; padding: 7px 13px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; font: 700 .92rem 'Atkinson Hyperlegible', sans-serif; text-decoration: none; }
.potu-nav-bar > a:hover, .potu-nav-bar > a:focus-visible, .potu-nav-bar > button:hover, .potu-nav-bar > button:focus-visible, .potu-site-nav.menu-open .potu-library-toggle { outline: none; background: #fff; color: var(--navy); }
.potu-nav-bar span { font-size: 1.15em; }
.potu-library-toggle { margin-left: 4px; background: #ffd66b !important; color: #4c3500 !important; }
.potu-library-menu { position: absolute; top: calc(100% + 9px); left: 0; width: 100%; max-height: min(72vh, 650px); padding: 20px; overflow-y: auto; border: 1px solid #dce4f1; border-radius: 22px; background: #fff; box-shadow: 0 22px 60px rgba(9,29,66,.28); }
.potu-library-menu[hidden] { display: none; }
.potu-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 2px 4px 17px; border-bottom: 1px solid #e3e9f2; }
.potu-library-heading strong, .potu-library-heading span { display: block; }
.potu-library-heading strong { color: var(--navy); font: 700 1.35rem 'Fredoka', sans-serif; }
.potu-library-heading span { margin-top: 3px; color: var(--muted); }
.potu-library-close { width: 42px; height: 42px; flex: 0 0 42px; border: 0; border-radius: 50%; background: #edf2fa; color: var(--navy); cursor: pointer; font-size: 1.8rem; line-height: 1; }
.potu-library-close:hover, .potu-library-close:focus-visible { background: #dce7fa; outline: 3px solid #9db9ed; }
.potu-library-grid { display: grid; grid-template-columns: 1.4fr 1fr .85fr; gap: 16px; padding-top: 18px; }
.potu-nav-group { width: auto !important; max-width: none !important; margin: 0 !important; padding: 16px !important; border: 1px solid #e1e7f0 !important; border-radius: 17px !important; background: #f8faff !important; box-shadow: none !important; }
.potu-nav-group.black-lessons { background: #fff8e9 !important; }
.potu-nav-group.challenge-lessons { background: #eefaf4 !important; }
.potu-nav-group h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 11px !important; color: var(--navy); font-size: 1.15rem !important; }
.potu-nav-group h2 span { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: var(--navy); color: #fff; }
.potu-nav-group > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 3px 10px; }
.potu-nav-group.challenge-lessons > div { grid-template-columns: 1fr; }
.potu-nav-group a { padding: 7px 9px; border-radius: 9px; color: #44536c; font-weight: 700; line-height: 1.25; }
.potu-nav-group a:hover, .potu-nav-group a:focus-visible { background: #fff; color: var(--blue); outline: 2px solid #b9cced; }
.potu-nav-group a.is-current { background: var(--navy); color: #fff; }
.potu-course-menu { padding: 14px 16px 16px !important; border: 0 !important; background: #f4f7fd !important; text-align: left !important; }
.potu-course-head { display: flex; width: min(1120px, 100%); align-items: center; justify-content: space-between; gap: 18px; margin: 0 auto 11px; }
.potu-course-title { display: flex; min-width: 190px; align-items: center; gap: 10px; color: var(--navy); }
.potu-course-title > span:last-child, .potu-course-title strong, .potu-course-title small { display: block; }
.potu-course-title strong { font: 700 .94rem 'Fredoka', sans-serif; }
.potu-course-title small { margin-top: 1px; color: #66748a; font-size: .78rem; font-weight: 700; }
.potu-course-icon { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; background: var(--navy); color: #fff; font-size: 1.3rem; box-shadow: 0 5px 12px rgba(23,55,111,.18); }
.potu-course-tools { display: flex; align-items: center; gap: 7px; }
.potu-course-next { display: inline-flex; min-height: 40px; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid #d7e0ef; border-radius: 11px; background: #fff; color: #40516c; font-size: .86rem; font-weight: 700; }
.potu-course-next span { margin-right: 3px; color: #7a879b; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.potu-course-next:hover { border-color: #9eb9eb; color: var(--blue); }
.potu-course-scroll { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #d7e0ef; border-radius: 11px; background: #fff; color: var(--navy); cursor: pointer; font-size: 1.65rem; line-height: 1; }
.potu-course-scroll:hover, .potu-course-scroll:focus-visible { border-color: #8eafe8; outline: 3px solid #d9e6fb; }
#variant-menu.potu-course-menu .potu-course-track { display: flex; width: min(1120px, 100%); flex-wrap: nowrap; justify-content: flex-start; gap: 8px; margin: 0 auto; padding: 11px 1px 5px; overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x proximity; scrollbar-width: none; -ms-overflow-style: none; }
#variant-menu.potu-course-menu .potu-course-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
#variant-menu.potu-course-menu .potu-course-track li { flex: 0 0 auto; }
#variant-menu.potu-course-menu .potu-course-track a { position: relative; display: flex; min-width: 145px; min-height: 58px; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid #dce4f1; border-radius: 14px; background: #fff; color: #42526b; box-shadow: 0 3px 10px rgba(23,55,111,.05); font-size: .91rem; line-height: 1.12; scroll-snap-align: start; }
#variant-menu.potu-course-menu .potu-course-track a:hover { border-color: #93b2ea; background: #fff; color: var(--navy); transform: translateY(-1px); }
#variant-menu.potu-course-menu .potu-course-track a.active { min-width: 177px; border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 7px 16px rgba(23,55,111,.22); }
.potu-course-step { display: grid; width: 27px; height: 27px; flex: 0 0 27px; place-items: center; border-radius: 9px; background: #e9eff9; color: var(--navy); font: 700 .78rem 'Fredoka', sans-serif; }
a.active .potu-course-step { background: #ffd66b; color: #503900; }
.potu-course-name { max-width: 150px; font-weight: 700; }
.potu-current-badge { position: absolute; top: -7px; right: 7px; padding: 3px 7px; border-radius: 999px; background: #ffd66b; color: #503900; font-size: .59rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 820px) {
  .potu-nav-bar { justify-content: stretch; overflow: visible; }
  .potu-nav-bar > a, .potu-nav-bar > button { min-width: 0; flex: 1 1 0; padding-right: 8px; padding-left: 8px; white-space: nowrap; }
  .potu-library-toggle { margin-left: 0; }
  .potu-library-grid { grid-template-columns: 1fr; }
  .potu-nav-group > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .potu-course-next { display: none; }
}

@media (max-width: 520px) {
  .potu-site-nav { width: calc(100% - 12px); margin-bottom: 12px; }
  .potu-nav-bar { border-radius: 14px; }
  .potu-nav-bar > a, .potu-nav-bar > button { min-height: 42px; padding: 8px 12px; }
  .potu-library-menu { position: fixed; top: 8px; right: 8px; bottom: 8px; left: 8px; width: auto; max-height: none; padding: 15px; border-radius: 18px; }
  .potu-library-heading strong { font-size: 1.15rem; }
  .potu-library-heading span { font-size: .92rem; }
  .potu-nav-group > div { grid-template-columns: 1fr; }
  .potu-course-menu { padding: 12px 8px 13px !important; }
  .potu-course-head { padding: 0 4px; }
  .potu-course-scroll { width: 38px; height: 38px; }
  #variant-menu.potu-course-menu .potu-course-track a { min-width: 138px; }
}

@media (max-width: 650px) {
  .potu-nav-bar { gap: 2px; }
  .potu-nav-bar > a, .potu-nav-bar > button { min-height: 40px; padding: 7px 5px; font-size: .8rem; }
  .potu-nav-bar > a span, .potu-nav-bar > button span { display: none; }
}

/* Shared child-friendly lesson experience */
.lesson-page .lesson-main { width: min(1120px, calc(100% - 28px)); margin: 24px auto 70px; }
.lesson-page section,
.lesson-page .lesson-card { max-width: 1120px; padding: clamp(20px, 3vw, 34px); border: 1px solid #e3e9f3; border-radius: 24px; box-shadow: 0 12px 34px rgba(23,55,111,.09); }
.lesson-page section h2 { margin-top: 0; font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.15; }
.lesson-page section h3 { color: var(--navy); font-size: 1.3rem; }
.lesson-lead { max-width: 820px; color: #4c5c74; font-size: 1.12rem; }
.lesson-kicker { display: inline-block; margin-bottom: 7px; color: var(--blue); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lesson-steps { position: relative; z-index: 2; display: flex; width: fit-content; max-width: 100%; gap: 8px; margin: 0 auto 22px; padding: 8px; overflow-x: auto; border: 1px solid #dce5f3; border-radius: 999px; background: rgba(255,255,255,.94); box-shadow: 0 8px 24px rgba(23,55,111,.12); }
.lesson-steps a { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; color: #52627b; white-space: nowrap; font-weight: 700; }
.lesson-steps a:hover { background: var(--sky); color: var(--navy); }
.lesson-steps span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-family: 'Fredoka', sans-serif; font-size: .82rem; }

#initial-pgn-board, #pgn-board { width: min(100%, 520px) !important; margin: 0 auto; }
.pgn-board { width: min(100%, 500px) !important; }
.setup-board-shell, .pgn-play-area { display: grid; grid-template-columns: minmax(360px, 540px) minmax(240px, 1fr); gap: 24px; align-items: center; margin: 24px auto; }
.pgn-board-shell { min-width: 0; }
.setup-controls { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; align-items: center; }
.setup-controls button, #pgn-controls button, .pgn-controls button { min-height: 46px; padding: 9px 16px; border: 0; border-radius: 12px; background: #dfe9fd; color: var(--navy); cursor: pointer; font-size: 1rem; font-weight: 700; }
.setup-controls button:hover, #pgn-controls button:hover, .pgn-controls button:hover { background: #cbdcff; }
.setup-controls button:disabled { opacity: .45; cursor: default; }
#setup-progress, #current-move, .current-move { min-width: 115px; color: #5b6880; text-align: center; font-weight: 700; }
.potu-coach { position: relative; display: flex; gap: 16px; align-items: flex-start; min-height: 150px; padding: 22px; border: 2px solid #f3c65f; border-radius: 22px; background: linear-gradient(145deg, #fff8df, #fff); box-shadow: 0 10px 25px rgba(126,83,0,.10); }
.potu-coach::before { content: ''; position: absolute; top: 42px; left: -15px; width: 26px; height: 26px; border-left: 2px solid #f3c65f; border-bottom: 2px solid #f3c65f; background: #fff9e4; transform: rotate(45deg); }
.potu-coach-avatar { display: flex; width: 68px; height: 68px; flex: 0 0 68px; align-items: center; justify-content: center; overflow: hidden; padding: 4px; border-radius: 16px; background: #fff; box-shadow: 0 5px 14px rgba(23,55,111,.12); }
.potu-coach-avatar img { width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.potu-coach-label { display: block; margin-bottom: 5px; color: #9a5c00; font-size: .76rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.potu-coach p { margin: 0; color: #38475f; font-size: 1.06rem; line-height: 1.5; }
.potu-coach.is-speaking { animation: coach-pop .25s ease-out; }
@keyframes coach-pop { 0% { transform: scale(.98); } 100% { transform: scale(1); } }
.potu-last-square { background: #ffd667 !important; box-shadow: inset 0 0 0 4px rgba(166,97,0,.38) !important; }
.lesson-notice { padding: 12px 15px; border-radius: 12px; background: #fff0d8; color: #86520d; }

.pattern-rules { margin-top: 30px; }
.rule-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 13px; }
.rule-grid article { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid #dfe6f2; border-radius: 17px; background: #f8faff; }
.rule-grid article:nth-child(2) { background: #eefaf5; }
.rule-grid article:nth-child(3) { background: #fff7e6; }
.rule-grid article:nth-child(4) { background: #fff0eb; }
.rule-number { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 11px; background: var(--navy); color: #fff; font-family: 'Fredoka', sans-serif; font-weight: 700; }
.rule-grid strong { display: block; color: var(--navy); font-family: 'Fredoka', sans-serif; font-size: 1.08rem; }
.rule-grid p { margin: 5px 0 0; color: #536178; }
.tap-hint { margin-top: -6px; color: var(--muted); }

.lesson-page .flashcard { max-width: 820px; min-height: 132px; margin: 14px auto; }
.lesson-page .card-front, .lesson-page .card-back { min-height: 132px; padding: 22px 28px; border: 2px solid #b9cbef; border-radius: 18px; font-size: 1.16rem; }
.lesson-page .card-front::after { content: 'Tap to reveal'; position: absolute; right: 16px; bottom: 10px; color: #637699; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.lesson-page .card-back { border-color: #9bd4ba; background: #e5f8ef; }

.lesson-page #pgn-board-container { width: 100%; max-width: 1000px; margin: 26px auto 8px; padding: clamp(16px, 3vw, 28px); border: 1px solid #dce6f4; border-radius: 22px; background: #f5f8fe; }
.pgn-importer { margin-bottom: 18px; border: 1px solid #d9e2f0; border-radius: 13px; background: #fff; }
.pgn-importer summary { padding: 12px 16px; color: #5e6c83; cursor: pointer; font-weight: 700; }
.pgn-importer #pgn-holder { padding: 0 14px 14px; }
#pgn-comment { min-height: 0; margin: 10px 0 20px; padding: 12px 15px; border: 0; border-radius: 14px; background: #edf3ff; color: #41516b; }
#pgn-comment:empty { display: none; }
#pgn-moves { max-height: 105px; margin: 18px 0 8px; padding: 12px; overflow-y: auto; border-radius: 12px; background: #fff; line-height: 1.9; }
#pgn-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; align-items: center; margin: 12px 0 18px; }
#pgn-buttons { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.game-button { min-height: 50px; margin: 0; padding: 10px 14px; border: 2px solid transparent; border-radius: 13px; background: #e7edf8; color: #42516a; line-height: 1.25; text-transform: none; cursor: pointer; font-family: 'Fredoka', sans-serif; font-weight: 600; }
.game-button:hover, .game-button.active { border-color: var(--blue); background: var(--navy); color: #fff; }
.multi-board-shell { display: grid; grid-template-columns: minmax(300px, 500px) minmax(220px, 1fr); gap: 18px; align-items: center; margin: 16px 0; }
.multi-board-shell .pgn-board { margin: 0; }
.multi-board-shell .potu-coach { min-height: 130px; }
.multi-board-lesson .two-col { display: block; }
.multi-board-lesson .left-half, .multi-board-lesson .right-half { width: 100%; min-width: 0; }
.multi-board-lesson .multi-board-shell { grid-template-columns: minmax(360px, 520px) minmax(240px, 1fr); }

/* Colle Phase 1: read Black, then choose a plan */
.response-lab-page { background: radial-gradient(circle at 7% 37%, #e6efff 0 125px, transparent 126px), radial-gradient(circle at 96% 74%, #fff0c7 0 150px, transparent 151px), #f4f7fc; }
.response-lab-main { width: min(1160px, calc(100% - 28px)); margin: 26px auto 72px; }
.response-lab-main > section { width: 100%; max-width: none; margin: 0 0 20px; }
.response-lab-intro { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 25px; align-items: center; background: linear-gradient(135deg, #fff, #eef4ff); }
.response-lab-copy h2 { margin: 3px 0 7px; color: var(--navy); font-size: clamp(1.8rem, 3.4vw, 2.55rem); }
.response-lab-copy > p { max-width: 760px; margin: 0; color: #56657d; font-size: 1.08rem; }
.response-scan { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 22px; }
.response-scan article { display: flex; gap: 11px; padding: 15px; border: 1px solid #dce5f3; border-radius: 16px; background: #fff; }
.response-scan article > span { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 10px; background: var(--navy); color: #fff; font: 700 .86rem 'Fredoka', sans-serif; }
.response-scan strong { display: block; color: var(--navy); font-family: 'Fredoka', sans-serif; }
.response-scan p { margin: 3px 0 0; color: #68758a; font-size: .87rem; line-height: 1.35; }
.response-coach-note { display: flex; gap: 14px; align-items: center; padding: 18px; border: 2px solid #f0c55f; border-radius: 20px; background: #fff8dd; }
.response-coach-note img { width: 70px; height: 70px; flex: 0 0 70px; object-fit: contain; }
.response-coach-note strong { color: #845400; font-family: 'Fredoka', sans-serif; font-size: 1.08rem; }
.response-coach-note p { margin: 4px 0 0; color: #5f533b; font-size: .94rem; line-height: 1.4; }

.response-picker { padding: clamp(20px, 3vw, 30px) !important; }
.response-picker-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.response-picker-heading h2 { margin: 2px 0 0 !important; }
.response-progress { display: flex; min-width: 120px; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 14px; background: #edf3ff; color: #66758b; }
.response-progress strong { color: var(--navy); font: 700 1.6rem 'Fredoka', sans-serif; }
.response-progress span { max-width: 65px; font-size: .75rem; font-weight: 700; line-height: 1.15; }
.response-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.response-card { display: flex; min-height: 100px; align-items: center; gap: 12px; padding: 13px; border: 2px solid transparent; border-radius: 17px; background: #f2f5fb; color: #53627a; cursor: pointer; text-align: left; transition: transform .17s ease, border-color .17s ease, box-shadow .17s ease; }
.response-card:hover, .response-card:focus-visible { border-color: #88a9e3; outline: none; box-shadow: 0 8px 18px rgba(23,55,111,.12); transform: translateY(-2px); }
.response-card.active { border-color: var(--navy); background: #edf3ff; box-shadow: inset 0 0 0 1px var(--navy); }
.response-card-icon { display: grid; width: 43px; height: 43px; flex: 0 0 43px; place-items: center; border-radius: 13px; background: #fff; color: var(--navy); box-shadow: 0 4px 11px rgba(23,55,111,.1); font-size: 1.35rem; }
.response-card small, .response-card strong, .response-card em { display: block; }
.response-card small { color: #70809a; font-size: .72rem; font-weight: 700; }
.response-card strong { margin-top: 2px; color: var(--navy); font-family: 'Fredoka', sans-serif; font-size: 1.02rem; line-height: 1.15; }
.response-card em { margin-top: 3px; color: #63738c; font-size: .78rem; font-style: normal; }

.response-family-stage { scroll-margin-top: 16px; }
.response-family { width: 100%; max-width: none !important; margin: 0 !important; padding: clamp(22px, 3vw, 34px) !important; }
.response-lab-enhanced .response-family[hidden] { display: none !important; }
.response-family.active { animation: response-panel-in .24s ease-out; }
@keyframes response-panel-in { from { opacity: .35; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.response-family-kicker { display: inline-block; margin-bottom: 6px; color: var(--blue); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.response-family > h2 { padding-right: 0; color: var(--navy) !important; }
.response-family .child-tips > ol { display: grid; gap: 9px; padding: 0; counter-reset: response-tip; list-style: none; }
.response-family .child-tips > ol > li { position: relative; margin: 0; padding: 13px 15px 13px 47px; border: 1px solid #dfe6f1; border-radius: 14px; background: #f8faff; }
.response-family .child-tips > ol > li::before { counter-increment: response-tip; content: counter(response-tip); position: absolute; top: 12px; left: 13px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: #dfe9fb; color: var(--navy); font: 700 .75rem 'Fredoka', sans-serif; }
.response-truth-note { margin: 0 0 22px; padding: 13px 16px; border: 1px solid #f1c86c; border-radius: 14px; background: #fff7dc; color: #6e541d; }
.response-family .highlight-slideshow { width: 100%; max-width: none; margin-top: 16px; }
.response-family-nav { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; margin-top: 15px; padding: 13px; border: 1px solid #dfe6f1; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(23,55,111,.08); }
.response-family-nav button { min-height: 47px; padding: 9px 16px; border: 0; border-radius: 13px; background: var(--navy); color: #fff; cursor: pointer; font-weight: 700; }
.response-family-nav button:hover, .response-family-nav button:focus-visible { background: #2857aa; }
.response-family-nav div { text-align: center; }
.response-family-nav strong, .response-family-nav span { display: block; }
.response-family-nav strong { color: var(--navy); font-family: 'Fredoka', sans-serif; font-size: 1.05rem; }
.response-family-nav span { color: #728096; font-size: .83rem; }

/* Colle Phase 2: opening-to-middlegame transition missions */
.middlegame-lesson { background: radial-gradient(circle at 4% 31%, #e4efff 0 140px, transparent 141px), radial-gradient(circle at 97% 78%, #fff0c7 0 155px, transparent 156px), #f4f7fc; }
.middlegame-main { width: min(1160px, calc(100% - 28px)) !important; }
.transition-hero { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 25px; align-items: center; background: linear-gradient(135deg,#fff,#edf4ff); }
.transition-hero h2 { color: var(--navy); font-size: clamp(1.9rem,3.5vw,2.65rem) !important; }
.transition-checks { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.transition-checks span { display: inline-flex; min-height: 43px; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid #dce5f3; border-radius: 13px; background: #fff; color: #42536c; font-weight: 700; }
.transition-checks b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--navy); color: #fff; font-family: 'Fredoka',sans-serif; }
.transition-pot-note { display: flex; gap: 14px; align-items: center; padding: 19px; border: 2px solid #efc55d; border-radius: 21px; background: #fff8dd; }
.transition-pot-note img { width: 72px; height: 72px; flex: 0 0 72px; object-fit: contain; }
.transition-pot-note strong { color: #865600; font-family: 'Fredoka',sans-serif; font-size: 1.08rem; }
.transition-pot-note p { margin: 4px 0 0; color: #5c523d; line-height: 1.45; }

.transition-compass { background: #fff; }
.transition-tabs { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; margin: 22px 0 16px; }
.transition-tab { position: relative; display: grid; min-height: 132px; grid-template-columns: 42px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-content: center; padding: 16px; border: 2px solid #dfe6f2; border-radius: 18px; background: #f8faff; color: #33445e; text-align: left; cursor: pointer; }
.transition-tab > span { display: grid; width: 42px; height: 42px; grid-row: 1 / 3; place-items: center; align-self: center; border-radius: 13px; background: #e1eafb; color: var(--navy); font-size: 1.35rem; }
.transition-tab b { align-self: end; color: var(--navy); font-family: 'Fredoka',sans-serif; font-size: 1.05rem; }
.transition-tab small { align-self: start; margin-top: 3px; color: #6d7b90; font-size: .82rem; }
.transition-tab:hover, .transition-tab:focus-visible { border-color: #91ace0; background: #f0f5ff; outline: none; }
.transition-tab.active { border-color: var(--navy); background: var(--navy); box-shadow: 0 9px 20px rgba(23,55,111,.18); }
.transition-tab.active b, .transition-tab.active small { color: #fff; }
.transition-tab.active > span { background: var(--yellow); }
.transition-panel { padding: clamp(18px,3vw,28px); border: 1px solid #dce5f2; border-radius: 20px; background: linear-gradient(145deg,#f7faff,#fff); }
.transition-panel[hidden] { display: none !important; }
.transition-panel.active { animation: response-panel-in .24s ease-out; }
.transition-panel-heading { display: flex; gap: 14px; align-items: flex-start; }
.transition-number { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; background: var(--navy); color: #fff; font: 700 1.1rem 'Fredoka',sans-serif; }
.transition-panel-heading h3 { margin: 0; font-size: clamp(1.4rem,2.5vw,1.85rem) !important; }
.transition-panel-heading p { margin: 5px 0 0; color: #5d6b80; }
.transition-rule-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 18px; }
.transition-rule-grid article { padding: 16px; border: 1px solid #dfe6f1; border-radius: 15px; background: #fff; }
.transition-rule-grid article:nth-child(2) { background: #edf9f3; border-color: #cbe8d9; }
.transition-rule-grid article.warning { background: #fff5e6; border-color: #f1d8aa; }
.transition-rule-grid strong { display: block; color: var(--navy); font-family: 'Fredoka',sans-serif; }
.transition-rule-grid p { margin: 5px 0 0; color: #56657b; font-size: .92rem; line-height: 1.45; }
.transition-callout { margin: 14px 0 0; padding: 12px 15px; border-left: 5px solid var(--yellow); border-radius: 10px; background: #fff9e7; color: #52472d; }
.transition-flashcards { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.transition-flashcards .flashcard { min-height: 185px; margin: 0; }
.transition-flashcards .card-front, .transition-flashcards .card-back { min-height: 185px; }
.transition-game-buttons { display: grid !important; grid-template-columns: repeat(3,1fr) !important; gap: 9px; margin-top: 15px; }
.middlegame-lesson #pgn-comment[hidden] { display: none !important; }

@media (max-width: 850px) {
  .transition-hero { grid-template-columns: 1fr; }
  .transition-tabs, .transition-rule-grid, .transition-flashcards { grid-template-columns: 1fr; }
  .transition-tab { min-height: 96px; }
  .transition-flashcards .flashcard, .transition-flashcards .card-front, .transition-flashcards .card-back { min-height: 145px; }
  .transition-game-buttons { grid-template-columns: 1fr !important; }
}

@media (max-width: 540px) {
  .transition-hero, .transition-compass { padding: 18px !important; }
  .transition-checks { display: grid; }
  .transition-pot-note { align-items: flex-start; }
  .transition-pot-note img { width: 58px; height: 58px; flex-basis: 58px; }
}

/* Colle Phase 3: interleaved decision practice */
.decision-lab-page { background: radial-gradient(circle at 4% 32%, #e5efff 0 135px, transparent 136px), radial-gradient(circle at 98% 76%, #fff0c7 0 155px, transparent 156px), #f4f7fc; }
.decision-lab-main { width: min(1160px, calc(100% - 28px)); margin: 25px auto 72px; }
.decision-lab-main > section { width: 100%; max-width: none; margin: 0 0 20px; }
.decision-lab-hero { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 25px; align-items: center; background: linear-gradient(135deg,#fff,#eef4ff); }
.decision-lab-hero h2 { margin: 3px 0 8px; color: var(--navy); font-size: clamp(2rem,4vw,2.8rem) !important; }
.decision-lab-hero p { max-width: 720px; margin: 0; color: #56657b; font-size: 1.08rem; }
.decision-scan { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.decision-scan span { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #dce5f2; border-radius: 13px; background: #fff; color: #42536c; font-weight: 700; }
.decision-scan b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--navy); color: #fff; }
.decision-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.decision-stats div { padding: 17px 8px; border: 1px solid #dce5f3; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 7px 18px rgba(23,55,111,.07); }
.decision-stats strong, .decision-stats span { display: block; }
.decision-stats strong { color: var(--navy); font: 700 clamp(1.3rem,2.6vw,1.75rem) 'Fredoka',sans-serif; }
.decision-stats span { margin-top: 3px; color: #718097; font-size: .75rem; font-weight: 700; text-transform: uppercase; }

.decision-arena { position: relative; overflow: hidden; padding: 0 !important; background: #fff; }
.decision-progress { width: 100%; height: 9px; background: #e7edf7; }
.decision-progress span { display: block; width: 0; height: 100%; border-radius: 0 99px 99px 0; background: linear-gradient(90deg,#f4bd42,#ffd86d); transition: width .25s ease; }
.decision-arena-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px clamp(20px,3vw,32px) 0; }
.decision-arena-head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.decision-topic { padding: 6px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.decision-signal { color: #5d6b80; font-weight: 700; }
.decision-hint-button { min-height: 42px; padding: 8px 14px; border: 2px solid #efc45e; border-radius: 12px; background: #fff8df; color: #7a5200; cursor: pointer; font-weight: 700; }
.decision-hint-button:hover, .decision-hint-button:focus-visible { background: #ffedb6; }
.decision-hint-button:disabled { opacity: .45; cursor: default; }
.decision-layout { display: grid; grid-template-columns: minmax(360px,510px) minmax(0,1fr); gap: clamp(24px,4vw,46px); align-items: center; padding: clamp(20px,3vw,34px); }
.decision-board-frame { width: min(100%,500px); padding: 9px; border-radius: 18px; background: #17376f; box-shadow: 0 13px 30px rgba(23,55,111,.18); }
#decision-board { width: 100%; }
.decision-position-note { margin: 10px 0 0; color: #6a7890; text-align: center; font-size: .86rem; font-weight: 700; }
.decision-question-column h2 { margin: 4px 0 17px; color: var(--navy); font-size: clamp(1.45rem,2.8vw,2rem) !important; }
.decision-answers { display: grid; gap: 10px; }
.decision-answers button { display: grid; grid-template-columns: 35px 1fr; gap: 11px; align-items: center; min-height: 62px; padding: 10px 14px; border: 2px solid #dfe6f2; border-radius: 15px; background: #f8faff; color: #35465f; text-align: left; cursor: pointer; }
.decision-answers button:hover, .decision-answers button:focus-visible { border-color: #8faadc; background: #f0f5ff; outline: none; }
.decision-answers button > span { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; background: #dfe9fb; color: var(--navy); font-family: 'Fredoka',sans-serif; font-weight: 700; }
.decision-answers button b { line-height: 1.35; }
.decision-answers button.correct { border-color: #56aa7e; background: #e8f8ef; }
.decision-answers button.correct > span { background: #52aa7c; color: #fff; }
.decision-answers button.incorrect { border-color: #df786c; background: #fff0ed; }
.decision-answers button.incorrect > span { background: #db7165; color: #fff; }
.decision-answers button:disabled { cursor: default; opacity: 1; }
.decision-coach { display: flex; gap: 12px; align-items: center; min-height: 100px; margin-top: 16px; padding: 15px; border: 2px solid #efc45e; border-radius: 18px; background: #fff9e4; }
.decision-coach img { width: 58px; height: 58px; flex: 0 0 58px; object-fit: contain; }
.decision-coach strong { display: block; color: #835600; font-family: 'Fredoka',sans-serif; }
.decision-coach p { margin: 3px 0 0; color: #574f40; line-height: 1.4; }
.decision-coach.correct { border-color: #76bf96; background: #eaf9f0; }
.decision-coach.correct strong { color: #27704a; }
.decision-coach.incorrect { border-color: #ec9a8f; background: #fff1ee; }
.decision-coach.incorrect strong { color: #a23c32; }
.decision-coach.hinting { animation: coach-pop .25s ease-out; }
.decision-next { width: 100%; min-height: 49px; margin-top: 11px; border: 0; border-radius: 13px; background: var(--navy); color: #fff; cursor: pointer; font: 700 1rem 'Fredoka',sans-serif; }
.decision-next:hover, .decision-next:focus-visible { background: #2857aa; }
.decision-next[hidden] { display: none !important; }
.decision-summary { padding: clamp(25px,5vw,48px) !important; text-align: center; background: linear-gradient(140deg,#fff8df,#eef5ff); }
.decision-summary[hidden] { display: none !important; }
.decision-summary h2 { color: var(--navy); }
.decision-summary p { max-width: 650px; margin: 0 auto 20px; color: #56657b; font-size: 1.08rem; }
.decision-summary-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.decision-summary-actions button, .decision-summary-actions a { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; padding: 10px 17px; border: 0; border-radius: 13px; background: var(--navy); color: #fff; cursor: pointer; font-weight: 700; }
.decision-summary-actions a { background: #f1bd48; color: #533900; }

@media (max-width: 850px) {
  .decision-lab-hero, .decision-layout { grid-template-columns: 1fr; }
  .decision-board-column { width: 100%; max-width: 540px; margin: 0 auto; }
  .decision-question-column { width: 100%; max-width: 680px; margin: 0 auto; }
}

@media (max-width: 540px) {
  .decision-lab-hero { padding: 18px !important; }
  .decision-stats { gap: 5px; }
  .decision-stats div { padding: 12px 4px; }
  .decision-scan { display: grid; }
  .decision-arena-head { align-items: flex-start; }
  .decision-layout { padding: 16px; }
  .decision-answers button { grid-template-columns: 31px 1fr; padding: 9px 10px; }
  .decision-answers button > span { width: 31px; height: 31px; }
}

@media (max-width: 760px) {
  .lesson-page .lesson-main { width: min(100% - 16px, 1120px); }
  .lesson-steps { justify-content: flex-start; width: 100%; border-radius: 16px; }
  .setup-board-shell, .pgn-play-area { grid-template-columns: 1fr; }
  .potu-coach::before { top: -14px; left: 46px; border: 0; border-top: 2px solid #f3c65f; border-left: 2px solid #f3c65f; }
  .rule-grid, #pgn-buttons { grid-template-columns: 1fr; }
  .multi-board-shell { grid-template-columns: 1fr; }
  .response-lab-main { width: min(100% - 14px, 1160px); margin-top: 14px; }
  .response-lab-intro { grid-template-columns: 1fr; }
  .response-scan { grid-template-columns: 1fr; }
  .response-card-grid { grid-template-columns: repeat(2,1fr); }
  .response-family-nav { grid-template-columns: 1fr 1fr; }
  .response-family-nav div { grid-column: 1 / -1; grid-row: 1; }
  #initial-pgn-board, #pgn-board, .pgn-board { width: min(100%, 560px) !important; }
  .setup-controls { align-items: stretch; }
  .setup-controls button { flex: 1 1 120px; }
}

@media (max-width: 500px) {
  .response-picker-heading { align-items: flex-start; }
  .response-card-grid { grid-template-columns: 1fr; }
  .response-card { min-height: 88px; }
  .response-family-nav button { padding: 8px 9px; }
}

/* Child-first predict-the-move arena */
.predictor-page { background: radial-gradient(circle at 10% 32%, #e8f0ff 0 110px, transparent 111px), radial-gradient(circle at 92% 72%, #fff2ca 0 125px, transparent 126px), #f5f7fb; }
.predictor-main { width: min(1180px, calc(100% - 28px)); margin: 28px auto 70px; }
.predictor-page .predictor-shell { width: 100%; max-width: none; margin: 0; padding: clamp(22px, 3vw, 36px); border: 1px solid #dfe6f2; border-radius: 28px; background: rgba(255,255,255,.96); box-shadow: 0 18px 48px rgba(23,55,111,.12); }
.predictor-intro { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.predictor-intro h2 { margin: 3px 0 5px; color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.35rem); line-height: 1.15; }
.predictor-intro p { margin: 0; color: #657289; font-size: 1.05rem; }
.predictor-stats { display: flex; flex: 0 0 auto; gap: 9px; }
.predictor-stats > div { display: grid; min-width: 108px; min-height: 88px; grid-template-columns: auto 1fr; align-content: center; align-items: center; gap: 0 7px; padding: 12px 13px; border: 1px solid #dfe6f2; border-radius: 16px; background: #f8faff; }
.predictor-stats > div:nth-child(2) { background: #fff8e5; }
.predictor-stats > div:nth-child(3) { background: #edf9f3; }
.predictor-stats span { grid-row: 1 / 3; font-size: 1.5rem; }
.predictor-stats strong { color: var(--navy); font: 700 1.45rem 'Fredoka', sans-serif; line-height: 1; }
.predictor-stats small { margin-top: 4px; color: #68758b; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.predictor-stage { display: grid; grid-template-columns: minmax(400px, 560px) minmax(310px, 1fr); gap: clamp(22px, 4vw, 42px); align-items: start; }
.predictor-board-zone { min-width: 0; padding: 15px; border: 1px solid #d8e2f1; border-radius: 22px; background: linear-gradient(145deg, #f2f6fd, #fff); box-shadow: inset 0 1px 0 #fff; }
.board-mission-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 12px; color: #68758a; font-size: .87rem; font-weight: 700; }
.board-mission-bar #turn-chip { padding: 7px 11px; border-radius: 999px; background: var(--navy); color: #fff; }
.predictor-page #pgn-holder { display: block; margin: 0; }
.predictor-page #board { width: min(100%, 540px) !important; margin: 0 auto; border: 5px solid #fff; border-radius: 8px; box-shadow: 0 9px 24px rgba(23,55,111,.18); }
.puzzle-history { margin: 12px 0 0; color: #768399; text-align: center; font-size: .83rem; }
.predictor-choice-zone { position: relative; min-width: 0; }
.thinking-card { padding: 17px 18px; border: 2px solid #f0c45d; border-radius: 19px; background: linear-gradient(145deg, #fff8da, #fffdf5); }
.thinking-card > strong { display: block; margin-bottom: 10px; color: #7d5100; font: 700 1.04rem 'Fredoka', sans-serif; }
.thinking-card ol { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.thinking-card li { color: #5f543e; font-size: .82rem; font-weight: 700; line-height: 1.25; }
.thinking-card li span { display: grid; width: 25px; height: 25px; place-items: center; margin-bottom: 5px; border-radius: 8px; background: #ffd66b; color: #563c00; font-family: 'Fredoka', sans-serif; }
.choice-heading { margin: 23px 0 12px; }
.choice-eyebrow { color: var(--blue); font-size: .73rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.predictor-page #header { margin: 4px 0 3px; color: var(--navy); text-align: left; font: 700 clamp(1.4rem, 2.5vw, 1.85rem) 'Fredoka', sans-serif; }
.choice-heading p { margin: 0; color: #707d91; }
.predictor-page #options { max-width: none; margin: 14px 0 10px; }
.predictor-page button.move-option { display: flex; min-height: 58px; align-items: center; gap: 13px; margin: 9px 0; padding: 9px 14px; border: 2px solid #dbe4f2; border-radius: 15px; background: #fff; color: var(--navy); box-shadow: 0 4px 12px rgba(23,55,111,.06); cursor: pointer; font: 700 1.15rem 'Fredoka', sans-serif; transition: border-color .18s, transform .18s, box-shadow .18s; }
.predictor-page button.move-option:hover:not(:disabled), .predictor-page button.move-option:focus-visible:not(:disabled) { border-color: #6f99e2; outline: none; box-shadow: 0 7px 17px rgba(23,55,111,.13); transform: translateY(-2px); }
.choice-letter { display: grid; width: 36px; height: 36px; flex: 0 0 36px; place-items: center; border-radius: 11px; background: #e8eef9; color: var(--navy); font-size: .9rem; }
.choice-move { letter-spacing: .02em; }
.predictor-page button.move-option.correct { border-color: #41a97d; background: #dcf6e9; color: #135d42; }
.predictor-page button.move-option.correct .choice-letter { background: #2d9a70; color: #fff; }
.predictor-page button.move-option.incorrect { border-color: #e6a16a; background: #fff0df; color: #8a4d18; }
.predictor-page button.move-option.incorrect .choice-letter { background: #df8f4f; color: #fff; }
.predictor-page button.move-option:disabled { cursor: default; opacity: 1; }
#hint-btn { min-height: 43px; padding: 8px 13px; border: 0; border-radius: 12px; background: #edf2fa; color: #4c5d78; cursor: pointer; font-weight: 700; }
#hint-btn:hover:not(:disabled) { background: #dfe9fa; color: var(--navy); }
#hint-btn:disabled { cursor: default; opacity: .65; }
#hint-text { display: none; margin-top: 9px; padding: 11px 13px; border-radius: 12px; background: #fff7da; color: #74530e; font-size: .92rem; font-weight: 700; }
#hint-text.visible { display: block; }
.predictor-page #result { display: none; margin: 13px 0 0; padding: 14px 16px; border-radius: 15px; font-size: .98rem; line-height: 1.4; }
.predictor-page #result.success, .predictor-page #result.try-again { display: block; }
.predictor-page #result.success { border: 1px solid #9cd8bd; background: #e1f7ed; color: #145f44; }
.predictor-page #result.try-again { border: 1px solid #f0c694; background: #fff4e3; color: #81501d; }
.predictor-page #result strong, .predictor-page #result span { display: block; }
.predictor-page #result strong { margin-bottom: 3px; font-family: 'Fredoka', sans-serif; font-size: 1.1rem; }
#star-burst { position: absolute; right: 14px; bottom: 86px; pointer-events: none; opacity: 0; color: #f6b900; font-size: 4rem; text-shadow: 0 5px 16px rgba(160,103,0,.25); }
#star-burst.burst { animation: star-burst .8s ease-out; }
@keyframes star-burst { 0% { opacity: 0; transform: scale(.25) rotate(-20deg); } 35% { opacity: 1; transform: scale(1.25) rotate(8deg); } 100% { opacity: 0; transform: scale(1.7) rotate(20deg) translateY(-22px); } }
.predictor-page #movebtns { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e3e8f1; }
.predictor-page #movebtns > span { flex: 1 0 100%; color: #6d7a8f; font-size: .77rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.predictor-page #movebtns button { min-height: 42px; padding: 8px 14px; border: 0; border-radius: 11px; background: #e7edf8; color: var(--navy); cursor: pointer; font-weight: 700; }
.predictor-page #navbtns { margin-top: 14px; }
.predictor-page #next-game { width: 100%; min-height: 50px; border: 2px solid #cdd9ed; border-radius: 14px; background: #fff; color: #51617b; cursor: pointer; font: 700 1rem 'Fredoka', sans-serif; }
.predictor-page #next-game:hover { border-color: #7c9fdc; color: var(--navy); }
.predictor-page #next-game.ready { border-color: var(--navy); background: var(--navy); color: #fff; box-shadow: 0 8px 17px rgba(23,55,111,.2); }

@media (max-width: 900px) {
  .predictor-intro { align-items: flex-start; flex-direction: column; }
  .predictor-stats { width: 100%; }
  .predictor-stats > div { flex: 1; min-width: 0; }
  .predictor-stage { grid-template-columns: 1fr; }
  .predictor-board-zone { width: min(100%, 570px); margin: 0 auto; }
  .predictor-choice-zone { width: min(100%, 570px); margin: 0 auto; }
}

@media (max-width: 560px) {
  .predictor-main { width: calc(100% - 14px); margin-top: 14px; }
  .predictor-page .predictor-shell { padding: 17px 12px 22px; border-radius: 20px; }
  .predictor-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
  .predictor-stats > div { display: flex; min-height: 78px; align-items: center; justify-content: center; flex-direction: column; gap: 2px; padding: 8px 4px; text-align: center; }
  .predictor-stats span { grid-row: auto; font-size: 1.15rem; }
  .predictor-stats strong { font-size: 1.16rem; }
  .predictor-stats small { margin: 0; white-space: normal; }
  .predictor-board-zone { padding: 9px; }
  .thinking-card ol { grid-template-columns: 1fr; }
  .thinking-card li { display: flex; align-items: center; gap: 8px; }
  .thinking-card li span { margin: 0; }
}

/* Puzzle Adventure: reliable skill missions and a focused solve screen */
.puzzle-arena-page { background: radial-gradient(circle at 5% 34%, #e6efff 0 145px, transparent 146px), radial-gradient(circle at 96% 70%, #fff0c4 0 155px, transparent 156px), #f5f7fb; }
.arena-main { width: min(1180px, calc(100% - 28px)); margin: 28px auto 75px; }
.puzzle-arena-page .arena-picker, .puzzle-arena-page .arena-play, .puzzle-arena-page .arena-empty { width: 100%; max-width: none; margin: 0 0 25px; padding: clamp(22px, 3vw, 36px); border: 1px solid #dee6f2; border-radius: 27px; background: rgba(255,255,255,.97); box-shadow: 0 16px 44px rgba(23,55,111,.10); }
.arena-picker-heading, .arena-play-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.arena-picker-heading h2, .arena-play-heading h2 { margin: 3px 0 0; color: var(--navy); font-size: clamp(1.7rem, 3vw, 2.35rem); }
.arena-total { display: flex; min-width: 175px; align-items: center; gap: 11px; padding: 12px 16px; border-radius: 17px; background: #fff6d7; color: #6e5012; }
.arena-total strong { color: #a76500; font: 700 1.8rem 'Fredoka', sans-serif; }
.arena-total span { max-width: 100px; font-size: .78rem; font-weight: 700; line-height: 1.2; }
.arena-mission-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.arena-mission { position: relative; display: flex; min-height: 112px; align-items: flex-start; gap: 12px; padding: 17px 14px; overflow: hidden; border: 2px solid transparent; border-radius: 18px; background: #f0f4fc; color: var(--navy); transition: transform .18s, box-shadow .18s, border-color .18s; }
.arena-mission:hover, .arena-mission:focus-visible { border-color: #88a9e2; outline: none; box-shadow: 0 9px 20px rgba(23,55,111,.13); transform: translateY(-3px); }
.arena-mission.active { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.arena-mission.gold { background: #fff5d8; }
.arena-mission.mint { background: #e9f8f1; }
.arena-mission.coral { background: #fff0e8; }
.arena-mission.violet { background: #f2edff; }
.arena-mission.rose { background: #ffedf2; }
.arena-mission.book { background: #edf3ff; }
.arena-mission-icon { display: grid; width: 42px; height: 42px; flex: 0 0 42px; place-items: center; border-radius: 13px; background: #fff; box-shadow: 0 4px 10px rgba(23,55,111,.1); font-size: 1.55rem; }
.arena-mission strong, .arena-mission small { display: block; }
.arena-mission strong { font: 700 1.02rem 'Fredoka', sans-serif; line-height: 1.15; }
.arena-mission small { margin-top: 6px; color: #647188; font-size: .78rem; line-height: 1.3; }
.arena-mission-arrow { position: absolute; right: 11px; bottom: 8px; color: #7383a0; font-size: 1.15rem; }
.arena-more-skills { margin-top: 17px; border: 1px solid #dce4f1; border-radius: 16px; background: #f8faff; }
.arena-more-skills summary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 13px 17px; color: var(--navy); cursor: pointer; font: 700 1rem 'Fredoka', sans-serif; list-style: none; }
.arena-more-skills summary::-webkit-details-marker { display: none; }
.arena-more-skills > p { margin: 0; padding: 13px 17px 0; border-top: 1px solid #e1e7f0; color: #6d798d; font-size: .9rem; }
.arena-more-skills .theme-cloud { position: static; display: flex; width: 100%; max-height: 250px; flex-wrap: wrap; gap: 7px; padding: 13px 16px 18px; overflow-y: auto; background: transparent; }
.arena-more-skills .theme-word { margin: 0; padding: 8px 11px; border: 1px solid #d8e1ef; border-radius: 999px; background: #fff; color: #53627a; font-size: .84rem !important; font-weight: 700; transform: none !important; }
.arena-more-skills .theme-word:hover { border-color: #88a8e1; color: var(--blue); }
.arena-change-skill { padding: 9px 13px; border: 1px solid #d4dfef; border-radius: 11px; background: #f5f8fd; color: #51617b; font-weight: 700; }
.arena-play-grid { display: grid; grid-template-columns: minmax(410px, 560px) minmax(300px, 1fr); gap: clamp(22px, 4vw, 42px); align-items: start; }
.arena-board-column { min-width: 0; padding: 14px; border: 1px solid #dbe4f1; border-radius: 21px; background: linear-gradient(145deg, #eef4ff, #fff); }
.arena-board-topline { display: flex; justify-content: space-between; gap: 9px; align-items: center; padding: 0 2px 12px; }
.arena-board-topline .puzzle-who, .arena-board-topline .solved, .arena-board-topline .unsolved { margin: 0; padding: 8px 12px; font-size: .86rem; }
.puzzle-arena-page #puzzle-board { width: min(100%, 540px) !important; margin: 0 auto; border: 5px solid #fff; border-radius: 8px; box-shadow: 0 9px 24px rgba(23,55,111,.17); }
.arena-coach-column { min-width: 0; }
.arena-source-card { padding: 14px 16px; border: 1px solid #d8e3f2; border-radius: 15px; background: #f5f8fd; }
.arena-source-card span, .arena-source-card strong { display: block; }
.arena-source-card span { color: #778399; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.arena-source-card strong { margin-top: 4px; color: var(--navy); font-family: 'Fredoka', sans-serif; }
.arena-goal { display: flex; gap: 14px; align-items: center; margin-top: 12px; padding: 16px; border-radius: 17px; background: #fff5d8; }
.arena-goal-number { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 15px; background: #ffd66b; color: #583e00; font: 700 1.45rem 'Fredoka', sans-serif; }
.arena-goal strong { color: #6e4c00; font-family: 'Fredoka', sans-serif; }
.arena-goal p { margin: 3px 0 0; color: #775f2e; font-size: .88rem; }
.arena-checklist { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; padding: 15px; border: 1px solid #d9e4f2; border-radius: 16px; background: #fff; }
.arena-checklist strong { flex: 1 0 100%; margin-bottom: 2px; color: var(--navy); font-family: 'Fredoka', sans-serif; }
.arena-checklist span { padding: 6px 9px; border-radius: 999px; background: #eaf0fa; color: #52617a; font-size: .82rem; font-weight: 700; }
.puzzle-arena-page .puzzle-meta { margin: 12px 0; }
.puzzle-arena-page #puzzle-feedback { max-width: none; min-height: 68px; margin: 0; display: flex; align-items: center; }
.puzzle-arena-page .puzzle-actions { margin-top: 10px; }
.puzzle-arena-page #puzzlenextMove, .puzzle-arena-page #puzzleResetMoves { flex: 1; }
.arena-next-puzzle { display: block; margin-top: 10px; padding: 13px 15px; border: 2px solid #cbd8eb; border-radius: 13px; color: #53627a; text-align: center; font: 700 .96rem 'Fredoka', sans-serif; }
.arena-next-puzzle:hover, .arena-next-puzzle.ready { border-color: var(--navy); background: var(--navy); color: #fff; }
.arena-empty { text-align: center; }
.arena-empty > span { font-size: 3rem; }

@media (max-width: 980px) {
  .arena-mission-grid { grid-template-columns: repeat(2,1fr); }
  .arena-play-grid { grid-template-columns: 1fr; }
  .arena-board-column, .arena-coach-column { width: min(100%, 570px); margin: 0 auto; }
}

@media (max-width: 600px) {
  .arena-main { width: calc(100% - 14px); margin-top: 14px; }
  .puzzle-arena-page .arena-picker, .puzzle-arena-page .arena-play, .puzzle-arena-page .arena-empty { padding: 17px 12px 21px; border-radius: 20px; }
  .arena-picker-heading, .arena-play-heading { align-items: flex-start; flex-direction: column; }
  .arena-total { width: 100%; }
  .arena-mission-grid { grid-template-columns: 1fr; }
  .arena-mission { min-height: 94px; }
  .arena-board-column { padding: 8px; }
  .puzzle-arena-page .puzzle-actions { flex-direction: column; }
}

/* Phase 4: practical Colle Prediction Lab */
.practical-lab-page { background: #f5f7fb; }
.practical-main { width: min(1180px, calc(100% - 28px)); margin: 28px auto 75px; }
.practical-main > section { width: 100%; max-width: none; margin: 0 0 22px; border: 1px solid #dfe6f2; border-radius: 27px; background: rgba(255,255,255,.97); box-shadow: 0 17px 46px rgba(23,55,111,.11); }
.practical-hero { display: grid; grid-template-columns: minmax(0,1fr) 355px; gap: 26px; align-items: center; padding: clamp(23px,4vw,40px); background: #eef4ff !important; }
.practical-hero h2 { margin: 3px 0 8px; color: var(--navy); font-size: clamp(2rem,4vw,2.8rem) !important; line-height: 1.05; }
.practical-hero p { max-width: 720px; margin: 0; color: #5d6b80; font-size: 1.06rem; }
.practical-routine { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.practical-routine span { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid #dce5f2; border-radius: 13px; background: #fff; color: #42536c; font-weight: 700; }
.practical-routine b { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--navy); color: #fff; }
.practical-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.practical-stats div { padding: 17px 7px; border: 1px solid #dce5f3; border-radius: 16px; background: #fff; text-align: center; box-shadow: 0 7px 18px rgba(23,55,111,.07); }
.practical-stats strong, .practical-stats span { display: block; }
.practical-stats strong { color: var(--navy); font: 700 clamp(1.3rem,2.5vw,1.7rem) 'Fredoka',sans-serif; }
.practical-stats span { margin-top: 3px; color: #718097; font-size: .7rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; }

.practical-arena { position: relative; overflow: hidden; padding: 0 !important; }
.practical-progress { width: 100%; height: 9px; background: #e7edf7; }
.practical-progress span { display: block; width: 0; height: 100%; border-radius: 0 99px 99px 0; background: #f2bd48; transition: width .25s ease; }
.practical-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px clamp(20px,3vw,32px) 0; }
.practical-head > div { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.practical-topic, .practical-turn { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.practical-topic { background: var(--navy); color: #fff; }
.practical-turn { background: #e8f7ef; color: #28704c; }
#practical-signal { color: #5d6b80; font-weight: 700; }
.practical-layout { display: grid; grid-template-columns: minmax(380px,510px) minmax(0,1fr); gap: clamp(24px,4vw,48px); align-items: start; padding: clamp(20px,3vw,34px); }
.practical-board-column, .practical-coach-column { min-width: 0; }
.practical-board-frame { width: min(100%,500px); padding: 9px; border-radius: 20px; background: var(--navy); box-shadow: 0 14px 31px rgba(23,55,111,.2); }
.practical-lab-page #board { width: 100% !important; margin: 0; border: 0; border-radius: 10px; box-shadow: none; overflow: hidden; }
.practical-lab-page #board .square-55d63 { transition: box-shadow .16s ease; }
.practical-lab-page #board .potu-last-square { box-shadow: inset 0 0 0 5px rgba(255,205,61,.88); }
.practical-drag-note { margin: 11px 0 0; color: #6b7990; text-align: center; font-size: .87rem; font-weight: 700; }
.practical-reply { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 10px auto 0; padding: 9px 13px; border: 1px solid #d7e2f1; border-radius: 13px; background: #f1f5fb; color: #617087; }
.practical-reply span { font-size: .76rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.practical-reply strong { color: var(--navy); font: 700 1.15rem 'Fredoka',sans-serif; }
.practical-reply[hidden] { display: none !important; }

.practical-coach-column h2 { margin: 4px 0 7px; color: var(--navy); font-size: clamp(1.5rem,2.8vw,2.05rem) !important; line-height: 1.12; }
.practical-context { margin: 0 0 16px; color: #5f6d82; font-size: 1rem; line-height: 1.5; }
.practical-scan-card { padding: 15px 16px; border: 2px solid #f0c45d; border-radius: 18px; background: #fff9e6; }
.practical-scan-card > strong { display: block; margin-bottom: 10px; color: #795000; font: 700 1rem 'Fredoka',sans-serif; }
.practical-scan-card ol { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.practical-scan-card li { color: #62563e; font-size: .81rem; font-weight: 700; line-height: 1.25; }
.practical-scan-card li span { display: grid; width: 25px; height: 25px; place-items: center; margin-bottom: 5px; border-radius: 8px; background: #ffd66b; color: #563c00; font-family: 'Fredoka',sans-serif; }
.practical-hint-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.practical-hint-actions button { min-height: 45px; padding: 9px 11px; border: 1px solid #d7e1ef; border-radius: 12px; background: #eef3fb; color: #465a78; cursor: pointer; font-weight: 700; }
.practical-hint-actions button:first-child { border-color: #efca71; background: #fff8df; color: #785100; }
.practical-hint-actions button:hover:not(:disabled), .practical-hint-actions button:focus-visible:not(:disabled) { border-color: #86a6dc; outline: none; background: #e2ebfa; }
.practical-hint-actions button:disabled { opacity: .52; cursor: default; }
.practical-candidate-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; padding: 10px; border-radius: 13px; background: #eef3fb; }
.practical-candidate-list[hidden] { display: none !important; }
.practical-candidate-list button { min-width: 69px; min-height: 42px; padding: 8px 13px; border: 2px solid #cbd9ee; border-radius: 11px; background: #fff; color: var(--navy); cursor: pointer; font: 700 1.04rem 'Fredoka',sans-serif; }
.practical-candidate-list button:hover:not(:disabled), .practical-candidate-list button:focus-visible:not(:disabled) { border-color: var(--blue); outline: none; transform: translateY(-1px); }
.practical-coach { display: flex; gap: 12px; align-items: center; min-height: 96px; margin-top: 13px; padding: 14px; border: 2px solid #efc45e; border-radius: 18px; background: #fff9e4; }
.practical-coach img { width: 58px; height: 58px; flex: 0 0 58px; object-fit: contain; }
.practical-coach strong { display: block; color: #835600; font-family: 'Fredoka',sans-serif; }
.practical-coach p { margin: 3px 0 0; color: #574f40; line-height: 1.4; }
.practical-coach.success { border-color: #72bf94; background: #e8f8ef; }
.practical-coach.success strong { color: #267049; }
.practical-coach.try-again { border-color: #e8a074; background: #fff2e8; }
.practical-coach.try-again strong { color: #9a4f20; }
.practical-coach.hinting { animation: coach-pop .25s ease-out; }
.practical-after { margin-top: 11px; padding: 14px 16px; border-left: 5px solid #4b78c5; border-radius: 5px 14px 14px 5px; background: #eef4ff; }
.practical-after span { color: #51709f; font-size: .73rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.practical-after p { margin: 5px 0 0; color: #40516b; line-height: 1.45; }
.practical-after[hidden], .practical-next[hidden] { display: none !important; }
.practical-next { width: 100%; min-height: 49px; margin-top: 11px; border: 0; border-radius: 13px; background: var(--navy); color: #fff; cursor: pointer; font: 700 1rem 'Fredoka',sans-serif; }
.practical-next:hover, .practical-next:focus-visible { background: #2857aa; }
.practical-summary { padding: clamp(28px,5vw,50px) !important; text-align: center; background: #fff7dc !important; }
.practical-summary[hidden] { display: none !important; }
.practical-summary h2 { margin: 4px 0 8px; color: var(--navy); }
.practical-summary p { max-width: 650px; margin: 0 auto 21px; color: #58677d; font-size: 1.05rem; }
.practical-summary > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.practical-summary button, .practical-summary a { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; padding: 10px 17px; border: 0; border-radius: 13px; background: var(--navy); color: #fff; cursor: pointer; font-weight: 700; }
.practical-summary a { background: #f1bd48; color: #533900; }

@media (max-width: 880px) {
  .practical-hero, .practical-layout { grid-template-columns: 1fr; }
  .practical-board-column, .practical-coach-column { width: min(100%,570px); margin: 0 auto; }
}

@media (max-width: 560px) {
  .practical-main { width: calc(100% - 14px); margin-top: 14px; }
  .practical-main > section { border-radius: 20px; }
  .practical-hero { padding: 18px 14px; }
  .practical-stats { gap: 5px; }
  .practical-stats div { padding: 12px 3px; }
  .practical-routine { display: grid; }
  .practical-head { align-items: flex-start; padding: 15px 14px 0; }
  .practical-turn { flex: 0 0 auto; }
  .practical-layout { padding: 14px 10px 18px; }
  .practical-board-frame { padding: 6px; border-radius: 14px; }
  .practical-scan-card ol { grid-template-columns: 1fr; }
  .practical-scan-card li { display: flex; align-items: center; gap: 8px; }
  .practical-scan-card li span { margin: 0; }
  .practical-hint-actions { grid-template-columns: 1fr; }
}

