.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: radial-gradient(ellipse at center, transparent 0%, var(--shadow) 130%);
  z-index: 10;
}
.overlay.hidden { display: none; }
.card {
  background: var(--panel);
  border: 3px solid var(--panel-border);
  border-radius: 26px;
  padding: 28px 26px 30px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 50px var(--shadow);
  animation: pop .35s cubic-bezier(.2,1.3,.4,1) both;
}

#start-screen .card {
  max-width: 480px;
  padding: 30px 34px 32px;
}
@keyframes pop {
  from { transform: scale(.8); opacity: 0; }
  to   { transform: scale(1);  opacity: 1; }
}
.card .big-emoji {
  font-size: 64px;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
  filter: drop-shadow(0 6px 8px var(--shadow));
}

.pause-icon {
  display: block;
  width: clamp(64px, 18vw, 84px);
  height: clamp(64px, 18vw, 84px);
  object-fit: contain;
  margin: 0 auto 10px;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 8px var(--shadow));
  -webkit-user-drag: none;
  user-select: none;
}

#pause-screen {
  background: rgba(20, 16, 10, 0.30);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

/* kilépés a főmenübe – kétlépcsős megerősítéssel */
.pause-quit {
  margin: 14px auto 0;
  display: block;
  padding: 10px 18px;
  border: 2px solid var(--panel-border);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pause-quit:active { transform: scale(0.96); }
.pause-quit.hidden { display: none; }
.pause-confirm { margin-top: 14px; }
.pause-confirm.hidden { display: none; }
.pause-confirm p {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.pause-confirm-row { display: flex; gap: 10px; justify-content: center; }
.pc-btn {
  padding: 10px 16px;
  border: none;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pc-btn:active { transform: scale(0.96); }
.pc-yes { background: #d9534f; color: #fff; box-shadow: 0 3px 8px var(--shadow); }
.pc-no { background: transparent; color: var(--text); border: 2px solid var(--panel-border); }

@media (max-width: 600px) {
  #pause-screen {
    align-items: flex-end;
    padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
  }
}

.card .logo-title { margin: 0 0 12px; }
.card .logo-img {
  display: block;
  width: min(92%, 440px);
  height: auto;
  margin: 0 auto;
  image-rendering: pixelated;
  filter: drop-shadow(0 5px 7px var(--shadow));
}
.card h1 {
  font-size: clamp(24px, 7vw, 32px);
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}
.card h2 {
  font-size: clamp(22px, 6vw, 28px);
  margin-bottom: 6px;
}
.card p {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.85;
  margin-bottom: 18px;
}

.card .lead {
  font-size: 15px;
  opacity: 0.92;
  margin-bottom: 14px;
}
.rules {
  list-style: none;
  text-align: left;
  max-width: 360px;
  margin: 0 auto 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rules li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  line-height: 1.35;
  background: rgba(128, 128, 128, 0.10);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 9px 12px;
}
.rules .ic {
  flex-shrink: 0;
  min-width: 30px;
  text-align: center;
  font-size: 17px;
  letter-spacing: 1px;
}
.card .warn {
  font-size: 14px;
  font-weight: 800;
  opacity: 1;
  color: var(--accent);
  margin-bottom: 18px;
}
.stat-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 4px 0 20px;
}
.stat {
  flex: 1;
  background: rgba(128,128,128,0.10);
  border-radius: 14px;
  padding: 10px 6px;
}
.stat .n { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat .t { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .7; font-weight: 700; }
