/* src/css/styles.css */
* {
  user-select: none;
}
html,
body {
  margin: 0;
  padding: 0;
}
body,
#M {
  align-items: center;
  display: flex;
  justify-content: center;
  height: 100%;
  text-shadow:
    0px 0px 8px #000,
    -1px -1px 3px #000,
    1px 1px 3px #000;
  background: #000;
  color: #fca;
  text-align: center;
  font-family:
    Papyrus,
    Gabriola,
    "Times New Roman",
    Times,
    serif;
}
#M {
  position: relative;
  letter-spacing: 0.01em;
}
input {
  width: 1.2rem;
  height: 1.2rem;
  vertical-align: middle;
}
#V {
  width: 15em;
}
#N {
  position: absolute;
  top: 0;
}
#N {
  display: none;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(15px) contrast(200%) brightness(35%);
}
b {
  cursor: pointer;
}
b:hover {
  text-decoration: underline;
}
.X {
  opacity: 0.5;
  cursor: no-drop;
}
.X:hover {
  text-decoration: none;
}
#T {
  padding: 2px;
  bottom: 0;
  position: absolute;
}
h1,
h3 {
  margin: 0.2em;
}
small {
  display: block;
  margin: 0.55em;
}
label {
  margin: 0.4em;
}
@-moz-document url-prefix() {
  .N #C {
    filter: blur(15px) contrast(190%) brightness(50%);
  }
}
.N #T {
  display: none;
}
.N #N {
  display: block;
}
a,
a:visited,
a:active {
  opacity: 0.7;
  font-size: 0.6em;
  color: #fca;
}
a:hover {
  opacity: 1;
}
html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
body {
  box-sizing: border-box;
  padding-bottom: 28px;
}
#C {
  touch-action: none;
}
#N {
  overflow: auto;
  overscroll-behavior: contain;
}
#gamehub-credit {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px 0;
  background: #080808;
  font: 10px sans-serif;
  z-index: 3;
}
#gamehub-credit a {
  font: inherit;
}
#gamehub-touch {
  display: none;
}
@media (pointer: coarse) {
  #gamehub-touch {
    position: fixed;
    bottom: 36px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    pointer-events: none;
  }
  .N #gamehub-touch,
  .L #gamehub-touch {
    display: none;
  }
  #gamehub-pad {
    display: grid;
    grid-template-columns: repeat(3, 44px);
    grid-template-rows: repeat(2, 44px);
    gap: 3px;
    pointer-events: auto;
  }
  #gamehub-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(44px, 1fr));
    gap: 4px;
    max-width: 180px;
    pointer-events: auto;
  }
  #gamehub-touch button {
    font: 12px sans-serif;
    color: #fca;
    background: #161616cc;
    border: 1px solid #7778;
    padding: 10px 4px;
    min-height: 44px;
    touch-action: none;
  }
  [data-key="1"] {
    grid-column: 2;
  }
  [data-key="3"] {
    grid-column: 1;
    grid-row: 2;
  }
  [data-key="2"] {
    grid-column: 2;
    grid-row: 2;
  }
  [data-key="4"] {
    grid-column: 3;
    grid-row: 2;
  }
}
