* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f3f5f3;
  color: #1c3028;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
}
main {
  max-width: 560px;
  margin: auto;
  padding: 30px 22px 50px;
}
header {
  margin-bottom: 24px;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: #42624d;
}
h1 {
  font-size: 24px;
  letter-spacing: -0.04em;
  margin: 12px 0;
}
p {
  line-height: 1.6;
  font-size: 14px;
}
header p,
footer,
.note {
  color: #64766b;
}
.status {
  background: #fff;
  border: 1px solid #d7e1da;
  border-radius: 16px;
  padding: 18px;
}
.status strong {
  display: inline-block;
  background: #174f3c;
  color: white;
  border-radius: 6px;
  padding: 4px 12px;
  margin-right: 10px;
}
.status p {
  margin: 8px 0 0;
}
.status small {
  display: block;
  margin-top: 8px;
}
#controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 28px 16px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  background: #174f3c;
  color: #fff;
  min-height: 48px;
}
button:focus-visible,
select:focus-visible {
  outline: 3px solid #171717;
  outline-offset: 4px;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
#controls button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  max-width: 100%;
  border-radius: 50%;
  font-weight: 750;
  font-size: 18px;
  box-shadow: 0 6px 0 #0002;
  justify-self: center;
  touch-action: none;
}
#controls span {
  font-size: 40px;
  line-height: 1.4;
}
.rock {
  grid-column: 1/3;
  background: #c84243;
}
.scissors {
  background: #ecc24e;
  color: #3e3208;
}
.paper {
  background: #2879bd;
}
#controls .pressed {
  transform: translateY(5px);
  box-shadow: 0 1px 0 #0002;
}
.card {
  background: white;
  border-radius: 16px;
  border: 1px solid #d7e1da;
  padding: 22px;
  margin-bottom: 20px;
}
h2 {
  font-size: 18px;
  margin: 0 0 20px;
}
label {
  display: block;
  font-size: 13px;
  margin-bottom: 8px;
}
select {
  font: inherit;
  padding: 12px;
  width: 100%;
  border: 1px solid #b9c9be;
  border-radius: 8px;
  margin-bottom: 14px;
  background: #fff;
}
#scan {
  width: 100%;
}
#query {
  background: #edf2ef;
  color: #174f3c;
  font-size: 14px;
}
.note {
  font-size: 12px;
}
footer {
  font-size: 12px;
  margin-top: 25px;
}
#reconnect {
  background: transparent;
  color: #174f3c;
  border: 1px solid #b9c9be;
}
@media (max-width: 350px) {
  main {
    padding: 20px 12px;
  }
  #controls button {
    width: 116px;
    height: 116px;
  }
}
