* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: #1a1a2e;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: 'Hiragino Kaku Gothic Pro', 'Yu Gothic', sans-serif;
  overflow-x: hidden;
}
#pageWrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ad-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 320px;
}
.ad-slot {
  width: 320px;
  height: 180px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ad-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ad-slot .ad-placeholder {
  color: rgba(255,255,255,0.2);
  font-size: 13px;
}
#gameContainer {
  position: relative;
  width: 486px;
  height: 906px;
  flex-shrink: 0;
}
@media (max-width: 1160px) {
  .ad-column { display: none; }
}
canvas {
  display: block;
  border: 3px solid #e94560;
  border-radius: 8px;
  cursor: none;
}
#startScreen, #gameOverScreen {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 8px;
  color: white;
  z-index: 10;
}
#gameOverScreen { display: none; }
#settingsScreen {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 8px;
  color: white;
  z-index: 10;
}
.char-select-grid {
  display: flex;
  gap: 12px;
  margin: 15px 0;
  flex-wrap: wrap;
  justify-content: center;
}
.char-card {
  width: 130px;
  padding: 12px 8px;
  background: rgba(255,255,255,0.08);
  border: 3px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s, border-color 0.2s, background 0.2s;
}
.char-card:hover {
  background: rgba(255,255,255,0.15);
  transform: scale(1.05);
}
.char-card.selected {
  border-color: #e94560;
  background: rgba(233, 69, 96, 0.2);
}
.char-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}
.char-card .char-name {
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 4px;
}
.char-card .char-weapon {
  font-size: 11px;
  color: #aaa;
}
h1 {
  font-size: 28px;
  color: #e94560;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.4;
}
.subtitle {
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
  text-align: center;
  line-height: 1.6;
}
.btn {
  padding: 15px 40px;
  font-size: 20px;
  background: #e94560;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, background 0.2s;
  margin-bottom: 12px;
}
.btn:hover { background: #c73e54; transform: scale(1.05); }
.btn:active { transform: scale(0.95); }
.btn-char {
  padding: 12px 35px;
  font-size: 16px;
  background: rgba(255,255,255,0.12);
  color: white;
  border: 2px solid rgba(255,255,255,0.25);
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, background 0.2s, border-color 0.2s;
  margin-bottom: 12px;
}
.btn-char:hover { background: rgba(255,255,255,0.22); border-color: #e94560; transform: scale(1.05); }
.btn-char:active { transform: scale(0.95); }
.btn-secondary {
  padding: 12px 35px;
  font-size: 16px;
  background: #555;
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s, background 0.2s;
}
.btn-secondary:hover { background: #777; transform: scale(1.05); }
.btn-secondary:active { transform: scale(0.95); }
#finalScore {
  font-size: 48px;
  color: #e94560;
  margin: 0 0 10px 0;
}
.controls-info {
  font-size: 12px;
  color: #aaa;
  margin-top: 20px;
  text-align: center;
  line-height: 1.8;
}
