:root {
  color-scheme: dark;
  --ink: #111214;
  --paper: #f6f6f7;
  --silver: #b8bcc3;
  --silver-dark: #545a63;
  --gold: #efc64b;
  --amber: #d89328;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at center, rgba(0, 0, 0, 0.14), transparent 40%),
    linear-gradient(180deg, #f4f4f4 0%, #e8e8e8 100%);
  color: var(--paper);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

.console {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  padding: 10px;
  background: linear-gradient(180deg, #fafafa 0%, #ededed 100%);
}

.screen {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #fcfcfc 0%, #ededed 100%);
  border: 4px solid #b8b8b8;
}

.hud {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  background: linear-gradient(180deg, #fbfbfb 0%, #dfdfdf 100%);
  color: #30343a;
  border-bottom: 4px solid #c3c3c3;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

#game {
  display: block;
  width: 100%;
  height: 100%;
}

#restart {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  min-width: 72px;
  height: 34px;
  border: 2px solid #ffffff;
  border-radius: 10px;
  background: linear-gradient(180deg, #8d8f94 0%, #4a4e55 100%);
  color: #fff6ea;
  font: 700 13px/1 "Avenir Next", "Trebuchet MS", sans-serif;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

#restart:active {
  transform: translateY(2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}
