.setup {
  height: 100%;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.hero {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(145deg, #d889ac, #b45f86);
  color: #f7f9f2;
}
.heroInner { height: 100%; display: flex; flex-direction: column; gap: 12px; }
.heroTitle {
  margin: 0;
  font-family: "CMB", "Segoe UI", system-ui, sans-serif;
  font-size: clamp(24px, 3.3vw, 38px);
  font-weight: 400;
}
.heroDesc { margin: 0; font-weight: 700; line-height: 1.4; }
.heroInfo {
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 14px;
  background: rgba(255, 255, 255, .14);
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
}

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spacer { flex: 1 1 auto; min-height: 12px; }
.startRow { display: flex; justify-content: flex-end; }

.game {
  height: 100%;
  display: grid;
  grid-template-columns: 1.7fr 0.6fr;
  gap: 12px;
}

.playWrap {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.metaTop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 850;
  margin-bottom: 10px;
}

.playArea {
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f4f7ff;
  position: relative;
  overflow: hidden;
}

.iconField {
  position: absolute;
  inset: 0;
}

.iconBtn {
  position: absolute;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iconBtn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .18));
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(2px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.overlay.isSuccess {
  background: rgba(20, 42, 30, .42);
}

.overlayCard {
  width: min(520px, 92%);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 14px;
  text-align: center;
}

.overlay.isSuccess .overlayCard {
  border-color: #2f7d52;
  box-shadow: 0 18px 42px rgba(10, 30, 20, .35);
}
.overlayCard h3 {
  margin: 0 0 8px;
  font-family: "CMB", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 30px);
}
.overlayCard p { margin: 0 0 10px; color: var(--muted); font-weight: 750; }
.overlayCard p { white-space: pre-line; }

.side {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}

.stat.hidden { display: none; }

.msg {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #f8fafc;
  padding: 10px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.3;
}

.scores {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fafafa;
  padding: 10px;
}
.scoreLine {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 8px;
}
.scoreLine:last-child { margin-bottom: 0; }
.scoreLine strong {
  color: var(--text);
  font-family: "CMB", "Segoe UI", system-ui, sans-serif;
  font-weight: 400;
  font-size: 22px;
}

@media (max-width: 980px) {
  .setup { grid-template-columns: 1fr; }
  .game { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
}
