@font-face {
  font-family: KanringTerminal;
  src: url('assets/VT323-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.kanring-widget {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: stretch;
  width: 320px;
  max-width: 100%;
  margin: 24px auto;
  padding: 5px;
  border: 1px solid #55574f;
  outline: 1px solid #282a25;
  outline-offset: 3px;
  background: #0c0c0c;
  color: #c5c7bc;
  font: 16px/1.15 KanringTerminal, "Courier New", monospace;
  text-align: center;
}

.kanring-widget * {
  box-sizing: border-box;
}

.kanring-widget a {
  color: inherit;
  text-decoration: none;
  background: transparent;
}

.kanring-widget a:hover {
  color: #f0f2e4;
  background: #1b1d17;
}

.kanring-widget a:focus-visible {
  outline: 1px solid #e1e2d7;
  outline-offset: 2px;
}

.kanring-widget .kanring-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2px;
  min-height: 58px;
  font: inherit;
}

.kanring-widget .kanring-step > span:first-child {
  font-size: 24px;
  line-height: 1;
}

.kanring-widget .kanring-home {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 9px 6px 7px;
  border-inline: 1px dotted #45483d;
  min-width: 0;
}

.kanring-widget .kanring-home img {
  display: block;
  width: 156px;
  max-width: 100%;
  height: auto;
  border: 0;
  margin: 0;
}

@media (max-width: 350px) {
  .kanring-widget {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }
}

.kanring-step[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
}
