* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100dvh;
  background-color: #000;
  overscroll-behavior: none;
  display: grid;
  place-items: center;
}

#container {
  container-type: inline-size;
  --aspect-ratio: 1200 / 732;
  position: relative;
  width: min(100vw, calc(100dvh * var(--aspect-ratio)));
  background: #000;
  aspect-ratio: var(--aspect-ratio);

  canvas {
    width: 100%;
    height: 100%;
    touch-action: none;
    object-fit: cover;
  }

  .dialog {
    position: absolute;
    left: 2cqw;
    right: 2cqw;
    bottom: 2cqw;
    padding: 2cqw;
    font-size: 2.6cqw;
    background: #00000080;
    color: #fff;
    font-family: sans-serif;

    p {
      margin: 0;
      padding: 0;

      + p {
        margin-block-start: 1lh;
      }
    }

    .choices {
      display: flex;
      justify-content: flex-end;
      gap: 1ch;
    }

    button {
      cursor: pointer;
      font: inherit;
      background: none;
      color: inherit;
      border: 0;

      &:before {
        content: " ";
        display: inline-block;
        width: 1.5ch;
        height: .6lh;
        vertical-align: baseline;
      }

      &:focus {
        outline: 0;

        &:before {
          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M4 12h12.25L11 6.75l.66-.75 6.5 6.5-6.5 6.5-.66-.75L16.25 13H4z'/%3E%3C/svg%3E");
          background-repeat: no-repeat;
          background-size: container;
          background-position: left center;
        }
      }
    }
  }
}
