* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #ecf3f3;
  color: #19394c;
  font:
    15px/1.5 system-ui,
    sans-serif;
}
main {
  max-width: 1200px;
  margin: auto;
  padding: 76px 24px 28px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  padding: 0 112px 16px 0;
  gap: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #537b88;
}
h1 {
  font-size: 34px;
  line-height: 1.15;
  margin: 7px 0 0;
  letter-spacing: -1px;
}
#count {
  font-size: 13px;
  white-space: nowrap;
  background: #d4e6e2;
  padding: 6px 12px;
  border-radius: 20px;
}
.city-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid #a1bebd;
  border-radius: 18px;
  box-shadow: 0 12px 36px #173f4b12;
}
canvas {
  display: block;
  width: 100%;
  height: min(57vh, 590px);
  min-height: 320px;
  background: #a9d1cb;
  outline: none;
  touch-action: none;
}
canvas:focus-visible {
  outline: 3px solid #207eac;
  outline-offset: -3px;
}
#location {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: #fcf8eced;
  color: #425967;
  padding: 5px 13px;
  border-radius: 8px;
  font-size: 12px;
  pointer-events: none;
}
.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.pad {
  display: flex;
  gap: 6px;
}
button {
  cursor: pointer;
  font: 600 15px system-ui;
  border: 1px solid #a7c2c5;
  padding: 13px 20px;
  border-radius: 12px;
  background: #fff;
  color: #214759;
  touch-action: none;
}
button:focus-visible {
  outline: 3px solid #297cb6;
  outline-offset: 2px;
}
#portal {
  background: #6454ac;
  border-color: #6454ac;
  color: white;
}
#portal:disabled {
  background: #d8d7e1;
  border-color: #c3c5d1;
  color: #707283;
  cursor: default;
}
#portalHint {
  font-size: 13px;
  margin: 10px 0 4px;
  color: #526378;
}
#rules {
  font-size: 12px;
  max-width: 800px;
  margin: 4px 0;
  color: #6b7f88;
}
#error {
  color: #a14231;
}
@media (max-width: 650px) {
  main {
    padding: 84px 12px 90px;
  }
  header {
    padding-right: 92px;
    align-items: start;
    flex-direction: column;
    gap: 9px;
  }
  h1 {
    font-size: 28px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  canvas {
    height: 46vh;
    min-height: 310px;
  }
  .actions {
    flex-wrap: wrap;
  }
  .pad {
    width: 100%;
    justify-content: center;
  }
  .pad button {
    width: 58px;
    height: 48px;
    padding: 10px;
  }
  #portal {
    width: 100%;
    padding: 13px;
  }
  #location {
    left: 10px;
    bottom: 10px;
  }
  #count {
    font-size: 12px;
    padding: 4px 9px;
  }
}
