/* Layout: full viewport sketch area + fixed bottom info bar */

html, body {
  height: 100%;
  margin: 0;
}

body {
  background-color: #000;
  overflow: hidden;
}

canvas {
  display: block;
  vertical-align: top;
}

/* Bottom bar: subtle, above sketch in z-order; sketch height excludes this in JS */
.info-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  box-sizing: border-box;
  min-height: 4.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.info-bar__left {
  flex: 1 1 16rem;
  min-width: 0;
}

.info-bar__title {
  margin: 0 0 0.35rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}

.info-bar__desc {
  margin: 0 0 0.35rem 0;
  color: rgba(255, 255, 255, 0.78);
  max-width: 36rem;
}

.info-bar__source {
  margin: 0;
}

.info-bar__link {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.info-bar__link:hover {
  color: #fff;
}

.info-bar__right {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.info-bar__btn {
  margin: 0;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: #000;
  background: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.info-bar__btn:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
}

.info-bar__btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

.info-bar__btn:active {
  background: #e5e5e5;
  border-color: #e5e5e5;
}

@media (max-width: 640px) {
  .info-bar {
    flex-direction: column;
    align-items: stretch;
    min-height: unset;
  }

  .info-bar__left {
    flex: 0 1 auto;
    min-width: 0;
  }

  .info-bar__right {
    justify-content: flex-start;
    flex: 0 0 auto;
  }

  .info-bar__btn {
    width: 100%;
  }
}
