* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: #443742;
    color: #443742;
    font-family: 'Raleway', sans-serif;
    overflow-x: hidden;
  }
  
  /* ── Hero banner ───────────────────────── */
  #hero {
    position: relative;
    width: 100%;
    /* height is set dynamically by JS to keep squares perfect */
    overflow: visible; /* allow control to sit just below */
  /* Extend hover area slightly below the canvas so users can reach the button */
  #hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 16px; /* covers the gap above the button (don't overlap the button) */
    pointer-events: auto; /* count as part of hover area */
    background: transparent;
    z-index: 1; /* keep under the button */
  }

  
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  #gameCanvas {
    display: block;
    /* no fixed width/height here – JS injects them */
    image-rendering: pixelated; /* keep crisp when scaled by DPR */
  }
  
  /* Controls container and buttons */
  .controls {
    position: absolute;
    top: 100%;
    margin-top: 8px;
    left: 20%; /* center-left: around 20% of canvas width */
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    z-index: 2;
  }

  .control-btn {
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(245, 222, 179, 0.35);
    background: rgba(68, 55, 66, 0.6);
    color: #F5DEB3;
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(6px);
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
    backdrop-filter: blur(2px);
  }

  .control-btn:hover {
    background: rgba(205, 133, 63, 0.85);
    color: #2b1e28;
    border-color: rgba(205, 133, 63, 0.9);
  }

  #hero:hover .controls,
  #hero.controls-visible .controls,
  .controls:hover,
  .controls.visible {
    opacity: 1;
    pointer-events: auto;
  }

  #hero:hover .control-btn,
  #hero.controls-visible .control-btn,
  .controls:hover .control-btn {
    transform: translateY(0);
  }
  
  .pause-btn:hover {
    background: rgba(205, 133, 63, 0.85);
    color: #2b1e28;
    border-color: rgba(205, 133, 63, 0.9);
  }
  
  /* ── Main content ───────────── */
  main {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
  }
  
  .content-container {
    text-align: center;
    padding: 2rem;
    max-width: 400px;
    width: 100%;
  }

  .profile-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    color: #F5DEB3;
    font-size: 1.15rem;
    letter-spacing: 0.01em;
  }

  .profile-highlights li {
    text-align: center;
    padding: 0.2rem 0;
  }

  .profile-highlights a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
  }

  .profile-highlights a:hover {
    color: #F5DEB3;
  }

  .ascii-art {
    font-size: 1rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    white-space: pre;
    color: #F5DEB3;
  }
  
  .tagline {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #D2B48C;
  }
  
  .links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
  }
  
  .links div {
    margin: 0.5rem 0;
  }
  
  .links a {
    color: #F5DEB3;
    text-decoration: none;
    font-size: 1.2rem;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .links a:hover {
    color: #CD853F;
  }
  
  .links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #CD853F;
    transition: width 0.3s ease;
  }
  
  .links a:hover:after {
    width: 100%;
  }
  
  @media (max-width: 600px) {
    .ascii-art {
      font-size: 0.7rem;
    }
  
    .content-container {
      padding: 2rem 1rem;
    }
  }
  
  
