@layer app {
/* ============================================================
   Stop screen
   ============================================================ */
.stop-screen {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  background: var(--screen-bg);
}

/* Board cell sizing — vh-based clamp for square cells matching hand proportions.
   Cells are always square (width = height = --board-cell-size).
   Constant accounts for: top bar, state bar, hand, actions bar, gaps/padding.
   Denominator = total cell rows (2 per group: player + opponent). */
.stop-screen.tracks-3 {
  --board-cell-size: clamp(30px, calc((100vh - 360px) / 6), 38px);
}
.stop-screen.tracks-5 {
  --board-cell-size: clamp(26px, calc((100vh - 320px) / 10), 44px);
}
body.native-app-ios .stop-screen.tracks-3 {
  --board-cell-size: clamp(30px, calc((100vh - 420px) / 6), 38px);
}
body.native-app-ios .stop-screen.tracks-5 {
  --board-cell-size: clamp(26px, calc((100vh - 410px) / 10), 44px);
}
body.native-app-android .stop-screen.tracks-3 {
  --board-cell-size: clamp(30px, calc((100vh - 430px) / 6), 38px);
}
body.native-app-android .stop-screen.tracks-5 {
  --board-cell-size: clamp(26px, calc((100vh - 390px) / 10), 44px);
}

/* Solo (daily challenge): only 1 row per group, so half the cell rows */
.stop-screen.solo.tracks-5 {
  --board-cell-size: clamp(30px, calc((100vh - 320px) / 5), 44px);
}
body.native-app-ios .stop-screen.solo.tracks-5 {
  --board-cell-size: clamp(30px, calc((100vh - 410px) / 5), 44px);
}
body.native-app-android .stop-screen.solo.tracks-5 {
  --board-cell-size: clamp(30px, calc((100vh - 390px) / 5), 44px);
}

.sudden-death-banner {
  text-align: center;
  font-size: 16px;
  font-weight: 900;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 4px;
  padding: 7px 14px;
  background: rgba(232,96,30,0.08);
  border-bottom: 1px solid rgba(232,96,30,0.18);
  font-family: var(--font-flap);
}

.swap-coach-mark {
  position: relative;
  margin: 10px 14px 0;
  padding: 10px 32px 10px 14px;
  background: rgba(232,96,30,0.08);
  border: 1px solid rgba(232,96,30,0.22);
  border-radius: 8px;
  color: var(--label-col);
  font-size: 13px;
  line-height: 1.4;
}

.swap-coach-mark p {
  margin: 0;
}

.swap-coach-mark strong {
  font-weight: 700;
}

.swap-coach-mark-close {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--label-col);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}

.swap-coach-mark-close:hover {
  opacity: 1;
}

}
