.tools {
  display: flex;
  align-items: center;
  gap: 8px
}

.game {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px
}

.game .screenhead h1 {
  font-size: clamp(23px, 2.4vw, 35px);
  margin: 0
}

.game .screenhead .eyebrow {
  margin-bottom: 5px
}

.qmeta {
  color: #bac8df;
  font-size: 13px
}

.qmeta .bars {
  width: 38%;
  max-width: 380px
}

.gamepanel {
  flex: 1 0 auto;
  padding: clamp(12px, 2vh, 26px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  background: radial-gradient(ellipse at 50% 55%, #1d3041, #121b30 75%)
}

.prompt {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px
}

.prompt h2 {
  margin: 0;
  font-size: clamp(20px, 2.15vw, 35px);
  letter-spacing: -.7px
}

.prompt .iconbtn {
  background: transparent;
  color: var(--aqua)
}

.equation {
  font-size: clamp(24px, 3vw, 46px);
  font-weight: bold;
  letter-spacing: 1px
}

.modelspace {
  flex: 1 0 auto;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px
}

.modelspace .equation {
  font-size: clamp(29px, 5vw, 74px)
}

.modelnote,
.feedback {
  font-size: 14px;
  color: #c3d0e5;
  line-height: 1.3
}

.feedback {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 24px;
  color: #9de9d2;
  font-weight: 700
}

.answers {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  flex: none
}

.answer {
  font-size: clamp(18px, 2.1vw, 30px);
  min-width: 86px
}

.answer.correct {
  background: #245749;
  color: #beffdf;
  border-color: #6edcb0
}

.answer.tried {
  opacity: .5
}

.gfoot {
  min-height: 64px
}

.gfoot button,
.tools .secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px
}

.gfoot .primary {
  padding: 0 25px
}

.toolrow,
.bins,
.lineitems {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap
}

.object,
.bin,
.dropback {
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
  min-width: 64px;
  min-height: 64px;
  border-radius: 12px
}

.object,
.dropback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px dashed #6d938e;
  background: #18363d;
  padding: 0 10px;
  color: #b6f7df
}

.object svg {
  width: 43px;
  height: 43px
}

.object.picked {
  outline: 3px solid var(--aqua)
}

.bin {
  border: 1px solid #526277;
  background: #253749;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-wrap: wrap;
  gap: 2px;
  padding: 5px
}

.bin svg {
  width: 28px;
  height: 28px;
  pointer-events: none
}

.bin .binlabel {
  font: 700 11px "Courier New", monospace;
  color: #c1d1de;
  display: block;
  flex-basis: 100%
}

.bin.wide {
  min-width: 90px;
  max-width: 210px
}

.bin.frame {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
  width: clamp(185px, 24vw, 320px);
  padding: 0;
  overflow: hidden
}

.cell {
  display: grid;
  place-items: center;
  min-height: 31px;
  border: 1px solid #536377
}

.cell svg {
  width: 27px;
  height: 27px
}

.numberline {
  width: min(85%, 650px);
  min-height: 56px;
  max-height: 80px
}

.linebin {
  padding: 0;
  border: 0;
  background: none;
  min-width: min(60vw, 600px);
  display: grid;
  place-items: center
}

.stepsvg {
  width: 100%;
  height: 64px
}

.picmodel {
  max-width: min(90%, 600px);
  width: 100%;
  height: 100%;
  min-height: 50px;
  max-height: 160px
}

.modelspace .secondary {
  font-size: 14px
}

.modelspace .steps {
  display: flex;
  gap: 12px;
  align-items: center
}

.counton {
  animation: countpulse .48s ease-in-out
}

.dragghost {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 30;
  width: 49px;
  height: 49px;
  filter: drop-shadow(0 3px 8px #000b)
}

@keyframes countpulse {
  50% {
    filter: brightness(1.6)
  }
}

.portrait {
  display: none
}

.successicon {
  width: 85px;
  height: 85px;
  margin: auto
}

.result {
  text-align: center
}

.result h2 {
  margin: 12px 0
}

.range {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px
}

.rangebtn {
  min-height: 64px
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%)
}
