.intro { margin-bottom: 1.2rem; }
.intro h1 { font-size: clamp(2.35rem, 6vw, 4.25rem); }
#settings { max-width: none; margin-top: 0; }
#settings form { border: 0; }
.control-row { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; margin-top: 1.2rem; }
.control-row strong { padding-right: .45rem; }
#back,#reset,#copy,#export { background: transparent; color: #28513d; }
#outcome { min-height: 1.6rem; margin: .5rem 0; }
.boards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(.4rem,2vw,1.25rem); }
.boards figure { background: #17372c; color: #e6efe0; border-radius: .6rem; padding: clamp(.45rem,2vw,1rem); margin: 0; }
.boards figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem; }
.boards canvas { display: block; width: 100%; height: auto; margin: .3rem 0; cursor: crosshair; }
.boards figure p { font-size: .86rem; margin: .25rem 0 0; }
.inspection { max-width: 48rem; margin-top: 1.6rem; }
.inspection h2 { font-size: 1.6rem; }
#inspect { border: 0; padding: .7rem; display: flex; flex-wrap: wrap; align-items: end; gap: .65rem; border-radius: .4rem; }
#inspect input { width: 6rem; }
#cellReport { white-space: pre-line; }
#trace table { min-width: 0; font-size: .9rem; } #trace th,#trace td { padding: .35rem; }
#trace button { margin-top: 1rem; }
#warning { border-left: .25rem solid #9c5528; padding: .5rem .8rem; background:#f8ead9; }
#ruleHelp,.limits { max-width: 56rem; font-size: .9rem; }
#shareFeedback:empty { display:none; }
@media (max-width: 520px) { .control-row { gap:.3rem; } .control-row button { padding:.4rem .55rem; } .boards code { font-size:.78rem; } }

@media (max-width: 520px) {
  header { padding: .6rem 0; }
  .intro { margin: .9rem 0 .65rem; }
  .intro h1 { font-size: 2rem; margin: .12em 0; }
  .eyebrow { margin: 0; } .intro > p:last-child { font-size: .95rem; margin: .45rem 0; }
  .control-row { margin-top: .5rem; }
  #outcome { margin: .3rem 0; font-size: .87rem; line-height: 1.3; }
}
#firstDifference { margin-top: .5rem; }
