* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #050505;
  color: white;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.game-wrapper {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.top-panel {
  width: min(420px, 95vw);
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 18px;
  letter-spacing: 1px;
}

#gameArea {
  position: relative;
  width: min(420px, 95vw);
  height: 620px;
  max-height: 78vh;
  background:
    radial-gradient(circle at top, rgba(160, 30, 30, 0.25), transparent 35%),
    linear-gradient(180deg, #111, #050505);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255,255,255,0.08);
}

#player {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 150px;
  height: 230px;
  background-image: url("img/ontam-player.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center bottom;
  pointer-events: none;
}

#player.happy {
  background-image: url("img/ontam-player-happy.png");
}

.player-face {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #fff;
}

.card {
  position: absolute;
  width: 95px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  backdrop-filter: blur(8px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.card.good {
  background: linear-gradient(135deg, #7a1010, #d62c2c);
}

.card.bad {
  background: linear-gradient(135deg, #191919, #333);
}

.card.bonus {
  background: linear-gradient(135deg, #a36b00, #ffbd38);
  color: #111;
}

.screen {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  z-index: 20;
}

.screen h1 {
  font-size: 36px;
  margin-bottom: 10px;
  letter-spacing: 3px;
}

.screen p {
  opacity: 0.8;
  margin-bottom: 24px;
}

button {
  border: none;
  padding: 14px 30px;
  border-radius: 999px;
  background: white;
  color: black;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

button:hover {
  transform: scale(1.04);
}

.hidden {
  display: none;
}

.controls-hint {
  width: min(420px, 95vw);
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  text-align: center;
}
.game-over-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.back-site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
}

.back-site-btn:hover {
  transform: scale(1.04);
  border-color: white;
}