@font-face {
  font-family: 'gamefont';
  src: url('data/css/gamefont.eot');
  src: url('data/css/gamefont.eot?#iefix') format('embedded-opentype'),
     url('data/css/gamefont.woff') format('woff'),
     url('data/css/gamefont.ttf') format('truetype'),
     url('data/css/gamefont.svg#gamefont') format('svg');
  font-weight: normal;
  font-style: normal;
}

.flappuu-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.flappuu-wrapper #screen {
  width: 100%;
  height: 60vh;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.flappuu-wrapper #screen canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  margin: 0;
}

@media (max-width: 768px) {
  .flappuu-wrapper #screen {
    height: auto;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .flappuu-leaderboard {
    padding: 10px 15px;
    border-top: none;
  }

  .flappuu-leaderboard h3 {
    margin: 0 0 8px;
    font-size: 18px;
  }

  .flappuu-leaderboard li {
    padding: 4px 6px;
    font-size: 14px;
  }
}

.flappuu-wrapper #screen canvas {
  image-rendering: optimizeSpeed;
  image-rendering: -moz-crisp-edges;
  image-rendering: -o-crisp-edges;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: optimize-contrast;
  -ms-interpolation-mode: nearest-neighbor;
}

.flappuu-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #111;
  border-bottom: 1px solid #333;
}



.flappuu-leaderboard {
  display: none;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 15px 20px;
  background: #111;
  border-top: 2px solid #333;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

.flappuu-leaderboard h3 {
  margin: 0 0 12px;
  font-size: 22px;
  text-align: center;
  color: #ffcc00;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.flappuu-leaderboard ol {
  margin: 0;
  padding: 0 0 0 24px;
  list-style: decimal;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.flappuu-leaderboard li {
  padding: 6px 8px;
  font-size: 16px;
  border-bottom: 1px solid #222;
}

.flappuu-leaderboard li:last-child {
  border-bottom: none;
}

.flappuu-leaderboard-actions {
    text-align: center;
    margin-top: 12px;
}

.flappuu-reset-btn {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #555;
    border-radius: 4px;
    background: #222;
    color: #aaa;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.flappuu-reset-btn:hover {
    background: #c0392b;
    color: #fff;
    border-color: #c0392b;
}

.flappuu-leaderboard li:nth-child(1) {
  color: #ffd700;
  font-weight: bold;
}

.flappuu-leaderboard li:nth-child(2) {
  color: #c0c0c0;
}

.flappuu-leaderboard li:nth-child(3) {
  color: #cd7f32;
}

.flappuu-start-form {
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  padding: 40px 20px;
  background: #111;
  border: 2px solid #333;
  border-radius: 12px;
  color: #fff;
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

.flappuu-start-form h3 {
  margin: 0 0 4px;
  font-size: 32px;
  color: #ffcc00;
  text-transform: uppercase;
  letter-spacing: 3px;
}

.flappuu-start-form .flappuu-subtitle {
  margin: 0 0 24px;
  font-size: 14px;
  color: #888;
}

.flappuu-start-form input {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0 auto 16px;
  padding: 12px 16px;
  font-size: 18px;
  border: 2px solid #555;
  border-radius: 6px;
  background: #222;
  color: #fff;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.flappuu-start-form input:focus {
  border-color: #ffcc00;
}

.flappuu-start-form input::placeholder {
  color: #666;
}

.flappuu-start-form button {
  display: inline-block;
  padding: 12px 40px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  background: #ffcc00;
  color: #111;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.flappuu-start-form button:hover {
  background: #ffd633;
}

.flappuu-start-form button:active {
  transform: scale(0.97);
}
