/*!**************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[5].use[3]!./app/games/excitebike/excitebike.module.css ***!
  \**************************************************************************************************************************************************************************************************************************************************************************************/
.excitebike_wrapper__v3RVE {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #1a1020;
  color: white;
  -moz-user-select: none;
       user-select: none;
  -webkit-user-select: none;
  position: relative;
  padding: 8px;
  gap: 8px;
}

/* ── Canvas ── */
.excitebike_canvasContainer__cuDyf {
  position: relative;
  width: 100%;
  max-width: 512px;
}

.excitebike_gameCanvas__r9ped {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 3px solid #333;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #000;
}

/* ── Touch Controls — NES controller layout ── */
.excitebike_controls__vBo2H {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 512px;
  padding: 8px 12px;
  background: #2a2a2a;
  border-radius: 10px;
  border: 2px solid #444;
  min-height: 90px;
}

/* D-pad */
.excitebike_dpad__9lCxr {
  position: relative;
  width: 90px;
  height: 90px;
}

.excitebike_dpadBtn__tL5r6 {
  position: absolute;
  background: #444;
  border: 1px solid #555;
  cursor: pointer;
  touch-action: manipulation;
}

.excitebike_dpadBtn__tL5r6:active {
  background: #666;
}

.excitebike_dpadUp__QnDO2 {
  top: 0;
  left: 30px;
  width: 30px;
  height: 30px;
  border-radius: 4px 4px 0 0;
}

.excitebike_dpadDown__mOgcJ {
  bottom: 0;
  left: 30px;
  width: 30px;
  height: 30px;
  border-radius: 0 0 4px 4px;
}

.excitebike_dpadLeft__XKNPB {
  top: 30px;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 4px 0 0 4px;
}

.excitebike_dpadRight__7xIde {
  top: 30px;
  right: 0;
  width: 30px;
  height: 30px;
  border-radius: 0 4px 4px 0;
}

.excitebike_dpadCenter__RlAvy {
  position: absolute;
  top: 30px;
  left: 30px;
  width: 30px;
  height: 30px;
  background: #444;
  border: 1px solid #555;
}

/* A/B buttons */
.excitebike_abButtons__SDtWH {
  display: flex;
  gap: 14px;
  align-items: center;
}

.excitebike_nesBtn__O64ng {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #444;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  touch-action: manipulation;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1a;
  transition: transform 0.05s;
}

.excitebike_nesBtn__O64ng:active {
  transform: scale(0.93);
}

.excitebike_btnA__kwtwe {
  background: #cc0000;
  border-color: #990000;
}

.excitebike_btnA__kwtwe:active {
  background: #ff2222;
}

.excitebike_btnB__eHRMU {
  background: #cc0000;
  border-color: #990000;
  margin-top: 16px;
}

.excitebike_btnB__eHRMU:active {
  background: #ff2222;
}

/* ── Overlays ── */
.excitebike_overlay__C9_jJ {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  gap: 12px;
  padding: 24px;
}

.excitebike_titleLogo__8x7Mr {
  font-size: 2.2rem;
  font-weight: 900;
  color: #fc0000;
  letter-spacing: 0.15em;
  text-shadow: 3px 3px 0 #8b0000, -1px -1px 0 #ff6666;
  text-align: center;
  font-family: monospace;
}

.excitebike_titleSub__6u64v {
  font-size: 0.9rem;
  color: #fccc00;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: monospace;
}

.excitebike_instructions__074jM {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  line-height: 1.8;
  max-width: 340px;
  font-family: monospace;
}

.excitebike_instructions__074jM p {
  margin: 0;
}

.excitebike_instructions__074jM strong {
  color: rgba(255, 255, 255, 0.9);
}

.excitebike_startBtn__y_mJ1 {
  padding: 12px 40px;
  border-radius: 6px;
  border: 2px solid #990000;
  background: #cc0000;
  color: white;
  font-size: 1rem;
  font-weight: 900;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: monospace;
  transition: transform 0.1s;
  margin-top: 8px;
}

.excitebike_startBtn__y_mJ1:hover {
  transform: translateY(-2px);
  background: #e80000;
}

.excitebike_startBtn__y_mJ1:active {
  transform: translateY(0);
}

.excitebike_bestTime__lgXlx {
  font-size: 0.75rem;
  color: #fccc00;
  font-weight: 700;
  font-family: monospace;
}

.excitebike_finishTitle__B_bY_ {
  font-size: 2rem;
  font-weight: 900;
  color: #fccc00;
  text-align: center;
  font-family: monospace;
}

.excitebike_finishPlace__3e2fs {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fcfcfc;
  font-family: monospace;
}

.excitebike_finishTime__Oi0DD {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: monospace;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .excitebike_wrapper__v3RVE {
    padding: 4px;
    gap: 4px;
  }

  .excitebike_controls__vBo2H {
    padding: 6px 8px;
    min-height: 80px;
  }

  .excitebike_dpad__9lCxr {
    width: 80px;
    height: 80px;
  }

  .excitebike_dpadUp__QnDO2, .excitebike_dpadDown__mOgcJ, .excitebike_dpadLeft__XKNPB, .excitebike_dpadRight__7xIde {
    width: 26px;
    height: 26px;
  }

  .excitebike_dpadUp__QnDO2 { left: 27px; }
  .excitebike_dpadDown__mOgcJ { left: 27px; }
  .excitebike_dpadLeft__XKNPB { top: 27px; }
  .excitebike_dpadRight__7xIde { top: 27px; }
  .excitebike_dpadCenter__RlAvy { top: 27px; left: 27px; width: 26px; height: 26px; }

  .excitebike_nesBtn__O64ng {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
  }

  .excitebike_titleLogo__8x7Mr {
    font-size: 1.6rem;
  }
}

