html,
body {
  margin: 0;
  width: 100vw;
  min-width: 100%;
  height: 100vh;
  min-height: 100%;
  overflow: hidden;
  font-size: 14px;
  font-family: "Helvetica Neue",Helvetica,Arial,Sans-serif;
  font-weight: 300;
  text-align: center;
  cursor: default;

  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;

  -ms-touch-action: none;
  touch-action: none;
  overscroll-behavior: none;
}

div {
  cursor: inherit;
}

a {
  color: steelBlue;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#center {
  position: relative;
  height: 100%;
  width: 512px;
  margin: 0 auto;
}

#cont {
  position: absolute;
  top: 50%;
  margin-top: -270px;
  width:  512px;
  height: 570px;
}

#dot {
  width:  512px;
  height: 512px;
}

svg,
circle {
  pointer-events: none;
}

#next {
  padding-top: 30px;
}

#next input {
  width: 480px;
  border: 1px solid #ccc;
  outline: none;
}

#next .err {
  color: red;
}

#footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding-top: 18px;
  padding-bottom: 2px;
  background: -webkit-gradient(linear, left bottom, left top, from(rgba(255, 255, 255, 1)), to(rgba(255, 255, 255, 0)));
  background: -moz-linear-gradient(bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

#dots {
  position: relative;
  width: 512px;
  height: 512px;
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

#reveal {
  position: absolute;
  top: 0;
  left: 0;
  width: 512px;
  height: 512px;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}

#gc-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #2b6a2f;
  padding: 8px 16px;
  text-align: center;
  font-size: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

#gc-banner a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
}

#gc-banner a:hover {
  text-decoration: underline;
}

/* Bottom-of-viewport stack that holds the (optional) coordinate verifier
   and (optional) certitudes block. Flex column lets them stack naturally
   when both are present — no JS height measurement required, which avoids
   the certitudes-logo-still-loading race that caused them to overlap. */
#bottom-stack {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

#certitudes {
  background: rgba(255,255,255,0.95);
  padding: 12px 16px;
  font-size: 13px;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

#certitudes img {
  max-height: 40px;
  vertical-align: middle;
}

/* Player-side coordinate verifier — only fixed-bottom because the parent
   #bottom-stack is; this just contributes its own row. */
#coord-verify {
  background: rgba(255,255,255,0.96);
  padding: 10px 16px;
  font-size: 13px;
  box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.coord-verify-row {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 560px;
  margin: 0 auto;
}

.coord-verify-label {
  color: #555;
  white-space: nowrap;
  font-weight: 500;
}

#coord-verify input {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  background: #fff;
  outline: none;
}

#coord-verify input:focus {
  border-color: #365059;
  box-shadow: 0 0 0 3px rgba(54, 80, 89, 0.15);
}

#coord-verify button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: #365059;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}

#coord-verify button:hover {
  background: #2b424a;
}

@media (max-width: 540px) {
  .coord-verify-label { display: none; }
  #coord-verify { padding: 8px 10px; }
}

div.not-found {
  text-align: center;
  margin-top: 200px;
  font-size: 32px;
}
