@layer app {
/* ============================================================
   Win screen (game finished)
   ============================================================ */
.game-result {
  text-align: center;
  padding: 20px 0;
}

.game-result h2 { font-size: 28px; margin-bottom: 20px; font-family: var(--font-flap); }

.line-summary {
  display: flex;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--board-bg);
  border-radius: var(--radius);
  margin-bottom: 4px;
  font-size: 14px;
}

/* Win cells display */
.win-screen {
  padding: 20px 16px 32px;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.win-cells-row {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 20px 0 16px;
  position: relative;
}

.win-cells-row::before {
  content: '';
  position: absolute;
  inset: -20px -30px;
  background: radial-gradient(ellipse at center, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.win-cells-row .cell {
  position: relative;
  z-index: 1;
  border-color: var(--stop-won-brd);
  background: var(--stop-won-bg);
}

.win-cells-row .cell-letter {
  color: var(--green);
}

.win-label {
  font-size: 11px;
  font-family: var(--font-body);
  color: var(--label-col);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.stop-pills {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.stop-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-flap);
  border: 1.5px solid var(--stop-brd);
  background: var(--stop-bg);
  color: var(--page-sub);
}

.stop-pill.won {
  background: var(--stop-won-bg);
  border-color: var(--stop-won-brd);
  color: var(--stop-won-text);
}

.stop-pill.lost {
  background: var(--stop-lost-bg);
  border-color: var(--stop-lost-brd);
  color: var(--stop-lost-text);
}

.stop-pill.tied {
  background: var(--stop-tied-bg);
  border-color: var(--stop-tied-brd);
  color: var(--stop-tied-text);
}

}
