* {
  box-sizing: border-box;
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
#app {
  padding: 65px 20px 20px;
  font-size: 15px;
  height: 100%;
  overflow-y: auto;
}
[v-cloak] {
  display: none;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.login {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: #f5f6f9;
}
.login .form {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  margin-top: -10vh;
  padding: 30px;
  background-color: white;
  border-radius: 8px;
}
.login .login-title {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.login .field {
  margin: 10px 0;
}
.login input {
  display: block;
  margin-top: 5px;
  outline: none;
  padding: 7px 10px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
}
.login input:focus {
  border-color: #303333;
}
.login button {
  display: block;
  width: 100%;
  height: 33px;
  margin-top: 30px;
  cursor: pointer;
  background-color: #409eff;
  border: none;
  border-radius: 4px;
  color: white;
}
.login button:hover {
  opacity: 0.7;
}
.empty {
  font-size: 20px;
  text-align: center;
  color: #d9534f;
  margin-top: 50px;
}
.red {
  color: #d9534f;
  font-weight: 500;
}
.green {
  color: green;
  font-weight: 500;
}
.header {
  margin-bottom: 10px;
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  padding: 15px 20px;
  background-color: white;
  z-index: 99;
  box-shadow: 0 10px 10px -10px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.header button {
  cursor: pointer;
  margin: 0 5px;
  background-color: #e9ecef;
  border: 1px solid #adb5bd;
  border-radius: 4px;
  padding: 5px 10px;
  color: #495057;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.header button:hover {
  background-color: #dee2e6;
  border-color: #6c757d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
button.audio-on {
  background-color: orangered;
  color: white;
  box-shadow: none;
  border: none;
}
.header span {
  color: #d9534f;
  font-size: 16px;
  margin-left: 5px;
  margin-right: 20px;
  font-weight: 600;
}
.match {
  padding: 10px 6px 10px 10px;
  border-bottom: 1px solid #909999;
  position: relative;
  color: #303333;
}
.match.profited {
  padding-left: 5px;
  border-left: 5px solid #d9534f;
}
.match > * {
  display: inline-block;
}
.match .profits {
  display: block;
  color: #d9534f;
  font-weight: 600;
  line-height: 15px;
  margin-top: 5px;
}
.match .profit {
  margin-top: 10px;
}
.match .profit-title {
  cursor: pointer;
}
.match .profit-title:hover {
  opacity: 0.6;
}
.match button {
  border: none;
  outline: none;
  padding: 2px 5px;
  border-radius: 4px;
  color: white;
  margin: 0 5px;
  cursor: pointer;
}
.match button:hover {
  opacity: 0.6;
}
.match .time {
  width: 100px;
}
.match .volume {
  color: #d9534f;
  font-weight: 600;
  width: 70px;
  text-align: right;
  margin-right: 5px;
}
.match .platforms {
  width: 133px;
  position: relative;
  top: -1px;
}
.match .potentials {
  background-color: #f3ca7f;
}
.PM {
  background-color: green;
}
.HG {
  background-color: blue;
}
.AB {
  background-color: purple;
}
.dialog {
  position: fixed;
  left: 50%;
  top: 40%;
  padding: 0;
  background: #ffffffdd;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  margin: 0;
  width: min(90vw, 500px);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1);
  color: #0f172a;
  font-family: inherit;
  transition: opacity 0.2s, display 0.2s, overlay 0.2s;
  animation: fadeInScale 0.2s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
#caculatorDialog {
  width: min(50vw, 480px);
  left: unset;
  right: 10px;
  top: unset;
  bottom: 10px;
  min-height: 360px;
  color: #c0392b;
  box-shadow: 0 10px 20px -5px rgba(217, 83, 79, 0.3), 0 0 0 1px rgba(217, 83, 79, 0.1);
}
#caculatorDialog .dialog-header {
  background-color: #f5c6cb;
}
#caculatorDialog table {
  border-collapse: collapse;
  color: black;
  margin: 0;
  font-size: 14px;
}
#caculatorDialog table td {
  width: 40%;
}
#caculatorDialog table td:first-child {
  width: 20%;
}
#caculatorDialog table tr td:first-child {
  background-color: #eee;
}
#potentialsDialog {
  width: min(40vw, 430px);
}
#potentialsDialog .dialog-body {
  max-height: calc(80vh - 100px);
  overflow-y: auto;
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #e9ecef;
}
.dialog-header.draggable {
  cursor: grab;
}
.dialog-header.draggable:active {
  cursor: grabbing;
}
.dialog .platform {
  color: white;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 14px;
}
.dialog-title {
  font-weight: 600;
  text-align: center;
}
.dialog .volume {
  color: #d9534f;
}
.dialog-close {
  background: rgba(100, 116, 139, 0.15);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 500;
  color: #334155;
  transition: all 0.15s;
  padding: 0;
  box-shadow: none;
}
.dialog-close:hover {
  background: rgba(100, 116, 139, 0.35);
  transform: scale(1.02);
  color: #0f172a;
}
.dialog-body {
  padding: 10px;
}
.dialog-body table {
  border-collapse: collapse;
  width: 100%;
  text-align: center;
  margin: 10px 0;
  border-color: #eee;
}
.dialog-body thead {
  background-color: #ccc;
}
.dialog-body tr.usd {
  border-bottom-color: black;
}
.dialog-body a {
  display: block;
  color: inherit;
  margin: 5px 0;
}
.dialog-body a.platform {
  display: inline-block;
  text-decoration: none;
}
.inputer:has(span) {
  display: grid;
  grid-template-columns: 1fr 1fr;  
}
.inputer > * {
  display: block;
  width: 100%;
  height: 22px;
}
.inputer input {
  background-color: #fff2cc;
  border: none;
  outline: none;
  text-align: center;
}
.inputer input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  appearance: none;
}
