* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f5f2ea;
  color: #263b32;
  font-family:
    system-ui,
    -apple-system,
    'Microsoft YaHei',
    sans-serif;
}
header,
main,
footer {
  max-width: 1000px;
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 26px;
  border-bottom: 1px solid #dce0d5;
}
header strong {
  font-size: 24px;
}
a {
  color: inherit;
}
header a {
  font-size: 14px;
  text-decoration: none;
}
main {
  padding: 25px 24px;
}
h1 {
  font-size: 28px;
  margin: 0 0 8px;
}
#wheel {
  position: relative;
  width: min(100%, 620px);
  aspect-ratio: 1;
  margin: 20px auto 0;
}
#wheel svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cabin {
  position: absolute;
  width: 62px;
  height: 49px;
  transform: translate(-50%, -8px);
  border: 1.6px solid #9aa88e;
  border-radius: 9px 9px 14px 14px;
  background: #f5f2ea;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 3px 0 #d9dece;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.cabin:before {
  content: '';
  position: absolute;
  width: 34px;
  height: 18px;
  top: 6px;
  border: 1px solid #b9c3ad;
  border-radius: 3px;
  background: #ebeedf;
}
.cabin.empty:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  border-top: 1px solid #b9c3ad;
}
.cabin.game {
  border-color: #263b32;
  background: #263b32;
  color: #f5f2ea;
  z-index: 2;
}
.cabin.game:before {
  display: none;
}
.cabin.game:hover,
.cabin.game:focus-visible {
  outline: 2px solid #8ba47a;
  outline-offset: 5px;
  background: #42604b;
}
.controls {
  text-align: center;
}
.controls button {
  font: inherit;
  font-size: 12px;
  border: 0;
  background: none;
  color: #87947e;
  cursor: pointer;
  padding: 10px;
}
footer {
  padding: 24px 26px;
  font-size: 12px;
  color: #8a9585;
  border-top: 1px solid #dce0d5;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}
footer a {
  text-decoration: none;
}
@media (max-width: 600px) {
  header {
    padding: 22px 20px;
  }
  main {
    padding: 24px 20px;
  }
  .cabin {
    width: 46px;
    height: 39px;
    font-size: 12px;
  }
  .cabin:before {
    width: 26px;
    height: 14px;
  }
  h1 {
    font-size: 25px;
  }
  #wheel {
    margin-top: 28px;
  }
}
