  .ai-code-game {
    width: 100%;
    max-width: 1100px;
  }

  #ai-code-screen {
    background: transparent;
    color: #674B8D;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.55;
    padding: 20px;
    width: 100%;
    height: calc(1.55em * 20 + 40px);
    overflow: hidden;
    box-sizing: border-box;
    border-radius: 8px;
    white-space: pre;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
  }

  #ai-code-screen .line {
    display: block;
    min-height: 1.55em;
    white-space: pre;
  }

  #ai-code-screen .cursor::after {
    content: "_";
    animation: blink 0.8s steps(1) infinite;
    margin-left: 1px;
  }

  #ai-code-screen .error-token {
    color: #df1e12;
    animation: errorBlink 0.7s steps(1) infinite;
    border-radius: 3px;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-block;
    line-height: 1.3;
    min-height: 24px;
    min-width: 24px;
    padding: 2px 3px;
    text-decoration: none;
    touch-action: manipulation;
    vertical-align: baseline;
  }

  #ai-code-screen .error-token:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 2px;
  }

  #ai-code-screen .error-token.is-fixed {
    animation: none;
    background: #14843C;
    color: #ffffff;
    cursor: default;
    text-decoration: none;
  }

  #ai-code-screen .game-over-line {
    animation: errorBlink 0.7s steps(1) infinite;
    color: #df1e12;
  }

  #ai-code-screen.is-motion-paused .cursor::after,
  #ai-code-screen.is-motion-paused .error-token,
  #ai-code-screen.is-motion-paused .game-over-line,
  .ai4ai-motion-paused #ai-code-screen .cursor::after,
  .ai4ai-motion-paused #ai-code-screen .error-token,
  .ai4ai-motion-paused #ai-code-screen .game-over-line,
  .ai4ai-motion-paused .heading-error-flash,
  .ai4ai-motion-paused .ai-code-game-points-bubble {
    animation-play-state: paused;
  }

  .ai-code-game-score {
    background: #ffffff;
    border-radius: 23px;
    box-sizing: border-box;
    color: #222222;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 12px;
    line-height: 1.55;
    min-height: calc(1.55em + 16px);
    padding: 8px 20px;
    width: 100%;
  }

  .ai-code-game-score[hidden] {
    display: none;
  }

  .ai-code-game-points-icon {
    display: inline-block;
    height: 1em;
    margin-right: 4px;
    vertical-align: -0.14em;
    width: auto;
  }

  .ai-code-game-points-bubble {
    animation: pointsBubbleFloat 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    background: #ffffff;
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.16);
    box-sizing: border-box;
    color: #111111;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 12px;
    font-weight: 700;
    left: 0;
    line-height: 1;
    padding: 7px 9px;
    pointer-events: none;
    position: fixed;
    top: 0;
    filter: blur(0);
    transform: translate(-50%, -115%);
    white-space: nowrap;
    z-index: 9999;
  }

  .ai-code-game-points-bubble-miss {
    background: #df1e12;
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
  }

  .home-fail,
  .home-misbehave,
  .home-exploit {
    color: #222222;
  }

  .heading-error-flash {
    animation: headingErrorFlash 2s ease-out;
  }

  @keyframes blink {
    50% { opacity: 0; }
  }

  @keyframes errorBlink {
    50% { opacity: 0; }
  }

  @keyframes headingErrorFlash {
    0% { color: #df1e12; }
    50% { color: #df1e12; }
    100% { color: #222222; }
  }

  @keyframes pointsBubbleFloat {
    0% {
      filter: blur(0);
      opacity: 1;
      transform: translate(-50%, -115%);
    }

    50% {
      filter: blur(0);
      opacity: 1;
      transform: translate(-50%, calc(-115% - 18px));
    }

    100% {
      filter: blur(4px);
      opacity: 0;
      transform: translate(-50%, calc(-115% - 34px));
    }
  }
