.html5GameShell {
  width: 760px;
  max-width: 96%;
  margin: 12px auto 24px auto;
  padding: 14px;
  background: #fff;
  border: 1px solid #d2d2d2;
  text-align: center;
}
.html5GameIntro {
  margin: 0 0 12px 0;
  line-height: 1.35;
}
.html5GameControls {
  margin: 10px 0;
}
.html5GameControls button,
.html5GameControls select {
  margin: 3px;
  font-size: 14px;
}
.html5GameStatus {
  min-height: 22px;
  margin: 8px 0;
  font-weight: bold;
}
.html5Canvas {
  display: block;
  margin: 10px auto;
  border: 2px solid #333;
  background: #f7fbff;
}
.connectBoard {
  border-collapse: separate;
  border-spacing: 6px;
  margin: 10px auto;
  padding: 8px;
  background: #1368b3;
  border-radius: 8px;
}
.connectBoard td {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #0d4f87;
  cursor: pointer;
}
.connectBoard td.red {
  background: #e84536;
}
.connectBoard td.yellow {
  background: #ffd64d;
}
.hanoiBoard {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: flex-end;
  min-height: 245px;
  margin: 12px auto;
}
.hanoiPeg {
  position: relative;
  width: 190px;
  height: 230px;
  border-bottom: 8px solid #7a4b22;
  cursor: pointer;
}
.hanoiPeg:before {
  content: "";
  position: absolute;
  left: 89px;
  bottom: 0;
  width: 12px;
  height: 205px;
  background: #9a6736;
}
.hanoiDisk {
  position: absolute;
  left: 50%;
  height: 24px;
  border-radius: 12px;
  color: #fff;
  font: bold 13px Arial, Helvetica, sans-serif;
  line-height: 24px;
  transform: translateX(-50%);
}
.hanoiPeg.selected:before {
  background: #d65a18;
}
.typingPrompt {
  margin: 12px auto;
  max-width: 660px;
  padding: 10px;
  border: 1px solid #cfd8dc;
  background: #f7fbff;
  font: 18px Georgia, serif;
  line-height: 1.55;
  text-align: left;
}
.typingBox {
  width: 92%;
  max-width: 660px;
  min-height: 115px;
  padding: 8px;
  font: 16px Arial, Helvetica, sans-serif;
}
.smallHint {
  color: #555;
  font-size: 13px;
}
.gridGame {
  margin: 10px auto;
  border-collapse: collapse;
}
.gridGame td {
  width: 44px;
  height: 44px;
  border: 1px solid #777;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
}
.reversiBoard {
  background: #0a8f62;
}
.reversiPiece {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #222;
}
.reversiPiece.black {
  background: #111;
}
.reversiPiece.white {
  background: #fff;
}
.mancalaBoard {
  display: grid;
  grid-template-columns: 80px repeat(6, 70px) 80px;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 12px auto;
  padding: 12px;
  background: #b98243;
  border-radius: 14px;
  max-width: 660px;
}
.mancalaPit,
.mancalaStore {
  border: 2px solid #724515;
  background: #f4d49c;
  border-radius: 20px;
  font: bold 18px Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.mancalaPit {
  width: 70px;
  height: 58px;
  line-height: 58px;
}
.mancalaStore {
  width: 80px;
  height: 132px;
  line-height: 132px;
}
.memoryButtons {
  display: grid;
  grid-template-columns: repeat(2, 120px);
  gap: 12px;
  justify-content: center;
  margin: 14px auto;
}
.memoryButton {
  height: 90px;
  border: 3px solid #333;
  border-radius: 8px;
  cursor: pointer;
  opacity: .78;
}
.memoryButton.active {
  opacity: 1;
  box-shadow: 0 0 16px #333;
}
.eyesightGrid {
  display: grid;
  gap: 5px;
  justify-content: center;
  margin: 14px auto;
}
.eyesightCell {
  width: 42px;
  height: 42px;
  cursor: pointer;
}
.sheepAnswer {
  width: 80px;
  font-size: 18px;
  text-align: center;
}
.patternGrid {
  display: grid;
  gap: 6px;
  justify-content: center;
  margin: 14px auto;
}
.patternCell {
  width: 46px;
  height: 46px;
  border: 2px solid #777;
  background: #f4f4f4;
  cursor: pointer;
}
.patternCell.on {
  background: #0076bd;
}
.sceneTray {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px auto;
}
.sceneItem,
.sceneAnswer {
  width: 82px;
  height: 62px;
  border: 2px solid #777;
  border-radius: 8px;
  background: #f7fbff;
  font: bold 13px Arial, Helvetica, sans-serif;
  line-height: 62px;
  text-align: center;
  cursor: pointer;
}
.sceneAnswer {
  background: #fff8d6;
}
.cupRow {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin: 24px auto 12px auto;
}
.cup {
  width: 96px;
  height: 82px;
  border-radius: 18px 18px 8px 8px;
  background: #d65a18;
  color: #fff;
  font: bold 34px Arial, Helvetica, sans-serif;
  line-height: 82px;
  cursor: pointer;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,.15);
}
.clockFace {
  display: block;
  margin: 12px auto;
  border: 2px solid #333;
  border-radius: 50%;
  background: #fff;
}
.clockChoices button {
  min-width: 90px;
}
.matchGrid {
  display: grid;
  gap: 8px;
  justify-content: center;
  margin: 14px auto;
}
.matchCard {
  width: 74px;
  height: 58px;
  border: 2px solid #777;
  border-radius: 8px;
  background: #0076bd;
  color: #fff;
  font: bold 24px Arial, Helvetica, sans-serif;
  line-height: 58px;
  text-align: center;
  cursor: pointer;
}
.matchCard.open,
.matchCard.done {
  background: #fff8d6;
  color: #333;
}
.pathGrid {
  display: grid;
  gap: 6px;
  justify-content: center;
  margin: 14px auto;
}
.pathCell {
  width: 44px;
  height: 44px;
  border: 2px solid #777;
  background: #f4f4f4;
  cursor: pointer;
}
.pathCell.show,
.pathCell.pick {
  background: #0a8f62;
}
.dropSlots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 14px auto;
}
.dropSlot {
  width: 70px;
  height: 120px;
  border: 2px solid #777;
  border-radius: 0 0 12px 12px;
  background: #f7fbff;
  position: relative;
  cursor: pointer;
}
.dropBall {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e84536;
  position: absolute;
  left: 18px;
  bottom: 10px;
}
.latinBoard,
.tileBoard,
.blockBoard,
.gemBoard {
  display: grid;
  gap: 5px;
  justify-content: center;
  margin: 14px auto;
}
.latinCell,
.tileCell,
.blockCell,
.gemCell {
  width: 48px;
  height: 48px;
  border: 2px solid #777;
  text-align: center;
  line-height: 48px;
  font: bold 20px Arial, Helvetica, sans-serif;
  background: #fff;
}
.latinCell input {
  width: 42px;
  height: 42px;
  border: 0;
  text-align: center;
  font: bold 22px Arial, Helvetica, sans-serif;
}
.latinCell.given {
  background: #eef2f5;
}
.latinCell.bad input {
  background: #ffd9d9;
}
.tileCell,
.blockCell,
.gemCell {
  cursor: pointer;
  user-select: none;
}
.tileCell.empty {
  background: #f2f2f2;
  color: transparent;
}
.tileCell.selected,
.gemCell.selected,
.rowLine.selected {
  outline: 4px solid #d65a18;
}
.blockCell.c0,
.gemCell.c0 { background: #e84536; color: #fff; }
.blockCell.c1,
.gemCell.c1 { background: #0076bd; color: #fff; }
.blockCell.c2,
.gemCell.c2 { background: #0a8f62; color: #fff; }
.blockCell.c3,
.gemCell.c3 { background: #f2992e; color: #fff; }
.blockCell.c4,
.gemCell.c4 { background: #8b49b5; color: #fff; }
.rowSwapBoard {
  width: 440px;
  max-width: 94%;
  margin: 14px auto;
}
.rowLine {
  margin: 6px 0;
  padding: 10px;
  border: 2px solid #777;
  background: #f7fbff;
  cursor: pointer;
  font: bold 18px Arial, Helvetica, sans-serif;
}
.cageLabel {
  display: block;
  font-size: 11px;
  text-align: left;
  line-height: 12px;
  padding-left: 2px;
}
.magicCubeNet {
  display: grid;
  grid-template-columns: repeat(4, 120px);
  grid-template-rows: repeat(3, 120px);
  gap: 8px;
  justify-content: center;
  margin: 14px auto;
}
.magicFace {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  grid-template-rows: repeat(3, 36px);
  gap: 2px;
  padding: 5px;
  border: 2px solid #333;
  background: #333;
}
.magicFace span {
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0,0,0,.35);
}
.magicFace.u { grid-column: 2; grid-row: 1; }
.magicFace.l { grid-column: 1; grid-row: 2; }
.magicFace.f { grid-column: 2; grid-row: 2; }
.magicFace.r { grid-column: 3; grid-row: 2; }
.magicFace.b { grid-column: 4; grid-row: 2; }
.magicFace.d { grid-column: 2; grid-row: 3; }
.magicWhite { background: #f7f7f7; }
.magicBlue { background: #1f72ce; }
.magicRed { background: #d73030; }
.magicGreen { background: #21a65b; }
.magicYellow { background: #ffd33f; }
.magicPurple { background: #b14ac9; }
.matchBoard,
.sameGroupBoard,
.lineBallBoard {
  display: grid;
  gap: 5px;
  justify-content: center;
  margin: 14px auto;
}
.matchTile {
  width: 58px;
  height: 42px;
  border: 2px solid #8a6f35;
  border-radius: 6px;
  background: #fff3cf;
  cursor: pointer;
  font: bold 20px Arial, Helvetica, sans-serif;
  line-height: 42px;
  text-align: center;
  user-select: none;
}
.matchTile.selected {
  outline: 4px solid #d65a18;
}
.matchTile.done {
  visibility: hidden;
}
.sameGroupCell,
.lineBallCell {
  width: 42px;
  height: 42px;
  border: 1px solid #777;
  cursor: pointer;
}
.sameGroupCell.c0,
.lineBallCell.c0 { background: #e84536; }
.sameGroupCell.c1,
.lineBallCell.c1 { background: #0076bd; }
.sameGroupCell.c2,
.lineBallCell.c2 { background: #0a8f62; }
.sameGroupCell.c3,
.lineBallCell.c3 { background: #f2992e; }
.sameGroupCell.c4,
.lineBallCell.c4 { background: #8b49b5; }
.sameGroupCell.c5,
.lineBallCell.c5 { background: #24a6b8; }
.lineBallCell {
  border-radius: 50%;
  background: #fff;
}
.lineBallCell.empty {
  border-radius: 0;
  background: #f7fbff;
}
.lineBallCell.selected {
  outline: 4px solid #d65a18;
}
.morrisCanvas {
  display: block;
  margin: 14px auto;
  border: 2px solid #333;
  background: #f7fbff;
}
