@font-face {
  font-family: "rs";
  src: url("./assets/fonts/rs.otf") format("opentype");
  font-weight: normal;
}

@font-face {
  font-family: "rs";
  src: url("./assets/fonts/rs-bold.otf") format("opentype");
  font-weight: bold;
}

@font-face {
  font-family: "rs-quill";
  src: url("./assets/fonts/rs-quill.otf") format("opentype");
  font-weight: bold;
}
.runesweeper {
  --btn-radius: 6px;
}

.runesweeper * {
  font-family: "rs";
  box-sizing: border-box;
}

.runesweeper a {
  font-weight: 500;
  color: #ed9b40;
  text-decoration: inherit;
}

.runesweeper a:hover {
  color: #ffab4a;
  cursor: pointer;
}

.runesweeper dialog {
  background: #3e3529;
  border-image-source: url("./assets/images/dialog-frame.png");
  border-image-slice: 9;
  border-image-width: 9px;
  border-image-repeat: repeat;
  border-width: 1px;
}

.runesweeper dialog::backdrop {
  background-color: #00000088;
}

.runesweeper button {
  border: 1px solid black;
  border-radius: var(--btn-radius);
  background-image: url("./assets/images/bg-gray.png");
  background-repeat: repeat;
  background-size: auto;
  color: white;
  text-shadow: 1px 1px black;
  padding: 5px 7px;
  font-size: 16px;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: inset 0px 2px #ffffff20, inset 0px -2px #00000040, inset -2px 0px #00000030, inset 2px 0px #ffffff10;
}

.runesweeper button>span {
  font-size: 13px;
}

.runesweeper button.icon {
  height: 28px;
  width: 28px;
  line-height: 0;
  display: grid;
  place-items: center;
  padding: 0;
}

.runesweeper button:hover {
  background-image: linear-gradient(#ffffff20, #ffffff20), url("./assets/images/bg-gray.png");
}

.runesweeper {
  margin: 0;
  padding: 12px;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  background-image: linear-gradient(#ffffff48, #ffffff49), url("./assets/images/button-bg.png");
  overscroll-behavior: none;
}

.runesweeper h1 {
  font-size: 3.2em;
  line-height: 1.1;
}

.runesweeper h1,
.runesweeper h2,
.runesweeper h3,
.runesweeper h4,
.runesweeper h5,
.runesweeper h6,
.runesweeper p {
  text-shadow: 1px 1px black;
  margin: 0;
}


.board {
  --gap: 3px;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.credits {
  text-align: center;
  margin-top: 12px;
  font-size: 14px;
}

.row {
  display: flex;
  gap: var(--gap);
}