html, body {
    margin: 0;
    padding: 0;
    background: #5a4632;
    color: #eee;
    font-family: Arial, sans-serif;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: background-color 0.5s ease;
  }
  body {
    display: flex;
    flex-direction: column;
  }
  #topBar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 10px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.55;
    transition: opacity 0.2s;
  }
  #topBar:hover { opacity: 1; }
  #gameWrapper {
    position: relative;
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  canvas {
    background: #437048;
    cursor: pointer;
    display: block;
  }
  .badge {
    font-size: 10px;
    color: #aaa;
    background: rgba(0,0,0,0.45);
    padding: 2px 7px;
    border-radius: 3px;
    line-height: 1.6;
  }
  .gamepad-badge.active { color: #66ccff; }
